* ListViewItem.cs: When retrieving the focused state, the index check
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * ListViewItem.cs: When retrieving the focused state, the index check
4         should be done only when ListView is in virtualmode, as it is an
5         expensive check for normal mode.
6
7 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8
9         * ListViewItem.cs: Make the focus state information be stored
10         in the ListView, not in the items. This is done to match the MS
11         behaviour for items that are not yet part of a ListView control;
12         besides that, since just one item can be focused at the same time,
13         we save a little space in our items.
14         Fixes part of #331643.
15
16 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
17
18         * ComboBox.cs: When focus is lost, deselect the text. When setting
19         text of control, select all text. Do not hide selection when control
20         does not have focus. Fixes bug #333663.
21
22 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
23
24         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
25         instead of ArgumentException when SelectionLength is set to negative
26         value. Added same check to SelectionStart. Code formatting.
27
28 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
29
30         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
31         or SelectionStart. Code formatting.
32
33 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
34
35         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
36         indicating that there was not a previous drag-and-drop operation going
37         on.
38         Fixes part of #325071.
39
40 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
41
42         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
43         AllowedEffect, don't let the drop operation happen. 
44         Fixes #32580.
45
46 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
47
48         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
49
50 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
51
52         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
53         is called.
54
55 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
56
57         * Line.cs: Add a method that finds the tag that contains an x-coord.
58         * LineTag.cs: Add a method that finds the character at an x-coord using
59         a binary search, the old way was a linear search.
60         * TextControl.cs: Change FindCursor to use the above new methods.
61
62 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
63
64         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
65         value different than AllowedEffect). This should be possible to
66         indicate that dragging is not possible in some control/area.
67
68 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
69
70         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
71         descent internally when font changes instead of outside code being responsible
72         for setting it.
73         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
74         instead of accessing internal variables.
75
76 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
77
78         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
79         remove special treatment for ArrangeIcons since it is already arranged.
80
81 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
82
83         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
84         the Win32 backend uses Color.
85         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
86         Refactor to store a Color instead of a Brush for Color.
87
88 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
89
90         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
91         away.  I didn't realize I needed this when I refactored these earlier.
92
93 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
94
95         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
96         store a Color structure and use the ResPool for back color instead of
97         holding onto brushes.
98
99 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
100
101         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
102         [Fixes bug #325592]
103
104 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
105
106         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
107         to recalculate its size.  Fixes a part of bug #331052.
108
109 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
110
111         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
112         button.  Fixes a part of bug #331052.
113
114 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
115
116         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
117         the CreateParams.
118         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
119         decorations.
120         [Fixes bug #330986]
121
122 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
123
124         * TextBoxTextRenderer.cs: Don't make this a static class, as static
125         doesn't exist in 1.1.  (Thanks jb!)
126
127 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
128
129         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
130         class to allow us to use different backends on different platforms.
131         Linux uses the current [Draw|Measure]String backend.  Windows uses
132         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
133         of GDI+.  This leads to better looking text and more accurate measurements
134         on Windows, fixing many of the reported issues.
135         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
136
137 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
138
139         * FolderBrowserDialog.cs: When running on Windows,
140         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
141         since we must match both "C:" and "C:\" forms. A little hackish, but
142         works.
143         Fixes #325247.
144
145 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
146
147         * ListView.cs: When calling EndEdit (after editing an item),
148         create a new instance of LabelEditEventArgs to keep clean the fields
149         in case we get a new call to BeginEdit; also do Application.DoEvents
150         to have focus in synch. This is a fix similar to TreeView's #325244.
151
152 2007-10-07  Andreia Gaita <avidigal@novell.com>
153
154         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
155         * WebBrowserBase.cs: Added dialog support, calling the
156           WebBrowserDialogs classes for each specific dialog type.
157
158 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
159
160         * ListView.cs: When the last item is focused and is removed,
161         move the focus to the previous item (in Items order). This is what MS
162         does.
163         Fixes #330415.
164
165 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
166
167         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
168         instead of the opposite (RemoveAt call Remove). This is a better
169         approach since we don't need to to a pair of traversals when using
170         RemoveAt.
171
172 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
173
174         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
175         check that the node actually has nodes, and if not, move to the
176         parent node instead. 
177         Fixes #325265.
178
179 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
180
181         * TreeView.cs: Move the previous change to the general case (to
182         call Application.DoEvents in cases where the method was called by
183         different places).
184
185 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
186
187         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
188         call Application.DoEvents. This is neccessary when we get a call to
189         BeginEdit from an AfterLabelEdit handler, because the focus always
190         goes to the TreeView, even if we try to give it to our
191         LabelEditTextBox. The call do Application.DoEvents seems to
192         synchronize the focus, basically.
193         Fixes #325244.
194
195 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
196
197         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
198         should be false. This also removes some nasty recursive paths. Fixes
199         part of #325244.
200
201 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
202
203         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
204         state to normal. Also resize window when cascading. Fixes #325433. 
205
206 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
207
208         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
209         DefaultForeColor, as drawing empty colored lines isn't very useful.
210         [Fixes the not drawn lines part of bug #324358]
211
212 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
213
214         * TextControl.cs: Move Line and LineTag classes into separate files to
215         make things easier to find.
216         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
217         * RichTextBox.cs: Capitalize LineTag.Length property access.
218         - This is purely an organizational/formatting change, no logic changed. -
219
220 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
221
222         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
223         text is empty.
224
225 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
226
227         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
228         text is empty.
229
230 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
231
232         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
233         prevent calling of OnBackColorChanged. Fixes #325321.
234
235 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
236
237         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
238         because control can be disabled because owner is disabled.
239
240 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
241
242         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
243         string.Empty, test failed from previous change.
244
245 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
246
247         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
248         is null, not String.Empty.  See bug #323038.
249
250 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
251
252         * TextControl.cs: Change the margins to match MS a little better.
253         Still not perfect for X11 due to some DrawString differences, but
254         is still an improvement over the old stuff.
255         Partially fixes #324467.
256
257 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
258
259         * FolderBrowserDialog.cs: When using MyComputer as 
260         RootFolder, let absolute paths be considered as valid ones. Also, use
261         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
262         for Windows compatibility.
263         Partially fixes #325247.
264
265 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
266
267         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
268         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
269         method, since it causes the dialog to not select folders directly
270         under the root path (when setting SelectedPath property).
271
272 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
273
274         * TreeNode.cs: When calling Expand/Collapse and need to call 
275         ExpandBelow/CollapseBelow respectively, take into account
276         partially visible nodes (previously Expanding/Collapsing
277         a partially visible node in the bottom was not updating its +- sign).
278
279 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
280
281         * TreeView.cs: When calling Expand on a TreeNode, and we need to
282         expand nodes below (ExpandBelow), scroll the entire Viewport
283         area if the node is above it and not visible (instead of scrolling
284         the area from node's Bottom, which applies only when the node is
285         visible).
286         Fixes #325266.
287
288 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
289
290         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
291         node in the bottom area (as .Net does). This is done to preserve the
292         scroll position when ExpandAll is called before handle is created for
293         the 1.1 profile (bottom area, as opposed to top area in 2.0).
294         Fixes #324103.
295
296 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
297
298         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
299         bottom area if we are in fact not using the vertical scroll bar.
300         Fixes #324824.
301
302 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
303
304         * Control.cs: Comment out a double buffering optimization that doesn't
305         take into account invalidates created in OnPaint, causing the control
306         to never be redrawn.  It would take quite a bit of work to work around
307         this, but I left it commented with an explanation for later possible
308         optimization.
309         [Fixes bug #328681]
310
311 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
312
313         * Control.cs: Ask parent to perform a layout if control is AutoSize and
314         the text changes.
315         * RadioButton.cs: Implement GetPreferredSizeCore.
316         [Fixes bug #328672]
317
318 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
319
320         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
321         corcompare stuffs.
322
323 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
324
325         * Application.cs: Move the sync context stuff to Run instead of RunLoop
326         so that it doesn't get uninstalled on modal forms.
327         * Control.cs: Install a sync context when a control is created.
328         * WindowsFormsSyncronizationContext.cs: Create a private static control
329         to invoke on.  This is easier than trying to find a created control we
330         can use.
331         [Fixes bug #327608]
332
333 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
334
335         * Application.cs: Install a WindowsFormsSynchronizationContext in the
336         run loop, and uninstall it when done.
337         * WindowsFormsSynchronizationContext.cs: Implement.
338         [Fixes the common case in bug #327608]
339
340 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
341
342         * DataGridViewCellCollection.cs: Added argument checks for indexers.
343         Use case-insensitive lookup of column name in indexer. Code
344         formatting.
345
346 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
347
348         * TreeNode.cs: When collapsing or expanding a node, check whether its
349         change will affect the visible area (we were previously doing a
350         IsVisible check, but that check is not enough since children nodes
351         could be still visible). Fixes part of #325266.
352
353 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
354
355         * TreeView.cs: Always select the first node when the TreeView gets
356         focus if there is no currently selected node.
357         [Fixes bug #324279]
358
359 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
360
361         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
362         node being selected is null.
363         [Patch from Yves Bastide fixes bug #326858]
364
365 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
366
367         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
368         whether all the parent nodes are expanded.
369         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
370         call RecalculateVisibleOrder if all previous nodes are expanded.
371         Before that we were doing a IsVisible check, but sometimes the node
372         is not in the visible area, but _should_already be ready, because of
373         all previous nodes are expanded. Fixes #325259.
374
375 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
376
377         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
378         portion of the item is clicked.
379
380 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
381
382         * TextControl.cs: Do not tell the system to move the cursor if the
383         textbox isn't focused.  Fixes part of bug #322668.
384
385 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
386
387         * ComboBox.cs: When there are no items, do not show the dropdown if
388         the down arrow is clicked.  Fixes part of bug #322668.
389
390 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
391
392         * ToolStripComboBox.cs: Manually set the size of this control in the
393         constructor, as it doesn't seem to be the same as DefaultSize.
394         Fixes a failing monobuild test.
395
396 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
397
398         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
399         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
400
401 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
402
403         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
404         Desktop.  This lets it work for people who have moved their desktops
405         from the default location on windows.  For people who have not, both
406         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
407
408 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
409
410         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
411         but when the base constructor sets this, the control is null.  Set it
412         again in the constructor.  Fixes a failing monobuild test.
413
414 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
415
416         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
417         get called.
418         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
419         called.
420
421 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
422
423         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
424         will handle it themselves.
425         * ToolStripItem.cs: When deciding what the text of a tooltip should
426         be, use the Text property instead of the text field.
427         * ToolStripTextBox.cs: Handle tooltips.
428         [Fixes bugs #325417 and #325973]
429
430 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
431
432         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
433         left click.  Fixes the easy part of bug #325969.
434
435 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
436
437         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
438         bug #325406, but set a minimum for StatusStrip to 22 to keep
439         bug #325390 fixed.  I think this minimum would have been figured
440         up automatically if the grip was actually a ToolStripItem, but it
441         currently is not.
442
443 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
444
445         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
446         as this is apparently the actual value used by .Net. Also apply
447         ItemPadding in Details view only, and decrease the general width padding,
448         to have only the needed. This should fix #324340 in Windows too.
449
450 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
451
452         * ListViewItem.cs: Don't Invalidate item if parent is inside
453         a BeginUpdate/EndUpdate block. This prevents to have differences
454         between the ListView and items state, as well as avoid some exceptions
455         there.
456         * ListView.cs: Make 'updating' field internal.
457
458 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
459
460         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
461         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
462         size if appropriate.
463         Fixes reopened bug #325414.
464
465 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
466
467         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
468         * ToolStripItem.cs: Invalidate before and after our new autosize when
469         text changes.
470         Fixes reopened bug #325390.
471
472 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
473
474         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
475         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
476         #325044.
477
478 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
479
480         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
481
482 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
483
484         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
485         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
486         #82734.
487
488 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
489
490         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
491         item to select when the ToolStrip is selected.
492         * ToolStripControlHost: Realign the control when the bounds or visibility
493         change.
494         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
495         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
496         preferred height.
497         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
498         base.OnPaint.  Was causing text not to be drawn.
499
500 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
501
502         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
503
504 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
505
506         * TreeView.cs: When creating the label edit text box,
507         set is initially to Visible = false. This is done to
508         prevent a confusion in the layout which makes it to lose
509         focus when shown the first time. Fixes part of #82592.
510
511 2007-09-13 Andreia Gaita <avidigal@novell.com>
512
513         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
514
515 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
516
517         * ToolStrip.cs: Take Margin into account when calculating preferred
518         size.  Also, allow preferred size to get smaller than the explicit
519         size.
520         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
521         First step towards fixing bug #82747.
522
523 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
524
525         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
526         full row select background over the plus/minus glyph.  Also, turn
527         off the focus rectangle for full row select since MS doesn't seem
528         to ever paint it.  [Fixes bug #81839]
529
530 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
531
532         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
533         This was causing keyboard opened dropdowns to lose focus.
534         [Fixes bug #82803]
535
536 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
537
538         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
539         ClientRectangle instead.  [Fixes bug #82838]
540
541 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
542
543         * SplitContainer.cs: We can't reset Visible on every layout because
544         someone may have set Visible = false explicitly on a SplitterPanel.
545         Make sure when we switch orientation the SplitterDistance does not
546         change.  Fixes two failing tests.
547
548 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
549
550         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
551         TextRenderer, since the latter is only available in 2.0.
552
553 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
554
555         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
556         * SplitContainer.cs: Implement FixedPanel layouting.
557
558 2007-09-12  Andreia Gaita  <avidigal@novell.com>
559
560         * WebBrowserBase.cs: setup shutdown routine
561
562 2007-09-12  Andreia Gaita  <avidigal@novell.com>
563
564         * Application.cs: Let keyboard events that are targetted 
565                 to non-mwf windows hosted inside mwf (as in, webbrowser),
566                 propagate properly. Fixes keyboard handling on the webbrowser.
567
568 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
569
570         * ListView.cs: When handling MouseUp event and we are 
571         highligting a node with the mouse right button, don't trigger
572         Before/AfterSelecting event, since we are not actually selecting
573         the node.
574
575 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
576
577         * TreeView.cs: When editing a node, modify the edit text box
578         depending on the text length (as you are typing), like MS does.
579
580 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
581
582         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
583         Override GetPreferredSizeCore to perform calculations.  Remove custom
584         autosize logic.  [Fixes bug #82739]
585
586 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
587
588         * TextBoxBase.cs: Modified should default to false.
589
590 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
591
592         * Control.cs: Update the anchoring distances even when layout is supspended.
593         Patch provided by George fixes bug #82805.
594
595 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
596
597         * Control.cs: Provide a setter for ExplicitHeight.
598         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
599         remove the hacks in here for requested_height.
600         [Fixes bug #82749]
601
602 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
603
604         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
605         Maximum to lower that its current Value caused an ArgumentException by setting
606         the Value to the new Maximum.
607
608 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
609
610         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
611         handle moves to the closest tick when it is being dragged.
612         [Fixes bug #82751]
613
614 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
615
616         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
617         can't let them count as real items when calculating where to merge in the
618         user's items.  [Fixed bug #82786]
619
620 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
621
622         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
623         who want to add a menu item directly onto a toolstrip.
624         [Fixes bug #82775, part II]
625
626 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
627
628         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
629         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
630         don't set it to available.
631         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
632         [Fixes bug #82727, part II]
633
634 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
635
636         * StatusStrip.cs: Change item placement to None if not visible.
637         * ToolStripItem.cs: Invalidate when InternalVisible changes.
638         These should have been committed to fix 82723, but I missed them.
639
640 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
641
642         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
643         Click, and that it is only called once.
644         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
645         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
646         dropped down.
647         [Fixes bug #82775]
648
649 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
650
651         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
652         to match .Net.
653         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
654         instead of 8, just like above. Partially fixes #82734.
655
656 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
657
658         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
659         fixes #82734.
660
661         * ListView.cs: Remove extra space between rows in Details view (match
662         .Net). 
663         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
664         the DefaultFont.
665
666 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
667
668         * Application.cs: Modified ProductVersion to return value of
669         AssemblyInformationVersion if available, and fallback to assembly
670         version. Fixes bug #82746. Code formatting.
671         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
672         instead.
673
674 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
675
676         * Control.cs: When updating ZOrder for a child control,
677         take into account the implicit ones (we need it in our controls
678         using them). Fixes #82642.
679
680 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
681
682         * ToolStripItem.cs: Add support for animated images.
683         [Fixes bug #82726]
684
685 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
686
687         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
688         visible.  [Fixes bug #82727]
689
690 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
691
692         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
693         so we repaint using the new size.  [Fixes bug #82723]
694
695 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
696
697         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
698         option.  [Fixes bug #81779]
699
700 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
701
702         * TreeView.cs: Override HandleClick because the StandardClick style is
703         set to false.  According to MSDN (and testing), the click events should
704         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
705
706 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
707
708         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
709         the border will disappear.  Fixes reopened #82653.
710
711 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
712
713         * Control.cs: If the control is autosize, and its preferred size changes
714         when it lays out its children, tell its parent so it can be re-layed out.
715         Fixing some of the fallout from r85433.
716
717 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
718
719         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
720         and CheckBox share some code.
721
722 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
723
724         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
725         the TrackBar, not every mouse move.  [Fixed bug #82718]
726
727 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
728
729         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
730         under 2.0 rendering.  [Fixes bug #82657]
731
732 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
733
734         * TreeView.cs: If we found a TreeNode to display a context menu, but
735         it doesn't have one to show, let the TreeView display its menu
736         instead.  [Fixes bug #82680]
737
738 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
739
740         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
741         OnPaintInternal instead.  Give the internal TextBox a Border property
742         so it can draw itself more correctly.  [Fixes bug #82653]
743
744 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
745
746         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
747
748 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
749
750         * ComboBox.cs: Adjust combobox button state to reflect current state when
751         back to enabled = true. Fixes first issue of #82654.
752
753 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
754
755         * Control.cs: Fix last patch regression, prevent forms to update zorder when
756         setting visible property.
757
758 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
759
760         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
761         fix zorder for controls initially created as non visible. Fixes #82667.
762
763 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
764
765         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
766         mimic win32 look. Fixes #82656.
767
768 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
769
770         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
771         Stubs for new net 3.5 classes.
772
773 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
774
775         * ListViewItem.cs: In ListViewItemCollection operations calculate
776         Layout for owner as well as invalidate it. Fixes part of #82642.
777
778 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
779
780         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
781         when returning Enabled.  [Fixes bug #82651]
782
783 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
784
785         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
786
787 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
788
789         * ListView.cs: Put item padding info in a single place
790         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
791         columns again.
792         * ThemeWin32Classic.cs:
793         * Theme.cs: Likewise.
794
795 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
796
797         * ListView.cs: When a ListViewSubItem instance is invalidated,
798         invoke Invalidate on parent ListViewItem, not parent ListView.
799         Fixes #81570.
800
801 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
802
803         * ListView.cs, ListViewItem.cs: corcompare stuffs.
804
805 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
806
807         * BindingMemberInfo.cs: Implement == and != operators.
808
809 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
810
811         * HtmlElementEventArgs.cs: Implement properties.
812
813 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
814
815         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
816
817 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
818
819         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
820         Add (string,string,string) to implement the imagekey.  It turns out, we
821         use the requested imagekey whereas .Net does not.  So I broke ours to match
822         theirs.  :(
823
824 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
825
826         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
827
828 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
829
830         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
831
832 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
833
834         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
835         up-to-date. Fixes bug #82618.
836
837 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
838
839         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
840         reflect document changes. Fixes #82367.
841
842 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
843
844         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
845         as well as add new ones. This should make work the BackgroundImage
846         property for ListView again.
847
848 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
849
850         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
851         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
852         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
853
854 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
855
856         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
857         IsKeyLocked.
858
859 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
860
861         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
862         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
863
864 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
865
866         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
867         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
868
869 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
870
871         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
872
873 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
874
875         * GridEntry.cs: Implement GetService.
876
877 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
878
879         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
880         for label editting, make sure we focus back on the TreeView.
881         [Fixes bug #82590]
882
883 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
884
885         * ListView.cs: Add some 2.0 overrides.
886
887 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
888
889         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
890         because getter dont returns right value before handle creation. Thanks 
891         to George. Fixes #82569.  
892
893 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
894
895         * Theme.cs: Revert last patch, it causes error under win32. 
896
897 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
898
899         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
900         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
901         logical Desktop rather than the physical file system location. Fixes #82603. 
902
903 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
904
905         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
906         for the patch. Fixes #82568.
907
908 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
909
910         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
911         methods.
912
913 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
914
915         * ListViewInsertionMark.cs: New stubbed class.
916
917 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
918
919         * FolderBrowserDialog.cs: When adding folder, immediately create the
920         directory with temporary name and rename the directory when editing
921         finishes. This matches MS. Ensure the node for the new folder is 
922         selected and LabelEdit is disabled, when editing is either finished
923         or cancelled.
924
925 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
926
927         * TreeView.cs: When editing label of node, ensure node is visible.
928
929 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
930
931         * PropertyGridView.cs: Set the value only if it has changed.
932
933 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
934
935         * ListView.cs: Some more code refactoring to add support sorting
936         with groups (now for Details view). Remove unused code also.
937
938 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
939
940         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
941         Not a big fan of reacting immediately to a field in an EventArg, but that's
942         the way it's done.  (This is part of the previous commit that got left out.)
943
944 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
945
946         * FolderBrowserDialog.cs: Removed need for separate description field.
947         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
948         has focus when dialog box is displayed again, regardless of what
949         button was pressed the previous time. Set RootFolder and SelectedPath
950         each time dialog box is displayed. This ensures the treeview is
951         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
952         when it does not have focus. Added support for more special folders.
953
954 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
955
956         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
957         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
958         it resets the edit_args.
959         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
960         [Fixes bug #82577]
961
962 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
963
964         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
965         button to match MS. Provide more meaningful exception message for
966         invalid RootFolder value. Use zero-length string when SelectedPath
967         is set to null. Allow non-rooted paths in SelectedPath, but ignore
968         them in FolderBrowserTreeView. Allow folders to be created in
969         RootFolder. Fixes bug #82576.
970
971 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
972
973         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
974         since we need to take into account the group headers and the margin
975         between them.
976         * ListViewGroup.cs: Add a rows field to store the number of rows per
977         group.
978
979 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
980
981         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
982           Anyways, let's just follow the lead.
983
984 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
985
986         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
987         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
988         controls in GetPreferredSizeCore.
989         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
990         [Fixes bug #82488]
991
992 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
993
994         * PrintDialog.cs: Need to instantiate the form variable here too.
995
996 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
997
998         * ListView.cs: Do some reorganization to support sorting in groups,
999         by doing the layout sequentially in ListView.Items. Also add support
1000         for the Default Group, which should be available for items with no
1001         group assigned.
1002         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
1003         for storing layout info also.
1004         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
1005         collection, as well as providing internal members to do a traversal
1006         including the default group (needed when doing layout/drawing).
1007         * ThemeWin32Classic.cs: When drawing group headers use internal
1008         ListViewGroupCollection members to take into account the default
1009         group.
1010
1011 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
1012
1013         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
1014
1015 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
1016
1017         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
1018         been created.  If handle is created, we want arror keys.  If we are editing
1019         a node, we want things like enter, esc, home, end, page up, page down.
1020         Allows Esc to work for FolderBrowserDialog.
1021
1022 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
1023
1024         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
1025         they close when ESC is pressed.  Thanks Andy!
1026
1027 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
1028
1029         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
1030         This way we can tell if this is a CommonDialog provided with mono, or one
1031         that is being implemented outside by a developer.  If it is an external one,
1032         the developer is responsible for showing their own form.  We were showing
1033         our blank form after the developer showed his.
1034         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
1035         PageSetupDialog.cs: Instantiate form variable in our constructor.
1036         [Fixes bug #82531]
1037
1038 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
1039
1040         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
1041         and always return true.  [Fixes bug #81616]
1042
1043 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
1044
1045         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
1046         TextBox.  [Fixes bug #82549]
1047
1048 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
1049
1050         * FileDialog.cs: When Save/Open is clicked and no filename is selected
1051         or entered then do not close the dialog. Fixes bug #82539. Removed
1052         CWLs.
1053
1054 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
1055
1056         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
1057         code to this method. It is calling every time filter changes. This method
1058         will help to fix the bug #80887.
1059
1060 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
1061
1062         * CheckBox.cs: Implement AutoSize calculation.
1063
1064 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
1065
1066         * CheckBox.cs: Use new 2.0 rendering for 2.0.
1067         * Theme.cs: Method declarations for 2.0 rendering path.
1068         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
1069
1070 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1071
1072         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
1073
1074 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1075
1076         * ListViewGroupCollection.cs: Implement AddRange the right way, to
1077         only call Redraw on the parent one time.
1078
1079 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1080
1081         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
1082           GetClipboardContent.
1083         * DataGridViewCell.cs: Implemented GetClipboardContent,
1084           GetEditedFormattedValue, GetFormattedValue.
1085         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
1086
1087 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
1088
1089         * TableLayoutStyleCollection.cs: corcompare fix.
1090
1091 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1092
1093         * DataObject.cs: Implemented retrieval of convertible / not convertible
1094           objects.
1095
1096 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
1097
1098         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
1099         ourselves.  This ensures the entire old bounds are repainted, in case our new
1100         size is smaller.  [Fixes bug #82518]
1101
1102 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
1103
1104         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
1105         flag to make fast handle of mouse events, without this the mouse move is
1106         handled in some manner, whether it is a mouse move or not. Fixes #81588.
1107
1108 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1109
1110         * ListView.cs: When doing layout calculations don't use a ref
1111         param to keep the current item; instead use its Index value (this 
1112         is specially important when doing the layout with Groups
1113         and Items being sparse). Also don't take into account items added to
1114         the Group but not yet added to the main ListView.Items collection.
1115
1116 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1117
1118         * ListViewGroupCollection.cs: Forgot to mimic an issue
1119         in the indexer (don't assign the ListView owner for new values).
1120
1121 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1122
1123         * ListViewGroupCollection.cs: Make the string indexer use
1124         the int based indexer to re-use code, instead of duplicate the code.
1125         Also Redraw as needed and take into account null values.
1126
1127 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
1128
1129         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
1130         [Fixes bug #82481]
1131
1132 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
1133
1134         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
1135         when other buttons are clicked or navigated to.
1136
1137 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1138
1139         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
1140           it's XplatUIX11 that attaches them.
1141
1142 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1143
1144         * DataGridView.cs: If a column has been added, recreate the editing row.
1145           Fixes #82226.
1146
1147 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1148
1149         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
1150           of the tag to draw. Makes disappearing text show up again.
1151
1152 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1153
1154         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
1155           Contents. Fixes #82487.
1156
1157 2007-08-19  Andreia Gaita  <avidigal@novell.com>
1158
1159         * Added HtmlElement.cs, HtmlElementCollection.cs, 
1160           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
1161           
1162 2007-08-19  Andreia Gaita  <avidigal@novell.com>
1163
1164         * BindingSource.cs: Implement this, dispose and getenumerator.
1165         * DataGridViewRowCollection.cs: Move the InvalidOperationException
1166         out of AddInternal, throw it only on public Add calls. The 
1167         UsingWebBrowser sample was blowing up with this when setting the
1168         DataSource after adding DataBindings, so it's likely that .net
1169         only throws this exception when Add is called directly. 
1170         
1171         * ToolStripControlHost.cs: Return the hosted control's text
1172         property, and not the ToolStripItem one (it would always return
1173         the initial value).
1174         
1175         * HtmlDocument.cs: Implement GetElementById and All
1176         * WebBrowser.cs: Remove exception on set_DocumentStream.        
1177
1178 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
1179
1180         * Form.cs: Fix the max and min value for opacity (0~1).
1181
1182 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
1183
1184         [Fixes #80118]
1185         * DataGridTableStyle.cs: Default header font is now null, on getter it 
1186         returns datagrid font when is null. On setter permits null.
1187
1188         * DataGrid.cs:
1189         - When ResetHeaderFont set header font to null.
1190         - On EndInit set grid_style.DataGrid.
1191
1192 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
1193
1194         * TabControl.cs: Fix regression in default padding x.
1195
1196 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
1197
1198         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
1199
1200 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
1201
1202         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
1203         not 2. Fixes #82229.
1204
1205 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1206
1207         * TabControl.cs: Fix tab size when image height is less than text height.
1208         Partially fixes #81837.
1209
1210 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1211
1212         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
1213         "alt + tab". It works only for Win32, for X11 theres no way to remove window
1214         from taskbar and keep it on "alt_tab". Fixes #81722.
1215
1216 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1217
1218         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
1219         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
1220         Fixes #80877 and #79418.
1221
1222 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1223
1224         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
1225         between position and one of the screen borders. Fixes #82349.
1226
1227 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1228
1229         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
1230         the MessageBox in the taskbar. Fixes #82457.
1231
1232 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1233
1234         * MessageBox.cs: Fix form size when icon is set and text height is bigger
1235         than icon. Fixes #82468.
1236
1237 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1238
1239         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
1240         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
1241           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
1242           Refactored HandleNCCalcSize somewhat to avoid code duplication.
1243         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
1244           FormBorderStyle to decide if we're calculating a new size from the
1245           client size or not. CreateParams: Don't fake tool windows, only the X11
1246           backend manages toolwindows manually.
1247
1248 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1249
1250         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
1251         ObjectDisposedException.
1252
1253 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1254
1255         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
1256         in OnLoad should not have any effect.  [Fixes bug #82470]
1257
1258 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1259
1260         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
1261         paint for controls that create their own ToolTipWindow instead of
1262         going through ToolTip.
1263
1264 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1265
1266         * ToolTip.cs: Make Hide internal instead of public to match MS API.
1267
1268 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1269
1270         * ListViewGroupCollection.cs: Use generic List instead of an
1271         ArrayList, since this collection is 2.0 only.
1272
1273 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
1274
1275         * ToolTip.cs (Hide): Made public to make the build work (should
1276         this not be public?).
1277
1278 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1279
1280         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
1281         ToolTipWindow.
1282         * ToolTip.cs: Add an internal Visible property to facilitate transition.
1283
1284 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1285
1286         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
1287         PopupEventHandler.cs: Make these internal for 1.1.
1288         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
1289         use ToolTipWindow internals.
1290         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
1291         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
1292
1293 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1294
1295         * X11Dnd.cs: Add a null check.
1296
1297 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1298
1299         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
1300           nothing else succeeds. Fixes #82453.
1301
1302 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1303
1304         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
1305           rectangle if we're painting to another window than the one the paint
1306           message was generated on. Simplify the code somewhat, which makes
1307           PaintEventEnd also simpler.
1308
1309 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1310
1311         * Control.cs: When changing parent of a form, let the form decide whether
1312           XplatUI.SetParent should be called or not.
1313         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
1314           recreating the handle. If the new parent's handle isn't created, don't
1315           recreate our handle, just destroy it. CreateParams: Check if the
1316           parent's handle is created before fetching it.
1317
1318 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1319
1320         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
1321           Update calls to PaintEventStart/End to take a Message argument.
1322         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
1323           take a Message argument.
1324         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
1325           Message argument, and handle the case where we don't paint to the window
1326           for which the paint message was generated.
1327
1328 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1329
1330         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
1331           Marshal.GetLastWin32Error. Plug nasty memory leak in
1332           PaintEventStart/End, we were creating a DC we weren't releasing.
1333
1334 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1335
1336         * ListView.cs: Add Groups support in Details view. Also have a small
1337         method to do the layout of the group header. Don't use a separate
1338         method to do the groups calculation in Icons view, since our methods
1339         are now a little simpler.
1340         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
1341         `Bounds'.
1342         * ThemeWin32Classic.cs: Likewise.
1343
1344 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
1345
1346         * Application.cs: Add FilterMessage method and rework our message loop
1347         logic to use it.
1348
1349 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
1350
1351         * Application.cs: Add some methods and stub a few methods that are
1352         pretty much never used.
1353
1354 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
1355
1356         * TreeNode.cs: Add some serialization methods.
1357
1358 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1359
1360         * ListView.cs: In ListViewItemCollection have a 
1361         'is_main_collection' field to not modify ListViewItem.ListView
1362         when using it as ListViewGroup.Items (and not ListView.Items)
1363         and also don't modify selection state (.Net behaviour). 
1364         Instead, set group for items contained in a ListViewGroup.Items collection.
1365         * ListViewItem.cs: Simplify some code in Group setter.
1366         * ListViewGroup.cs: use the new .ctor to pass the current instance
1367         to the ItemsCollection.
1368         * ListViewGroup.cs: Set the ListView property for ListViewGroup
1369         instances when adding/removing. Also make Remove use RemoveAt, which
1370         should perform better.
1371
1372 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
1373
1374         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
1375         that crept into the 1.1 profile.
1376
1377 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
1378
1379         * ToolBarButton.cs: Implement ImageKey.
1380
1381 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
1382
1383         * ToolBar.cs: Implement ScaleControl/ScaleCore.
1384
1385 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1386
1387         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
1388           created, it might have gotten destroyed since we last checked. Fixes
1389           #82405.
1390
1391 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
1392
1393         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
1394         tooltip will hide when mouse is moved off the control.
1395         [Fixes bug #82407]
1396
1397 2007-08-11 Andreia Gaita <avidigal@novell.com>
1398
1399         * WebBrowserBase.cs, WebBrowser.cs: add implementation
1400         using Mono.Mozilla for loading and navigating webcontrol
1401         with xulrunner.
1402         The initial implementation was done on 
1403         /trunk/mozembed/tests/browser , and copied here.
1404
1405 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
1406
1407         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
1408         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
1409
1410 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1411
1412         * DataGridView.cs: Add support for an editing row. Fixes #82226.
1413           RowTemplateFull: throw an exception if a column doesn't have a template.
1414         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
1415           add the row just before it.
1416         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
1417           selected.
1418         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
1419           DataGridView field to be able to reach the grid's editing row.
1420
1421 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
1422
1423         * ToolTip.cs: If the control's handle hasn't been created when it has a
1424         tooltip set on it, don't check to see if we need to show the tooltip.  This
1425         check was causing the control's handle to be created.
1426         [Fixes bug #82399]
1427
1428 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
1429
1430         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
1431                                         1.1             2.0
1432         Handle Not Created      -1              0
1433         Handle Created          0               0
1434         [Fixes bug #82371]
1435
1436 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
1437
1438         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
1439         [Fixes bug #82348]
1440
1441 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
1442
1443         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
1444         * ToolTip.cs: Implement some properties and owner draw.
1445
1446 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1447
1448         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
1449           show them again, since setting visibility causes a paint, causing an
1450           endless loop (instead use a temporary and set it all when it's known if
1451           they should be shown or not). Fixes #79265.
1452
1453 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1454
1455         * DataGridView.cs: Only do a full column/row selection if a header was
1456           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
1457           isn't pressed, deselect everything before selecting something.
1458
1459 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1460
1461         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
1462           behaviour according to bug #81075 - they are returned in the order they
1463           are selected. Fix HitTest to check if the point is within any of the
1464           headers. Allow for row/column selection when in ColumnHeader or
1465           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
1466           the row and column to call when their selected state changes, and
1467           updated selected_[rows|columns] whenever SetSelected* is called.
1468         * DataGridViewBand.cs: Initialize isRow correctly. Call
1469           SetSelected[Row|Column]CoreInternal when the selected state changes, and
1470           add a SelectedInternal to avoid StackOverflows.
1471         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
1472           ReadOnly no matter what.
1473         * DataGridViewSelectedColumnCollection.cs,
1474           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
1475           the items in reverse order (just as MS does...)
1476
1477 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
1478
1479         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
1480         itself, not part of a mnemonic.  [Fixes bug #82378]
1481
1482 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1483
1484         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
1485         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
1486           the DGV, the column, the row, or the cell itself is readonly.
1487
1488 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
1489
1490         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
1491         OSVersion.Platform.
1492         * FileDialog.cs: Same.
1493         * TextRendered.cs: Same.
1494         * FolderBrowserDialog.cs: Same.
1495         * TextBoxBase.cs: Same.
1496         * Application.cs: Same.
1497         * Cursors.cs: Same.
1498         * ThemeClearLooks.cs: Same.
1499
1500 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
1501
1502         * XplatUI.cs: Added RunningOnUnix property to be used by controls
1503         instead of duplicating these checks everywhere.
1504         * FileDialog.cs: Use case-insensitive comparison for populating the
1505         DirComboBox when not running on unix. Fixes bug #82385.
1506         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
1507         "Look in".
1508
1509 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1510
1511         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
1512           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
1513           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
1514           cell and column selection with ctrl and shift pressed. Call the correct
1515           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
1516           the corresponding virtual method (PaintBackground to paint background,
1517           etc).
1518         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
1519           either the column, row or the cell itself is selected.
1520         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
1521           OnRowsAdded.
1522         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
1523           here. When the row is selected, don't select all cells. Each cell now
1524           queries the row to see if the row is selected.
1525
1526 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1527
1528         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
1529           SelectionMode.
1530
1531 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1532
1533         * ListView.cs: In ListViewItemsCollection check that owner is
1534         not null before trying to access it (this happens quite often
1535         using Groups). Also don't duplicate calls by calling CollectionChanged
1536         method.
1537
1538 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
1539
1540         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
1541         when we are dismissed to clear keyboard mnemonics.
1542         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
1543         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
1544         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
1545         was activated by keyboard or the OS tells us to always draw them.
1546         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
1547         [Fixes bugs #82376, #82377]
1548
1549 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
1550
1551         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
1552         shot at having it because Alt was pressed.
1553         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
1554         the first real menu item.
1555         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
1556         a mnemonic if Text is null.
1557         [Fixes bug #82374]
1558
1559 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1560
1561         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
1562         search do check whether the item is already contained in the
1563         collection or not; instead check if the owner of the item is the same
1564         as ours. Also, remove a redundant check in the same method. 
1565
1566 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
1567
1568         * Control.cs: Allow the clip region to be set back to null.
1569         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
1570         [Fixes button still showing up in bug #82370 when Show Through is turned off]
1571
1572 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1573
1574         * GridEntry.cs: Add a null check.
1575         * PropertyGrid.cs: When checking for existing grid entries, ignore category
1576           entries. Fixes #82297.
1577
1578 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
1579
1580         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
1581         for 2.0.
1582
1583 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
1584
1585         * ListBox.cs: Implement ScaleControl.
1586
1587 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1588
1589         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
1590           have a menu strip.
1591         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
1592           parent has a menu strip. Fixes #81689.
1593
1594 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1595
1596         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
1597           moments, so apply some fuzzy logic to determine if the mouse is still
1598           inside a control or not. Fixes #82288 (for the third time).
1599
1600 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1601
1602         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
1603           Don't create the child if it has been disposed already (may happen if
1604           the user closes the form the Load event).
1605
1606 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1607
1608         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
1609           #82288.
1610
1611 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1612
1613         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
1614           might call us after we've been destroyed, in which case our own private
1615           parent field is null. Fixes #82326.
1616
1617 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
1618
1619         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
1620         check for setting the dropdown's owner.
1621
1622 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
1623
1624         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
1625         before removing system menu items.
1626
1627 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
1628
1629         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
1630         folding.
1631         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
1632         folding.
1633         * ToolStrip.cs: Add a null check to mnemonics.
1634         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
1635         no ConnectedArea.
1636         [Fixes most of bug #81689]
1637
1638 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1639
1640         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
1641
1642 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1643
1644         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
1645
1646 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1647
1648         * DataGridViewCell.cs: EditType: returns
1649           DataGridViewTextBoxEditingControl always.
1650
1651 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
1652
1653         * TextRenderer.cs: Remove the LineLimit string format flag from the
1654         DrawString fallback method so that things like buttons that aren't
1655         tall enough to draw a full line will still draw part of the text.
1656         [Fixes part of bug #82272]
1657
1658 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1659
1660         * DataGridView.cs: Implemented AutoResizeColumn(s).
1661         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
1662           according to the Alignment.
1663         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
1664           Implement alignment and padding when painting.
1665         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
1666           exists.
1667         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
1668           way.
1669         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
1670           a column is added.
1671
1672 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
1673
1674         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
1675         which is internal.
1676
1677 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
1678
1679         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
1680         hide GetPreferredSize from public API.
1681         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
1682         * ToolStripItem.cs: Stub out drag and drop methods and events.
1683         * ToolStripManager.cs: Stub out Save/LoadSettings.
1684         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
1685         * ToolStripPanel.cs: Fix corcompare error.
1686         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
1687         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
1688         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
1689
1690 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
1691
1692         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
1693         bounds height instead of PreferredHeight.  Puts things back the way 
1694         they were for height while still fixing the width.  Fixes broken unit
1695         tests.
1696
1697 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1698
1699         * Binding.cs: Implement 2.0 constructors and add a null check.
1700
1701 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1702
1703         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
1704           and fix row index (off by one).
1705
1706 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1707
1708         * PropertyGridView.cs: Remove debug output.
1709
1710 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1711
1712         * Control.cs: We need to reset the is_created flags when the handle is
1713           destroyed. Fixes #82187.
1714         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
1715           client coordinates if the window doesn't have a parent.
1716           Win32GetParent returns the parent or the owner, and for top-level
1717           windows with no parent (but with an owner) we were calculating the
1718           location from the location of the owner.
1719         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
1720           form has been disposed.
1721         * MdiClient.cs: Add a null-check.
1722
1723 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
1724
1725         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
1726         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
1727         so we can provide an implementation that returns the current width
1728         and preferred height.  Allows anchor = right to work with TextBox 2.0.
1729         [Fixes bug #82233]
1730
1731 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1732
1733         * ListView.cs: Add support for navigating items in Groups mode, by
1734         creating a big matrix containing all rows and cols of all groups. When
1735         are in other mode than Details, pressing Up should have a similar
1736         behaviour as that one of Down (moving to the next available column if
1737         current one doesn't have an item in the requested row). Also, don't
1738         proceed to use groups if ShowGroups is false.
1739         * ListViewGroup.cs: Add an internal int field to store the starting
1740         row of the group (used by the big matrix used for navigating the
1741         ListView).
1742         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
1743         false.
1744
1745 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
1746
1747         * ToolStripDropDown.cs: When we do Show, start with the 
1748         DefaultDropDownDirection, but if our popup menu is going to off-screen,
1749         modify the direction to keep it on screen.  [Fixes bug #82210]
1750
1751 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
1752
1753         * FileDialog.cs: Accept any FilterIndex value, and store it
1754         unmodified. When FilterIndex is less than 1, or greater than number
1755         of filters, then default to first filter. Only add filter extension to
1756         file if user did not specifiy an extension. When type of dialog is
1757         OpenFileDialog and DefaultExt is set, then only use filter extension
1758         if: CheckFileExists is true and no file wih the default extension
1759         exists, or CheckFileExists is false, and user specified file does not
1760         exist. When CheckFileExists is true, then add first extension of 
1761         selected filter that matches existing file. Perform checks for
1762         existing file, overwrite and create after extension has been added to
1763         file name. When CheckFileExists is true and type is SaveFileDialog,
1764         then only consider first filter extension if DefaultExt is set.
1765         When CheckFileExists is true, then ignore DefaultExt if file with that
1766         extension does not exist. Also perform check for existing file when
1767         type is SaveFileDialog. Changed some field to constants.
1768
1769 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1770
1771         * ListView.cs: Take into account the region used by header
1772         control when doing the vertical scroll (this way we invalidate
1773         the precise area, and don't get any dirty one).
1774
1775 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
1776
1777         * FileDialog.cs: Check for valid filterIndex on button open/save. 
1778         Fixes #82184.
1779
1780 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1781
1782         * ListView.cs: Update some layout calculations in details view
1783         and clean the code in a pair of assignations.
1784
1785 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
1786
1787         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
1788         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
1789         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
1790         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
1791
1792 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
1793
1794         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
1795         performance of thread-safe Graphic methods.  (Thanks rolf!)
1796
1797 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1798
1799         * ListView.cs: When doing the layout calculations, don't calculate
1800         scroll bars before handle is created. This is unnecessary and also
1801         calculating them before handle creation item causes a number of random
1802         bugs (which begin to appear after Chris' big patch for handle creation
1803         fixes). 
1804
1805 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
1806
1807         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
1808         for things that don't have a Graphics object.  Currently, things just use
1809         the static Hwnd.bmp_g which is not thread safe.
1810
1811 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1812
1813         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
1814           dialog. Fixes #82187.
1815
1816 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1817
1818         * DataGridViewElement.cs: Initialize state.
1819         * DataGridView.cs: Forward a few Mouse events to cells. Add
1820           GetRowInternal and GetCellInternal that doesn't unshare rows.
1821           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
1822           don't use the index, but look it up. Add
1823           DataGridViewControlCollection.RemoveInternal to remove controls
1824           that Remove won't remove (scrollbars, edit control).
1825         * DataGridViewColumn.cs: Initialize State correctly.
1826         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
1827           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
1828           implementing this.
1829         * DataGridViewRowCollection.cs: Implemented shared rows.
1830         * DataGridViewRow.cs: Throw exceptions as MS do.
1831         * DataGridViewCell.cs: A few properties are implemented by a
1832           Get<Property> method, so move implementation there and remove the
1833           NIEX in the method. Add a bunch of OnXInternal that DataGridView
1834           calls when necessary.
1835         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
1836           complicates matters.
1837         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
1838           unshare any rows.
1839
1840 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
1841
1842         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
1843         the children controls.  Instead, we will just set up the proper docking for the
1844         children controls so we don't have to worry about it.  [Fixes bug #82188]
1845
1846 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
1847
1848         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
1849         canceling and correct Before/AfterLabelEdit properties as layed out in bug
1850         81847.  [Fixes bug #81847]
1851
1852 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
1853
1854         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
1855         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
1856         an explicit size based on the design-time size of the text.  Since our fonts
1857         may not match this explicit size, we tend to cut off the ends of people's labels.
1858
1859 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
1860
1861         * Menu.cs: Add some missing methods to MenuItemCollection.
1862
1863 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1864
1865         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
1866         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
1867         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
1868         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
1869         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
1870         * DataGridViewElement.cs: State defaults to Visible.
1871         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
1872         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
1873
1874 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1875
1876         * Control.cs: Minor 1.1 corcompare fix.
1877
1878 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
1879
1880         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
1881         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
1882
1883 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1884
1885         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
1886           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
1887           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
1888           DataGridViewSelectedColumnCollection.cs,
1889           DataGridViewSelectedRowCollection.cs: Corcompare work.
1890
1891 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
1892
1893         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
1894         it is autoset by VS2005 designer and the effect is barely noticeable.
1895
1896 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
1897
1898         * TreeView.cs: Implement HitTest.
1899
1900 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1901
1902         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
1903           manually adding and removing the control from the Controls
1904           collecftion.
1905         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
1906           EditingControlInternal property that tracks the editing control.
1907           Always keeping the scrollbars in the Controls collection, as MS
1908           testing confirms is the right behaviour.
1909
1910 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1911
1912         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
1913           according to MSDN and new test.
1914
1915 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
1916
1917         * TreeNode.cs: Implement ToolTipText.
1918         * TreeView.cs: Implement tooltips, NodeMouse* events.
1919
1920 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
1921
1922         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
1923
1924 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
1925
1926         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
1927         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
1928
1929 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
1930
1931         * Control.cs, Form.cs, ContainerControl.cs,
1932         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
1933         for misc properties.
1934
1935 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
1936
1937         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
1938         * TreeView.cs: Implement StateImageList.
1939
1940 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1941
1942         * Form.cs: Don't check if the current form is the active form before
1943           activating it. Fixes #81904.
1944
1945 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1946
1947         * Form.cs: Don't check if the current form is the active form before
1948           activating it. Fixes #81904.
1949
1950 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1951
1952         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
1953
1954 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1955
1956         * Form.cs: Don't try to position the form after loading if the form was
1957           disposed. Fixes #81969.
1958
1959 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1960
1961         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
1962           properties. Had to change ToolBar into ToolStrip, which required a
1963           few #ifs.
1964
1965 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1966
1967         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
1968           resized, fixes part of #79829 (vertical lines in toolbar).
1969           PropertyGrid: Refactored Populate* to something that's easier to
1970           follow at least for me, as well as splitting it up into several new
1971           methods, required to update only subitems when something has
1972           changed by a popup editor or listbox. Don't use events to check
1973           when any values are changed, since the events are unreliable (we're
1974           changing the objects the events are registered with, and if the
1975           event handling requires the objects to be immutable (objects stored
1976           in hashtables for instance), the events will never be raised).
1977         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
1978           everytime we change a value, since events are unreliable.
1979           DropDownButtonClicked: For the same reason don't compare objects to
1980           check if it has changed or not, it would require all objects to
1981           derive Equals. Fix dialog location on windows, MS is doing weird
1982           things when creating parented forms.
1983         * GridEntry.cs: Add a SelectedObject setter.
1984
1985 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
1986
1987         * TreeNode.cs: Add some corcompare attributes.
1988         * TreeNodeCollection.cs: Implement 2.0 stuffs.
1989         * TreeView.cs: Implement some 2.0 stuffs.
1990
1991 2007-07-18  Andreia Gaita  <avidigal@novell.com>
1992
1993         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
1994         for moma.
1995
1996 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
1997
1998         * ListBox.cs: Implement custom tab offsets.
1999
2000 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
2001
2002         * ToolStripContentPanel.cs: Support System renderer.
2003         * ToolStripControlHost.cs: Set RightToLeft to default to No.
2004
2005 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
2006
2007         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
2008
2009 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
2010
2011         * CheckBox.cs: Chain TextAlign to base implementation instead of
2012         maintaining another one.
2013
2014 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
2015
2016         * ButtonBase.cs: Fix an incorrect string constant.
2017
2018 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
2019
2020         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
2021         of creating one for measuring strings.
2022
2023 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
2024
2025         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
2026         Implement MaxItemSize.
2027
2028 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
2029
2030         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
2031         for DeviceContext.  Instead, use the static one available in Hwnd.
2032         Informal tests show this saves about 500k on formtest.exe.
2033
2034 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
2035
2036         * ContainerControl.cs: Implement 2.0 AutoScaling.
2037
2038 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2039
2040         * ComboBox.cs: Work around bug #82120 (bug in mcs).
2041
2042 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
2043
2044         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
2045         Darken the focus color.
2046
2047 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
2048
2049         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
2050         for the checkbox.
2051         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
2052         X, Y instead of a rect for drawing text.
2053         - For ControlPaint.DrawCheckBox, center the check a little better when the
2054         checkbox is odd width.  When drawing a flat checkbox, use a white background
2055         when state != inactive.
2056         [Fixes bugs #82097, 82100]
2057
2058 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
2059
2060         * ListControl.cs: When changing CurrencyManager, disconnect event
2061         handlers from previous one. Fixes bug #81771. Code formatting.
2062
2063 2007-07-15  Andreia Gaita <avidigal@novell.com>
2064
2065         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
2066         full preview invalidation from layout invalidation, and only invalidate
2067         the layout when setting zoom or other properties. Invalidation should
2068         always be done even when resetting properties with the same values as
2069         what is there. Fixes #81744 and #79830.
2070
2071 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2072
2073         * ListView.cs: Implement initial support for Groups. Split some of the
2074         LayoutIcons code to render a partial list of the items (needed by
2075         items contained in ListViewGroup instances). Let the
2076         ListViewItemsCollection.ListView property be modifiable (needed when
2077         using Groups, too).
2078         * ListViewGroup.cs: Use a Bounds property rather than a Location
2079         one. Also invalidate the bounds when they get changed.
2080         * ThemeWin32Classic.cs: When drawing items, also draw the group header
2081         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
2082         method as well.
2083
2084 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2085
2086         * ListView.cs: When space gets pressed and CheckBoxes is true, 
2087         don't invoke the Begin and EndUpdate methods. We are generating 
2088         a redraw of the entire control without need to do so.
2089
2090 2007-07-13  William Holmes <billholmes54@gmail.com> 
2091
2092         * Control.cs: Changing logic in FindFlatForward and 
2093           FindFlatBackward to handle multiple Controls with 
2094           the same TabIndex.  
2095           This fixes bug 81687.
2096
2097 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
2098
2099         * OSFeature.cs: Enable IsPresent.
2100
2101 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2102
2103         * Control.cs: Don't do anything in WmShowWindow if the control has been
2104           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
2105           control is created, put on a form, the control is disposed (the
2106           form is never shown), and then we get a MapNotify, triggering a
2107           WM_SHOWWINDOW.
2108         * Form.cs: Exclude the current form when sending Deactivate to all
2109           MdiChildren.
2110         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
2111           there was a race condition because assigning the handle raises
2112           events, we can get more messages, therefore trying to assign the
2113           handle again, which would fail if any of those event handlers
2114           closed/disposed the control.
2115
2116 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2117
2118         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
2119
2120 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
2121
2122         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
2123         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
2124
2125 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2126
2127         * DateTimePicker.cs: If there's no part format specifier, return an
2128           empty string.
2129
2130 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
2131
2132         * FlatButtonAppearance.cs: Throw NotSupportedException for a
2133         Transparent BorderColor.
2134
2135 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2136
2137         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
2138           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
2139           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
2140           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
2141           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
2142           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
2143           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
2144           Remove warnings.
2145         * X11Structs.cs: Remove warnings, add ToString implementations.
2146
2147 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2148
2149         * XplatUIX11.cs: Translate min/max size according to the actual min/max
2150           size, and not the current size. Fixes #81798.
2151
2152 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2153
2154         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
2155           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
2156           to the control yet).
2157
2158 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2159
2160         * PropertyGridTextBox.cs: Add a method that sends any forwarded
2161           mousedowns to the contained textbox.
2162         * X11Structs.cs: More ToString implementation.
2163         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
2164           #81791.
2165
2166 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2167
2168         * PropertyGridView.cs: Add a null-check, fixes a few tests.
2169
2170 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
2171
2172         * TableLayoutPanelCellPosition.cs: TypeConverter.
2173
2174 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2175
2176         [ Fixes #79761]
2177         
2178         * PropertyGridTextBox.cs: Propagate any color changes to all contained
2179           controls.
2180         * PropertyGridView.cs: A few color fixes.
2181
2182 2007-07-10  Jackson Harper  <jackson@ximian.com>
2183
2184         * TextControl.cs: Remove some old unused text formatting stuff.
2185
2186 2007-07-10  Jackson Harper  <jackson@ximian.com>
2187
2188         * TreeView.cs: Update full row select invalidation to match the
2189         newer DrawSelection... method.
2190         - Make sure to invalidate the entire width when selecting a new
2191         node, if we have full row selection enabled.
2192
2193 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2194
2195         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
2196           display of properties again.
2197
2198 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
2199
2200         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
2201         to existing collections.
2202
2203 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2204
2205         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
2206         that changed between 1.1 and 2.0.
2207
2208 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2209
2210         * PowerStatus.cs: Added.  This is just a data class, it is filled
2211         in by SystemInformation.
2212
2213 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2214
2215         * Message.cs: Add op_Equality and op_Inequality.
2216
2217 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2218
2219         * MenuStrip.cs: Finish corcompare work.
2220
2221 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2222
2223         * LinkArea.cs: Add op_Equality and op_Inequality.
2224
2225 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2226
2227         * Application.cs: Add MessageLoopCallback delegate.
2228
2229 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2230
2231         * ListBox.cs: First set of 2.0 stuffs.
2232
2233 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2234
2235         * Control.cs: Make an internal Height property we can override
2236         without messing up the public API.
2237         * ListBox.cs: Override HeightInternal to always return the size
2238         the user set.  [Fixes bug #80466]
2239
2240 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
2241
2242         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
2243         paint cell borders if we haven't calculated where they go yet.
2244         [Fixes bugs #82040 and #82041]
2245
2246 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2247
2248         * ListView.cs: In Details view, set the location of item_control
2249         in the (0,0) position (and the header_control is thus on the
2250         item_control). This way the Bounds of the Items are relative to the
2251         ListView control (before this, they had a Bounds value without the
2252         header_control offset, which wasn't matching .Net). Fixes #82004.
2253
2254 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2255
2256         * ListControl.cs: When DataSource is set to null, pass an empty
2257         array of object to SetItemsCore. This is done to clean the items
2258         in the ListContol children. Fixes #81788.
2259
2260 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2261
2262         * ListControl.cs: Add 2.0 stuffs.
2263
2264 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2265
2266         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
2267         Refresh is overkill for just about every repaint request.
2268
2269 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2270
2271         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
2272         so remove my custom Get method and fix the property getter.
2273
2274 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2275
2276         * Label.cs: DefaultMargin for 2.0.
2277
2278 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2279
2280         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
2281         reported issue where other controls with mnemonics would steal strokes
2282         from a selected ComboBox.
2283
2284 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2285
2286         * ScrollOrientation.cs: Make internal for 1.1.
2287         * ScrollEventArgs.cs: Add 2.0 stuffs.
2288
2289 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
2290
2291         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
2292         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
2293         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
2294
2295 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2296
2297         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
2298
2299 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2300
2301         * ListView.cs: Implement the so-incredibly broken 2.0 
2302         VirtualItemsSelectionRangeChanged event.
2303
2304 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2305
2306         * ListView.cs: When enter is pressed and selection is non empty,
2307         an OnItemActivate event must be fired.
2308
2309 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2310
2311         * ListView.cs: Store the FocusedItem information as an
2312         int instead of a ListViewItem (needed by VirtualMode).
2313         Update the calls to SetFocusedItem to pass an index instead of
2314         an item.
2315         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
2316         the Focused state from the owner ListView. 
2317
2318 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2319
2320         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
2321         property. Also, invalidate previous focused item in the mentioned
2322         property (match .Net).
2323
2324 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2325
2326         * ListView.cs: Implement 2.0 FocusedItem property setter.
2327
2328 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2329
2330         * ListView.cs: Implement 2.0 TopItem property setter.
2331
2332 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
2333
2334         * StatusStrip.cs: The default renderer is System.
2335         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
2336         if the user specifies it.
2337         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
2338         if we are ManagerRenderMode.
2339         * ToolStripMenuItem.cs: Calculate our text color better.
2340         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
2341         from Professional to the base class based off working with the System renderer.
2342         * ToolStripSystemRenderer.cs: Added.
2343
2344 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2345
2346         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
2347
2348 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
2349
2350         * ToolTip.cs: Implement 2.0 Tag property.
2351
2352 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2353
2354         * ListView.cs: Implement 2.0 HitTest methods.
2355
2356 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2357
2358         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
2359         item is under the pointer or not (sugar). Also remove the TODO
2360         regarding to the cursor changes in OneClick activation.
2361         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
2362         the subitems use the parent's HotFont if UseItemStyleForSubItems is
2363         true; otherwise don't show the underline style.
2364
2365 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2366
2367         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
2368         the code to retrieve the item at position only one time. Also
2369         change cursor when Activation is ItemActivation.OneClick as well
2370         as invalidate the item if HotTracking is true (to show/hide the
2371         underline style). Add an internal HotItemIndex property to retrieve
2372         the current hot item's index.
2373         * ListViewItem.cs: Add an internal HotFont property to cache the
2374         font used when HotTracking is true and the pointer moves within the
2375         item's borders.
2376         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
2377         HotFont depending on the hot state of the item.
2378
2379 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2380
2381         * ListView.cs: Implement 2.0 HotTracking property.
2382
2383 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
2384
2385         * ToolStripControlHost.cs: If our hosted control never got created,
2386         don't try to dispose it.  [Fixes bug #81909]
2387
2388 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
2389
2390         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
2391
2392 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
2393
2394         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
2395
2396 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2397
2398         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
2399         Details view.
2400         * DrawListViewColumnHeaderEventArgs.cs:
2401         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
2402         using the DrawText () methods.
2403
2404 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
2405
2406         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
2407         background which got erased in my changes yesterday.
2408
2409 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2410
2411         * ListViewItem.cs: Actually set bounds for subitems in Details view
2412         (2.0 feature).
2413         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
2414         can invoke from the owner draw routines if we need it. Also, add
2415         support for Owner draw in Details view.
2416
2417 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
2418
2419         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
2420         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
2421         ShowImageMargin setting, properly align text in a ToolStripLabel
2422         hosted on a ToolStripDropDown.
2423
2424 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
2425
2426         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
2427         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
2428
2429 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2430
2431         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
2432
2433 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
2434
2435         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
2436         location to match ToolStripMenuItems.
2437
2438 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2439
2440         * DrawListViewColumnHeaderEventArgs.cs:
2441         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
2442         column headers in ListView. 
2443
2444 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
2445
2446         * UserControl.cs: Implement AutoSize.
2447
2448 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2449
2450         * DrawListViewItemEventArgs.cs:
2451         * ListView.cs:
2452         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
2453         ListView.
2454
2455 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
2456
2457         * ToolStripDropDownItemAccessibleObject.cs: Added.
2458         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
2459         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
2460         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
2461         ToolStripTextBox.cs: corcompare work.
2462
2463 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
2464
2465         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
2466         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
2467         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
2468                 corcompare.
2469
2470 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
2471
2472         * OSFeature.cs: Add IsPresent.
2473         * PrintPreviewControl.cs: Add RightToLeft.
2474         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
2475         * SplitterPanel.cs: Add AutoSizeMode.
2476
2477 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
2478
2479         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
2480         * MdiClient.cs: Add 2.0 ScaleControl.
2481         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
2482         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
2483
2484 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
2485
2486         * Form.cs: Implement some scaling methods, stub some RTL methods,
2487         corcompare work.
2488
2489 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
2490
2491         * Control.cs: corcompare work.
2492         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
2493
2494 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
2495
2496         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
2497         ControlPaint 2.0 stuffs.
2498
2499 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2500
2501         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
2502
2503 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2504
2505         * UpDownBase.cs: Add 2.0 stuffs.
2506
2507 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2508
2509         * NumericUpDown.cs: Add 2.0 stuffs.
2510
2511 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2512
2513         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
2514
2515 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2516
2517         * ErrorProvider.cs: Implement 2.0 stuffs.
2518
2519 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2520
2521         * DomainUpDown.cs: Implement 2.0 stuffs.
2522
2523 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2524
2525         * CheckedListBox.cs: Fix RefreshItems signature.
2526
2527 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2528
2529         * PictureBox.cs: Implement 2.0 stuffs.
2530
2531 2007-06-12  Andreia Gaita  <avidigal@novell.com>
2532         
2533         * TabControl.cs: Check if there are tabpages before checking
2534         the selected index - fix #81802 (font changes raise a ResizeTabs
2535         call on controls.add, which blew up nicely with no tabpages)
2536
2537 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2538
2539         * ListView.cs:
2540         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
2541
2542 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2543
2544         * ListView.cs:
2545         * ListViewItem.cs: In VirtualMode the selection information
2546         resides in the ListView, rather than in the Items. Also, throw
2547         InvalidOperationExceptions when VirtualMode is being used and
2548         CheckedItemCollection is accessed.
2549
2550 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
2551
2552         * ComboBox.cs: Add ScaleControl.
2553
2554 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
2555
2556         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
2557
2558 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
2559
2560         * GroupBox.cs: Add 2.0 stuffs.
2561
2562 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
2563
2564         * Panel.cs: Add autosize properties/event.
2565
2566 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
2567
2568         * Control.cs:
2569         - When we remove a control, remove it from the collection before performing the layout.
2570         - Setup an internal property for explicit_bounds.
2571         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
2572         - Perform a layout when we set a new AutoSizeMode.
2573
2574 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
2575
2576         * ScrollableControl.cs: Add 2.0 stuffs.
2577
2578 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2579
2580         * ScrollBar.cs: Add 2.0 stuffs.
2581
2582 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2583
2584         * Splitter.cs: Add 2.0 stuffs.
2585
2586 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2587
2588         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
2589         to have BindingContext simply use base implementation.
2590
2591 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2592
2593         * ColumnHeader.cs: corcompare fix.
2594
2595 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2596
2597         * Button.cs: corcompare fixes.
2598         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
2599
2600 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2601
2602         * Button.cs: Override GetPreferredSizeCore.
2603         * ButtonBase.cs: PerformLayout after changing properties that can affect
2604         AutoSize.  Simplify some mouse/keyboard code.
2605         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
2606         * MouseEventArgs.cs: Make Location internal for 1.1.
2607         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
2608         * Theme.cs: Add CalculateButtonAutoSize.
2609         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
2610
2611 2007-06-05  Miguel de Icaza  <miguel@novell.com>
2612
2613         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
2614
2615 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2616
2617         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
2618         since we can get different item instances every time we retrieve it.
2619
2620 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2621
2622         * ListView.cs: Work around for #81602, since an unkown an pretty
2623         infrequent condition appears only in some systems (old linux boxes, it
2624         seems).
2625
2626 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
2627
2628         * Button.cs: Completely reformat and a little refactor to bring
2629         this closer to Mono circa 2007.
2630
2631 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
2632
2633         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
2634         to be ButtonBase.Invalidate.
2635
2636 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
2637
2638         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
2639
2640 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
2641
2642         * ButtonBase.cs: Completely reformat and a little refactor to bring
2643         this closer to Mono circa 2007.
2644
2645 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
2646
2647         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
2648         values for autosize. Fixes #80137.
2649
2650 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
2651
2652         * Control.cs: Don't perform layout when AutoSize changes.
2653         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
2654         directly when autosizing, use SetBounds with BoundsSpecified.None.
2655         Fixes unit tests my last commit broke.
2656
2657 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
2658
2659         * Control.cs: Perform layout when AutoSize changes.
2660         * Form.cs: Implement AutoSizing.
2661
2662 2007-06-01  Chris Toshok  <toshok@ximian.com>
2663
2664         * DataGrid.cs: remove the XXX'ed check at the top of
2665         ProcessGridKey.  fixes #80464.
2666
2667 2007-06-01  Chris Toshok  <toshok@ximian.com>
2668
2669         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
2670         adding idempotent (add/remove in Edit()), and also make sure we
2671         don't add it until after we set the text, so it's not tripped in
2672         Edit().  Fixes unit test regression.
2673
2674 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
2675
2676         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
2677         change is user explicit, not when the layout engine moves stuff.  Fixes
2678         anchoring to bottom and right.  [Fixes bug #81790]
2679
2680 2007-06-01  Andreia Gaita  <avidigal@novell.com>
2681
2682         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
2683
2684 2007-06-01  Andreia Gaita  <avidigal@novell.com>
2685
2686         * ContainerControl.cs: 
2687         Fire enter event for common ancestor if it is not a ContainerControl.
2688         Send focus to the active_control and not the 'value', the active 
2689         control might have been changed in one of the events fired.     
2690         Definitely fixes #80159.
2691
2692 2007-06-01  Andreia Gaita  <avidigal@novell.com>
2693
2694         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
2695
2696 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2697
2698         * PropertyGrid.cs: Anchor the help description to the bottom of the
2699           help panel and refactor SelectGridItem into a
2700           SelectGridItemInternal that can be set to null (and update it to
2701           clear the help texts when it is set to null). Set root item to null
2702           when there's no SelectedObject. Fixes #80438.
2703         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
2704           when we're recalculating after a resize (only).
2705
2706 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2707
2708         * ListView.cs: Implement 2.0 RedrawItems method.
2709
2710 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2711
2712         * ListControl.cs: Disconnect PositionChanged and ItemChanged
2713         handlers from previous data manager when DataSource is set to
2714         null. Fixes #81771.
2715
2716 2007-05-31  Jackson Harper  <jackson@ximian.com>
2717
2718         * TextBoxBase.cs: These seem to be the correct values.
2719
2720 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
2721
2722         * FileDialog.cs: When close dialog with ok set filterindex using combobox
2723         value. Fixes #81784.
2724
2725 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
2726
2727         * Control.cs: Implement 2.0 scaling methods.
2728
2729 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2730
2731         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
2732           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
2733           corcompare issues.
2734
2735 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2736
2737         * ProgressBar.cs: Implemented missing 2.0 members.
2738
2739 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2740
2741         * Control.cs: Corcompare issues.
2742         * MessageBox.cs: Implemented missing 2.0 functions.
2743
2744 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2745
2746         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
2747           Implemented more 2.0 members.
2748
2749 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2750
2751         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
2752           null (strange, but it seems to happen when running unit tests).
2753
2754 2007-05-30  Andreia Gaita  <avidigal@novell.com>
2755
2756         * ContainerControl.cs: Set active_control even earlier, before 
2757         firing any events, and undo it if validation returns false.
2758
2759 2007-05-30  Andreia Gaita  <avidigal@novell.com>
2760
2761         * ContainerControl.cs: Raise Validation and Enter/Leave events
2762         even if there is no Form and set active_control earlier, just
2763         before firing Enter events (toshok's patches). Fixes #80647.
2764
2765 2007-05-30  Jackson Harper  <jackson@ximian.com>
2766
2767         * TextControl.cs: Redid the pageup/pagedown a little to simplify
2768         things and fix bug #81311.
2769
2770 2007-05-30  Jackson Harper  <jackson@ximian.com>
2771
2772         * X11Dnd.cs: Now that we have our own event loop, we need to
2773         cancel when we get a mouseup but it won't be accepted.
2774
2775 2007-05-30  Chris Toshok  <toshok@ximian.com>
2776
2777         * DataGrid.cs (set_CurrentCell): guard against negative
2778         column/row.
2779
2780         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
2781         array index syntax instead of looping over the property names.
2782
2783         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
2784         and set IsInEditOrNavigateMode to false there.
2785
2786 2007-05-30  Jackson Harper  <jackson@ximian.com>
2787
2788         * TreeView.cs: Make sure we don't get a bad visible order when
2789         setting to the top node.  Fixes some misc crashing in
2790         ControlInspector.
2791
2792 2007-05-30  Andreia Gaita  <avidigal@novell.com>
2793
2794         * UserControl.cs: Add 2.0 AutoSizeMode
2795
2796 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2797
2798         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
2799
2800 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2801
2802         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
2803         lines. Fixes #80285. 
2804
2805 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2806
2807         * DataGridColumnStyle.cs: Add char trimming column header text format. 
2808
2809 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2810
2811         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
2812         Fixes #80147.
2813
2814 2007-05-29  Jackson Harper  <jackson@ximian.com>
2815
2816         * TreeNode.cs: Fix off by one on calculating whether or not a node
2817         is visible.
2818
2819 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
2820
2821         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
2822         * ScrollableControl.cs: Force an UpdateDistances when we move the
2823         scrollbars.
2824         [Fixes bug #80605]
2825
2826 2007-05-29  Andreia Gaita  <avidigal@novell.com>
2827
2828         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
2829         update the page setup screen.
2830
2831 2007-05-29  Andreia Gaita  <avidigal@novell.com>
2832
2833         * PageSetupDialog.cs: Fix landscape mode.
2834
2835 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2836
2837         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
2838         IconSizeHorizontalSpacing.
2839
2840 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2841
2842         * ListView.cs: The declaration of prev_tooltip_item should be inside
2843         a NET_2_0 conditional (avoid a warning).
2844
2845 2007-05-28  Andreia Gaita  <avidigal@novell.com>
2846
2847         * PageSetupDialog.cs: Implement PrintPreview control to display
2848         the preview thumbnail. Change unit conversion to use 
2849         PrinterUnitConvert methods.
2850         
2851         Note: there is a huge bug in ms.net where the default margins are 
2852         interpreted as centimeters (?), when in fact they are set in inches. When 
2853         loading the page setup dialog initially (ms.net), the default margins 
2854         are set to 1 inch, and the dialog shows them with value 10, when in fact 
2855         it should be 25 (properly converted). Our dialog doesn't have this bug.
2856         
2857         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
2858         RectangleF.
2859         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
2860
2861 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2862
2863         * ListView.cs:
2864         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
2865         items.
2866
2867 2007-05-28  Andreia Gaita  <avidigal@novell.com>
2868
2869         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
2870         an IntPtr on csc (it builds fine on mcs, could it be a compiler
2871         bug?), convert the ptr to Int32 first.
2872
2873 2007-05-28  Jackson Harper  <jackson@ximian.com>
2874
2875         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
2876         recieved, we will exit the dnd tracking loop.
2877
2878 2007-05-28  Jackson Harper  <jackson@ximian.com>
2879
2880         * X11Dnd.cs: Keep tracking until the xdnd finished event is
2881         recieved. TODO: I should probably stick a timer on the dropped
2882         event, and finish the drag if the XDND Finished event never shows
2883         (because some apps don't seem to send it).
2884
2885 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
2886
2887         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
2888         #81733.
2889
2890 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2891
2892         * MonthCalendar.cs: Only mark the keypresses we actually handle as
2893           handled.
2894
2895 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2896
2897         * MonthCalendar.cs: Set the size after initializing all the relevant
2898           variables. Fixes #81742.
2899
2900 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2901
2902         * KeyEventArgs.cs: Fix typo.
2903
2904 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
2905
2906         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
2907         to match MS. Fixed MinDate to only accept value less than or equal
2908         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
2909         Removed TODO's that are now verified by unit tests.
2910
2911 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
2912
2913         * TreeNodeCollection.cs: Minor corrections to exceptions to match
2914         MS.
2915
2916 2007-05-25  Jackson Harper  <jackson@ximian.com>
2917
2918         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
2919         it's own message loop.
2920         * XplatUIX11.cs: Remove some of the dnd hooks
2921
2922 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
2923
2924         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
2925         instead of MinimizedWindowSize.
2926
2927 2007-05-25  Jackson Harper  <jackson@ximian.com>
2928
2929         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
2930
2931 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2932
2933         * KeyEventArgs.cs: Added SuppressKeyPress.
2934         * Control.cs: Added support for SuppressKeyPress.
2935
2936 2007-05-24  Andreia Gaita  <avidigal@novell.com>
2937
2938         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
2939         problems with PieChart. suppress_validation should not be a counter,
2940         if there are several BeginInit calls, the first EndInit will 
2941         activate validation. Fix exceptions thrown by set_Value.
2942         * UpDownBase.cs: ValidateText only if it's the user editing it.
2943
2944 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2945
2946         * ListControl.cs: FilterItemOnProperty should return the filtered
2947         item proeprty even if DataSource is null. The same applies for
2948         GetItemText. Fixes #80427.
2949
2950 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
2951
2952         * Control.cs: If a control doesn't have a parent when it's Dock is
2953         set, but it has children, it needs to do a layout.  Fixes some nested
2954         controls issues.  [Fixes bug #81199]
2955
2956 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2957
2958         * ComboBox.cs: If there are few items in the drop down list, make it
2959           the exact size the items need, no bigger. Fixes #81612.
2960
2961 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
2962
2963         * Application.cs: When we have captured the keyboard for a menu,
2964         check for mouse down events in case we need to close the menu.
2965         * Control.cs, Form.cs: Remove mouse down checks for menus.
2966
2967 2007-05-24  Jackson Harper  <jackson@ximian.com>
2968
2969         * TextControl.cs: Handle tabs in non multiline mode a little
2970         differently.
2971
2972 2007-05-24  Jackson Harper  <jackson@ximian.com>
2973
2974         * TextControl.cs: We need to manually break apart tabbed text and
2975         move the tabs, since the system.drawing tabbing mechanism relies
2976         on tab stops.
2977         * TextBoxBase.cs: Move the caret properly when the user enters a
2978         tab.
2979
2980 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
2981
2982         * ContainerControl.cs: Don't check CanSelect before calling
2983         ProcessMnemonic.
2984         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
2985         release a KeyboardActive on click if it's not ours.
2986
2987 2007-05-23  Andreia Gaita  <avidigal@novell.com>
2988
2989         * ColumnHeader.cs: Add TypeConverter
2990
2991 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2992
2993         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
2994
2995 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2996
2997         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
2998
2999 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
3000
3001         * LinkLabel.cs: Implement public Padding property.
3002
3003 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
3004
3005         * LinkLabel.cs: Implement public FlatStyle.
3006
3007 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
3008
3009         * Control.cs: Apply patch from George to call parent.PerformLayout
3010         when Visible is changed.  [Fixes bugs #81118, 81718]
3011
3012 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
3013
3014         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
3015
3016 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
3017
3018         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
3019
3020 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
3021
3022         * ContextMenu.cs: Implement Collapse.
3023
3024 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
3025
3026         * ToolBarButton.cs: Implement Name.
3027
3028 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
3029
3030         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
3031         use current_item, it prevents some NRE. Fixes #81675.  
3032
3033 2007-05-22  Andreia Gaita  <avidigal@novell.com>
3034
3035         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
3036         without updating the text.
3037
3038 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
3039
3040         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
3041         without calling DeleteObject.  [Should fix bug #81709]
3042
3043 2007-05-22  Jackson Harper  <jackson@ximian.com>
3044
3045         * RichTextBox.cs: Set the line endings correctly, when flushing
3046         RTF text.
3047
3048 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
3049
3050         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
3051          {Width=0,Height=0}.
3052
3053 2007-05-22  Jackson Harper  <jackson@ximian.com>
3054
3055         * TreeView.cs: Setting top with a null node should set to the very
3056         top.
3057
3058 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3059
3060         * Form.cs: ShowDialog: destroy the handle when message loop is
3061           finished, matches MS behaviour. Refactor parts of WmClose into
3062           RaiseCloseEvents, that only raises events if they haven't already
3063           been raised. Fixes #81688 and #81521.
3064         * Application.cs: Don't call close on the form when exiting a modal
3065           loop, it will raise all the (Form)Closed/Closing events again if
3066           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
3067           which doesn'r raise any events it they have been raised before.
3068
3069 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
3070
3071         * Control.cs: Add OnPrint.
3072         * ToolStrip.cs: Add GetChildAtPoint.
3073         * ToolStripContainer.cs: Add OnRightToLeftChanged.
3074         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
3075
3076 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
3077
3078         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
3079
3080 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3081
3082         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
3083           isn't visible anymore. Fixes #81651.
3084
3085 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3086
3087         * Control.cs: WmShowWindow: Update children's z-order after setting
3088           their parent. SetParent may show the window, thereby corrupting
3089           z-order, since the window will be shown on top.
3090         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
3091           multiple (and redundant) WM_SHOWWINDOW messages.
3092         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
3093           event has already been raised.
3094         * Form.cs: Change is_changing_visible_state to a counter, since
3095           SetVisibleCore can be called recursively. CreateHandle: when
3096           creating mdi children, send (De)Activated events.
3097         * MdiClient.cs: Update use of is_changing_visible_state.
3098         * Application.cs: OnThreadException: Surround exception handling with
3099           try/finally to ensure we always reset the error-handling state
3100           before leaving.
3101
3102 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3103
3104         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
3105           (#81704).
3106
3107 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3108
3109         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
3110         SmallIcon views, now that we have a standarized horizontal spacing.
3111
3112         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
3113         4, just like the other views (Match .Net).
3114
3115 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
3116
3117         * Control.cs: Delay calculating anchor distances until we actually layout.
3118         Always query the WM for the actual size and location it put us at instead of
3119         only when we send negative values.
3120         [Fixes bugs #81694, 81695]
3121
3122 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3123
3124         * Application.cs: Avoid a possible stack overflow when trying to exit
3125           the application.
3126
3127 2007-05-19  Marek Safar  <marek.safar@gmail.com>
3128
3129         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
3130         enum value.
3131
3132 2007-05-19  Andreia Gaita  <avidigal@novell.com>
3133
3134         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
3135         * NumericUpDownAcceleration.cs, 
3136           NumericUpDownAccelerationCollection.cs: Added 2.0
3137           implementation.
3138
3139 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
3140
3141         * RichTextBox.cs: Recalculate the document after the ScrollBars
3142         property is changed. Fixes bug #81681.
3143
3144 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
3145
3146         * DataObject.cs: Implement 2.0 methods.
3147
3148 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3149
3150         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
3151         in the center of the checkbox, not in the left-top corner. 
3152         Fixes #80037.
3153
3154 2007-05-18  Jackson Harper  <jackson@ximian.com>
3155
3156         * RichTextBox.cs: Recalculate the document after the scrollbars
3157         property is changed.
3158         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
3159         81486.
3160
3161 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3162
3163         * CreateParams.cs: Make HasWindowManager marginally faster.
3164         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
3165           into Hwnd so that other drivers can use it as well.
3166         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
3167           the default location from Hwnd. Fixes MDI client windows always
3168           showing up at (0,0) in Windows (Win32 won't set the default
3169           location since the window styles aren't correct).
3170
3171 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
3172
3173         * TreeView.cs: Modified DoubleBuffered to just use the base
3174         implementation.
3175
3176 2007-05-18  Jackson Harper  <jackson@ximian.com>
3177
3178         * TreeView.cs: Set the top node to the last child node when
3179         expanding all
3180         - When we get focus, if there is no selected node, use the top
3181         node.
3182
3183 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
3184
3185         * KeysConverter.cs: Add CanConvertTo.
3186         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
3187         * LinkConverter.cs: Added.
3188
3189 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
3190
3191         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
3192         it prevents error when file dont have write access. Fixes #81669 and #81667.  
3193
3194 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
3195
3196         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
3197         button text. Fixes #79640.  
3198
3199 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
3200
3201         * Control.cs: According to MSDN controls created in the designer theres 
3202         keyboard accelerators visible by default. So included check for design
3203         in ShowKeyboardCuesInternal.  
3204
3205 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
3206
3207         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
3208         text. Fixes #81621.  
3209
3210 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
3211
3212         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
3213         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
3214
3215 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
3216
3217         * Control.cs: Finish implementation of UI State using WmChangeUIState
3218         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
3219         in some controls to check for show_keyboard_cues to draw accell keys "_".  
3220
3221 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3222
3223         * ListBox.cs: When calculating the horizontal scrollbar
3224         in single column mode, don't use values less than 0 for
3225         Maximum. Fixes #81474.
3226
3227 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3228
3229         * ListBox.cs: Throw the some missing exceptions in
3230         ListBox.ObjectCollection methods.
3231
3232 2007-05-17  Jackson Harper  <jackson@ximian.com>
3233
3234         * TextBoxBase.cs: Recalculate the document when the word wrap
3235         value has changed. This fixes 81488.
3236
3237 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
3238
3239         * Clipboard.cs: Implement missing GetText overload.
3240
3241 2007-05-17  Chris Toshok  <toshok@ximian.com>
3242
3243         * Control.cs (CheckDataBindings): remove the binding_context arg
3244         to binding.Check.
3245
3246         * CurrencyManager.cs (OnItemChanged): fix this now that
3247         BindingManagerBase is fixed. also remove the comment telling where
3248         the fix should go.  We set transfering_data to true/false around
3249         the call to PushData to keep UpdateIsBinding from being called.
3250         (ListChangedHandler): remove the extra OnMetaDataChanged call for
3251         PropertyDescriptorAdded in the 1.1 case.  The extra call is
3252         actually generated by System.Data generating 2 metadata changed
3253         events of its own per column add.  The fix should go there.  Add a
3254         comment to that affect in our test's Assert.Ignore.
3255
3256         * BindingManagerBase.cs: Rework PullData and PushData slightly.
3257         we keep a boolean flag (transfering_data) that keeps us from
3258         calling UpdateIsBinding multiple times if we re-enter either of
3259         them.
3260
3261         * ControlBindingsCollection.cs (AddCore): remove the
3262         binding_context arg to binding.Check.
3263
3264         * Binding.cs (IsBinding): don't check if we're binding here, just
3265         return our cached value.  we update it in UpdateIsBinding.
3266         (Check): don't take the binding_context arg, we'll just use our
3267         control's.  Also, for some reason MS doesn't use the data member
3268         field when getting the bindingmanager for this binding.  it just
3269         uses the datasource.  Make this method callable multiple times,
3270         and only do the is_null_desc stuff if manager.Position != -1 (so
3271         we don't get an exception accessing manager.Current).
3272         (UpdateIsBinding): move the code from IsBinding here.
3273         (PositionChangedHandler): call Check here to we can initialize
3274         things that require a non- -1 position.
3275
3276 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
3277
3278         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
3279         control.
3280
3281 2007-05-17  Andreia Gaita  <avidigal@novell.com>
3282
3283         * TabControl.cs: Add 2.0 methods and events, including
3284         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
3285         * TabPage.cs: Add 2.0 methods
3286
3287 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
3288
3289         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
3290         keyboard_cues is properly handled by message method.  
3291
3292 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
3293
3294         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
3295
3296 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
3297
3298         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
3299
3300 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
3301
3302         * Control.cs: 
3303         - WmUpdateUIState added to handle state changes, it make call to
3304         OnChangeUICues event.
3305         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
3306         SystemInformation.
3307
3308 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
3309
3310         * ImageKeyConverter.cs: Added.
3311         * TreeViewImageKeyConverter.cs: Added.
3312
3313 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3314         
3315         * ToolTips.cs: Update Text if SetToolTip is called for a control
3316         already showing the tooltip, as well as restarting its timer; show
3317         tooltip if we are inside the control bounds by the time of calling
3318         SetToolTip. Inside ShowTooltip remove the check to not show the 
3319         tooltip again for the active control (it is allowed by .Net to 
3320         show the tooltip on the same control multiple times).
3321
3322 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3323
3324         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
3325
3326 2007-05-16  Andreia Gaita <avidigal@novell.com> 
3327
3328         * ContainerControl.cs: only process tab key if there are no 
3329         modifier keys present, otherwise the control does the 
3330         tab processing, if it needs to. Fixes #81622
3331         * TabControl.cs: Fixes calculation for which tab to select on
3332         shift+ctrl+tab.
3333
3334 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3335
3336         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
3337
3338 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
3339
3340         * Control.cs: Make IsInputCharInternal to allow controls to
3341         override it and still match MS API.
3342         * TextBoxBase.cs: Override IsInputCharInternal and always
3343         return true.
3344         [Fixes bug #81616]
3345
3346 2007-05-15  Jackson Harper  <jackson@ximian.com>
3347
3348         * TextBox.cs: Disable some of the menu options when using a
3349         readonly textbox.
3350
3351 2007-05-15  Jackson Harper  <jackson@ximian.com>
3352
3353         * TextBox.cs:
3354         * TextBoxBase.cs:
3355         * RichTextBox.cs: Some new 2.0 methods
3356
3357 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
3358
3359         * FileDialog.cs: On 1.0 profile, do not support multidotted 
3360         extensions.
3361
3362 2007-05-14  Jackson Harper  <jackson@ximian.com>
3363
3364         * TextBoxBase.cs: Implement some of the new 2.0 methods.
3365         * RichTextBox.cs: We need to override these methods on 2.0.
3366         * MaskedTextBox.cs: These are implemented now
3367         * TextControl.cs: This was off by one.
3368
3369 2007-05-14  Jackson Harper  <jackson@ximian.com>
3370
3371         * TextControl.cs: Because the line endings are including in the
3372         text, we don't need to add them in anymore.
3373
3374 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3375
3376         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
3377         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
3378
3379 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3380
3381         * ToolBar.cs: Adjust size to default size when button theres no text and
3382         image, it fixes remaining issues from #81524.
3383
3384 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3385
3386         * ToolBar.cs: 
3387         - When not flat call redraw to recalculate sizes on creare handle to match
3388         win32 behavior.
3389         - Revert 77220 because it causes some regressions in toobar
3390         button.
3391
3392 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3393
3394         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
3395           now actually enters a usable state.
3396
3397 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3398
3399         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
3400         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
3401         3 buttons.
3402
3403 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3404
3405         * ToolBar.cs: Save default_size on create handle to use later for buttons
3406         without text, needed to mimic win32 behavior.
3407
3408 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3409
3410         * ToolBar.cs: Fix button layour to best fit width or height according to
3411         vertical or not. Fixes #81524.
3412
3413 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
3414
3415         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
3416         toolbar size info because different styles theres different sizes.
3417         Fixes #81522.
3418
3419 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3420
3421         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
3422         if we are using checkboxes, checked is true, and we have less
3423         than two images in StateImageList; for the 1.1 in the same scenario
3424         draw the first image if we have at least one image in StateImageList.
3425         Fixes part of #81191.
3426
3427 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
3428
3429         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
3430         the owner's Items collection on merge.
3431
3432 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
3433
3434         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
3435         * ToolStripItemCollection.cs: Lots of fixes to when events get called
3436         and parent/owner gets changed based on gert's unit tests.
3437
3438 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3439
3440         * MaskedTextBox.cs: Started implementing parts of it.
3441
3442 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3443
3444         * ListView.cs: When clicking the checkbox on the items
3445         take into account the double clicks even if we have only
3446         one image in StateImageList (only for 1.0/1.1). Also 
3447         generate an extra change of checked state when we receive
3448         the second click on checkbox (match .Net behaviour). 
3449         Fixes part of #81191.
3450
3451 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
3452
3453         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
3454
3455 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
3456
3457         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
3458         even if OnLoad is overriden and base.OnLoad is not called.
3459         [Fixes bug #81582]
3460
3461 2007-05-10  Andreia Gaita  <avidigal@novell.com>
3462
3463         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
3464         shame. (I blame my ever-persisting and annoying cold)
3465
3466 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
3467
3468         * ListView.cs: Don't eat navigation keys.  Let them flow through to
3469         KeyDown/KeyPress routines.  [Fixes bug #81569]
3470
3471 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
3472
3473         * ListView.cs: When handling keys for selecting the item based off
3474         keyboard input, do not consider keys pressed with Alt or Control.  Also,
3475         correctly handle keys when the Shift key is down. [Fixes bug #81578]
3476
3477 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
3478
3479         * Control.cs: When using UseWaitCursor, we have to store the requested
3480         Cursor to use when UseWaitCursor is turned off.
3481
3482 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
3483
3484         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
3485         to false.
3486         * Application.cs: Use PreProcessControlMessage instead of
3487         PreProcessMessage.
3488         * PreProcessControlMessage.cs: Make internal for 1.1.
3489
3490 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3491
3492         * Control.cs: Add InternalContains focus property, which hast the same
3493         functionality of ContainsFocus, but also including implicit controls.
3494         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
3495         since we need to know if the focus is contained in our implicit
3496         ItemControl when calculating Layout. Fixes part of #80888.
3497
3498 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
3499
3500         * ToolTip.cs: Remove center form string alignment as it must be align to
3501         left.
3502
3503 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
3504
3505         * ToolStripItemCollection.cs: Set the new item's parent and owner
3506         in Insert like we do in Add.  [Fixes bug #81568]
3507
3508 2007-05-08  Jackson Harper  <jackson@ximian.com>
3509
3510         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
3511         - Off by one error in SetTop
3512         - Disable DoubeBuffering
3513         
3514 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3515
3516         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
3517           control as much as necessary in order to make it entirely visible,
3518           instead of centering the control in the container (matches MS
3519           behaviour). CalculateCanvasSize: we need to take the current scroll
3520           position into account when calculating the maximum canvas,
3521           otherwise the following scenario will fail: resize so that the
3522           scrollbars appear, use the scrollbars to scroll, resize again
3523           smaller, and now the canvas size is too small. Recalculate: when
3524           showing scrollbars make sure they start off at 0, and try to scroll
3525           the active control into view. Fixes #79540. HandleScrollBar: don't
3526           scroll anywhere if the scrollbar isn't visible.
3527
3528 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3529
3530         * ListView.cs: When focus changed, call Layout/Invalidate
3531         in the focused item to update the selected state (should show
3532         entire label when ListView is focused, and a part of it if is not).
3533         * ListViewItem.cs: When doing layout for LargeIcon, take into account
3534         for displaying the entire label not only the Focused state of the
3535         item, but also the Focused state of the ListView (match .Net
3536         behaviour).
3537
3538 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3539
3540         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
3541         Implement UseWaitCursor. 
3542
3543 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3544         Applying contributed patch from Sergey Volk.
3545
3546         * Clipboard.cs: Implement SetDataObject retry logic and new overload
3547         of SetDataObject.
3548         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
3549
3550 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3551
3552         * Control.cs: Implement DrawToBitmap.
3553
3554 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3555         Applying contributed patch from Stefan Noack.
3556         
3557         * Control.cs: Add [Get|Set]AutoSizeMode.
3558
3559 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3560
3561         * MdiClient.cs: Unmerge menus when the last child is closed.
3562
3563 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3564
3565         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
3566         * ToolStripManager.cs: Call Merge on DropDowns.
3567         [Fixes bug #81477]
3568
3569 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3570
3571         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
3572           uints.
3573         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
3574           visibility. We can't create forms visible, since we have to set the
3575           owner before making the form visible (otherwise Win32 will do
3576           strange things with task bar icons). The problem is that we set the
3577           internal is_visible to true before creating the control, so
3578           is_changing_visible_state is the only way of determining if we're
3579           in the process of creating the form due to setting Visible=true -
3580           this works because SetVisibleCore explicitly makes the form
3581           visibile afterwards anyways. Fixes #80775.
3582
3583 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3584
3585         * ThemeWin32Classic.cs: When drawing ListViewItems,
3586         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
3587         or LargeIcon _and_ item is not focused (match .Net behaviour).
3588
3589 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * Control.cs, Form.cs: Fix some obsolete method warnings.
3592
3593 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
3594
3595         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
3596         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
3597
3598 2007-05-04  Andreia Gaita  <avidigal@novell.com>
3599
3600         * ContainerControl.cs: Fix active_control attribution when going
3601         up the parent chain so that the first parent container gets the control
3602         and the rest of the parent containers get the child containers (skips
3603         non-containers). Fixes #80729
3604
3605 2007-05-04  Randolph Chung  <tausq@debian.org>
3606
3607         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
3608         [Fixes bug #81499]
3609
3610 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3611
3612         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
3613           takes a size parameter, since the CreateParam's size isn't true for
3614           minimized forms. Fixes #81518,
3615
3616 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3617
3618         * Form.cs: Add OnDeactivateInternal.
3619         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
3620
3621 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3622
3623         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
3624           accessing the parent. Fixes #81508.
3625
3626 2007-05-03  Chris Toshok  <toshok@ximian.com>
3627
3628         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
3629         2.0 block, pass listposition + 1 to ChangeRecordState when a row
3630         was added before the current listposition.  Fixes the
3631         TestInsertRowBeforeCurrent unit test.
3632
3633 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
3634
3635         * Application.cs: Add RaiseIdle.
3636         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3637         XplatUIX11.cs: Implement RaiseIdle.
3638
3639 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
3640         corcompare work: N - Z
3641         * NotifyIcon.cs
3642         * ProgressBar.cs
3643         * RadionButton.cs
3644         * ScrollableControl.cs
3645         * SplitContainer.cs
3646         * SplitterPanel.cs
3647         * StatusBar.cs
3648         * SystemInformation.cs
3649         * TabControl.cs
3650         * TableLayoutControlCollection.cs
3651         * TableLayoutPanel.cs
3652         * TabPage.cs
3653         * ToolBar.cs
3654         * ToolBarButton.cs
3655         * ToolStrip.cs
3656         * ToolStripComboBox.cs
3657         * ToolStripContainer.cs
3658         * ToolStripContentPanel.cs
3659         * ToolStripDropDown.cs
3660         * ToolStripDropDownItem.cs
3661         * ToolStripDropDownMenu.cs
3662         * ToolStripItem.cs
3663         * ToolStripItemCollection.cs
3664         * ToolStripMenuItem.cs
3665         * ToolStripPanel.cs
3666         * ToolStripSplitButton.cs
3667         * ToolTip.cs
3668         * TreeNode.cs
3669         * TreeNodeCollection.cs
3670         * TreeNodeMouseHoverEventArgs.cs
3671         * TreeView.cs
3672
3673 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
3674
3675         * ContextMenu.cs: Add public method Show with alignment property to 2.0
3676         stuff. Thanks aatdark for the patch. 
3677
3678 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
3679
3680         * GridItem.cs: Implement 2.0 Tag property.
3681
3682 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
3683
3684         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
3685         count instead of Nodes.Length.  [Fixes bug #81448]
3686
3687 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
3688
3689         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
3690         [Fixes bug #81506]
3691
3692 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
3693         corcompare work: A - M
3694         * BindingNavigator.cs
3695         * Button.cs
3696         * ButtonBase.cs
3697         * CheckBox.cs
3698         * Control.cs
3699         * FlowLayoutPanel.cs
3700         * Form.cs
3701         * Label.cs
3702         * LinkLabel.cs
3703         * ListView.cs
3704
3705 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
3706
3707         * Application.cs: Give toolstrips a chance to process mnemonics.
3708         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
3709         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
3710         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
3711
3712 2007-05-01  Jackson Harper  <jackson@ximian.com>
3713
3714         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
3715         wider area too.
3716         - Don't set the BoundsSpecified
3717
3718 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
3719
3720         * Application.cs: When using the toolstrip shortcut mechanism, allow the
3721         message to pass through to a regular control if it hosted by a toolstrip.
3722         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
3723         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
3724
3725 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
3726
3727         * TextRenderer.cs: Use the flags argument when using the MeasureString
3728         fallback algorithm.
3729
3730 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
3731
3732         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
3733         the MDI menu item.  [Fixes bug #81483]
3734
3735 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
3736
3737         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
3738         string. When setting Name to null, use zero-length string instead.
3739
3740 2007-04-29  Andreia Gaita  <avidigal@novell.com>
3741
3742         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
3743         DeselectTab). Implement missing 2.0 TabPageCollection methods
3744         (Add, ContainsKey, RemoveByKey, IndexOfKey)
3745
3746 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
3747
3748         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
3749
3750 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
3751
3752         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
3753         Fixes bug #81479. Include details of exception when LoadFile fails.
3754
3755 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
3756
3757         * DrawListViewSubItemEventArgs.cs: Added missing setter
3758
3759 2007-04-27  Andreia Gaita  <avidigal@novell.com>
3760
3761         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
3762         Hide methods (not complete). Implement missing 2.0 OnPopup event.
3763
3764 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3765
3766         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
3767         removed in ly last commit (it was breaking the Label edit feature).
3768
3769         * ThemeWin32Classic.cs: When drawing a ListViewItem use
3770         StringAlignment.Near for LineAlignment (match .Net).
3771
3772 2007-04-27  Andreia Gaita  <avidigal@novell.com>
3773
3774         * TabControl.cs: Change SetTab so it adds the tabpage to the list
3775         of controls if it isn't already there - was blowing up when doing
3776         tabcontrol.TabPages[i]=new TabPage(). 
3777         SetTab now does a replace by removing the page at the index. 
3778         Add a new InsertTab method that inserts a page in a given index 
3779         instead of replacing. 
3780         Implements TabPageCollection.Insert(int, TabPage).
3781
3782 2007-04-27  Chris Toshok  <toshok@ximian.com>
3783
3784         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
3785         internal handler that can be invoked from our subclasses.)  Also,
3786         add a comment to PushData about how we need to fix it.
3787
3788         * CurrencyManager.cs: tons of changes here.  trying to get things
3789         matching the behavior of .net wrt event orders (ItemChanged,
3790         CurrentChanged, PositionChanged.)  I've implemented a private .net
3791         symbol (ChangeRecordState) that appears in stack traces because
3792         it's actually easier to do this than to effective inline all its
3793         various behaviors at every call site.
3794
3795         * RelatedPropertyManager.cs: guard against an exception here by
3796         not using parent.Current if the position is set to -1 (if the
3797         parent datasource is cleared, for instance).
3798
3799         * Binding.cs: don't parse data in PushData (this might be wrong,
3800         but it jives with MS's behavior.)  Also, don't call PushData when
3801         we get a CurrentChanged event.
3802
3803 2007-04-27  Andreia Gaita  <avidigal@novell.com>
3804
3805         * WebBrowser.cs,
3806           WebBrowserBase.cs,
3807           WebBrowserSiteBase.cs,
3808           HtmlDocument.cs: Added stubbed out classes, no real implementations 
3809           yet.
3810
3811 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
3812
3813         * MainMenu.cs: In draw method without parameters call draw method with 
3814         PaintEvent, another one (just rect) adjust rectangle and we dont need it
3815         as Rect property is already adjusted. Fixes #80694.
3816
3817 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
3818
3819         * Application.cs: Need to handle keyboard menu deselection here.
3820         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
3821         navigation, allowing keyboard to work on X11.
3822         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
3823
3824 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
3825
3826         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
3827         menu bar. It fixes some drawing issues in menu bar.
3828
3829 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
3830
3831         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
3832         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
3833         when <alt> key is pressed.
3834
3835 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
3836
3837         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
3838         example just set visible to false and make this prevent from other problems.
3839         In SystrayAdd always remove pending expose. Fixes #81072.
3840
3841 2007-04-26  Marek Safar  <marek.safar@gmail.com>
3842
3843         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
3844         value is set.
3845
3846 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
3847
3848         * ListView.cs: Added three missing 2.0 events and corresponding
3849         EventHandlers. Added the OwnerDraw property.
3850         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
3851
3852 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
3853
3854         * DrawListViewItemEventArgs.cs
3855         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
3856
3857 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
3858
3859         * TextControl.cs: Fixed typo in constructor
3860
3861 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
3862
3863         * Application.cs: Create a shortcut path so that currently selected
3864         MenuStrips can intercept keyboard events without having focus.
3865         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
3866         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
3867         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
3868         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
3869         generate WM_SYSCOMMAND message in X11 for other platforms.
3870         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
3871         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
3872         * ToolStripSplitButton.cs: Add DefaultItem property.
3873         
3874 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
3875
3876         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
3877         fixes some menu draw problem on Windows with border diferent from default
3878         it also fixes #81403.
3879
3880 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3881
3882         * Form.cs: Refactor WndProc into separate methods, just like Control is
3883           doing it.
3884
3885 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3886
3887         * Control.cs: set_Text: move the call to the driver into a seperate
3888           virtual method so that Form can override it.
3889         * MaskedTextBox.cs: Corcompare fixes.
3890         * Form.cs: Override UpdateWindowText and only update the styles if the
3891           form has been shown (fixes #81405).
3892
3893 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
3894
3895         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
3896         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
3897         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
3898         the form lost focus or another control was clicked.
3899
3900 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
3901
3902         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
3903         fixed.
3904
3905 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3906
3907         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
3908           DrawListViewItemEventHandler.cs,
3909           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
3910           Added.
3911         * X11Structs.cs: More ToString implementation.
3912
3913 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
3914
3915         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
3916         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
3917
3918 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3919
3920         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
3921           handle.
3922         * FormCollection.cs: Don't add a form if it's already in the
3923           collection.
3924         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
3925           according to behaviour and MSDN. The ownerWin32 is the active
3926           window at the moment when we call ShowDialog, not the context's
3927           main form (the context's main form may open another form that opens
3928           a form with ShowDialog, the win32 owner is the second form). Add
3929           and remove forms to the Application.OpenForms in other places to
3930           better match MS behaviour. Add an IsActive property that raises
3931           On(de)Activated only if the active state has changed (we were
3932           raising OnDeactivated before OnActivated while creating forms).
3933         * Application.cs: Refactor Enabling/Disabling of windows for modal
3934           dialog loops out to separate methods, and restore the thread
3935           context when we quit the method. Fixes #81407.
3936
3937 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3938
3939         * ListView.cs: In ItemControl.HandleClicks, also fire 
3940         2.0 MouseClick or MouseDoubleClick events on the parent,
3941         not only the Click/DoubleClick events.
3942
3943 2007-04-24  Andreia Gaita  <avidigal@novell.com>
3944
3945         * TableLayoutSettings.cs: 
3946         - Added a GetControls method and a support structure to help the 
3947         TypeConverter to enumerate the controls for     serialization. 
3948         - Added a new serialization constructor. 
3949         - Added a isSerialized flag initialized to true on the 
3950         serialization constructor so that the TableLayoutPanel.LayoutSettings 
3951         setter does not throw the designed NotSupportedOperation exception
3952         when the object is built through deserialization.
3953         - Implemented GetObjectData
3954         
3955         * TableLayoutPanel.cs: Added check on LayoutSettings.
3956
3957 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3958
3959         * ListView.cs: Report Click and DoubleClick events to the parent
3960         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
3961         from breaking the click count state when using dialog forms (Control
3962         reports the clicks in a similar fashion). In the previous behaviour
3963         the last WM_LBUTTONUP message in a  double click was sent to the
3964         ListView's form, instead of the ListView, which was breaking the click
3965         count for it. Fixes #80387.
3966
3967 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
3968
3969         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
3970
3971 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
3972
3973         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
3974         us from created dropdowns for menu items that do not have subitems.
3975         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
3976         Check HasDropDownItems before calling DropDown so a dropdown will not be
3977         created if it isn't needed.
3978
3979 2007-04-24  Jackson Harper  <jackson@ximian.com>
3980
3981         * TreeView.cs: Set the first node to the selected node when we get
3982         focus if there is no selected node.
3983
3984 2007-04-24  Andreia Gaita  <avidigal@novell.com>
3985
3986         * MimeIcon.cs: remove using blocks so that image streams are
3987         not disposed of. Fixes #80151
3988
3989 2007-04-24  Jackson Harper  <jackson@ximian.com>
3990
3991         * TextBoxBase.cs: Fixup the height of textboxes when the control
3992         is created.
3993
3994 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
3995
3996         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
3997         for each ToolStripItem when the parent's RightToLeftChanged is called.
3998
3999 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4000
4001         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
4002           Fixes #80163.
4003         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
4004           property, so that the setter can be overriden too.
4005         * TextBox.cs: Change GetContextMenuInternal() to use
4006           ContextMenuInternal.
4007
4008 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4009
4010         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
4011           #81406.
4012
4013 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4014
4015         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
4016           #81406.
4017
4018 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4019
4020         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
4021           avoid duplicate work. Mostily skeleton code, it's not working at
4022           all yet.
4023
4024 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
4025
4026         * NotifyIcon.cs : stub for MouseClick event
4027         * Application.cs: stub for SetUnhandledExceptionMode
4028
4029 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
4030
4031         * BindingNavigator.cs : Initial (partial) implementation
4032
4033 2007-04-23  Jackson Harper  <jackson@ximian.com>
4034
4035         * TreeView.cs: Do not create the treeview's handle when setting
4036         the scroll position.
4037         - ExpandAll needs to compute the scrollbars so it knows which
4038         position to set the bar too.
4039         * TreeNode.cs: 
4040         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
4041
4042 2007-04-23  Jackson Harper  <jackson@ximian.com>
4043
4044         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
4045         key. Fixes #81408.
4046
4047 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
4048
4049         * ToolStripItem.cs: Make GetImageSize internal.
4050         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
4051         need to draw an item.  Fixes a reported issue where images on menus
4052         that were not 16x16 were drawing incorrectly.
4053
4054 2007-04-21  Miguel de Icaza  <miguel@novell.com>
4055
4056         * Padding.cs: Use the converter, fixes the resgen2 issue with
4057         XMLNotePad. 
4058
4059 2007-04-21  Jackson Harper  <jackson@ximian.com>
4060
4061         * TreeView.cs: Dont try to unhighlight the selected node if there
4062         isn't a selected node.
4063
4064 2007-04-21  Jackson Harper  <jackson@ximian.com>
4065
4066         * UpDownBase.cs:
4067         * TextBoxBase.cs:
4068         * ListView.cs:
4069         * ListBox.cs:
4070         * TreeView.cs: Use the InternalBorderStyle property to set the
4071         initial border style, this forces the client rectangle to be sized
4072         correctly.
4073
4074 2007-04-20  Jackson Harper  <jackson@ximian.com>
4075
4076         * TreeView.cs: Simplify scrolling to the last node after expanding
4077         all.
4078         - Fix some off by ones with setting the bottom.
4079
4080 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
4081
4082         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
4083         that.  We were incorrectly doing it the other way around.  Also,
4084         update ClientSize if we change the BorderStyle before the control
4085         is created.
4086
4087 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
4088
4089         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
4090         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
4091         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
4092         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
4093         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
4094         Caption to CaptionHeight.
4095         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
4096         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
4097         and FixedFrameBorderSize to return value from current XplatUI driver.
4098         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
4099         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
4100         and FixedFrameBorderSize using win32 API. Renamed Caption to
4101         CaptionHeight.
4102         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
4103         * SystemInformation.cs: Fixed typo in BorderSize.
4104
4105 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
4106
4107         * XplatUI.cs: Added MenuAccessKeysUnderlined.
4108         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
4109         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
4110         returning false.
4111         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
4112         value from XplatUI driver.
4113         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
4114         SystemParametersInfo.
4115         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
4116         override.
4117         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
4118         returning false.
4119
4120 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4121
4122         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
4123
4124 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4125
4126         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
4127
4128 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
4129
4130         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
4131         MenuStrips that contain ToolStripSeparators.
4132
4133 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4134
4135         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
4136           DefineStdCursorBitmap.
4137         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
4138           has been created off a standard cursor. This is used to get a
4139           bitmap of the standard cursor when Draw or DrawStretched is called
4140           in order to draw the cursor.
4141         * X11Structs.cs: Added XcursorImage and XcursorImages.
4142         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
4143           DefineStdCursorBitmap.
4144         * Cursors.cs: Update all relevant creations of Cursor to use the new
4145           internal constructor.
4146
4147 2007-04-19  Jackson Harper  <jackson@ximian.com>
4148
4149         * TextBox.cs: Move the has_been_focused into the base control, so
4150         some of the text adding methods can manipulate it (probably time
4151         for a better name for this flag too).
4152         - Call a new version of selectall that doesn't scroll
4153         * TextBoxBase.cs: When we append text, if the document is empty,
4154         don't scroll.  If the document has text already, we scroll to the
4155         end of the appended text.
4156         - When the text is changed, we reset the has_been_focused, so the
4157         next time the control gets focused, all the text is selected.
4158
4159 2007-04-19  Jackson Harper  <jackson@ximian.com>
4160
4161         * TextControl.cs: Move the margins to the document, add a method
4162         so the margin sizes can be updated.
4163         * TextBoxBase.cs: When the border style is changed, update the
4164         border sizes.
4165
4166 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
4167
4168         * Control.cs: Respect DefaultPadding.
4169         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
4170         padding into account.
4171         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
4172
4173 2007-04-19  Jackson Harper  <jackson@ximian.com>
4174
4175         * TextControl.cs: Oops, we need to use the ClientRect not the
4176         bounds here.
4177
4178 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4179
4180         * ListView.cs: In ItemControl.ItemsMouseDown, take into
4181         account the double clicks when CheckBoxes are used and
4182         the pointer is inside the checkbox. Fixes part of #81191.
4183
4184 2007-04-18  Jackson Harper  <jackson@ximian.com>
4185
4186         * TextControl.cs: Pressing the end key shouldn't move the caret
4187         past the line ending.
4188         * TextBoxBase.cs: We can still delete if we are in the line
4189         ending and the combine will just kill the existing line ending.
4190
4191 2007-04-18  Jackson Harper  <jackson@ximian.com>
4192
4193         * TextControl.cs: We can't move lines, then invalidate their
4194         bounds, we need to get the old bounds and combine that with the
4195         new bounds.
4196         * TextBoxBase.cs: Before combining two lines for a delete, we need
4197         to invalidate the area of the old line, since that will be moved
4198         in the combine operation.
4199
4200 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
4201
4202         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
4203         with transparent background. Fixes #80482.
4204
4205 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
4206
4207         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
4208         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
4209         [Fixes bug #81391]
4210
4211 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4212
4213         * CreateParams.cs: Add a couple of helper methods and do a less string
4214           concatenation in ToString.
4215         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
4216           overload that takes a Control parameter, since this method may be
4217           called before a control is assigned to the hwnd (from
4218           CreateWindow), and update CreateWindow to use the new overload. In
4219           GetMenuOrigin subtract the title bar from the y position if the
4220           form has a window manager (since we're painting it and not X).
4221         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
4222           CreateParams to calculate the origin (since border sizes may vary).
4223           In ScreenToMenu only subtract the title height if we actually have
4224           a title.
4225         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
4226           mdi children never have menus of themselves.
4227         * InternalWindowManager.cs: Implement menu handling like form does.
4228           Added GetMenuOrigin to calculate the menu origin, can't use the
4229           CreateParams from the form like normally since it's lying.
4230         * Hwnd.cs: Implement GetBorderSize better (in the sense more
4231           windows-like) and add Inflate and comparison operators to the
4232           Borders type. When calculating MenuOrigin and it's a form with a
4233           window manager, use the window manager to calculate it.
4234
4235 2007-04-17  Chris Toshok  <toshok@ximian.com>
4236
4237         * Control.cs (CreateControl): turns out in 2.0 we don't need this
4238         OnBindingContextChanged thing here.  It's only generated from
4239         ContainerControl.OnCreateControl.  Fixes a newly written unit test
4240         - BindingTest.BindingContextChangedTest4.
4241         
4242 2007-04-17  Jackson Harper  <jackson@ximian.com>
4243
4244         * ScrollBar.cs: When setting values, make sure the current
4245         position stays within the new values range.
4246
4247 2007-04-17  Chris Toshok  <toshok@ximian.com>
4248
4249         * Control.cs (CreateControl): talk about a bizarre corner case.
4250         Don't emit OnBindingContextChanged here if we're a parentless
4251         control (i.e. if we're a form.).  Fixes
4252         BindingTest.BindingContextChangedTest2.
4253
4254 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
4255
4256         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
4257         from win32. Fixes #81255.
4258
4259 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
4260
4261         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
4262         already present in CalculateButtonTextAndImageLayout.
4263
4264 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4265
4266         * XplatUIX11.cs: When setting min/max size for a window we need to
4267           translate the coordinates to x coordinates. Create an overload of
4268           SetWindowMinMax that takes a CreateParams handling this, and change
4269           SetWMStyles to call this function (can't use Control.FromHandle in
4270           the SetWindowMinMax to get the control/CreateParams from the handle
4271           because the handle might not have been assigned to the control
4272           yet). Fixes #81371.
4273
4274 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4275
4276         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
4277         if StateImageList is non-null and it has less than two items (match MS
4278         behaviour). Also, in HandleNavKeys handle the Space key, calling
4279         the new ToggleItemsCheckState method, which tries to change the
4280         checked state of the selected items. Fixes part of #81191.
4281
4282 2007-04-16  Jackson Harper  <jackson@ximian.com>
4283
4284         * RichTextBox.cs: namespace cleanup.
4285
4286 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
4287
4288         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
4289
4290 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
4291
4292         [Fixes #79447]
4293         * Control.cs: Call invalidate in set_Region.
4294
4295         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
4296         it dont works here.
4297
4298 2007-04-16  Jackson Harper  <jackson@ximian.com>
4299
4300         * TextBoxBase.cs: When enter is pressed, we need to update all
4301         lines below the current.
4302
4303 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
4304
4305         * MdiClient.cs: Implement implicit menu merging for MDI
4306         children.  When a child form is active, if it has a menustrip
4307         and the parent form has a MainMenuStrip, automatically merge
4308         the menus.
4309
4310 2007-04-15  Andreia Gaita  <avidigal@novell.com>
4311
4312         * TabControl.cs: Refactored sizing methods to not repeat
4313         code all over the place. Tab bounds are now calculated
4314         as if alignment is top and single line, and only when 
4315         setting the bounds are the positions adjusted according
4316         to alignment. Replaced hardcoded positions, spacings and
4317         paddings by getting the values the ThemeEngine. 
4318         Fixes #79619.
4319         
4320         * Theme.cs: Change TabControl properties and methods so
4321         that all start with TabControl*. Added more properties
4322         to help remove hardcoded values on tabcontrol.
4323         Add CPDrawBorder3D declaration so the Theming classes
4324         can access it.
4325         
4326         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
4327
4328         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
4329         on the Theming namespace, and call the appropriate methods here.
4330         Change CPDrawBorder3D to public.
4331
4332 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4333
4334         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
4335         the control after firing the OnMouseUp event, instead of sending
4336         the message before the mentioned event. This is so we can match the
4337         MS behaviour. Fixes part of #80385.
4338
4339 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
4340
4341         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
4342         RightToLeft property.
4343
4344 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
4345
4346         * ToolStrip.cs: Add properties and internal methods to support merging.
4347         * ToolStripItem.cs: Add MergeAction and MergeIndex.
4348         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
4349         not trigger reparenting or layouts.
4350         * ToolStripManager.cs: Add Merge and RevertMerge methods.
4351         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
4352         is hosting the overflow menu.
4353
4354 2007-04-13  Jackson Harper  <jackson@ximian.com>
4355
4356         * TextControl.cs: Set the line ending correctly for the first
4357         inserted line.
4358
4359 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
4360
4361         * Theme.cs: Update GetMethod to get the new definition for 
4362         KnownColors.Update (and fix theme color updates).
4363
4364 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
4365
4366         * MessageBox.cs: Fix some test and button position.
4367
4368 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4369
4370         * Form.cs: Consider the implicit controls in
4371         GetRealChildAtPoint. We need it since this method
4372         is called on Form when handling the some messages in
4373         WndProc, and need to consider those implicit ones too.
4374         Fixes #80385.
4375
4376 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
4377
4378         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
4379         if there are no ShortcutKeys set.
4380         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
4381         set, use it when painting.
4382
4383 2007-04-12  Jackson Harper  <jackson@ximian.com>
4384
4385         * TextControl.cs: Fix some off-by-one issues in line duplication
4386         and insertion in the undo manager. Also, overwrite the first tag
4387         of a line on insert, if it is just a zero lengthed tag. This
4388         prevents us from getting an extra stranded tag at the beginning of
4389         the first line.
4390
4391 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
4392
4393         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
4394         to calculated proper size including when handle was not created yet.
4395
4396 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4397
4398         * MdiWindowManager.cs: When moving a form, allow the form to be moved
4399           when the mouse is outside of it's parent's client rectangle. Fixes
4400           #79982 (take 3, part 2).
4401
4402 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4403
4404         * X11Structs.cs: Add a few ToString() overrides.
4405         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
4406           the window location in a window-manager independent way. Reworked
4407           FrameExtents, it now actually works. Reworked AddConfigureNotify
4408           and ReparentNotify handling to use GetTopLevelWindowLocation
4409           instead of the earlier, more hacky solution. Reworked SetWMStyles,
4410           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
4411           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
4412           for all other windows (fixes #81281 part 1), a toolwindow is hidden
4413           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
4414           and generally refactored to do as few calculations as possible
4415           inside the lock.
4416
4417 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
4418
4419         * Theme.cs: Change "reflective-contract" between MWF and SD to 
4420         minimize # of calls, avoid Color serialization and avoid updating 
4421         every "known colors" each time a single one is updated.
4422
4423 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
4424
4425         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
4426         when not readonly and the text is explicitly set. Code style updates.
4427         * DataGridTableStyle.cs: Removed extra line.
4428         * DataGrid.cs: Code style updates. Removed extra whitespace.
4429         * DataGridColumnStyle.cs: Code style updates. Removed extra 
4430         whitespace.
4431
4432 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4433
4434         * XplatUIX11.cs: Added comment that "fixes" #80021.
4435
4436 2007-04-09  Jackson Harper  <jackson@ximian.com>
4437
4438         * TextControl.cs: We don't need this -1 on the line count anymore.
4439
4440 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
4441
4442         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
4443         entered value to underlying type, and convert it back to a string to
4444         apply formatting. Modified GetFormattedValue to use TypeConverter
4445         if available.
4446
4447 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
4448
4449         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
4450         Use SubItems property when we want to ensure there's at least one
4451         subitem. Modified SubItems property to ensure there's always at least
4452         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
4453         the NRE's reported by MS.
4454
4455 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
4456
4457         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
4458         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
4459         Spaces to tabs. Removed extra tabs.
4460
4461 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
4462
4463         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
4464         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
4465
4466 2007-04-06  Jackson Harper  <jackson@ximian.com>
4467
4468         * TextBoxBase.cs: When a delete removes a line, recalculate all
4469         lines below that line (they need to get offsets setup correctly)
4470         and invalidate.
4471
4472 2007-04-05  Jackson Harper  <jackson@ximian.com>
4473
4474         * TextControl.cs: We need to invalidate across the width of the
4475         document when we are invalidating multiple lines.
4476         * TextBoxBase.cs: Don't delete into the line ending.
4477
4478 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4479
4480         * ListView.cs: Restore the check for the MouseHover event
4481         in ListView. It looks like the ListView fires more than one MouseHover
4482         event when HoverSelection is true  _only_ in weird-corner scenarios, but
4483         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
4484         event.
4485
4486 2007-04-05  Mike Kestner  <mkestner@novell.com>
4487
4488         * ListView.cs : raise MouseDown before updating selection.
4489         [Fixes #80373 tab 1&3]
4490
4491 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
4492
4493         * ToolStripRenderer.cs: Add static method to mirror image.
4494         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
4495         and RightToLeftAutoMirrorImage.
4496         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
4497
4498 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
4499
4500         * ToolStripSplitStackLayout.cs: Support Alignment property.
4501         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
4502
4503 2007-04-05  Jackson Harper  <jackson@ximian.com>
4504
4505         * TextControl.cs: Move around the line endings when crossing line
4506         boundaries.
4507         - When combining lines, strip the ending text off the first line.
4508
4509 2007-04-05  Jackson Harper  <jackson@ximian.com>
4510
4511         * TextControl.cs:
4512         * TextBoxBase.cs: Try to never move the cursor into the line
4513         ending.
4514         
4515 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
4516
4517         * ToolStripItem.cs: Make sure we aren't firing mouse events when
4518         the item is disabled.  Also add a few missing methods.
4519
4520 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4521
4522         * ListView.cs: We don't need the MouseEnter/MouseLeave check
4523         to fire just one MouseHover event when HoverSelection is true, since
4524         .Net does fire more than one MouseHover event in that scenario. Also,
4525         fix the selection in HoverSelection, by invoking UpdateMultiSelect
4526         if MultiSelect is true, instead of only setting ListViewItem.Selected.
4527         Finally, we need to reset the Hover logic in MouseMove, even when we
4528         don't have a selected item.
4529
4530 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
4531
4532         * ToolStrip.cs: Add several missing methods, properties, and events.
4533
4534 2007-04-04  Chris Toshok  <toshok@ximian.com>
4535
4536         * DataGridTextBoxColumn.cs: set the bounds of the text box to
4537         (0,0,0,0) in Commit, as MS does.
4538
4539         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
4540         make sure we set CurrentRow on a row header click *before* calling
4541         Select.  This moves the current cell (and the textbox) to the new
4542         row.  The call to Select then hides the textbox, giving us the
4543         correct behavior.  Fixes #80362.
4544
4545         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
4546         (ListChangedHandler): reorder the position/current changed events,
4547         and call UpdateIsBinding in the ItemAdded case.
4548
4549         * GridColumnStylesCollection.cs: add some columns events, one of
4550         which raises the CollectionChanged event.
4551
4552 2007-04-04  Jackson Harper  <jackson@ximian.com>
4553
4554         * TextControl.cs: When we delete multiple selection lines
4555         invalidate the selection area, don't need to do that for single
4556         lines because the final update view will handle it.
4557
4558 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
4559
4560         * Control.cs: When we CreateControl, we need to also create all of the
4561         control's children.  The child's OnLoad must also fire before the parent's
4562         OnLoad.  Fixes the toolbox size in PDN.
4563
4564 2007-04-04  Jackson Harper  <jackson@ximian.com>
4565
4566         * TextBoxBase.cs: When the user presses enter, insert a line
4567         ending into the text. (Maybe this would be a good spot for
4568         Environment.NewLine).
4569         * TextControl.cs: Remove undo manager hack, line endings get
4570         inserted properly now.
4571         
4572 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
4573
4574         * MenuAPI.cs: 
4575         - Remove unneeded parameters in UpdateCursor.
4576         - Fix UpdateCursor to check if menu is active.
4577         - Call UpdateCursor when menu deactivate my click.
4578         [Fixes remaining issues from #80410]
4579
4580 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
4581
4582         * Control.cs: GetRealChildAtPoint method added, it make an
4583         recursive child control search for the point. 
4584
4585         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
4586         menu.
4587
4588         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
4589
4590 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
4591
4592         * Form.cs: Fix mouse position when send back mouse event after closes
4593         menu.
4594
4595 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
4596
4597         * Form.cs: Simplify the BUTTONDOWN for active tracker.
4598
4599 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
4600
4601         * Control.cs: Fix an issue where if a user resized a control inside
4602         a sizing method like OnResize, we would overwrite their explicit
4603         value.  Also, only call DefaultSize once in the constructor instead
4604         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
4605         nothing actually changed.
4606
4607 2007-04-03  Jackson Harper  <jackson@ximian.com>
4608
4609         * TextControl.cs: Don't attempt to copy text for lines with no
4610         text in them (technically this shouldn't happen, but we aren't
4611         always inserting line endings when we should be).
4612
4613 2007-04-03  Jackson Harper  <jackson@ximian.com>
4614
4615         * TextBoxBase.cs: Calculate the scrollbars before calculating the
4616         document, because this sets some of the document size properties
4617         that are needed.
4618
4619 2007-04-03  Jackson Harper  <jackson@ximian.com>
4620
4621         * TextBoxBase.cs: We need to calculate maximums even if this is
4622         not a multiline control, because the maxs are used for scrolling.
4623         - Display the caret after doing a page up/down, we need to
4624         manually display it because a proper CaretMoved event isn't
4625         triggered (this is because of the way the math is done to
4626         determine how far to scroll).
4627
4628 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
4629
4630         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
4631         (ToolBar was relying on SetBoundsCore to default the values sent 
4632         base off of BoundsSpecified.)
4633
4634 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4635
4636         * DateTimePicker.cs: Change Text so that when a null value or empty
4637           string is assigned to the test we always raise ValueChanged and
4638           TextChanged (earlier implementation would only raise ValueChanged
4639           if the current date value was different from DateTime.Now).
4640
4641 2007-04-03  Andreia Gaita <avidigal@novell.com> 
4642
4643         * ButtonBase: Call update after invalidation, fixes #80194
4644
4645 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4646
4647         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
4648           #79335.
4649
4650 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4651
4652         * XplatUIX11.cs: SetWMStyles: If the control is a form with
4653           FormBorderStyle = None, don't give the window any decorations.
4654           Fixes #81276.
4655
4656 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4657
4658         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
4659         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
4660           to check for is a mix of several styles (such as WS_CAPTION for
4661           instance).
4662         * Control.cs: Don't paint an area bigger than the client area when
4663           painting the background colour. Add an internal GetCreateParams.
4664           Update calls to XplatUI.CalculateWindowRect due to API change.
4665         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
4666           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
4667           the size if it hasn't been handled by any windows. When creating
4668           and moving windows, X wants the location of the entire window, but
4669           the size of the client window, so add
4670           TranslateClientRectangleToXClientRectangle,
4671           TranslateWindowSizeToXWindowSIze and
4672           TranslatedXWindowSizeToWindowSize to cope with this, and call them
4673           before every window creation and move. Update CalculateWIndowRect
4674           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
4675           In AddConfigureNotify don't do anything if the hwnd is a zombie
4676           (fixes the BadWindow we were getting while running the tests),
4677           always calculate the offsets when it's a parentless window, not
4678           only when reparented, and translate the window size, since we're
4679           getting the client size of the whole window, excluding entire
4680           window.
4681         * Theme.cs: Added BorderSizableSize.
4682         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
4683           anymore. Update calls to XplatUI.CalculateWindowRect due to API
4684           chang
4685         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
4686           change. Fake the window styles here instead of in XplatUIWin32 so
4687           that all back-ends get the same window styles (and it's Form that's
4688           deciding when to use wm, not the Win32 backend anyways)
4689         * Hwnd.cs: Completely reworked GetWindowRectangle and
4690           GetClientRectangle - they are now passed a CreateParams and they
4691           only use Style and ExStyle to determine the rectangles (they should
4692           now work just like Win32AdjustWindowRectEx - though quite a few
4693           special cases are probably missing). They should also be 100%
4694           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
4695           == rect), and all numbers (borders, menu sizes) are taken from the
4696           current theme. Added a GetBorders helper function that will return
4697           the borders for any given CreateParams (including captions and
4698           menus), and GetBorderSize that returns the given border size only.
4699         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
4700           Hwnd.GetClientRectangle.
4701
4702 2007-04-02  Chris Toshok  <toshok@ximian.com>
4703
4704         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
4705         logic between the values we present to the user and the values
4706         which are stored in the column's property.  Also, don't call
4707         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
4708
4709 2007-04-02  Jackson Harper  <jackson@ximian.com>
4710
4711         * TextBoxBase.cs: Scroll faster!
4712
4713 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
4714
4715         * StatusStrip.cs: Layout fixes for PDN.
4716         * ToolStrip.cs: Set item's available to true, and placement to main when
4717         added.
4718         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
4719         changing in setter before doing any work, add InternalVisible.
4720         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
4721         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
4722         infinite loop.
4723
4724 2007-04-02  Jackson Harper  <jackson@ximian.com>
4725
4726         * TextBox.cs: LBUTTON does not make the textbox select all of it's
4727         text on focus.
4728
4729 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4730
4731         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
4732           Makes ToolStripComboBoxes show up again.
4733
4734 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4735
4736         * ListView.cs: Add a hover_pending field in ListView
4737         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
4738         cycle (we are resetting the MouseHover logic in XplatUI
4739         to handle HoverSelection). Fixes #80429.
4740
4741 2007-04-02  Jackson Harper  <jackson@ximian.com>
4742
4743         * TextControl.cs: Make sure the attributes get set on the last
4744         tag.
4745         - Still have to do the end tag if we have stepped all the ways to
4746         the end.
4747
4748 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
4749
4750         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
4751         on an internal libgdiplus call when the information is already 
4752         available via the public API.
4753
4754 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4755
4756         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
4757           control is removed from a control collecftion.
4758         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
4759           Fixes FormPropertyTest (failed on rare occasions).
4760         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
4761           of Win32SetParent (when changing from no parent to a parent it
4762           might add the new parent's location in screen coordinates to this
4763           window's location).
4764         * Form.cs: Rework ChangingParent once again, now the handle is
4765           recreated whenever a FormWindowManager is added or removed (that is
4766           whenever a normal form is parented or abandoned). Also change
4767           CreateParams so that all non-toplevel windows always get the
4768           specified sice (StartupPosition is never considered for
4769           non-TopLevel forms).
4770         * ContainerControl.cs: Add ChildControlRemoved, the container control
4771           needs to be notified when a control is removed from it's
4772           collection, in the case the removed control is the active control.
4773
4774 2007-04-02  Jackson Harper  <jackson@ximian.com>
4775
4776         * RichTextBox.cs: Use the new methods for setting the font and
4777         color, these methods set the specified attribute without
4778         overriding the other attributes.
4779
4780 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
4781
4782         * ToolStripPanel.cs: Fixes for better layouts in PDN.
4783
4784 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
4785
4786         * TextBox.cs: Added internal ChangeBackColor method to special-case
4787         Color.Empty. Added check for invalid ScrollBars value.
4788         * TextBoxBase.cs: Added internal ChangeBackColor method.
4789         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
4790         internal ChangeBackColor method to special-case Color.Empty. Added
4791         check for invalid ScrollBars value.
4792
4793 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
4794
4795         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
4796
4797 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
4798
4799         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
4800         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
4801         [Based on submitted patch from Olivier Duff.]
4802
4803 2007-03-30  Jackson Harper  <jackson@ximian.com>
4804
4805         * TextBox.cs: Only select all on initial focus if the user has not
4806         specified a selection area.
4807
4808 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
4809
4810         * UserControl.cs: Override CreateParams.
4811
4812 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4813
4814         [ Fixes #80995 ]
4815
4816         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
4817         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
4818           check for is a mix of several styles (such as WS_CAPTION for instance).
4819         * Control.cs: Don't paint an area bigger than the client area when painting
4820           the background colour. Add an internal GetCreateParams. Update calls to
4821           XplatUI.CalculateWindowRect due to API change.
4822         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
4823           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
4824           hasn't been handled by any windows. When creating and moving windows, X
4825           wants the location of the entire window, but the size of the client
4826           window, so add TranslateClientRectangleToXClientRectangle,
4827           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
4828           to cope with this, and call them before every window creation and move.
4829           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
4830           removing DeriveStyles). In AddConfigureNotify don't do anything if the
4831           hwnd is a zombie (fixes the BadWindow we were getting while running the
4832           tests), always calculate the offsets when it's a parentless window, not
4833           only when reparented, and translate the window size, since we're getting
4834           the client size of the whole window, excluding entire window.
4835         * Theme.cs: Added BorderSizableSize.
4836         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
4837           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
4838         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
4839           Fake the window styles here instead of in XplatUIWin32 so that all
4840           back-ends get the same window styles (and it's Form that's deciding when
4841           to use wm, not the Win32 backend anyways)
4842         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
4843           they are now passed a CreateParams and they only use Style and ExStyle
4844           to determine the rectangles (they should now work just like
4845           Win32AdjustWindowRectEx - though quite a few special cases are probably
4846           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
4847           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
4848           sizes) are taken from the current theme. Added a GetBorders helper
4849           function that will return the borders for any given CreateParams
4850           (including captions and menus), and GetBorderSize that returns the given
4851           border size only.
4852         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
4853           Hwnd.GetClientRectangle.
4854
4855 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4856
4857         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
4858           layout of the mdi children is handled by CreateParams. Fixes
4859           #79964,
4860
4861 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
4862
4863         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
4864         processed.
4865
4866         * Form.cs: When active tracker mouse down is not processed, send event 
4867         back to control inside mouse position. [Fixes #81227]
4868
4869 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
4870
4871         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
4872         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
4873         stealing focus from the active form on Windows.  (Control will be made
4874         visible in ShowWindow.)
4875
4876 2007-03-29  Mike Kestner  <mkestner@novell.com>
4877
4878         * ImageList.cs : add internal Changed event.
4879         * ListView.cs : hook up to StateImageList.Changed to perform
4880         invalidations when the the state icon list changes. [Fixes #81191]
4881
4882 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
4883
4884         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
4885         to prevent tooltips from stealing focus from the active form on Windows.
4886
4887 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
4888
4889         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
4890
4891         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
4892
4893 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
4894
4895         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
4896         balloons.
4897
4898 2007-03-29  Jackson Harper  <jackson@ximian.com>
4899
4900         * TextControl.cs: When deleting text from non multiline textboxes,
4901         we need to update the entire document, because line offsets will
4902         be shifting.
4903
4904 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
4905
4906         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
4907         added to theme, now we can create themes that uses diferent notify engines
4908         like notification-daemon from galago project or growl for Mac OS.
4909
4910 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
4911
4912         * NotifyIcon.cs: Prevent Balloon to show in task bar.
4913
4914 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
4915
4916         * XplatUIX11.cs: Prevent system to open more than one balloon.
4917
4918         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
4919         some compiler warning messages.
4920
4921 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
4922
4923         [Fixes #79149]
4924
4925         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
4926
4927         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
4928         implemented, this methods is used by NotifyIcon.BalloonWindow class.
4929
4930         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
4931         systems.
4932
4933 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4934
4935         * ListViewItem.cs: Forgot to make Invalidate internal.
4936
4937 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4938
4939         * ListView.cs: Add a InvalidateSelection method to
4940         invalidate methods which are currently selected, and call
4941         it when setting FullRowSelect and HideSelection, instead of
4942         calling Redraw.
4943
4944 2007-03-28  Chris Toshok  <toshok@ximian.com>
4945
4946         * XplatUIX11.cs (UnmapWindow): reindent this block.
4947
4948         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
4949         the selection_start if we're moving the selection (that is, not
4950         extending it). Fixes bug #80461.
4951
4952 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
4953
4954         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
4955         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
4956         create private ControlCollection.
4957
4958 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
4959
4960         * Control.cs: We need to call OnVisibleChanged for our implicit
4961         children as well as our normal children.  Fixes scrollbars in
4962         comboboxes not showing up.
4963
4964 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
4965
4966         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
4967         the check for IsHandleCreated first.  The check in CreateHandle is not
4968         good enough because CreateHandle can be overriden, and the override 
4969         should not be called if the handle is already created.
4970
4971 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
4972
4973         * ToolStrip.cs: Remove MonoTODO for tooltips.
4974         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
4975         * ToolStripContainer.cs: Add custom ControlCollection class.
4976         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
4977         * ToolStripDropDown.cs: Add some missing properties/methods.
4978         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
4979         * ToolStripItem.cs: Remove MonoTODO for tooltips.
4980         * ToolStripManager.cs: Add IsShortcutDefined.
4981         * ToolStripOverflow.cs: Override LayoutEngine.
4982         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
4983         * ToolStripSeparator.cs: Add ImageKey.
4984
4985 2007-03-28  Jackson Harper  <jackson@ximian.com>
4986
4987         * TextControl.cs: If a char delete removes a line ending, we need
4988         to update the ending style.
4989         - Make sure the line ending calcs get called.
4990
4991 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4992
4993         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
4994           it was making the new code not work. Fixed a typo in the new code
4995           as well. Fixes #79826.
4996
4997 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
4998
4999         * XplatUIWin32.cs:
5000         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
5001         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
5002         - SystrayBalloon method implemented.
5003         [Add support for notifyicon balloon on win32, #79149]
5004
5005 2007-03-27  Mike Kestner  <mkestner@novell.com>
5006
5007         * ThemeWin32Classic.cs : update StateImageList selection to mirror
5008         the ms behavior when only one image is added to the list.
5009         [Fixes #81191]
5010
5011 2007-03-27  Jackson Harper  <jackson@ximian.com>
5012
5013         * TextControl.cs: Improvements to non multiline line ending
5014         drawing/measuing.
5015
5016 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
5017
5018         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
5019
5020 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
5021
5022         * NotifyIcon.cs: 
5023         - Balloon message handling added.
5024         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
5025
5026         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
5027         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
5028         to SystrayBalloon to me like other Systray method, also a
5029         handle parameter added.
5030
5031 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5032
5033         * ListView.cs: Show scrollbars even when items.Count == 0
5034         but the columns Width is bigger than the ListView.Width.
5035         Also, when columns.Count == 0 set layout_wd and layout_ht
5036         to the ClientRectangle values, so we don't show any scrollbar
5037         in that case.
5038
5039 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
5040
5041         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
5042
5043 2007-03-27  Jackson Harper  <jackson@ximian.com>
5044
5045         * RichTextBox.cs: The RTF library decodes the text properly for us
5046         now.
5047
5048 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5049
5050         * ListView.cs: Display HeaderControl even when columns.Count == 0.
5051         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
5052         ListView header (HeaderControl), instead of Control.BackColor.
5053
5054 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
5055
5056         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
5057         Fixes tab control issues where controls would not show up because they
5058         never received their OnVisibleChanged call.
5059
5060 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
5061
5062         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
5063         BalloonTipShown).
5064
5065 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
5066
5067         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
5068         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
5069         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
5070         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
5071         the handle.  Fix WindowState by using the internal variable until we are 
5072         sure that we've been shown.
5073         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
5074         max or min.
5075         [Fixes bug #81198]
5076
5077 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5078
5079         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
5080           (at least borders). Fixes #79386 on Linux (with a small difference
5081           in behaviour: when trying to resize a caption-less window metacity
5082           shows the sysmenu. Resizing is still possible though).
5083         * XplatUIWin32.cs: When setting window styles send request an extra
5084           WM_NCCALCSIZE when it's a form without title (due to no text and no
5085           caption), since Win32 seems to calculate it wrong the first time we
5086           get the message, though the second time things work as they should.
5087         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
5088           newly reparented window might show up unparented. Update
5089           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
5090           there's no title text. Fixes #79386.
5091
5092 2007-03-27  Mike Kestner  <mkestner@novell.com>
5093
5094         * ListBox.cs : don't perform invalidations if the handle hasn't been
5095         created.  [Fixes #80753]
5096
5097 2007-03-27  Mike Kestner  <mkestner@novell.com>
5098
5099         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
5100         [Fixes #80428]
5101
5102 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
5103
5104         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
5105         needed to implement Balloon.
5106
5107 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5108
5109         * ListViewItem.cs: In the constructors that take
5110         an array of strings, don't use ListViewSubItemCollection.AddRange
5111         method to add items, since we need to have a different behaviour (in
5112         the constructors we add an item for each null string, opposed to
5113         the behaviour of AddRange, which adds nothing).
5114
5115 2007-03-26  Andreia Gaita  <avidigal@novell.com>
5116
5117         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
5118
5119 2007-03-26  Jackson Harper  <jackson@ximian.com>
5120
5121         * TextControl.cs: Draw and measure line endings when in non
5122         multiline mode.
5123         - When searching the text, count the end of the last line as a
5124         word boundary.
5125
5126 2007-03-26  Jackson Harper  <jackson@ximian.com>
5127
5128         * RichTextBox.cs: The selection_start and selection_end don't
5129         really track the correct tags for the selection. So we'll manually
5130         compute the correct tag here.
5131
5132 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5133
5134         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
5135           and Continuous styles. Fixes #79469.
5136
5137 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
5138
5139         * ToolStrip.cs: Implement Tooltips.
5140         * ToolStripItem.cs: Create internal method for determining tooltip.
5141
5142 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
5143
5144         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
5145
5146 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
5147
5148         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
5149         it prevents a problem thak keeps icon visible after application 
5150         closes on win32.
5151
5152 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
5153
5154         * NotifyIcon.cs: Balloon properties and methods created.
5155
5156         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
5157         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
5158
5159 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
5160
5161         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
5162
5163 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
5164
5165         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
5166         parameter indicates which aspects were explicit/user-set.
5167         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
5168
5169 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
5170
5171         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
5172         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
5173         SmallChange, and Value (2.0).
5174         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
5175
5176 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5177
5178         * ListView.cs: Always set item_control.Width in LayoutDetails
5179         if View is Details. Setting it later in CalculateScrollBars
5180         in a not-so-corner scenario (the sum of columns width is
5181         not bigger than the ListView width when handle is created, and then
5182         that sum gets bigger by increasing the width of the columns)
5183         causes a very weird recursion path (which shouldn't be happening,
5184         since header_control sets it in CalculateScrollBars too). This bug
5185         appeared after Chris' fixes for handle created issues, so probably
5186         it's related to some handle-creation time.
5187
5188 2007-03-23  Chris Toshok  <toshok@ximian.com>
5189
5190         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
5191         case where there's an add row, just so we don't end up in a case
5192         where it's not displayed (this happens when the row is partially
5193         obscured).  Fixes bug #79574.
5194
5195 2007-03-23  Jackson Harper  <jackson@ximian.com>
5196
5197         * TextControl.cs:
5198         * TextBoxBase.cs:
5199         * RichTextBox.cs: Preserve line endings in the lines text buffer,
5200         also added an enum that represents the line ending type. 
5201
5202 2007-03-23  Andreia Gaita  <avidigal@novell.com>
5203
5204         * NumericUpDown.cs: Fix logic so Text and Value properties are not
5205         messed with in every method call, but only from DownButton, 
5206         UpButton, UpdateEditText() and ValidateText. Fixes #80346
5207
5208 2007-03-23  Chris Toshok  <toshok@ximian.com>
5209
5210         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
5211         format objects if the format spec is "".  Fixes bug #80889.
5212
5213 2007-03-22  Miguel de Icaza  <miguel@novell.com>
5214
5215         * ToolStripPanel.cs (Join): added stubs to build PDN3
5216
5217         * Control.cs (AutoScrollOffset): Add.
5218
5219         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
5220         property, its only implemented for Win32, on X11 it defaults to
5221         some hardcoded value.
5222
5223         * ToolStripItem.cs (AllowDrop): Add property
5224
5225 2007-03-22  Mike Kestner  <mkestner@novell.com>
5226
5227         * ListView.cs : in FullRowSelect Details mode, only enable box
5228         selection if the user clicks over the "item" column outside of the
5229         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
5230
5231 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5232
5233         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
5234           handle is not created yet.
5235         * Form.cs: Select: Don't call CreateHandle if the handle is already
5236           created, avoids a stack overflow on Windows when we are recreating
5237           controls.
5238         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
5239           they are made visible, and override AfterTopMostControl to keep
5240           them on top when other controls are brought to front.
5241           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
5242           or force_*scroll_visible is true (old implementation always shows
5243           scrollbars when needed, no matter what auto_scroll was set to).
5244         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
5245           IsHandleCreated check.
5246
5247 2007-03-22  Andreia Gaita  <avidigal@novell.com>
5248
5249         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
5250         row or col separator.
5251         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
5252
5253 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
5254
5255         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
5256
5257 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
5258
5259         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
5260         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
5261         every time. Fixes #80410.
5262
5263 2007-03-22  Chris Toshok  <toshok@ximian.com>
5264
5265         * BindingSource.cs (AddNew): partially implement.
5266
5267         remove a couple of NotImplementedException's
5268         to get bug #81148 closed.
5269
5270 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
5271
5272         [Fixes #80380]
5273         
5274         * Control.cs:
5275         - UpdateCursor method added to update the screen cursor.
5276         - GetAvailableCursor method added to return cursor for enabled tree,
5277         it searches for cursor on control and it's parent's for enabled control.
5278         - Call UpdateCursor method on setter of Cursor property.
5279         - On setter of Enabled call UpdateCursor when it is false, we need to
5280         change cursor to normal (or to this parent cursor) because cursor 
5281         setting theres no effect to disabled controls.
5282         - Some minor source changes to follow the coding style guidelines.
5283
5284         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
5285         controls.
5286
5287 2007-03-22  Chris Toshok  <toshok@ximian.com>
5288
5289         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
5290         generates.
5291
5292 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5293
5294         * XplatUIX11.cs: Implement default locations for forms.
5295         * Form.cs: Completely rework startup location for forms. Fixes #79964.
5296         * Hwnd.cs: Add previous_child_startup_location (to track the current
5297           startup location for any child forms of the current form) and
5298           previous_main_startup_location (to track the startup location for
5299           the current toplevel form).
5300
5301 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
5302
5303         * Control.cs: Don't trigger a layout if an implicit control is added
5304         that isn't visible.  Also, don't notify the owner when an implicit control
5305         is added.  (Owners shouldn't even know about their implicit controls.)
5306
5307 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
5308
5309         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
5310         to save some re-layouts.
5311
5312 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
5313
5314         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
5315         [Fixes #81203]
5316
5317 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
5318
5319         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
5320         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
5321
5322 2007-03-21  Mike Kestner  <mkestner@novell.com>
5323
5324         * ListView.cs : disable selection update for non-left button clicks
5325         with mods and over selected items.  [Fixes #80524]
5326
5327 2007-03-20  Jackson Harper  <jackson@ximian.com>
5328
5329         * TextControl.cs:
5330         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
5331         \r\r\n, \n.
5332
5333 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5334
5335         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
5336           very probably a more complicated calculation there. Update the
5337           textbox' ForeColor and BackColor when the ComboBox' colors are
5338           changed. Change the border change in LayoutComboBox to only affect
5339           the textbox, not all the calculations there. Seems to fix most of
5340           #79436.
5341
5342 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5343
5344         * ComboBox.cs: Handle Home and End keys as well as all combinations of
5345           modifiers + navigation keys as input keys, enables advanced text
5346           selection in the combobox (like Shift+Left Arrow for instance).
5347           ComboTextBox now overrides Focused and returns whatever
5348           ComboBox.Focused returns, since it really should be focused
5349           whenever the ComboBox is. Fixes #80795. Also make the border around
5350           the text box one pixel bigger, as mentioned in #79436.
5351
5352 2007-03-20  Jackson Harper  <jackson@ximian.com>
5353
5354         * TreeView.cs: Don't offset the images, this was causing some
5355         artifacts when expanding/collapsing with images that were the
5356         exact height of the treenode.
5357
5358 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5359
5360         * TrackBar.cs: Query the theme for the correct value when the mouse
5361           moves and the thumb is pressed. 
5362         * Theme.cs: Added TrackBarValueFromMousePosition
5363         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
5364           implementation was updating the trackbar value when drawing, now
5365           the drawing methods only draw. Fixes #80900. Refactored the
5366           calculations out to TrackBarValueFromMousePosition and
5367           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
5368           according to the mouse position whenever it wants to. Changed the
5369           light coloured pen when drawing the thumb from ControlLight to
5370           ControlLightLight, because the ControlLight is the same colour as
5371           the background so the 3D effect is lost. 
5372
5373 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5374
5375         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
5376         defined. Fixes #80784.
5377
5378 2007-03-20  Marek Habersack  <mhabersack@novell.com>
5379
5380         * ContextMenuStrip.cs: align with the change introduced in
5381         revision 74664.
5382
5383 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5384
5385         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
5386         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
5387         in SetTopmost.
5388
5389 2007-03-19  Chris Toshok  <toshok@ximian.com>
5390
5391         * Control.cs (WmPaint): don't make use of the Handle property
5392         after an event is emitted, as the user could have closed the
5393         form/destroyed the control.  Store the Handle in a local variable
5394         and make use of that.  Fixes bug #80768.
5395
5396 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5397
5398         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
5399         behavior in X11 environments.
5400
5401 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5402
5403         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
5404         because on setter of topmost we dont call SetTopmost when handle is not
5405         created.
5406
5407 2007-03-20  Jackson Harper  <jackson@ximian.com>
5408
5409         * TextControl.cs: Need to use SelectionLength () not
5410         selection_length, since that var is reset to -1.
5411         - Draw the caret when we don't have focus.
5412         * TextBox.cs: The selectall actually doesn't occur until the first
5413         focus.
5414         * TextBoxBase.cs: Need to update the caret position after a
5415         selectall.
5416         
5417 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5418
5419         * ListView.cs: Enable scrolling when using Tile view.
5420
5421 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5422
5423         [Fixes #80902]
5424
5425         * XplatUIDriver.cs: Abstract SetOwner method created.
5426
5427         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
5428         must be implemented and was masked as todo.
5429
5430         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
5431         GWL_HWNDPARENT.
5432
5433         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
5434         cheking for null owner to remove transient. The SetTopmost will be change
5435         on a decond step.
5436
5437         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
5438         SetTopmost. Now owned forms will work properly in win32 and X11.
5439
5440 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5441
5442         * MdiWindowManager.cs: Update function name.
5443         * Form.cs: After closing a form MdiParent is always null.
5444         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
5445           better what it should do: necessary book-keeping when the form is
5446           closed, it should not close the form itself.
5447
5448 2007-03-19  Andreia Gaita  <avidigal@novell.com>
5449
5450         * ListViewItem.cs: Fix back and fore color. The subitems only
5451         use their own colors if they are set, otherwise use the listview's
5452         colors. Don't set default colors on constructor for subitem.
5453         Fixes #79315.
5454
5455 2007-03-19  Mike Kestner  <mkestner@novell.com>
5456
5457         * ListView.cs : make box selection for Details views with 
5458         FullRowSelect conform to MS behavior when clicking in the "item" 
5459         column and clicking outside the defined columns.
5460         [Fixes case 5-6 of #80374]
5461
5462 2007-03-19  Chris Toshok  <toshok@ximian.com>
5463
5464         * ScrollableControl.cs: create the controls from within the ctor,
5465         but don't actually add them until our handle is created.  this
5466         fixes a NRE possibility jpobst found (if you override OnLayout in
5467         a subclass, it's called before your ctor).  Also, add a
5468         IsHandleCreated guard to UpdateSizeGripVisibility as well.
5469
5470 2007-03-19  Jackson Harper  <jackson@ximian.com>
5471
5472         * TextBox.cs: Reduce the amount of invalidation we do.
5473         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
5474         some of them are true by default on MS.
5475         - Add some functions to reduce the amount of invalidates we do.
5476         * TextControl.cs: Less invalidation.
5477
5478 2007-03-19  Chris Toshok  <toshok@ximian.com>
5479
5480         [ Fixes #81773, and *seems* to fix #81553 as well ]
5481
5482         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
5483         AccumulateDestroyedHandles.  We need to do it *after* we send
5484         WM_DESTROY, as the user's code can access Control.Handle in
5485         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
5486         move the WM_DESTROY/zombie handling to before the call to
5487         XDestroyWindow.  For some reason without this ordering
5488         FormTest.RecreateHandle hangs.  This ordering is semantically
5489         equivalent, however, as XDestroyWindow is async anyway.
5490
5491 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
5492
5493         * RichTextBox.cs: Reset backcolor_set after setting default.
5494
5495 2007-03-19  Chris Toshok  <toshok@ximian.com>
5496
5497         * ScrollableControl.cs: the scroll position should not effect the
5498         canvas size.  commit patch from georgegiolfan@yahoo.com, which
5499         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
5500         
5501 2007-03-19  Chris Toshok  <toshok@ximian.com>
5502
5503         * ScrollableControl.cs: clean this up a bit.  create the
5504         scrollbars in the ctor and just show/hide them as needed.  Also,
5505         make hscroll_visible/vscroll_visible internal to Recalculate, and
5506         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
5507         everywhere else.  This seems to fix the scrollbars appearing
5508         beneath the content for me (i have *no* idea why that is,
5509         however.)
5510
5511 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
5512
5513         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
5514         some redundacy for stuff in Anchor and Dock that base will take care of.
5515         [Fixes #80762]
5516
5517 2007-03-19  Mike Kestner  <mkestner@novell.com>
5518
5519         * ListView.cs : make box selection for Details views without 
5520         FullRowSelect dependent on the text bounds, not item bounds.
5521         * ListViewItem.cs : add an internal property to obtain the TextBounds
5522         in Details view.  [Fixes case 1-4 of #80374]
5523
5524 2007-03-19  Andreia Gaita  <avidigal@novell.com>
5525
5526         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
5527         we're < 2.0. #78448 && #80316
5528
5529 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
5530
5531         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
5532         have the same style available as the previously selected one.  Also,
5533         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
5534
5535 2007-03-19  Jackson Harper  <jackson@ximian.com>
5536
5537         * TextControl.cs: Add an alignment property that all new lines
5538         will be given.
5539         - Make sure to use the align shift when calculating the line's X
5540         position.
5541         * TextBox.cs: Set the alignment on the document as well as on all
5542         the document lines.
5543
5544 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5545
5546         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
5547           throw if setting the parent of an mdichild that already has an
5548           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
5549           AssemblyProductAttribute in the assembly, use the type's namespace (as
5550           MS seems to do). CreateControl: don't create the handle if the control
5551           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
5552           create handle if the control is not a form. Change FocusInternal to
5553           virtual so that it can be overriden by Form.
5554         * TextBox.cs: Update call to FocusInternal.
5555         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
5556           form is not a toplevel form when it's a mdi child, so update is_toplevel
5557           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
5558           hasn't been created. Show (IWin32Window): Don't allow this overload for
5559           toplevel windows. CenterToParent/CenterToScreen/Select: create the
5560           handle as MS does. SetVisibleCore: if called on a MdiChild and the
5561           parent isn't visible yet, save the visibility and restore it when the
5562           parent is made visible.
5563         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
5564           methods, since the visibility of the scrollbars can be changed from
5565           several places, not only from AutoScroll.
5566           [Fixes #81179]
5567
5568 2007-03-19  Jackson Harper  <jackson@ximian.com>
5569
5570         * RichTextBox.cs: Enable shortcuts by default.
5571         * TextBoxBase.cs: Add conditional shortcuts.  
5572
5573 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
5574
5575         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
5576
5577 2007-03-19  Chris Toshok  <toshok@ximian.com>
5578
5579         [ Fixes bug #80604]
5580         
5581         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
5582         swallow the message we're waiting on, instead of delivering it, as
5583         this is only used for the WM_SHOWWINDOW raised from
5584         MapWindow/UnmapWindow, and the message needs to be generated
5585         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
5586         before doing the Map/Unmap.  Also make sure that the Hwnd is still
5587         alive after the message has been handled.
5588
5589         *before* the window is shown.
5590
5591         * Control.cs (CreateControl): guard a few more things inside the
5592         if (!is_created) block, as we might end up being called again -
5593         yay .net.
5594         (WmShowWindow): call CreateControl if we're showing the control.
5595
5596 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5597
5598         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
5599           controls without a handle if they have any parent with a handle. In
5600           Dispose add a check whether the handle is created or not before
5601           calling BeginInvoke, this removes the need of the extra disposing
5602           parameter (which was bogus anyway since it didn't prevent the
5603           invoke from happening, it only skipped the check for an existing
5604           handle, meaning that the invoke would call on an inexistent
5605           handle).
5606
5607 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
5608
5609         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
5610         appears in taskbar.
5611
5612 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
5613
5614         * MessageBox.cs:
5615         - Fixed a problem that dont show help button for messages with 3 buttons.
5616         - Refactory button size and position calculations, now dont use fixed 
5617         values, also fixed button sizes (#80043) and form's border space.
5618         - AddButton method created, now all other AddButton methods call this one.
5619         - Some other source code cosmetic changes.
5620
5621 2007-03-18  Jackson Harper  <jackson@ximian.com>
5622
5623         * RichTextBox.cs: Don't do this all fonts must match check if
5624         there is only one char selected.
5625
5626 2007-03-18  Jackson Harper  <jackson@ximian.com>
5627
5628         * TreeView.cs: ScrollWindow works properly now, so we don't need
5629         to screw around with the scroll area.  This fixes some artifacts
5630         when expanding and collapsing.
5631
5632 2007-03-18  Jackson Harper  <jackson@ximian.com>
5633
5634         * TextBoxBase.cs: Allow updating the selection position when the
5635         cursor is outside the textarea, but we have a capture.
5636         * TextControl.cs: A special case for when the cursor is outside
5637         the bounds of the TB.
5638         
5639 2007-03-18  Jackson Harper  <jackson@ximian.com>
5640
5641         * TextBoxBase.cs: Remove image pasting code for now.  There is no
5642         way to get an image on the clipboard right now anyways.
5643         * TextControl.cs:
5644         * RichTextBox.cs: Use the new RTF Picture class for pictures.
5645
5646 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
5647
5648         * MessageBox.cs:
5649         - Set window properties in constructor intead of on CreateParams.
5650         - Remove topmost from Window ExStyle.
5651         - Set ShowInTaskbar to false.
5652         - Set form border to FixedDialog.
5653         - Some cosmetic changes and remove unneeded comments.
5654         - It fixes itens 2,3 and 4 of bug #80043.
5655
5656 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
5657
5658         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
5659         none was explicitly set. Fixes part of bug #79949.
5660
5661 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
5662
5663         * ToolStripComboBox.cs: Add AutoComplete*.
5664
5665 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
5666
5667         * ToolStripComboBox.cs: Add FlatStyle.
5668
5669 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
5670
5671         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
5672         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
5673
5674 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5675
5676         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
5677           CheckBox.cs, RadioButton.cs, BindingSource.cs,
5678           DataGridColumnStyle.cs: Remove warnings.
5679
5680 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5681
5682         * Menu.cs: MergeMenu: Check menu argument for null before looping over
5683           it.
5684         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
5685           visibility of mdi child forms. FormSizeChangedHandler: update the
5686           maximized size if size has changed while maximized.
5687         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
5688           creating the handle.
5689         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
5690           avoid creating the handle if not created.
5691         * XplatUI.cs: Update debug output.
5692         * XplatUIStructs.cs: Added ToString's for a couple of structs.
5693
5694 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
5695
5696         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
5697         ProcessCmdKey().
5698         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
5699         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
5700         Implement keyboard shortcuts.
5701
5702 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
5703
5704         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
5705         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
5706         ColorDialog and all derived classes.
5707
5708 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
5709
5710         [ Fixes bug #79828 ]
5711
5712         * ToolBar.cs:
5713         - Rename ToolBarButtonInfor to ToolBarItem.
5714         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
5715         - Maintain an array of ToolBarItem, used instead of ToolBarButton
5716         collection to be able add same button more than one time on a toolbar.
5717         - Refactory all properties and methods to use ToolBarItem. 
5718
5719         * ToolBarButton.cs: 
5720         - Remove all propeties and methods that is now in ToolBarItem.
5721         - Rectangle propery now gets the rectangle from first ToolBarItem to
5722         mimic win32 behavior.
5723         - Size calculation and layout methods also removed.
5724
5725         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
5726         ToolBarItem instead of ToolBarButton to right drawing buttons when
5727         same button/separator was added more than one time to ToolBar.
5728
5729         * ThemeNice.cs: Same as above. 
5730
5731 2007-03-15  Andreia Gaita  <avidigal@novell.com>
5732
5733         * XplatUIX11.cs: Fire extra MouseMove events right after
5734         MouseDown and MouseUp, emulating win32's <censored> behaviour
5735         for apps that rely on it.
5736
5737 2007-03-15  Jackson Harper  <jackson@ximian.com>
5738
5739         * TextControl.cs:
5740         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
5741         it is drawn on the controls client window and there is no NC
5742         area.
5743         - Set the background color to gray on 2.0 when we are readonly.
5744
5745 2007-03-15  Chris Toshok  <toshok@ximian.com>
5746
5747         [ Fixes bug #81144 ]
5748         
5749         * XplatUIX11.cs: implement VirtualScreen independently of
5750         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
5751         property.
5752
5753 2007-03-15  Chris Toshok  <toshok@ximian.com>
5754
5755         * Hwnd.cs: add an internal field for the cached_window_state.
5756
5757         * XplatUIX11.cs: cache the window state, invalidating the cache
5758         (and thus re-querying the X server) only when we see an update to
5759         the _NET_WM_STATE property.
5760
5761 2007-03-15  Chris Toshok  <toshok@ximian.com>
5762
5763         * BindingSource.cs: get a lot of the unit tests working.
5764
5765 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
5766
5767         * Control.cs: Modify UpdateStyles to store distances when bounds >=
5768         0 instead of just bounds > 0.  [Fixes bug #80912]
5769
5770 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
5771
5772         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
5773         and methods.
5774
5775 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
5776         
5777         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
5778         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
5779         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
5780         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
5781
5782 2007-03-15  Chris Toshok  <toshok@ximian.com>
5783
5784         [ Fixes #81101 ]
5785         
5786         * Control.cs: add Ivan's fix for 81101, with a slight modification
5787         - you can set control.Target to null.
5788
5789 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
5790
5791         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
5792         HideDropDown, use Hide instead to prevent an NRE.
5793         [Fixes bug #81147]
5794
5795 2007-03-14  Jackson Harper  <jackson@ximian.com>
5796
5797         * TextBoxBase.cs: Mess with the creation stuff a little. We need
5798         to calculate the document before the handle is created, in some
5799         cases. (Actually just one case).
5800
5801 2007-03-14  Jackson Harper  <jackson@ximian.com>
5802
5803         * TextBoxBase.cs: Need to display the caret after letting the base
5804         wndproc handle the focus methods, because the caret display
5805         methods check the focus state.
5806         - Try to display the caret after updating it's position with SelectWord.
5807         - Don't need to do an immediate update on this recalc, since there
5808         will be an invalidate anyways.
5809
5810 2007-03-14  Jackson Harper  <jackson@ximian.com>
5811
5812         * TreeView.cs: Some workarounds so that we can match event order a
5813         little better.
5814
5815 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
5816
5817         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
5818         #80803. Avoid NullReferenceException when Control does not have
5819         parent. Fixed different blinkstyle issues. Only subscribe to Tick
5820         event a single time. Only draw error icon when control is created and
5821         visible. Fixes failing unit tests.
5822
5823 2007-03-14  Andreia Gaita  <avidigal@novell.com>
5824
5825         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
5826         Selecting events. Fire Leave and Enter events when changing tabs.
5827
5828 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
5829
5830         * TreeView.cs: Add TreeViewNodeSorter.
5831         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
5832
5833 2007-03-14  Chris Toshok  <toshok@ximian.com>
5834
5835         * Form.cs: go ahead and remove the RecreateHandles that jpobst
5836         removed earlier and I had him add back it.  It turns out metacity
5837         *does* in fact handle the MOTIF_WM_HINTS property changing, it
5838         just doesn't redraw the window titlebar until you resize the
5839         window.  This also means we aren't recreating the entire window
5840         hierarchy on X when you change this property.  And it looks better
5841         on windows, too.
5842
5843 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5844
5845         * ListViewItem.cs:
5846         * ListView.cs: Collecting selection information
5847         is now done in SelectedIndexCollection rather than in
5848         SelectedListViewItemCollection. This is done so we can
5849         have the selection information code in one single place
5850         (virtual mode selection information entirely depends on
5851         SelectedIndexCollection).
5852
5853 2007-03-13  Miguel de Icaza  <miguel@novell.com>
5854
5855         * ErrorProvider.cs: Add stubs for ISupportInitialize
5856
5857 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5858
5859         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
5860         in the right order with the right values, from the Checked property, 
5861         just as MS does (instead of triggering them from ListView).
5862
5863         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
5864
5865 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5866
5867         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
5868         the correct handler in OnItemCheck method (ItemCheckEventHandler 
5869         instead of EventHandler). This used to throw an InvalidCastException.
5870
5871 2007-03-13  Jackson Harper  <jackson@ximian.com>
5872
5873         * TextBoxBase.cs: Calculate the document before the handle is
5874         created, so there isn't an extra invalidate called.
5875
5876 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
5877
5878         * Form.cs: Don't set owner in ShowDialog until we are sure
5879         that we aren't going to throw an exception.  [Fixes bug #80773]
5880
5881 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
5882
5883         * TreeView.cs: Make it compile.
5884
5885 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5886
5887         * Control.cs: Another place we don't call SizeFromClientSize.
5888         * Form.cs: Another place we don't call SizeFromClientSize.
5889         [Fixes bug #81125]
5890
5891 2007-03-12  Jackson Harper  <jackson@ximian.com>
5892
5893         * TreeView.cs: Basically emulating some strangness here with
5894         exanding nodes and setting node positions when windows aren't
5895         created.
5896         - Also attempting to walk the node tree less than previously, and
5897         just use visible order calculations for determining offsets.
5898         - oops made scrolling backwards.
5899         * TreeNode.cs: We need to start nodes with a zero visible order,
5900         because the order calcs are based on the first nodes order.
5901
5902 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5903
5904         * Form.cs: Don't exit the program if RecreateHandle is called on
5905         the main form.
5906
5907 2007-03-12  Chris Toshok  <toshok@ximian.com>
5908
5909         * XEventQueue.cs: remove the use of PostQuitState.
5910
5911         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
5912         WM_QUIT message in GetMessage, return false (and if we're in the
5913         nested WaitForHwndMessage, repost the WM_QUIT message).
5914
5915 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5916
5917         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
5918         or the MaximizeBox properties.  [Part of bug #80640]
5919
5920 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
5921
5922         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
5923         no links.
5924
5925 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5926
5927         * ToolStripItem.cs: Fix some tests I broke by checking Visible
5928         instead of visible.
5929
5930 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
5931
5932         * FileDialog.cs: Use text of File name combobox to determine what
5933         files the user selected. Added tokenizer to parse the file names.
5934         Fixes bug #81123.
5935
5936 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5937
5938         * Control.cs: We can't call SizeFromClientSize in the constructor,
5939         but we still need to do the same work, so make an internal version.
5940         [Fixes bug #80621]
5941
5942 2007-03-12  Jackson Harper  <jackson@ximian.com>
5943
5944         * TreeView.cs:
5945         * TreeNode.cs:
5946         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
5947         IsExpanded.
5948
5949 2007-03-12  Jackson Harper  <jackson@ximian.com>
5950
5951         * TextBoxBase.cs: Now that the handles are being created a little
5952         later, we need to make sure that the document is recalculated when
5953         the handle is created.
5954
5955 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
5956
5957         * Theme.cs: GetLinkFont abstract method added.
5958         
5959         * LinkLabel.cs: 
5960         - Remove CalcTrimRectangle, no longer needed.
5961         - Factor also remove, position issues must be fixed in libgdiplus.
5962         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
5963         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
5964         care about font used to draw links.
5965         - Set TabStop to true when control is "Selectable", control is selectable
5966         when have one or more links. Fixes #80501 (test case is also added).
5967         - Set the LinkArea values after links change, LinkArea values must be
5968         based in first link position and size, a test case was created.
5969         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
5970         the attribute must be true LinkArea.Length > 0. The same was applied to
5971         TabStop.
5972         
5973         * ThemeWin32Classic.cs: 
5974         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
5975         in draw method.
5976         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
5977         color change.
5978         - Draw focus rectangle for every parts focused, including parts that 
5979         is on another line, its because regions returns various rectangles
5980         and not only one. Needed to mimic W32 look.
5981         - Uses Graphics.Clip to delimite region painted, it mean that now 
5982         complete text is passed to DrawString, with this we solve layout
5983         issues without create another text renderer.
5984         - Uses Region.Intersect to fix some flickers problems, now only needed
5985         parts will redrawed.
5986         - This changes fixes #79614 and some other unreported issues, on Linux 
5987         some layout problems still remain, the problem is under 
5988         MeasureCharacterRanges but it is an libgdiplus bug.
5989
5990 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
5991
5992         * TextBox.cs: Set for foreground color.
5993         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
5994         this is already done in Control.
5995
5996 2007-03-10  Jackson Harper  <jackson@ximian.com>
5997
5998         * TextBox.cs: Set the background color, but reset the
5999         backcolor_set flag which is just for the user setting the
6000         background color.
6001
6002 2007-03-09  Chris Toshok  <toshok@ximian.com>
6003
6004         * Control.cs: really remove the call to XplatUI.SetVisible from
6005         CreateHandle(), like I said I did when I merged the branch.
6006
6007         * BindingSource.cs: implement some more of this stuff.
6008
6009 2007-03-09  Jackson Harper  <jackson@ximian.com>
6010
6011         * TextBox.cs: Don't explicitly set our background colors.
6012         * TextControl.cs:
6013         * TextBoxBase.cs: Draw readonly text.
6014         - Need to invalidate when backcolor or readonly are changed.
6015         
6016 2007-03-09  Jackson Harper  <jackson@ximian.com>
6017
6018         * TextBoxBase.cs: Don't set the forecolor until the handle is
6019         created.
6020         - Do not raise OnPaint, and removed some old debug code.
6021
6022 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
6023
6024         * ScrollableControl.cs: Fix mouse wheel scrolling.
6025
6026 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
6027
6028         * Control.cs: Wire up MouseDoubleClick event.
6029
6030 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
6031
6032         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
6033         top or bottom.
6034         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
6035         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
6036         item is added.  This logic was moved to ToolStrip.OnItemAdded.
6037         [Fixes bug #81090]
6038
6039 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6040
6041         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
6042
6043 2007-03-08  Jackson Harper  <jackson@ximian.com>
6044
6045         * TreeView.cs: Show the correct image for selected node (this used
6046         to work, not sure how the code got deleted). Also implemented 2.0 feature
6047         SelectedImageKey.
6048
6049 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6050
6051         * ListView.cs:
6052         * ListViewItem.cs: Cache index in items when retrieving them
6053         in VirtualMode.
6054
6055 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
6056
6057         * ToolStripItem.cs: Don't return the explicit_size if we are using 
6058         AutoSize.  Fixes invalidation issue when user has explicitly set a
6059         size and has AutoSize = true.
6060
6061 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
6062
6063         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
6064
6065 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6066
6067         * DataGridView.cs: Remove event handler from DataView when a
6068         DataTable is used as DataSource.
6069
6070 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
6071
6072         * Control.cs: Create internal setter for client_size to allow it to be
6073         set without triggering resizing code.
6074         * Form.cs: Calculate client_size in constructor, only change client_size
6075         in FormBorderStyle property if Handle has been created.
6076         [Fixes #80574, #80791]
6077
6078 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
6079
6080         * SystemInformation.cs: Add TerminalServerSession.
6081
6082 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
6083
6084         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
6085         TreeView code.
6086
6087 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
6088
6089         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
6090         Handle before we were supposed to.  Now checks ActivateOnShow property
6091         in Control.
6092         * Control.cs: Add internal ActivateOnShow property.
6093         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
6094         for ActivateOnShow.
6095         * Hwnd.cs Remove no longer needed no_activate field.
6096
6097 2007-03-07  Jackson Harper  <jackson@ximian.com>
6098
6099         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
6100         2.0 properties
6101         * DrawTreeNodeEventHandler.cs: Add
6102         * DrawTreeNodeEventArgs.cs: Correct default value.
6103         
6104 2007-03-07  Chris Toshok  <toshok@ximian.com>
6105
6106         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
6107         to be called before NativeWindow.WndProc.  Put the HwndCreating
6108         magic there to hook up our Hwnd's to handles.
6109
6110 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
6111
6112         * DataGridView.cs: Comment out debug code.
6113
6114 2007-03-07  Chris Toshok  <toshok@ximian.com>
6115
6116         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
6117         to make the rest of the world happy]
6118
6119         * Control.cs (CreateHandle): there's no need to call
6120         XplatUI.SetVisible here, it's effectively done by
6121         XplatUI.CreateWindow on X now, and always was on windows.
6122
6123         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
6124         shortcircuit out of the loop if we have a message loop running on
6125         this thread.
6126
6127         [Changelog from merge]
6128
6129         2007-03-05  Chris Toshok  <toshok@ximian.com>
6130
6131                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
6132                 causes handle creation.
6133
6134         2007-02-28  Chris Toshok  <toshok@ximian.com>
6135
6136                 * ApplicationContext.cs: Add a flag to make sure we only raise the
6137                 ThreadExit event once (ExitThreadCore can be indirectly called
6138                 from a few places.)  I don't like the additional flag, but it
6139                 makes the event ordering/count correct.
6140
6141                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
6142                 without locking the collection.  An enumerator doesn't give us any
6143                 protection from modification anyway.  Lock the thread hash and
6144                 replace the complicated enumerator loop with a foreach.
6145                 (Application.CloseForms): make internal so it can be called from
6146                 ApplicationContext.  This should probably be moved to MWFThread.
6147                 (Application.ExitThread): don't call MWFThread.Current.Exit()
6148                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
6149                 when the runloop exits (in response to WM_QUIT.)
6150                 (Application.RunLoop): add a comment (and check) for
6151                 context.MainForm being null after setting context.MainForm.Visible
6152                 = true.  This is because you're perfectly free to dispose of a
6153                 form in VisibilityChanged.  Chalk this up to another case where we
6154                 need to synchronously generate WM_ACTIVATE from Control.Show.
6155                 Also, add handling for WM_QUIT here so we'll exit the loop.
6156                 
6157                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
6158                 fact that we don't wait if we're only unmapping the whole_window
6159                 makes me a bit nervous, but it doesn't seem to cause any problems
6160                 yet.
6161
6162                 also, add a comment about the stupid, broken and wrong resetting
6163                 of PostQuitState to false in GetMessage().
6164
6165                 In PostQuitMessage, we need to add a WM_QUIT message to the
6166                 thread's queue.  We use the FosterParent to get the right
6167                 handle/hwnd/queue.
6168
6169                 Lastly, in SetVisible, we need to unmap both windows, since the
6170                 waiting only happens when we're unmapping the client window.  So
6171                 now, the *only* time we unmap just the whole_window is in the hack
6172                 for resizing a control to 0,0.
6173                 
6174         2007-02-21  Chris Toshok  <toshok@ximian.com>
6175
6176                 * Application.cs (CloseForms): rewrite this so that we don't
6177                 modify the list while we're traversing it.
6178
6179         2007-02-20  Chris Toshok  <toshok@ximian.com>
6180
6181                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
6182                 of OnHandleCreated.
6183                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
6184                 handle is created.  otherwise we'll create it here.
6185                 (VerticalScrollEvent): same here.
6186
6187                 * Application.cs (CloseForms): call Form.Dispose, don't post
6188                 WM_CLOSE_INTERNAL.
6189
6190                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
6191                 here. Application should Dispose() of the Form's.
6192
6193                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
6194                 WM_DESTROY as well.
6195                 (MapWindow,UnmapWindow): only actually do the waiting for
6196                 SHOWWINDOW if the control we're dealing with is a Form.
6197                 (CreateWindow): if the control isn't a form, SendMessage
6198                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
6199
6200                 * Control.cs (SetVisibleCore): always use is_visible here, not
6201                 value.  If we use value, we can end up re-setting something
6202                 visible if, for instance, you do Control.Hide() in a delegate
6203                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
6204
6205         2007-02-20  Chris Toshok  <toshok@ximian.com>
6206
6207                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
6208                 the message we need.  PeekMessage returning false should not be a
6209                 condition under which we exit the loop.
6210
6211         2007-02-15  Chris Toshok  <toshok@ximian.com>
6212
6213                 * Control.cs (Refresh): only refresh if we've got a handle and are
6214                 visible.
6215                 (CreateAccessibilityInstance): CreateControl() here.
6216                 (UpdateChildrenZOrder): complicate the code loop even more by
6217                 taking into account controls that haven't had their handle
6218                 created, and those that aren't visible.  But on the flip side,
6219                 simplify the code by splitting it into two loops.  one which
6220                 builds up the list of child controls we're interested in, and the
6221                 other that sets the z order of those children.
6222
6223         2007-02-14  Chris Toshok  <toshok@ximian.com>
6224
6225                 * Control.cs: Control.AccessibilityObject causes the control to be
6226                 created, not just the handle.
6227
6228         2007-02-14  Chris Toshok  <toshok@ximian.com>
6229
6230                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
6231                 problem on X where a window might have its handle created (and be
6232                 visible) while the window is unmapped.  calling XConfigureWindow
6233                 on an unmapped window is bad, and generates X errors.
6234
6235         2007-02-13  Chris Toshok  <toshok@ximian.com>
6236
6237                 * Control.cs (CreateHandle): don't loop over our children setting
6238                 their parent here.  do it when in WndProc when we're shown.
6239                 (UpdateChildrenZOrder): make this internal so we can call it from
6240                 ScrollableControl.
6241                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
6242                 creating its handle.  Also, remove the calls to PerformLayout from
6243                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
6244                 OnVisibleChanged only seems to be called directly here for the
6245                 toplevel control.  It's propagated down the window hierarchy by
6246                 calls to child.OnParentVisibleChanged.
6247                 (OnVisibleChanged): don't do layout here - it's done (oddly
6248                 enough, according to a glance at stack traces on ms.net..) in
6249                 ScrollableControl.
6250                 
6251                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
6252                 z order of our children before calling PerformLayout.
6253
6254         2007-02-12  Chris Toshok  <toshok@ximian.com>
6255
6256                 [big change, fixes #80020]
6257                 
6258                 * AccessibleObject.cs: we need to make owner internal again to fix
6259                 some of ControlAccessibleObject.
6260
6261                 * Control.cs: lots of changes here.  add support for WM_CREATE,
6262                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
6263                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
6264                 we create child controls.  leave the MonoTODO's for the
6265                 accessibility calls, but fix the exceptions so the tests pass.
6266
6267                 Add the InvalidOperationExceptions to Invoke methods, and remove a
6268                 couple of InvokeInternal methods we aren't using.
6269                 
6270                 Also, add a couple of CreateHandle calls in places where we know
6271                 the handles are being created but our code doesn't reference
6272                 .Handle.
6273
6274                 Make SetVisibleCore call OnVisibleChange if the handle isn't
6275                 created.  If the handle is created, we rely on XplatUI.SetVisible
6276                 generating the event synchronously.
6277                 
6278                 Lastly, make sure we don't use this.Handle inside CreateHandle,
6279                 because we can call back into client (and that code can dispose of
6280                 the control).
6281
6282                 * XplatUIStructs.cs: misc/cleanup.
6283
6284                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
6285                 although we don't populate the wParam properly.
6286                 (CreateWindow): generate WM_CREATE.
6287                 (MapWindow,UnmapWindow): make these calls synchronous, at great
6288                 performance expense (particularly in the unmap case), to match
6289                 win32 behavior.
6290
6291                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
6292                 to call it.
6293                 (set_MdiParent): don't recreate the handle unless it's been
6294                 created already.
6295                 
6296                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
6297                 it's created.
6298
6299                 * NativeWindow.cs: this is probably the weirdest part of the
6300                 patch.  We need a way to link up the window being created to the
6301                 WM_CREATE message.  Since we can only be creating one window at a
6302                 time on a given thread, we keep track of a per-thread reference so
6303                 we can dispatch it properly.  We also need to keep track of the
6304                 Hwnd currently being created so that the win32 backend doesn't
6305                 have problems.
6306                 
6307                 * XplatUIWin32.cs: a similar change to the one we made in
6308                 NativeWindow.cs.
6309
6310 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
6311
6312         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
6313         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
6314         to draw the menu shortcut string.
6315
6316 2007-03-07  Jackson Harper  <jackson@ximian.com>
6317
6318         * TreeNode.cs: Add the 2.0 collapse method.
6319
6320 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6321
6322         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
6323
6324 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6325
6326         * DataGridView.cs: Change DataSource will clear column and row
6327         lists. Call Invalidate() to reflect DataSource change.
6328
6329 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6330
6331         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
6332         and a new row is added to it.
6333
6334 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6335
6336         * DataGridView.cs: Add columns when DataSource is en empty list but
6337         is a System.Data.DataView (from a System.Data.DataTable).
6338
6339 2007-03-06  Andreia Gaita  <avidigal@novell.com>
6340
6341         * Label.cs: Implement AutoEllipsis (2.0)
6342
6343 2007-03-06  Jackson Harper  <jackson@ximian.com>
6344
6345         * TreeView.cs: Implement 2.0 TopNode setter property.
6346         - Use a local var instead of the skipped_nodes field for computing
6347         how many nodes to skip.  Otherwise we won't scroll because the
6348         valuechanged handler checks if skipped_nodes is equal to the new
6349         value.
6350         - Implement 2.0 Sort method.
6351         - Add useless 2.0 DoubleBuffer property
6352         - Implement 2.0 LineColors property.  Lets you change the color of
6353         the lines in the tree. Terribly useful for creating non cohesive
6354         desktops.
6355         - Implement 2.0 image key feature.
6356
6357 2007-03-06  Jackson Harper  <jackson@ximian.com>
6358
6359         * TreeView.cs: We can't get the bounds of the nodes before raising
6360         the AfterSelect event, because that event could change the node's
6361         bounds (scrolling, font change, etc).
6362
6363 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6364
6365         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
6366         * Form.cs: Don't recreate handle when creating FormWindowManager, just
6367           update window styles. In CreateParams us VisibleInternal instead of
6368           VIsible to get the actual visible flag set for this form.
6369         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
6370           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
6371           handle the case when the form is already maximized, in which case
6372           it should be restored. Fixes #81043.
6373
6374 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6375
6376         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
6377
6378 2007-03-05  Jackson Harper  <jackson@ximian.com>
6379
6380         * TreeViewHitTestInfo.cs: implement.
6381
6382 2007-03-05  Jackson Harper  <jackson@ximian.com>
6383
6384         * InternalWindowManager.cs: class status fix.
6385
6386 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6387
6388         * InternalWindowManager.cs: All windows that have a parent
6389         are confined to their parent when they're being moved.
6390         Fixes #80822.
6391
6392 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
6393
6394         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
6395         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
6396
6397 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6398
6399         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
6400           buttons invisible before deciding which ones should be visible
6401           (fixes minimize/maximize buttons showing up in toolwindows). Remove
6402           an unused variable.
6403         * InternalWindowManager.cs: Remove warning.
6404
6405 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6406
6407         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
6408         to throw an InvalidOperationException is virtual mode is being used.
6409
6410 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
6411
6412         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
6413         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
6414         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
6415         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
6416         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
6417         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
6418
6419 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6420
6421         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
6422           driver.KeyboardDelay from XplatUI.KeyboardDelay 
6423         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
6424           (patch by Sergey Volk)
6425
6426 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6427
6428         * ToolWindowManager.cs: Added, contains logic for
6429           tool windows.
6430         * CreateParams.cs: Add a few helper methods and an
6431           internal variable to know which control the CreateParams belongs
6432           to.
6433         * Control.cs: Call Form.ChangingParent when the
6434           parent is about to be changed.
6435         * XplatUIX11.cs: DeriveStyles (): Set
6436           caption_height for all windows that have captions and are children.
6437           Update to use ToolWindowManager instead of InternalWindowManager
6438           for ToolWindows.
6439         * XplatUIWin32.cs: Set fake window styles for all
6440           windows that have window managers.
6441         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
6442           now duplicated for mdi windows when they are
6443           maximized, first for the buttons the window itself has, then for
6444           the buttons that appear in the menu bar. Makes things a little
6445           easier). Updated UpdateWindowDecorations, SetWindowState and the
6446           mouse eventhandlers accordingly.
6447         * Form.cs: Add ChangingParent (), contains the
6448           logic of what should happen when the parent changes. In MdiParent
6449           don't set things that ChangingParent () is doing. When handling
6450           WM_CLOSE, we can close the form if there are any other modal forms
6451           and the current form is a descendent of the modal form.
6452         * InternalWindowManager.cs: A lot of refactoring,
6453           the title buttons are now extracted to a separate container class
6454           that takes care of all button code (clicks, tooltips, etc). Moved
6455           Iconic|Maximized|Normal Bounds properties to this class from
6456           MdiWindowManager, so that the window state logic can succeed for
6457           other than mdi wm's. Implemented general window state change logic.
6458           Moved CreateButtons to ThemeWin32Classic, since the theme might
6459           override which buttons are available when as well as the exact
6460           location.
6461         * FormWindowManager.cs: Added, contains logic for
6462           normal forms.
6463         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
6464           which buttons go where (and if they are at all visible). 
6465           Removed special handling of maximized windows, since they aren't special. 
6466           In DrawManagedWindowDecorations don't try to draw the text if it is
6467           empty.
6468         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
6469           use whatever the wm gives us.
6470
6471 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
6472
6473         * ButtonBase.cs: Add 2.0 properties.
6474         * Button.cs: Override Draw for 2.0.
6475         * Control.cs: Add Entered and Selected properties.
6476         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
6477         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
6478         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
6479         buttons.
6480         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
6481
6482 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
6483
6484         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
6485
6486 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
6487
6488         * XplatUIWin32.cs: Register a new class with Windows each time we get
6489         a new ClassStyle.  [Fixes bugs #79432, #80817]
6490         * Controls.cs: Set the correct ClassStyle in CreateParams.
6491         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
6492
6493 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
6494
6495         * ListView.cs: Add fireEvent argument to ReorderColumn since the
6496         ColumnReordered event must not be signaled when modifying DisplayIndex
6497         of a ColumnHeader. Added internal ReorderColumns method which takes
6498         care of drawing, and updating the internal DisplayIndex of the
6499         ColumnHeader. Added AddColumn method which is invoked from
6500         ColumnHeaderCollection when adding or inserting columns, and which
6501         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
6502         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
6503         Recalculated dispay indices after removing a ColumnHeader.
6504         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
6505         match MS. Allows last display index to be returned after ListView
6506         is disposed. Update actual location of ColumnHeader when DisplayIndex
6507         is modified.
6508
6509 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
6510
6511         * LinkLabel.cs: Improve CalcTrimRectangle.
6512         
6513         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
6514
6515 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
6516
6517         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
6518         get rectangle as a result value.
6519
6520 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
6521
6522         * LinkLabel.cs: Theres some diferences between rectangle return from 
6523         MeasureCharacterRanges and the area used for DrawString to fix this 
6524         CalcMeasurementFactor method was created, it calcules the diferences
6525         to be use later to adjust rectangle in draw operations. Fixes #80473.
6526         
6527         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
6528         to adjust draw rectangle.
6529
6530 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
6531
6532         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
6533         text and some other changes to reduce and optimize source code.
6534
6535 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
6536
6537         * RadioButton.cs: Implement 2.0 event.
6538         * RelatedImageListAttribute.cs: Implement new class.
6539
6540 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
6541
6542         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
6543
6544 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
6545
6546         * CheckBox.cs: Implement 2.0 functionality.
6547
6548 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6549
6550         * ListView.cs: Refactor Add and AddRange methods of
6551         ListViewItemCollection, to not update the ListView
6552         everytime an item is added in AddRange. Also move the update
6553         code to a new CollectionChanged method, and call it
6554         from other methods that need it as well (this should also fix some
6555         bugs when Sorting is used).
6556
6557 2007-02-27  Jackson Harper  <jackson@ximian.com>
6558
6559         * TextControl.cs: Try to never let the caret stay in a non-text
6560         tag.
6561         * TextBoxBase.cs: Update the caret.
6562
6563 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
6564
6565         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
6566         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
6567         delete POINT structure, duplicate of one in XplatUIStructs.
6568         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
6569
6570 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
6571
6572         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
6573         edit box since otherwise the Label would immediately be set (even if
6574         the user did not modify the label). In OnKeyDown set Handled to true
6575         if Return or Escape was pressed. In ColumnHeaderCollection unlink
6576         columns that are to be removed. In ListViewItemCollection unlink items
6577         that are to be removed.
6578
6579 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
6580
6581         * TextRenderer.cs: If we set a GDI clip region, we need to clear
6582         it when we are done.  [Fixes bug #80949]
6583
6584 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6585
6586         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
6587
6588 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6589
6590         * ListView.cs: I forgot to commit the changes for ListView 
6591         in my previous patch.
6592
6593 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6594
6595         * Clipboard.cs: Partially implement an overload of SetDataObject.
6596         * Form.cs: Implement ShowWithoutActivation.
6597         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
6598
6599 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6600
6601         This is a first set of changes to make the Virtual mode works,
6602         by avoiding the retrieval of ListViewItem instances until
6603         draw time.
6604
6605         * ListView.cs: Store item position in the ListView instead of the
6606         ListViewItem, this way we don't request the Bounds property of
6607         ListViewItem inside the ListView calculations, as well as cache the item
6608         size in item_size field. Store indexes instead of ListViewItem
6609         instances in the matrix used by icon view. Add a ItemMatrixLocation
6610         struct to hold the row and col info of the matrix info.
6611
6612         * ListViewItem.cs: Don't store the location anymore, and only cache
6613         the rectangles for GetBounds. Use the ListView.GetItemLocation
6614         method to retrieve the actual location.
6615
6616 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6617
6618         * TextRenderer.cs: Add clipping support, thanks to George.
6619         [Fixes bug #80949]
6620
6621 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
6622
6623         * ListViewItem.cs: Cancel label edit when item is removed from 
6624         ListView.
6625         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
6626         event before the edit textbox is displayed.  Added CancelEdit method
6627         which is used end to editing while ignoring the value set by the
6628         user. In EndEdit, set focus to ListView to avoid losing focus to
6629         other controls. In ListViewItemCollection.Clear, cancel editing of
6630         any of the items.  In Remove, cancel editing of item being removed.
6631         Avoid udplicate code by modifing RemoveAt to invoke Remove.
6632
6633 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
6634
6635         * FileDialog.cs: Update FSEntry when move is successful. Fixes
6636         bug #80948.  
6637
6638 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
6639
6640         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
6641         compatible with non X11 systems. Fixes #80901.
6642
6643 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
6644
6645         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
6646         whether the item should be unselected and reselect. We do no want this
6647         when we're starting to edit the label. Do not fire the 
6648         SelectedIndexChanged event from ListView when its already been fired
6649         by modifying ListViewItem.Selected. Fixes bug #80943.
6650
6651 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6652
6653         * TextRenderer.cs: Previos commit logic was backwards.
6654
6655 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6656
6657         * TextRenderer.cs: Don't add padding on MeasureText if we were
6658         sent the NoPadding flag.
6659
6660 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
6661
6662         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
6663         after DrawButton. To prevent image overlaps button borders SetClip and 
6664         ResetClip added before and after draw image. Fixes #79129.
6665
6666 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
6667
6668         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
6669         window size, it fix problem when you run under win32 that theres
6670         Size diferent than ClientSize. Also fix controls size and positions
6671         to mimic Win32. Fixes #80837.
6672
6673 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
6674
6675         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
6676         menu area to fix some problems for non X11 systems. Fixes #80613.
6677
6678 2007-02-22  Jackson Harper  <jackson@ximian.com>
6679
6680         * TreeNode.cs: When a node is expanded, set its is_expanded flag
6681         even if it doesn't have any children.
6682
6683 2007-02-22  Jackson Harper  <jackson@ximian.com>
6684
6685         * TreeView.cs: Calculate the top node 'on the fly', this
6686         eliminates issues where you need to click on the tree before
6687         scrolling it to get the top node computed correctly.
6688         * TreeNodeCollection.cs: We don't need to mess with the top node
6689         anymore.
6690
6691 2007-02-22  Jackson Harper  <jackson@ximian.com>
6692
6693         * DataGridViewRow.cs: Fix typo so height can actually be set.
6694         Patch by Peter Grimm.
6695
6696 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
6697
6698         * FileDialog.cs: Fixed support for renaming files and directories.
6699         * ListView.cs: Do not lose focus when edit is canceled. Process
6700         Escape as regular key (to prevent closing of dialogs).
6701
6702 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
6703
6704         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
6705         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
6706
6707 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
6708
6709         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
6710         did not modify label.
6711         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
6712         modified the text. Reset Label when user presses Escape in edit mode.
6713         Move focus to ListView after having cancelled or finished editing the
6714         label.
6715
6716 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
6717
6718         * ComboBox.cs: Removed unnecessary initializations. Marked items field
6719         private. Clear textbox when Text is set to null and SelectedIndex is
6720         already -1.
6721         * FileDialog.cs: Removed unnecessary initializations. Removed 
6722         workarounds for ComboBox bugs that are now fixed. Modified
6723         DefaultExt, InitialDirectory and Title property to change null to
6724         zero-length string in getters. Avoid directly accessing fields.
6725
6726 2007-02-20  Jackson Harper  <jackson@ximian.com>
6727
6728         * TextControl.cs: Remove RecalAlignments call, that was some
6729         debugging leftovers.
6730         - Don't use the line indent when we shouldn't.
6731         * RichTextBox.cs: Add support for paragraph left indents.
6732
6733 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6734
6735         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
6736         Seems like the class status pages doesn't catch params differences.
6737
6738 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
6739
6740         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
6741
6742 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
6743
6744         * ComboBox.cs: Setting Text should have no effect if item text of
6745         selected item exactly matches value. First lookup text using
6746         case-sensitive comparison, and fallback to case-insensitive comparison.
6747         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
6748         allow startIndex to be last index. Changed ArgumentOutOfRangeException
6749         paramname to match MS. Restart from first item if string is not found
6750         after startIndex. Fixed paramname of ArgumentNullException that is
6751         thrown for null value in ObjectCollection.Contains.
6752
6753 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
6754
6755         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
6756
6757 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6758
6759         * ListControl.cs: In SelectedValue use value.Equals to compare for
6760         equality instead of ==, otherwise it will fail for strings.
6761         Fixes #80794.
6762
6763 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6764         
6765         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
6766         since the caret won't show up unless ShowSelection is true. 
6767         Fixes #80795.
6768
6769 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6770
6771         * Application.cs: When disabling all forms but the main form, do not
6772           disable any descendants of the main form (such as mdi children or
6773           other parented forms). Fixes #80822 on Windows.
6774         * Form.cs: If we have a parent, set the WS_CHILD style.
6775         * Control.cs: Update the window styles if the control whose parent has
6776           changed is a form (the WS_CHILD style has to be switched).
6777
6778 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
6779
6780         * XplatUIStructs.cs: MsgUIState structure added.
6781
6782 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
6783
6784         * FileDialog.cs: Removed need for separate fileName field. On 2.0
6785         profile, do not check filename(s) for illegal character if filename(s)
6786         were set non-interactively but always check on 1.0 profile. Fixed NRE
6787          in DefaultExt and only strip off first leading dot. Improve exception
6788         message when invalid Filter is set. Do not ignore InitialDirectory if
6789         it does no exist. Store specified Title, and if empty use default
6790         title (depending on type of dialog). Added an internal DialogTitle 
6791         property for retrieving dialog title. Fixed logic of displayed dir to
6792         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
6793         string as its buggy.
6794         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
6795         FileName is a zero-length string (it can never be null). Override 
6796         DialogTitle property to set default title of dialog box.
6797         * SaveFileDialog.cs: Override DialogTitle property to set default
6798         title of dialog box.
6799
6800 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
6801
6802         * FileDialog.cs: Modify default text of filename and filetype labels
6803         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
6804         after we've updated the SelectedIndex. Fixes part of bug #80887.
6805         * SaveFileDialog.cs: Set text of filetype label.
6806
6807 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6808
6809         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
6810         label field. Needed by latest Jackson's fixes for ListView.
6811
6812 2007-02-16  Andreia Gaita  <avidigal@novell.com>
6813
6814         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
6815         print preview images.
6816
6817 2007-02-16  Jackson Harper  <jackson@ximian.com>
6818
6819         * ListView.cs: Make AfterLabelEdit work correctly.
6820         * FileDialog.cs: After changing the name of the folder, we have to
6821         make sure that it is created, or that we pop up an error because
6822         it already exists.
6823
6824 2007-02-16  Jackson Harper  <jackson@ximian.com>
6825
6826         * X11Dnd.cs: Implement aliases on mime handlers, so things like
6827         System.String are mapped to text.
6828         - Handle dataobjects, getting all the possible formats out of them
6829         - We dont need the drag event args before we give feedback. This
6830         allows feedback cursors to be immediate before selections have
6831         been converted.
6832
6833 2007-02-16  Jackson Harper  <jackson@ximian.com>
6834
6835         * TextBoxBase.cs: Modified the method for inserting images to
6836         taking a line and position instead of tag and position.
6837         * RichTextBox.cs: Handle PngBlip data by inserting the png image
6838         into the RTF file.
6839         * TextControl.cs: Allow images to be inserted as the first tag of
6840         a line.
6841         - Fix some off by one issues when we assume the first tag is a
6842         text tag, not an image tag.
6843
6844 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6845
6846         * ListView.cs: Set focus to ListView when ItemControl gets a
6847         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
6848         Fixes part of #80467.
6849
6850 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6851
6852         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
6853           validate Text input (if null or empty string reset Value to default
6854           value). Fixes #80830.
6855
6856 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6857
6858         * ListView.cs: Set owner as null for columns and items when
6859         Dispose is invoked. Fixes #80607.
6860
6861 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
6862
6863         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
6864         showing DropDowns, don't show a Grip when doing Flow layout.
6865         [This fixes the toolbox in PDN 2.72.]
6866         * ToolStripItem.cs: Add Anchor property and some internal properties to
6867         reduces needed changes to FlowLayout.
6868         * ToolStripOverflow.cs: Remove unused variable.
6869         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
6870         use it in the layout calculations.
6871
6872 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
6873
6874         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
6875         reported in #79640.
6876         
6877         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
6878         size calculation.
6879
6880 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
6881
6882         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
6883         MeasureString format, it can make button very large in some cases, it is
6884         strange but is what win32 do.
6885
6886 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
6887
6888         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
6889         size calculation.
6890
6891         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
6892         rendering, the value is based on MenuAccessKeysUnderlined.
6893
6894 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
6895
6896         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
6897         for most themes.
6898         
6899         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
6900         
6901         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
6902         and use MenuAccessKeysUnderlined instead.
6903
6904 2007-02-13  Andreia Gaita  <avidigal@novell.com>
6905
6906         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
6907         A selected control would not get a Focus call if:
6908                 - the default active control of the container is the same as
6909                   the one that was selected
6910                 - we are switching from one container to another
6911         Under these conditions, the container being selected already has
6912         an active_control, which is the same as the one being activated, 
6913         so set_ActiveControl would always return and not send the Focus
6914         call. Fix to check if the currently active control of the container
6915         is actually focused.
6916
6917 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
6918
6919         * StatusStrip.cs: Implement the spring layout.
6920         * ToolStripControlHost.cs: Make sure the hosted control's visibility
6921         always matches the host.
6922         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
6923         and TextAfterImage.
6924
6925 2007-02-13  Andreia Gaita  <avidigal@novell.com>
6926
6927         * Control.cs: Code reorganization only.
6928           - Reorganize the WndProc cases so that each case has it's own handling method, 
6929           to help with the no-line-numbering stack traces.
6930           - Formatting changes (it's vstudio's fault, really :p)
6931
6932 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6933
6934         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
6935           Thread.CurrentUICulture to match DateTimePicker's (and MS)
6936           behaviour.
6937
6938 2007-02-12  Jackson Harper  <jackson@ximian.com>
6939
6940         * RichTextBox.cs:
6941         * TextBox.cs: By default we have a non multiline document
6942         - use the multiline property instead of the internal variable
6943         * TextBoxBase.cs: Treat multiline and non multiline the same in
6944         most places.
6945         - Use the documents multiline flag instead of tracking it ourself
6946         * TextControl.cs: Attempt at getting multiline to match MS
6947         behavior.  Lines now track an offset, which is either their X or Y
6948         offset depending on whether or not we are in multiline mode.
6949         - Update all the methods to understand that lines have an X value.
6950         - Fix crash in Undo::Duplicate when empty lines are deleted.
6951
6952 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
6953
6954         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
6955         code moved to properties PreferredHeight and PreferredWidth. It solve the
6956         all problems when preferred sizes must be recalculated. Fixes #80801.
6957
6958 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
6959
6960         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
6961         font height when compatible_text_rendering is false. Partially fix #80801.
6962
6963 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
6964
6965         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
6966
6967 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
6968
6969         * Form.cs: Improved exception messages in ShowDialog.
6970
6971 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
6972
6973         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
6974         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
6975         if not set. Fixes bug #80764. Avoid accessing current_settings field
6976         directly.
6977
6978 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
6979
6980         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
6981         false.
6982
6983         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
6984         public in 2.0 and for easy maintenance and dont break compatibility it is 
6985         internal in 1.1.
6986         
6987 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
6988
6989         * ToolStripItem.cs: Implement using images from ImageList.
6990
6991 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6992
6993         * DateTimePicker.cs: Change default date-formatting culture from
6994           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
6995           seems to be the way MS does it.
6996
6997 2007-02-08  Andreia Gaita  <avidigal@novell.com>
6998
6999         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
7000         (the 6 was cut off on the right side)
7001
7002 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
7003
7004         * Form.cs: Tell MenuStrips to close when the form is clicked.
7005         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
7006         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
7007         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
7008         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
7009         support for Overflow, where items that do not fit are automatically
7010         reparented to a drop down menu.
7011         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
7012         Also: fixes bug #80747.
7013
7014 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7015
7016         * ComboBox.cs: Remove warning (unused code).
7017         * ScrollableControl.cs: Remove warning for 1.1 profile.
7018
7019 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7020
7021         * Form.cs: Remove a warning.
7022
7023 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7024
7025         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
7026           'g' specifier, not documented anywhere, but seems to always show up
7027           as a single space (might have something to do with the DateTime 'g'
7028           specifier, which is the era format, but since DateTimePicker can't
7029           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
7030           won't crash if the format has an unmatched quote. Now shows
7031           single-character formats correctly. Fixes #80744.
7032
7033 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
7034
7035         * StatusStrip.cs: Stretch property needs to call base.Stretch,
7036         not this.Stretch to fix stack overflow. [Fixes bug #80760]
7037
7038 2007-02-07  Chris Toshok  <toshok@ximian.com>
7039
7040         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
7041         background color.  it overwrites the background image we've
7042         already painted.  Fixes #80599.
7043
7044 2007-02-07  Chris Toshok  <toshok@ximian.com>
7045
7046         * DataGrid.cs: return immediately from Edit() when there are no
7047         columns.  Fixes #80662.
7048
7049 2007-02-07  Chris Toshok  <toshok@ximian.com>
7050
7051         * MessageBox.cs: fix #80625.  don't always show the Help button in
7052         2.0.  use the displayHelpButton parameter to determine if we
7053         should show it. Also, make the internal show_help field private.
7054
7055 2007-02-07  Chris Toshok  <toshok@ximian.com>
7056
7057         * Control.cs (SetVisibleCore): check in the proposed patch for
7058         80604, and set is_visible before calling CreateControl.
7059
7060 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
7061
7062         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
7063         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
7064         on it.
7065
7066 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
7067
7068         * MenuAPI.cs: hotkey_active internal field added, it is required because
7069         we need to know when hotkeys must be draw, before this change a keystate
7070         Navigating was used but we can have menu in navigating state without
7071         hotkeys. Fixes #80694.
7072         
7073         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
7074
7075 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7076
7077         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
7078           corresponding events and methods to be internal for 1.1 profile and
7079           public for 2.0 profile (required by SizeGrip).
7080         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
7081           implicit control list). Don't set the size nor the location of the
7082           SizeGrip anymore as it's not needed.
7083         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
7084           draw directly on the captured control (fixes #80656). Removed
7085           ShowGrip (it wasn't used anywhere), redraw (always true), added
7086           GetDefaultSize and GetDefaultRectangle to calculate defaults.
7087         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
7088           be called from SizeGrip.
7089
7090 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7091
7092         * Timer.cs: Throw ArgumentException if Interval <= 0.
7093
7094 2007-02-05  Jackson Harper  <jackson@ximian.com>
7095
7096         * TreeView.cs: We need to check scrollbar visibility when window
7097         visibility is updated, because non visible trees don't ever add
7098         scrollbars.
7099         * Cursor.cs: We want the override cursor to be reset to NULL when
7100         we set current cursor to the default cursor.
7101
7102 2007-02-05  Jackson Harper  <jackson@ximian.com>
7103
7104         * TextControl.cs: Don't have crlfs when we are non multiline.
7105         - Consolidate the line position.
7106
7107 2007-02-05  Jackson Harper  <jackson@ximian.com>
7108
7109         * X11Keyboard.cs: BACK+CTRL gets a special char code.
7110
7111 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7112
7113         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
7114           handling LeaveNotify->NotifyUngrab in order to send
7115           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
7116           after calling XUngrabPointer, so we call WindowUngrabbed directly
7117           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
7118         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
7119           MouseCaptureChanged correctly. Also create handles if changing
7120           Capture (matches MS behaviour).
7121
7122 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7123
7124         * SizeGrip.cs: Make the last change 2.0 only.
7125
7126 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7127
7128         * SizeGrip.cs: If resizing and the capture is lost, revert any size
7129           changes to initial size (fixes #80597).
7130
7131 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7132
7133         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
7134
7135 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7136
7137         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
7138           background) and only allow dragging if enabled. This way the
7139           sizegrip can be used to fill the open square that otherwise would
7140           have been shown in the bottom right corner of ScrollableControl
7141           when ScrollableControl is not suppose to support sizing.
7142         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
7143           sizegrip is shown and enabled, and hook up with necessary events.
7144
7145 2007-02-01  Chris Toshok  <toshok@ximian.com>
7146
7147         * DataGridTextBoxColumn.cs: clean up the
7148         GetFormattedString/GetColumnValueAtRow combination of functions.
7149         Also fix UpdateUI, and the initial state of
7150         IsInEditOrNavigateMode.
7151
7152         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
7153         aren't supposed to scroll the textbox here, we're supposed to
7154         scroll the datagrid.
7155
7156 2007-02-01  Chris Toshok  <toshok@ximian.com>
7157
7158         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
7159         setting the position.
7160
7161 2007-02-01  Chris Toshok  <toshok@ximian.com>
7162
7163         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
7164         here, since the most recent focus fixes keep us from generating
7165         the Leave event when our textbox gets focus.
7166         (Edit): we should be passing null for the column style's
7167         instantText parameter.
7168         
7169 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
7170
7171         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
7172         raised.  Fixes menu text/icons not showing up in PDN.
7173
7174 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7175
7176         * Control.cs: Remove code in constructor that makes every
7177         control with WS_CHILD set have initial location -1, -1.
7178
7179 2007-01-31  Jackson Harper  <jackson@ximian.com>
7180
7181         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
7182         XplatUIX11.
7183         * XplatUIX11.cs: Give teh keyboard to teh dnd.
7184
7185 2007-01-31  Jackson Harper  <jackson@ximian.com>
7186
7187         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
7188         - Remove some debug code.
7189
7190 2007-01-31  Jackson Harper  <jackson@ximian.com>
7191
7192         * XplatUIX11.cs: If you set the override cursor during a grab, it
7193         should actually override the grab cursor.  This comes into play
7194         when you are setting custom cursors in a DND feedback method.
7195
7196 2007-01-31  Jackson Harper  <jackson@ximian.com>
7197
7198         * X11Dnd.cs: Add support for handling the QueryContinue and
7199         GiveFeedback events.
7200         - Cancel drag and drop actions when the escape key is clicked.
7201         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
7202         can handle the ESCAPE key.
7203         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
7204         done when dnd events are continued after the button is released.
7205         - Add a new helper method so that dnd can translate key events.
7206
7207 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
7208
7209         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
7210         make it more obvious what is happening.
7211
7212 2007-01-30  Jackson Harper  <jackson@ximian.com>
7213
7214         * XplatUIX11.cs: Don't break when handling button release in drag
7215         and drop operations. We need that BUTTONUP message to get through
7216         so capture is released.
7217         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
7218         this is handled automatically when the mouse is down.
7219
7220 2007-01-30  Jackson Harper  <jackson@ximian.com>
7221
7222         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
7223         is closed, so we need to make sure that we aren't changing the
7224         dialog result when the OK (Open or Save) button has been clicked
7225         and we are closing the window ourselves.  Note we don't need to
7226         worry about the cache being written in this case, because it was
7227         already done in the previous FilOk call.
7228
7229 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7230         
7231         * DateTimePicker.cs: Remove a warning.
7232         * ComboBox.cs: Remove a couple of warnings.
7233
7234 2007-01-29  Chris Toshok  <toshok@ximian.com>
7235
7236         * XplatUIX11.cs: don't crash, and remove the icon if the user has
7237         set one, if SetIcon is passed a null icon.
7238
7239 2007-01-29  Andreia Gaita  <avidigal@novell.com>
7240
7241         * TextBox.cs: Redraw when the password characters changes
7242         * TextControl.cs: Check if textbox has a password char and draw 
7243         a line of password chars instead of the text in the line. LineTag gets 
7244         an extra Draw() method which allows document.Draw to override the text 
7245         that will be drawn. Removes 1024 char limitation on length of passworded 
7246         lines.
7247
7248 2007-01-29  Jackson Harper  <jackson@ximian.com>
7249
7250         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
7251         single chars is not.
7252
7253 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
7254
7255         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
7256         one pixel.  Fix a StackOverflowException caused by an overload wrongly
7257         calling itself.
7258
7259 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
7260
7261         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
7262         also remove ProcessArrowKey and put the code inside ProcessKeys.
7263
7264 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
7265
7266         * PaddingConverter.cs: Added.
7267
7268 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7269         
7270         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
7271         ShowPanels is false (fixes #80600). Only draw up to 127 characters
7272         of text (fixes #80601). For panels clip the text to draw to the
7273         panel (fixes #80603).
7274
7275 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7276
7277         * ComboBox.cs: Fixed implementation of ResetText.
7278
7279 2007-01-25  Jackson Harper  <jackson@ximian.com>
7280
7281         * TextControl.cs: For the last char of a line we need to use the
7282         line size, not that chars width, since it won't actually be
7283         computed since the right side of a char is based on the start of
7284         the left side of the next char, and the next char does not exist.
7285
7286 2007-01-25  Chris Toshok  <toshok@ximian.com>
7287
7288         * Splitter.cs: fix the new unit tests, and reindent some switch
7289         statements.
7290
7291 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7292
7293         * ComboBox.cs: Implemented 2.0 methods and events.
7294         * TextBoxBase.cs: Added OnTextUpdate, so that
7295         ComboBox.ComboTextBox can inform ComboBox of it.
7296
7297 2007-01-25  Jackson Harper  <jackson@ximian.com>
7298
7299         * TextControl.cs: Respect ShowSelection when deciding whether or
7300         not to display the caret, this allows comboboxes to have carets
7301         when the combotextbox does not have focus.
7302
7303 2007-01-25  Jackson Harper  <jackson@ximian.com>
7304
7305         * TextControl.cs: Add a Suspend/Resume for updating, basically the
7306         same as the Suspend/Resume for recalc, except this will do actual
7307         Invalidates.
7308         - New Undo manager, works much like the MS version.
7309         - Implemented Redo
7310         * TextBoxBase.cs: The Cut operation is undoable.
7311
7312 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7313         
7314         * TextBoxBase.cs: Don't antialias text. Makes it look way better
7315         on Windows (no difference on Linux).    
7316
7317 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7318
7319         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
7320         we don't want to activate any windows. Fixes #79433.
7321
7322 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
7323
7324         - ButtonBase.cs: Fix capitalization of parameter: disposing.
7325         [Fixes bug #80609]
7326
7327 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
7328
7329         * FileDialog.cs:
7330         - Move to using System.ComponentModel.EventHandlerList
7331         - Replace Refresh with Invalidate
7332         - Clear the mime filecache on closing
7333         - Some other memory reducing work. After beeing closed FD now uses
7334           only about 300 KB for the fdo mime stuff plus the memory of the
7335           cached icons.
7336         * Mime.cs: Changed coding style and removed unnecessary commented
7337         code. Some more memory memory reducing work.
7338
7339 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7340
7341         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
7342         a few other missing 2.0 properties.
7343         * Theme.cs: Added DrawFlatStyleComboBox.
7344         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
7345
7346 2007-01-24  Chris Toshok  <toshok@ximian.com>
7347
7348         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
7349         wake_waiting flag, not just when there's data to be read.  if we
7350         don't, then future wakeup's won't reach us and we'll be doomed to
7351         wait for the entire 1 second timeout forever (unless there are X
7352         events to be had).
7353
7354 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
7355
7356         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
7357         until you pass Items.Count, not Items.Count - 1 like 1.1.
7358
7359 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
7360
7361         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
7362
7363 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
7364
7365         * ToolStripContainer.cs: The recent Dock fix exposed that I was
7366         adding the panels in the wrong order.
7367
7368 2007-01-24  Jackson Harper  <jackson@ximian.com>
7369
7370         * TextBoxBase.cs: When we move the caret we also need to move the
7371         selection, this fixes some random crashing after doing select
7372         text, unselect, delete a char, paste.
7373
7374 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7375
7376         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
7377
7378 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
7379
7380         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
7381         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
7382         * ToolBar.cs: Force redraw in BackgroundImageChanged.
7383
7384 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
7385
7386         * ToolBar.cs:
7387         - Implement support for vertical toolbars. Fixes #80539;
7388         - Call LayoutToolBar when resize, it fix some other problems in layout.
7389         - Rename requested_height to requested_size, as we can have width on it
7390         when toolbar is vertical.
7391         - Create a private property "Vertical" that uses Dock to verify when 
7392         toolbar is vertical or not.
7393         - Set ControlStyles when change Dock property.
7394         - Refactory in LayoutToolBar to have better variables names and to support
7395         vertical toolbars.
7396         - Fixes default value for ButtonSize when button count is equal zero, size
7397         must be (39, 36) test case writed.
7398
7399 2007-01-23  Chris Toshok  <toshok@ximian.com>
7400
7401         * Control.cs: fix the checks so that they work correctly for mdi
7402         parents/children.
7403
7404 2007-01-23  Chris Toshok  <toshok@ximian.com>
7405
7406         * Control.cs: ControlCollection seems to have super-secret
7407         abstraction breaking knowledge of Mdi containers.  allow MdiClient
7408         to add toplevel controls.
7409
7410 2007-01-23  Chris Toshok  <toshok@ximian.com>
7411
7412         * Control.cs: throw an ArgumentException if a toplevel control is
7413         added to our control collection from ControlCollection.Add, as
7414         well as from ControlCollection.IList.Add.  This fixes the
7415         ControlSetTopLevelTest.TestTopLevelAdd unit test.
7416
7417         Also, in ControlCollection.IList.Add, don't through an
7418         ArgumentNullException, throw an ArgumentException, when value ==
7419         null.  This matches MS.
7420
7421 2007-01-23  Chris Toshok  <toshok@ximian.com>
7422
7423         * BindingSource.cs: initial, incomplete, implementation of
7424         BindingSource.
7425
7426 2007-01-23  Jackson Harper  <jackson@ximian.com>
7427
7428         * TextControl.cs:
7429         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
7430         that I can fix a broken unit test (TextBoxTest::ClearUndo)
7431         
7432 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
7433
7434         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
7435
7436 2007-01-23  Andreia Gaita  <avidigal@novell.com>
7437
7438         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
7439         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
7440         IndexOfKey() for 2.0
7441
7442 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7443
7444         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
7445         to prevent it from changing z-order.
7446         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
7447         leave UI updates in MdiWindowManager.
7448         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
7449         1 sized (NC handling goes weird on Linux otherwise).
7450         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
7451         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
7452         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
7453         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
7454         and SetWindowState(s) to allow for changing the size of an activated child
7455         before activating it (reduces a lot of flicker).
7456
7457 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
7458
7459         * Form.cs: Changing FormBorderStyle has different semantics based
7460         on whether the Form is visible or not.  If not visible, don't change
7461         the Size.  But InvalidateNC needs to be called to force the window
7462         to pick up the changes and redraw itself.  [Fixes bug #80574]
7463
7464 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
7465
7466         [Moma work]
7467         * ContainerControl.cs: ProcessCmdKey.
7468         * ErrorProvider.cs: new constructor.
7469         * Form.cs: fix AutoValidateEvent compiler warning.
7470         * Label.cs: fix OnAutoSizeChanged compiler warning.
7471         * MenuStrip.cs: fix CanOverflow compiler warning.
7472         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
7473         * TextBox.cs: Dispose.
7474         * ToolStrip.cs: CanOverflow, re-enable double buffering.
7475         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
7476         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
7477         * ToolStripItem.cs: Overflow, RightToLeft properties.
7478
7479 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7480
7481         * Form.cs: Move the layout of the main form to MdiWindowManager.
7482         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
7483         do a layout of the main window to update MdiClient's client area to
7484         the right area. Fixes #80533. Remove the calculation of nc size, 
7485         it was just wrong and the correct one is the same as for 
7486         InternalWindowManager. 
7487
7488 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
7489
7490         * Control.cs: Setting Anchor or Dock needs to reset the other
7491         to its default.  [Fixes bug #80556]
7492
7493 2007-01-20  Chris Toshok  <toshok@ximian.com>
7494
7495         * CheckedListBox.cs: class status changes.
7496
7497         * ScrollableControl.cs: same.
7498
7499         * RichTextBox.cs: same.
7500
7501         * ContainerControl.cs: same.
7502
7503         * ListView.cs: same.
7504
7505         * NotifyIcon.cs: same.
7506
7507         * MenuStrip.cs: same.
7508
7509         * RadioButton.cs: same.
7510
7511         * CheckBox.cs: same.
7512
7513         * PrintPreviewDialog.cs: same.
7514
7515         * Form.cs: same.
7516
7517 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
7518
7519         * TreeNode.cs: Apply Alan's patch for Name property.
7520
7521 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7522         
7523         * Form.cs: Implemented SizeGripStyle.
7524         * SizeGrip.cs: Check for minimum and maximum size for the
7525         control being resized and only resize if size has actually
7526         changed.
7527
7528 2007-01-19  Chris Toshok  <toshok@ximian.com>
7529
7530         * DataGridColumnStyle.cs: stop setting _readonly in the
7531         PropertyDescriptor setter.  fixes a unit test failure.
7532
7533         also, rename ParentReadOnly to TableStyleReadOnly, and have it
7534         just consult our table style (if we have one).  We don't need to
7535         consult the datagrid readonly attribute because that's passed in
7536         as the _ro arg to Edit.  this simplifies things a little.
7537         
7538         * DataGrid.cs: use CurrentColumn instead of
7539         current_cell.ColumnNumber just to simplify some of the code.
7540
7541         switch the order of some things in the CurrentCell setter to keep
7542         the previous cell from getting a textbox again -
7543         EnsureCellVisibility causes scrolling to happen, which calls Edit.
7544         So we need to set the new cell before calling it.
7545         
7546         call Edit in OnEnter, as does Microsoft.
7547         
7548         also, make sure the current table style isn't the one we create
7549         initially when checking to see if it's different than the one
7550         we're setting it to in BindColumns (this fixes #80421).
7551
7552         * GridTableStylesCollection.cs: table styles can have "" for a
7553         mapping name.  part of the fix for #80421.
7554
7555         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
7556         Edit significantly.
7557
7558 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7559
7560         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
7561         and less GDI object leaky-er.
7562
7563 2007-01-18  Andreia Gaita  <avidigal@novell.com>
7564
7565         * LinkLabel.cs: Add opaque control style
7566
7567 2007-01-18  Jackson Harper  <jackson@ximian.com>
7568
7569         * TextControl.cs: Calculate width properly.
7570         - Don't store the tag's X offset, this can be figured out very
7571         easily.
7572         - When getting the caret tag make sure to get the last empty tag.
7573
7574 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7575
7576         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
7577         [Fixes bug #79959]
7578
7579         * Control.cs: Color.Empty shouldn't count for previous transparent
7580         redraw changes.
7581
7582 2007-01-18  Jackson Harper  <jackson@ximian.com>
7583
7584         * TextBox.cs:
7585         * RichTextBox.cs:
7586         * TextControl.cs: Starting to merge in some pieces of my older
7587         undo work.  Basically just some slight cleanup of the undo API.
7588
7589 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7590
7591         * TrackBar.cs: Fix signature of RightToLeftLayout.
7592         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
7593         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
7594         * Application.cs: Implemented UseWaitCursor.
7595
7596 2007-01-18  Jackson Harper  <jackson@ximian.com>
7597
7598         * TextControl.cs: We can't skip tags if any part of the tag is
7599         visible.
7600
7601 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7602
7603         * ContainerControl.cs: Override OnLayout.
7604
7605 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7606
7607         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
7608
7609         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
7610         everything else.
7611
7612 2007-01-18  Chris Toshok  <toshok@ximian.com>
7613
7614         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
7615         (leftover from the container_selected days, I'd wager).  fixes bug
7616         #80546.
7617
7618 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7619
7620         * Control.cs: Apply patch from George to fix the new testcase on
7621         bug #80451.  We can't just check for Color.Transparent, we need 
7622         to check if the back color's alpha channel is < 255.
7623
7624 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7625
7626         * Form.cs: Move setting show_icon = true to before the constructor
7627         so that the base constructor has that information when it calculates
7628         the form's size.  Was causing forms to be (6, 6) bigger than they
7629         were supposed to be.  Thanks for catching this Rolf!
7630
7631 2007-01-18  Jackson Harper  <jackson@ximian.com>
7632
7633         * TextControl.cs: When replacing a selection we need to invalidate
7634         from the initial selection start, because selection start is moved
7635         to the end of the replacement.
7636
7637 2007-01-18  Andreia Gaita  <avidigal@novell.com>
7638
7639         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
7640
7641 2007-01-18  Chris Toshok  <toshok@ximian.com>
7642
7643         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
7644         I just added.
7645
7646 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
7647
7648         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
7649         layout methods and properties from ToolBarButton must be available
7650         into ToolBarButtonInfo.
7651
7652 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
7653
7654         * Control.cs: If the control has a transparent background, we
7655         need to refresh it when it moves and when it's parent's background
7656         image changes.  [Fixes bug #80451]
7657
7658 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
7659
7660         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
7661
7662 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
7663
7664         * XplatUIWin32.cs: Implement proper double buffering for Windows.
7665         [Fixes bug #80447, and probably speeds up things as well]
7666
7667 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7668
7669         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
7670         * XplatUIWin32.cs: We need to recalculate NC size after changing 
7671         window style to toolwindow (otherwise the client rectangle will be
7672         3 pixels to small for some reason).
7673         * MdiWindowManager.cs: Revert NC size calculations to match how
7674         they are calculated only based on window styles (to match
7675         Win32AdjustWindowRectEx, since otherwise when setting size or 
7676         location, Control will call Win32AdjustWindowRectEx to update client 
7677         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
7678         calculate a different value of client size causing another paint 
7679         (and flickering))
7680         * InternalWindowManager.cs: When moving or resizing a window only
7681         update size or location if they actually changed.
7682         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
7683         (seems to match Windows behaviour better). Cleaned up 
7684         ManagedWindowDecorations to draw what's needed and nothing else
7685         (was drawing borders and lines where they shouldn't be)
7686         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
7687         (style = 0xFFFF) and takes into account caption height when 
7688         calculating window rectangle.   
7689
7690 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
7691
7692         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
7693         can be added to toolbar multiple times, we need to maintain a list of 
7694         button information for each positions.
7695
7696 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
7697
7698         * ToolBar.cs: Some small stetic changes.
7699
7700 2007-01-16  Jackson Harper  <jackson@ximian.com>
7701
7702         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
7703         that allow us to have nested recalc = false blocks.
7704         - Add paste support for images in the RichTextBox
7705         * RichTextBox.cs: flush the text after the color is changed, so
7706         the change takes effect.
7707         - Use SuspendRecalc
7708         - Some extra debugging info
7709         * TextControl.cs: Tags no longer track their length, it is just
7710         computed from the next tags length, this makes things a little
7711         simpler and reduces places that we have to track length changes.
7712         - Refactored the linetag class a little so we could make it
7713         a base class for different kinds of tags
7714         - Created a image tag, a tag that can have a single image inserted
7715         into it
7716         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
7717         that we can call suspend multiple times.
7718         - Add some debugging methods
7719
7720 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7721
7722         * MdiClient.cs: Add ActivatePreviousChild for 
7723         mdi child window navigation.
7724         * Form.cs: Use MdiClient.ActivateNextChild/
7725         ActivatePreviousChild instead of Form.SelectNextControl
7726         to select the next/previous child since 
7727         SelectNextControl doesn't do it in the same order
7728         as mdi children should do it.
7729
7730 2007-01-16  Chris Toshok  <toshok@ximian.com>
7731
7732         * Control.cs: remove container_selected field.
7733
7734 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7735
7736         * MdiClient.cs: Update main form's ActiveChild when
7737         updating keyboard focus for the mdi child.
7738
7739 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
7740
7741         * Control.cs: PreferredSize fix.
7742
7743         * Form.cs: Add several 2.0 events, properties, and methods.
7744
7745 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
7746
7747         * Form.cs: Provide meaningful message when MdiParent is assigned a
7748         Form that is not an MdiContainer.
7749
7750 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7751
7752         * MdiClient.cs: Update main form's ActiveChild when
7753         activating a mdi child.
7754
7755 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7756
7757         * MdiWindowManager.cs: Fix NRE when merging menus and main form
7758         doesn't have a menu.
7759
7760         * Form.cs: Request NCRecalc after creating a mdi child window.
7761         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
7762         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
7763         
7764         * MdiClient.cs: Add new method SendFocusToActiveChild that either
7765         sends keyboard focus to the active child, or to the MdiClient
7766         if there are no child forms.
7767         
7768 2007-01-15  Chris Toshok  <toshok@ximian.com>
7769
7770         * ListView.cs: drop the *Internal overrides, just do our work in
7771         ItemControl's WndProc instead.
7772
7773         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
7774         of the various controls, and forward the events properly (in the
7775         same manner as MS) from the textbox to the UpDown.  Also the
7776         ActiveControl of the UpDownBase gets set properly now.  Finally,
7777         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
7778
7779         * NumericUpDown.cs: set Text in the ctor.
7780
7781         * DomainUpDown.cs: call UpdateEditText in the ctor.
7782         
7783         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
7784         so even a Selectable = false textbox can be focused if you click
7785         in it.  Go figure.
7786
7787         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
7788         just add their handling in their respective WndProc's.  Also add
7789         an explicit FocusInternal method that doesn't consult CanFocus
7790         before calling Select(this).
7791
7792         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
7793         do our work in WndProc instead.
7794
7795         * TabControl.cs: same.
7796
7797         * ComboBox.cs: same.
7798
7799 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
7800
7801         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
7802         Fixes #80006.
7803
7804 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7805
7806         * ListViewItem.cs:
7807         * ThemeWin32Classic.cs: Don't draw the item text outside
7808         item bounds in Details view, as well as use trimming.
7809         Fixes bug #80376.
7810
7811 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
7812
7813         * Form.cs: Implement Form.ShowIcon.
7814         
7815         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
7816         null, which when combined with the DlgModalFrame window style removes
7817         the icon from the title bar.
7818
7819 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
7820
7821         * Control.cs: Call OnMouseClick after OnClick. (2.0)
7822
7823 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
7824
7825         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
7826         menu when mdi child windows theres a menu, uses insert to get icon
7827         at first position. Partially fix #80006.
7828
7829 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
7830
7831         * Clipboard.cs: Implement 2.0 methods.
7832
7833 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
7834
7835         * Menu.cs: Implement Insert method of MenuItemCollection class
7836         to fix MenuMerge.
7837
7838 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7839
7840         * ListView.cs: Implement 2.0 FindItemWithText method.
7841
7842 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
7843
7844         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
7845         to calculate menu bar size. Fixes #80290.
7846
7847 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
7848
7849         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
7850
7851 2007-01-11  Chris Toshok  <toshok@ximian.com>
7852
7853         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
7854         initial form.
7855
7856 2007-01-11  Chris Toshok  <toshok@ximian.com>
7857
7858         * LinkLabel.cs: make sure to call base.Select in our Select method
7859         if it turns out we're going to be selected (i.e. if we have a link
7860         that is going to receive focus).  That way our container's
7861         ActiveControl is updated properly.
7862
7863 2007-01-11  Chris Toshok  <toshok@ximian.com>
7864
7865         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
7866         they have 1 or more links.  this fixes the crash gert reported.
7867
7868 2007-01-11  Andreia Gaita  <avidigal@novell.com>
7869
7870         * ContainerControl.cs: Remove ContainerSelected flag, not needed
7871         anymore.
7872
7873         * Control.cs (Controls.Add): Check if control to be added to the collection
7874         is a top level control, and throw an ArgumentException if it is.
7875         Remove ContainerSelectedFlag, not needed anymore.
7876
7877         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
7878         top most control doesn't activate the form. This fixes a problem in the
7879         MessageBox, where the default button wouldn't get focus because the form
7880         was activated before being Loaded - when the Owner is set, SetTopMost is
7881         called, and it would activate it.
7882
7883 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
7884
7885         * Button.cs: When clicked and setting the parent form's DialogResult,
7886         use FindForm instead of Parent, since parent could be a container
7887         control and not the Form.  Fixes bug #80495.
7888
7889 2007-01-10  Chris Toshok  <toshok@ximian.com>
7890
7891         * Form.cs: move the call to SendControlFocus into the same
7892         is_loaded check.
7893
7894 2007-01-10  Chris Toshok  <toshok@ximian.com>
7895
7896         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
7897         It breaks in the face of the new ActiveControl stuff, and should
7898         be unnecessary.
7899
7900         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
7901         activecontrol's focus if it's not already set, after we set
7902         ActiveControl, but before we call OnActivated.  Re-fixes #79667
7903         after the previous focus/active control fixes regressed it.
7904
7905         * Control.cs: reindent some code.
7906         
7907 2007-01-10  Chris Toshok  <toshok@ximian.com>
7908
7909         * Splitter.cs: clearing some outstanding changes from my tree.
7910         Replace all accesses (not writes) to the internal dock_style field
7911         with the Dock property.
7912
7913 2007-01-10  Chris Toshok  <toshok@ximian.com>
7914
7915         * Control.cs: make FireEnter, FireLeave, FireValidating, and
7916         FireValidated virtual.
7917
7918         * Form.cs: override and don't chain up calls to FireEnter and
7919         FireLeave.
7920
7921 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7922
7923         * ListView.cs: Add more text padding space when using
7924         auto resize for columns (the previous value didn't work fine).
7925
7926         * ThemeWin32Classic.cs: Update text position inside columns,
7927         to match the appeareance of .Net.
7928
7929         * ColumnHeader.cs: When using auto resize, only the Width should
7930         depend on the sub items, not the Height. Also, set width after
7931         auto resizing (the value of Width should never remain as -1 or -2).
7932
7933 2007-01-10  Chris Toshok  <toshok@ximian.com>
7934
7935         * Application.cs: fix compilation errors when debug is enabled.
7936
7937 2007-01-10  Chris Toshok  <toshok@ximian.com>
7938
7939         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
7940         add some nice ascii art pictures and explanation of the process).
7941         (GetMostDeeplyNestedActiveControl): new utility function we need
7942         because our ActiveControl can refer to a child container with its
7943         own ActiveControl.
7944
7945         * Form.cs (OnActivated): remove the call to SelectActiveControl
7946         from here, since you can override this method and not chain up,
7947         and winforms still sets the active control.
7948         (OnCreateControl): also remove the unnecessary SelectActiveControl
7949         call from here.
7950         (WndProc): it's actually called from the WM_ACTIVATE block, just
7951         before calling OnActivated.
7952
7953         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
7954         inside the else.  the ActiveControl setter will end up setting
7955         focus on @control.  This keeps us from setting it again (and
7956         generating an extra LostFocus/GotFocus pair).
7957         (Select (bool, bool)): reindent.
7958
7959 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
7960
7961         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
7962         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
7963         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
7964         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7965         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
7966         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
7967         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
7968         ToolStripTextBox.cs: Another wave of corcompare work.
7969
7970 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7971
7972         * ColumnHeader.cs: Implement 2.0 AutoResize method using
7973         the Width property.
7974
7975         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
7976         methods by callling Column.AutoResize method on columns.
7977
7978 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
7979
7980         * Control.cs: Provide proper implementations of PreferredSize
7981         and GetPreferredSize (2.0).
7982
7983 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
7984
7985         * Form.cs: Remove one character (!) to make my previous OnClosing
7986         stuff work for modal windows like MessageBox.
7987
7988 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7989
7990         * ListView.cs:
7991         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
7992         ListView.Columns to get the last displayed column. Fixes #80452.
7993
7994 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
7995
7996         * Label.cs, LinkLabel.cs: Source code identation fixes.
7997
7998 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
7999
8000         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
8001         we dont need to invalidate only borders because when we invalidate four
8002         border lines the invalidate's generates a complete redraw of button, 
8003         because it now invalidate a complete rect some other redraws operations
8004         are fixed. Fixes #80196.
8005         
8006         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
8007         Remove ToolBarInvalidateEntireButton as it is not used.
8008
8009 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
8010         
8011         * Form.cs: Make sure that both OnClosing and OnFormClosing are
8012         called for 2.0 profile.
8013         * CloseReason.cs: Make class internal for 1.1.
8014
8015 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
8016
8017         * ToolStripManager.cs: Implement FindToolStrip functionality.
8018         * ToolStrip.cs: Register and unregister with ToolStripManager.
8019
8020 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
8021
8022         * Control.cs: This was messy.  2.0 moves much of ControlCollection
8023         to ArrangedElementCollection.  Implemented this with as few #if's as 
8024         possible (which is still too many).
8025
8026 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
8027
8028         * Control.cs: Implement SizeFromClientSize() [2.0].
8029
8030 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
8031
8032         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
8033         use Theme.BorderSize to calculate area instead of static value 1, 
8034         by the way use new BorderStaticSize instead     Border3DSize when 
8035         border_static is true. Fixes #79537.
8036         
8037         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
8038         
8039         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
8040         it is not needed.
8041
8042 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
8043
8044         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
8045
8046 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
8047
8048         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
8049         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
8050         
8051         * Hwnd.cs: 
8052         - border_static field added, it will used to define when a control 
8053         theres 3D border but it must be static (thin).
8054         - In GetWindowRectangle use Theme.BorderSize to calculate area 
8055         instead of static value 1, by the way use new BorderStaticSize instead
8056         Border3DSize when border_static is true.
8057
8058         * XplatUIX11.cs, XplatUIOSX.cs: 
8059         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
8060         
8061         * Theme.cs: BorderStaticSize field added.
8062
8063 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
8064
8065         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
8066
8067 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
8068
8069         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
8070         mimic same behavior than win32 that set border only in CreateParams,
8071         it fix problems under CreateParams overrides. Fix #79442 and partial
8072         fix #79537.
8073         
8074         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
8075         of thi control you must call recreate handle. 
8076         
8077         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
8078         need to do anything as RecreateHangle will take care about borders.
8079
8080 2007-01-05  Mike Kestner  <mkestner@novell.com>
8081
8082         * ListView.cs: hack to eliminate Lost/Got focus notifications on
8083         cycles between the ItemControl and parent.  Fixes #80388.
8084
8085 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
8086
8087         * Control.cs: Lazy init layout engine. Do not directly use 
8088         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
8089
8090 2007-01-05  Chris Toshok  <toshok@ximian.com>
8091
8092         * DataGrid.cs: don't forceably rebind columns in SetDataSource
8093         unless our list manager has changed (i.e. unless we have reason to
8094         believe our columns have changed).  Fixes #80422.
8095         
8096         also, disable the call do BindColumns in
8097         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
8098         1.1 the event isn't raised in response to a column addition on a
8099         table.)
8100
8101 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
8102
8103         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
8104         that inheritors can not call it if they choose.  Fixes bug #80456.
8105
8106 2007-01-05  Andreia Gaita  <avidigal@novell.com>
8107
8108         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
8109         doesn't blow up with a null exception on marshalling.
8110         
8111 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
8112
8113         * Control.cs: Implement several 2.0 protected properties and methods.
8114         Ensure that all necessary events are being called when properties
8115         are set.
8116
8117 2007-01-05  Mike Kestner  <mkestner@novell.com>
8118
8119         * ListView.cs: implement PgUp/PgDn for Details view.  Also
8120         fixes First/LastVisibleIndex to use the item_control.ClientRect 
8121         instead of the parent control.  Fixes #80378.
8122
8123 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
8124
8125         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
8126           determine whether to use yard-pound or not (bug #78399).
8127
8128 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
8129
8130         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
8131         problems. So it is time to bring back the old popupbutton colors.
8132
8133 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8134
8135         * ColumnHeader.cs:
8136         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
8137         property by using the internal information of the
8138         columns order in ListView.
8139
8140 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
8141
8142         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
8143         Add 2.0 Tag properties.
8144
8145         * LinkArea.cs: Add 2.0 ToString method.
8146
8147 2007-01-03  Chris Toshok  <toshok@ximian.com>
8148
8149         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
8150         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
8151         when we're editing, which fixes #80047.
8152
8153 2007-01-03  Chris Toshok  <toshok@ximian.com>
8154
8155         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
8156         #80404.
8157
8158 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
8159
8160         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
8161         property and implementation.
8162
8163         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
8164         for MdiWindowListItem property.
8165
8166         * ToolStripDropDown.cs: Don't consider hidden menu items while
8167         laying out the menu.
8168
8169 2007-01-03  Andreia Gaita  <avidigal@novell.com>
8170
8171         * SendKeys.cs: window handle is not needed in win32, so just
8172         get the active window for X after parsing keys and don't use
8173         it when building the message; it is passed by parameter to the 
8174         Xplat method and used there to build the message instead. Also,
8175         wait for events to be processed on SendWait, as opposed to Send,
8176         which doesn't wait :) Playing with threads and Send() completely 
8177         hangs on ms.net, only SendWait() works.
8178         
8179         XplatUIX11.cs
8180         X11Display.cs: Check for valid window handle.
8181
8182 2007-01-03  Jackson Harper  <jackson@ximian.com>
8183
8184         * TextControl.cs: Need to prevent wrap calculations when replacing
8185         text (this was there before i removed it accidently).
8186         - Don't update the cursor during the positioning, just set it to
8187         selection_start at the end of the operaion.
8188
8189 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8190
8191         * Control.cs:
8192         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
8193         
8194 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8195
8196         * MonthCalendar.cs: Added Click and DoubleClick events again,
8197         but this time they only hide Control's Click and DoubleClick.
8198         
8199 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
8200
8201         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
8202         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
8203
8204 2007-01-02  Jackson Harper  <jackson@ximian.com>
8205
8206         * TextBoxBase.cs: We move the caret with the split now, so we
8207         don't need to explicitly move the caret after splitting.  This
8208         fixes the caret bumping down an extra line on Enter.
8209
8210 2007-01-02  Miguel de Icaza  <miguel@novell.com>
8211
8212         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
8213         2.72). 
8214
8215         * ScrollableControl.cs: Add Scroll event.
8216
8217 2007-01-02  Mike Kestner  <mkestner@novell.com>
8218
8219         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
8220         to fix all hdr height padding codepaths.  Fixes #80207.
8221
8222 2007-01-02  Chris Toshok  <toshok@ximian.com>
8223
8224         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
8225         setting it to the Control defaults anyway, and it being after the
8226         Dock set was screwing up layout.
8227         (set_Dock): don't short circuit out of setting base.Dock.  Also,
8228         no need to call UpdateStatusBar here, as it'll be re-layed out if
8229         it needs to be.
8230
8231 2007-01-02  Mike Kestner  <mkestner@novell.com>
8232
8233         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
8234         to header height for width == -1. Fixes the rest of #80207.
8235
8236 2007-01-02  Mike Kestner  <mkestner@novell.com>
8237
8238         * ListView.cs: rework the mouse event forwarding everaldo added
8239         to translate the coordinates to the parent control not
8240         raise the parent events until after we've done our work. Hover
8241         needs more work, in the case where HoverSelection is on, because
8242         the item control receives more than one MouseHover per Enter
8243         event, so we need to ensure only the "first" hover gets forwarded.
8244         Opening a minor bug for that.
8245
8246 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
8247
8248         * CheckedListBox.cs: Fixed SelectionMode to match MS.
8249         * ListControl.cs: Implemented AllowSelection property. Removed extra
8250         tabs.
8251         * ListBox.cs: Implemented AllowSelection property.
8252
8253 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
8254
8255         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
8256         SelectedItem, it prevent for errors when you must disable item
8257         before perform click. Fixes #80409.
8258
8259 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
8260
8261         * MenuAPI.cs: Prevent second level and beyond submenus to close
8262         until first level when move out side of popup.
8263         
8264 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
8265
8266         * MenuAPI.cs:
8267         - Down submenu positin in three pixels.
8268         - Closes sub menu when mouse leaves from menu. Fixes #80402.
8269
8270 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
8271
8272         * ThemeWin32Classic.cs:
8273         - Fix popup menu size adding one pixel on the top.
8274         - Down menu item border from two to one to mimic Win32.
8275         - Some source identation fixes. 
8276
8277 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
8278
8279         * ThemeWin32Classic.cs: Use float numbers to calculate size and
8280         position of menu arrows, it fix wrong arrow size.
8281
8282 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
8283
8284         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
8285         instead of line, it simplify draw operation and fix it using 3D
8286         borders to mimic Win32.
8287
8288 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
8289
8290         * StatusStrip.cs: Add implementation of the sizing grip.
8291
8292         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
8293         StatusStrip rendering.
8294
8295 2006-12-31  Chris Toshok  <toshok@ximian.com>
8296
8297         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
8298         override the layout style (anchor/dock) of the control.  assign to
8299         Dock instead.  Fixes bug #80416.
8300
8301         * ToolStrip.cs: same.
8302
8303 2006-12-31  Andreia Gaita  <avidigal@novell.com>
8304
8305         * ContainerControl.cs: Use ContainerSelected flag to check if 
8306         a Container is directly selected, or if Select is called on a 
8307         non-container. If a container is directly selected, focus events 
8308         should not be raised.
8309         Apply #80411 patch to throw exception on set_ActiveControl if 
8310         control is the same as the current one.
8311         
8312         * Control.cs: Use ContainerSelected flag (see above).
8313         Add invalidation check to raise event but not invalidate if 
8314         dimensions are 0.       
8315         Apply #80411 patch.
8316         
8317
8318 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
8319
8320         * MenuAPI.cs: After click, dont close popup menu when menu is
8321         ContextMenu. Fixes #80399.
8322
8323 2006-12-30  Chris Toshok  <toshok@ximian.com>
8324
8325         * ContainerControl.cs: make sure we throw the exception if the
8326         container control doesn't contain the control we're setting
8327         ActiveControl to.
8328
8329 2006-12-30  Chris Toshok  <toshok@ximian.com>
8330
8331         * Control.cs (SetTopLevel): fix the exception raised by
8332         SetTopLevel for child controls.
8333         (set_Anchor): call UpdateDistances when setting the anchor type.
8334         This fixes bug #80336.
8335
8336 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
8337
8338         * Theme.cs: For now, revert back to 8pt font.
8339
8340 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
8341
8342         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
8343         Fixes #80395.
8344
8345 2006-12-29  Chris Toshok  <toshok@ximian.com>
8346
8347         * Control.cs: reorder the code in OnResize to give the same event
8348         ordering as MS.
8349
8350 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8351
8352         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
8353         TileHorizontally and TileVertically.
8354         
8355 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
8356
8357         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
8358         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
8359         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
8360         Corrected copyright and email adress.
8361
8362 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
8363
8364         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
8365         of Exception in FullPath property if no TreeView is associated with
8366         the TreeNode.
8367
8368 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
8369
8370         * Theme.cs: Marked default_font as private, and initialize it in ctor
8371         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
8372         on 2.0 profile.
8373         * ThemeGtk.cs: Removed default_font intialization.
8374         * ThemeWin32Classic.cs: Removed default_font initialization.
8375
8376 2006-12-28  Chris Toshok  <toshok@ximian.com>
8377
8378         * Control.cs: fix a couple of place where we were creating handles
8379         more aggressively than we should be.  Fixes ControlRefresh unit
8380         tests.
8381
8382 2006-12-28  Chris Toshok  <toshok@ximian.com>
8383
8384         * Control.cs: contrary to what the comment said, Control.Dock does
8385         not supercede Control.Anchor - the last one you assign to decides
8386         the layout behavior.  so we need to keep track of which was the
8387         last set.  Also, fix some of the affected property arguments in
8388         PerformLayout calls, and remove an redundant parent.PerformLayout
8389         call in OnResized.
8390
8391         Add a VisibleInternal property, which returns is_visible.  We
8392         can/should get rid of all the usage of this field elsewhere.
8393
8394 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8395         
8396         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
8397         control style, not DoubleBuffer. Added UseDoubleBuffering property
8398         that indicates whether doublebuffering is enabled and supported.
8399         (comment from and code based on Gert Driesen's patch in #80324).
8400         Fixes #80324.
8401
8402 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8403         
8404         * Control.cs: Fixed a NRE.
8405
8406 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8407
8408         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
8409         for 2.0.
8410
8411 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8412
8413         * Control.cs: Rewrote double buffering, now a seperate
8414         class handles all the buffering, no Graphics is disposed of
8415         until the painting is finished (earlier implementation 
8416         would crash if the control was resized in the OnPaint, 
8417         since it would cause the double buffer to be recreated
8418         and the old one disposed), a separate Graphics is 
8419         created for every paint (MS behaviour and anyways the state
8420         of the Graphics would have to be saved and restored otherwise)
8421         
8422         * XplatUIDriver.cs: 
8423         * XplatUIX11.cs:
8424         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
8425         so that we can get the graphics for the back buffer without
8426         having to create a new one and remove the offscreen_dc parameter
8427         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
8428         
8429 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8430
8431         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
8432         Also make virtual all the key-related methods.
8433
8434         * ListViewItem.cs: Make virtual the key related methods for
8435         ListViewSubItemCollection.
8436
8437 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8438
8439         * ListView.cs:
8440         * ListViewItem.cs:
8441         * ThemeWin32Classic.cs:
8442         * Theme.cs: Initial support for Tile view in ListView,
8443         as well as the implementation of the required bits for it (Item
8444         and Subitem).
8445
8446 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8447
8448         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
8449         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
8450         Provide useful exception messages.
8451
8452 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8453
8454         * TrackBar.cs: Remove a warning.
8455         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
8456         when used by DateTimePicker, fixes #80287. This also requires that 
8457         MonthCalendar implements it's own drawing for the yearly updown control,
8458         otherwise the Capture tracking would be too complicated. Removed the Click 
8459         and DoubleClick events (according to comments they were hiding the base class
8460         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
8461         raise these events, not that they cannot be raised. It is possible to raise 
8462         them by calling OnClick and OnDoubleClick). Added two internal fields in 
8463         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
8464         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
8465         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
8466         event, no longer needed.
8467         
8468 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8469
8470         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
8471         true if new value differs from current value.
8472
8473 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8474
8475         * Control.cs: ControlCollection.Count must be public. Fixed build of
8476         unit tests.
8477
8478 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8479
8480         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
8481
8482 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8483
8484         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
8485
8486 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
8487
8488         * Control.cs: Invalidates control including when Width and Height is 
8489         equal zero or is not visible, only Paint event must be care about 
8490         this. Fixes #79913.
8491
8492 2006-12-26  Chris Toshok  <toshok@ximian.com>
8493
8494         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
8495         more corcompare work.
8496
8497         * DataGridView.cs: fix compiler warning.
8498
8499         * ColumnHeader.cs: some corcompare work, and also take the
8500         opportunity to make the internal fields private.
8501
8502         * ListView.cs: fix the fallout from the above field change.
8503
8504 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
8505
8506         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
8507         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
8508         ToolStripTextBox.cs: Fixes to events and corcompare.
8509
8510 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
8511
8512         * ListView.cs: Call owner.OnMousexx event to propagate events from
8513         item to ListView. Fixes #80367.
8514
8515 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
8516
8517         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
8518         if value is less than one. ItemHeight should not be set to a value
8519         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
8520         Removed extra tabs.
8521
8522 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
8523
8524         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
8525         * ToolStripStatusLabel.cs: Add Spring for Moma.
8526
8527 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
8528
8529         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
8530         Fixed code formatting. Removed debug code.
8531         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
8532
8533 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
8534
8535         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
8536         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
8537         ArgumentOutOfRangeException if ColumnCount is negative. In 
8538         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
8539         less than 4 or higher than 32768.
8540         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
8541         Fixed FormatProvider to return CurrentCulture unless explicitly set.
8542         Fixed IsFormatProviderDefault to return true if FormatProvider has
8543         not been explicitly set.
8544
8545 2006-12-25  Chris Toshok  <toshok@ximian.com>
8546
8547         * Application.cs: add a couple of 2.0 events.
8548
8549 2006-12-25  Chris Toshok  <toshok@ximian.com>
8550
8551         * Control.cs: fix compiler warning.
8552
8553         * AxHost.cs: corcompare fixes.
8554
8555         * ApplicationContext.cs: corcompare fixes.
8556
8557 2006-12-25  Chris Toshok  <toshok@ximian.com>
8558
8559         * Control.cs: only update dist_right/dist_bottom if the
8560         width/height is > 0.  this fixes anchored controls being resized
8561         smaller until they disappear and then resized larger again.
8562
8563 2006-12-25  Chris Toshok  <toshok@ximian.com>
8564
8565         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
8566         since they're nothing more than X/Left and Y/Top, respectively.
8567
8568         Also, move back to a per-control Bitmap/Graphics for
8569         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
8570         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
8571         Height.
8572
8573 2006-12-25  Miguel de Icaza  <miguel@novell.com>
8574
8575         * MessageBox.cs: Implemented overload that takes a new "bool
8576         displayHelpButton" by adding a new internal field "show_help".
8577         When clicked this will raise the HelpRequested on the owner or the
8578         main form. 
8579
8580         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
8581         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
8582
8583         * ListView.cs: Add support ColumnWidthChanged and
8584         ColumnWidthChanging. 
8585
8586         Add support for ColumnReordered event.
8587         (ReorderColumn): Add NET_2_0 specific support for cancelling the
8588         reorder.
8589
8590         Very nice codebase!
8591
8592         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
8593
8594         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
8595
8596 2006-12-24  Chris Toshok  <toshok@ximian.com>
8597
8598         * GridTablesFactory.cs: 2.0 corcompare work.
8599
8600         * ToolStripContainer.cs: add "override" to
8601         ContextMenuStripChanged, and remove the local event object.
8602
8603         * ToolStripDropDown.cs: same with a couple properties.
8604
8605         * ToolStripPanel.cs: same with AutoSizeChanged event.
8606
8607         * TextBoxBase.cs: add "override" to AutoSizeChanged.
8608
8609         * Form.cs: add the remaining 2.0 events, and do some corcompare
8610         attribute work.
8611
8612         * DateTimePicker.cs: add "new" to padding.
8613
8614         * ButtonBase.cs: use Control's use_compatible_text_rendering.
8615
8616         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
8617
8618         * DataGridView.cs: PaddingChanged is overridden.
8619
8620 2006-12-24  Chris Toshok  <toshok@ximian.com>
8621
8622         * Control.cs: corecompare work here too.
8623
8624         * DataGridViewElement.cs, DataGridView.cs,
8625         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
8626         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
8627         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
8628         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
8629         work.
8630
8631 2006-12-24  Miguel de Icaza  <miguel@novell.com>
8632
8633         * Control.cs: Switched the error message on the console for a
8634         todo.  A review of the code will have to cope with this anyways
8635         (since its a large feature, it is in our radar) and it was
8636         producing too much output when running PDN.
8637
8638         * ToolStripComboBox.cs: Set the text when the SelectedIndex
8639         changes.  Applications depend on this (PDN 2.72)
8640
8641 2006-12-23  Chris Toshok  <toshok@ximian.com>
8642
8643         * TableLayoutSettings.cs: finish up the corcompare work for this
8644         class.
8645
8646 2006-12-23  Chris Toshok  <toshok@ximian.com>
8647
8648         * Control.cs: make SetImplicitBounds internal, do some futzing
8649         with LayoutEngine so that it's available in 1.1, and remove the
8650         entire duplicated code mess from PerformLayout.  Use
8651         System.Windows.Forms.Layout.DefaultLayout instead.
8652
8653         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
8654
8655 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
8656
8657         * Form.cs: Add MainMenuStrip property.
8658
8659 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
8660
8661         * Control.cs: Add ContextMenuStrip property and implementation.
8662         Fix ContextMenu implementation to show menu centered on control when
8663         activated using the keyboard instead of showing at screen (0,0).
8664
8665         * ToolStripDropDown.cs: Fix needed overload of Show ().
8666
8667 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
8668
8669         * Menu.cs: Name property added for 2.0 profile.
8670         
8671 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
8672
8673         * Menu.cs: Update information about FindMenuItem, method to be
8674         implemented soon.
8675
8676 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
8677
8678         * MenuAPI.cs: When deselect items deselect also selected subitems.
8679         
8680 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
8681
8682         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
8683         FindSubItemByCoord to found itens that is not active, also an
8684         cheking added to FindSubItemByCoord to search for items only 
8685         in visible popup windows. Fixes #80274.
8686
8687 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
8688
8689         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
8690         internal property, it be care about change ExStyle. 
8691
8692 2006-12-22  Andreia Gaita  <avidigal@novell.com>
8693
8694         * ContainerControl.cs: set activeControl for parent forms up the 
8695         tree when the new activecontrol is a container.
8696         When validating the active control, if it is a container, also
8697         raise up the validation for it's active control. Fixes #80280
8698         
8699         * Control.cs: Add internal property flag and check to prevent
8700         Focus events from getting raised when Select() is called for
8701         a ContainerControl. There are still too many focus events being
8702         raised at the moment though.
8703         Cleaned up the code a bit.
8704
8705 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8706
8707         * Control.cs: Added all missing 2.0 events.and
8708         fixed a couple of corcompare issues.
8709         * TrackBar.cs: Implemented missing 2.0 bits.
8710         * MonthCalendar.cs, 
8711         * DateTimePicker.cs, 
8712         * MdiClient.cs: Fixed some corcompare issues.
8713
8714 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
8715
8716         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
8717         SplitterPanel.cs: corecompare work.
8718
8719 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
8720
8721         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
8722         Clean up warnings for BackgroundImageChanged and PaddingChanged
8723         events now that they are implemented in Control.cs.
8724
8725 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
8726
8727         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
8728         
8729         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
8730         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
8731         of TableLayoutPanel and supporting cast.
8732
8733 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8734
8735         * XplatUIWin32.cs: 
8736         - GrabWindow now confines the mouse pointer to the confine window.
8737         - Added Win32ClipCursor and Win32GetClipCursor.
8738
8739         * Control.cs: 
8740         - Added CaptureWithConfine to be able to capture and confine 
8741         mouse pointer.
8742         
8743         * InternalWindowManager.cs: 
8744         - Call CaptureWithConfine instead of Capture if we're an
8745         MdiChild (fixes #79982).
8746
8747 2006-12-21  Chris Toshok  <toshok@ximian.com>
8748
8749         * DataGrid.cs: guard against the initial state of selection, where
8750         selection_start == -1.  make sure we only select from index >= 0.
8751         Fixes bug #80291.
8752
8753 2006-12-21  Chris Toshok  <toshok@ximian.com>
8754
8755         * Control.cs: we don't need to be so draconian with
8756         UpdateDistances, and we thusly don't need to call it before
8757         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
8758
8759 2006-12-21  Daniel Nauck  <dna@mono-project.de>
8760
8761         * ComboBox.cs,
8762         TextBox.cs: Implemented AutoComplete properties.
8763
8764 2006-12-20  Chris Toshok  <toshok@ximian.com>
8765
8766         * DataGridView*.cs: some corecompare work.
8767
8768 2006-12-20  Jackson Harper  <jackson@ximian.com>
8769
8770         * XplatUIX11.cs: We need to hide the caret when deleting it,
8771         otherwise you get carets left lying around everywhere.
8772         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
8773         prevents getting some weird half drawn caret tracers when
8774         scrolling.
8775         * TextControl.cs: Attempt to reduce the number of times we need to
8776         recreate the caret.
8777
8778 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
8779
8780         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
8781
8782 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8783
8784         * DateTimePicker.cs:
8785         - Implemented missing 2.0 bits.
8786         - Changed some default values to match MS.
8787         
8788 2006-12-20  Jackson Harper  <jackson@ximian.com>
8789
8790         * TextBoxBase.cs: When changing the font across the document we
8791         can't recalculate after changing each line, since that will cahnge
8792         the line count.
8793         - PreferredHeight is a little different than i thought.
8794         - When backspacing, move the caret before we do the actual char
8795         delete, because when that delete crosses a wrap boundary the
8796         positional information will change.
8797
8798 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8799
8800         * Control.cs: Added some missing 2.0 bits: 
8801         BackgroundImageLayout, BackgroundImageLayoutChanged, 
8802         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
8803         add IBindableComponent and IDropTarget implementation.
8804         
8805         * MonthCalendar.cs: 
8806         - Added all missing 2.0 features:
8807         BackgroundImageLayout, RightToLeftLayout, 
8808         OnHandleDestroyed, RightToLeftLayoutChanged, 
8809         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
8810         PaddingChanged.
8811         - Rewrote all the BoldDate code, it was completely broken.
8812         - Fixed all the tests (the tests can now be re-enabled, the
8813         problems were not with the tests, but with the control, it was
8814         mostly broken).
8815         
8816         * DateTimePicker.cs: Changed the location where the 
8817         MonthCalendar is shown.
8818         
8819 2006-12-19  Chris Toshok  <toshok@ximian.com>
8820
8821         * DataGridView.cs: add IDropTarget implementation.
8822
8823         * ToolStripPanel.cs: add IDropTarget implementation.
8824
8825 2006-12-19  Jackson Harper  <jackson@ximian.com>
8826
8827         * TextControl.cs: soft now means something different than what it
8828         used to mean, we want to move the caret regardless of whether or
8829         not this break was soft (would we really have wanted the caret
8830         to not move with the break in the old context?)
8831         * TreeView.cs: Make sure we factor in the vert scrollbar when
8832         calculating the horizontal scrollbar's maximum.
8833
8834 2006-12-19  Andreia Gaita  <avidigal@novell.org>
8835
8836         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
8837         check for keywords in alternate casing, close bug #80049.
8838
8839 2006-12-19  Chris Toshok  <toshok@ximian.com>
8840
8841         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
8842         methods (which all do nothing).
8843
8844         * IDropTarget.cs: add the 4 missing methods.
8845
8846 2006-12-19  Chris Toshok  <toshok@ximian.com>
8847
8848         * TableLayoutRowStyleCollection.cs: corcompare work.
8849         
8850         * TableLayoutSettings.cs: same.
8851
8852         * TableLayoutStyle.cs: same.
8853
8854         * TableLayoutColumnStyleCollection.cs: same.
8855
8856 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
8857
8858         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
8859         TableLayoutPanel I've had in my local tree for way too long.
8860
8861 2006-12-19  Miguel de Icaza  <miguel@novell.com>
8862
8863         * TableLayoutSettings.cs: Finish the public API (still needs all
8864         the logic to update on changes). 
8865
8866         * TableLayoutPanelCellPosition.cs: new file.
8867         
8868         * TableLayoutRowStyleCollection.cs,
8869         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
8870         TableLayoutSettings.cs: Track the final 2.0 table api.
8871
8872 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8873
8874         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
8875         and Image List 2.0 members for ColummnHeader.
8876         * ListView.cs: Add key-related 2.0 methods for
8877         ColumnHeaderCollection.
8878
8879 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
8880
8881         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
8882         ArgumentNullException if items argument is null. Ignore null item in
8883         arrays. Removed extra tabs.
8884
8885 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
8886
8887         * MonthCalendar.cs: Fixed InvalidCastException.
8888
8889 2006-12-19  Jackson Harper  <jackson@ximian.com>
8890
8891         * TextControl.cs: Don't increment the position here.
8892         - When calculating char positions only add in the line break size
8893         for hard line breaks.
8894
8895 2006-12-19  Andreia Gaita  <avidigal@novell.org>
8896
8897         * SendKeys.cs: Changed some things to match ms.net behaviour
8898         when parsing shifted capital letters.
8899         
8900         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
8901         Add window handle as parameter to SendInput. X11 needs the 
8902         window handle, and the handle being passed      to it in the keys 
8903         queue is the active control handle (which windows needs), not 
8904         the window handle.
8905         
8906         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
8907         to support SendKeys on X.       
8908         
8909         * X11Keyboard: Implement helper method to lookup a linux keycode
8910         given the virtual keycode. Added table of keycode-2-virtualkey
8911         values to support this.
8912
8913 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8914
8915         * ListView.cs: Add support for SelectedIndexCollection
8916         and SelectedItemCollection 2.0 methods. Implement support
8917         for ImageKey too.
8918         * ListViewItem.cs: Add support for ListViewSubItemCollection
8919         2.0 methods. Also, fix an incorrect behavior of AddRange method
8920         (it shouldn't call Clear).
8921         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
8922
8923 2006-12-19  Jackson Harper  <jackson@ximian.com>
8924
8925         * RichTextBox.cs: 
8926         * TextBoxBase.cs: New args for FormatText
8927         * TextControl.cs: Rewrote the main drawing method, this version
8928         feels a little easier to understand and debug to me.  Hopefully it
8929         does to others also
8930         - Fix FormatText to OR in the new formating values.  Added
8931         FormatSpecified param, basically this works in the same way as
8932         BoundsSpecified in Control.
8933         - Set the caret properties when the caret is positioned.
8934         - When wrapping text make sure that we calculate the width of the
8935         last character
8936         - when calculating alignments we might have wrapped down to the
8937         next line, so don't search for an individual tag, search for the
8938         end of the line
8939         - We need to invalidate the selection area when we replace the
8940         selection.
8941         
8942 2006-12-19  Daniel Nauck  <dna@mono-project.de>
8943
8944         * Application.cs: add Restart () 2.0 support
8945
8946 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
8947
8948         * MenuItem.cs: Invalidate menu item rectangle after change Enable
8949         property. Fixes #80268.
8950         
8951 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
8952
8953         * MenuAPI.cs: Dont trigger select event when closes top menu
8954         item. Fixes #80270.
8955
8956 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
8957
8958         * MenuAPI.cs: When you click on menuitem only trigger onselect
8959         event for top menu itens. Fixes #80271.
8960         
8961 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8962
8963         * MdiWindowManager.cs: Make IconicBounds depend on
8964         the bottom of MdiClient, not the top (fixes #80267)
8965         
8966 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8967
8968         * MdiClient.cs: Added missing 2.0 attribute
8969
8970 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8971
8972         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
8973         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
8974
8975 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
8976
8977         * MenuAPI.cs: Fix click when menuitem is not popup,
8978         this regression was caused by last commit (#80272).
8979
8980 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
8981
8982         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
8983         fire click event or close menu. Fixes #80272.
8984
8985 2006-12-17  Daniel Nauck  <dna@mono-project.de>
8986
8987         * ListViewHitTestInfo.cs: add
8988
8989 2006-12-17  Daniel Nauck  <dna@mono-project.de>
8990
8991         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
8992         * FlatButtonAppearance.cs: add
8993         * DockingAttribute.cs: add
8994
8995 2006-12-17  Chris Toshok  <toshok@ximian.com>
8996
8997         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
8998         and rebind our columns when it does - this way, if you make
8999         changes to the DataTable (or set the Table attribute on a DataView
9000         after setting it as the DataGrid's DataSource, the changes are
9001         made visible.)  Fixes bug #80107.
9002
9003 2006-12-17  Daniel Nauck  <dna@mono-project.de>
9004
9005         * ListViewGroup.cs: add internal Location property for layouting.
9006         * Theme.cs: add abstract ListViewGroupHeight function.
9007         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
9008
9009 2006-12-16  Andreia Gaita  <avidigal@novell.com>
9010
9011         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
9012         Added reset of selected index to 0 when adding first tab page.
9013         Fixes #80264
9014         
9015         * NumericUpDown.cs: Fix NET_2_0 check
9016
9017 2006-12-16  Daniel Nauck  <dna@mono-project.de>
9018
9019         * ListViewGroup.cs: fixed DefaultValueAttribute value
9020
9021 2006-12-16  Daniel Nauck  <dna@mono-project.de>
9022
9023         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
9024
9025 2006-12-15  Miguel de Icaza  <miguel@novell.com>
9026
9027         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
9028         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
9029         ScrollableControl.cs: Add a handful of methods that are
9030         overwritten in 2.0 
9031
9032 2006-12-15  Chris Toshok  <toshok@ximian.com>
9033
9034         * XplatUIWin32.cs: initial implementation of the Reversible
9035         drawing functions.  there are some problems.  DrawReversibleFrame
9036         doesn't seem to work at all for Dashed FrameStyle, and in the
9037         Thick case there are drawing errors at the corners (we probably
9038         need to bind Rectangle instead of doing moveto/lineto's.)
9039
9040 2006-12-16  Andreia Gaita  <avidigal@novell.com>
9041         
9042         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
9043         to send blocks of key messages. Send accumulates keys to send with Flush, 
9044         while SendWait sends all keys immediately.
9045                 
9046         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
9047         XplatUIX11.cs,  XplatUIX11-new.cs:
9048         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
9049         to Win32 SendInput.
9050         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
9051         
9052         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
9053         testing for ms.net on this class is very tricky, as the tests run too fast 
9054         to allow the hook to release, essentially freezing the keyboard and the 
9055         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
9056         category :p
9057
9058 2006-12-16  Daniel Nauck  <dna@mono-project.de>
9059
9060         * Padding.cs: fixed serialization compability to MS ("_var" field names),
9061                         added missing attributes.
9062  
9063 2006-12-15  Daniel Nauck  <dna@mono-project.de>
9064
9065         * ListViewGroup.cs: Added missing attributes.
9066         * ListViewGroupCollection.cs: Added missing attributes.
9067
9068 2006-12-15  Daniel Nauck  <dna@mono-project.de>
9069
9070         * ListViewItem.cs: fixed ListViewSubItem text property.
9071
9072 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9073         
9074         * Control.cs: Added missing 2.0 attributes
9075         
9076 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9077         
9078         * MdiClient.cs: Added missing 2.0 attribute.
9079         * MonthCalendar.cs: Added some missing 2.0 attributes 
9080         and properties.
9081         
9082 2006-12-15  Daniel Nauck  <dna@mono-project.de>
9083
9084         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
9085
9086 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
9087
9088         * MainMenu.cs: Add the new 2.0 constructor to help out people
9089         using the MainMenu in VS2005.
9090
9091 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9092         
9093         * MdiChildContext.cs: Removed it, no longer used.
9094         * MdiClient.cs: Added missing 2.0 attributes.
9095         
9096 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9097         
9098         * InternalWindowManager.cs: Fix a NullRef with previous 
9099         changes for toolwindows.
9100         
9101 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9102
9103         * Control.cs: 
9104         - Added AfterTopMostControl to allow for certain controls 
9105         to always stay on top when normal controls are brought to 
9106         front.
9107         
9108         * XplatUIWin32.cs: 
9109         - (DrawInversibleRectangle): Get window rectangle from Win32 
9110         in stead of from control, since Win32 doesn't calculate
9111         screen coords correctly from control's Location if it 
9112         have docked siblings.
9113         
9114         * MdiWindowManager.cs:
9115         - Correct the control menu popup location when clicked on
9116         the maximized form icon. (fixes #80223.1)
9117         - Don't show moving rectangle if mouse hasn't moved from
9118         the original clicked point.
9119         - Removed FormGotFocus handler (not used).
9120         - Calculate the control buttons location from the main
9121         window's size and not client size (fixes #79770).
9122         - Form is now closed when the form icon is double-clicked
9123         (fixes #79775). 
9124         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
9125         
9126         * InternalWindowManager.cs:
9127         - Moved some MDI-only methods to MdiWindowManager.
9128         - Removed unused properties and methods.
9129         - Unified method naming for methods handling wm messages.
9130         - Moved all message handling to seperate methods for
9131         each message.
9132         
9133         * ThemeWin32Classic.cs:
9134         - DrawManagedWindowDecorations now draws the title bar 
9135         with a gradient brush.
9136         - Add a CPDrawButtonInternal that allows us to specify
9137         light, normal and dark colors for the buttons (control 
9138         buttons for MDI children were drawn with the same light
9139         color as the background, therefore loosing the 3D effect).
9140         
9141         * SizeGrip.cs:
9142         - Add a CapturedControl property that is used to 
9143         determine the control to resize (defaults to parent). 
9144         Needed for MdiClient, since its SizeGrip's parent is
9145         MdiClient, but the control to resize is the main form.
9146         
9147         * MdiClient.cs:
9148         - Set SizeGrip's CapturedControl to the main form in order
9149         to resize the main form and not the MdiClient.
9150         - Override AfterTopMostControl to leave the scrollbars 
9151         always on top.
9152
9153 2006-12-15  Daniel Nauck  <dna@mono-project.de>
9154
9155         * ListView.cs: fixed ListViewItemCollection AddRange and
9156                         implemented ListViewItemCollection AddRange 2.0 support.
9157
9158 2006-12-15  Daniel Nauck  <dna@mono-project.de>
9159
9160         * ListViewGroup.cs: Add.
9161         * ListViewGroupCollection.cs: Add
9162         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
9163         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
9164                                 stub for ImageKey 2.0 support.
9165
9166 2006-12-14  Mike Kestner  <mkestner@novell.com>
9167
9168         * ListView.cs: add text padding to the autocalculation for columns
9169         of width -2.  Fixes #80207.
9170  
9171 2006-12-14  Mike Kestner  <mkestner@novell.com>
9172
9173         * ListView.cs: add some index guarding for partial row navigation 
9174         logic.  Fixes #80250.
9175
9176 2006-12-14  Mike Kestner  <mkestner@novell.com>
9177
9178         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
9179         are added or inserted to the collection.  Fixes #81099.
9180
9181 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
9182
9183         * MenuAPI.cs: Closes menu when right click out side of popup
9184         it fix problem in ContextMenu and MainMenu. Fixes #80252.
9185
9186 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9187
9188         * ListViewItem.cs: Fix dumb error.
9189
9190         * ListView.cs: Add Find and ContainsKey methods in 
9191         ListViewItemCollection, and also return true for IsReadOnly
9192         and IsFixedSize (changes for 2.0). 
9193
9194 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
9195
9196         * Control.cs: Allow Region to be set to null.
9197
9198 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9199
9200         * MdiWindowManager.cs: Remove unused (commented out) code.
9201         * Form.cs: When the MdiChild is maximized, the form needs 
9202         WM_NCMOUSELEAVE, so request it.
9203         * InternalWindowManager.cs: 
9204         - Added tooltips to control buttons.
9205         - Removed duplicated control button handling code.
9206         - Removed unused (commented out) code.
9207         
9208 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
9209
9210         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
9211         was used because we must set cursor without trigger ChangeCursor event
9212         and without change Cursor control property. Fixes #79963.
9213
9214 2006-12-12  Andreia Gaita  <avidigal@novell.com>
9215         
9216         * Control.cs: Check if Region setter value is null, and ignore
9217
9218 2006-12-12  Jackson Harper  <jackson@ximian.com>
9219
9220         * TextControl.cs: We were almost always drawing one more line then
9221         needed, since the GetLineByPixel will return the last line found
9222         at that pixel. In most cases though, we were invalidating up to
9223         the junction between two lines.
9224         - Improve debug code.
9225
9226 2006-12-12  Chris Toshok  <toshok@ximian.com>
9227
9228         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
9229         and FillReversibleRectangle.
9230
9231         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
9232         and FillReversibleRectangle.
9233
9234         * XplatUIWin32.cs: add stubs which do nothing for
9235         DrawReversibleFrame, DrawReversibleLine, and
9236         FillReversibleRectangle.
9237
9238         * XplatUIOSX.cs: add stubs which raise NIE for
9239         DrawReversibleFrame, DrawReversibleLine, and
9240         FillReversibleRectangle.
9241
9242         * XplatUIX11.cs: add working implementation for
9243         DrawReversibleFrame, DrawReversibleLine, and
9244         FillReversibleRectangle.
9245         
9246         * ControlPaint.cs: implement DrawReversibleFrame,
9247         DrawReversibleLine, and FillReversibleRectangle, by calling into
9248         the appropriate XplatUI method.
9249
9250 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9251
9252         * Form.cs: Make MdiClient have the focus even if it's
9253         not selectable, since it should receive WM_KEY* and WM_MOUSE 
9254         messages. Fixes #79907.
9255         
9256 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9257
9258         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
9259         queried after the window is created.
9260         
9261         * XplatUIX11.cs: Added SendParentNotify to implement 
9262         WM_PARENTNOTIFY logic. Fixes #79965.
9263         
9264         * Control.cs: Added MakeParam.
9265         
9266 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9267
9268         * MdiClient.cs: Resume Layout before setting window
9269         states (fixes #80201).
9270
9271 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9272
9273         * MenuAPI.cs: Deselect a menu item after performing
9274         the click (fixes #80197).
9275
9276 2006-12-11  Jackson Harper  <jackson@ximian.com>
9277
9278         * TextBoxBase.cs: We need to cap this value, since Maximum -
9279         ViewPortHeight can be less than zero.
9280         - Only do selection with the left mouse button.
9281         * TextBox.cs: Don't tell the world that we have a context menu.
9282         * Control.cs: New method so that we can control whether or not the
9283         context menu is visible outside MWF.
9284
9285 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
9286
9287         * ToolBarButton.cs: Fix text positon. 
9288
9289 2006-12-11  Miguel de Icaza  <miguel@novell.com>
9290
9291         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
9292
9293         * Control.cs (DoubleBuffered): Add implementation.
9294
9295         * Application.cs (OpenForms): Add.
9296
9297 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
9298
9299         * Form.cs: Use opacity instead of Opactiy to determine if we need
9300         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
9301
9302 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
9303
9304         * Control.cs: Fix NRE if Control.Site was set to null.
9305
9306 2006-12-11  Chris Toshok  <toshok@ximian.com>
9307
9308         * Control.cs: ControlCollection.Remove should return if the arg is
9309         null, and ControlCollection.SetChildIndex should raise a ANE.
9310
9311 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
9312
9313         * Control.cs: Verify value set for Dock property. Code formatting
9314         updates.
9315
9316 2006-12-11  Jackson Harper  <jackson@ximian.com>
9317
9318         * TextControl.cs: Draw the caret and the selection when a flag is
9319         set on the owner.
9320         * TextBoxBase.cs: We want to draw the caret and the selection for
9321         TextBox but not for TextBoxBase.
9322         - If the window is resized and scrolling is no longer needed (the
9323         whole doc is visible) set the scroll position to zero.
9324         - The default SelectWord (the one TextBox uses) should move the
9325         caret to the end of the word.
9326         - SelectAll moves the caret to the end of the selection.
9327         * TextBox.cs: We don't selectall on focus, we just do it when the
9328         control is created.
9329         
9330 2006-12-11  Mike Kestner  <mkestner@novell.com>
9331
9332         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
9333
9334 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9335
9336         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
9337         2.0 support.
9338         * ListViewItem.cs: Add Name 2.0 property.
9339
9340 2006-12-11  Andreia Gaita  <avidigal@novell.com>
9341
9342         * TabControl.cs: Set visibility on selected or default tab 
9343         when tabcontrol handle is created, so that it's contents
9344         actually show up (duh). Fixes #80193
9345         Don't redraw the control if there is no handle created, as
9346         the selected index might be completely invalid. Added some tests
9347         to check for this.
9348
9349 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
9350
9351         * ToolBar.cs: Uses maximun width and height of all buttons as 
9352         button rectangle when ButtonSize specified, it looks strange but
9353         is what happens in Win32. Fixes #80189.
9354
9355 2006-12-11  Jackson Harper  <jackson@ximian.com>
9356
9357         * TextControl.cs: Need to track undo levels ourself, since
9358         compound actions will mess them up.
9359
9360 2006-12-10  Andreia Gaita  <avidigal@novell.com>
9361
9362         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
9363         SelectedIndex value is changed (even if it's not valid).
9364         Reset SelectedIndex to 0 when the handle is created and if
9365         the current index is invalid.
9366         Fixes SelectdeIndex unit tests and #80128
9367
9368 2006-12-08  Chris Toshok  <toshok@ximian.com>
9369
9370         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
9371         calls EndEdit, it needs to be called before we set current_cell to
9372         its new value.  Otherwise, we end up committing the value in the
9373         textbox to the new cell as well.  Fixes bug #80160.
9374
9375 2006-12-08  Chris Toshok  <toshok@ximian.com>
9376
9377         * Form.cs (set_CancelButton): if the button's DialogResult is
9378         None, set it to Cancel.  Fixes bug 80180.
9379
9380 2006-12-08  Jackson Harper  <jackson@ximian.com>
9381
9382         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
9383         to watch ourselves when setting the canvas size and setting the
9384         scrollbar values.
9385
9386 2006-12-08  Chris Toshok  <toshok@ximian.com>
9387
9388         * DataGrid.cs: comment out the two MakeTransparent calls for the
9389         time being so people using trunk (and not 1.2.2) on windows can
9390         actually use the datagrid.  This deals with bug #80151.
9391
9392 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
9393
9394         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
9395         Graphics.DrawImage (image, int, int, int, int) overload instead
9396         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
9397         the dpi difference and was blurring images it drew.
9398         [Fixes bug #79960]
9399
9400 2006-12-08  Chris Toshok  <toshok@ximian.com>
9401
9402         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
9403         rowcnt is 0 (such as with an empty datasource), and make sure we
9404         initialize not_usedarea.Y to cells.Y, so we don't draw over the
9405         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
9406
9407 2006-12-08  Chris Toshok  <toshok@ximian.com>
9408
9409         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
9410         grid.
9411
9412 2006-12-08  Chris Toshok  <toshok@ximian.com>
9413
9414         [ Fixes bug #80167 ]
9415         
9416         * ThemeWin32Classic.cs: don't draw the image if the button's flat
9417         style is FlatStyle.System.
9418
9419         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
9420         ButtonBase.flat_style private, and switch uses of it to the public
9421         property.
9422         
9423 2006-12-08  Chris Toshok  <toshok@ximian.com>
9424
9425         [ Fixes bug #80121 ]
9426         
9427         * ThemeWin32Classic.cs: center the caption text in the datagrid
9428         when we draw it.
9429
9430         * DataGrid.cs: lessen the amount we add to the caption height from
9431         6 to 2.  6 was making it huge.
9432
9433 2006-12-08  Andreia Gaita  <avidigal@novell.com>
9434
9435         * UpDownBase: Handle MouseWheel call directly instead of capturing
9436         the inner textbox's OnMouseWheel. Fixes #80166
9437
9438 2006-12-08  Jackson Harper  <jackson@ximian.com>
9439
9440         * TextControl.cs: We need to invalidate the textbox when we empty
9441         it (how had this not been discovered before?)
9442
9443 2006-12-08  Jackson Harper  <jackson@ximian.com>
9444
9445         * TextBoxBase.cs: Reworked the mouse down code so I could get it
9446         to behave like MS, we now ignore the eventargs.Click and just
9447         track state ourself, which we were already doing anyways.
9448         - Constrain the double click handler to the double click size.
9449         
9450 2006-12-08  Chris Toshok  <toshok@ximian.com>
9451
9452         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
9453         direction if that scrollbar isn't shown.  fixes bug #80158.
9454
9455 2006-12-08  Andreia Gaita  <avidigal@novell.com>
9456
9457         * NumericUpDown.cs: Update value on getter. Fixes #79950
9458
9459 2006-12-08  Chris Toshok  <toshok@ximian.com>
9460
9461         * MenuItem.cs: add back in the event cloning code.  I didn't know
9462         how to do it in the face of the EventHandlerList work i'd done
9463         last week.  Fixes bug #80183.
9464
9465 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
9466
9467         * Control.cs: Add an invalidate to the BackgroundImage setter.
9468         [Fixes 80184]
9469
9470 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
9471
9472         * ToolStrip*: Add some small properties reported by MoMA, fix event
9473         firing and default properties based off of unit tests, and add some
9474         attributes based off of the class status page.
9475
9476 2006-12-07  Jackson Harper  <jackson@ximian.com>
9477
9478         * TextBoxBase.cs: Take HideSelection into account when determining
9479         whether or not to show the selection.
9480         * RichTextBox.cs: After inserting the RTF into the document move
9481         the cursor to the beginning of the document.
9482
9483 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
9484
9485         * Control.cs: Remove static ArrayList "controls" which maintained
9486         a reference to every control created.
9487         * Application.cs: Create a static FormCollection to maintain a reference
9488         to every form created.  Use it in places that formerly enumerated through
9489         the controls one looking for forms.
9490         * Form.cs: Add and remove self from above FormCollection.
9491
9492 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
9493
9494         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
9495           not libgdk (though it makes me wonder why I didn't have any
9496           problems)
9497
9498 2006-12-07  Chris Toshok  <toshok@ximian.com>
9499
9500         [ you had to know this was coming after that last commit...]
9501         
9502         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
9503         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
9504         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
9505         XCopyArea).
9506
9507 2006-12-07  Chris Toshok  <toshok@ximian.com>
9508
9509         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
9510         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
9511         all the behavior we need for double buffering.
9512
9513         * XplatUIDriver.cs: implement the 3 double buffer methods using a
9514         client side Bitmap, just like the old Control-based double buffer
9515         code did.  The methods are virtual, so each XplatUI driver
9516         subclass can replace the implementation to use a faster, platform
9517         specific approach.
9518
9519         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
9520         double buffer code, and clean things up a bit in the process.
9521
9522 2006-12-06  Chris Toshok  <toshok@ximian.com>
9523
9524         * Control.cs: reindent WndProc.
9525
9526 2006-12-06  Chris Toshok  <toshok@ximian.com>
9527
9528         [ I wanna be like BenM when I grow up ]
9529         
9530         * Hwnd.cs: create a single static Graphics object on the static
9531         Bitmap we create.  use this for our text measurements.
9532
9533         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
9534         This was causing us to allocate a backbuffer for every control,
9535         even when it wasn't flagged as double buffered.  Instead use the
9536         single graphics instance.  This might have implications for
9537         multithreaded applications.  If we run into problems we can switch
9538         to creating 1 Graphics per control, on the static Hwnd bitmap.
9539
9540         this change nets us a 7M savings in private dirty mappings when
9541         running FormsTest.exe.
9542
9543 2006-12-06  Chris Toshok  <toshok@ximian.com>
9544
9545         * ListView.cs: the BackgroundImage override is just to set
9546         attributes.  chain up to base.BackgroundImage.
9547
9548         * RichTextBox.cs: same.
9549
9550         * ToolBar.cs: same, but we need to also redraw the toolbar when it
9551         changes, so instead a handler for BackgroundImageChanged.
9552         
9553         * Control.cs: make background_image private.
9554
9555 2006-12-06  Chris Toshok  <toshok@ximian.com>
9556
9557         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
9558         sure we even need this assignment, but roll with it for now.
9559
9560         * Control.cs: make the cursor field private.
9561
9562 2006-12-06  Chris Toshok  <toshok@ximian.com>
9563
9564         * Form.cs: we don't need to explicitly set ImeMode to
9565         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
9566         behavior in the face of ImeMode.Inherit.
9567
9568         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
9569         change the ctor's assignment to use ImeMode instead of ime_mode.
9570
9571         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
9572         ImeModeInherit.  Only check for the parent's imemode (and return
9573         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
9574         This fixes the button unit test, which sets both ImeMode and
9575         DefaultImeMode to ImeMode.Disable.
9576
9577         also make the ime_mode field private.
9578
9579 2006-12-06  Chris Toshok  <toshok@ximian.com>
9580
9581         * Control.cs: make control_style private.
9582
9583         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
9584         setting the styles to true, then setting them to false instead of
9585         reverting to their previous values.
9586
9587         also, call SetStyle on the scrollbars instead of using
9588         control_style directly.
9589
9590 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
9591
9592         * FormCollection.cs: Implement. [2.0]
9593
9594 2006-12-06  Chris Toshok  <toshok@ximian.com>
9595
9596         * Control.cs: make tab_stop private.
9597
9598         * Label.cs: set TabStop, not tab_stop.  reformat some event
9599         add/remove methods to make them more compact.
9600
9601 2006-12-06  Chris Toshok  <toshok@ximian.com>
9602
9603         * RadioButton.cs: fix TabStop handling.
9604
9605 2006-12-06  Chris Toshok  <toshok@ximian.com>
9606
9607         * TextBox.cs: remove the explicit assignments to has_focus.
9608         Control does that.
9609
9610         * ButtonBase.cs: remove the assignment to has_focus.  Control will
9611         manage that.
9612         
9613 2006-12-06  Chris Toshok  <toshok@ximian.com>
9614
9615         * ButtonBase.cs: remove all uses of is_enabled from this code.
9616         it's always true when any of the code containing the checks is
9617         executed.
9618
9619 2006-12-06  Chris Toshok  <toshok@ximian.com>
9620
9621         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
9622         with different semantics (some are present in both 1.1 and 2.0
9623         profiles) so that we match MS's behavior in our unit tests.
9624
9625 2006-12-06  Jackson Harper  <jackson@ximian.com>
9626
9627         * TextControl.cs: Make this operation undoable.
9628         * TextBoxBase.cs: Factor the border width into the preferred
9629         height.
9630         - implement Modified as per the spec.
9631
9632 2006-12-06  Chris Toshok  <toshok@ximian.com>
9633
9634         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
9635
9636 2006-12-06  Chris Toshok  <toshok@ximian.com>
9637
9638         * Control.cs: make right_to_left and context_menu fields private.
9639
9640 2006-12-06  Chris Toshok  <toshok@ximian.com>
9641
9642         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
9643         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
9644         Control.child_controls private.  switch all uses over to
9645         Control.Controls.
9646
9647 2006-12-06  Chris Toshok  <toshok@ximian.com>
9648
9649         * System.Windows.Forms/GroupBox.cs,
9650         System.Windows.Forms/AccessibleObject.cs,
9651         System.Windows.Forms/ErrorProvider.cs,
9652         System.Windows.Forms/Control.cs,
9653         System.Windows.Forms/UpDownBase.cs,
9654         System.Windows.Forms/ScrollBar.cs,
9655         System.Windows.Forms/DateTimePicker.cs,
9656         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
9657         System.Windows.Forms/ToolTip.cs,
9658         System.Windows.Forms/RadioButton.cs,
9659         System.Windows.Forms/LinkLabel.cs,
9660         System.Windows.Forms/Splitter.cs,
9661         System.Windows.Forms/TextBoxBase.cs,
9662         System.Windows.Forms/ToolStripTextBox.cs,
9663         System.Windows.Forms/ContainerControl.cs,
9664         System.Windows.Forms/ThemeWin32Classic.cs,
9665         System.Windows.Forms/SizeGrip.cs,
9666         System.Windows.Forms/ToolStripDropDown.cs,
9667         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
9668         private.  switch all uses over to Control.Parent.
9669
9670 2006-12-06  Chris Toshok  <toshok@ximian.com>
9671
9672         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
9673         Control does this before calling emitting these events.
9674
9675         * TabControl.cs: same.
9676
9677         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
9678         Control.client_rect.
9679
9680         * ButtonBase.cs: use the ClientSize property instead of the
9681         client_size field.
9682
9683         * ScrollableControl.cs: same.
9684
9685         * Control.cs: another pass at making properties private.  also,
9686         move the initialization of tab_stop to the ctor.
9687
9688 2006-12-05  Andreia Gaita <avidigal@novell.com>
9689
9690         * TabControl.cs: Let the selected index be set freely if the 
9691         control handle is not yet created.
9692
9693 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
9694
9695         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
9696         internal until I can rewrite DefaultLayout.
9697         * ToolStrip.cs: Fix build error and some general cleaning.
9698         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
9699         Fix build errors caused by making some of Control's fields private.
9700
9701 2006-12-05  Jackson Harper  <jackson@ximian.com>
9702
9703         * TextControl.cs: Redo Insert a little so that it use IndexOf
9704         instead of Split, this prevents it from messing up on things like
9705         \n\n\n. Also more effecient since the split array doesn't need to
9706         be created.
9707         * TextBoxBase.cs: AppendText doesnt handle multiline and non
9708         multiline text differently, this is the first of many fixes that
9709         will make multiline/non-multiline the same thing as far as the
9710         TextBoxBase is concerned.
9711         - Don't split the text and insert lines, this can lose some line
9712         endings (like is the last line a soft or hard break). Instead use
9713         the new Insert.
9714         - Fix an off by one when combining all the lines in the Text
9715         getter.
9716         - Remove separate multiline handling from the Text getter/setter.
9717
9718 2006-12-05  Chris Toshok  <toshok@ximian.com>
9719
9720         * ButtonBase.cs: a few changes:
9721
9722         - don't reinitialize internal Control fields in the ctor when they
9723         have the same values as Control sets them.
9724
9725         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
9726         this before calling those methods.
9727
9728         - we don't need to call Refresh for anything.  use Invalidate
9729         instead.
9730
9731         - OnEnabledChanged doesn't need to redraw at all - Control.cs
9732         calls Refresh in its OnEnabledChanged.
9733         
9734         - several of the events we were registered for in the ctor to
9735         redraw ourselves already include calls to Invalidate in the
9736         property setters that raise the events.  remove the extra
9737         invalidation.
9738
9739         - reformat a switch statement that was 83274658 columns wide.
9740         
9741 2006-12-05  Mike Kestner  <mkestner@novell.com>
9742
9743         * ComboBox.cs: fix a unit test regression from a TextBox
9744         SelectionLength return of -1 when there's no selection.  
9745
9746 2006-12-05  Chris Toshok  <toshok@ximian.com>
9747
9748         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
9749         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
9750         cleaning up some of the internal Control fields being used by
9751         subclasses.
9752
9753 2006-12-05  Mike Kestner  <mkestner@novell.com>
9754
9755         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
9756         listbox after AddImplicit calls since it defaults to hidden. Add a 
9757         hack to preserve requested heights across DropDownStyle changes.
9758
9759 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
9760
9761         * PropertyGrid.cs: Hide FindFirstItem method from public API.
9762
9763 2006-12-05  Chris Toshok  <toshok@ximian.com>
9764
9765         * DataGridView.cs: fix compiler warnings.
9766
9767         * PrintControllerWithStatusDialog.cs: same.
9768
9769         * ToolBar.cs: same.
9770
9771         * FolderBrowserDialog.cs: same.
9772
9773         * Splitter.cs: same.
9774
9775         * DataGridViewComboBoxCell.cs: same.
9776
9777         * XplatUIWin32.cs: same.
9778
9779         * PictureBox.cs: same.
9780
9781         * Win32DnD.cs: same.
9782
9783         * PageSetupDialog.cs: same.
9784
9785         * FileDialog.cs: same.
9786
9787         * PrintDialog.cs: same.
9788
9789         * DataGridTextBoxColumn.cs: same.
9790
9791         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
9792
9793 2006-12-05  Chris Toshok  <toshok@ximian.com>
9794
9795         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
9796         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
9797         System.ComponentModel.EventHandlerList work.
9798
9799 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
9800
9801         * DrawTreeNodeEventArgs.cs: Added.
9802
9803 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9804         
9805         * InternalWindowManager.cs: Remove an unused field.
9806         
9807 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9808
9809         * InternalWindowManager.cs:
9810         - Save the point where the title bar is clicked.
9811         
9812         * MdiWindowManager.cs:
9813         - Only allow moving of the window as long as the 
9814         clicked point on the title bar does not get out of
9815         MdiClient's rectangle. Fixes #79982.
9816         
9817         * MdiClient.cs:
9818         - Added Horizontal/VerticalScrollbarVisible.
9819         - Simplified the scrollbar sizing algorithm.
9820         - Cache the difference in scrolled value in
9821         H/VBarValueChanged and move the calculation out
9822         of the for loop.
9823
9824 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9825
9826         * Control.cs: Make the Console.WriteLine in WndProc 
9827         write more info.
9828
9829 2006-12-05  Chris Toshok  <toshok@ximian.com>
9830
9831         * ToolStripManager.cs, ToolStripButton.cs,
9832         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
9833         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
9834         ToolStripSplitButton.cs, ToolStripSeparator.cs,
9835         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
9836         ToolStripProgressBar.cs, ToolStripContainer.cs,
9837         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
9838         to using System.ComponentModel.EventHandlerList.
9839
9840 2006-12-04  Chris Toshok  <toshok@ximian.com>
9841
9842         * LinkLabel.cs: fix up compiler warnings.
9843
9844         * TableLayoutSettings.cs: same.
9845
9846         * TreeView.cs: same.
9847
9848         * ToolBar.cs: same.
9849
9850         * TabControl.cs: same.
9851
9852         * RichTextBox.cs: same.
9853
9854         * ListViewItem.cs: same.
9855
9856         * PropertyGrid.cs: same.
9857
9858         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
9859
9860         * ToolTip.cs same.
9861
9862         * TextRenderer.cs: fix up compiler warnings.
9863
9864         * Label.cs: same.
9865
9866         * Form.cs: corcompare fixes.
9867
9868         * PictureBox.cs: fix up compiler warnings.
9869
9870         * ImageListStreamer.cs: same.
9871
9872         * TrackBar.cs: corcompare fix.
9873
9874         * Control.cs: fix up compiler warnings.
9875
9876         * SplitterPanel.cs: same.
9877
9878         * NumericTextBox.cs: same.
9879
9880         * ImageList.cs: same.
9881
9882         * StatusStrip.cs: same.
9883
9884         * ProgressBar.cs: corcompare fix.
9885
9886         * ToolStripButton.cs: fix up compiler warnings.
9887
9888         * ToolStripStatusLabel.cs: same.
9889
9890         * ToolStripSplitButton.cs: same.
9891
9892         * ToolStripSeparator.cs: same.
9893
9894         * ToolStripProgressBar.cs: same.
9895
9896         * ToolStripDropDownMenu.cs: same
9897
9898         * ToolStripDropDown.cs: same.
9899
9900         * ToolStripDropDownButton.cs: same.
9901
9902         * ToolStrip.cs: same.
9903
9904         * ToolStripControlHost.cs: same.
9905
9906         * ToolStripContentPanel.cs: same.
9907
9908         * ToolStripDropDown.cs: same.
9909
9910         * ToolStripContainer.cs: same.
9911
9912         * ToolStripPanel.cs: same, and add "new" where we need it to work
9913         with the new ArrangedElementCollection.
9914
9915         * ToolStripItemCollection.cs: add "new" where we need it to work
9916         with the new ArrangedElementCollection.
9917
9918 2006-12-04  Andreia Gaita <avidigal@novell.com>
9919
9920         * TabControl.cs: Fix default tab selection to after TabControl
9921         gets focus and not before. Fixes #80128
9922
9923 2006-12-04  Chris Toshok  <toshok@ximian.com>
9924
9925         * DataGridTableStyle.cs: remove the gross calling of
9926         datagrid.Refresh from here.  It's a broken idea and it doesn't
9927         work anyway.
9928
9929         * DataGrid.cs: instead, just register/unregister from the
9930         DataGridTableStyle events in CurrentTableStyle.  we play it
9931         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
9932         even though some would most likely not require it.  Fixes bug
9933         #80115 (and one portion of #80117 as a side effect).
9934
9935 2006-12-04  Chris Toshok  <toshok@ximian.com>
9936
9937         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
9938         so the textbox (if any) goes away.  Fixes bug #80117.
9939
9940 2006-12-04  Chris Toshok  <toshok@ximian.com>
9941
9942         * DataGridColumnStyle.cs: set the column's readonly property
9943         initially based on the property descriptor's IsReadOnly.  Fixes
9944         bug #80044.
9945
9946 2006-12-04  Chris Toshok  <toshok@ximian.com>
9947
9948         * ComboBox.cs: wrap the dropdown style changing work in
9949         SuspendLayout/ResumeLayout.  Fixes bug #79968.
9950
9951 2006-12-04  Jackson Harper  <jackson@ximian.com>
9952
9953         * TextBoxBase.cs: Fix off by one, since these are one-based.
9954         * TextBox.cs: Select all the text when we get focus.  The TextBox
9955         does this but the RTB does not.
9956
9957 2006-12-04  Chris Toshok  <toshok@ximian.com>
9958
9959         * DataGridTextBoxColumn.cs: remove some spew.
9960
9961         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
9962         but some part of me is saying "it shouldn't be here.."  At any
9963         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
9964         setting the value.
9965
9966 2006-12-04  Chris Toshok  <toshok@ximian.com>
9967
9968         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
9969         to reassign the propertydescriptor.
9970
9971 2006-12-04  Jackson Harper  <jackson@ximian.com>
9972
9973         * TextBoxBase.cs:
9974         * TextControl.cs: Remove some unused variables.  Maybe this will
9975         patch things up between mike and I.
9976         - don't split lines less then one char wide, if the viewport is
9977         that small text won't be visible anyways.
9978         
9979 2006-12-04  Jackson Harper  <jackson@ximian.com>
9980
9981         * TextBoxBase.cs: Default selection length is -1, need to do some
9982         more testing on windows to see when this is used for the property.
9983         - Redid the Lines [] property to that we properly remove soft line
9984         breaks
9985         - added support for preserving carriage returns
9986         -  CanUndo is not a variable like 'is undo enabled' it just returns
9987         true if there is undo operations available.
9988         - AppendText doesn't need to grab the last tag itself anymore,
9989         this happens automatically when we move the cursor.
9990         * TextControl.cs: Add CompoundActions to the undo class. This
9991         allows combining the other operations into one big option.  ie a
9992         paste will combine { delete old, insert new, move cursor }
9993         - Add InsertString undo operation
9994         - New method for deleting multiline text
9995         - Add carriage returns to lines. So we can preserve carriage
9996         returns when text is 'roundtripped'
9997
9998 2006-12-04  Chris Toshok  <toshok@ximian.com>
9999
10000         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
10001         minimum 0.  Fixes the scrollbar exception in bug #80136.
10002
10003 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10004
10005         * MdiClient.cs: 
10006         * MdiWindowManager: Removed unused fields and methods.
10007         
10008 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10009         
10010         * StatusBar.cs: Update all panels when a AutoSize=Contents
10011         panel needs updating.
10012         
10013         * StatusBarPanel.cs: Remove twidth and only use initialize.
10014         Fixes #80031.
10015                 
10016 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10017
10018         * Form.cs: When a form's MdiParent is set add it directly
10019         on top of the z-order in stead of relying on MdiClient's
10020         ActivateChild to do it. Fixes #80135.
10021         
10022         * MdiClient.cs: 
10023         - Remove original_order, mdi_child_list is already doing
10024         the same thing.
10025         - Create mdi_child_list on construction in
10026         stead of first use (avoids a few null checks).
10027
10028         * MenuItem.cs: Use an already existing list of mdi children
10029         to get the correct order of children and remove the other
10030         redundant list.
10031
10032 2006-12-04  Chris Toshok  <toshok@ximian.com>
10033
10034         * PropertyGridView.cs: cached_splitter_location is only used in
10035         !DOUBLEBUFFER code.
10036
10037         * PropertyGrid.cs: implement the ComComponentNameChanged event
10038         using Events, hoping that would fix the warning.  Looks like a
10039         compiler bug instead (#80144).
10040
10041         * PropertyManager.cs: remove unused method.
10042
10043 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
10044
10045         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
10046         include parentesis to fix expression evaluation. Fixes #79634.
10047
10048 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
10049         
10050         * MenuAPI.cs:
10051         - Changes to fix behavior in Menu control, some reported in #80097
10052         and other detected during behavior refactory like a select event
10053         problems.
10054         - Remove unneded "if's" conditions.
10055         - Created an internal to flag when popup is active in control, we need 
10056         it because in .NET you can have menu active but without popup active
10057         when you active menu using popup without visible items.
10058         - Mimic win32 behavior for Select and Popup events.  
10059         - Dont open popup menu when you dont have visible subitems.
10060         - Do nothing when click on disabled menu item.
10061         - Some small changes to follow the coding style guidelines.
10062         - Unselect menu only when another control gives focus. Fixes #80097.
10063         - Remove unused code.
10064         
10065         * MenuItem.cs: internal VisibleItems method to check if menu
10066         theres visible subitems, it will be usefull to fix some 
10067         behavior in Menu control.
10068         
10069 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
10070         
10071         * Timer.cs: Tag property for 2.0 profile.
10072         
10073 2006-12-01  Chris Toshok  <toshok@ximian.com>
10074
10075         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
10076         
10077         * Win32DnD.cs: comment out some unused fields.
10078
10079         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
10080         some unused properties/methods.
10081
10082         * XplatUIX11.cs: fix MousePosition so we override the base class's
10083         property instead of conflicting with it.
10084
10085         * PictureBox.cs: comment out some unused fields
10086
10087         * OSXStructs.cs: make some struct fields public.
10088
10089         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
10090         MousePosition so we override the base class's property instead of
10091         conflicting with it.
10092
10093         * X11Dnd.cs: comment out some unused fields
10094
10095         * X11DesktopColors.cs: fix some struct field visibility to quiet
10096         the compiler.
10097
10098         * X11Dnd.cs: remove some debug code.
10099
10100         * ThemeClearlooks.cs: comment out unused field.
10101
10102         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
10103
10104         * ThemeGtk.cs: comment out some unused pinvokes.
10105
10106         * Timer.cs: remove some unused fields.
10107
10108         * ThemeClearlooks.cs: comment out unused field.
10109
10110         * UpDownBase.cs: comment out unused field.
10111
10112         * DataObject.cs: comment out unused field.
10113
10114         * DataGridBoolColumn.cs: reomve unused field.
10115
10116         * DataGrid.cs: remove unused field.
10117
10118         * Cursor.cs: remove old ToBitmap code.
10119
10120         * ControlPaint.cs: remove unused method.
10121
10122         * ScrollBar.cs: remove unused fields.
10123
10124         * ComboBox.cs: remove unused field, and chain up to
10125         AccessibleObject ctor.
10126
10127         * ListBox.cs: remove unused field.
10128
10129         * ButtonBase.cs: wrap a couple fields in NET_2_0.
10130
10131         * GridEntry.cs: remove unused fields.
10132
10133         * Binding.cs: remove unused fields.
10134
10135         * AxHost.cs: remove unused method.
10136
10137         * ContainerControl.cs: remove unused field.
10138
10139         * ScrollableControl.cs: remove unused fields.
10140
10141 2006-12-01  Chris Toshok  <toshok@ximian.com>
10142
10143         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
10144         the Where/WhereString stuff.  it's easy enough to CWL
10145         Environment.StackTrace.
10146
10147         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
10148         unused private fields.
10149
10150 2006-12-01  Jackson Harper  <jackson@ximian.com>
10151
10152         * TextControl.cs: Do not update the view while inserting multiline
10153         text. If we update the view we might wrap lines, before entering
10154         the new lines, which causes the new line insertion calculations to
10155         be totally fubared.
10156         - Remove an old TODO
10157         - Make debug output a little nicer
10158         
10159 2006-12-01  Chris Toshok  <toshok@ximian.com>
10160
10161         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
10162
10163 2006-12-01  Chris Toshok  <toshok@ximian.com>
10164
10165         [ fix the majority of the CS0108 warnings we've been suppressing ]
10166         
10167         * TreeView.cs: mark BackgroundImageChanged as 'new'.
10168
10169         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
10170         to "LayoutToolBar" to quiet mcs.
10171         
10172         * TabControl.cs: mark our ControlCollection class as 'new'.
10173
10174         * TextBoxBase.cs: mark some events as 'new'.
10175
10176         * Splitter.cs: TabStop is 'new'.
10177
10178         * ControlBindingsCollection.cs: mark a few methods as new since
10179         they change the visibility from protected to public.
10180
10181         * RadioButton.cs: DoubleClick -> base class, and remove unused
10182         HaveDoubleClick.
10183
10184         * MonthCalendar.cs: ImeMode property -> base class, and mark many
10185         events as new.
10186
10187         * NumericUpDown.cs: TextChanged -> base class.
10188
10189         * CheckedListBox.cs: mark our ObjectCollection class as new to
10190         quiet mcs.
10191
10192         * FolderBrowserDialog.cs: make HelpRequest event new and have it
10193         muck with the base class.
10194
10195         * StatusBar.cs: fix some mcs warnings about Update being the same
10196         name as a base class method.
10197
10198         * RichTextBox.cs: mark some events as new, and make them do things
10199         to the base class impl.
10200
10201         * UserControl.cs: mark TextChanged as new, and have it manipulate
10202         base.TextChanged.
10203
10204         * UpDownBase.cs: mark some things new.
10205
10206         * CheckBox.cs: mark DoubleClick "new", and add some text about
10207         what we need to look at.
10208
10209         * Panel.cs: make the events "new", and manipulate the base
10210         version.  these are just here for attributes.
10211
10212         * AccessibleObject.cs: make owner private.
10213
10214         * Control.cs: deal with AccessibleObject.owner being private.
10215         cache our own copy if we need it.
10216
10217         * Button.cs: add "new" to the DoubleClickEvent.
10218
10219         * ListBox.cs: no need to track our own has_focus here.  let
10220         Control.has_focus do it for us.  Also some other work to clear up
10221         warnings about not overriding base class methods of the same name.
10222         
10223         * ComboBox.cs: clear up some warnings about not override base
10224         class methods of the same name.
10225
10226 2006-12-01  Chris Toshok  <toshok@ximian.com>
10227
10228         * Form.cs: flag a few things as "new" to quiet some of the mcs
10229         warnings.
10230
10231         * AxHost.cs: same.
10232
10233         * PrintPreviewDialog.cs: same.
10234
10235         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
10236         now DGV isn't so horrible on the class status page.  also, move
10237         all events to using System.ComponentModel.EventHandlerList.  my
10238         wrists hurt.
10239
10240 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10241
10242         * MdiWindowManager.cs:
10243         - Set form to active mdi child if shown,
10244         and update the active mdi child to the next 
10245         remaining child in the z-order if the form is hidden.
10246
10247         * Form.cs: 
10248         - Track if the form has been visible and if its 
10249         visibility is beeing changed, so that the MdiClient
10250         can properly decide the ActiveMdiChild. The MdiClient 
10251         cannot track this since the form can change visibility 
10252         before MdiClient is created.
10253
10254         * MdiClient.cs:
10255         - Don't activate anything of the parent form is changing
10256         its visibility.
10257         - Rework ActiveMdiChild to only return visible mdi 
10258         children and take into account several other corner 
10259         cases.
10260
10261 2006-12-01  Chris Toshok  <toshok@ximian.com>
10262
10263         * IBindableComponent.cs: new 2.0 interface.
10264
10265 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
10266
10267         * DataGrid.cs: Font for caption area is bold by default.
10268
10269 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
10270
10271         * Menu.cs: Tag property for 2.0.
10272         
10273 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
10274
10275         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
10276         
10277 2006-12-01  Chris Toshok  <toshok@ximian.com>
10278
10279         * TreeView.cs: doh, the Begin* events should be
10280         TreeViewCancelEventHandler.
10281
10282 2006-12-01  Chris Toshok  <toshok@ximian.com>
10283
10284         * Form.cs: Form.ControlCollection already stores off the
10285         form_owner field.  don't access the base class's internal "owner"
10286         field.
10287
10288         * Control.cs: make all the fields in Control.ControlCollection
10289         private.  there's no need for any internal fields here.
10290
10291 2006-12-01  Chris Toshok  <toshok@ximian.com>
10292
10293         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
10294         OnHandleCreated.  Fixes bug #80109.
10295
10296 2006-12-01  Chris Toshok  <toshok@ximian.com>
10297
10298         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
10299         SplitContainer.cs, Control.cs, StatusStrip.cs,
10300         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
10301         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
10302         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
10303         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
10304         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
10305         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
10306         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
10307         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
10308         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
10309         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
10310
10311         do most of the work to convert our code over to use
10312         System.ComponentModel.Component.Events for
10313         adding/removing/dispatching events.
10314
10315
10316 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
10317
10318         * DataGridView.cs: Fix an ArgumentNullException reported 
10319         twice today in IRC.
10320
10321 2006-11-30  Mike Kestner  <mkestner@novell.com>
10322
10323         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
10324         grabbed listbox.  Fixes #80036 and #80101.
10325
10326 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
10327
10328         * Message.cs: Changed ToString() to match MS.
10329         
10330 2006-11-30  Jackson Harper  <jackson@ximian.com>
10331
10332         * TextBoxBase.cs: You can still change the selected text on a read
10333         only textbox.
10334         * TextControl.cs: Lower magic number for wrap calculations. This
10335         lets text get closer to the right (far) edge.
10336
10337 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
10338
10339         * Control.cs: Tweak 2.0 layout properties.
10340         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
10341         * TextRenderer.cs: Add a new overload.
10342         * ToolStrip*: Huge amount of changes and new features.
10343
10344 2006-11-30  Mike Kestner  <mkestner@novell.com>
10345
10346         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
10347         scroll range correct.  Fixes #79994.
10348
10349 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
10350
10351         * MdiWindowManager.cs: Update main form's text when
10352         a form is closed. (fixes #80038)
10353         
10354 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
10355
10356         * ToolBar.cs:
10357         - Fix an regression in ButtonSize.
10358         - Get ImeMode default value change to "Disable".
10359         - Get ShowTooltips default value change to true, default value is 
10360         "false" but after make a test in .NET we get "true" result as default.
10361         
10362 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
10363
10364         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
10365
10366 2006-11-29  Chris Toshok  <toshok@ximian.com>
10367
10368         * XplatUIWin32.cs (GetWindowTransparency): check return value of
10369         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
10370         SetWindowTransparency hasn't been called.
10371
10372 2006-11-29  Chris Toshok  <toshok@ximian.com>
10373
10374         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
10375         if it's supported.
10376         (set_AllowTransparency): reorder things a little so that the
10377         WS_EX_LAYERED style is removed properly.
10378
10379 2006-11-29  Chris Toshok  <toshok@ximian.com>
10380
10381         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
10382         
10383         * Form.cs: only call the XplatUI transparency method (get/set) if
10384         SupportsTransparency says it's supported. Otherwise fallback to
10385         doing nothing (in the set case) or returning the instance field we
10386         cache (in the get case).
10387
10388         * XplatUIStructs.cs: add TransparencySupport flag enum.
10389         
10390         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
10391         change to SupportsTransparency.
10392
10393         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
10394         TransparencySupport.None from SupportsTransparency.
10395
10396         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
10397         TransparencySupport.Set from SupportsTransparency.
10398
10399         * XplatUIWin32.cs: implement GetWindowTransparency calling
10400         GetLayeredWindowAttributes, and implement SupportsTransparency by
10401         checking whether or not both
10402         GetWindowTransparency/SetWindowTransparency are available
10403         entrypoints.  We need to do this since SetWindowTransparency is
10404         available as of win2k, but GetWindowTransparency requires winxp.
10405         yay win32 api.
10406
10407         * XplatUI.cs: Add GetWindowTransparency, and change
10408         SupportsTransparency to allow for either/both Get/Set.
10409
10410 2006-11-29  Chris Toshok  <toshok@ximian.com>
10411
10412         * DataGrid.cs: keep from going into an infinite loop redrawing a
10413         datagrid that has no datasource.  Fixes bug #80033.
10414
10415 2006-11-29  Chris Toshok  <toshok@ximian.com>
10416
10417         * MenuItem.cs: fix the NRE when we assign text (and therefore call
10418         Invalidate) before the mainmenu has been assigned to a control.
10419
10420 2006-11-29  Chris Toshok  <toshok@ximian.com>
10421
10422         * DataGrid.cs: detect when we should be double the double click
10423         row/column autosize stuff, although that codepath has yet to be
10424         written.  part of the work for bug #79891.
10425
10426 2006-11-29  Chris Toshok  <toshok@ximian.com>
10427
10428         * Binding.cs (SetControl): fix unit test.
10429
10430 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10431
10432         * PageSetupDialog.cs: Validate the margins and set them in
10433         PageSettings. 
10434         * NumericTextBox.cs: New class to mimic the behavior of the
10435         textboxes used in the printing dialogs.
10436
10437 2006-11-29  Andreia Gaita  <avidigal@novell.com>
10438         
10439         * Form.cs: Revert previous change (remove call UpdateBounds
10440         from form constructor), because it messes with the handle creation
10441         order, and that one needs lots and lots of love.
10442         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
10443         for valid printer and throw InvalidPrinterException if document
10444         is set but printer not valid), adding a MonoTODO. Once 
10445         handle creation is done properly, we can put this back in.
10446
10447 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
10448
10449         * MenuItem.cs: Create a invalidate method for menu item, to be
10450         calling from set text, it make text changes to imadiate update
10451         on screen. Fixes #80013. 
10452         
10453 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
10454
10455         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
10456         fixes bug #80070 and some other problem on toolbar buttons
10457         layout.
10458
10459 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
10460
10461         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
10462         with dotted brush.      Fixes #79564
10463         
10464 2006-11-28  Andreia Gaita  <avidigal@novell.com>
10465
10466         * Form.cs: Removed call to UpdateBounds on Form
10467         constructor, it was causing a call to CreateHandle
10468         before it was supposed to.
10469         * PrintControllerWithStatusDialog: Applied patch
10470         by Chris Toshok to hide controller when there are
10471         no printers available.
10472         PrintDialog.cs: initialize printer settings to 
10473         null - correct DefaultValues test #5
10474         * PrintPreviewControl.cs: Move PrintController
10475         initialization to GeneratePreview
10476         * PrintPreviewDialog.cs: 
10477         - Remove Preview generation     from Document_set(). It is 
10478         called on OnPaint
10479         - Throw InvalidPrinterException on CreateHandle if
10480         a Document is set but there are no printers or 
10481         printer is not valid.
10482         * ThemeWin32Classic: don't paint PrintPreviewControl
10483         if there is nothing to paint    
10484
10485 2006-11-28  Miguel de Icaza  <miguel@novell.com>
10486
10487         * Form.cs: Add another popular method.
10488
10489         * TabPage.cs: ditto.
10490
10491 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10492
10493         * MenuItem.cs: Fixed a warning.
10494         * InternalWindowManager: Fixed a warning.
10495
10496 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10497
10498         * MenuItem.cs:
10499         - When cloning a menu also clone MdiList and clone the 
10500           window menu items properly (as the forms and menuitems
10501           are kept in an internal hashtable, these need updating 
10502           as well)
10503         - Rewrote the window menu code, menu items are added in the
10504           order the forms were added to their parent, and they are
10505           updated every time the window menu is shown (before the
10506           list was only generated once, in the current order of the
10507           forms, and would never be updated). A checkmark is shown
10508           next to the item corresponding to the active mdi child.
10509
10510 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10511
10512         * XplatUIStructs.cs: 
10513         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
10514         
10515         * XplatUIWin32.cs: 
10516         - Added TME_NONCLIENT to TMEFlags.
10517         - Handles WM_NCMOUSEMOVE in GetMessage to 
10518           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
10519
10520         * MdiWindowManager:
10521         - Now merges mdi child menu to parent menu when maximized.
10522         - Recalculate NC areas of both mdi child and mdi parent. 
10523           Fixes #79757 (4).
10524           on window state and size changes.Fixes #79844 (3).
10525         - Handle WM_NCCALCSIZE to properly calculate borders.
10526
10527         * Form.cs:
10528         - Add/remove to the mdi containers list of mdi children 
10529           in the order they are added.
10530         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
10531           to the maximized mdi child.
10532         
10533         * InternalWindowManager.cs:
10534         - Only execute a click on the control buttons on the mouse up,
10535           not on the mouse down. Show the state of the button 
10536           (was only showing Normal state, never Pressed state). The
10537           pressed button now follows the mouse (if you click the Close 
10538           button and move the mouse over the Maximize button, the 
10539           Maximize button will be shown as pressed). Since Win32 does
10540           not generate WM_NCLBUTTONUP if you release the button outside
10541           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
10542           it as a mouse up.
10543         
10544         * ThemeWin32Classic.cs:
10545         - Draw a missing border around mdi child forms. Fixes #79844 (2).
10546
10547         * MdiClient.cs:
10548         - Added a list of forms which contains the order the forms are
10549           added to the mdi parent.
10550         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
10551         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
10552         - If the active form changes set the scrollbars to the top
10553           of the Z order, otherwise the form could hide them.
10554         - Scrollbars are now sized according to ClientSize, not 
10555           to Size, and they take into account the other scrollbar
10556           to determine maximum.
10557         
10558 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
10559         
10560         * XplatUI.cs:
10561         * XplatUIDriver.cs:
10562         * XplatUIX11.cs:
10563         * XplatUIWin32.cs:
10564         * XplatUIOSX.cs:
10565         - Added RequestAdditionalWM_NCMessages for windows to 
10566           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
10567           Currently only implemented in XplatUIWin32.
10568
10569 2006-11-27  Chris Toshok  <toshok@ximian.com>
10570
10571         * Hwnd.cs: only add the hwnd to the windows hash in
10572         set_WholeWindow and set_ClientWindow if whole_window/client_window
10573         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
10574
10575 2006-11-27  Mike Kestner  <mkestner@novell.com>
10576
10577         * ComboBox.cs: remove redundant OnDropDown call.  It is called
10578         from the ComboListBox.ShowWindow code. Fixes #79969.
10579
10580 2006-11-27  Chris Toshok  <toshok@ximian.com>
10581
10582         * Hwnd.cs: remove the setters for ExposePending and
10583         NCExposePending - noone uses them.
10584
10585 2006-11-27  Jackson Harper  <jackson@ximian.com>
10586
10587         * TextControl.cs: new param for ReplaceSelection which determines
10588         whether we select the new selection, or set the cursor to the end
10589         of the new selection.
10590         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
10591         pasting, select the new text.
10592         * RichTextBox.cs: Use new param for ReplaceSelection.
10593
10594 2006-11-27  Jackson Harper  <jackson@ximian.com>
10595
10596         * TextBoxBase.cs: Set the selection to the caret after the caret
10597         is moved, otherwise they get out of sync.
10598
10599 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
10600
10601         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
10602         it fixes #80015
10603
10604 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
10605
10606         * ThemeWin32Classic.cs: 
10607         - Fix toolbar drop down arrow position.
10608         - Fix drop down appearance when ToolBar.Appearance is normal,
10609         it fixes #80018.
10610         
10611 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
10612
10613         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
10614         * Control.cs: Same.
10615         * UpDownBase.cs: Same.
10616         * ButtonBase.cs: Same.
10617         * ScrollBar.cs: Same.
10618         * TrackBar.cs: Same.
10619         * PictureBox.cs: Same.
10620         * UserControl.cs: Same.
10621         * Label.cs: Same.
10622         * ListControl.cs: Same.
10623         * TextBoxBase.cs: Same.
10624         * ListView.cs: Same.
10625         * RichTextBox.cs: Same.
10626         * TreeView.cs: Same.
10627
10628 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
10629
10630         * PrintDialog.cs:
10631         - Text label for where 
10632         - Text label comment was not shown
10633
10634 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
10635
10636         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
10637
10638 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
10639
10640         * InternalWindowManager.cs: 
10641         - Handle WM_PARENTNOTIFY to activate the form
10642         if any child control is clicked.
10643         - The form is only sizable if not minimized.
10644
10645         * MdiWindowManager.cs:
10646         - Save the IconicBounds if the form is moved.
10647         - Rework SetWindowState, now the window bounds 
10648         are stored only if the old window state is Normal.
10649         
10650         * MdiClient.cs:
10651         - In SetWindowStates store the old window state if 
10652         the window is maximized and restore window state if
10653         the window looses focus.
10654         - Don't handle any scrollbar value changes if 
10655         initializing the scroll bars. Fixes #79771.
10656         - Reworked ArrangeIconicWindows. Current algorithm
10657         tests bounds agains all other minimized windows, if
10658         any intersections create new bounds (going left to 
10659         right, bottom to top) and then test again. When 
10660         successful the bounds are saved and never computed
10661         again. Fixes #79774.
10662
10663 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
10664
10665         * InternalWindowManager.cs: Added HandleTitleBarUp.
10666
10667 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
10668
10669         * NumericUpDown.cs: In .NET 1.1, user entered text is still
10670         hexadecimal in ParseUserEdit.
10671
10672         
10673 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
10674
10675         * MdiWindowManager.cs: 
10676         - Handle a click on the form's icon to show the 
10677         system menu (when maximized). Fixes #79775.
10678         - Change the existing click handler for the form's
10679         icon when not maximized to show on MouseUp.
10680         Fixes #79776.
10681
10682         * Form.cs: In OnResize only layout the mdi child's
10683         parent if it actually has a parent. Might not if
10684         the window is closing.
10685
10686
10687 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
10688
10689         * MdiClient.cs: Ignore active MDI client for text of parent, if
10690         child has no text set.
10691
10692 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
10693
10694         * ToolBar.cs: Fixed ToString to match MS.
10695
10696 2006-11-22  Andreia Gaita  <avidigal@novell.com>
10697
10698         * NumericUpDown: 
10699         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
10700         update inner values on set. Fixes #79966.
10701         - Override OnLostFocus to update value on NET 2. Fixes #79950.
10702         - Fix hexadecimal parsing.
10703         
10704         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
10705         parent. Fixes #79957
10706
10707 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10708
10709         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
10710         the actual size has to be queried, since if height /
10711         width is negative Win32 changes it to 0. 
10712         Fixes #79999 on Windows.
10713         
10714         * XplatUIX11.cs: Set height / width to 0 if negative
10715         in SetWindowPos. Fixes #79999 on Linux.
10716         
10717 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
10718
10719         * ThemeWin32Classic.cs: Fix text redenring when button is
10720         pressed.
10721
10722 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
10723
10724         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
10725         and later navigate by mouse. Fixes #79528.
10726
10727 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
10728
10729         * ToolBar.cs: Set default value for TabStop to false in
10730         constructor, it fixes remaining behavior of bug #79863.
10731
10732 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10733
10734         * MdiWindowManager.cs:
10735         * InternalWindowManager.cs:
10736         - Moved a few methods specific to Mdi from 
10737         InternalWindowManager to MdiWindowManager.
10738         Fixes #79996.
10739         
10740 2006-11-21  Chris Toshok  <toshok@ximian.com>
10741
10742         * XplatUIOSX.cs: stub out InvalidateNC.
10743
10744         * XplatUIWin32.cs: implement InvalidateNC using the call I found
10745         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
10746
10747         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
10748
10749         * XplatUIDriver.cs: add InvalidateNC abstract method.
10750
10751         * XplatUI.cs: add InvalidateNC.
10752
10753 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
10754
10755         * ToolBar.cs: Invalidate complete button area when pressed status 
10756         was changed.
10757         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
10758         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
10759         by 1 when button is pressed.
10760
10761 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
10762
10763         * ToolButton.cs: Invalidate middle of DropDown button when
10764         ToolBar theres DropDownArrows.
10765         * ThemeWin32Classic.cs: Change position of DropDown arrow and
10766         fix DropDown drawing operations.
10767
10768 2006-11-20  Chris Toshok  <toshok@ximian.com>
10769
10770         * NativeWindow.cs: fix the formatting of functions ('{' on the
10771         following line), and enable the thread exception dialog.
10772
10773         * Application.cs: remove the duplicate exception catching from
10774         here.
10775
10776 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
10777
10778         * Toolbar.cs: Triggers button click event when click on icon
10779         of dropdown ToolBarButton. Fixes #79912.
10780         
10781 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10782
10783         * Theme.cs:
10784         * ThemeWin32Classic.cs:
10785         - Added a property WindowBorderFont to enable themeing
10786           of mdi child windows' Text.
10787           
10788 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10789
10790         * InternalWindowManager.cs:
10791         * Form.cs:
10792         * MdiClient.cs:
10793         * MdiWindowManager.cs: 
10794         - If mdi child is maximized, set mdi parent's
10795           text to "Parent - [Child]". Fixes #79770.
10796         - If there is any maximized mdi child windows, only the active 
10797           window (and any new windows) is maximized, the rest are normal.
10798         - On a WindowState change only save mdi child's window bounds 
10799           if the old window state was normal. Fixes #79774.
10800         - The scroll bars are now calculated on hopefully all
10801           necessary events. Fixed #79771 / #79844->6 / #79906.
10802         - MdiClient.SizeScrollBars() now takes into account docked 
10803           controls in the parent when calculating available space.
10804         - InternalWindowManager now always repaints the entire title
10805           area. Fixes #79844->1/4/5.
10806         - Added RequestNCRecalc on mdi child windowstate changes.
10807           Fixes #79772.
10808
10809 2006-11-20  Mike Kestner  <mkestner@novell.com>
10810
10811         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
10812         in the MouseUp handler of the listbox and move the return handling
10813         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
10814
10815 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
10816
10817         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
10818
10819 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
10820
10821         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
10822           working in 1.2.x anymore. So, updated.
10823
10824 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
10825
10826         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
10827         NumberGroupSeparator of current culture instead of assuming en-US.
10828         Fixed bug #79967.
10829
10830 2006-11-17  Mike Kestner  <mkestner@novell.com>
10831
10832         * Control.cs: Add the concept of implicit bounds setting so that
10833         dock/undock round trips preserve explicitly set size/locations.
10834         Fixes #79313.
10835
10836 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
10837
10838         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
10839           can't handle those filters. (Fixes bug #79961)
10840
10841 2006-11-17  Chris Toshok  <toshok@ximian.com>
10842
10843         [ fixes the exit/crashes associated with #79835.  it's clearly
10844         suboptimal though, we need to figure out a better way to solve
10845         this. ]
10846         
10847         * PrintPreviewControl.cs: deal with the new invalid printer
10848         exceptions.
10849
10850         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
10851         and return false (so CommonDialog.ShowDialog doesn't actually show
10852         the form.)
10853
10854         * PrintDialog.cs: enable/disable the Ok button depending on
10855         whether or not the printer is valid.
10856
10857         * CommonDialog.cs (ShowDialog): only actually show the form if
10858         RunDialog returns true.
10859
10860 2006-11-17  Jackson Harper  <jackson@ximian.com>
10861
10862         * TextControl.cs: When soft splitting a line, mark it as a soft
10863         split line. Also carry over the current line break to the next
10864         line.
10865
10866 2006-11-17  Chris Toshok  <toshok@ximian.com>
10867
10868         * XplatUIX11.cs: when scrolling a window with an invalid area, we
10869         only want to shift the part of the invalid area that overlaps the
10870         area we're scrolling.  we also don't want to clear the invalid
10871         area unless the invalid area was entirely contained within the
10872         scrolling area.
10873
10874 2006-11-16  Chris Toshok  <toshok@ximian.com>
10875
10876         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
10877         also make sure to free the memory returned by XGetWindowProperty
10878         in GetText().
10879
10880         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
10881
10882 2006-11-16  Chris Toshok  <toshok@ximian.com>
10883
10884         * XplatUI.cs: add a new super secret way to get at the totally
10885         unsupported X11 backend.
10886
10887 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
10888
10889         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
10890
10891 2006-11-16  Jackson Harper  <jackson@ximian.com>
10892
10893         * TreeView.cs: Allow more explicit setting of top node position
10894         for scrollbars. Slower algo, but more accurate.
10895         - CollapseAll should maintain the current top node.
10896         * TextBoxBase.cs: When positioning the caret, use the line, pos
10897         method, since the x, y method does not grab the correct tag, and
10898         the caret height never gets set correctly. (Maybe I should just do
10899         away with the caret having its own height, and always use the
10900         carets current tag for height).
10901
10902 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
10903
10904         [Fixes 79778, 79923]
10905
10906         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
10907         Parent to the FosterParent instead.
10908
10909 2006-11-16  Jackson Harper  <jackson@ximian.com>
10910
10911         * TreeView.cs: Need to recalc the topnode when we expand or
10912         collapse. The scrolling methods can't handle this on their own,
10913         since they use differences between the last scroll position, and
10914         those difference get completely messed up since we are expanding
10915         nodes.  This problem should probably be fixed in the scrolling
10916         methods, so they can figure out exactly where they are, but this
10917         will slow things down a little.
10918         * ThemeWin32Classic.cs: Special case for groupboxes with empty
10919         strings, makes nunit-gui look a lot nicer.
10920
10921 2006-11-16  Chris Toshok  <toshok@ximian.com>
10922
10923         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
10924         the broken multithreaded event handling we have in here.  File
10925         this entry under "Why we should move to the new X11 backend".
10926
10927         Any thread can make it into UpdateMessageQueue, which gets events
10928         from the X socket - some of which could belong to hwnds being
10929         managed by a different thread.  We can also have multiple threads
10930         in UpdateMessageQueue at the same time, with each one reading from
10931         the X socket.  This leads to many problems, with the following
10932         solutions:
10933
10934         We can't use hwnd.Queue.Enqueue anywhere in here and must use
10935         EnqueueLocked.
10936
10937         The MotionNotify compression we do can't work across threads
10938         (without locking the entire queue, perhaps) since we call
10939         hwnd.Queue.Peek, so we just punt and don't compress motion events
10940         unless the owning thread is the one which got the X event.
10941
10942         ConfigureNotify is another fun one, since it modifies the hwnd's
10943         bounds and then enqueues the event.  We add a lock to Hwnd which
10944         is held when setting configure_pending to true (and enqueuing the
10945         event).
10946
10947         There is a race wrt the wake socket.  we need to make sure that
10948         only 1 thread is waiting on that socket, or else a thread could
10949         sleep waiting for data that never comes.  It's difficult (but not
10950         impossible) to make happen, because it seems to require something
10951         like the following:
10952
10953             1. Thread 1 polls on wake_receive
10954         
10955             2. poll returns saying there's data to be read on
10956                wake_receive.
10957         
10958             3. Thread 2 polls on wake_receive and immediately returns
10959                saying there's data to be read.
10960
10961             4. Thread 2 reads the wakeup byte from wake_receive
10962
10963             5. Thread 1 attempts to read the wakeup byte from
10964                wake_receive.
10965
10966             6. Thread 2 exits (due to a form closing, perhaps).
10967
10968             7. Thread 1 blocks forever.
10969         
10970         Fun, eh?
10971
10972         Fixing the Expose handling isn't done yet, and the races inherent
10973         in that piece of code are responsible for the drawing mistakes you
10974         see when generating expose events in a MT app (like NPlot).  This
10975         one is the likely to be the hardest to bandaid, and it doesn't
10976         appear to cause anything but drawing problems.  The other issues
10977         caused apps to exit or hang.
10978
10979         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
10980         called from a different thread than the one that should be calling
10981         these functions.
10982
10983         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
10984
10985 2006-11-15  Chris Toshok  <toshok@ximian.com>
10986
10987         * Application.cs: null out the context's MainForm when we exit
10988         RunLoop.  Fixes a newly checked in unit test as well as the last
10989         ODE from bug #79933.
10990
10991 2006-11-15  Chris Toshok  <toshok@ximian.com>
10992
10993         * Form.cs (set_Owner): allow a null value so we can clear the
10994         form's owner.
10995         (Dispose): set all our owned_form's Owner properties to null, and
10996         clear the owned_forms collection.
10997         (WM_CLOSE): clean up this a little bit.. still not right though.
10998
10999         * ApplicationContext.cs: OnMainFormClosed should only call
11000         ExitThreadCore if the main form isn't recreating.  Fixes unit
11001         test.
11002
11003 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
11004
11005         [Fixes 78346]
11006
11007         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
11008
11009 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
11010
11011         [Fixes 79433]
11012
11013         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
11014         keep popup window types from stealing focus from the main form
11015         on Windows.
11016
11017         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
11018
11019         * MenuAPI.cs: Set above flag to true.
11020
11021 2006-11-15  Chris Toshok  <toshok@ximian.com>
11022
11023         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
11024         the button being released is not in wParam.
11025
11026 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
11027
11028         * Form.cs: Add the released button to MouseEventArgs.Button
11029         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
11030         on Win32.
11031
11032 2006-11-15  Chris Toshok  <toshok@ximian.com>
11033
11034         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
11035         GetText().  untested because it's unused in our implementation.
11036         Control.Text always caches the text, even if
11037         ControlStyles.CacheText is not set.
11038
11039         fixes bug #79939.
11040
11041 2006-11-15  Chris Toshok  <toshok@ximian.com>
11042
11043         [ fixes #79933 ]
11044         
11045         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
11046         message.  no hiding, no disposing.
11047
11048         in the WM_CLOSE handler, hide the form if it's modal.
11049
11050 2006-11-15  Chris Toshok  <toshok@ximian.com>
11051
11052         * XplatUIX11.cs: use AddExpose instead of sending a message.
11053         fixes textbox border drawing.
11054
11055 2006-11-15  Chris Toshok  <toshok@ximian.com>
11056
11057         * PropertyGridView.cs: keep from crashing on mouse move/down when
11058         the property grid is empty.
11059
11060 2006-11-14  Jackson Harper  <jackson@ximian.com>
11061
11062         * TextControl.cs: Make PageUp and PageDown more like the MS
11063         versions.
11064         * TextBoxBase.cs: When we set the text property position the
11065         cursor at the beginning of the document.
11066
11067 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11068
11069         * Form.cs: if a mdi child's WindowState has changed
11070         before it's creation, it would display wrong control
11071         buttons.
11072         
11073 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
11074
11075         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
11076           (Fixes bug #79927)
11077
11078 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11079
11080         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
11081         the window gets to paint its borders even if the window is
11082         getting smaller.
11083         
11084         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
11085         otherwise the old control buttons would still be painted 
11086         if the window gets bigger.
11087         
11088         * PaintEventArgs.cs: add an internal method so that the clip 
11089         rectangle can be changed.
11090         
11091 2006-11-13  Chris Toshok  <toshok@ximian.com>
11092
11093         [ fixes bug #79745 ]
11094         
11095         * NotifyIcon.cs: lots of cleanup.
11096
11097         * X11Structs.cs: add an enum for XEMBED messages.
11098
11099         * XplatUIX11.cs: reindent one of the giant switch statements, it
11100         was taking up an additional tab stop, and this file is already way
11101         too wide for my laptop's screen.
11102
11103         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
11104         we get it, resize the hwnd to the WMNormalHints max_width/height.
11105
11106 2006-11-13  Jackson Harper  <jackson@ximian.com>
11107
11108         * TextBoxBase.cs: Compute the value changes for the mouse wheel
11109         teh simple way.
11110
11111 2006-11-13  Chris Toshok  <toshok@ximian.com>
11112
11113         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
11114         #79898.  force a reference to the Region to stick around so the
11115         unmanaged object isn't collected (rendering our handle in the MSG
11116         stale).
11117
11118 2006-11-13  Chris Toshok  <toshok@ximian.com>
11119
11120         * XplatUIX11.cs: fix #79917 for window managers which support
11121
11122         using XStoreName on the raw utf8, and we need to convert to
11123         COMPOUND_TEXT if it's non-latin1.
11124
11125 2006-11-13  Chris Toshok  <toshok@ximian.com>
11126
11127         * Form.cs (set_DialogResult): we need to set closing to false if
11128         we're setting our result to None.  fixes bug #79908.
11129
11130 2006-11-13  Jackson Harper  <jackson@ximian.com>
11131
11132         * TextControl.cs: When formatting text, compute the adjusted tag
11133         lengths correctly, using FindTag for the end tag instead of trying
11134         to figure it out outselves.
11135         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
11136         the item, ItemHeight doesn't work, because trees with large
11137         imagelists use those for their height
11138         * TreeView.cs: ActualItemHeight factors in the image height
11139         - compute left edge of checkboxes correctly
11140         - when expanding/collapsing move the bottom down one pixel, so we
11141         aren't moving part of the node
11142
11143 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11144
11145         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
11146         stack in PaintEventStart so that it won't get disposed by the gc
11147         before reaching PaintEventEnd.
11148
11149 2006-11-13  Jackson Harper  <jackson@ximian.com>
11150
11151         * TextBoxBase.cs: Don't select the word if we are on a line with
11152         no text.
11153         - We don't need to position the caret on mouse up, since the mouse
11154         move handler should be doing this
11155         - When double clicking a blank line, the caret is advanced to the
11156         next line.
11157
11158 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
11159
11160         * TreeNodeCollection.cs: Avoid duplicating indexer code.
11161
11162 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
11163
11164         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
11165         Fixes part of bug #79910.
11166
11167 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
11168
11169         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
11170           (bug #79903). Some minor string updates to match ms.
11171
11172 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
11173
11174         * FileDialog.cs: Don't add an extension if the filename
11175           already ends with that extension.
11176
11177 2006-11-10  Jackson Harper  <jackson@ximian.com>
11178
11179         * TreeView.cs: Use the currently highlighted node for the
11180         BeforeSelect event.
11181         * TextBoxBase.cs: There is no need to expand selection on
11182         MouseMove.
11183         - CanUndo means 'is there any undo operations', not 'is undo
11184         allowed on this textcontrol. Fixed ClearUndo unit test.
11185
11186 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
11187
11188         * Button.cs: only perform click when button is Selectable (so as 
11189         not to activate default buttons when they're disabled)
11190         
11191         * Control.cs: Rewrite of the SelectNextControl and related 
11192         methods. HandleClick now selects next control if the current one
11193         is being disabled.
11194         
11195         * Form.cs: OnActivated selects next active control only if Load 
11196         has already occurred. If Load hasn't run, there's no point in 
11197         selecting here, Load might change the state of controls.
11198         
11199         * FocusTest.cs: Tests marked as working again for these fixes
11200
11201 2006-11-10  Chris Toshok  <toshok@ximian.com>
11202
11203         * XplatUIX11.cs: a couple of fixes.
11204
11205         - use XInternAtoms with almost all the atoms we need to register,
11206         instead of many, many calls to XInternAtom.  should help a bit on
11207         startup time, at the expense of making the code look a little
11208         worse.
11209
11210         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
11211         isn't reparented (which seems to be a clue that we're running fon
11212         compiz) and they have an Owner form.  This fixes the tool windows
11213         in paint.net when running under compiz.
11214
11215         - when setting the opacity of a window, support both the case
11216         where the window has been reparented and also when it hasn't been.
11217         Since compiz/beryl doesn't seem to reparent windows, and these are
11218         the only window managers which support translucency, I'm not sure
11219         why we need the hwnd.reparented case at all.. but leave it in.
11220         now we get translucent windows in paint.net under compiz/beryl.
11221
11222 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
11223
11224         * FileDialog.cs: Always return the value for FilterIndex that
11225           was set. Internally convert it to values that make sense.
11226
11227 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
11228         
11229         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
11230
11231 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
11232
11233         * Toolbar.cs: Change default value of DropDownArrows to true, the 
11234         signature still using false to make it compatible with MS but the 
11235         initial value is true. Fixes #79855.
11236
11237 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
11238
11239         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
11240           only available on Linux.
11241
11242 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
11243
11244         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
11245         reduce number of calls to redraw method during toolbar creation.
11246
11247 2006-11-09  Mike Kestner  <mkestner@novell.com>
11248
11249         * ListView.cs : raise SelectedIndexChanged when an item is selected
11250         programmatically via the Item.Selected property.  Gert's nice 
11251         ListViewSelectedIndexChanged test fixture now runs clean.
11252
11253 2006-11-09  Mike Kestner  <mkestner@novell.com>
11254
11255         * ListView.cs : raise SelectedIndexChanged when a selected item is
11256         removed from the item collection using Remove or RemoveAt.
11257
11258 2006-11-09  Mike Kestner  <mkestner@novell.com>
11259
11260         * ListView.cs : raise SelectedIndexChanged once per selected item
11261         for compat with MS.  Fixes #79849+.
11262
11263 2006-11-09  Chris Toshok  <toshok@ximian.com>
11264
11265         * TabControl.cs: initialize row_count to 0, and set it to 1 when
11266         we need to (if we have any tab pages).  Fixes unit test.
11267
11268 2006-11-09  Chris Toshok  <toshok@ximian.com>
11269
11270         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
11271         width is 0, not 3.  Fixes a unit test.
11272
11273 2006-11-09  Mike Kestner  <mkestner@novell.com>
11274
11275         * ListView.cs : use Implicit scrollbars so that focus isn't 
11276         stolen from the listview when they are clicked. Fixes #79850.
11277
11278 2006-11-09  Chris Toshok  <toshok@ximian.com>
11279
11280         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
11281         have a root item.  Fixes #79879.
11282
11283 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
11284
11285         * FileDialog.cs:
11286           - Fix ToString ()
11287           - An ArgumentException is now thrown if a wrong filter
11288             is applied (matches ms). The previous filter doesn't change
11289             anymore if an exception is thrown.
11290           - Changing the FileName property also affects FileNames
11291         * ColorDialog.cs: The length of the CustomColors array is always
11292           16. It doesn't matter if we use a smaller array or null to update
11293           or change the custom colors property.
11294         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
11295           for RootFolder if we get a undefined value.
11296
11297 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11298
11299         * StatusBarPanel.cs: 
11300         - Width is set to MinWidth if Width is smaller than
11301         MinWidth. Fixes #79842.
11302         - MinWidth now always overrides Width (MSDN says MinWidth
11303         is set to Width when AutoSize = None, but they do not 
11304         behave like that).
11305         - Style has now the the correct default value.
11306         
11307 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11308  
11309         * TrackBar.cs: 
11310         - The control is completely invalidated on 
11311         Got/LostFocus to draw the focus rectangle correctly.
11312         - When AutoSize then height is always 45 (width for 
11313         vertical controls).
11314         
11315         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
11316         on the mouse when moved and it doesn't move when grabbed
11317         until the mouse moves as well. Also fixed some wrong 
11318         calculations when clicking on the thumb (control thought
11319         click was outside of thumb and didn't grab it).
11320         Fixes some of the issues in #79718.
11321
11322 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
11323
11324         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
11325
11326 2006-11-08  Chris Toshok  <toshok@ximian.com>
11327
11328         * PropertyGridView.cs: only call ToggleValue if the item is not
11329         readonly.
11330
11331 2006-11-08  Jackson Harper  <jackson@ximian.com>
11332
11333         * TextBoxBase.cs: The RichTextBox and textbox have very different
11334         word selection methods.  Implement the textbox's simple word
11335         selection here, and let the RichTextBox override and provide it's
11336         own.
11337         - Don't do extra selection on mouseup
11338         * RichTextBox.cs: Use the documents word selection algorithm, I
11339         think ideally, this function will be pulled into the
11340         RichTextBox.cs code someday.
11341
11342 2006-11-08  Chris Toshok  <toshok@ximian.com>
11343
11344         * RootGridEntry.cs: new class to represent GridItemType.Root.
11345
11346         * CategoryGridEntry.cs: reformat, and add boilerplate.
11347         
11348         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
11349         returns the UI parent anyway, and we need special handling to
11350         implement the GetTarget method in the face of it.  Also, implement
11351         Select().
11352
11353         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
11354         a root grid item, and use that instead of PropertyGrid.grid_items.
11355         Also, make use of TypeConverters (and add limitted support for
11356         ICustomTypeDescriptors) when initially populating the grid.
11357         Arrays now show up more or less properly.
11358
11359 2006-11-08  Chris Toshok  <toshok@ximian.com>
11360
11361         * Application.cs: set the modal dialog to non modal after we close
11362         it.  Fixes bug #79866.
11363
11364 2006-11-08  Jackson Harper  <jackson@ximian.com>
11365
11366         * TextControl.cs: When combining lines carry over the line end
11367         style from the end line.
11368         - Invalidate the selected area when setting it, if it is visible.
11369         * TextBoxBase.cs: Only rich text box can do full line selects.
11370         - Make sure to set the cursor position when there is a click,
11371         otherwise two clicks in separate areas could cause a large chunk
11372         to be selected.
11373
11374 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11375
11376         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
11377         Fixes #79863.
11378
11379 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11380
11381         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
11382         time. Remove tooltips when ToolButton click events.  Fixes #79856.
11383
11384 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11385
11386         * MenuAPI.cs: Ignore right click for menu actions and fixes
11387         menu border when clicked.  Fixes #79846.
11388
11389 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11390
11391         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
11392         MouseState after create wParam for message, this fixes mouse button 
11393         equal none in mouse up events.
11394         
11395 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
11396
11397         * Control.cs : Focus() now calls Select to set the Container's
11398         Active Control and to give it focus. To avoid infinite recursion
11399         (because ActiveControl also calls Focus at one point), a check 
11400         is made in Focus with the help of a new internal variable
11401         is_focusing.
11402
11403 2006-11-07  Mike Kestner  <mkestner@novell.com>
11404
11405         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
11406         if there's a selection.  Fixes #79849.
11407
11408 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
11409
11410         * PropertyGrid.cs: Avoid fixed height of help description label.
11411         Fixes part of bug #79829.
11412
11413 2006-11-07  Chris Toshok  <toshok@ximian.com>
11414
11415         * XplatUIX11.cs: fix #79790 again, by using the
11416         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
11417
11418 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11419
11420         * ToolBar.cs: Fix left click checking.
11421
11422 2006-11-07  Chris Toshok  <toshok@ximian.com>
11423
11424         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
11425
11426 2006-11-07  Chris Toshok  <toshok@ximian.com>
11427
11428         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
11429         PropertyManager unit tests.
11430
11431         * PropertyManager.cs: make property_name internal.
11432
11433 2006-11-07  Chris Toshok  <toshok@ximian.com>
11434
11435         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
11436         pass a unit test.  Also, don't set image_index to anything in
11437         response to setting the ImageList property.
11438
11439 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11440
11441         * ToolBar.cs: Ignore click events when mouse button is not a
11442         left button, only accepts other button for dropdown menus.  
11443         Fixes #79854.
11444
11445 2006-11-07  Chris Toshok  <toshok@ximian.com>
11446
11447         * DataGrid.cs: make the back and parent row buttons a little less
11448         ugly.
11449
11450 2006-11-07  Jackson Harper  <jackson@ximian.com>
11451
11452         * TextBoxBase.cs: When converting to Text don't put line breaks in
11453         for soft line breaks.
11454         * TextControl.cs: There is an initial "fake" line in the document,
11455         this is now a soft break line, so that an extra line feed doesn't
11456         get added to the end of documents.
11457
11458 2006-11-07  Chris Toshok  <toshok@ximian.com>
11459
11460         [ fix bug #79778 ]
11461         
11462         * CurrencyManager.cs: if the list is readonly, don't bother
11463         checking if IBindingList.AllowNew is true.
11464
11465         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
11466         for non-DataRowView datasources..  or rather, make it not crash.
11467         (DataGridPaintRelationRow): make sure we limit the row painting to
11468         the area not covered by the row header, and make our cell width at
11469         least large enough to cover the relation area.  This allows grids
11470         that have relations but no rows to render correctly.
11471         (DataGridPaintRowContents): same type of changes here.
11472         (SetDataSource): move back to always calling
11473         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
11474         navigating back through relations.
11475         (HitTest): handle the case where we have no cells but have
11476         relations.  Right now we generate a hit in cell 0 of whatever the
11477         row is, not sure if this is strictly correct, but it works for our
11478         purposes.
11479         
11480         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
11481         bother doing anything.
11482
11483 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
11484
11485         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
11486         early version of StatusStrip.  Not responsible for eaten
11487         application or firstborn children.
11488
11489 2006-11-06  Chris Toshok  <toshok@ximian.com>
11490
11491         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
11492         call GetTabRect with a -1 index.  Fixes #79847.
11493
11494 2006-11-06  Jackson Harper  <jackson@ximian.com>
11495
11496         * TreeNodeCollection.cs: Update scrollbars after clearing.
11497
11498 2006-11-06  Chris Toshok  <toshok@ximian.com>
11499
11500         * NumericUpDown.cs: fix the ToString method for some unit test
11501         love.
11502
11503 2006-11-06  Chris Toshok  <toshok@ximian.com>
11504
11505         * PropertyGrid.cs:
11506         - set the initial SelectedGridItem if we can.
11507
11508         - Exclude non-mergable properties only if we're merging > 1
11509         object.  Merging 1 object isn't really merging, obviously.
11510
11511         - Handle PropertySort.NoSort just like Alphabetical, which is
11512         wrong of course, but at least gets things on the screen.
11513         
11514         * PropertyGridView.cs:
11515         - Add method "FindFirstItem" which finds the first property grid
11516         item, so we can select it by default.
11517
11518         - make use of GridEntry.CanResetValue.
11519
11520         - Don't call RedrawBelowItemOnExpansion here anymore, the
11521         individual GridEntry's will do that.
11522
11523         - Remove the ITypeDescriptorContextImpl internal class.
11524         
11525         * GridEntry.cs:
11526         - this class needs to implement ITypeDescriptorContext, as it's
11527         what MS's PropertyDescriptorGridEntry does, which means we can
11528         remove the ITypeDescriptorContextImpl internal class from
11529         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
11530
11531         - keep a reference to our PropertyGridView, and move the call to
11532         RedrawBelowItemOnExpansion here from PGV.  This means
11533         programmaticly setting Expanded actually does something visible.
11534
11535         - add a CanResetValue() function which takes into account our
11536         possibly multiple "selected_objects" in the merged case.  Shifting
11537         PropertyGridView to use this method fixes another unreported
11538         crasher found running the test for #79829.
11539
11540         - when Top or Bounds is updated, make sure the PropertyGridTextBox
11541         is updated to reflect this.
11542
11543         * CategoryGridEntry.cs: the ctor takes the PGV now.
11544         
11545 2006-11-06  Jackson Harper  <jackson@ximian.com>
11546
11547         * TextControl.cs: These are 1 based.
11548         * TextBoxBase.cs: When setting the selected text, don't change the
11549         selected text tags, this is done by ReplaceText, just position the
11550         cursor at the end of the new text.
11551
11552 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
11553
11554         * ListView.cs: Allow label edit only when, when LabelEdit is
11555           set to true.
11556
11557 2006-11-06  Jackson Harper  <jackson@ximian.com>
11558
11559         * TextControl.cs: If a suitable wrapping position isn't found,
11560         just wrap right in the middle of a word.
11561
11562 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
11563
11564         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
11565           bug #79820.
11566
11567 2006-11-06  Jackson Harper  <jackson@ximian.com>
11568
11569         * TreeView.cs: Can't use the VisibleCount property when setting
11570         scrollbar heights, because this doesn't take into account whether
11571         or not the horz scrollbar just came visible.
11572
11573 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
11574
11575         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
11576         activated.  Fixes #79369, #79832.
11577
11578 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
11579
11580         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
11581           had to remove support for links that point to a directory. FileInfo
11582           returns no usefull information (means, the directory they point to)
11583           for such links. Replaced some empty string ("") with String.Empty.
11584
11585 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
11586
11587         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
11588         NullReferenceException when attempting to remove node that is not in
11589         collection. Throw NullReferenceException when null is passed to 
11590         Remove. Allow first element of the collection to be removed. Fixes
11591         bug #79831.  In GetEnumerator ().Current return null if positioned 
11592         before the first element of the collection. In GetEnumerator ().Reset,
11593         position before first element of the collection.
11594
11595 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
11596
11597         * PropertyGrid.cs: To match MS, remove default title and description
11598         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
11599         buttons.
11600
11601 2006-11-04  Chris Toshok  <toshok@ximian.com>
11602
11603         * Theme.cs: add a Clamp method, just for kicks.
11604
11605         * ThemeWin32Classic.cs: clamp all color components to [0..255].
11606
11607 2006-11-04  Chris Toshok  <toshok@ximian.com>
11608
11609         * Form.cs: if the form isn't visible, Close() does nothing.
11610
11611 2006-11-03  Chris Toshok  <toshok@ximian.com>
11612
11613         * Form.cs (Close): if the form is modal, don't Dispose of it, only
11614         Hide it.
11615         (WndProc): don't Dispose after handling the WM_CLOSE message.
11616
11617         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
11618         them as such, instead of using casts from Control to Form.  Also,
11619         don't Dispose of the modal dialog when we fall out of the loop -
11620         Close() it instead.
11621
11622         fixes bug #79813.
11623
11624 2006-11-03  Chris Toshok  <toshok@ximian.com>
11625
11626         * Control.cs (Dispose): only go through the dispose thing if we're
11627         @disposing, and we haven't already been disposed.  Fixes bug
11628         #79814.
11629
11630         * Form.cs: no reason to call "base.Dispose()" here instead of
11631         "Dispose()".
11632
11633 2006-11-03  Mike Kestner  <mkestner@novell.com>
11634
11635         * ComboBox.cs : use ToString instead of casts in AddItem for
11636         sorting functionality.  Fixes #79812.
11637
11638 2006-11-03  Chris Toshok  <toshok@ximian.com>
11639
11640         * Application.cs: pave the way for actually using the thread
11641         exception dialog.  it's ifdefed out at the moment.
11642
11643 2006-11-03  Chris Toshok  <toshok@ximian.com>
11644
11645         * ThreadExceptionDialog.cs: until we get a better layout, actually
11646         hide the details textbox and label when we shouldn't see them.
11647
11648 2006-11-03  Jackson Harper  <jackson@ximian.com>
11649
11650         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
11651         multiline textboxes anymore.  This method also determines the
11652         width/height of a textboxes canvas area.
11653         - Sorta a revert of the last patch.  For multiline just position
11654         the controls, then bail.  This way the scrollbar width won't be
11655         altered.
11656
11657 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
11658
11659         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
11660         it dont need.  Fixes #79537.
11661
11662 2006-11-02  Jackson Harper  <jackson@ximian.com>
11663
11664         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
11665         send the status after firing the DndOver event.
11666
11667 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11668
11669         * TrackBar.cs: Now orientation only switches height / width if
11670         the control's handle is created (Win32 does it like this). Also 
11671         fixed a typo in ToString() for a test to pass, changed the 
11672         exception thrown in set_LargeChange and set_SmallChange to 
11673         match Win32 behaviour, and added TrackBar tests to the unit 
11674         tests.
11675
11676 2006-11-02  Chris Toshok  <toshok@ximian.com>
11677
11678         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
11679         not _NET_WM_STATE_NO_TASKBAR.
11680
11681 2006-11-02  Jackson Harper  <jackson@ximian.com>
11682
11683         * TextControl.cs: Increment count by one, since in the update view
11684         count - 1 is used.
11685
11686 2006-11-02  Jackson Harper  <jackson@ximian.com>
11687
11688         * TextBoxBase.cs: Use client rectangle not bounds for checking if
11689         the mouse is in the client rectangle (duh).
11690
11691 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11692         
11693         * TrackBar.cs: Fixed trackbar jumping around when clicking
11694         on it - the trackbar was not detecting correctly at which
11695         side of the thumb the click was done. (fixes #79718)
11696
11697 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
11698
11699         * ListBox.cs: scroll visible area when change SelectedIndex to
11700         a non visible area.  Fixes #79481.
11701
11702 2006-11-01  Jackson Harper  <jackson@ximian.com>
11703
11704         * TextControl.cs: When replacing the selection move the selection
11705         start/end/anchor to the end of the new text.
11706
11707 2006-11-01  Jackson Harper  <jackson@ximian.com>
11708
11709         * XplatUIWin32.cs: When setting the parent change the controls
11710         visibility to it's visibility flag, not to it's old parents
11711         visibility (.Visible walks the parent chain).
11712
11713 2006-11-01  Chris Toshok  <toshok@ximian.com>
11714
11715         * XplatUIX11.cs: revert the #79790 fix, as the simple.
11716         XSetTransientForHint fix breaks paint .net's tool windows.  more
11717         work needed for that one.
11718
11719 2006-11-01  Chris Toshok  <toshok@ximian.com>
11720
11721         * ScrollBar.cs: throw ArgumentException instead of Exception in
11722         LargeChange/SmallChange setters.  fixes unit tests.
11723
11724 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
11725
11726         * ContainerControl.cs: reverted rev.67183 (which was itself
11727         a reversion of rev.66853... eh).
11728         
11729         * Control.cs: Fixes Reflector hang by changing Focus() call
11730         to what it was before rev.66643 (calling Select() here sets 
11731         ActiveControl, which in some situations calls back Focus and 
11732         eventually does a stack overflow). Temp fix.    
11733         Changes to GetNextControl() to not look for children to select when
11734         parent cannot be selectable (so it looks for siblings instead)  
11735         
11736 2006-10-31  Mike Kestner  <mkestner@novell.com>
11737
11738         * CheckedListBox.cs : off by one error in returned index from
11739         ObjectCollection.Add.  Fixes #79758.
11740
11741 2006-10-31  Chris Toshok  <toshok@ximian.com>
11742
11743         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
11744         calls for the textbox/spinner, to keep from recursing to the point
11745         where we crash.  Fixes #79760.
11746
11747 2006-10-31  Chris Toshok  <toshok@ximian.com>
11748
11749         * ListControl.cs (set_SelectedValue): don't throw exceptions on
11750         null/"" value, just return.  matches ms's behavior and fixes some
11751         failing tests.
11752
11753 2006-10-31  Chris Toshok  <toshok@ximian.com>
11754
11755         * Control.cs (set_Capture): make a logic a little easier to
11756         follow.
11757
11758         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
11759         if it's being destroyed.  A necessary fix surely, but a bandaid
11760         also, to fix the stuck capture problem in bug #78413.
11761
11762 2006-10-31  Chris Toshok  <toshok@ximian.com>
11763
11764         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
11765         convention of clearing hwnd.ClientRect when we set the
11766         width/height (so it'll be recalculated by Hwnd).
11767
11768 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
11769
11770         * ContainerControl.cs: reversed Contains check from
11771         ActiveControl due to hanging problems. This fix
11772         partly regresses #79667 (button does not have
11773         initial focus), so this might be a symptom for 
11774         a larger parenting problem (set_ActiveControl
11775         is being called but the child control does
11776         not have the parent set yet?)   
11777         
11778 2006-10-31  Mike Kestner  <mkestner@novell.com>
11779
11780         * MenuAPI.cs : fix keynav when menu is click activated.
11781
11782 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
11783
11784         * ToolStrip*: Version 0.2.
11785
11786         * MenuStrip.cs: Version 0.1.
11787
11788         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
11789
11790 2006-10-30  Chris Toshok  <toshok@ximian.com>
11791
11792         [ fixes the oversized notify icon issue in bug #79745 ]
11793         
11794         * NotifyIcon.cs: scale the icon down to the size we're given by
11795         the XplatUI layer (this would be faster if we did it once instead
11796         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
11797         since it's never invoked.
11798
11799         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
11800         pixels high by default, so let's hardcode our systray icon to that
11801         size.  The SYSTEM_TRAY protocol should really have a way for
11802         client apps to query for the correct icon size.. but oh well.  A
11803         couple of patches to deal with the screwy client_window ==
11804         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
11805         instance, and also make sure we don't XSelectInput twice).
11806
11807 2006-10-30  Chris Toshok  <toshok@ximian.com>
11808
11809         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
11810         recreating forms.  Control recreation is the bane of my existence.
11811         Fix it in a way that keeps everyone happy.
11812
11813 2006-10-30  Chris Toshok  <toshok@ximian.com>
11814
11815         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
11816         just non-CHILD ones.  otherwise sometimes scrollbars end up with
11817         client_windows not being resized to the proper size (ReportBuilder
11818         shows this extremely well).
11819
11820 2006-10-30  Chris Toshok  <toshok@ximian.com>
11821
11822         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
11823         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
11824         showing up in the gnome taskbar.  Fixes bug #79790.
11825
11826 2006-10-30  Chris Toshok  <toshok@ximian.com>
11827
11828         * ApplicationContext.cs: guard against a NRE.
11829
11830         * Application.cs: null out the old MainForm for the context, so we
11831         don't try to use it again once it's disposed.  Fixes bug #79783.
11832
11833 2006-10-30  Chris Toshok  <toshok@ximian.com>
11834
11835         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
11836         BindingContext, set the data source directly, otherwise do the
11837         lazy approach - the actual ListManager will be created when we get
11838         a BindingContext. Fixes bug #79700.
11839
11840 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
11841
11842         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11843           XplatUIX11.cs: Remove old 2 parameter SetVisible.
11844
11845         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
11846
11847 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
11848
11849         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
11850         of SetVisible that allows a window to be shown, but not activated.
11851         This is needed on Windows for MenuStrip, and can probably be used
11852         with MainMenu and ComboBox to fix the focus stealing issues on
11853         Windows.
11854
11855         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
11856
11857 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
11858
11859         * PictureBox.cs: Fix the output of the ToString method.
11860
11861 2006-10-29  Chris Toshok  <toshok@ximian.com>
11862
11863         * Control.cs (get_TopLevelControl): fix bug #79781.
11864
11865 2006-10-29  Chris Toshok  <toshok@ximian.com>
11866
11867         * ListControl.cs (set_DataSource): throw Exception here, not
11868         ArgumentException, to match MS behavior.
11869
11870 2006-10-29  Chris Toshok  <toshok@ximian.com>
11871
11872         * Form.cs: remove the try-catch's around calls to GetWindowState.
11873         We can just check the return value.
11874
11875         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
11876         Instead return -1.
11877
11878         * XplatUI.cs: Add note about additional return value for
11879         GetWindowState.
11880
11881 2006-10-29  Chris Toshok  <toshok@ximian.com>
11882
11883         * Control.cs (CreateHandle): when we create our handle, we also
11884         create the handles of our child controls.  Fixes one of the
11885         Control unit tests (CH11).
11886
11887 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
11888
11889         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
11890
11891 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
11892
11893         * ThemeClearlooks.cs: A little speedup.
11894
11895 2006-10-27  Chris Toshok  <toshok@ximian.com>
11896
11897         * Control.cs: implement Control.FromChildHandle in a way that
11898         matches the docs (and fixes the failed test.)
11899
11900 2006-10-27  Chris Toshok  <toshok@ximian.com>
11901
11902         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
11903         comments).
11904
11905         * DataGrid.cs: implement ResetForeColor such that the tests
11906         succeed.
11907         
11908 2006-10-27  Chris Toshok  <toshok@ximian.com>
11909
11910         * ToolBarButton.cs: setting text/tooltiptext to null results in it
11911         being set to "".  Fixes bug #79759.
11912
11913 2006-10-27  Jackson Harper  <jackson@ximian.com>
11914
11915         * TextControl.cs: We need to clear the entire selection area when
11916         setting the start, otherwise multiline selections are still
11917         visible.
11918
11919 2006-10-26  Chris Toshok  <toshok@ximian.com>
11920
11921         * PropertyGridView.cs: 
11922
11923         - ifdef all the code specific to the double
11924         buffer case, and provide some alternatives in the non-doublebuffer
11925         code, which makes heavy use of XplatUI.ScrollWindow to move things
11926         around without having to invalidate (and cause flicker).  There
11927         are still some drawing problems in the non-doublebuffered case, so
11928         DOUBLEBUFFER is defined by default.
11929
11930         - Fix the way dropdowns are handled.  now we explicitly watch for
11931         the events which might cause the dropdown to close, and break out
11932         of the nested event loop there.  This gets rid of all Capture
11933         code, at the expense of the Msg special casing.  Seems to work,
11934         though, and fixes bug #79743.
11935
11936 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
11937         * Control.cs: SetIsRecreating now recreates implicitly added
11938         child controls as well. Finally fixes #79629. The flag passed to 
11939         SetIsRecreating has also been removed since it wasn't used.
11940         
11941 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11942
11943         * PageSetupDialog.cs: Clean some code, fix some bits, 
11944         add some checks, and add a printer sub-dialog.
11945
11946 2006-10-26  Chris Toshok  <toshok@ximian.com>
11947
11948         * PropertyGrid.cs: make set_SelectedObject call
11949         set_SelectedObjects, and move the duplicate logic to the
11950         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
11951
11952         * PropertyGridView.cs: hide the textbox when we get a
11953         SelectedObjectsChanged event.
11954
11955         Fixes bug #79748.
11956
11957 2006-10-26  Chris Toshok  <toshok@ximian.com>
11958
11959         * PropertyGridView.cs: deal with the type converter not supporting
11960         GetStandardValues() or GetStandardValues() returning null, which
11961         is does in the default case.  Fixes #79742.
11962
11963 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
11964
11965         * CheckedListBox.cs: nunit no longer crashes when selecting 
11966         Project/Edit menu option
11967         
11968 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
11969
11970         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
11971         is no menu selected. fixes #79739
11972
11973 2006-10-25  Chris Toshok  <toshok@ximian.com>
11974
11975         * PropertyGridView.cs: factor out the splitter invalidation code
11976         into the SplitterPercent setter, and for kicks implement the
11977         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
11978         amount in either direction.
11979
11980 2006-10-25  Chris Toshok  <toshok@ximian.com>
11981
11982         * PropertyGridView.cs: do some cleanup of the brush used to draw
11983         text - read only fields should be grayed out.  not sure how to do
11984         this with the textbox, though.  but the textbox's should also be
11985         readonly now at least.  Also, hide/show the textbox when resizing
11986         the control.
11987         
11988         * CursorConverter.cs: use System.Reflection when getting the
11989         properties of Cursors, as TypeDescriptor.GetProperties isn't
11990         returning static properties.
11991
11992 2006-10-25  Chris Toshok  <toshok@ximian.com>
11993
11994         * PropertyGridView.cs: factor out the up/down handling, and reuse
11995         it for page up/down.  also add End/Home support.
11996
11997 2006-10-25  Chris Toshok  <toshok@ximian.com>
11998
11999         * PropertyGridView.cs:
12000
12001         - ensure the selected grid item is visible in the scrolled area,
12002         fixes bug #79572.
12003
12004         - fix Keys.Down handling when you're on the last item in the
12005         propertygrid.
12006
12007 2006-10-25  Mike Kestner  <mkestner@novell.com>
12008
12009         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
12010         clicks too.  Fixes #79725.
12011
12012 2006-10-24  Chris Toshok  <toshok@ximian.com>
12013
12014         * PropertyGrid.cs: use property.Converter instead of
12015         TypeDescriptor.GetConverter(property.PropertyType), so we catch
12016         TypeConverters declared on the property as well as on the
12017         PropertyType.  Fixes bug #79678.
12018
12019 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
12020
12021         * MimeIcon.cs, Mime.cs:
12022           Fallback to the default platform handler if no shared mime info
12023           stuff exists (fixes #79693).
12024
12025 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
12026         * ContainerControl.cs: Incorrect contains check in ActiveControl 
12027         from previous fix (duh).
12028
12029 2006-10-20  Chris Toshok  <toshok@ximian.com>
12030
12031         * PropertyGridView.cs: the dropdown should be MIN(number of items
12032         in list, 15).  Fixes #79551.
12033
12034 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
12035         Fixes #79384, #79394, #79652, #79667
12036         * Application.cs: 
12037         
12038         - Modal windows are now destroyed in the proper order for windows
12039         
12040         * ContainerControl.cs:
12041         
12042         - ActiveControl setter has more conditions on when to return:
12043                 - if we're reselecting the active control, but it actually
12044                 didn't have focus (window hidden or some such), it runs
12045                 - if the active control being selected doesn't actually 
12046                 exist in the container, it returns
12047         
12048         * Form.cs
12049         
12050         - The ShowDialog now gets the current form as the owner when
12051         invoking without parameters, and correctly activates the owner 
12052         when returning
12053         
12054         * MessageBox.cs
12055         
12056         - MessageBox now catches the Escape key to exit
12057
12058 2006-10-20  Chris Toshok  <toshok@ximian.com>
12059
12060         * PropertyGridView.cs: fix a number of issues (bug #78565, and
12061         most of bug #79676):
12062
12063         - you can navigate around the property grid with the arrow keys.
12064
12065         - the dropdown is sized properly when the pg has a vertical
12066         scrollbar.
12067
12068         - fix the indentation for subentries, and properly select the
12069         entire label rect.
12070
12071         - fix the gray bar's drawing (only draw it to the last element,
12072         not for the height of the control.  Also make sure we draw that
12073         last horizontal grid line.
12074
12075         - use the same mechanism the datagrid uses wrt the editing textbox
12076         when scrolling/resizing/etc.  Namely, we hide it first, do the
12077         operation, then show it again (if it's still visible).
12078         
12079         - aggressively remove a lot of unnecessary refreshes (and also
12080         calls to Invalidate(). call more limited variants, and only redraw
12081         what we need.)
12082         
12083         * PropertyGrid.cs:
12084
12085         - when we're populating the merged collection, fill in the UI
12086         parent with either the passed in item, or the category item we
12087         create.
12088
12089         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
12090
12091         * GridItem.cs: drop some fully qualified names.
12092         
12093         * GridEntry.cs: add a "UIParent", which is basically the parent
12094         treenode.
12095
12096         * GridItemCollection.cs: add an IndexOf method.
12097
12098 2006-10-20  Mike Kestner  <mkestner@novell.com>
12099
12100         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
12101         a working win32 NC invalidation mechanism, we can't invalidate
12102         menus.  [Fixes #79705]
12103
12104 2006-10-20  Mike Kestner  <mkestner@novell.com>
12105
12106         * ListBox.cs : don't update the VScrollbar if the list is empty,
12107         just hide it.  [Fixes #79692]
12108
12109 2006-10-20  Jackson Harper  <jackson@ximian.com>
12110
12111         * RichTextBox.cs: Handle some special chars better, and don't skip
12112         the entire group when we encounter a special char that we don't
12113         handle correctly.
12114
12115 2006-10-18  Chris Toshok  <toshok@ximian.com>
12116
12117         * PropertyGridView.cs: address a number of issues from bug #79676,
12118         mostly of the cosmetic variety.
12119
12120         - The highlight rectangle for indented items not extends all the
12121         way to the left.
12122
12123         - Indented items aren't indented so much.
12124
12125         - the dropdown is properly sized width-wise if the pg has a
12126         vertical scrollbar.
12127
12128 2006-10-18  Chris Toshok  <toshok@ximian.com>
12129
12130         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
12131         systray stuff is rather convoluted to begin with.
12132
12133         systray icons are a single window for some reason (that I haven't
12134         figured out yet), and for them, client_window == whole_window.
12135         Given the way the tests are structured elsewhere to determine
12136         which paints are pending (client vs. nc), that situation will
12137         always yield PAINT, not NCPAINT.  So, if we have a pending
12138         nc_expose and no pending expose, remove the hwnd from the paint
12139         queue, and also set nc_expose_pending to false, to keep us from
12140         blocking further expose's adding the hwnd to the paint queue.
12141
12142         phew.  like i said, a rather convoluted change.  Fixes the
12143         notifyicon repaint issues in bug #79645.
12144
12145 2006-10-18  Chris Toshok  <toshok@ximian.com>
12146
12147         * Form.cs: when getting the backcolor of the form, don't get
12148         base.BackColor, as this allows parents to influence the background
12149         color.  This breaks mdi forms.  Instead, if the background_color
12150         is empty, return the default.
12151
12152 2006-10-18  Chris Toshok  <toshok@ximian.com>
12153
12154         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
12155         to being private instead of internal static.
12156
12157         * Control.cs: remove all the stupid ParentWaitingOnRecreation
12158         crap, it wasn't working for more deeply nested controls anyway,
12159         and we already have the is_recreating flag - use that instead.
12160         Before calling DestroyHandle in RecreateHandle, recurse through
12161         the control tree setting it to true.  this returns the recreate
12162         code to much of its original simplicity, while now guaranteeing we
12163         actually recreate everything we're supposed to.  This change gets
12164         fyireporting actually showing mdi children.
12165
12166 2006-10-17  Chris Toshok  <toshok@ximian.com>
12167
12168         * Form.cs: remove some debug spew, and collapse some duplicate
12169         code at the end of SetClientSizeCore.
12170
12171         * XplatUIX11.cs: 
12172         - add some more debug spew here too wrt Destroy handling.
12173         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
12174         in Control's handling of WM_DESTROY.
12175         - Remove the handling of zombie window DestroyNotifies from the
12176         event loop - we don't need it.  Now the only DestroyNotifies we
12177         actually handle are ones generated by X.
12178         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
12179         match gtk's (functioning) handling of this. This keep metacity
12180         from leaving droppings in the form of wm borders with no window
12181         contents all over the place.
12182
12183         * Control.cs:
12184         - add a bunch of debug spew wrt control recreation.
12185         - fix a bug where we weren't tracking Visible properly on
12186         recreated hwnds.
12187         - fixed the WM_PAINT double buffer handling to support re-entrant
12188         calls (yes, i know it's gross, but it's happening to us).
12189
12190 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
12191         * ThemeWin32Classic.cs: changed drawing of selected days
12192         to make them look better.
12193
12194 2006-10-16  Chris Toshok  <toshok@ximian.com>
12195
12196         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
12197         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
12198
12199         * XplatUIX11.cs: move away from using hwnd.client_dc and
12200         hwnd.non_client_dc and on to a stack of dc's (and in window's
12201         case, PAINTSTRUCT's), so we can deal with nested Paint calls
12202         without puking or not disposing of Graphics objects.
12203
12204         * XplatUIOSX.cs: same.
12205
12206         * XplatUIWin32.cs: same.
12207
12208 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
12209
12210         * FileDialog.cs: Don't call on_directory_changed inside
12211           OnSelectedIndexChanged (it changes the SelectedIndex too).
12212           Instead move it to OnSelectionChangeCommitted.
12213
12214 2006-10-13  Chris Toshok  <toshok@ximian.com>
12215
12216         * XplatUIX11.cs: more Destroy work.  the current code does the
12217         following things, in order:
12218
12219         1. Enumerates all handles of all controls at or below the one
12220         being destroyed, in pre-order.  As it is doing this, it marks the
12221         handles as zombie and clears all references to them.
12222         
12223         2. calls XDestroyWindow on the window passed in.
12224
12225         3. SendMessage's WM_DESTROY to all he handles in the accumulated
12226         list.
12227
12228 2006-10-13  Chris Toshok  <toshok@ximian.com>
12229
12230         * XplatUIX11.cs: set hwnd.zombie to true before calling
12231         SendMessage (WM_DESTROY).  this keeps us from marking the new
12232         window a zombie, and also keeps us from calling sendmessage at
12233         all.
12234
12235 2006-10-13  Jackson Harper  <jackson@ximian.com>
12236
12237         * TextControl.cs: Do not show the caret and selection at the same
12238         time.  Reduces ugliness by 35%.
12239
12240 2006-10-13  Chris Toshok  <toshok@ximian.com>
12241
12242         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
12243         zombie after we do the recursive call, so we actually do call
12244         SendMessage on the children controls.
12245         (GetMessage): if we find a pending paint event for a zombie hwnd,
12246         remove the hwnd from the paint queue, or else it will always be
12247         there (and we'll effectively loop infinitely)
12248
12249 2006-10-13  Mike Kestner  <mkestner@novell.com>
12250
12251         * MenuItem.cs : add Selected format under keynav too.
12252         Fixes #79528.
12253
12254 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
12255
12256         * PropertyGrid.cs: Fixed some NRE's and small difference between our
12257         implementation and that of MS.
12258
12259 2006-10-13  Chris Toshok  <toshok@ximian.com>
12260
12261         * Control.cs (OnInvalidated) only futz with the invalid_region if
12262         the control is double buffered.  this fixes the apparent hang in
12263         the ListView unit tests.  Someone needs to make the
12264         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
12265
12266 2006-10-13  Chris Toshok  <toshok@ximian.com>
12267
12268         * PropertyGridView.cs:
12269
12270         - do a little refactoring so that only one place calls
12271         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
12272         else call that.  Also make it Refresh, since there are redraw bugs
12273         otherwise (we should take a look at that...)
12274
12275         - do a little more refactoring work to share the body of code
12276         involved with the drop down.  it was duplicated in the code
12277         dealing with the listbox handling and in the code dealing with the
12278         UITypeEditors.
12279
12280         - add a Capture to the dropdown form's control once it's
12281         displayed, and add a MouseDown handler that checks to make sure
12282         the position is inside the control.  If it's not, close the
12283         dropdown.  This fixes #78190.
12284
12285         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
12286         if the value is different than the initial value.
12287         
12288 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
12289
12290         * Control.cs: see #78650
12291         - Fixed GetNextControl for several cases:
12292                 - Changed FindFlatForward to return 
12293                 correct sibling control when more than one
12294                 control has same TabIndex as the currently 
12295                 focused one.
12296                 - Changed FindFlatBackward to loop children
12297                 from last to first and apply same logic as in
12298                 FindFlatForward
12299                 - Changed FindControlForward to search for
12300                 children when control is not a container
12301                 but has children, or search for siblings if
12302                 control is a container...
12303                 - Changed FindControlBackward   to continue
12304                 searching for child controls when hitting 
12305                 Panel-like parents
12306                 
12307         - Fixed Focus method to update ActiveControl
12308         (FocusTest.FocusSetsActive failure)
12309         
12310         * TabControl.cs:
12311         - Focus rectangle now refreshes when gaining
12312         or losing focus
12313         - Removed grab for Tab key on IsInputKey that 
12314         was keeping tab navigation from working (#78650)
12315
12316 2006-10-13  Chris Toshok  <toshok@ximian.com>
12317
12318         * PropertyGridView.cs:
12319         - Rewrite SetPropertyValue to loop over SelectedGridItem's
12320         SelectedObjects.
12321
12322         - Deal with GridItem.Value == null a few places.
12323
12324         * PropertyGrid.cs: 
12325         - replace the PopulateGridItemCollection with a pair of methods
12326         which compute the intersection of all the properties in the
12327         SelectedObjects array.  Fixes #79615.
12328
12329         - Throw ArgumentException from set_SelectedObjects if there's a
12330         null in the array.
12331
12332         - Add GetTarget method which can be used to traverse up the
12333         GridItem.Parent chain.  It depends on the assumption that
12334         selected_objects for different GridEntries are always in the same
12335         order (a safe assumption).  Use this method and loop over all the
12336         selected objects in the entry when calling RemoveValueChanged and
12337         AddValueChanged.
12338         
12339         * GridEntry.cs: Make this handle multiple selected objects.
12340         .Value returns null if not all the selected objects share the same
12341         value.
12342
12343 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
12344         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
12345           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
12346           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
12347           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
12348           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
12349         add additional functionality.
12350
12351 2006-10-12  Mike Kestner  <mkestner@novell.com>
12352
12353         * ErrorProvider.cs : new ToolTipWindow ctor sig.
12354         * HelpProvider.cs : new ToolTipWindow ctor sig.
12355         * ToolTip.cs : remove ToolTip param from Window sig since it is
12356         not used.
12357         * ToolBar.cs : add tooltip support.  Fixes #79565.
12358
12359 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
12360
12361         * ComboBox.cs: move the events in set_SelectedIndex to 
12362         after the call to HighlightIndex in order to avoid 
12363         possible recursion and subsequent problems with the call
12364         to HighlightIndex and include a range check in 
12365         set_HighlightIndex. Fixes #79588
12366         
12367 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
12368
12369         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
12370         to ui thread's settings instead of sunday. 
12371         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
12372
12373 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
12374
12375         * DateTimePicker.cs
12376         * MonthCalendar.cs
12377         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
12378         and implement missing functionality (selecting different parts 
12379         of the date and edit them individually with the keyboard).
12380         
12381 2006-10-11  Chris Toshok  <toshok@ximian.com>
12382
12383         * Control.cs (OnInvalidated): fix NRE relating to last change.
12384
12385 2006-10-11  Chris Toshok  <toshok@ximian.com>
12386
12387         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
12388         atoms in _NET_WM_STATE here if the window is maximized.  We need
12389         to do this because we're *replacing* the existing _NET_WM_STATE
12390         property, so those atoms will be lost otherwise, and any further
12391         call to GetWindowState will return Normal for a window which is
12392         actually maximized.  Fixes #79338.
12393
12394 2006-10-11  Jackson Harper  <jackson@ximian.com>
12395
12396         * TextControl.cs: Special case for setting selection end to
12397         selection start, we basically kill the anchor.
12398         - some todo comments.
12399
12400 2006-10-11  Chris Toshok  <toshok@ximian.com>
12401
12402         * Control.cs: switch to using an "invalid_region" to track which
12403         parts of the image buffer need updating.  This is more code than
12404         the simple fix from r66532.  That version just attempted to always
12405         fill the entire buffer on redraw, which turns out to be
12406         inefficient when invalidating small rectangles.  This version
12407         simply adds the invalid rectangle to the invalid region.  When we
12408         get any WM_PAINT message we see if it can be filled using the
12409         image buffer, and if it can't (if the paint event's clip rectangle
12410         is visible in the invalid region) we first fill the image buffer.
12411         So, the image buffer is still a cache, we just fill it lazily.
12412
12413         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
12414         need it any longer.
12415
12416 2006-10-11  Chris Toshok  <toshok@ximian.com>
12417
12418         * XplatUIX11.cs (SetWindowPos): we need to update both position as
12419         well as size after calling XMoveResizeWindow.  This keeps us from
12420         ignoring future SetWindowPos calls.  Fixes the disappearing
12421         DateTimePicker in the ToolBarDockExample from bug #72499.
12422
12423 2006-10-11  Chris Toshok  <toshok@ximian.com>
12424
12425         * TextBoxBase.cs: reorder things a bit when it comes to
12426         resizing-causing-recalculation.  we were recalculating the
12427         document when our position was changed, which shouldn't happen.
12428         We only care about size changes.  Clear up some more redundant
12429         recalculation calls while I'm at it.  This makes the toolbar dock
12430         example snappy when you're just dragging toolbars around (since it
12431         causes a relayout whenever you move one.)
12432
12433 2006-10-11  Chris Toshok  <toshok@ximian.com>
12434
12435         * ToolBarButton.cs (get_Rectangle): this only returns
12436         Rectangle.Empty if Visible == false, or Parent == null.
12437         Parent.Visible doesn't matter.
12438
12439 2006-10-10  Chris Toshok  <toshok@ximian.com>
12440
12441         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
12442         by .net 1.1, so switch to an internal method instead.
12443
12444 2006-10-10  Chris Toshok  <toshok@ximian.com>
12445
12446         * Control.cs (WM_PAINT): when a control is double buffered we draw
12447         initially to the ImageBuffer and then copy from there.  But when a
12448         parent control which has child controls is double buffered, the
12449         initial drawing doesn't encompass the entire ClientRectangle of
12450         the parent control, so we end up with uninitialized bits (this is
12451         easily seen by dragging the top toolbar in
12452         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
12453         manually set the ClipRectangle of the paint_event (only the one we
12454         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
12455         of the nastiness in bug #72499.
12456
12457         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
12458         which we use in Control.cs's WM_PAINT handling.
12459
12460 2006-10-10  Jackson Harper  <jackson@ximian.com>
12461
12462         * TextBoxBase.cs: Finish off the autoscrolling stuff.
12463
12464 2006-10-10  Chris Toshok  <toshok@ximian.com>
12465
12466         * Cursor.cs: Apply a slightly different patch to the one suggested
12467         in #79609.
12468
12469 2006-10-10  Jackson Harper  <jackson@ximian.com>
12470
12471         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
12472         not the parent form.
12473         * TextControl.cs: use difference in old line count vs new count to
12474         calculate how many lines were added, this takes into account soft
12475         line breaks properly.
12476
12477 2006-10-10  Chris Toshok  <toshok@ximian.com>
12478
12479         * LinkLabel.cs: don't call MeasureCharacterRanges against a
12480         rectangle located at 0,0 and the size of the text.  Use
12481         ClientRectangle instead.  This fixes rendering of non-left aligned
12482         link labels.
12483
12484 2006-10-10  Jackson Harper  <jackson@ximian.com>
12485
12486         * TextBoxBase.cs: When we set the selection start position the
12487         caret.
12488         * TextControl.cs: Need to update the caret when we decrement it to
12489         zero.
12490         - Make sure that the selection_visible flag gets reset to false if
12491         the selection isn't visible.  Before this you could get it set to
12492         visible by changing the selection start, then changing the end to
12493         equal the start.
12494
12495 2006-10-09  Jackson Harper  <jackson@ximian.com>
12496
12497         * TreeView.cs: Don't update scrollbars when we aren't visible.
12498         * TreeNodeCollection.cs: Only need to update scrollbars if being
12499         added to an expanded visible node or the root node.
12500
12501 2006-10-09  Chris Toshok  <toshok@ximian.com>
12502
12503         * XplatUIX11.cs (SendMessage): fix NRE.
12504
12505 2006-10-09  Jackson Harper  <jackson@ximian.com>
12506
12507         * TextBoxBase.cs: Implement horizontal autoscrolling.
12508         * TextControl.cs: Add a movement types that allows moving forward
12509         and backwards without wrapping.
12510
12511 2006-10-09  Mike Kestner  <mkestner@novell.com>
12512
12513         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
12514         with focus "expansion" of labels.  Fixes #79532 and then some.
12515         * ThemeWin32Classic.cs : add LineLimit to ListView label format
12516         when wrapping.
12517
12518 2006-10-09  Jackson Harper  <jackson@ximian.com>
12519
12520         * TextBoxBase.cs: Set the default max values to MaxValue since
12521         we use the scrollbar for autoscrolling and the default value is
12522         100.  If we don't do this the caret won't keep up with typing
12523         after about 18 characters.
12524         * TextControl.cs: Make sure the selection is offset by the
12525         viewport x.  This fixes selection when using auto scrolling.
12526
12527 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
12528         
12529         * Form.cs: The active control should be selected after the 
12530         OnLoad so that any child control initialization that affects
12531         the selection is done. Fixes #79406
12532
12533 2006-10-06  Chris Toshok  <toshok@ximian.com>
12534
12535         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
12536         to have no evil effects.
12537
12538         - Stop selecting StructureNotifyMask on non-toplevel windows.
12539
12540           The only way children should be resized is by using the SWF api,
12541           and we already send WM_WINDOWPOSCHANGED messages in those cases.
12542           Toplevel windows can be interacted with via the window manager,
12543           and so we keep the input mask there.
12544
12545           The other event StructureNotifyMask gives us (that we care
12546           about) is DestroyNotify.  The code is already structured such
12547           that it assumes we won't be getting a DestroyNotify event for
12548           the window we pass to XDestroyWindow (which is what
12549           StructureNotifyMask is supposed to guarantee.)  So, that code
12550           shouldn't be affected by this either.
12551
12552         - Stop selecting VisibilityChangeMask altogether.
12553
12554           We weren't doing anything with the resulting events anyway.
12555         
12556         This vastly reduces the number of X requests and events we see
12557         when resizing/laying out a large ui.
12558
12559 2006-10-06  Chris Toshok  <toshok@ximian.com>
12560
12561         * ScrollableControl.cs (DisplayRectangle): we need to take into
12562         account the DockPadding regardless of whether or not auto_scroll
12563         == true.  rework this slightly to this effect, and fix bug #79606,
12564         and part of #72499 (you can now see the drag handles and drag
12565         toolbars around).
12566
12567 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
12568
12569         * ListViewItem.cs: Collections of selected and checked items are now
12570         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
12571         we mark the collection "dirty".
12572         * ListView.cs: Marked collections readonly. Modified UpdateSelection
12573         to only clear SelectedItems when a new item is selected and MultiSelect
12574         is enabled. CheckedItems and SelectedItems now subscribe to Changed
12575         event of ListViewItemCollection, and mark its list dirty whenever
12576         that event is fire. This allows us to return selected/checked items 
12577         in the same order as they are in the Items collection. This matches
12578         the MS behavior.
12579
12580 2006-10-06  Chris Toshok  <toshok@ximian.com>
12581
12582         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
12583         right mouse clicks.  Fixes bug #79593.
12584
12585 2006-10-06  Chris Toshok  <toshok@ximian.com>
12586
12587         * Splitter.cs: doh, fix splitters that don't want to cancel the
12588         movement when you drag them.  Also, impose the limits on the
12589         values we send to the SplitterMovingEvent.  Fixes #79598.
12590
12591 2006-10-06  Jackson Harper  <jackson@ximian.com>
12592
12593         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
12594         since we use this for auto scrolling also.
12595
12596 2006-10-05  Chris Toshok  <toshok@ximian.com>
12597
12598         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
12599         beginning to think that most datagrid column types don't need this
12600         method.  Fixes bug #79392.
12601
12602 2006-10-05  Chris Toshok  <toshok@ximian.com>
12603
12604         * DataGrid.cs: move back to a more lazy scheme for creating the
12605         CurrencyManager, so we aren't updating it every time you set
12606         either DataSource or DataMember.  Also, don't call
12607         RecreateDataGridRows if the currency manager hasn't changed.
12608
12609 2006-10-05  Chris Toshok  <toshok@ximian.com>
12610
12611         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
12612         emitted, SelectedIndex should already be updated.  Fixes bug
12613         #78929.
12614
12615 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
12616
12617         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
12618           ToolStripTextBox.cs: Initial commit.
12619         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
12620
12621 2006-10-05  Jackson Harper  <jackson@ximian.com>
12622
12623         * TabControl.cs: We need to invalidate the tab control area when
12624         new ones are added (duh).
12625
12626 2006-10-03  Chris Toshok  <toshok@ximian.com>
12627
12628         * Form.cs (ProcessDialogKey): if the focused control is in this
12629         form and is a button, call its PerformClick method here.  Fixes
12630         #79534.
12631
12632 2006-10-04  Jackson Harper  <jackson@ximian.com>
12633
12634         * TabPage.cs: Ignore setting of Visible, and add an internal
12635         method for setting the controls visibility.  TabPage's Visible
12636         property is a little strange on MS, this seems to make us
12637         compatible, and fixes cases where people set all the tab pages to
12638         visible.
12639         * TabControl.cs: Use the new internal setting on tab pages
12640         visibility.
12641
12642 2006-10-03  Mike Kestner  <mkestner@novell.com>
12643
12644         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
12645
12646 2006-10-03  Mike Kestner  <mkestner@novell.com>
12647
12648         * ListView.cs : use is_visible instead of Visible to check if 
12649         scrollbars should be placed/sized.  Also some max_wrap_width
12650         love for LargeIcon view.  [Fixes #79533]
12651
12652 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
12653
12654         * TextControl.cs :
12655           Make set_TextAlign() do actually update the align. Fixed #78403.
12656
12657 2006-10-03  Chris Toshok  <toshok@ximian.com>
12658
12659         * DataGrid.cs: fix a crash when switching datasources if the
12660         vertical scrollbar is at someplace other than Value = 0.  Also,
12661         reduce the number of recalculation passes we do in SetDataSource
12662         from 2 to 1.
12663
12664 2006-10-03  Jackson Harper  <jackson@ximian.com>
12665
12666         * TextBoxBase.cs: Move the if value the same bail check up, we
12667         don't want to empty the document if it is already empty, this
12668         seems to severly mess up the caret.  TODO: I should probably fix
12669         the empty statement to update teh caret somehow.
12670
12671 2006-10-03  Chris Toshok  <toshok@ximian.com>
12672
12673         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
12674         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
12675         reflection, an internal row type, properties on said type, etc.)
12676         will work with our datagrid.  Fixes #79531.
12677
12678 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
12679
12680         * FileDialog.cs: Don't crash if a path is not accessible
12681           (System.UnauthorizedAccessException). Fixes #79569.
12682         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
12683           a ':' too. Return unknown icon for those paths/files.
12684
12685 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
12686
12687         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
12688         GetContainerControl returns null.
12689
12690 2006-10-02  Chris Toshok  <toshok@ximian.com>
12691
12692         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
12693         call to XGetWindowAttributes instead of "handle".  fixes an X
12694         error using notifyicon after the NotifyIconWindow to Form base
12695         class switch.
12696
12697 2006-10-02  Chris Toshok  <toshok@ximian.com>
12698
12699         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
12700         server grab and looping we need to do to get down to the most
12701         deeply nested child window.
12702         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
12703         QueryPointer again after the WarpPointer so we can generate a
12704         proper (fake) MotionNotify event to be enqueued in the destination
12705         window's queue.
12706         (GetCursorPos): call QueryPointer.
12707
12708         Fixes #79556.
12709
12710 2006-10-02  Jackson Harper  <jackson@ximian.com>
12711
12712         * NotifyIcon.cs: Derive the notify icon from a form, so things
12713         like FindForm work on it.
12714         - Swallow the WM_CONTEXTMENU message, since that is generated on
12715         mouse down, and context menu is a mouse up kinda guy.  I believe
12716         the correct fix here is probably to make the notify icon entirely
12717         NC area, but this seems to work fine for anyone not manipulating
12718         WndProc.
12719
12720 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
12721
12722         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
12723           ToolStripItemCollection.cs, ToolStripLabel.cs,
12724           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
12725           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
12726           Initial implementation.
12727         * TextRenderer.cs: Provide padding to MeasureText.
12728
12729 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
12730
12731         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
12732         of ButtonBaseAccessibleObject. Fix bug #79552.
12733
12734 2006-10-02  Jackson Harper  <jackson@ximian.com>
12735
12736         * MdiWindowManager.cs: When maximizing use the containers client
12737         rect, not it's bounds, so nc area is accounted correctly.
12738         - Use the parent form's size for the menu position, since the
12739         client isn't always the full form size.
12740
12741 2006-10-01  Chris Toshok  <toshok@ximian.com>
12742
12743         * ScrollableControl.cs: make sure neither right_edge or
12744         bottom_edge are < 0, since they're used as LargeChange for the
12745         horiz/vert scrollbars respectively.  Fixes #79539.
12746
12747 2006-10-01  Chris Toshok  <toshok@ximian.com>
12748
12749         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
12750         the xplatuix11 code can cause us to destroy/recreate our handle.
12751
12752         * XplatUIX11.cs
12753         (SystrayAdd):
12754         - this code can be invoked many times for the same Hwnd.  Make
12755           sure we only destroy the client window once (the first time this
12756           method is called).  This fixes bug #79544.
12757         - Remove the call to the improperly bound XSync.  why we had two
12758           bindings to this, I will never know, but this call resulted in
12759           events being discarded from the queue(!).
12760         - correct a misunderstanding of _XEMBED_INFO - the second atom is
12761           not our current state but the state we wish to be in.  So, 0 if
12762           we don't want to be mapped.  Change it to 1.
12763         (SystrayRemove): The XEMBED spec makes mention of the fact that
12764         gtk doesn't support the reparent of client windows away from the
12765         embedder.  Looking at gtksocket-x11.c seems to agree with this.
12766         The only avenue we have for removing systray icons is to destroy
12767         them.  We don't want the handle to go away for good, though, so
12768         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
12769         #79545.
12770         
12771 2006-10-01  Chris Toshok  <toshok@ximian.com>
12772
12773         * Form.cs (WndProc): inline the native_enabled variable usage into
12774         the cases in which it's used.  Fixes #79536.
12775
12776 2006-09-29  Mike Kestner  <mkestner@novell.com>
12777
12778         * ListView.cs : toggle the selection state for ctrl clicks in 
12779         multiselect mode. [Fixes #79417]
12780
12781 2006-09-29  Mike Kestner  <mkestner@novell.com>
12782
12783         * ListView.cs : kill CanMultiSelect and refactor the selection
12784         code to support multiselection in the absence of mod keys. Steal
12785         arrow/home/end keys by overriding InternalPreProcessMessage to
12786         restore regressed keynav behavior.
12787         [Fixes #79416]
12788
12789 2006-09-29  Jackson Harper  <jackson@ximian.com>
12790
12791         * MdiClient.cs: Repaint the titlebars when the active window is
12792         changed.
12793
12794 2006-09-29  Chris Toshok  <toshok@ximian.com>
12795
12796         * Application.cs: when entering a runloop with a modal, make sure
12797         the hwnd is enabled.  Fixes #79480.
12798
12799 2006-09-29  Chris Toshok  <toshok@ximian.com>
12800
12801         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
12802         when ListManager.CanAddRows == false, bump us back one.
12803
12804         * DataGridColumnStyle.cs (ParentReadOnly): remove the
12805         listmanager.CanAddRows check.  This makes ArrayLists uneditable
12806         using a datagrid, which is not right.
12807         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
12808         is an IEditable, but call property_descriptor.SetValue regardless.
12809         fixes #79435.
12810
12811 2006-09-29  Chris Toshok  <toshok@ximian.com>
12812
12813         * DataGridBoolColumn.cs: we need to test equality in the face of
12814         possible null values (as is the case with the default NullValue).
12815         This patch keeps us from crashing in that case.
12816
12817 2006-09-29  Jackson Harper  <jackson@ximian.com>
12818
12819         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
12820         here, since it will get called for every node collection in the
12821         tree. This is now done in the treeview once the sorting is
12822         finished.
12823         * TreeView.cs: Recalculate the visible order, and update the
12824         scrollbars after sorting, set the top nope to the root so that the
12825         recalc actually works.
12826
12827 2006-09-29  Chris Toshok  <toshok@ximian.com>
12828
12829         * LinkLabel.cs: more handling of the default link collection in
12830         the face of LinkArea manipulation.  The default link collection
12831         contains 1 element (start=0,length=-1).  If the user sets LinkArea
12832         to anything and the links collection is the default, clear it.
12833         Then only add the link if its nonempty.  Fixes #79518.
12834
12835 2006-09-29  Chris Toshok  <toshok@ximian.com>
12836
12837         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
12838         piece correctly when we hit a '\n'.  Fixes #79517.
12839
12840 2006-09-29  Chris Toshok  <toshok@ximian.com>
12841
12842         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
12843         change the binding of gdk_init_check to take two IntPtr's, and
12844         pass IntPtr.Zero for both of them.  Fixes #79520.
12845
12846 2006-09-29  Mike Kestner  <mkestner@novell.com>
12847
12848         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
12849         [Fixes #78779]
12850
12851 2006-09-28  Jackson Harper  <jackson@ximian.com>
12852
12853         * XplatUIX11.cs: When translating NC messages make sure we go from
12854         whole window to screen, not client window to screen.
12855         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
12856         method doesn't exist
12857         - Skip over controls that aren't forms when arranging.
12858
12859 2006-09-28  Jackson Harper  <jackson@ximian.com>
12860
12861         * XplatUIWin32.cs: Clip the rect to the parent window.
12862         * XplatUIStructs.cs: Add clipping modes struct.
12863         * InternalWindowManager.cs: New private method that factors title
12864         bar heights in when calculating the pos of an NC mouse message.
12865         - Use SendMessage to force a paint when the form's size is changed
12866         instead of painting the decorations immediately.
12867         - Don't let the NC button click messages get to DefWndProc,
12868         because they will attempt to handle windowing themself, and this
12869         messes up z-order (it will put them in front of the scrollbars).
12870         * XplatUIX11.cs: Make sure that we don't reset window managers if
12871         we already have one (ie the window is an MDI window).
12872
12873 2006-09-28  Chris Toshok  <toshok@ximian.com>
12874
12875         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
12876         menu code really needs going over.
12877
12878 2006-09-27  Chris Toshok  <toshok@ximian.com>
12879
12880         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
12881         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
12882         window is maximizable.  So, we need to make sure that even if we
12883         clear the border/wm frame of those functions, they're still
12884         available (basically, we remove the decoration without removing
12885         the function).  Half the fix for #79338.
12886
12887 2006-09-27  Chris Toshok  <toshok@ximian.com>
12888
12889         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
12890         Fixes bug #79515.
12891
12892 2006-09-27  Chris Toshok  <toshok@ximian.com>
12893
12894         * Splitter.cs: reorder things a bit so that we don't actually
12895         draw/move the splitter until after calling OnSplitterMoving.  This
12896         lets users cancel/disallow the movement by explicitly setting
12897         event.SplitX/SplitY.  Fixes #79372.
12898
12899 2006-09-27  Jackson Harper  <jackson@ximian.com>
12900
12901         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
12902         because it is most likely on a window being destroyed, and that
12903         will give us an X11 error.
12904
12905 2006-09-27  Chris Toshok  <toshok@ximian.com>
12906
12907         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
12908         the dropdown button now toggles between showing and hiding the
12909         dropdown.  Also, get rid of dropdown_form_showing and just use
12910         dropdown_form.Visible.  We still don't do a grab, but I'll leave
12911         that part to someone who has handled Capture-fu before.
12912
12913 2006-09-27  Chris Toshok  <toshok@ximian.com>
12914
12915         * DataGrid.cs: return false if alt isn't pressed when '0' is
12916         pressed.  this keeps the '0' key from being swallowed, and fixes
12917         bug #79350.
12918
12919 2006-09-27  Chris Toshok  <toshok@ximian.com>
12920
12921         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
12922         Calling Refresh (in response to a scrollbar event) screws up the
12923         scrollbar painting.  Fixes bug #78923.
12924
12925 2006-09-27  Chris Toshok  <toshok@ximian.com>
12926
12927         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
12928         then insert into hashtable" blocks threadsafe.
12929
12930 2006-09-27  Chris Toshok  <toshok@ximian.com>
12931
12932         * MessageBox.cs (CreateParams): the styles should be |'ed with our
12933         baseclass's, since otherwise the
12934         ControlBox/MinimizeBox/MaximizeBox assignments above have no
12935         effect.  This gets the close button back in messageboxes.
12936
12937 2006-09-27  Chris Toshok  <toshok@ximian.com>
12938
12939         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
12940         flag, not just != 0.  this makes flags that are actually multiple
12941         bits (like WS_CAPTION) work.  fixes bug #79508.
12942
12943 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
12944
12945         * PageSetupDialog.cs: add support for getting and settings the 
12946         paper size, source and orientation.
12947
12948 2006-09-26  Chris Toshok  <toshok@ximian.com>
12949
12950         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
12951         and caption == "", we need to remove the resize handles as well as
12952         the title bar.
12953
12954         * Control.cs (set_Text): turns out that setting Text on a form
12955         should change the WM styles on the window, since if ControlBox ==
12956         false, the only way to get a window border is to have a non-""
12957         Text property.  check winforms/forms/text.cs for an example.  so,
12958         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
12959         update both window styles and title.  This fixes a lot of dialogs
12960         (including the preferences dialog in MonoCalendar.)
12961
12962 2006-09-26  Chris Toshok  <toshok@ximian.com>
12963
12964         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
12965         control isn't a Form), call Win32ShowWindow to hide the window,
12966         but don't update the control Visible property.  When we reparent
12967         back to a parent control, call SetVisible in order for the
12968         window's visibility to be reinstated.
12969
12970         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
12971         the FosterParent.
12972
12973         * Control.cs (ControlCollection.Remove): remove that value.Hide()
12974         call for good, since it breaks MonoCalendar (and other things I'm
12975         sure.) Also, set all_controls to null *after* the owner calls,
12976         which end up regenerating it.
12977         (ChangeParent): allow new_parent to be == null, passing
12978         IntPtr.Zero down to XplatUI.
12979
12980         this fixes #79294 the right way.
12981
12982 2006-09-26  Mike Kestner  <mkestner@novell.com>
12983
12984         * GridEntry.cs : internal SetParent method.
12985         * PropertyGrid.cs : attach to property changed on the proper
12986         target if we have a hierarchical grid with subobjects. Setup
12987         GridItem.Parent for hierarchical items.
12988         * PropertyGridView.cs : Set value on the correct target for
12989         hierarchical grids. [Fixes #78903]
12990
12991 2006-09-26  Chris Toshok  <toshok@ximian.com>
12992
12993         * Control.cs (ChildNeedsRecreating): this should return true if
12994         either we're being recreated and the child is in our list, or our
12995         parent is waiting for our recreation.
12996
12997 2006-09-26  Chris Toshok  <toshok@ximian.com>
12998
12999         * Control.cs (ControlCollection.Remove): reinstate the
13000         value.Hide() call as suggested in bug #79294.
13001
13002 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
13003
13004         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
13005         coordinates (versus a relative move).
13006
13007 2006-09-26  Chris Toshok  <toshok@ximian.com>
13008
13009         * Control.cs: rework child recreation a little bit.  It turns out
13010         that we race between the DestroyNotify the WM_DESTROY message.  If
13011         the parent gets its DestroyNotify before the child gets the
13012         WM_DESTROY message, the child ends up not recreating (since the
13013         parent finishes its recreation on DestroyNotify, and the child
13014         checks ParentIsRecreating.)
13015
13016         So, instead we store off a list of all the child controls which
13017         need to be recreated when the parent control starts to recreate
13018         itself.  Then, when child controls get their WM_DESTROY message we
13019         check to see if they're in the parent's pending recreation list,
13020         and if so, we recreate.  This removes all dependency on ordering
13021         from the code and fixes the initial MonoCalendar upgrade dialog.
13022         
13023 2006-09-26  Jackson Harper  <jackson@ximian.com>
13024
13025         * TextControl.cs: Use the Line to get the length of the line,
13026         since soft line breaks can change the end line.
13027
13028 2006-09-26  Chris Toshok  <toshok@ximian.com>
13029
13030         * Control.cs (ControlCollection.AddImplicit): don't add the
13031         control again if it's already in one of our lists.  This keeps us
13032         from adding controls over and over again for comboboxes when their
13033         handle gets recreated (as the combobox adds implicit controls in
13034         OnHandleCreated).  Fixes the X11 errors in bug #79480.
13035
13036 2006-09-26  Jackson Harper  <jackson@ximian.com>
13037
13038         * TextControl.cs: When deleting characters make sure that any
13039         orphaned zero lengthed tags get deleted.
13040         - Fix ToString for zero lengthed tags.
13041
13042 2006-09-25  Jackson Harper  <jackson@ximian.com>
13043
13044         * TextControl.cs: When getting a tag at the location there can be
13045         multiple tags at the same spot, these are 0-lengthed tags that
13046         appear when extra formatting has been stuck in a location.  We
13047         need to pull out the last of these 0 lengthed tags.
13048
13049 2006-09-25  Jackson Harper  <jackson@ximian.com>
13050
13051         * TextControl.cs: Fix print out in debug method.
13052         * TextBoxBase.cs: When text is set bail if we are setting to the
13053         previous value.
13054         
13055 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
13056
13057         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
13058           It is now possible to change the selected index in a FontXXXListBox
13059           with the up and down arrow keys from the FontXXXTextBoxes.
13060           Also, send the FontXXXTextBox mouse wheel event to the corresponding
13061           FontXXXListBoxes to match ms.
13062
13063 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
13064
13065         * SystemInformation.cs: Return a clone of the theme's MenuFont because
13066         anyone can dispose it, anytime. All other properties returns enums, 
13067         structs or basic types so they don't need such tricks.
13068
13069 2006-09-22  Jackson Harper  <jackson@ximian.com>
13070
13071         * XplatUI.cs:
13072         * XplatUIWin32.cs:
13073         * Clipboard.cs:
13074         * DataFormats.cs:
13075         * XplatUIOSX.cs:
13076         * XplatUIDriver.cs: Update interface to add a primary selection
13077         flag, so the driver can use the primary selection buffer if
13078         needed.
13079         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
13080
13081         * RichTextBox.cs: We need to supply the data object to paste now
13082         (so we can choose to supply CLIPBOARD or PRIMARY).
13083         * TextBoxBase.cs: Supply data object to paste (see above).
13084         - Middle click uses the primary selection data object.
13085         
13086 2006-09-21  Chris Toshok  <toshok@ximian.com>
13087
13088         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
13089         of SetWMStyles.  It's still a rat's nest and is largely
13090         order-dependent which I dislike immensely.  This also fixes the X
13091         button disappearing from toplevel forms.
13092
13093 2006-09-21  Mike Kestner <mkestner@novell.com>
13094
13095         * ListBox.cs: move Jordi's click/dblclick raising code to the
13096         mouse up handler.
13097
13098 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
13099
13100         * ListBox.cs: Fixes 79450
13101
13102 2006-09-21  Mike Kestner <mkestner@novell.com>
13103
13104         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
13105         to deal with people updating the TreeNodeCollection after the tree
13106         is disposed.  "Fixes" 79330.
13107
13108 2006-09-20  Jackson Harper <jackson@ximian.com>
13109
13110         * TextControl.cs: Push the cursor record onto the undo stack
13111         before the delete action. This fixes 78651.
13112
13113 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
13114
13115         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
13116         CreateParams. Fixes 79329.
13117
13118 2006-09-19  Chris Toshok  <toshok@ximian.com>
13119
13120         * XplatUIX11.cs: a couple of blanket code massage passes to clean
13121         things up a bit.  First, get rid of the NetAtoms array (and the NA
13122         enum), and just embed the atoms as static fields.  Also, add a
13123         couple of functions (StyleSet and ExStyleSet) to clean up all the
13124         bitmask testing of styles.
13125
13126         * X11Structs.cs: remove the NA enum, not needed anymore.
13127         
13128 2006-09-19  Chris Toshok  <toshok@ximian.com>
13129
13130         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
13131         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
13132         added cleanup to get MessageBox titles appearing again, which were
13133         broken by my earlier fix for caption-less/ControlBox-less windows.
13134
13135 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
13136
13137         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
13138           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
13139           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
13140           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
13141           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
13142           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
13143           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
13144           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
13145           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
13146           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
13147           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
13148             Inital import.
13149         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
13150           ToolStripButton.cs: Stubs needed for above.
13151         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
13152
13153 2006-09-15  Chris Toshok  <toshok@ximian.com>
13154
13155         * XplatUIX11.cs:
13156         - make the MessageQueues hashtable Synchronized.
13157         
13158         - SendMessage: if the Hwnd is owned by a different thread, use the
13159         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
13160         thread.  Fixes bug #79201.
13161
13162 2006-09-15  Chris Toshok  <toshok@ximian.com>
13163
13164         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
13165         ControlBox == false, we disallow maximize/minimize/close.  If the
13166         form Caption is "" we also disallow move (and get rid of the Title
13167         decoration).  Unfortunately, regardless of how things are set,
13168         we're stuck with the Title and WM menu.
13169
13170 2006-09-15  Chris Toshok  <toshok@ximian.com>
13171
13172         * Application.cs: add locking around the static message_filters
13173         ArrayList, part of #79196.
13174
13175 2006-09-15  Chris Toshok  <toshok@ximian.com>
13176
13177         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
13178         Form.ControlBox == false, the window has no titlebar nor resize
13179         handles.  fixes bug #79368.
13180
13181 2006-09-15  Chris Toshok  <toshok@ximian.com>
13182
13183         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
13184         >= 0.  Fixes bug #79370.
13185
13186 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
13187         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
13188         * Control.cs:
13189             Add properties: LayoutEngine, Margin, DefaultMargin.
13190             Add method: GetPreferredSize.
13191             Move layout logic from PerformLayout to layout engines. 
13192
13193 2006-09-13  Chris Toshok  <toshok@ximian.com>
13194
13195         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
13196         fix for #79326 broke #78718, so this change addresses that.
13197
13198         - in SendWMDestroyMessages remove the call to
13199         CleanupCachedWindows, since we might be recreating the control and
13200         need to maintain the references to right Hwnd handles.  Also, set
13201         the zombie flag to true for each of the children in the hierarchy
13202         instead of calling hwnd.Dispose.  This will cause GetMessage to
13203         ignore all events for the window except for DestroyNotify.
13204
13205         - In GetMessage, ignore messages except for DestroyNotify for
13206         zombie hwnds.
13207         
13208         * Control.cs: revert the is_recreating fix from the last
13209         ChangeLog.  It's definitely "right", but it breaks switching from
13210         an MDI form to a non-MDI form.  Will need to revisit that.
13211
13212         * Hwnd.cs: add a zombie flag, which means "the
13213         client_window/whole_window handles are invalid, but we're waiting
13214         for the DestroyNotify event to come in for them".  Set the flag to
13215         false explicitly if setting WholeWindow/ClientWindow, and also
13216         when Disposing.
13217         
13218 2006-09-13  Chris Toshok  <toshok@ximian.com>
13219
13220         * XplatUIX11.cs: rework window destruction slightly.
13221
13222         - when destroying the windows associated with a control, we don't
13223         need 2 separate XDestroyWindow calls.  Just the one for the
13224         whole_window (or for client_window if whole_window is somehow
13225         IntPtr.Zero -- can this happen?) is enough.
13226
13227         - reworked SendWMDestroyMessages slightly, so we always dispose
13228         the child control hwnd's after sending the messages.
13229         
13230         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
13231         the two places it was used (one was even using hwnd.Handle and the
13232         other hwnd.client_window.  ugh), adding another call in
13233         SendWMDestroyMessages.  We need this new call because now the
13234         DestroyNotify events in the queue will be ignored for the child
13235         controls (as their hwnd's were disposed, and the window id's
13236         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
13237
13238         - this fixes bug #79326.
13239
13240 2006-09-13  Chris Toshok  <toshok@ximian.com>
13241
13242         * Control.cs: don't always set is_recreating to false at the end
13243         of RecreateHandle, since sometimes we're not done (and won't be
13244         until WndProc handles the WM_DESTROY message).  Also, set
13245         is_recreating to false in the WM_DESTROY handling code.  Part of
13246         the fix for bug #79326.
13247
13248 2006-09-13  Miguel de Icaza  <miguel@novell.com>
13249
13250         * X11DesktopColors.cs: Start the droppage of debugging messages.
13251
13252         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
13253
13254 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
13255
13256         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
13257
13258 2006-09-12  Chris Toshok  <toshok@ximian.com>
13259
13260         * DataGrid.cs (get_ListManager): if the list_manager is null, try
13261         to create it using SetDataSource.  Fixes bug #79151.
13262
13263 2006-09-11  Chris Toshok  <toshok@ximian.com>
13264
13265         * XEventQueue.cs: add a DispatchIdle property.
13266
13267         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
13268         either the queue is null, or the queue has DispatchIdle set to
13269         true.
13270         (DoEvents): set queue.DispatchIdle to false around the
13271         peek/translate/dispatch message loop in this method.  This keeps
13272         Application.Doevents from emitting idle events.  Part of the fix
13273         for #78823.
13274
13275 2006-09-11  Chris Toshok  <toshok@ximian.com>
13276
13277         * DataGrid.cs (set_DataSource): make this work for both the
13278         winforms/datagrid test and ReportBuilder.  It seems as though when
13279         we've created a ListManager (or maybe it's if we have a
13280         BindingContext?), when we set the DataSource it clears the
13281         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
13282         #79333.
13283
13284 2006-09-11  Chris Toshok  <toshok@ximian.com>
13285
13286         * XplatUIX11.cs: deal with queue being null, which happens in all
13287         the Clipboard functions.  Fixes one of the two problems mentioned
13288         in #78612.
13289
13290 2006-09-11  Chris Toshok  <toshok@ximian.com>
13291
13292         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
13293         button on various spots (including outside the menu) works closer
13294         to MS, and doesn't crash.  Fixes #79343.
13295
13296 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
13297
13298         * ListView.cs: Do not initialize item_sorter in init. To match MS,
13299         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
13300         and the internal comparer is set. When a new ListViewItemSorter is set,
13301         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
13302         was specified. No further processing is necessary if SortOrder is set
13303         to it's current value. If Sorting is modified to None, and View is
13304         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
13305         (either custom or our internal ItemComparer) to null, on 1.0 profile
13306         only set item_sorter to null if its our internal IComparer. If Sorting
13307         is modified to Ascending or Descending, then use our internal IComparer
13308         if none is set, and if the current IComparer is our internal one then:
13309         on 2.0 profile always replace it with one for new Sorting, and on 1.0
13310         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
13311         Enum.IsDefined to verify whether a valid View value is specified in
13312         its setter. Automatically sort listview items when listview is
13313         created. In Sort, do nothing if ListView is not yet created, or if
13314         no item_sorter is set (no Sorting was set, Sorting was explicitly set
13315         to None or ListViewItemSorter was set to null). Added Sort overload
13316         taking a bool to indicate whether the ListView should be redrawn when
13317         items are sorted (we use this in ListViewItemCollection to avoid double
13318         redraws). Modified our internal IComparer to take the sort order into
13319         account. In Add and AddRange methods of ListViewItemCollection, also
13320         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
13321         view), but use overload with noredraw option to avoid double redraw.
13322         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
13323         true when View is Tile, and do the same when attempting to set View to
13324         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
13325         for selected/checked indices, as it involves overhead when sorting is
13326         done while these collections are not used all that often. Instead
13327         we'll build the indices on demand. Modified IList implementation of
13328         CheckedIndexCollection to use public methods if object is int.
13329         Modified CheckedListViewItemCollection to hide checked items if
13330         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
13331         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
13332         IList implementation in SelectedIndexCollection to use public methods
13333         if object is int. Modified SelectedListViewItemCollection to hide
13334         selected items if listview is not yet created.
13335         * ListViewItem.cs: CheckedIndices list no longer needs to be
13336         maintained separately (see ListView changes). Also clone font, fixes
13337         test failure.
13338
13339 2006-09-11  Mike Kestner  <mkestner@novell.com>
13340
13341         * ComboBox.cs: if we are updating the contents of the currently
13342         selected index, refresh the control or the textbox selection.
13343         [Fixes #79066]
13344
13345 2006-09-11  Mike Kestner  <mkestner@novell.com>
13346
13347         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
13348         the 'specified' logic has been moved there.  This seems like a bug 
13349         in Control.cs, since our current SetBoundsCore completely ignores 
13350         the specified parameter.  Peter's commit seems to indicate that is 
13351         the way the MS control implementation works.  [Fixes #79325]
13352
13353 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
13354
13355         * XplatUI.cs: Set default_class_name to be composed
13356         of current domain id. This allows MWF to be loaded in multiple
13357         domains on Win32.
13358
13359 2006-09-09  Miguel de Icaza  <miguel@novell.com>
13360
13361         * X11Keyboard.cs: If we are unable to obtain the input method, do
13362         not call CreateXic to create the input context.   Should fix
13363         #78944/79276.
13364
13365 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
13366
13367         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
13368           Simplified gnome support by adding more pinvokes to get the
13369           icon for a file or mime type.
13370
13371 2006-09-08  Jackson Harper  <jackson@ximian.com>
13372
13373         * MenuAPI.cs: Deslect popup context menu items before closing the
13374         window, so that you don't see the previously selected item
13375         selected when you reopen the menu.
13376         * TextControl.cs: Update the cursor position even if we don't have
13377         focus.  This fixes typing in things like the ComboBox.  I'm not
13378         totally sure we should always set the visibility if we don't have
13379         focus, but couldn't find any corner cases where the cursor showed
13380         up when it shouldn't.
13381
13382 2006-09-08  Chris Toshok  <toshok@ximian.com>
13383
13384         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
13385         our arrays are length 256.  & 0xff before indexing.  Fixes the
13386         crash in bug #78077.
13387         
13388 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13389
13390         * ThemeWin32Classic.cs: 
13391         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
13392         is true. Handle that check box too.
13393
13394 2006-09-07  Chris Toshok  <toshok@ximian.com>
13395
13396         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
13397         79244.
13398
13399 2006-09-07  Chris Toshok  <toshok@ximian.com>
13400
13401         * Control.cs: in set_BackColor only do the work if
13402         background_color != value.
13403
13404         * XplatUIX11.cs: move the clearing of invalid areas (both client
13405         and nc) to the same block of code where we set (nc_)expose_pending
13406         to false.  That is, move it from PaintEventEnd to PaintEventStart,
13407         so things that cause invalidates from within OnPaint will trigger
13408         another call to OnPaint.  Fixes bug #79262.
13409
13410 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
13411
13412         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
13413         * FileDialog.cs: Fix typo
13414
13415 2006-09-07  Jackson Harper  <jackson@ximian.com>
13416
13417         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
13418         for tab pages if they have any.
13419
13420 2006-09-06  Mike Kestner  <mkestner@novell.com>
13421
13422         * Splitter.cs: use the "current" rect when finishing drag handle
13423         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
13424
13425 2006-09-06  Mike Kestner  <mkestner@novell.com>
13426
13427         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
13428         support offset splitters. [Fixes #79298]
13429
13430 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
13431
13432         * Mime.cs: Fixed a bug that could override the global mime type
13433           result.
13434
13435 2006-09-05  Jackson Harper  <jackson@ximian.com>
13436
13437         * TabControl.cs: Better calculation method for setting the slider
13438         pos. Prevents crashes on really wide tabs.
13439         - Draw Image on tab pages if an image list is used.
13440
13441 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13442
13443         * MonthCalendar.cs: When Font changes, the Size should be
13444         updated to fit the new font's space requirements.
13445
13446 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
13447
13448         * ListBox.cs: If the items are cleared with Items.Clear set
13449           top_index to 0.
13450
13451 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13452
13453         * MonthCalendar.cs: Handle arrow keys as input keys. Also
13454         fire DateChanged event instead of DateSelected event when
13455         the date was changed by keyboard interaction.
13456
13457 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13458
13459         * DateTimePicker.cs: Handle DateChanged for the associated
13460         month_calendar control, and set month_calendar.Font from 
13461         OnFontChanged method, as well as resize the height of the
13462         control when needed. Make PreferredHeight proportional.
13463
13464 2006-09-01  Chris Toshok  <toshok@ximian.com>
13465
13466         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
13467         properties.
13468
13469         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
13470
13471 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
13472
13473         * FileDialog.cs: Set ClientSize instead of window size, to allow space
13474           for decorations (Fixes #79219)
13475
13476 2006-09-01  Mike Kestner  <mkestner@novell.com>
13477
13478         * ComboBox.cs: first stab at sorting plus some selection handling
13479         fixes to bring us more in line with MS behavior.  Also switches back
13480         to index based selection.  Alternative patches for index-based 
13481         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
13482         and latency@gmx.de on bug 78848.  I assume they were similar to this
13483         code I've had simmering in my tree forever.
13484         [Fixes #78848]
13485
13486 2006-09-01  Chris Toshok  <toshok@ximian.com>
13487
13488         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
13489         when setting list position guard against ending up with a -1 index
13490         (the other part of the fix for #78812).  Should probably make sure
13491         we don't need the analogous fix in the ItemDeleted case.
13492
13493         * DataGrid.cs:
13494         - in SetDataSource, work around the fact that the way
13495         OnBindingContextChanged is invoked will cause us to re-enter this
13496         method.  I'll remove the hack once I investigate
13497         OnBindingContextChanged.
13498
13499         - fix the logic in set_DataSource and set_DataMember (basically
13500         what to do if the other of the two is null.)
13501         
13502         - in OnListManagerItemChanged, we need to take into account the
13503         edit row when deciding whether or not to call RecreateDataGridRows
13504         (part of the fix for #78812).
13505
13506 2006-09-01  Jackson Harper  <jackson@ximian.com>
13507
13508         * Splitter.cs: Don't do anything if there is no control to affect
13509         (prevents us from crashing in weird tet cases).
13510         * TreeView.cs: Bounding box for the mouse movement reverting
13511         focus/selection back to previously selected node.  This matches
13512         MS, and makes the tree a lot more useable.
13513         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
13514         use clipping so they are not drawn.  This fixes when the control
13515         is set to have a transparent background, or if it was over an
13516         image.
13517
13518 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
13519
13520         * MimeIcon.cs: Improved handling for reading default icons when
13521           using gnome (2.16 made it necessary). Check and read svg icons
13522           first, then 48x48 and then 32x32 icons.
13523
13524 2006-08-31  Chris Toshok  <toshok@ximian.com>
13525
13526         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
13527         visible.
13528
13529         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
13530         ProcessKeyPreview.  Fixes part of #77806.
13531
13532         * DataGrid.cs: big patch.
13533
13534         - revert the queueing up of DataSource/DataMember if inside
13535         BeginInit/EndInit calls.  That's not the way the datagrid achieves
13536         its delayed databinding.  Instead, call SetDataSource in
13537         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
13538         #78811.
13539
13540         - Also, it wasn't mentioned in #78811, but the test case exhibits
13541         behavior that was lacking in our datagrid implementation - Columns
13542         that have mapping names that don't exist in the datasource's
13543         properties aren't shown.  Yuck.  To fix this I added the bound
13544         field to the column style, and basically any calculation to figure
13545         out anything about columns uses a loop to find the bound columns.
13546         still need to investigate if I can cache an array of the bound
13547         columns or if the indices must be the same.
13548
13549         - When setting CurrentCell, we no longer abort if the cell being
13550         edited was in the add row.  This fixes the other part of #77806.
13551
13552         - The new code also fixes #78807.
13553         
13554         * ThemeWin32Classic.cs: perpetrate the same disgusting
13555         column.bound field hack, and only render bound fields.
13556
13557 2006-08-31  Chris Toshok  <toshok@ximian.com>
13558
13559         * DataGridColumnStyle.cs: add bound field.  this field is true if
13560         the datasource has a property corresponding to the mapping name.
13561
13562         * DataGridTableStyle.cs: set the bound field on the column styles
13563         depending on whether or not we have a column for that property.
13564
13565 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
13566
13567         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
13568           splitter control (fixes #79228)
13569
13570 2006-08-31  Chris Toshok  <toshok@ximian.com>
13571
13572         * DataGridColumnStyle.cs: we need to delay the assignment of
13573         property descriptor until the last possible moment due to the lazy
13574         databinding stuff in the datagrid.  Also, fix the exceptions
13575         thrown by CheckValidDataSource to match MS.
13576
13577 2006-08-31  Jackson Harper  <jackson@ximian.com>
13578
13579         * Form.cs: When activated select the active control, if there is
13580         no active control, we select the first control.
13581         * XplatUIX11.cs: If there is no focus control when we get a
13582         FocusIn event, find the toplevel form and activate it.  This
13583         occurs when you popup a window, it becomes the focus window, then
13584         you close that window, giving focus back to the main window.
13585
13586 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13587
13588         * MonthCalendar.cs: 
13589         * ThemeWin32Classic.cs: Cache Font in bold style, as well
13590         as StringFormat with Center alignments in MonthCalendar,
13591         instead of creating new ones when drawing the control. 
13592         Also, draw the month name in bold style.
13593
13594 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
13595
13596         * Control.cs:
13597           - PerformLayout(): It would seem MS performs the fill even if the 
13598             control is not visible (part of #79218 fix)
13599           - ResetBackColor(): Use the setter to reset the color, to allow
13600             overriders to catch the change.
13601         * Form.cs:
13602           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
13603           - CreateHandle(): dito (part of $79218 fix)
13604           - Don't set an icon if we have a dialog
13605         * ScrollableControl.cs:
13606           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
13607           - ScrollIntoView(): No need to scroll if control is already visible
13608             (resolves fixme and fixes #79218)
13609
13610 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13611
13612         * MonthCalendar.cs: Change proportions in SingleMonthSize
13613         to match the aspect of the original control.
13614
13615 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
13616
13617         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
13618           get updated when they get maximized.
13619
13620 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
13621
13622         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
13623
13624 2006-08-29  Chris Toshok  <toshok@ximian.com>
13625
13626         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
13627
13628 2006-08-29  Jackson Harper  <jackson@ximian.com>
13629
13630         * TreeView.cs: Need to track selected node and highlighted node,
13631         they aren't always the same thing, when the mouse is down on a
13632         node it is hilighted, but not selected yet.
13633         - Do the HideSelection stuff right
13634         - Need to focus on rbutton mouse down. And redraw selection when
13635         right click is mouse upped.
13636
13637 2006-08-29  Mike Kestner  <mkestner@novell.com>
13638
13639         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
13640         when SubItems.Count < Columns.Count.  [Fixes #79167]
13641
13642 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
13643
13644         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
13645
13646 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
13647
13648         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
13649           from X. Only send based on ConfigureNotify if we don't have the
13650           correct location in hwnd (if the window manager moved us)
13651
13652 2006-08-28  Mike Kestner  <mkestner@novell.com>
13653
13654         * ListView.cs: remove a TODO. 
13655         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
13656         [Fixes ListView part of #79166]
13657
13658 2006-08-28  Mike Kestner  <mkestner@novell.com>
13659
13660         * ListView.cs: move wheel handler to parent since it is focused
13661         instead of the item_control now.  [Fixes #79177]
13662
13663 2006-08-28  Mike Kestner  <mkestner@novell.com>
13664
13665         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
13666         when the control is focused. [Fixes #79171]
13667
13668 2006-08-28  Mike Kestner  <mkestner@novell.com>
13669
13670         * ListView.cs: size the item and header controls for empty and
13671         unscrollable views.
13672         * ThemeWin32Classic.cs: draw disabled backgrounds.
13673         [Fixes #79187]
13674
13675 2006-08-28  Chris Toshok  <toshok@ximian.com>
13676
13677         * Form.cs: remove unused "active_form" static field.
13678
13679         * Hwnd.cs: lock around accesses to static windows collection.
13680
13681         * Application.cs: lock threads in Exit ().
13682
13683 2006-08-28  Chris Toshok  <toshok@ximian.com>
13684
13685         * NativeWindow.cs: lock around accesses to window_collection.
13686         
13687 2006-08-28  Chris Toshok  <toshok@ximian.com>
13688
13689         * Control.cs: err, fix this the right way, by locking on controls
13690         when using it.  not by making it synchronized.
13691
13692 2006-08-28  Chris Toshok  <toshok@ximian.com>
13693
13694         * Control.cs: make the static "controls" field synchronized, as it
13695         gets updated from multiple threads.
13696
13697 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
13698
13699         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
13700           Prevent other threads from exiting when calling thread sets quit state.
13701         * XEventQueue.cs: Added PostQuitState property
13702
13703 2006-08-27  Chris Toshok  <toshok@ximian.com>
13704
13705         * AsyncMethodData.cs: add a slot for the window handle.
13706
13707         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
13708         window (the destination control's window, not the foster window).
13709
13710         * Control.cs (BeginInvokeInternal): store the window's handle in
13711         the AsyncMethodData.
13712         
13713
13714 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
13715
13716         * XplatUIX11.cs:
13717           - PostQuitMessage: Removed resetting S.D display handle, we might have
13718             another loop started after calling PostQuitMessage (Fixes #79119)
13719           - Created destructor to reset S.D handle
13720
13721 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
13722
13723         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
13724
13725 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13726
13727         * TextControl.cs (Insert): Update the caret position even if we don't
13728           have a handle yet, just don't call the driver in that case.
13729         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
13730           to the end of the new selection text (Fixes #79184)
13731
13732 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13733
13734         * Form.cs (Activate): Only activate if the handle is created)
13735         * Control.c:
13736           - Mark window as invisible when it's disposed
13737           - Check if window handle is created when setting window visible, 
13738             instead of relying just on the is_created variable
13739           - Check if object is disposed when creating the control (Fixes #79155)
13740
13741 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13742
13743         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
13744           when allowing layout again. Otherwise we re-generate the anchoring 
13745           distance to the border again and actually alter what the user wanted
13746           This is ugly, it'd be better if we used DisplayRectangle instead of
13747           ClientRectangle for Control.UpdateDistances, but that causes us to
13748           have other problems (initial anchoring positons would be wrong)
13749           (Fixes #78835)
13750
13751 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13752
13753         * Control.cs:
13754           - The size and location setters shouldn't go directly to 
13755             SetBoundsCore, but to SetBounds, which triggers layout on the
13756             parent, then calls SetBoundsCore. (Related to fix for #78835)
13757           - SetBounds: Moved actual location update code into this function
13758             from SetBoundsCore, to match MS. Added call to PerformLayout if
13759             we have a parent (to trigger resizing of anchored parents if the 
13760             child size has changed (see testcase for #78835) 
13761         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
13762           new control code
13763         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
13764
13765 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13766
13767         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
13768           System.Drawing when a toplevel window gets closed; there might
13769           be other toplevel windows belonging to the same app (Fixes #78052)
13770
13771 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
13772
13773         * FileDialog.cs: After reading FileDialog settings from mwf_config
13774           use Desktop prefix only if a real folder doesn't exist anymore.
13775         * FontDialog.cs: Added char sets.
13776           It is now possible to select the font, size or style with the
13777           textboxes.
13778
13779 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
13780
13781         * PrintPreviewDialog.cs: Use assembly name constants.
13782
13783 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13784
13785         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
13786           scrollbar from whacking it's buttons)
13787
13788 2006-08-24  Chris Toshok  <toshok@ximian.com>
13789
13790         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
13791         in this patch (aggregating setting Left/Top/Width/Height to
13792         setting Bounds on the scrollbars), but the crux of the fix is in
13793         Recalculate, where we scroll by the remaining scroll_position if
13794         we're hiding a scrollbar.  The 2*$5 reward in the comment is
13795         serious.
13796
13797 2006-08-24  Jackson Harper  <jackson@ximian.com>
13798
13799         * MdiClient.cs:
13800         * MdiWindowManager.cs: If the form is made a non-mdi window we
13801         need to remove the form closed event so that closing forms works
13802         correctly.
13803
13804 2006-08-24  Jackson Harper  <jackson@ximian.com>
13805
13806         * Control.cs: Make IsRecreating internal so that the driver can
13807         check it
13808         - Temporarily remove the Hide when controls are removed, its
13809         making a whole bunch of things not work because visibility isn't
13810         getting reset elsewhere correctly
13811         * Form.cs: Need to do a full handle recreation when the mdi parent
13812         is set.
13813         * XplatUIX11.cs: If we are recreating handles don't dispose the
13814         HWNDs.  What was happening is the handles were being recreated in
13815         SendWMDestroyMessages, but then flow continued on in that method
13816         and destroyed the new handles.
13817
13818 2006-08-23  Jackson Harper  <jackson@ximian.com>
13819
13820         * Form.cs: MdiClient is always at the back of the bus
13821         * Control.cs: When the order of items in the collection is changed
13822         we need to reset the all_controls array
13823         - do the same sorta setup thats done when adding a control when a
13824         control is set on the collection.
13825
13826 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13827
13828         * TextBoxBase.cs (get_Text): Return an empty array if our document
13829           is empty (fixes #79052)
13830
13831 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13832
13833         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
13834           on WM_SYSCHAR messages (fixes #79053)
13835
13836 2006-08-23  Chris Toshok  <toshok@ximian.com>
13837
13838         * DataGrid.cs: fix flickering when scrolling vertically.
13839
13840 2006-08-23  Chris Toshok  <toshok@ximian.com>
13841
13842         * DataGrid.cs (EndEdit): only invalidate the row header when we
13843         need to.
13844
13845 2006-08-23  Chris Toshok  <toshok@ximian.com>
13846
13847         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
13848         methods.  fixes the flicker when scrolling around.
13849
13850 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13851
13852         * FileDialog.cs: Making sure the control is created before we get a 
13853           chance to use it with BeginInvoke (Fixes #79096)
13854
13855 2006-08-23  Chris Toshok  <toshok@ximian.com>
13856
13857         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
13858         width to use when painting the rows.
13859
13860 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13861
13862         * TextBoxBase.cs:
13863           - Throw ArgumentException if a negative value is passed to SelectionLength
13864           - Update the selection end if start is moved. end needs to be always
13865             after start. (Fixes #79095)
13866           - Track selection length; MS keeps the selection length even if start
13867             is changed; reset on all other operations affection selection
13868
13869 2006-08-22  Jackson Harper  <jackson@ximian.com>
13870
13871         * TreeView.cs: Make sure both scrollbars get displayed and sized
13872         correctly when the other bar is visible.
13873         - Use the original clip rectangle for checking if the area between
13874         the two scrollbars is visible, not the viewport adjusted clipping
13875         rectangle.
13876
13877 2006-08-22  Jackson Harper  <jackson@ximian.com>
13878
13879         * Binding.cs: We don't use IsBinding because it requires the
13880         control to be created, which really shouldn't be necessary just to
13881         set a property on the control.
13882
13883 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13884
13885         * ComboBox.cs: Some CB.ObjectCollection methods must throw
13886         ArgumentNullReferenceException when the argument is null.
13887
13888 2006-08-21  Jackson Harper  <jackson@ximian.com>
13889
13890         * Timer.cs: Track the thread that the timer is started in (NOT
13891         CREATED), this way messages for it will only be triggered on its
13892         queue.
13893         * XEventQueue.cs: Track the timers here, this makes timers per
13894         thread, like MS.
13895         * XplatUIX11.cs: The timers are moved to the XEventQueue.
13896
13897 2006-08-19  Chris Toshok  <toshok@ximian.com>
13898
13899         * XplatUIX11.cs: after further communication with pdb, we get the
13900         best of both worlds.  SetZOrder working for un-Mapped windows, and
13901         no X errors for un-mapped windows.
13902
13903 2006-08-19  Chris Toshok  <toshok@ximian.com>
13904
13905         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
13906         as it was causing pdn toolbars to not have the correct stacking.
13907
13908 2006-08-18  Mike Kestner  <mkestner@novell.com> 
13909
13910         * ListView.cs : guard against negative ClientArea.Width in scrollbar
13911         calculation.  Not sure why control should ever be setting a negative
13912         width though.  Fixes #78931.
13913
13914 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13915
13916         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
13917         null items in ObjectCollection class.
13918         * ListBox.cs.: Likewise.
13919
13920 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
13921
13922         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
13923           as the base method in ThemeWin32Classic should work fine.
13924           Fixed bug #78607.
13925
13926 2006-08-18  Jackson Harper  <jackson@ximian.com>
13927
13928         * Binding.cs: When validating if the value entered doesn't convert
13929         properly reset to the old value.
13930         * RadioButton.cs: Don't fire click when we get focus.
13931
13932 2006-08-18  Jackson Harper  <jackson@ximian.com>
13933
13934         * FileDialog.cs: Paint the selection on the directory combobox the
13935         same way as on MS. 
13936
13937 2006-08-17  Jackson Harper  <jackson@ximian.com>
13938
13939         * ErrorProvider.cs: Don't allow the error control to be selected.
13940         * Control.cs: Don't send the SetFocus messages, the control
13941         activation will do this, and if we do it blindly here validation
13942         does not work.
13943
13944 2006-08-17  Jackson Harper  <jackson@ximian.com>
13945
13946         * Control.cs:
13947         * ContainerControl.cs: Make validation events fire in the correct
13948         order.  TODO: For some reason the first validation event is not
13949         getting fired.
13950
13951 2006-08-17  Mike Kestner  <mkestner@novell.com> 
13952
13953         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
13954
13955 2006-08-17  Mike Kestner  <mkestner@novell.com> 
13956
13957         * ComboBox.cs : implement scroll wheel support for popped-down
13958         state. Fixes #78945. 
13959
13960 2006-08-17  Jackson Harper  <jackson@ximian.com>
13961
13962         * TreeView.cs: Specify treeview actions (old patch that didn't get
13963         committed for some reason).
13964         - Don't let the mouse wheel scroll us too far.  Just want to make
13965         the bottom node visible, not scroll it all the ways to the top.
13966
13967 2006-08-17  Jackson Harper  <jackson@ximian.com>
13968
13969         * XplatUIX11.cs: Mouse wheel events go to the focused window.
13970
13971 2006-08-17  Mike Kestner  <mkestner@novell.com> 
13972
13973         * ComboBox.cs : don't do mouseover selection in simple mode.
13974
13975 2006-08-16  Jackson Harper  <jackson@ximian.com>
13976
13977         * Form.cs: Fire the closing events for all the mdi child windows
13978         when a window is closed.  If the cancel args are set to true, the
13979         main window still gets the event fired, but it doesn't not close.
13980         * MdiWindowManager.cs: Do this closing cleanup in a Closed
13981         handler, instead of when the button is clicked, so cancelling the
13982         close works correctly.
13983         * ComboBox.cs: Send the mouse down to the scrollbar.
13984
13985 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13986
13987         * ListBox.cs: When passing 'null' to SelectedItem,
13988         set SelectedIndex to -1, to unselect items. This is the
13989         observed behaviour in .Net.
13990
13991 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
13992
13993         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
13994           MS flags saying there won't be any. (fixes #78800)
13995         * Control.cs (HandleClick): Made virtual
13996
13997 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
13998
13999         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
14000           cultures. Fixed bug #78399.
14001
14002 2006-08-16  Jackson Harper  <jackson@ximian.com>
14003
14004         * Form.cs: Use the MdiClients MdiChildren property to access
14005         MdiChildren instead of creating the array from the child controls.
14006         * MdiClient.cs: Maintain a separate array of the mdi children, so
14007         that insertion order is maintained when the Z-order is changed.
14008
14009 2006-08-16  Mike Kestner  <mkestner@novell.com> 
14010
14011         * ListView.cs : add an ItemComparer and default to it for sorting.
14012         Fixes #79076, but sorting needs a complete overhaul to be compat with
14013         MS.
14014
14015 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
14016
14017         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
14018
14019 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
14020
14021         * Hwnd.cs (Mapped): Properly traverse the tree
14022
14023 2006-08-15  Chris Toshok  <toshok@ximian.com>
14024
14025         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
14026         pass manager.Current.GetType() to ParseData.  It has to be the
14027         property type.  So, hold off doing the ParseData until we're in
14028         SetPropertyValue where we know the type.  This fixes the crash in
14029         #78821 but the textbox is still empty.
14030
14031 2006-08-15  Chris Toshok  <toshok@ximian.com>
14032
14033         * DataGrid.cs:
14034         - when we're scrolling, only call Edit() again if the
14035         current cell is still unobscured. Fixes bug #78927.
14036         - when handling mousedown on a cell, ensure the cell is visible
14037         before calling Edit.
14038         - remove the properties from DataGridRow, and remove the
14039         DataGridParentRow class altogether.
14040         
14041
14042 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
14043
14044         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
14045           fire OnTextChanged by ourselves. There's no point calling base,
14046           we don't set the base value anywhere else. Fixes #78773.
14047
14048 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14049
14050         * ListBox.cs: Call CollectionChanged when modifying
14051         an item from Items indexer, to update the actual items
14052         in the list box.
14053
14054 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14055
14056         * PrintDialog.cs: Small fixes for focus and a pair of checks,
14057         to match .Net behaviour.
14058
14059 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
14060
14061         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
14062
14063 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
14064
14065         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
14066
14067 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
14068
14069         * MessageBox.cs: Prevent potential NRE exception.
14070         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
14071
14072 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
14073
14074         * MessageBox.cs: Calculate the owner of a messagebox, also make
14075           it topmost. Fixes #78753
14076
14077 2006-08-14  Chris Toshok  <toshok@ximian.com>
14078
14079         * XplatUIX11.cs: A couple of fixes so that metacity will let us
14080         programmatically move windows.  first, set the PPosition hint as
14081         well as the USPosition hint.  Second include some code from pdb
14082         that sets the window type to NORMAL when we set the transient for
14083         hint.  This is because, in the absence of a window type, metacity
14084         thinks any window with TransientFor set is a dialog, and refuses
14085         to let us move it programmatically.  fascists.
14086
14087 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
14088
14089         * XplatUIX11.cs: When setting normal hints, take into consideration
14090           an different hints previously set so we don't delete them (fixes #78866)
14091
14092 2006-08-12  Chris Toshok  <toshok@ximian.com>
14093
14094         * ToolBarButton.cs: make Layout return a boolean, if something to
14095         do with the button's layout changed.
14096
14097         * ToolBar.cs:
14098         - add another parameter to Redraw, @force, which all existing
14099           calls set to true.
14100         - make the Layout function return a boolean which is true if the
14101           layout has actually changed.  Redraw now uses this (and @force)
14102           to determine when to invalidate.  At present the only place
14103           where @force can be false is the call from OnResize, when
14104           background_image == null.  So, resizing a toolbar when the
14105           layout doesn't change results in no drawing.
14106
14107 2006-08-12  Chris Toshok  <toshok@ximian.com>
14108
14109         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
14110         the VScrollBar and HScrollbar reversed.  oops.
14111
14112         * DataGrid.cs: fix the logic that assigns sizes to the implicit
14113         scrollbars.  we were assigning them twice (once in
14114         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
14115         therefore causing two scrollbar resizes (and redraws?) to happen
14116         per grid resize.
14117
14118 2006-08-12  Chris Toshok  <toshok@ximian.com>
14119
14120         * ToolBarButton.cs: redraw the entire button if the theme tells us
14121         to.
14122
14123         * Theme.cs: add ToolBarInvalidateEntireButton.
14124
14125         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
14126         buttons, just the border.
14127
14128         * ThemeNice.cs: redraw the entire toolbar button since we need to
14129         draw the highlight image.
14130
14131         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
14132         we need to redraw the entire button (not just the border).
14133
14134 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
14135
14136         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
14137           for vertical bars. Fixes the mismatches shown by #78513
14138
14139 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
14140
14141         * FileDialog.cs: If a saved/remembered path doesn't exist
14142           anymore, fall back to "Desktop".
14143
14144 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
14145
14146         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
14147           parent. It's apparently legal to not have one
14148         * XplatUIX11.cs:
14149           - SetZOrder: Don't try to set Z-Order on an unmapped window
14150           - CreateWindow: 0,0 are legal coordinates for a window. don't move
14151             it unless the coordinates are negative
14152
14153 2006-08-10  Mike Kestner  <mkestner@novell.com>
14154
14155         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
14156         when setting to null per msdn docs.  Fixes #78854.
14157
14158 2006-08-10  Chris Toshok  <toshok@ximian.com>
14159
14160         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
14161         flickering by setting a clip rectangle on the Graphics when we
14162         need to redraw just a particular menuitem.  Also, rename "OnClick"
14163         to "OnMouseDown" to reflect what it actually is.
14164         
14165         * Form.cs: track the OnMouseDown change.
14166
14167 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
14168
14169         * CommonDialog.cs: Properly inherit the CreateParams from the form
14170           and only change what we need. Fixes #78865
14171
14172 2006-08-10  Chris Toshok  <toshok@ximian.com>
14173
14174         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
14175         flickering in flat mode (and most of the flickering in general) by
14176         only invalidating the button border (and not the entire rectangle)
14177         when the state changes.  A couple of cases still flicker:
14178         ToggleButtons, and the dropdown arrow case when the user mouse
14179         ups.
14180
14181 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
14182
14183         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
14184           for german keyboards. Numlock state shouldn't affect the behaviour
14185           of the Del key. Fixes bug #78291.
14186
14187 2006-08-10  Chris Toshok  <toshok@ximian.com>
14188
14189         * ListControl.cs: remove the items.Clear line from BindDataItems,
14190         as this is the first thing done by both subclasses in their
14191         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
14192         passed -1, refresh the list.  This gets databinding working when
14193         the datasource is set on the list before the datasource is
14194         populated (as in wf-apps/ReportBuilder.)
14195
14196         * ComboBox.cs: remove the argument to BindDataItems.  This call
14197         should really go away, and be initiated by the ListControl code.
14198
14199         * ListBox.cs: same.
14200
14201 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
14202
14203         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
14204           if no data is in the document when the control is displayed
14205
14206 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
14207
14208         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
14209           yes (fixes #78806)
14210         * TextControl.cs: 
14211           - PositionCaret: Allow positioning of caret but don't call methods 
14212             requiring a handle if the window isn't created yet
14213           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
14214           - owner_HandleCreated: Don't position the caret, just update it's 
14215             location. User might have already set a different position
14216
14217 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
14218
14219         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
14220           windows. Screws up the returned coordinates for child windows. 
14221           Fixes #78825. I'm hoping this doesn't break something, since the
14222           code was explicitly put in 8 months ago, but no bug was attached.
14223           Menus still seem to work properly.
14224
14225 2006-08-08  Chris Toshok  <toshok@ximian.com>
14226
14227         * DataGrid.cs: make BeginInit/EndInit actually do what they're
14228         supposed to do - delay data binding until the EndInit call.  Also,
14229         make the table style collection's CollectionChangeAction.Refresh
14230         work properly.
14231
14232         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
14233         (with action = Refresh) when a consituent table's MappingName is
14234         changed.
14235
14236 2006-08-08  Chris Toshok  <toshok@ximian.com>
14237
14238         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
14239         Invalidate, since changing the text can change the size of the all
14240         toolbar buttons.
14241
14242 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
14243
14244         * Form.cs (AddOwnedForm): Still need to add the form to our listif
14245           we don't have it yet
14246
14247 2006-08-08  Chris Toshok  <toshok@ximian.com>
14248
14249         * PrintControllerWithStatusDialog.cs: don't .Close() the status
14250         dialog, as this causes X errors later on, since we actually
14251         destroy the window.  Instead, .Hide() it.
14252
14253 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
14254
14255         * ComboBox.cs: Added focus reflection for popup window
14256         * XplatUIX11.cs: 
14257           - Removed transient setting for non-app windows for now, not sure it
14258             was needed
14259           - Fixed logic checking if we have captions when deciding 
14260             override_redirect, WS_CAPTION is two bits and a 0 check was not
14261             sufficient
14262           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
14263             complicated
14264         * Form.cs: 
14265           - AddOwnedForm: Don't just add the form to the list, call the property
14266             to ensure the driver is informed about the ownership as well
14267           - CreateHandle: Set the TopMost status in the driver if we have an owner
14268         * XplatUI.cs: Fixed debug statement
14269
14270 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
14271         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
14272           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
14273           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
14274           TrackBarRenderer.cs: Make constructor private.
14275         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
14276         * ProfessionalColorTable.cs: Make properties virtual.
14277
14278 2006-08-06  Duncan Mak  <duncan@novell.com>
14279
14280         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
14281         is not changing.
14282
14283 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
14284         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
14285           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
14286           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
14287           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
14288           Initial import of new 2.0 classes.
14289
14290 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
14291         * Application.cs: Add 2.0 VisualStyles properties.
14292
14293 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
14294         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14295           XplatUIX11.cs: Create property to allow access to existing private
14296           variable "themes_enabled"
14297
14298 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14299
14300         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
14301         file size, as otherwise our class libraries fail using windows. Fixes
14302         bug #78759.
14303
14304 2006-08-04  Jackson Harper  <jackson@ximian.com>
14305
14306         * Form.cs:
14307         * XplatUIX11.cs: Move the toolwindow window manager creation into
14308         the X11 driver, this way on win32 we can let windows create/handle
14309         the toolwindows.
14310
14311 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14312
14313         * PrintDialog.cs: Remove some redundant checks, add some others,
14314         clean some code, and move the focus to the text boxes when the
14315         values are incorrect.
14316
14317 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
14318
14319         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
14320
14321 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
14322
14323         * NumericUpDown.cs: Setting the Minimum and Maximum is now
14324           handled correctly. Fixes bug #79001.
14325
14326 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14327
14328         * PrintDialog.cs: The "Copies" numeric up down must have
14329         set the Minimum property to 1; only if the value is bigger
14330         than 1, activate "Collate" check box. This is the behaviour of .Net.
14331         Also modify the Document elements only if it is not null.
14332
14333 2006-08-03  Jackson Harper  <jackson@ximian.com>
14334
14335         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
14336         length. (We have a larger array then actual node count).
14337                 
14338 2006-08-03  Jackson Harper  <jackson@ximian.com>
14339
14340         * ComboBox.cs: Don't show selection by default.
14341         - The SelectAll isn't needed here, since the focus code should do
14342         that
14343         - DDL style lists to manual selection drawing, so when they
14344         get/lose focus they have to invalidate.
14345
14346 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
14347
14348         * TextBoxBase.cs: Don't always show all selections by default.
14349
14350 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
14351         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
14352           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
14353           Fixed various typos.
14354
14355 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
14356
14357         * Control.cs: Removing the controls in a ControlCollection with
14358           Clear now hides the controls as expected. Fixes bug #78804. 
14359
14360 2006-08-03  Jackson Harper  <jackson@ximian.com>
14361
14362         * Control.cs: Revert previous focus patch, it breaks reflector.
14363
14364 2006-08-03  Jackson Harper  <jackson@ximian.com>
14365
14366         * ComboBox.cs: Cleanup selection and focus with the combobox.
14367         This also eliminates some duplicated keyboard code, since now
14368         everything is handled by the main class.
14369         - Make list selection work on mouse up instead of down, to match
14370         MS.
14371
14372 2006-08-02  Jackson Harper  <jackson@ximian.com>
14373
14374         * Control.cs: Setting focus needs to go through the whole
14375         selection mechanism.
14376
14377 2006-08-02  Chris Toshok  <toshok@ximian.com>
14378
14379         * PrintPreviewDialog.cs: change MinimumSize to use
14380         base.MinimumSize so it works.
14381
14382 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
14383
14384         * TextControl.cs:
14385           - UpdateCaret: Added sanity check in case caret isn't defined yet
14386           - Line.Delete: Now updating selection and caret markers if we're
14387             transfering a node (Properly fixes #78323)
14388           - SetSelectionEnd: Added sanity check
14389         * TextBoxBase.cs: Removed broken attempt to fix #78323
14390
14391 2006-08-01  Chris Toshok  <toshok@ximian.com>
14392
14393         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
14394         Close() call is handled in Form, not here.
14395
14396 2006-08-01  Chris Toshok  <toshok@ximian.com>
14397
14398         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
14399         layout/rendering.
14400
14401         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
14402         for sizes < 100% zoom.  The code now aggressively attempts to keep
14403         from calling document.Print (), and tries not to use the scaling
14404         g.DrawImage whenever possible (it still does if you scale to >
14405         100%, since usually that involves huge images).
14406
14407         * PrintPreviewControl.cs: hook up the close button.
14408
14409 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
14410         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
14411           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
14412           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
14413           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
14414           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
14415           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
14416           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
14417           Removed [Serializable] for 2.0 Event Handlers.
14418
14419 2006-07-31  Jackson Harper  <jackson@ximian.com>
14420
14421         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
14422         * TextControl.cs: Uncomment out the body of this method.
14423
14424 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
14425
14426         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
14427           standard cursors.
14428
14429 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
14430
14431         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
14432           that embed TextBox and need selections visible even if textbox is not
14433           focused to enforce that behaviour.
14434         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
14435           selection drawing
14436
14437 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
14438
14439         * TextControl.cs:
14440           - Added new SetSelectionStart/SetSelectionEnd overloads
14441           - Fixed viewport width assignment to be accurate
14442           - Adjusted alignment line shift calculations to allow cursor on right
14443             aligned lines to be always visible at the right border (like MS)
14444         * TextBoxBase.cs:
14445           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
14446           - TextBoxBase_SizeChanged: recalculating canvas on size changes
14447           - CalculateScrollBars: Use ViewPort size instead of window size, to
14448             properly consider space occupied by the border and scrollbars 
14449             (Fixes #78661)
14450           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
14451             calculations; no longer leaves artifacts
14452           - CaretMoved: Adjusted window scrolling to match MS and fixed several
14453             calculation bugs (Still missing right/center align calculations)
14454
14455 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
14456
14457         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
14458           use of both scroll rect and clip rect, as they do the same.
14459
14460 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
14461
14462         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
14463           in the event handler (fixes #78912)
14464
14465 2006-07-31  Chris Toshok  <toshok@ximian.com>
14466
14467         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
14468         grid.ListManager.Count, since grid.ListManager might be null.
14469         This of course begs the question "why are we drawing rows for a
14470         grid with no list manager (and therefor no rows)?"  Fixes the
14471         crash in bug #78929.
14472
14473 2006-07-31  Chris Toshok  <toshok@ximian.com>
14474
14475         * RelatedPropertyManager.cs: Don't always chain up to the parent
14476         ctor.  instead, call SetDataSource if the parent's position is !=
14477         -1.  Fixes the crash in #78822.
14478
14479 2006-07-31  Chris Toshok  <toshok@ximian.com>
14480
14481         * DataGrid.cs (get_ListManager): use field instead of property
14482         accessors for datasource and datamember.
14483         (RowsCount): make internal again.
14484         (OnMouseDown): end edits before resizing columns/rows.
14485         (OnMouseUp): restart edits after resizing columns/rows.
14486
14487 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
14488
14489         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
14490           This fixes the situation where the last set cursor is displayed
14491           whenever the mouse is over scrollbars.
14492
14493 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14494
14495         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
14496         Document properties, as well as initial values.
14497
14498 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
14499
14500         * XplatUIWin32.cs (SetBorderStyle): Setting both border
14501           and ClientEdge results in a 3-pixel border, which is
14502           wrong.
14503
14504 2006-07-28  Jackson Harper  <jackson@ximian.com>
14505
14506         * TreeNodeCollection.cs: Fix the clear method.
14507         - Fix the Shrink also
14508
14509 2006-07-27  Jackson Harper  <jackson@ximian.com>
14510
14511         * TreeView.cs: Make sure the visible order is computed when we
14512         attempt to size the scrollbars (for trees that mess with the
14513         scrolling when they shouldn't.
14514         - Make sure to give the scrollbars valid values.
14515
14516 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
14517
14518         * XplatUIX11.cs: Move motion compression code to where it
14519           has less performance impact
14520
14521 2006-07-26  Jackson Harper  <jackson@ximian.com>
14522
14523         * UpDownBase.cs: When the control is selected make the child
14524         controls non selectable, so that a click on them won't do a
14525         focus/unfocus cycle.
14526         - Don't give focus to the text box when the spinner is selected.
14527         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
14528
14529 2006-07-26  Chris Toshok  <toshok@ximian.com>
14530
14531         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
14532         satisfied with this solution.  If the bitmaps are small, we should
14533         just cache them in the PrintPreviewDialog and draw them here.
14534         Also, the layout is broken for the 2-up and 3-up cases.
14535
14536         * Theme.cs: add PrintPReviewControlPaint.
14537
14538         * PrintPreviewDialog.cs: first pass implementation.
14539
14540         * PrintPreviewControl.cs: first pass implementation.  No
14541         scrollbars yet.
14542
14543         * PrintDialog.cs: only validate fields if that particular portion
14544         of the UI is enabled.  Also, set the document's controller to a
14545         PrintControllerWithStatusDialog wrapping the document's print
14546         controller.
14547
14548         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
14549         bring up a SaveFileDialog (i hope we don't want to match the
14550         behavior of the crappy windows file entry) and set the
14551         PrinterSettings.PrintFileName accordingly.
14552
14553 2006-07-26  Jackson Harper  <jackson@ximian.com>
14554
14555         * ContainerControl.cs: Add a field that disables auto selecting
14556         the next control in a container when the container is activated.
14557         * UpDownBase.cs: Don't select the text box when the up down is
14558         selected.
14559
14560 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
14561
14562         * XEventQueue.cs: Added methods for peeking (used for compression
14563           of successive events)
14564         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
14565           mouse move events (fixes #78732)
14566
14567 2006-07-25  Jackson Harper  <jackson@ximian.com>
14568
14569         * UpDownBase.cs: Use an internal class for the textbox so that we
14570         can control focus.  the updown control should always have focus,
14571         if either the text area or the buttons are clicked.
14572         - Send the key messages to the textbox, since it never actually
14573         has focus
14574         - Activate and decativate the textbox caret.
14575
14576 2006-07-24  Jackson Harper  <jackson@ximian.com>
14577
14578         * Control.cs: Use the directed select when selecting a control,
14579         this way the container controls override will get called and the
14580         whole ActiveControl chain will get triggered.  TODO: probably need
14581         to make sure this gets done everywhere instead of the old
14582         Select(Control).
14583         * ContainerControl.cs: Implement the directed Select method to
14584         find and activate the correct child control.    
14585         
14586 2006-07-22  Mike Kestner  <mkestner@novell.com>
14587
14588         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
14589         menu handling code so that clicks without a grab work too.
14590         [Fixes #78914]
14591
14592 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
14593
14594         * FileDialog.cs: Enable the BackButton when dirstack has one element.
14595           Added some small optimizations.
14596
14597 2006-07-21  Matt Hargett  <matt@use.net>
14598
14599         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
14600
14601 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
14602
14603         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
14604           tests pass and match MS in some strange border cases.
14605
14606 2006-07-21  Chris Toshok  <toshok@ximian.com>
14607
14608         * ThemeWin32Classic.cs: handle drawing of the relation links and
14609         parent row buttons.
14610
14611         * Theme.cs: change args to DataGridPaintParentRow.
14612
14613         * DataGrid.cs: Don't use controls for the relation links and
14614         parent buttons, so we have to handle all their interactions in
14615         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
14616         when we're navigating through child tables, so we can reinstate
14617         selection, expanded state, current cell, etc.
14618
14619 2006-07-20  Chris Toshok  <toshok@ximian.com>
14620
14621         * ToolBar.cs: When we redraw a button, for whatever reason,
14622         there's no reason to redraw the entire toolbar.  Also, don't call
14623         Control.Refresh from within Redraw, as it's much heavier than
14624         Invalidate (which is really what we want).
14625
14626 2006-07-20  Chris Toshok  <toshok@ximian.com>
14627
14628         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
14629         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
14630         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
14631         traces from within a debug IBindingList datasource
14632         (in mono/winforms/datagrid) for *days*, I've finally gotten things
14633         to work in a similar fashion.
14634
14635 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14636
14637         * ListBox.cs: Don't call Sort () when setting 
14638         the Sorted property to false (avoid an unnecessary sort).
14639
14640 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14641
14642         * ListControl.cs: DataSource should throw an ArgumentException
14643         instead of a normal exception when the argument is not of the 
14644         correct type.
14645
14646 2006-07-20  Mike Kestner  <mkestner@novell.com>
14647
14648         * Control.cs: add InternalPreProcessMessage to allow us to steal
14649         key events before MWF gets its paws on them.  Adapted from a
14650         suggestion by eno.
14651         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
14652         up/down/left/right navigation. Override the new internal control
14653         method to steal the events since they never make it to WndProc.
14654         * ToolBarButton.cs: don't worry about pushed when setting hilight
14655         since the drawing code prefers pushed to hilight. Invalidate on 
14656         Hilight changes. Fixes #78547 and #78525.
14657
14658 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
14659
14660         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
14661           the canvas size. Fixes #78868
14662
14663 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
14664
14665         * Splitter.cs: Track requested split position until first layout
14666           is performed. Fixes #78871
14667
14668 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
14669
14670         * Application.cs: Removed code that forces 1.x for the version
14671           number if the version started with 0. Not sure why that code was
14672           there and I couldn't find any bugs that indicated we needed it.
14673           Fixes #78869
14674
14675 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
14676
14677         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
14678           ResetDefaults(), just write some output to the console until it's
14679           implemented. Fixes bug #78907 for now. Eliminated two warnings.
14680
14681 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
14682
14683         * PropertyGridView.cs: set StartPosition of drop down forms
14684         so they appear in correct initial spot.  Fixes #78190.
14685
14686 2006-07-19  Mike Kestner  <mkestner@novell.com>
14687
14688         * ThemeWin32Classic.cs: use parent background color when drawing
14689         flat toolbars.  Restructure the conditionals to make sure non-flat
14690         non-Divider toolbars are filled too.  Fixes #78837.
14691
14692 2006-07-19  Mike Kestner  <mkestner@novell.com>
14693
14694         * ListBox.cs: Sort on collection changes even if the handle
14695         isn't created yet.  Fixes #78813.
14696
14697 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14698
14699         * ListControl.cs: DisplayMember should never be null,
14700         and now we assign String.Empty when null is passed to it (this
14701         is the .Net way).
14702
14703 2006-07-17  Mike Kestner  <mkestner@novell.com>
14704
14705         * ListViewItem.cs: restructure Font and subitem Font handling 
14706         to hold a specific font and refer back to owner on null.
14707         Fixes #78761.
14708
14709 2006-07-17  Mike Kestner  <mkestner@novell.com>
14710
14711         * ToolBar.cs: bandaid for side-effect of previous patch which was
14712         discarding explicit heights for non-AutoSize toolbars.  Need to
14713         extend my format tester to deal with AutoSize=false. Fixes #78864.
14714
14715 2006-07-15  Jackson Harper  <jackson@ximian.com>
14716
14717         * LabelEditTextBox.cs:
14718         * TreeView.cs: Use a new LabelEdit class for node editing, this
14719         class automatically 'closes' itself when it gets the enter key or
14720         loses focus.
14721         - Use the client rectangle when setting the trees scrollbars, so
14722         border style is taken into account.
14723         
14724 2006-07-14  Jackson Harper  <jackson@ximian.com>
14725
14726         * TreeNode.cs:
14727         * TreeView.cs: Make the editing work similar to MSs, firing the
14728         events correctly and ending edits correctly.
14729
14730 2006-07-14  Mike Kestner  <mkestner@novell.com>
14731
14732         * ToolBarButton.cs:
14733         * ToolBar.cs: layout restructuring and redraw enhancements to support
14734         formatting changes gracefully, like setting TextAlign, ImageList, 
14735         ButtonSize, and Appearance.  Handles explicit button sizing quirks
14736         of the MS controls.  Things like flat toolbars ignoring button size
14737         but becoming constant sized at the largest button's size.  Normal
14738         toolbars with an image set cannot be shrunk smaller than the image,
14739         but text can be clipped/ignored.
14740         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
14741         is zero.  Seems like DrawString should be smart enough to not put
14742         anything on screen though. Also trim labels and ellipsize at the char
14743         boundary, not word.
14744         Fixes #78711 and #78483.
14745
14746 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
14747
14748         * FolderBrowserDialog.cs: Disable "New Folder" button and
14749           "New Folder" contextmenu menuitem if a folder like "My Computer"
14750           is selected.
14751
14752 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
14753
14754         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
14755         * FolderBrowserDialog.cs:
14756           - Use MWFConfig to store and read size and position settings
14757           - Added code to create a new folder (button or context menu).
14758             Use TreeView labeledit to change the name of the new folder.
14759
14760 2006-07-14  Jackson Harper  <jackson@ximian.com>
14761
14762         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
14763         when the tree is scrolled we end editing.
14764
14765 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
14766
14767         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
14768           Down arrows
14769
14770 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
14771
14772         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
14773         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
14774         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
14775         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
14776         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
14777         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
14778         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
14779         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
14780         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
14781         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
14782         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
14783         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
14784         ListViewItemSelectionChangedEventHandler.cs,
14785         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
14786         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
14787         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
14788         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
14789         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
14790         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
14791         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
14792         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
14793         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
14794         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
14795         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
14796         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
14797         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
14798         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
14799         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
14800         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
14801         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
14802         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
14803         WebBrowserNavigatingEventHandler.cs, 
14804         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
14805
14806 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
14807
14808         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
14809         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
14810         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
14811         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
14812         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
14813         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
14814         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
14815         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
14816         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
14817         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
14818         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
14819         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
14820         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
14821         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
14822         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
14823         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
14824         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
14825         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
14826         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
14827         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
14828         ListViewItemStates.cs, MaskFormat.cs: Added
14829
14830 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
14831
14832         * PropertyGridView.cs: Fix keyboard navigation of drop down.
14833         Patch from eno for bug 78558.
14834         
14835 2006-07-13  Jackson Harper  <jackson@ximian.com>
14836
14837         * TreeView.cs: When an edit is finished make sure that the
14838         selected node is visible.
14839         - When setting the top/bottom use the scrollbars is_visible, so
14840         everything will be set correctly even if the tree isn't visible
14841         yet.
14842
14843 2006-07-13  Jackson Harper  <jackson@ximian.com>
14844
14845         * ComboBox.cs: Revert the item->index part of my previous patch.
14846         * TreeView.cs: Use LostFocus instead of Leave for detecting when
14847         the edit box has lost focus (duh).
14848         - Just make the edit box not visible when we get return, that will
14849         take the focus, which will call EndEdit
14850         * TreeNode.cs When we start editing, notify the treeview.
14851
14852 2006-07-12  Jackson Harper  <jackson@ximian.com>
14853
14854         * ComboBox.cs: Clear out old items before setting the item list.
14855         This prevents databound controls from having their items added
14856         twice.
14857         - Switch the combobox to use indices whereever possible instead of
14858         using Item's.  This allows usto navigate through lists that have
14859         more then one item with the same string value (ie a, b, b, a).
14860         - Scroll the listboxes scrollbar when a non visible item is
14861         highlighted
14862         - Allow keypress to cycle through all the possible values. For
14863         example if you have b1, b2, b3 and hold down the B key all the
14864         values will be cycled through.
14865         
14866 2006-07-12  Jackson Harper  <jackson@ximian.com>
14867
14868         * TextBoxBase.cs:
14869         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
14870         this using the internal methods.
14871         * Control.cs: Add OnGotFocusInternal.  A new method that allows
14872         controls to "override" OnGotFocus and change focus behavior if
14873         needed.
14874         - Same thing for LostFocus
14875         * ComboBox.cs: Pass off focus to the text control properly.
14876
14877 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
14878
14879         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
14880         * FolderBrowserDialog.cs: Almost a complete rewrite.
14881           - Better support for Environment.Specialfolders
14882           - Added support for MWFVFS
14883           - Made setting SelectedPath work
14884
14885 2006-07-12  Jackson Harper  <jackson@ximian.com>
14886
14887         * Control.cs: Optimze getting all the controls.
14888
14889 2006-07-11  Jackson Harper  <jackson@ximian.com>
14890
14891         * ContainerControl.cs: Override SETFOCUS in the container control,
14892         so that it is not selected on mouse click.
14893
14894 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
14895
14896         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
14897           Hopefully we will have a better way once all of focus is complete.
14898
14899 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
14900
14901         * ThemeWin32Classic.cs: Commented out some debug code and fixed
14902           a compile error with csc.
14903
14904 2006-07-11  Jackson Harper  <jackson@ximian.com>
14905
14906         * Control.cs: When hiding a control only select the next control
14907         if the current control was focused.
14908         - Don't handle enter/leave when setting/killing focus, this is
14909         done by the container control.
14910         - Remove is_selected, it's not needed anymore.
14911         - Add utility methods for selecting a child control, and for
14912         firing the Enter/Leave events.
14913         * ContainerControl.cs: When a control is activated fire the
14914         enter/leave events.
14915         - Don't wrap when processing the tab key, so that focus can be
14916         moved outside of the container.
14917         - Use the correct active control
14918
14919 2006-07-11  Jackson Harper  <jackson@ximian.com>
14920
14921         * ComboBox.cs: Remove some debug code that was blinding me.
14922         * UpDownBase.cs: These controls actually aren't implicit, they are
14923         visible to the user.
14924
14925 2006-07-10  Chris Toshok  <toshok@ximian.com>
14926
14927         * DataGrid.cs: move back to the is_adding boolean field.  god i
14928         hate this is_editing/is_adding/is_changing stuff.
14929
14930 2006-07-10  Chris Toshok  <toshok@ximian.com>
14931
14932         * DataGridTableStyle.cs: just check if the property type is bool.
14933         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
14934         Don't use CanRenderType.
14935
14936         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
14937         if our text == NullText.  Remove CanRenderType.
14938
14939         * DataGridBoolColumn.cs: nuke CanRenderType.
14940
14941         * DataGrid.cs: reenable some code to end the current edit inside
14942         of set_CurrentCell.  This fixes the other 1.1.16 regression.
14943         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
14944         Also, remove the visible_row_count arg from CalcRowHeaders, since
14945         we don't need to worry about the actual height of the area.
14946
14947 2006-07-10  Chris Toshok  <toshok@ximian.com>
14948
14949         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
14950         mode, just return.
14951
14952         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
14953         the real sense of the IsInEditOrNavigateMode property (true =
14954         navigate, false = edit).  Also, update OnKeyPress to reflect this.
14955
14956         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
14957         column style exists, we still need to set its property descriptor
14958         to match up with our list manager.
14959
14960 2006-07-10  Chris Toshok  <toshok@ximian.com>
14961
14962         * ThemeWin32Classic.cs: implement the new row/header painting
14963         approach.  The parent row painting will likely go away and
14964         replaced with label controls, but the rest seems to work ok (and
14965         efficiently).
14966
14967         * Theme.cs: change the way we draw datagrid rows.  we don't draw
14968         the row headers as a block now.  Instead we draw them in the
14969         normal draw-row loop.  Add some calls for drawing parent rows and
14970         relation rows.
14971
14972         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
14973         a default table style.  Set the defaults from ThemeEngine.Current,
14974         not SystemColors.  Fix lots of misc issues with property setters.
14975
14976         * DataGrid.cs: move loads of style information out of this class
14977         as it's being duplicated with DataGridTableStyle.  keep track of a
14978         special DataGridTableStyle for the properties we used to mirror
14979         here.  Switch all the style properties to access this table style
14980         instead of instance fields of this class.  Also add a internal
14981         class to represent parent rows (more needs to be stored here, like
14982         the selection state from the parent table, as well as the
14983         expansion state.)  Also, for datasources with relations, do the
14984         right thing for collapse/expand, and add support for the
14985         navigation/parent row buttons.
14986
14987         Lastly, fix the crash in the 1.1.16 build.
14988
14989         * GridTableStylesCollection.cs: make the explicit interface
14990         implementations call the class's methods as opposed to duplicating
14991         them.
14992
14993         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
14994         0 so the text doesn't jump around when we move the cursor.
14995
14996 2006-07-10  Jackson Harper  <jackson@ximian.com>
14997
14998         * TextBoxBase.cs:
14999         * ListBox.cs: Match MS's ToString (this makes debugging focus
15000         stuff infinitely easier).
15001
15002 2006-07-10  Jackson Harper  <jackson@ximian.com>
15003
15004         * Control.cs (SelectNextControl): When checking the control's
15005         parent use this instead of ctrl.parent so that null can be passed
15006         to SelectNextControl. (I have unit tests for this).
15007         - Remove unused var.
15008
15009 2006-07-10  Chris Toshok  <toshok@ximian.com>
15010
15011         * CurrencyManager.cs: correct one regression, the removal of the
15012         finalType field.  Also, add a MonoTODO on CanAddRows, implement
15013         Refresh() correctly, and fix some event emission in
15014         ListChangedHandler.
15015
15016 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
15017
15018         * FileDialog.cs: Don't use brackets for new folders if they exist
15019           under *nix. Instead use -(number of existing folders +1).
15020
15021 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
15022
15023         * FileDialog.cs:
15024           - Fixed really nasty bug #78771
15025           - Don't block the whole GUI when reading directories with a lot of
15026             entries. Use an other thread instead and call BeginInvoke to
15027             update the ListView in MWFFileView
15028
15029 2006-07-07  Chris Toshok  <toshok@ximian.com>
15030
15031         * Control.cs (Dispose): release any Capture when disposing.
15032
15033 2006-07-07  Chris Toshok  <toshok@ximian.com>
15034
15035         * LinkLabel.cs (Select): if we chain up to the parent, set
15036         focused_index to -1 so we'll search for the first available link
15037         the next time the user tabs into us.  Also, if the direction is
15038         backward and focused_index == -1, start the search from the last
15039         element.
15040
15041 2006-07-07  Chris Toshok  <toshok@ximian.com>
15042
15043         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
15044         is beyond the end of the text, don't do anything.
15045         (CreateLinkPieces): set our ControlStyles.Selectable based on
15046         whether or not we have any links.
15047         (Link.Invalidate): use a loop instead of foreach.
15048         (Link.set_Start): null out owner.sorted_links so it'll be
15049         recreated by CreateLinkPieces.
15050
15051 2006-07-06  Chris Toshok  <toshok@ximian.com>
15052
15053         * LinkLabel.cs: revert the SetStyle change.
15054
15055 2006-07-06  Chris Toshok  <toshok@ximian.com>
15056
15057         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
15058         (OnEnableChanged): s/Refresh/Invalidate
15059         (OnGotFocus): if we have a focused index already, refocus it (so
15060         if we mouse out/in to the window it'll focus the right link).
15061         (OnKeyDown): move the tab handling out of here.
15062         (OnLostFocus): don't set focused_index to -1, so we can refocus it
15063         when we lose focus.
15064         (OnMouseDown): don't Capture here - Control handles it.  Also,
15065         focus the active link.
15066         (OnMouseUp): don't deal with Capture.
15067         (OnPaintBackgroundInternal): remove.
15068         (OnTextAlignChanged): CreateLinkPieces before calling the
15069         superclass's method.
15070         (OnTextChanged): call CreateLinkPieces before calling superclass's
15071         method.
15072         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
15073         move around.
15074         (Select): implement this, moving the selection between different
15075         links, and call parent.SelectNextControl if we don't have another
15076         link to focus in the given direction.
15077         (CreateLinkPieces): call Invalidate instead of Refresh.
15078         
15079 2006-07-06  Chris Toshok  <toshok@ximian.com>
15080
15081         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
15082         new LinkLabel internals.
15083
15084         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
15085         over pieces looking for active/focused/etc links.  also, deal with
15086         runs of text (and links) with embedded \n's in them, and use
15087         MeasureCharacterRanges instead of MeasureString to figure out the
15088         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
15089         two-step.
15090
15091 2006-07-04  Jackson Harper  <jackson@ximian.com>
15092
15093         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
15094         XKB or key auto repeat, do it manually.  Without key auto repeat,
15095         when a key is held down we get key press, key release, key press,
15096         key release, ... with auto repeat we get key press, key press, key
15097         press ..., and then a release when the key is actually released.
15098
15099 2006-07-03  Jackson Harper  <jackson@ximian.com>
15100
15101         * TabControl.cs:
15102         * ThemeWin32Classic.cs: Tabs do not obey normal background color
15103         rules, they are always control color regardless of the background
15104         color.
15105
15106 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
15107
15108         * FileDialog.cs: Added internal class MWFConfig.
15109           Removed Registry support and replaced it with support for the new
15110           MWFConfig class. See MWFConfig comments for more information.
15111
15112 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
15113
15114         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
15115           rectangle. Added some patches from eno from bug #78490 and fixed
15116           the arrow position for small up and down CPDrawScrollButtons.
15117
15118 2006-06-30  Jackson Harper  <jackson@ximian.com>
15119
15120         * InternalWindowManager.cs: Remove some debug code.
15121         * Form.cs: When an MdiParent is set to null, the window is
15122         "detatched" and becomes a normal window.
15123         * MdiClient.cs: Don't bring the new child form to the front until
15124         it is activated (setting it as active does this), this makes the
15125         previously active forms titlebar get redrawn as inactive.
15126
15127 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
15128
15129         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
15130           with later controls
15131
15132 2006-06-29  Mike Kestner  <mkestner@novell.com>
15133
15134         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
15135         arrow in keynav state.  Fixes #78682.
15136
15137 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
15138
15139         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
15140           order (fixes #78393)
15141
15142 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
15143
15144         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
15145           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
15146           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
15147           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
15148           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
15149           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
15150           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
15151           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
15152           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
15153           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
15154           enumerations (FlagsAttribute, SerializableAttribute, added/removed
15155           values)
15156
15157 2006-06-28  Mike Kestner  <mkestner@novell.com>
15158
15159         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
15160
15161 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
15162
15163         * PropertyGrid.cs,
15164           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
15165           item lines from other area (It also makes BackColor consistent and
15166           compatible with .NET). Fixed bug #78564.
15167
15168 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
15169
15170         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
15171         Patch from Eno for #78555.
15172
15173 2006-06-27  Chris Toshok  <toshok@ximian.com>
15174
15175         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
15176
15177         * DataGridColumnStyle.cs: same.
15178
15179         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
15180         
15181         * DataGridDrawingLogic.cs: nuke.
15182
15183 2006-06-27  Chris Toshok  <toshok@ximian.com>
15184
15185         * DataGridTableStyle.cs: clean up the constructors, and build the
15186         list of child relations for this table.  I have no idea if this is
15187         where we should be doing it (it probably isn't), but since we're
15188         already iterating over the properties..
15189
15190         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
15191         struct and array for keeping track of row information, similar to
15192         what's shown in a hack on
15193         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
15194
15195         * Theme.cs: be consistent about the naming of DataGrid methods,
15196         prefering ColumnWidths and RowHeights over columnsWidths and
15197         RowsHeights.
15198
15199         * ThemeWin32Classic.cs: same, and also add support for variable
15200         sized rows (and the +/- expansion icons for related rows).
15201
15202 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
15203
15204         * TextBoxBase.cs: Applied Eno's patch from #78660
15205
15206 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
15207
15208         * Form.cs (ScaleCore): We don't want to scale our form if it's
15209           state is minimized or maximized, but we still need to scale our
15210           child windows. Also, added try/finally block to ensure layout
15211           gets reset (Fixes #78697)
15212
15213 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
15214
15215         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
15216
15217 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
15218
15219         * Form.cs: Fixed c+p error and added check to resize form if minimum
15220           size is bigger than current size (Fixes #78709)
15221
15222 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
15223
15224         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
15225
15226 2006-06-26  Mike Kestner  <mkestner@novell.com>
15227
15228         * ComboBox.cs: only do Keypress handling in the combo when there  
15229         are items in the collection. Fixes #78710.
15230
15231 2006-06-26  Chris Toshok  <toshok@ximian.com>
15232
15233         * Binding.cs: make this work bi-directionally.  also, clear up
15234         other mixups between Push/Pull Data (e.g. we're supposed to pull
15235         data when validating).
15236
15237         * BindingManagerBase.cs: trim some fully qualified collection
15238         types.
15239
15240         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
15241
15242 2006-06-23  Chris Toshok  <toshok@ximian.com>
15243
15244         * PropertyManager.cs: It appears (according to the unit tests)
15245         that PropertyManager doesn't use
15246         PropertyDescriptor.AddValueChanged to track propery value changes
15247         in its datasource, but uses the same scheme as Binding, where it
15248         looks for a <Property>Changed event and binds to it.
15249
15250         Also, according to the docs, IsSuspended always returns false for
15251         a property manager with a non-null datasource.
15252
15253 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
15254
15255         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
15256           need to update the actual DialogResult. (Fixes #78613)
15257
15258 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
15259
15260         * Form.cs (ShowDialog): Release any captures before running the
15261           new message pump (fixes #78680)
15262
15263 2006-06-22  Mike Kestner  <mkestner@novell.com>
15264
15265         * ListView.cs: Layout column widths properly in details mode even 
15266         if HeaderStyle.None is set.  Fixes #78691.
15267
15268 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
15269
15270         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
15271
15272 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
15273
15274         * Control.cs (ContainsFocus): Using new driver method to get focused
15275           window, instead of trying to use internal tracking var, which can
15276           recursion issues (Fixes #78685)
15277         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
15278           XplatUIWin32.cs: Added GetFocus method to return focused window
15279
15280 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15281
15282         * ColorDialog.cs: when the mouse button is pressed inside the color
15283         matrix, don't let the cursor move out of it until the button is
15284         released, which is the behavior on windows. Changed 'colours' by
15285         'colors' to use the same word consistently.
15286
15287 2006-06-21  Chris Toshok  <toshok@ximian.com>
15288
15289         * DataGrid.cs: add in some basic navigation stuff (navigating to a
15290         child relation and back, using a stack).  Also, remove
15291         GetDataSource and the code that calls it - it's not needed.  Also,
15292         track CurrencyManager.ListName's removal.
15293
15294 2006-06-21  Chris Toshok  <toshok@ximian.com>
15295
15296         * CurrencyManager.cs: push some of the original type checking from
15297         BindingContext.CreateBindingManager to here, and remove some of
15298         the finalType stuff.  Need more tests to make sure I've got the
15299         ListName part right, and we might need more in SetDataSource.
15300
15301         * PropertyManager.cs: add a ctor that takes just the datasource,
15302         and no property name.  Make SetDataSource work with a null
15303         property_name, and make Current return the data_source if the
15304         property descriptor is null.  this makes 'string foo = "hi";
15305         BindingContext[foo].Current' return "hi" as it should.
15306
15307         * RelatedCurrencyManager.cs: make this code more generic - there's
15308         no reason the parent manager has to be CurrencyManager, and
15309         there's no reason to pass the DataRelation.  It suffices to use a
15310         BindingManagerBase and PropetyDescriptor.
15311
15312         * RelatedPropertyManager.cs: make a similar change here.
15313         
15314         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
15315         flower I knew it could be.
15316
15317 2006-06-20  Chris Toshok  <toshok@ximian.com>
15318
15319         * PropertyManager.cs: the PropertyChangedHandler is invoked when
15320         data in the source has changed and we need to update the control,
15321         so s/PullData/PushData.
15322
15323         * CurrencyManager.cs: Refresh is meant to update the control from
15324         data in the datasource.  So, s/PullData/PushData.
15325
15326         * BindingContext.cs: add more ugliness (we weren't handling the
15327         case where data_source = DataTable and data_member = column_name).
15328
15329         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
15330         from the perspective of the datasource.  PullData pulls from the
15331         control, PushData pushes to the control.
15332
15333 2006-06-20  Chris Toshok  <toshok@ximian.com>
15334
15335         * BindingContext.cs: rewrite the CreateBindingManager code to
15336         handle navigation paths more or less properly.  This could
15337         definitely stand some more work, in particular to push the
15338         recursion up to the toplevel.  But that relies on fixes in other
15339         places (System.Data comes to mind).
15340
15341         Also, move to a flat hashtable (and encode the twolevel nature of
15342         the dictionary into the hash key).  This lets us implement the
15343         IEnumerable.GetEnumerator method.
15344
15345         * RelatedCurrencyManager.cs: new class.  Update our view based on
15346         our relation and our parent CurrencyManager's position.
15347
15348         * CurrencyManager.cs: split out some logic from the ctor into
15349         SetView, so it can be called from the new RelatedCurrencyManager
15350         subclass.
15351
15352         * RelatedPropertyManager.cs: new class.  Update our datasource
15353         based on the position of our parent CurrencyManager.
15354
15355         * PropertyManager.cs: split out some logic from the ctor into
15356         SetDataSource, so it can be called from the new RelatedDataSource
15357         subclass.  Also, make the Current getter return the value
15358         of the PropertyDescriptor, not the data_source.
15359
15360         * Binding.cs: no need to duplicate the string splitting code here.
15361
15362 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
15363
15364         * Control.cs:
15365           - set_Enabled: OnEnabledChanged is not called if the inherited state 
15366             of the control is not altered, even though  we might be changing the
15367             internal state of the control (#78458)
15368           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
15369             OnEnabledChanged, to allow easy altering of any child window state
15370           - OnEnabledChanged: Added code to enable/disable driver window state
15371           - OnParentEnabledChanged: Instead of firing the event, call 
15372             OnEnabledChanged, which will fire the event and also a) set driver
15373             window state and pass the enabled state to any grandchildren (#78458)
15374
15375 2006-06-19  Jackson Harper  <jackson@ximian.com>
15376
15377         * InternalWindowManager.cs: We don't set the cursor explicitly
15378         thats done via the response to NCHITTESTs.
15379         - Don't need to adjust for titlebar heights anymore, the
15380         coordinates are coming in the correct coordinates now (see peters
15381         last patch).
15382
15383
15384 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
15385
15386         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
15387           being translated relative to whole window, instead of client window.
15388           That caused broken offsets on mouseclick (and caused gas for our
15389           InternalWindowManager)
15390
15391 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
15392
15393         * TextControl.cs:
15394           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
15395           - Undo(): Added replay of cursor move on DeleteChars action; added
15396             calling Undo() again if a recorded cursor move is invalid (to
15397             ensure that some action is performed on Undo)
15398         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
15399
15400 2006-06-16  Jackson Harper  <jackson@ximian.com>
15401
15402         * MdiClient.cs: Instead of just sizing maximized windows when
15403         there is a resize we also have to adjust the Y of minimized
15404         windows, so they stay pinned to the bottom of the mdi container.
15405         - Eliminate separate tracking of the active control, we can just
15406         get this from the controls collection.
15407         - Paint the decorations for the newly activated titlebar so we get
15408         a pretty blue bar.
15409         * InternalWindowManager.cs:
15410         * ThemeWin32Classic.cs: Minimized windows get all three buttons
15411         even if they are a tool window.
15412         
15413 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
15414
15415         * TextControl.cs (Undo): Handle non-existent cursor locations in the
15416           undo buffer, these can happen when text was deleted and the cursor
15417           was recorded first. Since we will also have a recorded cursor
15418           after the delete this is not an issue. (Fixes #78651)
15419
15420 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
15421
15422         * AccessibleObject.cs: Remove dependence on Control.is_selected;
15423           instead properly track control states internally (allows us to
15424           remove is_selected from Control)
15425
15426 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15427
15428         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
15429         whose width is not a multiple of 8.
15430
15431 2006-06-13  Jackson Harper  <jackson@ximian.com>
15432
15433         * MdiClient.cs:  Only maximize the next child if the current one
15434         is maximized.
15435
15436 2006-06-13  Chris Toshok  <toshok@ximian.com>
15437
15438         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
15439         modified.  Also, guard against grid or grid_drawing being null in
15440         Invalidate.
15441
15442         * DataGrid.cs: Reformat tons of getters/setters.  In the
15443         DataMember setter, just call SetNewDataSource instead of
15444         duplicating some of its functionality.  In SetNewDataSource, don't
15445         check ListManager for null, since the property getter creates the
15446         object if needed.
15447
15448         * DataGridTableStyle.cs: don't set TableStyle or call
15449         SetDataGridInternal on the column here, it's done in
15450         GridColumnStylesCollection.Add.
15451
15452         * GridColumnStylesCollection.cs: fix all the explicit interface
15453         implementations to just call our methods.  Nuke AddInternal() and
15454         move the body of it to Add().  Also, add a call to
15455         column.SetDataGridInternal to Add().
15456
15457         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
15458         base()+duplicate code.  Also, use the Format property instead of
15459         format to generate an Invalidate ala MS.  Lastly, create the
15460         textbox here, unconditionally.
15461         (set_Format): call Invalidate.
15462         (get_TextBox): no need to call EnsureTextBox.
15463         (Commit): remove the message box.
15464         (Edit) remove the call to EnsureTextBox.
15465         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
15466         (EnterNullValue): no need to check textbox for null.
15467         (HideEditBox): no need to check textbox for null.
15468         (SetDataGridInColumn): add the textbox to the grid's controls.
15469         (EnsureTextBox): nuke.
15470         
15471 2006-06-13  Jackson Harper  <jackson@ximian.com>
15472
15473         * MdiWindowManager.cs: Hook up to the maximized menus paint event
15474         and redraw the buttons when needed. Unhook when the window is
15475         unmaximized.
15476         * MainMenu.cs: Add an internal Paint event, the mdi window manager
15477         needs this so that it can redraw its buttons when the menu is
15478         repainted.
15479         * InternalWindowManager.cs:
15480         * Form.cs: The method order has changed for DrawMaximizedButtons,
15481         so that it can be a PaintEventHandler.
15482         
15483 2006-06-13  Jackson Harper  <jackson@ximian.com>
15484
15485         * MdiClient.cs: When we close a maximized mdi window, the next mdi
15486         window is activated and maximized, even if it wasn't before.
15487         - When  a new window is activated repaint the decorations of the
15488         old one, so that it no longer has the Active "look" (the blue
15489         titlebar).
15490         * InternalWindowManager.cs: Open up CreateButtons to base classes
15491         so they can recreate the buttons on state changes.
15492         - If a window is maximized give it all three buttons
15493         * MdiWindowManager.cs: Create the titlebar buttons when the state
15494         is changed, this is needed because a toolwindow will not have all
15495         three buttons until it is maximized.
15496
15497 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
15498
15499         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
15500           Fixed bug #78609.
15501
15502 2006-06-12  Jackson Harper  <jackson@ximian.com>
15503
15504         * KeysConverter.cs: Make sure we handle the Ctrl special case
15505         if its the only key.
15506         
15507 2006-06-12  Jackson Harper  <jackson@ximian.com>
15508
15509         * Theme.cs: Add a method to get the size of a managed window
15510         toolbar button.
15511         * InternalWindowManager.cs: Remove the ButtonSize property, this
15512         should be retrieved from the theme.
15513         * MdiWindowManager.cs: Get the button size from the theme
15514         * ThemeWin32Classic.cs: Make the method to get the managed window
15515         titlebar button size public.
15516         - Handle the different button sizes of maximized toolwindows
15517         (should match any maximized window).
15518         - Get the titlebar height from the theme, not the WM (which gets
15519         it from the theme).
15520
15521 2006-06-12  Jackson Harper  <jackson@ximian.com>
15522
15523         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
15524         event down to the mdi window manager.
15525         - Expose some extra stuff to base classes
15526         - Make sure to end the Capture on an NC Mouse up, so that we can
15527         get double clicks properly, and the sizing doens't stick.
15528         - When doing PointToClient contain it in the workable desktop
15529         area, this prevents windows from changing size when the cursor is
15530         pulled outside of the working area while sizing.
15531         * MdiWindowManager.cs: When we get a double click maximize the
15532         window.
15533         - Reset the cursor after handling mode changes.
15534
15535 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
15536
15537         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
15538           current desktop, instead of just assuming a 0, 0 origin. This
15539           is needed for our internal window manager, to know the top
15540           margin of the desktop
15541
15542 2006-06-12  Chris Toshok  <toshok@ximian.com>
15543
15544         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
15545         we need this to get rid of the selected background in the bool
15546         column.
15547         (CancelEditing): move the ConcedeFocus call to above the Abort
15548         call.  Also, set is_changing to false and invalidate the row
15549         header if we were changing before.
15550         (ProcessKeyPreviewInternal): remove, since noone outside this
15551         class calls it anymore.  Roll the code into ProcessKeyPreview.
15552         (EndEdit): remove the internal version.
15553         (InvalidateCurrentRowHeader): make private.
15554
15555         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
15556         Keys.Escape handling (and with it the last call to
15557         DataGrid.EndEdit from outside the class.)
15558
15559
15560 2006-06-12  Chris Toshok  <toshok@ximian.com>
15561
15562         * DataGridTextBox.cs (.ctor): isedit defaults to false.
15563         (OnKeyPress): set isedit to true.
15564         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
15565         already handled by the grid.
15566
15567         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
15568         right.  ugh.
15569         (set_DataSource): SetDataSource always returns true, so stop
15570         putting it in an if statement.
15571         (EndEdit): get rid of some {}'s
15572         (ProcessGridKey): return true in case Keys.Escape.
15573         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
15574         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
15575         PositionChanged, stopped connecting to CurrentChanged.
15576         (GetDataSource): simplify this a bunch.
15577         (SetDataSource): change return type from bool to void.
15578         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
15579         to this, and make sure we don't set ListManager.Position inside
15580         set_CurrentCell.
15581         (OnListManagerItemChanged): if we're passed an actual index,
15582         redraw that row.
15583
15584         * CurrencyManager.cs (set_Position): don't call PullData here.
15585
15586 2006-06-09  Jackson Harper  <jackson@ximian.com>
15587
15588         * TreeNode.cs:  Recalculate the visible order before doing the
15589         Expand/Collapse Below calls, because those calls generate an
15590         expose.
15591         - Reduce calls to the TreeView property, which is mildly expensive
15592         by using a local var.
15593         * Form.cs: Layout the MDI child windows when creating the parent
15594         form.
15595         - Don't use the internal constructor anymore
15596         * MdiClient.cs: use the parent form width/height (if available)
15597         when laying out the child windows, we do this because the
15598         mdiclient isn't docked yet when the initial layout is done.
15599         - Don't need an internal constructor anymore.
15600
15601 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15602
15603         * FileDialog.cs: handle access errors when trying to create a folder
15604         or changing to a directory. No need to initialize out parameters.
15605
15606 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15607
15608         * FileDialog.cs: Append a number when creating a new folder if the
15609           folder already exists (use parenthesis instead of square brackets)
15610
15611 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15612
15613         * FileDialog.cs:
15614           - Disabled registry support for windows and added better registry
15615             error checking for other systems (need to investigate why it
15616             works perfectly on my system)
15617           - If a folder already exist show an error MessageBox instead of
15618             trying to create an indexed name.
15619           - Fixed a non intentional typo.
15620
15621 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15622
15623         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
15624
15625 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15626
15627         * FileDialog.cs: When creating a new folder don't crash if the
15628           folder already exists.
15629
15630 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15631
15632         * FileDialog.cs: Allmost a complete rewrite.
15633           - added a "virtual" file system that handles the differences
15634             between unix and windows file systems (especially the directory
15635             structure). Moved most of the directory and file handling code
15636             into the vfs.
15637             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
15638             UnixFileSystem and FSEntry.
15639           - Recently used folder/directory, size, location and used file names
15640             (file name ComboBox) are now stored in the registry and get read
15641             before the dialog shows up (fixes part 6 of bug #78446).
15642           - Creation of new folders/directories is now possible (context menu
15643             or ToolBar). Added TextEntryDialog for this that fills in the gap
15644             until ListView.LabelEdit works.
15645           - Fixed cursor handling (bug #78527) and focus handling for
15646             PopupButtonPanel
15647           - Various "Search in" ComboBox enhancements. The content of the
15648             dropdown listbox now almost matches ms.
15649           - Changed the behaviour when the user switches to SpecialFolder
15650             Recent to show the ListView in View.Details.
15651           - Beside using the ToolBar to change the View property of the
15652             file ListView it is now possible to use the context menu too.
15653
15654 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15655
15656         * ComboBox.cs: Don't create a new ObjectCollection when an item
15657           gets inserted. Just insert the item in the existing object_items
15658           ArrayList.
15659
15660 2006-06-08  Jackson Harper  <jackson@ximian.com>
15661
15662         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
15663         that the treeview and root node checks are done also, this fixes a
15664         regression i caused in the unit tests.
15665
15666 2006-06-07  Wade Berrier <wberrier@novell.com> 
15667
15668         * RichTextBox.cs: More ISO8859-1 -> unicode
15669
15670 2006-06-07  Mike Kestner  <mkestner@novell.com>
15671
15672         * ComboBox.cs : use items to hold highlight/selection so that
15673         collection insertions don't require synchronization.
15674
15675 2006-06-07  Jackson Harper  <jackson@ximian.com>
15676
15677         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
15678         routine.  We now always keep the sized edge at the cursor instead
15679         of computing movement and adjusting rects.  There is one buglet
15680         with this method though when the cursor is moved over area that
15681         the window can not expand too (such as the toolbars on the desktop).
15682
15683 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15684
15685         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
15686         here. Fixes crash on startup in AlbumSurfer.
15687
15688 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
15689
15690         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
15691           values
15692
15693 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15694
15695         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
15696         statement to avoid calling XNextEvent which will block if another thread
15697         took the event that we were expecting. Fixes bug #78605.
15698
15699 2006-06-07  Mike Kestner  <mkestner@novell.com>
15700
15701         * ListView.cs : isolated checkbox clicking from the selection logic.
15702         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
15703
15704 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15705
15706         * Form.cs: Check that the value passed to Form.DialogResult
15707         is a valid enum value.
15708
15709 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15710
15711         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
15712         Computer'. Clicking it in the network view goes to 'My Computer'.
15713         Added CIFS filesystem type. Display the mount point of filesystems.
15714         Avoid duplicate mount points (happens for me with CIFS);
15715
15716 2006-06-06  Jackson Harper  <jackson@ximian.com>
15717
15718         * InternalWindowManager.cs: Draw the maximized windows buttons
15719         when resizing.
15720
15721 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15722
15723         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
15724         all other dialogs. Fixes bug #78585.
15725
15726 2006-06-06  Mike Kestner  <mkestner@novell.com>
15727
15728         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
15729         Only invalidate checkbox on checkstate changes to avoid flicker.
15730         * ListBox.cs : avoid unselect/select when clicking selected item.
15731         avoid reselection flicker for already multiselected items.
15732         Fixes #78382.
15733
15734 2006-06-06  Jackson Harper  <jackson@ximian.com>
15735
15736         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
15737         the parent form so that the menu is removed if needed.
15738
15739 2006-06-06  Mike Kestner  <mkestner@novell.com>
15740
15741         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
15742         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
15743
15744 2006-06-06  Mike Kestner  <mkestner@novell.com>
15745
15746         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
15747
15748
15749 2006-06-06  Jackson Harper  <jackson@ximian.com>
15750
15751         * Control.cs: Use the property (instead of the field) to get the
15752         default cursor so it is instantiated correctly.
15753         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
15754         resizes so we need to manually repaint the window decorations here.
15755         - Set the titlebar button locations as soon as they are created,
15756         otherwise they are not set correctly on win32.
15757         
15758 2006-06-06  Chris Toshok  <toshok@ximian.com>
15759
15760         * CurrencyManager.cs (set_Position): call PullData before
15761         OnCurrentChanged.
15762         (AddNew): after calling IBindingList.AddNew, update our
15763         listposition, and call OnCurrentChanged/OnPositionChanged (without
15764         calling PullData).
15765         (OnCurrentChanged): remove the call to PullData from here.
15766         (OnItemChanged): remove the call to PushData from here.
15767         (OnPositionChanged): change the test from == null to != null to
15768         match the other methods.
15769         (ListChangedHandler): the grossest part of the patch.  Implement
15770         this such that it passes the unit tests in CurrencyManagerTest and
15771         the output more or less matches that of MS's implementation.
15772  
15773 2006-06-06  Mike Kestner  <mkestner@novell.com>
15774
15775         * ListView.cs : only update check state on single click.
15776         * ThemeWin32Classic.cs : fix focus drawing for details view without
15777         fullrowselect.  Fixes #78454.
15778         * XplatUIX11.cs : fix for double click emission.
15779
15780 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
15781
15782         * PropertyGridView.cs : Applied Atsushi's patch to fix
15783         font dialog bug  (#78197).
15784
15785 2006-06-05  Jackson Harper  <jackson@ximian.com>
15786
15787         * TreeNode.cs: Compute the next node for expanding/collapsing
15788         correctly. We now factor in nodes without a NextNode
15789         correctly. (Fixes somes cases in nunit-gui).
15790         * InternalWindowManager.cs: Set the bounds when updating the
15791         virtual position of a tool window.
15792         
15793 2006-06-05  Chris Toshok  <toshok@ximian.com>
15794
15795         * DataGrid.cs: rename cached_currencymgr to list_manager.
15796         (set_CurrentCell): move SetCurrentCell code here, and clean it up
15797         some.
15798         (CurrentRow, CurrentColumn): single accessors so we can make the
15799         cursor movement code a lot easier to understand.
15800         (CurrentRowIndex): implement this in terms of CurrentRow.
15801         (BeginEdit): clean this up a bit.
15802         (CancelEditing): sort out the is_editing/is_changing/is_adding
15803         stuff a little.
15804         (EndEdit): minor changes.
15805         (OnKeyDown): add a comment about a (most likely) unnecessary
15806         check.
15807         (OnMouseDown): cancel editing when we click on a row header.  And
15808         use the CurrentRow setter, not CurrentCell.
15809         (ProcessDialogKey): directly call ProcessGridKey.
15810         (UpdateSelectionAfterCursorMove): factor out this common block of
15811         code (it's used everywhere that we move the cursor by updating row
15812         or column).
15813         (ProcessGridKey): pretty substantial overhaul.  Use the
15814         CurrentRow/CurrentColumn properties to make the code a lot more
15815         readable.  Only use the CurrentCell property when we have to
15816         modify both row and column at once.  Tab behavior is still broken,
15817         and Delete is untested.
15818         (Select): if we have no selected rows, set selection_start to
15819         @row.
15820         (EditCurrentCell): rename EditCell this.  It was only ever invoked
15821         with CurrentCell as the arg, so drop the arg and rename it.
15822
15823         * DataGridColumnStyle.cs: clean up the constructors a little, and
15824         drop CommonConstructor().
15825
15826         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
15827         actually get notified when the user hits it.
15828         (ProcessKeyMessage): *substantially* simplify this method.
15829         There's no reason (that I can see) for the textbox to be making
15830         calls into the datagrid at all.  Remove all of them but the ones
15831         for Enter handling.  those will take some more work.
15832
15833         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
15834         calling HideEditBox.
15835         (HideEditBox): if we have an active textbox, render it invisible
15836         without causing a re-layout of the datagrid.
15837
15838 2006-06-05  Mike Kestner  <mkestner@novell.com>
15839
15840         * ListView.cs : fix NRE crasher when focuseditem is cleared by
15841         collection changes by resetting it to Items[0].  Fixes #78587.
15842
15843 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15844
15845         * MessageBox.cs: if the height of the text is larger than the icon_size,
15846         use that. Fixes bug #78575.
15847
15848 2006-06-05  Jackson Harper  <jackson@ximian.com>
15849
15850         * TreeView.cs: Fix line drawing when scrolling.  To do this each
15851         node is basically responsible for drawing its entire horizontal
15852         area.  When drawing a node it draws its parent node lines if
15853         needed.
15854         - Adjust the clip area to the viewport rectangle
15855         - Fix Left/Right key handling to match MS. (It expand/collapses
15856         and moves to parents/first child but does not move selection to
15857         sibling nodes).
15858         - Fix SetTop to work with new bound calculation code
15859         - When scrollbars are no longer needed we need to reset scrolling
15860         vars and recalculate the visible order so the redraw is correct
15861         * TreeNode.cs: We can't expand/collapse nodes with no children.
15862
15863 2006-06-03  John Luke  <john.luke@gmail.com> 
15864
15865         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
15866         so the colors work without dev packages
15867         
15868 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
15869
15870         * Control.cs 
15871           - Select: Implemented to just use activate. Seems to match MS 
15872             behaviour closest. Documented to only do actual control walking 
15873             based on it's parameters if in a container control so I moved 
15874             the code there.
15875           - Removed selection check logic from our internal Select() method
15876         * ContainerControl.cs:
15877           - Select: Moved selection logic from Control here, since MS documents
15878             that containers obey the bool arguments. No longer calling base
15879
15880 2006-06-02  Jackson Harper  <jackson@ximian.com>
15881
15882         * TreeView.cs: If the selected node isn't changed when we get
15883         focus update the previously selected node so that we see the
15884         selection box.
15885
15886 2006-06-02  Mike Kestner  <mkestner@novell.com>
15887
15888         * ComboBox.cs: restructure grab and general mouse event handling.
15889         Make the composite control raise mouse events like it was a single
15890         control for leaves/enters/motion/up/down events.  fix dropdown list
15891         coordinate mangling and refactor it into the scrollbar subclass to
15892         reduce code duplication.  Fixes #78282 #78361 and #78457.
15893
15894 2006-06-02  Mike Kestner  <mkestner@novell.com>
15895
15896         * ScrollBar.cs: remove Capture setting/clearing, as it happens
15897         automatically in the Control.WndProc.
15898
15899 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15900
15901         * FileDialog.cs: fix crash when running SharpChess, which sets the
15902         FilterIndex to 2 with only one Filter.
15903
15904 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15905
15906         * ToolBar.cs: add SizeSpecified property.
15907         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
15908         try to figure out our real size, otherwise fallback to what the
15909         container says.
15910
15911 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
15912
15913         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
15914         * Control.cs (WndProc): MS always calls the DefWndProc to pass
15915           up the event
15916
15917 2006-06-01  Mike Kestner  <mkestner@novell.com>
15918
15919         * ListView.cs: revamp the focus management in ListView.  It still
15920         causes churn of LostFocus/GotFocus emissions on clicks, but it's
15921         better than not handling focus at all.  Will revisit when pdb feels
15922         the general focus handling is solid.  Fixes #78526.
15923
15924 2006-06-01  Jackson Harper  <jackson@ximian.com>
15925
15926         * TreeView.cs: Set the default border style in the constructor.
15927         - Move painting to use OnPaintInternal instead of capturing
15928         WM_PAINT, this is the correct way of doing things
15929         - UpdateBelow shouldn't invalidate the scrollbar area
15930         - Cap the top on update below in case the node was above the top
15931         of the viewport rectangle.
15932         - ExpandBelow and Collapse below need to obey Begin/End Update.
15933         * TreeNode.cs: Make is_expanded internal so the treenode
15934         collection can change it without firing the whole event chain.
15935         * TreeNodeCollection.cs: When clearing all the child nodes make
15936         sure to recalc the visible order.
15937         - Improve algo for remove the top node
15938
15939 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
15940
15941         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
15942           SendMessage directly calling window procedures, which in turn might
15943           call SetFocus()
15944
15945 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
15946
15947         * Control.cs: Don't handle WM_SETFOCUS if the same window already
15948           has focus (works around X11 sending a FocusIn after our SetFocus)
15949         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
15950
15951 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
15952
15953         * Mime.cs: Fix for the NET_2_0 build.
15954           NameValueCollection needs StringComparer now.
15955
15956 2006-05-31  Chris Toshok  <toshok@ximian.com>
15957
15958         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
15959         return (via an out parameter) the starting X of the column.
15960         (UpdateVisibleColumn): track change to FromPixelToColumn.
15961         (HitTest): add a ColumnResize case here.
15962         (DrawResizeLine): new function, probably poorly named.
15963
15964         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
15965         only need to keep one reference.
15966         (set_ListManager): same.
15967         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
15968         Also, add support for HitTestType.ColumnResize.
15969         (OnMouseMove): add column resize behavior here, and change the
15970         cursor to the correct one as we move around the datagrid.
15971         (OnMouseUp): terminate the column resize if we're resizing.
15972         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
15973         for the current cell.
15974         (ConnectListManagerEvents): use cached_currencymgr.
15975         (DisconnectListManagerEvents): fill this in, using
15976         cached_currencymgr.
15977         (SetCurrentCell): remove cached_currencymgr_events handling.
15978         (SetDataMember): only call DisconnectListManagerEvents if
15979         cached_currencymgr is != null.
15980         (SetDataSource): same.
15981         (OnListManagerCurrentChanged): cached_currencymgr_events ->
15982         cached_currencymgr.
15983
15984 2006-05-31  Jackson Harper  <jackson@ximian.com>
15985
15986         * BindingManagerBase.cs: Remove somedebug code that creeped into
15987         SVN.
15988         * TreeNode.cs: We get the indent level dynamically right now, so
15989         don't track it as a member.
15990         * TreeNodeCollection.cs: Make sure all nodes added to the list
15991         have parents, treeviews/topnodes setup properly.
15992         - Don't attempt to track indent level.
15993
15994 2006-05-30  Jackson Harper  <jackson@ximian.com>
15995
15996         * BindingContext.cs: Create the currency manager tables here.
15997         This allows us to more easily create null tables (when bad data
15998         members are used), and more easily create related currency
15999         managers.
16000         * CurrencyManager.cs: All the table creation stuff is done by the
16001         binding context now.
16002         - Current should throw an exception if listposition is -1.
16003         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
16004         been bound yet.
16005
16006 2006-05-30  Mike Kestner  <mkestner@novell.com>
16007
16008         * ListView.cs: allow reexpansion of zero-width column headers.
16009         Fixes #78528.
16010
16011 2006-05-28  Chris Toshok  <toshok@ximian.com>
16012
16013         * CurrencyManager.cs (get_Current): after the late binding
16014         listposition = -1 fix, we need to guard against it here and return
16015         null, otherwise we raise an exception (which is swallowed
16016         elsewhere, and breaks datagrid databinding.)
16017
16018 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
16019
16020         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
16021           than WM_SYSKEY, don't throw if get something unexpected (#78507)
16022
16023 2006-05-26  Jackson Harper  <jackson@ximian.com>
16024
16025         * ControlPaint.cs:
16026         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
16027         values, it's faster and it's all we care about (we don't care if
16028         the names aren't equal).
16029         * KeyboardLayouts.cs: Eliminate some dead code.
16030         - Lazy init things
16031         * X11Keyboard.cs: Lazy init keyboard detection.
16032         - Cleanup access modifiers a little.
16033
16034 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
16035
16036         * XplatUIX11.cs: Once again, attempting to get layout just right.
16037
16038 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
16039
16040         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
16041           the sizes of each link section, that will result in sizes that
16042           match DrawString's layout (Fixes #78391)
16043
16044 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
16045
16046         * FileDialog.cs: If AddExtension property is true autocomplete the
16047           extensions in SaveFileDialog correctly. Fixes bug #78453.
16048           Set MyNetwork and MyComputer to "C:\" for windows. This should
16049           fix part 8 of bug #78446 for now.
16050
16051 2006-05-26  Chris Toshok  <toshok@ximian.com>
16052
16053         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
16054         invalidate the current row header if we need to, but presumably
16055         we'll invalidate the row corrsponding to the bounds or
16056         editingControl.
16057         (GridHScrolled): switch back to this method, as it's part of the
16058         public api.  *sigh*.
16059         (GridVScrolled): same.
16060         (OnMouseWheel): hack up something that more or less works.  Call
16061         GridHScrolled/GridVScrolled directly, instead of duplicating much
16062         of their code here.
16063         (EnsureCellVisibility): reinstate a bunch of this code, since we
16064         can't just set the scrollbar Value and expect to do all the work
16065         in the ValueChanged handler.  Also, Call Update() after scrolling
16066         in one direction so the other XplatX11.ScrollWindow call has the
16067         proper stuff in the proper places.
16068         (EditCell): set is_editing to true before calling .Edit.
16069
16070         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
16071         don't bother comparing first.
16072         (OnKeyPress): call grid.ColumnStartedEditing before calling
16073         base.OnKeyPress.  this will set is_changing and invalidate the row
16074         header if necessary.
16075         (ProcessKeyMessage): for WM_CHAR messages, call
16076         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
16077         and WM_KEYDOWN.
16078         
16079         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
16080         it's done in the DataGrid.
16081         (NextState): call grid.ColumnStartedEditing, which takes care of
16082         invalidating the row header (and setting is_changing).
16083
16084         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
16085         here.  it's done in the DataGrid.
16086
16087 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16088
16089         * Control.cs: allow changing the cursor when the mouse position is
16090         out of bounds but Capture is set.
16091         * LinkLabel.cs: handle the case when the mouse button is pressed on the
16092         linklabel but released somewhere else.
16093
16094 2006-05-25  Jackson Harper  <jackson@ximian.com>
16095
16096         * TreeView.cs: When we get focus if there is no selected node make
16097         it the top node
16098         - Remove some uneeded setup code from Draw.
16099         * TreeNodeCollection.cs: If the tree doesn't have a top node when
16100         a new node is inserted make the new node the top.
16101         * XplatUIX11.cs:
16102         * Timer.cs: Use Utc time so that no local time zone stuff needs to
16103         be used (should be faster).
16104         
16105 2006-05-25  Chris Toshok  <toshok@ximian.com>
16106
16107         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
16108         problem with the last commit.
16109
16110 2006-05-25  Chris Toshok  <toshok@ximian.com>
16111
16112         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
16113         need the invalidate call here, while scrolling right-to-left via
16114         the left arrow key (i.e. moving the editing cell while scrolling).
16115
16116         * DataGrid.cs (.ctor): remove the initialization of
16117         ctrl_pressed/shift_pressed.  We no longer track them using key
16118         up/down handlers, but by using Control.ModifierKeys.  Also, switch
16119         to using ValueChanged handlers on the scrollbars instead of
16120         Scrolled event handlers.  This simplifies a bunch of the scrolling
16121         code.
16122         (GridHValueChanged): rename from GridHScrolled, and change it to
16123         work with the new event args.
16124         (GridVValueChanged): same.
16125         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
16126         (OnMouseWheel): actually scroll the datagrid.  Don't change the
16127         selected cell.
16128         (ProcessGridKey): correct all the keyboard navigation stuff I
16129         could find.  Ctrl up/down/left/right/home/end work now.
16130         (EnsureCellVisibility): correct method name spelling.  Also,
16131         simplify this a touch by not explicitly calling the
16132         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
16133         scrollbar value.
16134         (OnKeyUpDG): no need for this method now.
16135         
16136 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16137
16138         * LinkLabel.cs: display the OverrideCursor when hovering the label.
16139         Fixes bug #78392.
16140
16141 2006-05-25  Chris Toshok  <toshok@ximian.com>
16142
16143         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
16144         r61019.
16145
16146 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
16147
16148         * Application.cs: Moved setting of is_modal and closing to before
16149           we create the control, to allow the event handlers called as a
16150           result of creation affect closing. Also removed Gonzalo's previous
16151           change to setting DialogResult, the behaviour has been moved to 
16152           Form.ShowDialog()
16153         * Form.cs: 
16154           - ShowDialog(): Removed explicit creation of the form, let RunLoop
16155             handle it instead
16156           - ShowDialog(): If no dialog result is set, we need to return Cancel
16157           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
16158             the close is cancelled
16159
16160 2006-05-25  Jackson Harper  <jackson@ximian.com>
16161
16162         * StatusBar.cs: We only need to update the sizes of the other
16163         panels when we have auto size contents.  Also we are only updating
16164         the contents of the panel, not the borders, so compensate for the
16165         border width (TODO: get this width from the theme somehow).
16166         * TreeView.cs: Scrollable is true by default
16167         - Use invalidate instead of refresh where needed
16168         - Factor the scrollable value into scrollbar updating
16169         - Update the scrollbars if the Scrollable property is altered
16170         - Update the selected node if its ImageIndex is changed
16171         - Handle null nodes in UpdateNode (mainly so we don't have to
16172         check if selected is null when updating it
16173         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
16174         are factored into the visible count
16175         - Use VisibleCount for clarity in the code
16176         - When the font is changed we need to recurse through all the
16177         nodes and invalidate their sizes
16178         
16179 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16180
16181         * Application.cs: set the DialogResult to fixed when the main form is
16182         hidden or destroyed while being modal.
16183
16184 2006-05-25  Miguel de Icaza  <miguel@novell.com>
16185
16186         * Theme.cs: Use Tangoified messagebox icons. 
16187
16188         (GetSizedResourceImage): Also cope with width = 0 and do not
16189         trigger a warning in that case (0 means "give me your icon from
16190         the resouce, no special size needed).
16191
16192 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
16193
16194         * Application.cs: Leave runloop if the the main modal form is 
16195           hidden (fixes #78484)
16196
16197 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
16198
16199         * BindingContext.cs : reject null datasource in Contains() and
16200           Item[].
16201         * CurrencyManager.cs : check data_member validity when data_source
16202           is dataset. When it is late binding, the initial position is -1.
16203
16204 2006-05-24  Jackson Harper  <jackson@ximian.com>
16205
16206         * TreeNodeCollection.cs: Dont't recalculate the visible order on
16207         inserted nodes that aren't visible.  This changes the
16208         max_visible_order which confuses scrollbar settings.
16209         - Use the enumerator to get the prev node instead of duplicating
16210         code.
16211         * TreeView.cs: Use new method for setting scrollbar values
16212         - Don't set the bounds every time the scrollbar is updated
16213         - When updating below the root node use an invalidate instead of a
16214         refresh to prevent the child controls (scrollbars) from being
16215         refreshed. (UpdateBelow still needs to be reworked anyways).
16216         - Reenable SetBottom now that visible orders are set correctly,
16217         added some debug code incase we ever get bad values there again.
16218         - Set the scrollbar max to 2 less then the max value, this
16219         compensates for the max value being one above the node count, and
16220         for scrollbars adding one extra "notch".
16221         - When drawing image nodes if there is an imagelist we draw the
16222         first image in the list if the supplied image index is out of the
16223         image list's bounds.
16224         
16225 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
16226
16227         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
16228           we receive a size change from the WM (Fixes #78503)
16229
16230 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
16231
16232         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
16233           rectangle (Fixes #78501)
16234
16235 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
16236
16237         * ButtonBase.cs: 
16238           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
16239             as a bitfield.
16240           - Fixed MouseMove to no longer switch pressed state unless the left
16241             mouse button is pressed. Atsushi provided the original patch (#78485)
16242           
16243 2006-05-24  Jackson Harper  <jackson@ximian.com>
16244
16245         * ScrollBar.cs: New internal methods that allow us to change a
16246         couple values on the scrollbar (the most common case is maximum
16247         and large change) without getting multiple invalidates.
16248
16249 2006-05-24  Chris Toshok  <toshok@ximian.com>
16250
16251         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
16252         (Edit): save off the original state in oldState, and set
16253         grid.is_editing to true.
16254         (OnKeyDown): abort editing if escape is pressed.  also, call
16255         NextState if space is pressed.
16256         (OnMouseDown): call NextState.
16257         (NextState): factor out shared code from OnKeyDown and OnMouseDown
16258         here.  Also, only invalidate the row header once (on the initial
16259         is_changing switch) to save on redraws.
16260
16261 2006-05-24  Chris Toshok  <toshok@ximian.com>
16262
16263         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
16264         if the value in the cell is different than it was before.  This
16265         keeps us from triggering a layout when we move around a datarid
16266         with a highlighted cell.
16267         (Edit): suspend layout when creating/positining the text box, and
16268         resume passing false so we don't ever actually re-layout.
16269         (ReleaseHostedControl): same.
16270         (EnsureTextBox): reformat slightly, and set WordWrap to false.
16271
16272         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
16273         control-key sequences should go to the datagrid - remove that
16274         lock.  Also, modify the conditions under which we move between
16275         cells when moving the cursor within a cell, and remove the "this"
16276         and "base" from field accesses.  We weren't even consistent, given
16277         they all were in the base class.
16278
16279 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
16280
16281         * Binding.cs : (.ctor)
16282           An obvious NRE fix for BindingTest.CtorNullTest().
16283
16284 2006-05-23  Chris Toshok  <toshok@ximian.com>
16285
16286         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
16287         them between lines.  This fixes some quirks editing cells in the
16288         datagrid.
16289
16290 2006-05-23  Jackson Harper  <jackson@ximian.com>
16291
16292         * TreeView.cs: Use begin/end update when doing expand/collapse all
16293         so that we don't get flicker on the scrollbar.
16294
16295 2006-05-23  Jackson Harper  <jackson@ximian.com>
16296
16297         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
16298         treenode calculations to be independant of the painting code. To
16299         do this nodes track a visible order which is calculated by the
16300         treeview.
16301         - Call new methods for expanding/collapsing nodes.  These methods
16302         use scrollwindow so we don't have to update everything below the
16303         node.
16304         * TreeView.cs: Refactored drawing and scrolling code.  We don't
16305         need to update nodes when drawing anymore or calculate scrollbar
16306         stuff.
16307         - Added new methods for expanding/collapsing nodes. These methods
16308         use ScrollWindow so as to not have to redraw all the nodes below.
16309         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
16310         we add/remove nodes or sort.
16311         - Handle removing the selected and the top node properly.
16312
16313 2006-05-23  Chris Toshok  <toshok@ximian.com>
16314
16315         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
16316         maybe this should actually happen in the datagrid code?
16317         (EndEdit): no need to invalidate anything, given that
16318         ReleaseHostedControl causes the datagrid to relayout, which
16319         invalidates everything anyway.
16320
16321         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
16322         in SetCurrentCell).
16323         (set_SelectionBackColor): call InvalidateSelection instead of
16324         Refresh.
16325         (set_SelectionForeColor): same.
16326         (BeginEdit): Flesh this out a bit.
16327         (CancelEditing): only do any of this if we're editing/adding.
16328         (EndEdit): same.
16329         (OnMouseDown): there's no need to cancel editing here, it's done
16330         in SetCurrentCell.
16331         (SetCurrentCell): only invalidate the current row header if it's a
16332         different row than the new one.
16333         (ShiftSelection): fix this to work like MS does.
16334         (ResetSelection): factor out the invalidation of selected_rows to
16335         InvalidateSelection.
16336         (SetDataSource): cancel any editing that's going on.
16337
16338         * DataGridColumnStyle.cs
16339         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
16340         call the non-interface version.
16341
16342         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
16343         header rectangle with the clip rectangle so we don't redraw the
16344         entire header for just a small area.  Gets rid of the last flicker
16345         when horizontally scrolling.
16346         (DataGridPaintRow): same.
16347
16348 2006-05-23  Mike Kestner  <mkestner@novell.com>
16349
16350         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
16351         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
16352         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
16353         Critical bug report.
16354
16355 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
16356
16357         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
16358           and this fixes #78493
16359
16360 2006-05-23  Miguel de Icaza  <miguel@novell.com>
16361
16362         * Theme.cs (GetSizedResourceImage): Scale images if the proper
16363         size is not found.  
16364         
16365         * FileDialog.cs: Do not change the background for the side bar as
16366         it wont work nicely with the theme, and also reduces the artifacts
16367         in rendering the icons (which I want to fix too).
16368
16369         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
16370         resources, not resgen resources. 
16371
16372         (PlatformDefaultHandler): Pull images using the new API.
16373
16374 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
16375
16376         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
16377           a reference to the hwnd and will not remove it unless there are
16378           no pending exposures (fixes #78341)
16379         * XplatUI.cs: Improved debug
16380
16381 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
16382
16383         * MenuAPI.cs : don't handle OnClick event when it was not the left
16384           button. Fixed bug #78487.
16385
16386 2006-05-23  Mike Kestner  <mkestner@novell.com>
16387
16388         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
16389         prefer submenus to the top menu for item lookup, to avoid popping down
16390         top-row items.
16391
16392 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
16393
16394         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
16395           Graphics.FillRectangle as the visual results are really bad (even
16396           on win). We now draw perfect arrows (and perfect shadows when the
16397           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
16398           Pen.DashPattern to draw the dots of each line.
16399
16400 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
16401
16402         * FileDialog.cs: Update the filename combobox when navigating through
16403           the ListView with the cursor keys. Fixes part 7 of bug #78446.
16404
16405 2006-05-22  Mike Kestner  <mkestner@novell.com>
16406
16407         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
16408         Fixes #78463.
16409
16410 2006-05-22  Mike Kestner  <mkestner@novell.com>
16411
16412         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
16413         requests. Fix a misspelled parameter and a copy paste exception error
16414         in Select.
16415
16416 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
16417
16418         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
16419           to get the same width/height (5/13) on X11 as the default font has on
16420           win32. This means that our DefaultFont emSize is smaller than the 
16421           the MS SWF equivalent (even thought the width/height stays the same)
16422
16423 2006-05-20  Jackson Harper  <jackson@ximian.com>
16424
16425         * MdiClient.cs:
16426         * MdiWindowManager.cs:
16427         * InternalWindowManager.cs: Make sure to use the border width from
16428         the theme.
16429
16430 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
16431
16432         * PrintDialog.cs: Implements printer details
16433
16434 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
16435
16436         * FileDialog.cs: Added focus handling for PopupButtonPanel.
16437           Fixes part 1 and 2 of bug #78446
16438
16439 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
16440
16441         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
16442           instead of sticking to the first ever calculated value
16443
16444 2006-05-19  Mike Kestner  <mkestner@novell.com>
16445
16446         * ComboBox.cs: fix mouse motion selection to use MousePosition and
16447         PointToClient, since Capture is set. Fixes #78344.
16448
16449 2006-05-19  Mike Kestner  <mkestner@novell.com>
16450
16451         * ListView.cs: match MS behavior in Details view where items are not
16452         drawn if Columns.Count == 0. 
16453         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
16454         Use a separate pen to draw the check, since changing the width affects
16455         the box as well.  Fixes #78454.
16456
16457 2006-05-18  Miguel de Icaza  <miguel@novell.com>
16458
16459         * ListView.cs: ArgumentOutOfRangeException, single versions of the
16460         exception should throw the name of the invalid argument.
16461
16462         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
16463         there are no files listed. 
16464
16465 2006-05-18  Jackson Harper  <jackson@ximian.com>
16466
16467         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
16468         up.
16469
16470 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
16471
16472         * Control.cs: Brought back our old UpdateZOrder method as a private
16473           function and switched our calls from UpdateZOrder to the new one.
16474           This fixes the Paint.Net canvas disappearing bug.
16475
16476 2006-05-18  Jackson Harper  <jackson@ximian.com>
16477
16478         * Theme.cs:
16479         * ThemeWin32Classic.cs:
16480         * InternalWindowManager.cs: Move the drawing into the theme,
16481         expose everything the theme should need from the window manager.
16482
16483 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
16484
16485         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
16486           from the call to NativeWindow to avoid walking up the parent chain
16487           further than needed (speeds up setting cursors and avoids setting
16488           the wrong cursor if a parent has another cursor defined)
16489         * Cursor.cs: When loading an icon as cursor, MS uses the center of
16490           the icon as hotspot, not what's contained as hotspot in the icon
16491           file. This fixes the perceived drawing offset seen with Paint.Net
16492         
16493 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
16494
16495         * XplatUIX11.cs: 
16496           - Store the calculated rectangle in Hwnd object and use it when 
16497             setting the client size
16498           - Force Toolwindows to always be type Dock, to ensure they're on top
16499
16500 2006-05-18  Mike Kestner  <mkestner@novell.com>
16501
16502         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
16503         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
16504         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
16505         Substantial refactoring to remove confusing nested classes. Coding
16506         standard and Get+Set->property refactorings.  Shift to index based
16507         highlighting in ComboListBox instead of constantly using IndexOf and
16508         Items[]. Add invalidations on resize for DropDownList to fix ugliness
16509         in FileDialog growth.  Draw borders manually since Simple mode needs
16510         to look like two independent controls.  Make listbox border
16511         conditional to DropDownStyle.  Improved OwnerDraw support.
16512
16513 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
16514
16515         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
16516         Don't set the disposed graphics to null, so we can throw the "right"
16517         exception if the graphics is reused later (added a flag to avoid 
16518         double disposing). Some behaviours are different under 2.0 and are
16519         filled under bug #78448.
16520
16521 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
16522
16523         * Control.cs: When double-buffering is enabled, we need to reset
16524           our graphics context between paint calls. Otherwise, any 
16525           transformations and other alterations on the context will 
16526           become cumulative (#77734)
16527
16528 2006-05-18  Mike Kestner  <mkestner@novell.com>
16529
16530         * ListView.cs: do focused item selection like MS on clicks. 
16531         Rework focus handling for ItemControl so LostFocus invalidates as
16532         well.
16533         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
16534         the ListView ItemControl has focus.
16535
16536 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
16537
16538         * XplatUIX11.cs: If client_window ends up being width or height zero
16539           due to border settings, move it off window inside whole_window (#78433)
16540
16541 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
16542
16543         * Mime.cs: Shrink the mime file cache correctly.
16544
16545 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
16546
16547         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
16548
16549 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
16550
16551         * XplatUIX11.cs (AddExpose): More sanity checks
16552
16553 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
16554
16555         * XplatUIX11.cs:
16556           - AddExpose: Don't add expose ranges outside the size of our
16557             window
16558           - Cast opacity values to Int32 to avoid crashes with certain
16559             values
16560           - Added disabled code paths that protect against illegal cross-
16561             thread painting (Developers.exe)
16562
16563 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
16564
16565         * ProgressBar.cs: Invalidate the control when it's resized
16566           since block size is based on control size. (#78388)
16567
16568 2006-05-16  Miguel de Icaza  <miguel@novell.com>
16569
16570         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
16571         of setting the incoming argument to the "reset" value, we set the
16572         this.datamember to string.empty (before we were invalidating the
16573         incoming data).   
16574
16575         Fixes 78420
16576
16577 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
16578
16579         * Form.cs: Only apply transparency settings after the form
16580           is created. (Fixes #77800)
16581
16582 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
16583
16584         * ApplicationContext.cs: Grab the HandleDestroyed event so
16585           we know when to fire OnMainFormClosed 
16586
16587 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
16588
16589         * Application.cs: Introduced sub-class to allow tracking of
16590           threads and centralized triggering of the event mess for
16591           ThreadExit, AppExit, etc..  (#76156)
16592
16593 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
16594
16595         * MimeIcon.cs:
16596           - Do not return a null icon index value for a mime subclass.
16597             Instead try the main mime type class too.
16598           - Seems that some newer distributions don't have a link to some
16599             gnome default icons anymore. So check the default gnome dir too.
16600           
16601
16602 2006-05-16  Jackson Harper  <jackson@ximian.com>
16603
16604         * MdiClient.cs: Don't paint the parent background image if we have
16605         our own background image.
16606
16607 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
16608
16609         * Control.cs:
16610           - PerformLayout: Do not shrink space filled by DockStyle.Fill
16611             controls, all filled controls are supposed to overlap (#78080)
16612           - UpdateZOrder is supposed to update the control's z-order in the
16613             parent's z-order chain. Fixed to behave like that
16614           - BringToFront: Removed obsolete code
16615           - SendToBack: Simplyfied
16616           - SetChildIndex: Trigger layout calculations when Z-order changes
16617             since layout is done by z-order
16618
16619 2006-05-16  Chris Toshok  <toshok@ximian.com>
16620
16621         [ fixes bug #78410 ]
16622         * DataGrid.cs (set_AlternatingBackColor): use
16623         grid_drawing.InvalidateCells instead of Refresh().
16624         (set_BackColor): call grid_drawing.InvalidateCells.
16625         (set_BackgroundColor): use Invalidate instead of Refresh.
16626
16627         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
16628         invalidate the cell area.
16629
16630 2006-05-15  Chris Toshok  <toshok@ximian.com>
16631
16632         [ fixes bug #78011 ]
16633         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
16634         on to DataGridPaintRow.
16635         (DataGridPaintRow): take a clip argument, and only draw the cells
16636         which intersect it.  same with the not_usedarea.
16637
16638         * Theme.cs (DataGridPaintRow) add @clip parameter.
16639
16640         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
16641         XplatUI.ScrollWindow.
16642         (ScrollToRow): same.
16643
16644         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
16645         with last column which was causing a gray swath to appear with the
16646         XplatUI.ScrollWindow code.
16647
16648 2006-05-15  Chris Toshok  <toshok@ximian.com>
16649
16650         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
16651         use XplatUI.ScrollWindow.
16652         (VerticalScrollEvent): use XplatUI.ScrollWindow.
16653
16654 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
16655
16656         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
16657
16658 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
16659
16660         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
16661           file since there are no equivalent X11 cursors
16662
16663 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
16664
16665         * MonthCalendar.cs : DateTimePicker should reflect selected date
16666           on mouse*up*, not mouse*down*. Fixed originally reported part of
16667           bug #76474.
16668
16669 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
16670
16671         * TabControl.cs : When argument index is equal or more than tab
16672           count, just ignore. Fixed bug #78395.
16673
16674 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
16675
16676         * Control.cs: Dispose all child controls when control is diposed (#78394)
16677
16678 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
16679
16680         * ColorDialog.cs: Finally it is possible to select the color with
16681           the text boxes
16682
16683 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
16684
16685         * PrintDialog.cs: Fix typo
16686
16687 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
16688
16689         * PrintDialog.cs: PrintDialog is not resizable
16690         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
16691           color. Made some ToolBar drawing methods protected virtual.
16692
16693 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
16694
16695         * PrintDialog.cs: Implementation of the PrintDialog
16696
16697 2006-05-12  Chris Toshok  <toshok@ximian.com>
16698
16699         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
16700         thumb, instead use MoveThumb.  This has the side effect of making
16701         most of the other thumb moving machinery use MoveThumb as well.
16702         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
16703         need to actually invalidate the rectangle where the new thumb will
16704         go.
16705         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
16706         We force an Update() after, so it's not as fast as it could be,
16707         but at least there's zero flicker and no droppings.
16708         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
16709         (UpdateThumbPos): add another argument (dirty), which says whether
16710         or not to calculate/add dirty regions which we later invalidate.
16711         For cases where we know we're going to use MoveThumb, we pass
16712         false for this.  Otherwise, pass true.
16713
16714 2006-05-12  Jackson Harper  <jackson@ximian.com>
16715
16716         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
16717         the status bar.
16718         
16719 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
16720
16721         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
16722           and GetClipRegion methods and UserClipWontExposeParent property.
16723         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
16724           overriding UserClipWontExposeParent property, setting to false, since
16725           Win32 handles the required expose messages to draw our clipped parent
16726           areas internally
16727         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
16728           PaintEventStart to set the user clip region if set.
16729         * Control.cs: 
16730           - Now internally tracking the Region for the control since we need to
16731             store it if the handle is not yet created and only set it when it
16732             becomes created. Before setting the region forced handle creation
16733           - Added code to draw the parents underneath a user-clipped region
16734         * Hwnd.cs: Added UserClip property
16735
16736 2006-05-12  Chris Toshok  <toshok@ximian.com>
16737
16738         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
16739         (set_Maximum): same.
16740         (set_Minimum): same.
16741         (set_SmallChange): same.
16742         (OnMouseUpSB): remove the call to refresh when releasing the
16743         thumb.  We shouldn't need it.
16744         
16745 2006-05-12  Miguel de Icaza  <miguel@novell.com>
16746
16747         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
16748         AutoSize set to None, we do not need to relayout everything, we
16749         just need to invalidate the current region.
16750
16751         (Draw): Do not draw the entire ClientArea, just redraw the
16752         clip area being passed.
16753
16754         * MdiClient.cs: Make MdiClient constructor with the Form argument
16755         internal. 
16756
16757 2006-05-12  Jackson Harper  <jackson@ximian.com>
16758
16759         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
16760         parents background image,  but strangely not their own.
16761         - (DrawStatusBarPanel): Take into account horizontal alignment
16762         when drawing the strings and icons.
16763
16764 2006-05-12  Mike Kestner  <mkestner@novell.com>
16765
16766         * ListBox.cs: avoid invalidations for focus when the collection is
16767         empty. 
16768
16769 2006-05-12  Chris Toshok  <toshok@ximian.com>
16770
16771         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
16772         invalidate the entire thumb area.  Call InvalidateDirty which
16773         limits the redraw to the thumb itself and surrounding pixels.
16774
16775         * XplatUIX11.cs (ScrollWindow): optimize copying.
16776         
16777 2006-05-12  Chris Toshok  <toshok@ximian.com>
16778
16779         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
16780         Figure out the positioning/layout in a single pass instead of
16781         multiple recursive invocations.  Speeds up the initial display of
16782         the data grid.  Also, make many things private that were
16783         originally public but unused outside this class.
16784
16785 2006-05-11  Jackson Harper  <jackson@ximian.com>
16786
16787         * MdiClient.cs: Improved layout code.
16788
16789 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
16790
16791         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
16792           not SelectedObject.
16793
16794 2006-05-11  Chris Toshok  <toshok@ximian.com>
16795
16796         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
16797         union of that will always be {0,0,width,height}.
16798
16799 2006-05-11  Jackson Harper  <jackson@ximian.com>
16800
16801         * Form.cs: Match MS's DefaultSize for forms (they must have
16802         changed the size in sp2).
16803
16804 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
16805
16806         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
16807
16808 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
16809
16810         * TextControl.cs : Fixed bug #78109. This incorrect position
16811           comparison caused crash on automatic line split.
16812         * TextBoxBase.cs : reduce duplicate code.
16813
16814 2006-05-10  Jackson Harper  <jackson@ximian.com>
16815
16816         * MdiClient.cs: Active form is only sent to the back when using
16817         the Next form functionality, when a form is clicked the current
16818         active shouldn't be sent to the back.
16819         - Layout the mdi windows when the container is first made visible.
16820         * Form.cs: Give the MdiClient a ref to the containing form when we
16821         create it.
16822         
16823 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
16824
16825         * LinkLabel.cs : link_font could be uninitialized, so populate one
16826           before actual use. Fixed bug #78340.
16827
16828 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
16829
16830         * XplatUIX11.cs : clipboard format native value is IntPtr.
16831           Fixed bug #78283.
16832
16833 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
16834
16835         * Control.cs: 
16836           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
16837             which is passed up the parent chain by DefWndProc
16838           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
16839             to DefWndProc (#77956)
16840         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
16841
16842 2006-05-10  Jackson Harper  <jackson@ximian.com>
16843
16844         * MdiClient.cs: We need to remove the controls from the mdi
16845         collection, when we close the window.
16846         * MdiWindowManager.cs: Special handling of closing mdi windows.
16847         * InternalWindowManager.cs: Make the close method virtual so the
16848         mdi window manager can handle it specially.
16849
16850 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
16851
16852         * DataGrid.cs:
16853           - Recalculate grid when the data source has changed
16854           - Matches styles provided by user from all data sources types
16855         * DataGridTableStyle.cs: For columns that provided by the user set the
16856         with the preferred value is there was unassigned.
16857         * CurrencyManager.cs: throw OnItemChanged event
16858
16859 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
16860
16861         * PictureBox.cs: Don't animate until handle is created. Start animation
16862           when handle is created.
16863
16864 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
16865
16866         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
16867           current codebase.
16868         * XEventQueue.cs: We don't need to provide the extra info
16869
16870 2006-05-10  Jackson Harper  <jackson@ximian.com>
16871
16872         * MdiClient.cs: If the mdi clients parent form has a background
16873         image set, we draw that background image for the mdi area's
16874         background.
16875
16876 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
16877
16878         * TextBoxBase.cs: Set IBeam cursor (#78347)
16879
16880 2006-05-10  Mike Kestner  <mkestner@novell.com>
16881
16882         * ToolBar.cs: fix some text padding issues with ButtonSize
16883         calculation. Update the default size to match MS documentation.
16884         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
16885         button size. Fixes #78296.
16886
16887 2006-05-10  Mike Kestner  <mkestner@novell.com>
16888
16889         * ListBox.cs: use is_visible for scrollbar positioning in case the
16890         control isn't on screen yet.  Fix off by one with Right vs Width
16891         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
16892         
16893 2006-05-10  Jackson Harper  <jackson@ximian.com>
16894
16895         * X11Dnd.cs: Drop to a control with another control on top of it.
16896         * ToolBar.cs: Work on a copy of the buttons list, so that it can
16897         be modified in click handlers. TODO: Look for similar problems in
16898         other controls.
16899
16900 2006-05-09  Jackson Harper  <jackson@ximian.com>
16901
16902         * Form.cs: Window managers need the old window state when setting
16903         window state now.
16904         * InternalWindowManager.cs: Allow the base mdi window manager to
16905         handle more of the MDI only stuff (like maximize buttons).
16906         * MdiWindowManager.cs: Fix some snafus in changing the window
16907         state.  Add all the menu functionality, for both popup and
16908         maximized menus.
16909         * MdiClient.cs: When a new form is selected the currently
16910         activated form is sent to the back, this matches MS.
16911         - Implement a new method to activate the next mdi child window.
16912
16913 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
16914
16915         * Control.cs: 
16916           - Added new InternalCapture method to allow controls to prevent
16917             the capture behaviour on the click handlers
16918           - Switched to use InternalCapture
16919         * ComboBox.cs:
16920           - Using InternalCapture to prevent mouse captures from being released
16921             on mouse button release (Fixes #78100)
16922         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
16923           returns Form borders if a caption is present. (Fixes #78310)
16924
16925 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
16926
16927         * TreeNode.cs: Changed serialization .ctor to not require every field
16928           to be present. (#78265)
16929         * OwnerDrawPropertyBag.cs: Added serialization .ctor
16930
16931 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
16932
16933         * MimeIcon.cs: for is faster than foreach for strings.
16934
16935 2006-05-05  Mike Kestner  <mkestner@novell.com>
16936
16937         * CheckedListBox.cs: update check handling code to not use selected.
16938         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
16939         behavior for visual feedback, motion response, shift/ctrl handling,
16940         and properly deal with all 4 selection modes. Updates to bounds
16941         handling logic.  Add scroll wheel support. [Fixes #77842]
16942
16943 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
16944
16945         * ListView.cs:
16946           - Moved adding of Implicit controls into .ctor. That way, subsequent
16947             creation of the controls will not cause them to think they are 
16948             toplevel windows (fixes #78200 header problem)
16949           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
16950           - Switched visibility setting of header control to use internal field
16951             to avoid triggering handle creation
16952           - Now checking if handle is created before causing a refresh when items
16953             are added (This makes us now match handle creation time with MS)
16954         * Splitter.cs: Removed loading of private splitter cursor, switched to
16955           Cursors version now that that is loading the right ones
16956         * Cursors.cs: Load proper splitter cursors from resources
16957         * Cursor.cs: Added second method of loading resource cursors for the 
16958           VS.Net users amongst us
16959
16960 2006-05-05  Mike Kestner  <mkestner@novell.com>
16961
16962         * ListView.cs: give header_control a minimum size based on the
16963         ListView size.
16964
16965 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
16966
16967         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
16968           window seems to do that with metacity, so set that type. (#78120)
16969
16970 2006-05-05  Mike Kestner  <mkestner@novell.com>
16971
16972         * ListViewItem.cs: fix Details mode checkbox layout bug.
16973         * ThemeWin32Classic.cs: draw a ListView column header for unused space
16974         at the end of the header, if it exists. [Fixes for #78200]
16975
16976 2006-05-04  Jackson Harper  <jackson@ximian.com>
16977
16978         * MdiClient.cs: Add a helper property to get the container form.
16979         * MdiWindowManager.cs: We have to make sure to use the menu origin
16980         when drawing the icons and buttons, this fixes maximized window
16981         icons/buttons on win32.
16982         * InternalWindowManager.cs: Reset the restore captions when a
16983         window goes from Maximized to Minimized and vice versa. Move the
16984         DrawMaximizedButtons into the MdiWindowManager source, tool
16985         windows can't be maximized. NOTE: This could use a little
16986         refactoring if time ever permits.
16987         
16988 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
16989
16990         * TextBox.cs: Add MWFCategoryAttributes
16991         * TextBoxBase.cs: Add MWFCategoryAttributes
16992         * Form.cs: Add MWFCategoryAttributes
16993
16994 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
16995
16996         * Control.cs: Add MWFCategoryAttributes
16997         * ScrollableControl.cs: Add MWFCategoryAttributes
16998
16999 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
17000
17001         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
17002           Divider is true. Fix a little glitch in PropertyToolBar
17003           drawing code
17004
17005 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
17006
17007         * Control.cs:
17008           - Dispose: Call base.Dispose, this causes the disposed event
17009             to be fired (and probably other, more important stuff)
17010           - SetVisibleCore: Set is_visible to true after creating the
17011             window so that the window still gets created invisible (if
17012             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
17013             to generate a WM_ACTIVE message
17014         * Form.cs: Call Dispose when we want to destroy the window, instead of
17015           just destroying the handle (Dispose will do that for us)
17016         * XplatUIX11.cs:
17017           - RootWindow also needs a queue, so we can properly process the
17018             property change events from RootWindow (like Activate)
17019           - Generatic synthetic WM_ACTIVE message when the active window is
17020             being destroyed
17021
17022 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
17023
17024         * LinkLabel.cs: Trigger a recalc of our label dimensions when
17025           bounds are changed
17026
17027 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
17028
17029         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
17030           for determining width and height (image might not be assigned if
17031           we're drawing an imagelist)
17032
17033 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
17034
17035         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
17036         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
17037           height from system
17038         * Theme.cs: No longer returns hardcoded menu height, instead calls
17039           new driver method
17040         * Form.cs (OnLoad): Scaling happens before triggering Load events 
17041           on MS (# 78257)
17042
17043 2006-05-01  Mike Kestner  <mkestner@novell.com>
17044
17045         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
17046
17047 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
17048
17049         * TextBoxBase.cs: Removed Fixme
17050         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
17051
17052 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
17053
17054         * XplatUIX11.cs:
17055           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
17056             the rectangle relative to the parent, considering borders. We
17057             don't really want that.
17058           - ScrollWindow: Fixed warning to be more understandable
17059         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
17060           scrollbars and scroll only the visible area
17061         * RichTextBox.cs: Removed debug output
17062
17063 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
17064
17065         * NumericUpDown.cs (Text): Just use base
17066         * UpDownBase.cs: Ensure txtView is created before using it
17067
17068 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
17069
17070         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
17071           casting to IntPtr to avoid 64bit overflow errors
17072
17073 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
17074
17075         * Control.cs:
17076           - AllowDrop: Don't force handle creation.
17077           - CreateHandle: Added call to tell driver if we're allowed to drop
17078
17079 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
17080
17081         * FileDialog.cs: Remember the last directory not only for the
17082           current instance but also for new FileDialog instances.
17083
17084 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
17085         
17086         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
17087           broke sending async messages
17088
17089 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
17090
17091         * XplatUIX11.cs:
17092           - ScrollWindow: Fixed method. We finally generate expose events again
17093             for scrolled areas. This was causing 'garbage' when scrolling
17094             textbox and other controls that used ScrollWindow
17095           - Switched from using the regular queue for paint events to the MS 
17096             model of 'generating' paint events when the queue is empty.
17097             We use the new XQueueEvent.Paint subclass to store which windows
17098             need painting.
17099           - AddExpose now takes the x/y/width/height of the exposed area
17100             and inserts the window into the paint queue if not already there
17101           - InvalidateWholeWindow: Switched to use new AddExpose method
17102           - UpdateMessageQueue: Added which queue to monitor for paint events
17103           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
17104             the unlikely case nothing above handles it. We reset the expose
17105             pending states to get them off the queue.
17106           - GetMessage: Now pulls a paint event if no other events are in the
17107             queue
17108           - Invalidate: Switched to new AddExpose method
17109           - PeekMessage: Updated to understand pending paint events
17110           - UpdateWindow: Fixed logic bug. We were only updating if the window
17111             didn't need updating. Also switched to sending WM_PAINT directly,
17112             like MS does.
17113         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
17114           and random access Remove(). The random access is needed to handle
17115           UpdateWindow() where a WM_PAINT is sent directly without accessing
17116           the queue.
17117         * ScrollBar.cs: Added Update() calls to cause immediate updates to
17118           allow for better feedback when scrolling. Scrollbars are small and
17119           the immediate update should make it 'feel' more responsive without
17120           slowing things down. ScrollBar still needs it's invaliate logic
17121           updated to not always invalidate the whole bar on certain changes.
17122
17123 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17124
17125         * Control.cs:
17126         (BackColor): if the control does not support a transparent background,
17127         return the default backcolor when the parent backcolor is transparent.
17128
17129 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
17130
17131         * Application.cs: Updated to new StartLoop/GetMessage API
17132         * RichTextBox.cs: Provide some output on RTF parsing errors
17133         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
17134           new queue_id argument to GetMessage and PeekMessage to allow faster
17135           handling of per-thread queues in drivers.
17136         * Hwnd.cs: Added Queue tracking and property
17137         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
17138         * XEventQueue.cs: Added thread trackingA
17139         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
17140         * XplatUIX11.cs:
17141           - Implemented new per-thread queue
17142           - GetMessage: Fixed return/break behaviour on several cases. We were
17143             returning stale messages in some cases, instead of just processing
17144             the next message
17145
17146 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
17147
17148         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
17149
17150 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
17151
17152         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
17153           fixed off-by-one comparisons between Width/Height and Right/Bottom.
17154
17155 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
17156
17157         * PropertyGridView.cs: Fix drop down width.
17158
17159 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
17160
17161         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
17162           a mess in DrawToolBar, so I removed one of them.
17163
17164 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
17165
17166         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
17167           needed (clip). Otherwise we get artifacts.
17168
17169 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
17170
17171         * FixedSizeTextBox.cs: Added constructor to allow specifying which
17172           dimension is fixed
17173         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
17174           and switched FixedSizeTextBox to only be fixed vertical (#78116)
17175         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
17176           if it matches the scale base font (avoids unneeded scaling)
17177
17178 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
17179
17180         * X11DesktopColors.cs: One gtk_init_check should be enough
17181
17182 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
17183
17184         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
17185           match MS behaviour
17186
17187 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
17188
17189         * TextBoxBase.cs: 
17190           - Generate OnTextChanged for Backspace even if we're only deleting
17191             the current selection
17192           - When setting the Text property, only select all text if the
17193             control does not have focus when it is being set. Otherwise
17194             just place the cursor at the beginning of the control
17195
17196 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
17197
17198         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
17199           Added a little helper to draw PropertyGrid ToolBar with a different
17200           border and a different BackColor.
17201         * PropertyGrid.cs: Some background parts didn't get painted with the
17202           correct background color. Added a class that helps us to draw the
17203           correct border for PropertyGridView and a class that helps us to
17204           draw ToolBars with a different backcolor
17205         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
17206
17207 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
17208
17209         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
17210         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
17211
17212 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
17213
17214         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
17215           into the palette entries. Also, since we're working on a copy
17216           we needed to copy the palette back onto the bitmap.
17217         * Cursor.cs: Same fix as XplatUIWin32.cs.
17218
17219 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
17220
17221         * ImageListStreamer.cs: Need to read the var (or we're off)
17222
17223 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
17224
17225         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
17226           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
17227           TextBoxBase.cs: Unused var fixes
17228         * AxHost.cs: Small 2.0 fix
17229         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
17230           as it seems that is what at least Metacity expects. This will make
17231           icons show up on 64bit platforms. We still have some 64bit size
17232           issues, though, since the startup app window size still won't match.
17233
17234 2006-04-25  Mike Kestner  <mkestner@novell.com>
17235
17236         * *.cs: cleanup newly reported exception var unused warnings.
17237
17238 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
17239
17240         * ThemeWin32Classic.cs: Button image alignment now matches exactly
17241           ms
17242
17243 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
17244
17245         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
17246           image. The image position is always the same, no matter if the
17247           button is pressed or not.
17248
17249 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
17250
17251         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
17252           selection and set the correct filename for SaveFileDialog.
17253           Patch by Emery Conrad.
17254
17255 2006-04-24  Mike Kestner  <mkestner@novell.com>
17256
17257         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
17258         check for item.X outside the ClientRect instead of item.Y. Fixes
17259         #78151.
17260
17261 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17262
17263         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
17264         trust that value blindly and do some sanity check. Fixes bug #77814.
17265
17266 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17267
17268         * ImageListStreamer.cs: save the mask as a 1bpp image.
17269
17270 2006-04-21  Mike Kestner  <mkestner@novell.com>
17271
17272         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
17273         pass Checked and Indeterminate to the Theme Engine. Improve
17274         encapsulation with ListBox.
17275         * ListBox.cs: Keep a StringFormat instead of calculating it every item
17276         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
17277         nested types.  Move all CheckState functionality to CheckedListBox.
17278         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
17279         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
17280         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
17281         single base list. Fix scrollbar sizing and placement to mirror MS.
17282         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
17283         used.
17284         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
17285         for CheckedListBox by using new DrawItemState info.  Center the
17286         checkboxes on the items. Use new StringFormat property.
17287
17288 2006-04-18  Jackson Harper  <jackson@ximian.com>
17289
17290         * Form.cs: MdiChildren don't do default locations the same way as
17291         regular forms.  This prevents a crash when trying to position the
17292         mdi windows.
17293
17294 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
17295
17296         * PropertyGridTextBox.cs: Formatting, copyright
17297         * PropertiesTab.cs: Formatting
17298         * PropertyGrid.cs: Formatting
17299         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
17300           click toggling of values
17301           
17302 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
17303
17304         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
17305         * Control.cs (.ctor): verify_thread_handle is static, don't reset
17306           every time a control is created
17307         * Application.cs: Removed obsolete EnableRTLMirroring method
17308
17309 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
17310
17311         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
17312         SelectedIndex to -1. Fixes bug #78121.
17313
17314 2006-04-17  Jackson Harper  <jackson@ximian.com>
17315
17316         * Binding.cs: Handle null values for Current and BindingContext.
17317         This occurs when binding is a little delayed.
17318         * CurrencyManager.cs: return null for Current when there are no
17319         items in the list.
17320         - Hookup to the listchanged event on the DataView and update
17321         bindings when the list is changed.  This fixes late binding of
17322         controls.
17323
17324 2006-04-17  Jackson Harper  <jackson@ximian.com>
17325
17326         * X11Dnd.cs:
17327         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
17328         Ringenbach.
17329
17330 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
17331
17332         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
17333           place
17334         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
17335           with the correct ButtonState
17336
17337 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
17338
17339         * XplatUIX11.cs: Improved distinguishing between window types to
17340           tell the WM a type closer to what the app wants (Fixes #78107)
17341
17342 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
17343
17344         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
17345           GrabHandle
17346
17347 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
17348
17349         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
17350           drawing code to reflect the size grip changes
17351
17352 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17353
17354         * ImageListStreamer.cs: fix handling of the mask that follows the main
17355         bitmap when deserializing and serialize it properly. The generated mask
17356         should better be a 1bpp image, but I'll do that later.
17357
17358 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
17359
17360         * FileDialog.cs: Show something in the DirComboBox on *nix if the
17361           path doesn't fit into some of our Current.Places
17362
17363 2006-04-13  Jackson Harper  <jackson@ximian.com>
17364
17365         * ComboBox.cs: Use borders instead of drawing our own decorations,
17366         try to obey correct rules for heights.
17367         * Theme.cs:
17368         * ThemeNice.cs:
17369         * ThemeClearLooks.cs:
17370         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
17371         this is now handled by borders.
17372         - Remove unused DrawListBoxDecorationSize method.
17373         
17374 2006-04-13  Mike Kestner  <mkestner@novell.com>
17375
17376         * MenuAPI.cs: null guarding for the disbled click check fixes crash
17377         reported by Alex.
17378
17379 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
17380
17381         * ThemeWin32Classic.cs: 
17382           - Fixed CPDrawStringDisabled
17383           - Corrected drawing of disabled menu items
17384           - Fixed drawing of disabled radio buttons (bug #78095)
17385           - Draw check in a disabled CheckBox with color ControlDark 
17386
17387 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
17388
17389         * Form.cs: Use the provided width when calculating the menu size;
17390           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
17391           and ClientSize.Width won't be updated yet
17392         * Application.cs: Use Visible instead of Show() to make form visible,
17393           this way we create the handle later and menusize is considered
17394
17395 2006-04-12  Mike Kestner  <mkestner@novell.com>
17396
17397         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
17398         reporting.
17399
17400 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
17401
17402         * TextBox.cs: Implemented context menu
17403
17404 2006-04-12  Mike Kestner  <mkestner@novell.com>
17405
17406         * ListView.cs: implement box selection. fixes #77838.
17407         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
17408
17409 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
17410
17411         * XplatUIX11.cs: Added setting of window type when transient window
17412           is created (metacity would move it otherwise)
17413         * X11Structs.cs: Added WINDOW_TYPE atoms
17414         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
17415           background (the control is Opaque but still wants transparent
17416           backgrounds)
17417
17418 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
17419
17420         * Control.cs: Added OnPaintBackgroundInternal to allow controls
17421           that set Opaque but don't mean it (like all ButtonBase-derived
17422           controls) to still draw their background
17423         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
17424           the background
17425
17426 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
17427
17428         * Control.cs (PaintControlBackground): Set the graphics object
17429           on our PaintEvent to null to prevent it from being disposed
17430           when the PaintEvent gets disposed
17431
17432 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
17433
17434         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
17435         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
17436
17437 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
17438
17439         * Control.cs: 
17440           - Added transparency check to BackColor property. Transparent
17441             backgrounds are only allowed if the control styles permit it
17442           - Added recursive painting of parent control background and
17443             foreground if a control with a transparent backcolor is drawn
17444             (Thanks to Tim Ringenback for providing his 'hack' as a base
17445              for this patch) Fixes #77985 and #78026.
17446           - Added Opaque style check before calling OnPaintBackground, no
17447             need to draw the background if the control is opaque
17448           - Removed ControlAccessibleObject owner variable (inherited from
17449             base, no need to define again)
17450           - Added some documentation links explaining the drawing events
17451             and styles
17452
17453 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
17454
17455         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
17456           that the affected control is the located at the left border of our
17457           parent (Fixes #77936)
17458
17459 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
17460
17461         * TextBoxBase.cs: When rendering disabled or readonly controls,
17462           draw the background with 'Control' instead of 'Window' color as
17463           long as the user hasn't specifically set a color
17464
17465 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
17466
17467         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
17468           since that won't be updated if the user types text (only if it's
17469           programatically set)
17470
17471 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
17472
17473         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
17474           layout changes do to app-triggered resizes will have the proper
17475           display rectangle for layout
17476
17477 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
17478
17479         * ThemeWin32Classic.cs:
17480           - Make use of the SystemBrushes and SystemPens wherever possible
17481           - Corrected some highlight colors
17482           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
17483             drawing
17484         * Theme.cs: Added Empty field to CPColor struct
17485
17486 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
17487
17488         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
17489           is displayed when calculating the display rectangle. Thanks to Mike
17490           for teaching me the err of my ways.
17491
17492 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
17493
17494         * ScrollableControl.cs:
17495           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
17496             (instead of 0,0) and we now return the real width/height instead of
17497             just the clientrectangle, adjusted for padding. The rectangle is
17498             now cached and created by the new CalculateDisplayRectangle method.
17499           - Created new CalculateDisplayRectange method, which basically does
17500             what get_DisplayRectangle() did originally, but now using the 
17501             right edge instead of DisplayRectangle to determine the size of
17502             our scrollbars
17503           - get_Canvas(): Fixed it to properly calculate canvas for 
17504             right/bottom controls which seem to be placed to the right/bottom
17505             of any controls that have a fixed location
17506           - Removed TODO that's taken care of
17507           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
17508             and SetDisplayRectLocation according to new MSDN2 docs
17509           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
17510             event when that is called, this is added for compatibility
17511           - ScrollControlIntoView(): Implemented.
17512           - Switched scrollbars to be implicit, they shouldn't be selectable
17513         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
17514           call it when the active control is set/changed
17515         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
17516         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
17517           implicit_control variable (used for native Win32 message generation)
17518         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
17519           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
17520         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
17521         * XplatUIStructs.cs: Added ScrollBarCommands enum
17522
17523 2006-04-10  Jackson Harper  <jackson@ximian.com>
17524
17525         * ButtonBase.cs:
17526         * CheckedListBox.cs:
17527         * ComboBox.cs:
17528         * DataGrid.cs:
17529         * DataGridView.cs:
17530         * Form.cs:
17531         * GroupBox.cs:
17532         * ListBox.cs:
17533         * PrintPreviewControl.cs:
17534         * ProgressBar.cs:
17535         * PropertyGrid.cs:
17536         * Splitter.cs:
17537         * StatusBar.cs:
17538         * TrackBar.cs:
17539         * UpDownBase.cs: Fixup base event overrides.
17540         
17541 2006-04-06  Mike Kestner  <mkestner@novell.com>
17542
17543         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
17544         all user-initiated value changes to min <= value <= max-thumbsz+1.
17545         (set_Value): check for vert/horiz when calculating new thumb position.
17546         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
17547         like MS does.
17548         (OnMouseMoveSB): refactor the thumb dragging code and refine
17549         invalidation logic to reduce flicker.
17550         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
17551         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
17552         (UpdateThumbPosition): small code readability cleanup
17553
17554 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
17555
17556         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
17557           different
17558
17559 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
17560
17561         * ThemeNice.cs: Use a better graphics effect when a button is pressed
17562
17563 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
17564
17565         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
17566         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
17567           This dramatically reduces the number of Pen.Dispose calls. 
17568           Where possible call ResPool methods only once instead of calling it
17569           over and over again (for example for the same color).
17570
17571 2006-04-06  Mike Kestner  <mkestner@novell.com>
17572
17573         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
17574         Also remove an unused private field on the collection. Fixes #77972.
17575
17576 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
17577
17578         * ThemeNice.cs: Added ToolBar drawing code
17579
17580 2006-04-06  Mike Kestner  <mkestner@novell.com>
17581
17582         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
17583         I'm assuming that means we need to look up the toplevel for the
17584         provided control. Fixes the crash trace in #77911 but exposes another
17585         crash in some strange reflection usage in NDocGui.
17586
17587 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
17588
17589         * ThemeNice.cs: Gave it a little silver touch and added Images
17590           method
17591         * FontDialog.cs: FontDialog is not resizable
17592         * FileDialg.cs: Added SizeGripStyle.Show
17593
17594 2006-04-05  Jackson Harper  <jackson@ximian.com>
17595
17596         * KeyboardLayouts.cs: Remove warning.
17597
17598 2006-04-05  Jackson Harper  <jackson@ximian.com>
17599
17600         * Control.cs: Enable OnPaintInternal so we can use it for drawing
17601         all of our controls instead of Paint +=.
17602         * ListBox.cs:
17603         * ListView.cs:
17604         * MenuAPI.cs:
17605         * MessageBox.cs:
17606         * NotifyIcon.cs:
17607         * ProgressBar.cs:
17608         * ScrollBar.cs:
17609         * Splitter.cs:
17610         * StatusBar.cs:
17611         * TabControl.cs:
17612         * TextBoxBase.cs:
17613         * ToolBar.cs:
17614         * TrackBar.cs:
17615         * UpDownBase.cs:
17616         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
17617         use OnPaintInternal. Remove Width/Height and Visible checks in
17618         paint handler, this is done at a higher level now.
17619         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
17620         * PaintEventArgs.cs: Add a handled flag so controls that don't
17621         want anymore painting after OnPaintInternal can make sure OnPaint
17622         isn't called.
17623
17624 2006-04-05  Mike Kestner  <mkestner@novell.com>
17625
17626         * Form.cs: fix the menu WndProc hacks to respect the native enabled
17627         state of the form, so that we don't process events when Modal dialogs
17628         are up. Fixes #77922.
17629
17630 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
17631
17632         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
17633           checking is done.
17634
17635 2006-04-05  Mike Kestner  <mkestner@novell.com>
17636
17637         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
17638
17639 2006-04-05  Mike Kestner  <mkestner@novell.com>
17640
17641         * ListView.cs (HeaderMouseMove): null guarding for the over column
17642         when setting up the drag_to_index.  Fixes #78015.
17643
17644 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
17645
17646         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
17647           in the taskbar. Transient windows seem to accomplish that.
17648
17649 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
17650
17651         * Form.cs:
17652           - Re-enabled CreateParams.X/Y code for FormStartPosition
17653           - Added code for manual placement when creating the Control
17654           - Incomplete patch to treat MDI forms differently when
17655             setting the ClientSizeCore. (Still need to figure out handling
17656             x/y coords there)
17657         * XplatUIX11.cs:
17658           - When we're explicitly setting the X/Y position of a non-Child
17659             window, let the WM know. Metacity really wants this.
17660
17661 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
17662
17663         * ThemeNice.cs: Added CPDrawButton
17664
17665 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
17666
17667         * ThemeNice.cs: Changed the color for focused buttons and activated
17668           the arrows for small scroll buttons.
17669
17670 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
17671
17672         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
17673           anymore. Changed some method modifiers to protected (virtual)
17674         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
17675           changes
17676         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
17677           Updated drawing of menus, buttons and progressbars; added
17678           CPDrawBorder3D 
17679
17680 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17681
17682         * ImageListStreamer.cs: implemented serialization/deserialization
17683         of the images.
17684
17685 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
17686
17687         * ThemeWin32Classic.cs:
17688           - Removed all the DrawFrameControl stuff; CPDrawButton,
17689             CPDrawCheckBox and CPDrawRadioButton are now handled directly
17690             inside the methods
17691           - Updated and corrected the drawing code of CPDrawButton,
17692             CPDrawCheckBox and CPDrawRadioButton to better match ms
17693           - Updated theme checkbox and radiobutton code to use the CP*
17694             methods
17695
17696 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
17697
17698         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
17699           bug is fixed
17700
17701 2006-03-31  Jackson Harper  <jackson@ximian.com>
17702
17703         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
17704         sometimes.
17705         * UpDownBase.cs: Don't CreateGraphics manually, use a
17706         Refresh. Ideally we would invalidate the correct areas here.
17707
17708 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
17709
17710         * XplatUIX11.cs: 
17711           - We now track the mapping state of windows. If a window (or 
17712             one of it's parents) is not mapped we no longer permit
17713             WM_PAINT messages to be generated since we'd otherwise get 
17714             lots of BadMatch X errors. Jackson did all the work figuring
17715             out the problem.
17716           - Destroying the caret if the window it's contained in is 
17717             destroyed. Can't use regular DestroyCaret method since it
17718             might fall into a drawing function (trying to remove the
17719             caret) and with that generate new BadMatch errors. Again,
17720             Jackson tracked this down.
17721           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
17722             make sure we send the messages to all windows. (The old code
17723             would send the WM_DESTROY to the window, and then all child
17724             windows would be 'gone' because the WM_DESTROY handle lookup
17725             would no longer find the destroyed window)
17726         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
17727         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
17728
17729 2006-03-31  Jackson Harper  <jackson@ximian.com>
17730
17731         * ScrollableControl.cs: Dont recalc if we are not visible.
17732
17733 2006-03-31  Mike Kestner  <mkestner@novell.com>
17734
17735         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
17736         the visibility branch.
17737
17738 2006-03-31  Jackson Harper  <jackson@ximian.com>
17739
17740         * ScrollBar.cs: Cap values when incrementing/decrementing.
17741
17742 2006-03-31  Mike Kestner  <mkestner@novell.com>
17743
17744         * MenuAPI.cs: setup menu.tracker for popup/context menus.
17745         * ToolTip.cs: guard against timer expirations with no active control.
17746         Not sure why it happened.
17747
17748 2006-03-31  Mike Kestner  <mkestner@novell.com>
17749
17750         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
17751         text.
17752         * ToolTip.cs: Position the tooltip based on where the cursor is at
17753         popup time, not at MouseEnter time.  Add a Down state so that we don't
17754         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
17755         positioning offset. Lookup DisplaySize at positioning time, since it
17756         can theoretically change during invocation.
17757         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
17758         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
17759
17760 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
17761
17762         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
17763           Fixes behaviour when the Text property of the box is String.Empty
17764
17765 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
17766
17767         * XplatUIX11.cs: Only send mouseleave for our client windows, not
17768           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
17769           a window)
17770
17771 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
17772
17773         * FileDialog.cs: Visual enhancement for the popup buttons in 
17774           PopupButtonPanel
17775
17776 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
17777
17778         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
17779           code
17780
17781 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
17782
17783         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
17784           highlighted menu items to match ms
17785
17786 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
17787
17788         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
17789
17790 2006-03-30  Mike Kestner  <mkestner@novell.com>
17791
17792         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
17793         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
17794         go active to account for HotLight to Selected transition.
17795         * MenuItem.cs: add internal Selected prop. Fill out the Status
17796         property by calculating it from item info. Add HotLight,
17797         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
17798
17799 2006-03-30  Mike Kestner  <mkestner@novell.com>
17800
17801         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
17802
17803 2006-03-29  Jackson Harper  <jackson@ximian.com>
17804
17805         * Form.cs: Implement TODO.
17806
17807 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
17808
17809         * PrintPreviewDialog.cs: Implemented missing methods and events; still
17810           missing proper dialog setup in the constructor
17811
17812 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
17813
17814         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
17815         * Control.cs:
17816           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
17817           - Fixed ResetBindings and removed TODO
17818           - Added check for cross-thread calls to get_Handle()
17819           - Added Marshaller attribute for set_Font to satisfy class status
17820         * FontDialog.cs: Removed TODOs that seemed implemented
17821         * UpDownBase.cs: Removed unneeded TODO and Fixme
17822         * MessageBox.cs: Implemented support for Default button and removed TODO
17823         * FileDialog.cs: Removed obsolete TODO
17824         * DomainUpDown.cs: Removed obsolete TODO
17825         * ButtonBase.cs: Removed obsolete TODO
17826         * XplatUIWin32.cs: Removed obsolete TODO
17827         * Form.cs:
17828           - Removed obsolete TODO
17829           - Calling CheckAcceptButton when the acceptbutton is changed to allow
17830             internal status updates
17831           - Making sure the active control is selected when the control is created
17832         * CurrencyManager.cs: Removed obsolete TODO
17833
17834 2006-03-29  Mike Kestner  <mkestner@novell.com>
17835
17836         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
17837         of PrintPreviewDialog and RichTextBox.
17838
17839 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
17840
17841         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
17842           DarkDark, Light and LightLight colors for a specific color
17843         * ThemeWin32Classic.cs:
17844           - Use Button drawing code to draw RadioButtons and CheckBoxes with
17845             Appearance = Button 
17846           - Make use of the new ResPool helper CPColor
17847           - Draw ProgressBar and StatusBar with correct 3D borders
17848
17849 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
17850
17851         * ColorDialog.cs: Return selected color. Fixes bug #77940.
17852
17853 2006-03-28  Mike Kestner  <mkestner@novell.com>
17854
17855         * ListView.cs: fix Icon layout to plan for scrollbar widths when
17856         calculating col/row counts.
17857
17858 2006-03-28  Mike Kestner  <mkestner@novell.com>
17859
17860         * ColumnHeader.cs:
17861         * ListView.cs:
17862         * ListViewItem.cs:
17863         * Menu.cs: 
17864         switch to explicit interface method implementation for some methods
17865         corcompare identifies as inconsistent with MS.
17866
17867 2006-03-28  Mike Kestner  <mkestner@novell.com>
17868
17869         * MainMenu.cs: 
17870         * Menu.cs:
17871         add a few missing methods from the class status output.
17872
17873 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
17874
17875         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
17876           correct.
17877
17878 2006-03-28  Mike Kestner  <mkestner@novell.com>
17879
17880         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
17881
17882 2006-03-27  Mike Kestner  <mkestner@novell.com>
17883
17884         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
17885         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
17886
17887 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
17888
17889         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
17890
17891 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
17892
17893         * ThemeWin32Classic.cs:
17894           - GroupBox: Inserted a little gap between the text and the lines
17895             on the right side
17896           - Made the code in CPDrawBorder3D more readable
17897           - Corrected the drawing location of the up and down arrows in 
17898             CPDrawScrollButton
17899
17900 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
17901
17902         * ControlPaint.cs: Corrected line widths in DrawBorder for
17903           ButtonBorderStyle Inset and Outset
17904
17905 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
17906
17907         * ThemeWin32Classic.cs:
17908           - Rewrote the totally broken CPDrawBorder3D method. That was
17909             one of the main problems for the terrific ThemeWin32Classic
17910             look
17911           - Updated and corrected Button drawing
17912           - Correct the dimensions of the SizeGrip to match ms ones
17913           - Removed a small drawing glitch in DrawComboBoxEditDecorations
17914         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
17915           Border3DStyle.Sunken to match ms.
17916
17917 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
17918
17919         * ThemeWin32Classic.cs: First small part of the "de-uglify
17920           ThemeWin32Classic" effort, SizeGrip
17921
17922 2006-03-24  Jackson Harper  <jackson@ximian.com>
17923
17924         * XplatUIX11.cs: Give a max idle time of one second, this matches
17925         MS and forces an Idle event every second when there are no other
17926         events in the queue.
17927
17928 2006-03-24  Mike Kestner  <mkestner@novell.com>
17929
17930         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
17931         * ListView.Item.cs: fix layout issues with null image lists and images
17932         smaller than checkbox size.
17933         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
17934         mode like MS does.  It's weird, but consistent.  ;-)
17935         Fixes #77890.
17936
17937 2006-03-24  Mike Kestner  <mkestner@novell.com>
17938
17939         * ListView.cs: Scroll wheel support for the item control.  Fixes
17940         #77839.
17941
17942 2006-03-23  Jackson Harper  <jackson@ximian.com>
17943
17944         * ScrollableControl.cs: Special case negative sized areas, not
17945         zero.
17946         * MonthCalendar.cs: Save the rect of the clicked date so we can
17947         use it for invalidation.
17948         - Try to cut down on the number of invalidates
17949         - Invalidate the rect the mouse is over and was over when moving
17950         the mouse, so we get the focus box following the cursor.
17951
17952 2006-03-23  Mike Kestner  <mkestner@novell.com>
17953
17954         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
17955         focus rectangle drawing. Fixes #77835.
17956
17957 2006-03-23  Mike Kestner  <mkestner@novell.com>
17958
17959         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
17960         the if and else if and reverting back to the original == check on the
17961         None conditional.
17962
17963 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
17964
17965         * FontDialog.cs: Update the example panel if the selected index of
17966           the fontListBox changes.
17967
17968 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
17969
17970         * FileDialog.cs: Make FileDialog remember which directory it was in
17971           last in the same execution.
17972
17973 2006-03-22  Mike Kestner  <mkestner@novell.com>
17974
17975         * FileDialog.cs: make the DropDownMenu on the toolbar display
17976         RadioChecks since they are mutually exclusive and that's what MS does.
17977
17978 2006-03-22  Mike Kestner  <mkestner@novell.com>
17979
17980         * Theme.cs: add Color param to CPDrawMenuGlyph.
17981         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
17982         checks and radio marks and arrows are visible on highlighted items.
17983         * ControlPaint.cs: update to use new Theme signature.
17984
17985 2006-03-22  Mike Kestner  <mkestner@novell.com>
17986
17987         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
17988         is active. Fixes #77870.
17989
17990 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
17991
17992         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
17993           to be focused/selected after startup
17994
17995 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
17996
17997         * ColorDialog.cs: 
17998           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
17999             CustomColors and ShowHelp properties
18000           - Some internal rewrites to get better results when using the
18001             ColorMatrix
18002
18003 2006-03-22  Mike Kestner  <mkestner@novell.com>
18004
18005         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
18006         HoverSelection.  Fixes #77836.
18007
18008 2006-03-22  Mike Kestner  <mkestner@novell.com>
18009
18010         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
18011         ToggleButtons.  (De)Sensitize the Back button around a stack count of
18012         1, not 0.  Update ButtonSize based on a pixel count of the win32
18013         control.  Adjust the toolbar size/location for new button size.
18014
18015 2006-03-22  Jackson Harper  <jackson@ximian.com>
18016
18017         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
18018         true.
18019         * ScrollBar.cs: When doing increments and decrements we need to
18020         set the Value property so that ValueChanged gets raised. A
18021         possible optimization here would be to make an internal SetValue
18022         that doesn't invalidate immediately.
18023         * ToolTip.cs: Tooltips get added to their container (when
18024         supplied) so they get disposed when the container is disposed.
18025         - Don't create tooltips for String.Empty. This prevents all these
18026         little 2-3 pixel windows from showing up when running nunit-gui
18027         and driving me mad.
18028         * Form.cs: Don't set topmost when setting the owner if the handles
18029         haven't been created yet.  The topmost set will happen when the
18030         handles are created.
18031
18032 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
18033
18034         * XplatUIX11.cs:
18035           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
18036           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
18037             visible (to allow them to recalculate their sizes)
18038
18039 2006-03-21  Mike Kestner  <mkestner@novell.com>
18040
18041         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
18042         methods. Removed a ton of redundant code.  Still not really happy with
18043         the border rendering, but I think that's mainly because of the
18044         ControlDarkDark being black instead of a dark grey. Depending on how 
18045         close we want to be, we might want to revisit those color choices.
18046         Among the new features added during the refactor were DropDownArrow
18047         pressed rendering, Disabled image rendering.  Proper flat appearance
18048         boundary rendering.  Removed the Divider and Wrapping dividers since I
18049         can't figure out any combination of themes and conditions to make the
18050         MS control draw a horizontal line on a toolbar despite what the
18051         Divider property docs indicate.
18052         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
18053         conditions and incorrect layout.  Updated to coding standard.
18054         * ToolBarButton.cs: refactored layout and positioning code from
18055         ToolBar to here.  Invalidate wherever possible instead of forcing
18056         redraws of the whole toolbar. 
18057         (Known remaining issues: explicit ButtonSize smaller than provided
18058         images.)
18059
18060 2006-03-21  Mike Kestner  <mkestner@novell.com>
18061
18062         * ContextMenu.cs (Show): use the position parameter instead of just
18063         showing at the MousePosition.
18064
18065 2006-03-21  Jackson Harper  <jackson@ximian.com>
18066
18067         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
18068         control handle this.
18069         * TreeNodeCollection.cs: If we are clearing the root node we need
18070         to reset top_node so calcs can still happen.
18071         * ThemeWin32Classic.cs: This is a Flags so we need to check
18072         properly.
18073         
18074 2006-03-21  Jackson Harper  <jackson@ximian.com>
18075
18076         * DataGrid.cs: Create columns when the binding context has been
18077         changed.
18078         * X11Structs.cs: Keysyms are uints.
18079         - Add size to fix build.
18080
18081 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
18082
18083         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
18084           XplatUIOSX.cs: 
18085           - Added ResetMouseHover method to allow controls to retrigger
18086             hovering if they need it more than once
18087           - Implemented MouseHoverTime and MouseHoverSize properties
18088         * Timer.cs: Start() must reset the interval
18089         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
18090           properties
18091
18092 2006-03-21  Jackson Harper  <jackson@ximian.com>
18093
18094         * X11Keyboard.cs: improved layout detection. Move the nonchar
18095         tables into this file.
18096         * KeyboardLayouts.cs: Move the tables into resource files.
18097
18098 2006-03-21  Mike Kestner  <mkestner@novell.com>
18099
18100         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
18101
18102 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
18103
18104         * Mime.cs: Various speed optimizations. Looking up mime types
18105           is now 2 times faster than before
18106
18107 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
18108
18109         * CreateParams.cs: Added internal menu field
18110         * Control.cs: 
18111           - Switched call order for UpdateBounds; now we always call
18112             the one that also takes ClientSize, and we're calculating the 
18113             client size via driver method in the others. The previous
18114             method of tracking client size by difference wasn't working
18115             for forms where even the starting client size wouldn't match
18116             the overall form size (due to borders) (Part of fix for #77729)
18117           - CreateParams(): Do not use parent.Handle unless the handle is
18118             already created. Causes havoc with Nexxia and throws off our
18119             creation of controls
18120         * XplatUIX11.cs:
18121           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
18122           - Switched handling of ConfigureNotify over to new PerformNCCalc 
18123             method (consolidates code)
18124           - Changed RequestNCRecalc to use new PerformNCCalc method
18125           - Added calls to RequestNCRecalc when menus and borders are changed
18126             to allow app to set NC size. (Part of fix for #77729) This matches
18127             when MS send a WM_NCRECALC on Win32 windows.
18128           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
18129             (Part of fix for #77729). This matches what MS does, they also
18130             send that message when the form is made visible.
18131           - XException.GetMessage: Improved usability of X errors by including
18132             a translation of the window into Hwnd and Control class
18133           - Improved debug info for window creation, reparenting and destruction
18134           - Created helper method WindowIsMapped() [Currently not used]
18135         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
18136         * Form.cs:
18137           - CreateParams: Now setting our menu on the new internal menu field
18138           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
18139             avoid calculating the same property twice
18140         * Hwnd.cs:
18141           - Improved usability of ToString() for debugging purposes
18142           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
18143             determine the height of the menu, instead of just the font. This
18144             required to also create a graphics context and to keep a bmp 
18145             around (for performance reasons)
18146
18147 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
18148
18149         * MenuAPI.cs: Added OnMouseUp method
18150         * Form.cs:
18151           - Now remembering the requested client size, avoids size errors
18152           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
18153             instead of base if the menu is active. This is required due to
18154             control now capturing and releasing on down/up and it would
18155             prematurely release our menu capture
18156
18157 2006-03-17  Jackson Harper  <jackson@ximian.com>
18158
18159         * KeyboardLayouts.cs: Add the czech layouts.
18160
18161 2006-03-16  Jackson Harper  <jackson@ximian.com>
18162
18163         * Control.cs: Use the viewport space when sizing not the controls
18164         client size, so things like ScrollableControl that effect the
18165         viewport size (when scrollbars are added) are computed correctly.
18166         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
18167         of ManagerEntrys.
18168         - Handle creating BindingManagers for null data sources.
18169         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
18170         source, otherwise when rows are added they are added to the 'fake'
18171         datasource and we will crash when trying to set the position in
18172         those rows.
18173         - Use Implicit scrollbars on the datagrid so they arent
18174         selectable.
18175         
18176 2006-03-16  Jackson Harper  <jackson@ximian.com>
18177
18178         * Binding.cs:
18179         * InternalWindowManager.cs:
18180         * MdiWindowManager.cs:
18181         * X11Keyboard.cs: I really want Mike to love me again (fix
18182         compiler warnings).
18183
18184 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
18185
18186         * DataGrid.cs:
18187           - OnMouseDown: Switch to editing mode when clicking on the cell
18188                          even if we're clicking on the cell that's currently 
18189                          selected
18190           - ProcessGridKey: Left/Right now wrap like MS.Net does
18191           - ProcessGridKey: Tab now knows to add a new row when tab is
18192                             pressed in the cell of the last column of the 
18193                             last row
18194           - ProcessGridKey: Enter now adds another row  if pressed in the last
18195                             row and selectes the new row, same column cell
18196           - ProcessGridKey: Home/End navigate columns, not rows, like 
18197                             originally implemented
18198           - Broke ProcessKeyPreview code out into an extra Internal method
18199             so it can be called from the edit code
18200         * DataGridTextBox.cs (ProcessKeyMessage):
18201           - Switched to accept Tab keypresses
18202           - Added F2 handling to allow jumping to the end of the edited cell
18203           - Added logic to allow moving caret left/right inside edited cell
18204             and making the edited cell jump when the caret hits cell borders
18205           - Tab and Enter are now passed to the datagrid after being handled
18206         * TextBoxBase.cs:
18207           - Removed capture code now that Control handles it
18208           - set_SelectionStart now ensures caret is visible
18209
18210 2006-03-16  Jackson Harper  <jackson@ximian.com>
18211
18212         * TrackBar.cs: Debackwards the increment/decrement for handling
18213         mouse clicks on the bar with vertical trackbars.
18214         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
18215         bottom to match MS.
18216
18217 2006-03-16  Mike Kestner  <mkestner@novell.com>
18218
18219         * ListView.cs: make shift/ctrl keyboard and mouse selection 
18220         consistent with the MS control. Fix a bug in
18221         SelectedListViewItemCollection.Clear that was pissing me off for the
18222         better part of a day because the collection was being altered
18223         underneath us as we walked the list.
18224
18225 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
18226
18227         * Control.cs: Not sure how we could miss this so long, but it seems
18228           that MS.Net has Capture set all the way from before calling 
18229           OnMouseDown through sending the mouse events until after
18230           OnMouseUp. This will fix DataGrid's selection being set to end
18231           at the location of the MouseUp.
18232
18233 2006-03-15  Jackson Harper  <jackson@ximian.com>
18234
18235         * BindingContext.cs: Check the binding after its added so that it
18236           can initialize the binding managers and hookup to events.
18237         * Binding.cs: Data members seem to sometimes include rows/cols in
18238           the format Row.Column we now take this into account.
18239           - Hookup to the position changed event so we can update the
18240           control when the position has changed in the data set.
18241         * CurrencyManager.cs: Take into account the row/col naming
18242           convention when creating dataset tables.
18243         * BindingContext.cs: Using a newer better way of storing
18244           datasource/datamember pairs.  Hopefully this better matches MS for
18245           looking up binding managers.
18246
18247
18248 2006-03-15  Jackson Harper  <jackson@ximian.com>
18249
18250         * BindingContext.cs: The currency manager needs the data member
18251         name, if the member is a data set we use the name to find the
18252         correct table.
18253         * CurrencyManager.cs: When creating the list prefer an IList over
18254         an IListSource.
18255         - Attempt to create a DataTable from a DataSet (TODO: might need
18256         some better error checking here, although MS doesn't seem to have much)
18257         - If we have a DataTable create a view and use it as our list.
18258
18259 2006-03-15  Mike Kestner  <mkestner@novell.com>
18260
18261         * ListView.cs: keep a matrix of the icon mode layout to facilitate
18262         keyboard navigation. Support Up/Down/Left/Right selection correctly
18263         for all 4 View modes.
18264         * ListViewItem.cs: add internal row/col fields for icon layouts.
18265
18266 2006-03-15  Jackson Harper  <jackson@ximian.com>
18267
18268         * TabControl.cs: Redraw the tabs when we resize so their newly
18269         calculated sizes are drawn on screen.
18270         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
18271         composite characters.
18272         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
18273         - filter events so that composite characters can be created
18274         patches by peter
18275         * X11Structs.cs: Add XIMProperties enum.
18276
18277 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
18278
18279         * Control.cs (BringToFront, SendToBack): Don't use window or handle
18280           unless it's created
18281
18282 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
18283
18284         * Control.cs (PerformLayout): We don't need to consider visiblity
18285           for anchoring, only for docking. This fixes 'whacky' alignment
18286           in listbox and other controls that use implicit scrollbars after
18287           the previous PerformLayout patch
18288         * ListBox.cs: Switched to use implicit scrollbars
18289           
18290 2006-03-14  Mike Kestner  <mkestner@novell.com>
18291
18292         * ToolBar.cs: 
18293         * VScrollBar.cs:
18294         - chain up the "new event" overrides to base and use
18295         OnEvent to raise them.  Part of fix for bug #76509.
18296
18297 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
18298
18299         * FileDialog.cs: Do not select an item in the parent directory
18300           on backspace
18301
18302 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
18303
18304         * Control.cs (PerformLayout): It would seem that we considered
18305           invisible windows for our layout. Not quite the right thing
18306           to do. Now we don't any longer, thereby fixing bug #76889.
18307
18308 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
18309
18310         * Control.cs (CanFocus): I goofed. A control can have focus 
18311           even though it's not selectable. Made it match MS docs.
18312
18313 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
18314
18315         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
18316           center by default (fixes #76895)
18317         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
18318           all uses of Border3DSides.All with the explicit ORd together
18319           Left|Right|Top|Bottom because I assume that nobody was aware 
18320           that All also implies a center fill. Most places I checked had
18321           a fill right above.
18322         * ProgressBarStyle.cs: Added
18323
18324 2006-03-13  Mike Kestner  <mkestner@novell.com>
18325
18326         * ListView.cs: fix breakage in drag shadow header positioning 
18327         from Peter's csc compilation fix.
18328
18329 2006-03-13  Mike Kestner  <mkestner@novell.com>
18330
18331         * ListView.cs: fix NRE produced by backspacing twice in a focused
18332         FileDialog.
18333
18334 2006-03-13  Mike Kestner  <mkestner@novell.com>
18335
18336         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
18337
18338 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
18339
18340         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
18341           be changed
18342         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
18343           the allowed size before making programmatic size changes
18344
18345 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
18346
18347         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
18348           set, metacity is broken and will still use the emty sizes in 
18349           the struct. (Fix for #77089)
18350
18351 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
18352
18353         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
18354           WindowExStyles and marked both enums as Flags
18355         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
18356           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
18357           to match WindowStyles split
18358         * XplatUIX11.cs:
18359           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
18360           - Updated to match WindowStyles split
18361         * XplatUIWin32.cs:
18362           - Fixed FosterParent creation, was using ExStyle on the Style field
18363             (This should help with Popup focus issues)
18364           - Updated to match WindowStyles split
18365
18366 2006-03-13  Jackson Harper  <jackson@ximian.com>
18367
18368         * MdiWindowManager.cs: Use the system menu height. Fixes some
18369         strange sizing issues.
18370
18371 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
18372
18373         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
18374         * TextBoxBase.cs:
18375           - Scroll to caret after inserting text (#77672)
18376           - Make scroll range one pixel higher, fixes off-by-one error (and
18377             makes underlines visible on the last line)
18378
18379 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
18380
18381         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
18382           the keyboard state from being stuck with keys in 'pressed' state when
18383           focus is switched away via keyboard
18384         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
18385           reset the keyboard if no X11 KeyUp events are expected to come
18386         * X11Structs.cs: Switched type of Visible to bool to match driver
18387
18388 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
18389
18390         * TextControl.cs:
18391           - Switched caret to be just 1 pixel wide, matches MS and looks less
18392             clunky
18393           - Moved caret display 1 pixel down from the top of the control
18394             to improve view
18395           - InsertCharAtCharet: Update the selection start if moving the caret
18396             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
18397           - No longer always creating the caret when the caret methods are
18398             called. Only the actual ShowCaret/HideCaret will do that now
18399           - Only setting caret visible if the owner control has focus
18400           - UpdateView: Added invalidation-shortcut logic for center and right 
18401             aligned text. Previously we'd update all according to the left
18402             logic which caused drawing errors. Also fixed height of invalidated
18403             areas, now properly invalidating the whole area (was off-by-one)
18404           - owner_HandleCreated: Always generate the document when the
18405             handle is created; this ensures that 
18406         * TextBoxBase.cs:
18407           - Fixed situation where caret would disappear under the right
18408             window border, also improved scrolling behaviour on left-
18409             aligned textboxes
18410           - Fixed right-aligned textboxes to have a border to the
18411             right instead of the caret being under the right border
18412         * XplatUIX11.cs:
18413           - Switched from 'nested' to simple visible/not visible tracking 
18414             for caret (part of fix for #77671)
18415           - No longer passing through translated FocusIn/FocusOut messages
18416             since we were notifying too often and the wrong windows. Instead
18417             we just notify our focussed window of receiving or loosing focus
18418         * XplatUIWin32.cs: Switched from 'nested' show/hide 
18419           counting for caret to simple visible yes/no behaviour (part of 
18420           fix for #77671)
18421
18422 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
18423
18424         * Mime.cs: Remove debug code...
18425
18426 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
18427
18428         * MimeGenerated.cs: Removed
18429         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
18430           and subclasses) from /usr/(local/)share/mime and
18431           $HOME/.local/share/mime.
18432
18433 2006-03-10  Jackson Harper  <jackson@ximian.com>
18434
18435         * MdiWindowManager.cs: Recalc the NC area when a window is
18436         maximized/restored so that the menu area is drawn on forms that
18437         don't have a menu.
18438
18439 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
18440
18441         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18442           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
18443           us to force a WM_NCCALCRESIZE message being sent. This is needed
18444           for MDI maximizing.
18445
18446 2006-03-10  Jackson Harper  <jackson@ximian.com>
18447
18448         * Form.cs: We need to use the ActiveMenu when calculating menu
18449         height.
18450         - Fix nullref when the window manager hasn't been created yet.
18451         * Control.cs: Fix nullref when we try to bring a control to the
18452         front that has no parent.
18453         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
18454         height.
18455         - Add a dummy item to the maximized menu so it always has the
18456         correct height. Otherwise when there are no menus we don't get our
18457         icon and buttons.
18458         
18459
18460 2006-03-10  Jackson Harper  <jackson@ximian.com>
18461
18462         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
18463         stuff.
18464         * Form.cs: Make the window_state internal so the window managers
18465         can track it.
18466         - When an MDI child is maximized let its window manager create the
18467         main menu (so it can add its icon).
18468         - Notify the window managers of state changes
18469         - Let the window manager paint its buttons and handle button
18470         clicks on the menu when it is maximized.
18471         * InternalWindowManager.cs: Move the prev_bounds into the mdi
18472         window manager, since tool windows don't use it, only mdi windows.
18473         - Tell the main form that we don't want it to handle NCPAINT
18474         itself to avoid extra painting.
18475         - Handle clicks on a maximized windows menu.
18476         - Handle window state changes
18477         - Handle minimize/maximize clicks correctly by setting the window state.
18478         * MdiWindowManager.cs: Add an icon menu that (the menu you get
18479         when clicking on the forms icon).
18480         - New method to create a forms maximized menu. This is its normal
18481         menu + an icon.
18482         - Handle window state changes.
18483         - Handle sizing of maximized windows.  Maximized windows are just
18484         drawn bigger then the parent visible area. All controls are still
18485         there, they are just outside the visible area (this matches windows).
18486         * MdiClient.cs: No scrollbars when a child window is maximized.
18487         - Let the children windows figure out how big they should be when
18488         sizing maximized windows.
18489         - Implement a version of ArrangeIconicWindows somewhat similar to
18490         Windows version.  There are some little differences, but I don't
18491         think any app will rely on the layout of minimized mdi windows.
18492
18493 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
18494
18495         * Padding.cs: Several fixes to allow compiling with csc 2.0
18496
18497 2006-03-09  Jackson Harper  <jackson@ximian.com>
18498
18499         * Menu.cs:
18500         * MenuItem.cs: Cheap hack so we can add items to the list without
18501         the events being raised.  This allows adding mdi items during
18502         drawing. TODO: Should probably find a better time to add the items.
18503
18504 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
18505
18506         * ThemeWin32Classic.cs:
18507           - CheckBox_DrawText: Added logic to not wrap if not enough space
18508             is available (Fix for bug #77727)
18509           - RadioButton_DrawText: Added logic not to wrap if not enough
18510             space is available (Fix for bug #77727). Also removed some
18511             duplicate code, DrawString always drawing the regular text
18512             before hitting the if statement.
18513
18514 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
18515
18516         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
18517
18518 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
18519
18520         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
18521         * ContainerControl.cs: Partial implementation of some 2.0 scaling
18522           methods. Moved the new 2.0 properties into alphabetical order with
18523           other properties and added MonoTODO tags
18524
18525 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
18526
18527         * AutoScaleMode.cs: Added. Fix build.
18528
18529 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
18530
18531         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
18532           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
18533           and was requiring premature handle creation for calls from above
18534         * Form.cs, Control.cs: Removed handle arguments from calls to
18535           CalculateClientRect()
18536
18537 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
18538
18539         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
18540           drag_column.column_rect is MarshalByRef and can't be used that way
18541
18542 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
18543
18544         * AxHost.cs: Added deserialization constructor for 
18545           AxHost+State (fixes 77743)
18546
18547 2006-03-09  Mike Kestner  <mkestner@novell.com>
18548
18549         * ListView.cs: 
18550         - Added column drag reordering for details view.
18551         - fixed behavior when mouse is dragged off column and
18552         AllowColumnReorder is false.
18553         * ColumnHeader.cs: clone the format too in Clone.
18554         * Theme.cs: add DrawListViewHeaderDragDetails method.
18555         * ThemeWin32Classic.cs:
18556         - impl new method for drawing drag column shadows and targets.
18557         - support column offset for details mode in DrawListViewItem.
18558
18559 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
18560
18561         * TextControl.cs: Reset the char_count when the document is cleared
18562           (Fixes bug reported on mono-winforms mailing list)
18563
18564 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
18565
18566         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
18567           of calling base we simply process the key ourselves, since both
18568           DefWindowProc and the handled method would set m.Result. 
18569           (Fixes #77732)
18570
18571 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
18572
18573         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
18574           method also moves the window; instead implemented a copy of
18575           Control.ScaleCore (Part of fix for #77456)
18576         * TextBoxBase.cs: 
18577           - Created new CreateGraphicsInternal method to allow providing
18578             a graphics context when no handle is created without triggering
18579             handle creation. (Part of fix for #77456)
18580           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
18581         * TextControl.cs: 
18582           - Switched Constructor to require TextBoxBase instead of Control (to
18583             allow uncast access to CreateGraphicsInternal)
18584           - Safeguarded use of owner.Handle property. No longer accessing it
18585             unless the handle is already created.
18586           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
18587           - Now triggering a recalc when owning control becomes visible
18588         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
18589           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
18590           premature handle creation (Part of fix for #77456)
18591         * Control.cs:
18592           - We now only destroy our double-buffering buffers when the
18593             control is resized or disposed, but not when visibility
18594             changes. (The code even re-created them twice every time)
18595           - Now requiring a redraw of the buffer on visibility changes
18596             (fixes bug 77654 part 2)
18597           - Not passing OnParentVisibleChanged up unless the control
18598             is visible
18599           - CanFocus: Fixed to match MS documentation
18600           - Focus: Fixed to return actual focus state and to check if
18601             setting focus is legal before setting it
18602
18603 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
18604
18605         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
18606           when to draw focus rectangle by looking at parent focus and
18607           selected state instead. This fixes TabPages on Linux sometimes
18608           having none or multiple focus rectangles.
18609         * XplatUIX11.cs (SetFocus): 
18610           - Don't set the focus if the same window already has focus
18611           - Use SendMessage instead of PostMessage (like it's Win32
18612             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
18613             to match MS behaviour
18614         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
18615           are not selectable.
18616
18617 2006-03-07  Jackson Harper  <jackson@ximian.com>
18618
18619         * PictureBox.cs: Revert line I accidently committed last week.
18620
18621 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
18622
18623         * Control.cs: 
18624           - Added new IsRecreating and ParentIsRecreating properties to
18625             allow testing if RecreateHandle has been called on ourselves
18626             or one of our parents
18627           - WndProc(WM_DESTROY): If our control handle is being recreated
18628             we immediately need to create the handle when receiving the
18629             destroy, that way our child windows find a valid parent handle
18630             when they themselves are being recreated upon WM_DESTROY receipt
18631             (fix for bug #77654 part 1)
18632         * XplatUIX11.cs:
18633           - DestroyWindow: WM_DESTROY must be sent to our own window before
18634             notifying any child windows. MS documents that child windows
18635             are still valid when WM_DESTROY is received. (Control now relies on
18636             this behaviour)
18637           - Added some fine-grain debug options
18638
18639 2006-03-06  Jackson Harper  <jackson@ximian.com>
18640
18641         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
18642         box and base calculations off this.
18643         * MdiChildContext.cs:
18644         * MdiWindowManager.cs: Don't need to ensure scrollbars here
18645         anymore.
18646         
18647 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
18648
18649         * Splitter.cs: In situations where the affected control is added
18650           to the parent's control list after the splitter, we would not
18651           populate affected. Now we try populating it on mousedown, if
18652           it's not already set, and force it to be re-set whenever our
18653           parent changes.
18654
18655 2006-03-03  Matt Hargett  <matt@use.net>
18656
18657         * Control.cs: implement Control.Padding
18658         * Padding.cs: -Padding.All returns -1 when constructing with the
18659         implicit default ctor
18660         -Padding.ToString() matches MS.NET
18661         * ContainerControl.cs: implement
18662         ContainerControl.AutoScaleDimensions
18663         * ListControl.cs: implement ListControl.FormattingEnabled
18664         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
18665         * ButtonBase.cs:
18666         * TabPage.cs: Implement UseVisualStyleBackColor.
18667         * PictureBox.cs: Implement PictureBox.InitialImage.
18668
18669 2006-03-03  Mike Kestner  <mkestner@novell.com>
18670
18671         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
18672         event declarations to proxy to base event.
18673         * ListViewItem.cs: update to use ItemControl.
18674         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
18675         * ThemeWin32Classic.cs: update to new ListView theme API and fix
18676         column header label rendering for 0 width columns.
18677
18678 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
18679
18680         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
18681           that causes the control to be created. Fixes #77476.
18682
18683 2006-03-02  Jackson Harper  <jackson@ximian.com>
18684
18685         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
18686         expose_pending.
18687
18688 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
18689
18690         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
18691           passed in for the EventArgs (fixes #77690)
18692
18693 2006-03-01  Jackson Harper  <jackson@ximian.com>
18694
18695         * ScrollBar.cs: Refresh afterbeing resized.
18696
18697 2006-02-28  Mike Kestner  <mkestner@novell.com>
18698
18699         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
18700         Clean up a tracker compile warning.
18701         * MenuItem.cs: add internal PerformPopup method.
18702         [Fixes #77457]
18703
18704 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
18705
18706         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
18707           implicit expose) when the text is set to null
18708
18709 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
18710
18711         * RichTextBox.cs (FlushText): When newline is true, we always
18712           need to split the line, even if no text is on it and we may
18713           never eat newlines. (Fixes #77669)
18714
18715 2006-02-28  Mike Kestner  <mkestner@novell.com>
18716
18717         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
18718         and set Selected instead.
18719         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
18720         collections.
18721
18722 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
18723
18724         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
18725
18726 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
18727
18728         * FontDialog.cs:
18729           - Got rid of the panel. All controls are now directly added to
18730             the dialog form
18731           - It is now possible to set a font with the Font property
18732           - MinSize and MaxSize property do now what they should
18733           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
18734           - Searching and selecting a font with the font textbox works now,
18735             the same applies to the style and size textbox
18736           - Draw the correct 3D border in the example panel
18737           - Fixed a little mem leak (unused fonts didn't get disposed)
18738           - Many other internal updates/rewrites...
18739           - Fix typo
18740
18741 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
18742
18743         * TextControl.cs: 
18744           - InsertRTFFromStream: Added 'number of characters inserted' argument
18745           - set_SelectedRTF: Now using the number of characters to calculate
18746             the new location for the selection and cursor (x/y cannot be used
18747             due to potentially already wrapped text)
18748
18749 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
18750
18751         * TextControl.cs: Added property and implemented means to allow 
18752           disabling recalculation of a document (can be used to speed up
18753           multiple inserts and is needed to make RTF inserts predictable, see
18754           bug #77659)
18755         * RichTextBox.cs: Using the new NoRecalc property of Document to
18756           keep x/y insert locations predictable. Also makes it faster inserting
18757           large chunks of RTF
18758
18759 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
18760
18761         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
18762           it's easier for a child control to handle the other messages without
18763           having to duplicate the special functionality
18764         * TextBoxBase.cs
18765           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
18766             code to handle processing the key ourselves, in order to get 
18767             access to the result of KeyEventArgs.Handled. We now only call 
18768             ProcessKey if they key hasn't been handled already. Fixes #77526.
18769           - set_Text: If null or empty string is given, just clear the 
18770             document. Fixes part of #77526
18771
18772 2006-02-27  Jackson Harper  <jackson@ximian.com>
18773
18774         * SizeGrip.cs: Paint the background color before painting the grip
18775         so things look right.
18776         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
18777
18778 2006-02-27  Mike Kestner  <mkestner@novell.com>
18779
18780         * ListView.cs:
18781           - Restructure layout and invalidation model to remove a ton of
18782           flicker from the control and speed up performance in general.
18783           - Add manual column resize, flickers like crazy, but I already have
18784           some ideas on how I'll fix that. (#76822)
18785           - Merge the three Icon-based views into a single layout method.
18786           - Move item selection interaction logic from the item since 
18787           interaction with the collections is more appropriate to the view.
18788           - Deselection on non-item clicks.
18789         * ListViewItem.cs:
18790           - Encapsulate most of the layout. Add some internal props to trigger
18791           layout.  Move to a model where Items invalidate themselves instead
18792           of just invalidating the whole control every time something changes.
18793           - Invalidate on Text/Caption changes.
18794           - switch to an offset based layout model to avoid having to absolute
18795           position every element on item moves.
18796           - correct checkbox layout to conform to MS layout.
18797         * ThemeWin32Classic.cs:
18798           - refactor some column header drawing code.
18799           - fix string justification for column headers (#76821)
18800           - make SmallIcon labels top justified for compat with MS impl.
18801         * ThemeClearlooks.cs:
18802           - adjust to new ListViewItem internal checkbox bounds api.
18803
18804 2006-02-27  Jackson Harper  <jackson@ximian.com>
18805
18806         * Control.cs:  Change where implicit controls fall in the zorder.
18807         They are now on top of all children.
18808         - Synced AddImplicit code with Add
18809         - Removed unused enumerator.
18810         * SizeGrip.cs: Remove the TODO as its been TODONE.
18811
18812 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
18813
18814         * TextControl.cs(Insert): Combine the last lines unless the insertion
18815           string ends with \n\n, otherwise we leave one line too many (Fixes
18816           something I noticed with the testapp for #77526; the bug itself was
18817           already fixed in the previous checkin)
18818
18819 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
18820
18821         * RichTextBox.cs:
18822           - SelectionColor and SelectionFont methods no longer set absolute
18823             styles. Instead, the keep font or color respectively (This 
18824             resolves a long-standing FIXME in the code)
18825           - When flushing RTF text, the insert code now considers text trailing
18826             behind the insertion point (Fixes the bug where when replacing
18827             the selected text via SelectedRTF the remainder of the line behind 
18828             the selection would stay on the first insertion line)
18829         * TextBoxBase.cs:
18830           - AppendText now updates the selection points after inserting text
18831           - AppendText now ensures that the last tag (sometimes 0-length) of
18832             the document is used for the style information (Fixes part of 
18833             bug #77220)
18834         * TextControl.cs:
18835           - Created new FontDefiniton class to allow describing partial style
18836             changes
18837           - StreamLine() now takes a lines argument, to allow it to decide
18838             whether an encountered zero-length tag is the last in the document
18839             (which must be kept to not loose the font/color contained in it,
18840             for later appends)
18841           - Created Combine() and Split() methods for Marker structs, to 
18842             support marker updates due to reformatted documents (soft line
18843             wraps)
18844           - Implemented Document.CaretTag setter
18845           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
18846             of the last line (Not the cause, but also exposed by bug #77220)
18847           - Added LineTag argument to InsertString method, to allow callers
18848             to force a certain tag to be used (required to force use of the
18849             trailing zero-length tag of a document)
18850           - Now updating markers in Combine(), to avoid stale tag markers
18851           - Added some method descriptions to aid maintenance
18852           - Implemented new FormatText concept, allowing additive/subtractive
18853             formatting by only specifying the components that are to be 
18854             changed. This was needed for resolving the RTB.SelectedColor/
18855             RTB.SelectedFont fixmes
18856           - Added Break() support method to allow breaking up linetags (used
18857             for partial formatting)
18858           - Added GenerateTextFormat() method. It is used for partial 
18859             formatting and allows to generate a full font/color from given
18860             attributes and an existing tag.
18861
18862 2006-02-26  Jackson Harper  <jackson@ximian.com>
18863
18864         * XplatUIX11.cs:  Use the correct caption height.
18865         - Translate hittest coordinates to screen coords to match MS.
18866         * XplatUIWin32.cs: When we create MDI windows we need to reset
18867         some of the style flags, so we get a nice blank window, and can
18868         draw all the decorations ourselves.
18869         - Set a clipping rectangle on the non client paint event, the
18870         window manager drawing code needs one.
18871         * Form.cs: The window manager needs to know when the window state
18872         has been updated.
18873         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
18874         don't need to factor in border and title sizes in these
18875         methods. TODO: Remove the args and fix the call points.
18876         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
18877         properly.
18878         - Let the driver set the cursors.
18879         - Improve active window handling
18880         - Correct sizes for title bars and buttons.
18881         - Match MS drawing better
18882         * MdiWindowManager.cs: We don't need to handle border style
18883         updates specially anymore.
18884         - Check for scrollbars when windows are done moving
18885         - Handle Active properly.
18886         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
18887         correctly. I am spewing the exception though, so we don't hide the
18888         bugs.
18889         
18890 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
18891
18892         * DataGridViewRowPostPaintEventArgs.cs,
18893           DataGridViewCellPaintingEventArgs.cs,
18894           DataGridViewRowCollection.cs,
18895           DataGridViewRowPrePaintEventArgs.cs,
18896           DataGridViewCell.cs: Clear a few warnings and implement a few
18897           exceptions that should be thrown.
18898
18899 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
18900
18901         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
18902           'inheriting' our parent's (non-default) cursor. (Part of
18903            the fix for #77479)
18904
18905 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
18906
18907         * XplatUIX11.cs: Fixed cast to make csc happy
18908
18909 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
18910
18911         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
18912           it's for the client area (part of fix for #77479 and needed
18913           for MDI window cursor handling)
18914         * XplatUIX11.cs
18915           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
18916             the appropriate default cursors and also passing the message
18917             up the parent chain 
18918           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
18919             for non-client areas
18920
18921 2006-02-15  Jackson Harper  <jackson@ximian.com>
18922
18923         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
18924         is a real MDI window
18925
18926 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
18927
18928         * X11DesktopColors.cs: Instead of checking the desktop session
18929           string for "KDE" check if it starts with "KDE"
18930
18931 2006-02-10  Jackson Harper  <jackson@ximian.com>
18932
18933         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
18934         systems).
18935
18936 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
18937
18938         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
18939           errors
18940         * ColorDialog.cs:
18941           - Got rid of the panel. All controls are now directly added to
18942             the dialog form
18943           - Changed to mono coding style
18944
18945 2006-02-10  Jackson Harper  <jackson@ximian.com>
18946
18947         * InternalWindowManager.cs: We don't need the set visibility to
18948         false hack anymore now that peter has written beautiful shutdown
18949         code.
18950
18951 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
18952
18953         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
18954           where already explicitly destroyed
18955
18956 2006-02-10  Jackson Harper  <jackson@ximian.com>
18957
18958         * MdiClient.cs: Handle the case where windows are too high or to
18959         the left and we need scrollbars.
18960
18961 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
18962
18963         * MimeIcon.cs: Added some icons
18964         * FileDialog.cs:
18965           - Fixed bug #77477
18966           - Got rid of the panel. All controls are now directly added to
18967             the dialog form
18968           - Changed to mono coding style
18969           - On Linux "My Computer" and "My Network" will now show some
18970             more usefull information. A new class, MasterMount, gathers
18971             this information from /proc/mount. Updated MWFFileView to make
18972             use of this information
18973           - Fixed a bug that caused FileDialog to crash when
18974             ".recently_used" file had a zero size
18975           - FilterIndex does now what it should
18976           - Some Refactoring
18977         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
18978             FileDialog changes
18979
18980 2006-02-09  Jackson Harper  <jackson@ximian.com>
18981
18982         * ComboBox.cs: Don't touch if null.
18983
18984 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
18985
18986         * Cursor.cs: 64bit safeness fix
18987         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
18988
18989 2006-02-09  Jackson Harper  <jackson@ximian.com>
18990
18991         * Form.cs: If a form is made into an MDI form update the styles so
18992         all the props can get set correctly.
18993         - Kill the mdi_container when we dont need it anymore.
18994         * InternalWindowManager.cs: Add missing NOT
18995
18996 2006-02-08  Jackson Harper  <jackson@ximian.com>
18997
18998         * InternalWindowManager.cs: Respek clipping when drawing MDi
18999         decorations.
19000
19001 2006-02-08  Jackson Harper  <jackson@ximian.com>
19002
19003         * Hwnd.cs: Add bits to track non client expose events.
19004         * XplatUIX11.cs: Track non client expose events on the hwnd. This
19005         gives us a proper invalid rect and will allow for some nice
19006         optimizations with NC client drawing
19007         - MDI windows are children windows, so move their style handling
19008         into the child window block.
19009         * InternalWindowManager.cs: Remove a state reset that was
19010         getting invoked at the wrong time. Fixes managed windows getting
19011         into a 'stuck' captured state.
19012
19013 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
19014
19015         * TextControl.cs (Document.ctor): Now initializing 
19016           selection_anchor. Fixes #77493
19017
19018 2006-02-07  Jackson Harper  <jackson@ximian.com>
19019
19020         * TrackBar.cs: The increment/decrements were backwards.
19021
19022 2006-02-07  Mike Kestner  <mkestner@novell.com>
19023
19024         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
19025         to the instance itself.
19026
19027 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
19028
19029         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
19030           on ulongs and pointers, the size differs between 32bit and 64bit
19031           systems. 
19032
19033 2006-02-07  Mike Kestner  <mkestner@novell.com>
19034
19035         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
19036         for 64 bit platforms to work around a metacity bug. 
19037
19038 2006-02-07  Jackson Harper  <jackson@ximian.com>
19039
19040         * TrackBar.cs: Process the input keys we need, and hookup to
19041         KeyDown instead of using WndProc, so we get key messages.
19042
19043 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
19044
19045         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
19046           machine we're on. 
19047         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
19048           we need to translate the XdndVersion atoms array before sending it
19049
19050 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
19051
19052         * XplatUIX11.cs: 
19053           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
19054             number of bits for the property, not the number of bytes. The
19055             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
19056             but would not crash since it specified 8 bits instead of 4 bits)
19057           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
19058             defined as XID -> long in the C headers)
19059           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
19060             references since those are now IntPtr to begin with
19061           - Switched all Atom.XXX 'int' casts to IntPtr casts
19062           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
19063           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
19064           - Added XChangeActivePointerGrab DllImport (for X11DnD)
19065         * X11Structs.cs:
19066           - Changed 'int' type for Atoms in XEvent structures to IntPtr
19067           - Changed atom in HoverStruct to be IntPtr
19068         * X11DnD.cs:
19069           - Removed local DllImports, switched code to use those from XplatUIX11
19070           - Removed/fixed casts related to the switch of Atom to be a IntPtr
19071
19072 2006-02-06  Mike Kestner  <mkestner@novell.com>
19073
19074         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
19075         method signatures in the import region.  There may still be some
19076         lingering struct marshaling issues, as I didn't drill down into those.
19077         Yet.
19078
19079 2006-02-06  Jackson Harper  <jackson@ximian.com>
19080
19081         * ComboBox.cs: Dont manually set the top_item, this is computed
19082         when the scrollbar position is set.
19083
19084 2006-02-06  Mike Kestner  <mkestner@novell.com>
19085
19086         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
19087         startup crashes on amd64.  There's other fixes needed.  All pinvoke
19088         usage of Atom needs to be mapped to IntPtr for example.  And there are
19089         likely other int/long issues to be addressed.
19090
19091 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
19092
19093         * FileDialog.cs: One more...
19094
19095 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
19096
19097         * FileDialog.cs: Next try
19098
19099 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
19100
19101         * FileDialog.cs: First part of fix for #77464
19102
19103 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
19104
19105         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
19106           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
19107           AcceptButton border drawing.
19108
19109 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
19110
19111         * Form.cs: Moved positioning of form after auto scaling is applied,
19112           otherwise it would possibly use wrong form size.
19113
19114 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
19115
19116         * Control.cs (RecreateHandle): No need to re-create any child
19117           controls, the child windows will get destroyed automatically by
19118           the windowing system or driver, and re-created when the handle
19119           is being accessed the first time. Fixes #77456
19120         * Form.cs: No longer setting the form to closing if the handle is 
19121           being recreated. This seems like the right thing to do, don't
19122           have a bug or testcase for this, though.
19123
19124 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
19125
19126         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
19127           controls to avoid unwanted side effects
19128
19129 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
19130
19131         * Control.cs: 
19132           - ScaleCore needs to scale the bounds, not the ClientSize of the 
19133             control. Fixes #77416.
19134           - DefaultSize is 0,0 for control
19135         * TextBoxBase.cs: 
19136           - DefaultSize is 100, 20
19137           - SetBoundsCore: Now enforcing the height, no matter if the provided
19138             height is more or less than the preferred one, as long as AutoSize
19139             is on
19140         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
19141
19142 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
19143
19144         * Control.cs:
19145           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
19146             call unless both performLayout is true *and* we have a pending
19147             layout change
19148           - ResumeLayout: MS does not completely nest Suspend and Resume,
19149             they bottom out at 0, fixed our code to match that.
19150           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
19151             SetBoundsCore, we were updating even when we shouldn't. This fixes
19152             swf-anchors mis-anchoring when resizing the app fast and lots.
19153           - UpdateDistances: Now only setting the left and top distance if 
19154             we have a parent and are not suspended, this is based on
19155             a suggestion by Don Edvaldson in bug #77355.
19156           - OnVisibleChanged: Fixed logic when to create the control. We may
19157             not create the control if we have no parent or if it's not visible;
19158             switched to using Visible property instead of is_visible field 
19159             since the property also considers parent states. This fixes a bug
19160             when starting Paint.Net
19161
19162 2006-02-02  Jackson Harper  <jackson@ximian.com>
19163
19164         * Form.cs: If the forms handle hasn't been created yet don't call
19165         into xplatui to make it top most, just set the topmost flag on the
19166         form in CreateParams
19167         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
19168
19169 2006-02-01  Jackson Harper  <jackson@ximian.com>
19170
19171         * ScrollableControl.cs: Refactored the Recalculate method a
19172         little, this wasn't handling all the variants of bottom and right
19173         bars needed to be added and added/removed based on their
19174         counterparts being added/removed (which changes the drawable
19175         size). Also we special case client widths and heights of 0 and
19176         don't add the scrollbar for those.
19177
19178 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
19179
19180         * XplatUIX11.cs: 
19181           - Added method to get AbsoluteGeometry(); currently unused, but might
19182             be used in the future, if we try again to figure out toplevel
19183             coordinates with some more crappy window managers
19184           - Added FrameExtents() method to retrieve the WM set decoration size
19185           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
19186             to deal with at least KDE, FVWM and metacity (Fixes #77092)
19187         * Hwnd.cs: 
19188           - Added whacky_wm tracking var for metacity
19189           - Added logic to have default menu height if the actual menu height
19190             has not yet been calculated (part of fix for #77426)
19191         * Form.cs: Keep track whether client size has been set and re-set 
19192           it if a menu is added/removed afterwards (Fixes #77426)
19193
19194 2006-01-31  Jackson Harper  <jackson@ximian.com>
19195
19196         * Control.cs: When a new Site is set on the component attempt to
19197         pull the AmbientProperties from it.
19198
19199 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
19200
19201         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
19202           in the background of the owning form. Fixes #77332
19203
19204 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
19205
19206         * MimeIcon.cs: Fix for #77409
19207
19208 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
19209
19210         * XplatUIX11GTK.cs: Initial import
19211
19212 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
19213
19214         * FixedSizeTextBox: fixes class signature
19215
19216 2006-01-30  Jackson Harper  <jackson@ximian.com>
19217
19218         * FixedSizeTextBox.cs: New internal class that represents a
19219         textBox that will not be scaled.
19220         * TreeView.cs:
19221         * ComboBox.cs:
19222         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
19223         standard TextBox.
19224                 
19225 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
19226
19227         * XplatUIX11.cs: Retrieve default screen number instead of
19228           assuming 0. Attempted fix for #77318
19229
19230 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
19231
19232         * XplatUIWin32.cs: 
19233           - GetWindowPos: When a window is parented by FosterParent, use 
19234             the desktop instead of FosterParent as the base to get coordinates
19235           - CreateWindow: Don't make FosterParent the parent window for Popups
19236             if we don't want a taskbar entry, Popups automatically don't get one
19237         * Hwnd.cs: Need to call remove to actually remove the key from the
19238           hash table
19239
19240 2006-01-30  Mike Kestner  <mkestner@novell.com>
19241
19242         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
19243
19244 2006-01-30  Jackson Harper  <jackson@ximian.com>
19245
19246         * TreeView.cs:
19247         * TreeNode.cs: Raise events no matter how the treenode is
19248         checked. Patch by Don Edvalson.
19249
19250 2006-01-30  Jackson Harper  <jackson@ximian.com>
19251
19252         * TreeNode.cs: Signature fix.
19253
19254 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
19255
19256         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
19257
19258 2006-01-20  Mike Kestner  <mkestner@novell.com>
19259
19260         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
19261         event forwarding when menus are active.
19262         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
19263         Most of the patch is pdb's with a little rework.
19264
19265 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
19266
19267         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
19268           Removed GetMenuDC and ReleaseMenuDC methods; replaced
19269           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
19270         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
19271         * InternalWindowManager.cs: Added use of PaintEventStart/End to
19272           handling of WM_NCPAINT message, now passing the PaintEventArgs to
19273           the PaintWindowDecorations method
19274         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
19275         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
19276         * MenuAPI.cs: Made tracker window invisible
19277         * XplatUIWin32.cs:
19278           - Removed GetMenuDC and ReleaseMenuDC methods
19279           - Implemented the client=false path for PaintEventStart and
19280             PaintEventEnd
19281
19282 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
19283
19284         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
19285         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
19286           styles
19287         * Form.cs: 
19288           - MaximizeBox, MinimizeBox: Recreate the handle when setting
19289             the style
19290           - CreateParams: Reworked the styles to match MS look'n'feel,
19291             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
19292             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
19293
19294 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
19295
19296         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
19297           window is not mapped, since otherwise every form that's being 
19298           created is considered minimized, which is wrong.
19299         * Form.cs: Catching the exception and returning our internal value
19300           instead
19301
19302 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
19303
19304         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
19305           SetWindowMinMax() to have means to tell the driver about the minimum,
19306           maximum and maximized state window sizes. (Part of the fix for #76485)
19307         * Form.cs:
19308           - Implemented tracking of minimum and maximum window size, now calling
19309             new SetWindowMinMax() driver method to tell the driver (Part of the
19310             fix for #76485)
19311           - Finished handling of WM_GETMINMAXINFO method, now setting all values
19312             (Completes fix for #76485)
19313           - Calling new SetWindowMinMax driver method when the handle for a 
19314             form is created, to make sure the driver knows about it even if
19315             the values have been set before the window was created
19316           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
19317             to avoid messing up our anchoring calculations (partial fix
19318             for #77355)
19319         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
19320         * XplatUIX11.cs:
19321           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
19322           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
19323             (and presumably other freedesktop.org compliant WMs). Left the
19324             assumption unmapped=minimized, needed for SetVisible to work.
19325           - Now setting the window state when creating windows
19326           - Fixed SetVisible to consider/set the window state when mapping
19327             a Form. We cannot set the state before it's mapped, and we cannot
19328             use Form.WindowState once it's mapped (since it would ask the
19329             driver and get 'normal'. Therefore, we grab the state before
19330             mapping, map, and then set state.
19331           - Implmemented SetWindowMinMax method; Metacity does not seem to
19332             honor the ZoomHints, though.
19333         * XplatUIWin32.cs:
19334           - Removed MINMAXINFO (moved to XplatUIStructs)
19335           - Added SetWindowMinMax stub (on Win32 the only way to set that
19336             information is in response to the WM_GETMINMAXINFO message, which
19337             is handled in Form.cs)
19338           - Added logic to SetVisible to set the proper window state when a 
19339             form is made visible (fixes #75720)
19340
19341 2006-01-26  Jackson Harper  <jackson@ximian.com>
19342
19343         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
19344         same way we handle them with Invoke.
19345
19346 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
19347
19348         * Form.cs:
19349           - Added tracking of window state so CreateParams can return
19350             the appropriate style
19351           - Moved setting of WS_CAPTION style in CreateParams to allow
19352             styles without caption
19353         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
19354           control if the TextBox property is accessed. Fixes #77345
19355         * Control.cs:
19356           - get_Created: now uses is_disposed and is_created to determine
19357             return value (suggested by Jackson)
19358           - CreateHandle: No longer exits if the handle is being recreated
19359           - RecreateHandle: If the handle is not yet created call the 
19360             appropriate method to create either control or handle. If the
19361             control is already created CreateHandle will simply exit instead
19362             of just creating the handle
19363         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
19364           now SendMessage WM_DESTROY directly to the control when DestroyWindow
19365           is called.
19366         * XplatUIX11.cs: 
19367           - When DestroyWindow is called, instead of waiting for the 
19368             DestroyNotification from X11, we directly post it to the WndProc
19369             and immediately dispose the hwnd object.
19370             Same applies to DestroyChildWindows, and this obsoletes the
19371             expose_pending tracking. Contrary to Win32 behaviour we destroy our
19372             child windows before our own, to avoid X11 errors.
19373           - Removed the direct sending of WM_PAINT on UpdateWindow
19374         * XplatUIWin32.cs:
19375           - Reworked DoEvents and GetMessage to allow access to internal queue
19376             even when trying non-blocking access to the queue.  Fixes #77335. 
19377             Based on a patch suggestion by Don Edvalson. The new private
19378             GetMessage can now also be used as a backend for a PeekMessage
19379             frontend version.
19380         * XplatUI.cs: Improved debug output for CreateWindow
19381
19382 2006-01-25  Jackson Harper  <jackson@ximian.com>
19383
19384         * Help.cs: Allow param to be null. Patch by Don Edvalson.
19385
19386 2006-01-24  Jackson Harper  <jackson@ximian.com>
19387
19388         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
19389         when we have a MaxDropItems lower then the selected index.
19390
19391 2006-01-24  Jackson Harper  <jackson@ximian.com>
19392
19393         * Control.cs: Don't allow selection of non visible controls, allow
19394         selection of controls without parents.
19395
19396 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
19397
19398         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
19399         * DataGridDrawingLogic.cs: Add editing row only when is necessary
19400
19401 2006-01-23  Jackson Harper  <jackson@ximian.com>
19402
19403         * UpDownBase.cs: Make the textbox handle all the selection and
19404         tabbing. This fixes tabing to updown controls.
19405
19406 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
19407
19408         * TextBoxBase.cs: fixes exception thown the object was null
19409
19410 2006-01-23  Jackson Harper  <jackson@ximian.com>
19411
19412         * ButtonBase.cs: Just use the base CreateParams. They set
19413         visibility and enabled correctly.
19414         * ComboBox.cs:
19415         * TrackBar.cs:
19416         * MonthCalendar.cs: Lets let the base set as much of the
19417         createparams as possible so we don't have duplicate code all over
19418         the place.
19419
19420 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
19421
19422         * ThemeGtk.cs: Added TrackBar and some experimental code to
19423           get double buffering back
19424
19425 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
19426
19427         * DataGrid.cs: Allows row number set internally higher than the last
19428         when creating a new row. Restores the editing functionality.
19429
19430 2006-01-20  Mike Kestner  <mkestner@novell.com>
19431
19432         * MimeIcon.cs: delay Image creation until the icons are accessed
19433         instead of creating 190 scaled images on GnomeHandler startup.
19434
19435 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
19436
19437         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
19438           first call base before processing the event. Fixes #77279
19439
19440 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
19441
19442         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
19443           that the stride for the GDI bitmap would match the stride of
19444           a DIB or a Cursor.
19445
19446 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
19447
19448         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
19449
19450 2006-01-19  Jackson Harper  <jackson@ximian.com>
19451
19452         * ComboBox.cs: Hookup the text controls keydown event so we get
19453         those when the text control has the focus.
19454
19455 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
19456
19457         * Label.cs: Now using the base events instead of defining new ones;
19458           this allows us to just call the base properties without having to
19459           duplicate all base property logic 
19460
19461 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
19462
19463         * Label.cs: A label by default is not a tabstop (Fixes one of our
19464           failing nunit tests)
19465
19466 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
19467
19468         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
19469         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
19470
19471 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
19472
19473         * Cursor.cs: Reimplemented creating cursor bitmaps without using
19474           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
19475           This fixes #77218
19476         * XplatUIWin32.cs: 
19477           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
19478             constructor creates images that can't be saved. Part of the fix
19479             for #76103
19480           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
19481           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
19482             bug fix for handling window state in forms properly)
19483
19484 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
19485
19486         * ThemeGtk.cs: Simplify ScrollBar drawing
19487
19488 2006-01-18  Jackson Harper  <jackson@ximian.com>
19489
19490         * Splitter.cs: Set the default dock style for the splitter control
19491         in the constructor.
19492
19493 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
19494
19495         * ThemeGtk.cs: Corrected StateType and ShadowType for
19496           gtk_paint_box
19497
19498 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
19499
19500         * Control.cs: Make use of Theme.DoubleBufferingSupported
19501         * ThemeGtk.cs:
19502           - Added drawing for flat style buttons
19503           - Added ScrollBar drawing
19504
19505 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
19506
19507         * ThemeClearlooks.cs: Removed some unneeded code.
19508         * ThemeGtk.cs: First part of ThemeGtk enhancements.
19509
19510 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
19511
19512         * LinkLabel.cs: We need to update the hover drawing when
19513           leaving the control as well.
19514
19515 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
19516
19517         * DataGrid.cs: Clicking on non empty areas in the columns
19518            area was giving an exception
19519
19520 2006-01-17  Jackson Harper  <jackson@ximian.com>
19521
19522         * ThemeWin32Classic.cs:
19523         * ListView.cs: Do not draw/clip the headers when the header style
19524         is None.
19525
19526 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
19527
19528         * DataGrid.cs: Fixes 77260
19529         
19530 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
19531
19532         * DataGrid.cs: Clicking on a column on a empty grid was giving
19533           an exception
19534
19535 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
19536
19537         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
19538           or any keypress will crash the grid.
19539
19540 2006-01-17  Mike Kestner  <mkestner@novell.com>
19541
19542         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
19543         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
19544         invisible/previously-visible items.
19545         [Fixes #76909]
19546
19547 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
19548
19549         * ThemeClearlooks.cs:
19550         - Added CL_Draw_Button method; now other theme controls that are 
19551           not derived from button or do not have a button can draw buttons
19552           too
19553         - Updated ComboBox drawing
19554         - Beautified RadioButton drawing
19555         - Corrected drawing of bottom and left tabs
19556         - Beautified DateTimePicker and MonthCalendar
19557         - Added CPDrawButton and CPDrawRadioButton
19558
19559 2006-01-16  Jackson Harper  <jackson@ximian.com>
19560
19561         * ComboBox.cs: Set the initial value of the scrollbar to the
19562         current index. Reduce the numbers of refreshs and IndexOfs called.
19563
19564 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
19565
19566         * FileDialog.cs: When the file listview is focused hitting the
19567           backspace key moves the fileview to the parent directory
19568
19569 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
19570
19571         * Form.cs: 
19572           - Added RecreateHandle call when changing taskbar visibility to 
19573             trigger reparenting in Win32 driver (Fixes #75719)
19574           - If a window has minimize or maximize buttons, it cannot have
19575             a help button
19576         * XplatUIWin32.cs:
19577           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
19578             the toplevel form with FosterParent (A toolwindow not on the
19579             taskbar) (Fixes #75719)
19580           - Made FosterParent a toolwindow
19581
19582 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
19583
19584         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
19585
19586 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
19587
19588         * ToolTip.cs: If SetToolTip is called from a control and the mouse
19589           is currently over that control, make sure that tooltip_window.Text
19590           gets updated
19591
19592 2006-01-13  Mike Kestner  <mkestner@novell.com>
19593
19594         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
19595
19596 2006-01-13  Jackson Harper  <jackson@ximian.com>
19597
19598         * TreeView.cs: On MS GetNodeAt never actually factors in the X
19599         value passed.  Also redraw the selected node when we recieve
19600         focus, so tabbing between trees works correctly.
19601
19602 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
19603
19604         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
19605           ~/.gconf/%gconf-tree.xml, so use
19606           .gconf/desktop/gnome/interface/%gconf.xml
19607
19608 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
19609
19610         * TextControl.cs: Draw text in gray if control is disabled
19611
19612 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
19613
19614         * TreeView.cs: Draw the focus rectangle outside the highlight, to
19615           make sure it's always visible. Fixes #76680.
19616
19617 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
19618
19619         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
19620
19621 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
19622
19623         * PageSetupDialog.cs: Added.
19624         * PrintDialog.cs: Attributes.
19625         * PrintPreviewControl.cs: Updates.
19626         * PrintPreviewDialog.cs: Updates.
19627         
19628 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
19629
19630         * Control.cs: Undid my selection check fix, since it's not needed
19631         * TextBoxBase.cs:
19632           - Now considering the presence of hscroll/vscroll when sizing
19633             vscroll/hscroll respectively. Fixed bug #77077
19634           - Added Left/Up/Down/Right to IsInputKey list to prevent
19635             ContainerControl from stealing them. This fixes what I broke
19636             with my last checkin.
19637
19638 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
19639
19640         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
19641           I finally understand how the property can be set without a setter :-)
19642
19643 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
19644
19645         * Application.cs:
19646           - Switched RunLoop to use static Message.Create to create a 
19647             Message object
19648           - Added PreProcessMessage call in runloop for keyboard events; this
19649             is part of the fix for #77219, I overlooked this originally in the
19650             MSDN doc for PreProcessMessage
19651         * Control.cs:
19652           - Removed call to PreProcessMessage from handling of keyboard 
19653             messages; it's supposed to be done in the message pump
19654           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
19655             per MSDN documentation.
19656           - IsInputChar: All chars are input chars by default; removed the 
19657             parent calling chain, MS does not document that
19658           - PreProcessMessage: If IsInputChar is true, we want to return false
19659             to allow dispatching of the message
19660           - When selecting the next control, now also check that we're not
19661             selecting ourselves again and therefore return a false positive.
19662         * TextBoxBase.cs:
19663           - Tried to match return values for IsInputKey and ProcessDialogKey
19664             to what MS returns; moved processing of our special keys outside
19665             ProcessDialogKey since MS does not seem to return true on those.
19666           - Moved code that previously was in ProcessDialogKey into new private
19667             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
19668           - Reworked handling of WM_CHAR to not have to duplicate code from
19669             Control.cs anymore, instead we simply call down to base.
19670            
19671 2006-01-12  Jackson Harper  <jackson@ximian.com>
19672
19673         * ComboBox.cs: We always need to refresh the text area when
19674         EndUpdate is called. Fixes the combobox in the file dialog.
19675         * Control.cs: Don't create the creator_thread until the controls
19676         handle is created.  Also in InvokeRequired we check if the
19677         creator_thread is null. This gives the effect of InvokeRequired
19678         returning true if the controls handle is not created yet, and
19679         matches MS.
19680
19681 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
19682
19683         * XplatUI.cs:
19684           - Added StartLoop() driver method. This is used to allow drivers to
19685             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
19686             loop for a particular thread
19687           - Added EndLoop() driver method. This is called once the message
19688             pump for the thread is shut down
19689           - Added SupportsTransparency method to allow the driver to indicate
19690             opacity support for windows
19691         * Form.cs:
19692           - Removed TODO attribute, completed AllowTransparency property
19693           - Added documented logic to Opacity
19694         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
19695           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
19696           versions of CompatibleTextRendering
19697         * X11Structs.cs: Added opacity atom to our atom enumeration
19698         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
19699           of a form might be set before it's reparented by the WM, and we need
19700           the opacity value without calling up to Form)
19701         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
19702           SupportsTransparency() driver methods
19703         * Application.cs: Now calling StartLoop and EndLoop driver methods
19704         * XplatUIX11.cs:
19705           - Added opacity atom registration
19706           - Added StartLoop()/EndLoop() methods. They're empty right now but
19707             will need to get implemented when we switch to a per-thread queue
19708           - Implemented SupportsTransparency() method
19709           - Implemented SetWindowTransparency() method
19710           - Added support for setting the opacity value when a window is
19711             reparented (since the opacity needs to be set on the WM frame)
19712         * XplatUIOSX.cs, XplatUIWin32.cs:
19713           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
19714
19715 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
19716
19717         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
19718
19719 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
19720
19721         * FileDialog.cs: Added ToolTip for MWFFileView
19722         * MimeIcon.cs: Rewrote GnomeHandler.
19723           - Get currently used gnome icon theme from
19724             ($HOME)/.gconf/%gconf-tree.xml
19725           - Make use of inherited icon themes
19726           - Support SVG icon themes like Tango via librsvg
19727
19728 2006-01-12  Miguel de Icaza  <miguel@novell.com>
19729
19730         Revert's Jackson's revert which broke 2.0 builds.   Fix both
19731         builds. 
19732         
19733         * Application.cs: Move the use_compatible_text_rendering outside
19734         the NET_2_0 define.  If we ever need to use the
19735         use_compatible_text_rendering on the individual controls they will
19736         access the variable from the common shared code paths.
19737
19738 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
19739
19740         * XplatUI.cs:
19741           - Added more granular debug options
19742           - Added method to print both window text and id
19743           - Switched debug output to use new Window() debug method
19744           - Added IsEnabled() driver method
19745           - Added EnableWindow() driver method
19746         * Form.cs:
19747           - Removed end_modal; no longer needed, new loop handles termination
19748             via 'closing' variable
19749           - If form is modal, setting DialogResult will now initiate loop
19750             termination via 'closing' variable
19751           - Added support for is_enabled/WS_DISABLED to CreateParams
19752           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
19753             does all the work
19754           - Removed code that's now in RunLoop from ShowDialog()
19755           - Added various documented sanity checks to ShowDialog()
19756           - Added handling of WM_DESTROY message; we set 'closing' on getting
19757             the message to indicate the message pump to terminate
19758           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
19759             send by the Application.ExitThread method. (We send the message
19760             to destroy the window after all other events have been
19761             processed through the queue, instead of destroying the handle 
19762             directly)
19763           - Moved code from Close() method to WM_CLOSE handler; added logic
19764             to only send close-related events if the form is not displayed
19765             modal
19766         * Splitter.cs (..ctor): Fixed typo in resource name
19767         * Control.cs:
19768           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
19769             brush now
19770           - set_Cursor: Now only setting calling into XplatUI if the handle for
19771             the control is already created; this avoids implict handle creation
19772             or crashes if it's not created
19773           - set_Enabled: Now setting the enabled state via the new driver method
19774             instead of just tracking it
19775           - CreateParams: Added logic to set WS_DISABLED based on enabled state
19776           - CreateControl: Reordered event firing and method calls to more
19777             closely fire events in the order MS does. Now setting the
19778             enabled state in the driver when creating the control.
19779           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
19780             match MS order
19781         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
19782           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
19783         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
19784         * Hwnd.cs:
19785           - Added tracking of window enabled state (get_Enabled/set_Enabled)
19786           - Added EnabledHwnd property to easily allow a driver to find the
19787             handle of the first enabled window in the parent chain (this is
19788             used by drivers to pass up input events of disabled windows)
19789         * XplatUIDriver.cs: Added IsEnabled() method
19790         * Application.cs:
19791           - Removed crude and obsolete exiting tracking variable
19792           - Removed internal ModalRun(); replaced by RunLoop()
19793           - Implemented private CloseForms() method to allow closing all 
19794             windows owned by a particular (or all) threads
19795           - Exit() now properly closes all windows without forcing the message
19796             pump to quit
19797           - Removed obsolete InternalExit() method
19798           - Changed Run() methods to use new RunLoop() message pump
19799           - Implemented new RunLoop() method for both modal and non-modal forms
19800         * CommonDialog.cs:
19801           - get_CreateParams: Added setting of WS_DISABLED
19802           - Simplified ShowDialog(); now all the work is done in RunLoop(),
19803             invoked via Form.ShowDialog()
19804         * NativeWindow.cs: We don't remove the window from the collection when
19805           the handle is destroyed; there might still be messages for it in the
19806           queue (mainly the resulting WM_DESTROY); instead it will be removed
19807           when Control calls InvalidateHandle in the WM_DESTROY handler
19808         * XplatUIX11.cs:
19809           - CreateWindow: Added logic to handle the WS_DISABLED window style
19810           - EnableWindow: Implemented based on Hwnd.Enabled
19811           - GetMessage: Reset PostQuitState so the method can be called again
19812           - Implemented support for disabled windows (passing messages to the
19813             first enabled parent) in handling all input messages
19814           - Added optimizations for handling Expose events
19815           - Implemeted new driver method IsEnabled()
19816           - Now always resetting paint pending tracking vars when we start paint
19817           - Re-implemented UpdateWindow via just sending a WM_PAINT message
19818         * XplatUIOSX.cs: Added IsEnabled method stub
19819         * XplatUIWin32.cs: Implemented new IsEnabled() method
19820
19821 2006-01-11  Jackson Harper  <jackson@ximian.com>
19822
19823         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
19824         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
19825         variables a little.
19826         * ColorDialog.cs: Clear out the old form before adding the new
19827         panel.  
19828
19829 2006-01-11  Jackson Harper  <jackson@ximian.com>
19830
19831         * X11Dnd.cs: Make sure to add all the text formats when adding
19832         strings to the data object.
19833         * TreeNodeCollection.cs: When adding to a sorted tree we need to
19834         do some redrawing too.  Also change the UpdateNode to an
19835         UpdateBelow so the newly added node gets painted.
19836         
19837 2006-01-11  Miguel de Icaza  <miguel@novell.com>
19838
19839         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
19840         LinkLabel.cs, PropertyGrid.cs: Implement the
19841         UseCompatibleTextRendering property for 2.x
19842
19843         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
19844
19845 2006-01-11  Jackson Harper  <jackson@ximian.com>
19846
19847         * TreeView.cs: Use the property for setting the selected node so
19848         the correct events get raised.
19849         * TreeNode.cs: Update the tree when the fore/back colours of a
19850         node are set.
19851
19852 2006-01-10  Jackson Harper  <jackson@ximian.com>
19853
19854         * TreeView.cs: Allow setting SelectedNode to null.
19855
19856 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19857
19858         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
19859
19860 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19861
19862         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
19863
19864 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19865
19866         * PrintDialog.cs: Added attributes and set default property values.
19867
19868 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19869
19870         * PrintControllerWithStatusDialog.cs: 
19871         Added PrintControllerWithStatusDialog.
19872
19873 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19874
19875         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
19876         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
19877
19878 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19879
19880         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
19881
19882 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19883
19884         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
19885         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
19886
19887 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
19888
19889         * MimeIcon.cs: Added internal class SVGUtil.
19890
19891 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
19892
19893         * FileDialog.cs: Don't crash if there are two files with the
19894           same name but different locations.
19895
19896 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
19897
19898         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
19899         dates across multiple month grids. Used to not highlight entire 
19900         month, but does now.
19901         
19902 2006-01-06  Jackson Harper  <jackson@ximian.com>
19903
19904         * MonthCalendar.cs: Removed DoEvents call to prevent a running
19905         message loop. Change timer intervals to numbers that seem more
19906         natural.
19907
19908 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
19909
19910         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
19911           object for location info since screen object is now implemented.
19912
19913 2006-01-05  Jackson Harper  <jackson@ximian.com>
19914
19915         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
19916         * AsyncMethodResult.cs: We no longer use a WeakReference for the
19917         AsyncMethodResult, this is because we ALWAYS want the
19918         ManualResetEvent to get set.
19919         * Control.cs: When disposing use an async invoke to call shutdown
19920         code, so that thigns don't block on the finalizer thread.  Also
19921         check if we even have a message loop before trying to send
19922         messages, if we don't then don't bother sending messages.
19923         - No more weak references for async methods
19924         * XplatUIDriver.cs: No more weak references for async methods.
19925
19926 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
19927
19928         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
19929           returns two FontFamily with the same name
19930
19931 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
19932
19933         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
19934           drawing disabled text. Instead using the ColorGrayText color
19935
19936 2006-01-04  Jackson Harper  <jackson@ximian.com>
19937
19938         * TreeNode.cs: redraw the node when its image index is changed.
19939
19940 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
19941
19942         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
19943           time I checked there are no others like it.
19944
19945 2006-01-04  Jackson Harper  <jackson@ximian.com>
19946
19947         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
19948         this gives the behavoir I was looking for.
19949         * Control.cs: Special case Invoking EventHandlers, this matches MS
19950         and fixes part of bug #76326.
19951
19952 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
19953
19954         * ThemeClearlooks.cs, FileDialog.cs:
19955           - Reflect the latest Theme class changes
19956           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
19957             with DateTime
19958             
19959 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
19960
19961         * Theme.cs: Cache UI resource images and resize them if needed
19962
19963 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
19964
19965         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
19966           is called. This fixes the crash in Nexxia when setting the font
19967           attributes in the chat. [However, RTF needs a look-over to make sure
19968           that all SelectionXXX methods handle the special case that selection
19969           is empty and therefore the change must be applied to all text starting
19970           at the cursor/selection start]
19971
19972 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
19973
19974         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
19975           XplatUIOSX.cs: Added SendMessage and PostMessage methods
19976         * X11Keyboard.cs: Switched to new way of calling PostMessage
19977
19978 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
19979
19980         * Theme.cs: Added theme interface for images to allow the theme to
19981           control what images are used for things like FileDialog, MessageBox
19982           icons, etc.
19983         * MessageBox.cs: Now uses the new Theme icon/image interfaces
19984
19985 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
19986
19987         * FileDialog.cs:
19988           - Removed some dead code
19989           - Opening a recently used file does work now
19990           - Small UI enhancements
19991           - Refactoring
19992
19993 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
19994
19995         * FileDialog.cs: Forgot too add __MonoCS__
19996
19997 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
19998
19999         * FileDialog.cs: We are able to read recently used files now let's
20000           go on and write them.
20001
20002 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
20003
20004         * FileDialog.cs: Breathe some life into "last open"/"recently used"
20005           button
20006         * MimeIcon.cs: Do a check for the top level media type also
20007
20008 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
20009
20010         * ThemeClearlooks.cs:
20011           - Added CPDrawStringDisabled
20012           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
20013             some chars if the text doesn't fit into text_rect
20014           - DrawListViewItem: If View = View.LargeIcon center the image;
20015             rewrote the drawing of ListViewItem.Text if View = 
20016             View.LargeIcon
20017
20018 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
20019
20020         * MimeIcon.cs: Use default KDE icon theme if there is no
20021           "48x48" directory for the current icon theme, fixes #77114
20022         * Mime.cs: Disable not working and actually not used code. 
20023         * ThemeWin32Classic.cs:
20024           - Replace "new SolidBrush" in GetControlBackBrush and
20025             GetControlForeBrush with ResPool.GetSolidBrush
20026           - Changed DrawListViewItem from private to protected virtual
20027         * FileDialog.cs:
20028           - Added form.MaximizeBox = true
20029           - Don't throw an exception if there is a broken symbolic link
20030
20031 2005-12-23  Jackson Harper  <jackson@ximian.com>
20032
20033         * TabControl.cs: Give the panels focus, keyboard navigation is
20034         fixed so this works correctly now.
20035         - We need these key events also.
20036         * ToolBar.cs: Remove some of the poor mans double buffering.
20037         
20038 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
20039
20040         * ComboBox.cs: The internal TextBox now returns the focus.
20041
20042 2005-12-23  Jackson Harper  <jackson@ximian.com>
20043
20044         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
20045
20046 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
20047
20048         * Control.cs: Removed debug code
20049         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
20050           implicit children
20051
20052 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
20053
20054         * Control.cs: When creating the control, update the Z-order after
20055           all it's children are created, too. (Fixes nexxia not showing
20056           picturebox bug)
20057
20058 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
20059
20060         * Control.cs: Do not update the anchoring distances if layout is
20061           suspended, instead do it once layout is resumed
20062
20063 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
20064
20065         * Control.cs: 
20066           - After many hours of debugging, for both Jackson and
20067             myself, it turns out that it helps to set the parent of a control
20068             if you want to actually see it onscreen. In the spirit of that
20069             discovery, we're now setting the parent of the control and
20070             it's children when the control's handle is created. This fix
20071             will make Lutz Roeder's Reflector run happily. 
20072           - now just creating the handle instead of the whole control when
20073             getting a graphics context for the control.
20074
20075 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
20076
20077         * ScrollableControl.cs: When calculating the canvas, don't consider
20078           the scrollbar widths. Instead, predict if horizontal scrollbar
20079           will affect canvas when deciding on vertical display and vice versa.
20080
20081 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
20082
20083         * RichTextBox.cs: Set default RTF font for documents that don't
20084           have a font table (Fixes #77076)
20085
20086 2005-12-22  Jackson Harper  <jackson@ximian.com>
20087
20088         * TextBoxBase.cs: It's difficult to do, but you can have an empty
20089         clipboard. This prevents a NullRef in that case.
20090         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
20091         clipboard. PRIMARY is for the currently selected text only. (We
20092         should implement PRIMARY at some point.
20093
20094 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
20095
20096         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
20097           a Unicode function with a structure that was defined in Ansi way.
20098           This fixes #76942.
20099
20100 2005-12-21  Jackson Harper  <jackson@ximian.com>
20101
20102         * StatusBar.cs: Statusbar handles its fore/back colours on it's
20103         on. Because thats how it rolls. (and this avoids it using ambient
20104         colours).
20105         * ThemeWin32Classic.cs: Use the proper back color for filling.
20106         * Menu.cs: Use the system menu bar color for drawing menu
20107         bars. Using the window back color will bring ambient colours into
20108         the picture.
20109
20110 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
20111
20112         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
20113           Bitmaps were created and not disposed.
20114
20115 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
20116
20117         * Control.cs (CreateControl): Don't do anything if the control is
20118           already created, otherwise we'd fire the OnCreated event more than
20119           once
20120
20121 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
20122
20123         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
20124           will always match. Instead return -1. Fixes #76464.
20125
20126 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
20127
20128         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
20129           neither the beginning nor the end of the line (Fixes bug #76479)
20130
20131 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
20132
20133         * Control.cs:
20134           - ControlNativeWindow.ControlFromHandle(): Now handling situation
20135             where handle is invalid
20136           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
20137             instead of slower linear search
20138         * NativeWindow.cs: Don't remove the window from the hashtable until
20139           after the driver has destroyed it (since the driver might use
20140           Control.FromHandle to lookup the control object
20141         * Hwnd.cs: Added DestroyPending property to track if a window is 
20142           already destroyed as far as the driver is concerned and only hasn't
20143           yet notified the control
20144         * XplatUIX11.cs:
20145           - Activate(): Check if the window is still valid before using the 
20146             handle
20147           - Implemented DestroyChildWindow() method to mark child windows as
20148             destroyed when a window is destroyed. This prevents situations 
20149             where we might call an X method based on queued events for a
20150             window that already has been destroyed but we haven't yet pulled
20151             the destroy method from the queue.
20152           - Added a call to the new DestroyChildWindow() method to the drivers
20153             DestroyWindow code. Also now marking the destroyed window itself
20154             as pending
20155
20156 2005-12-20  Jackson Harper  <jackson@ximian.com>
20157
20158         * StatusBar.cs:
20159         * StatusBarPanel.cs: Don't calculate panel sizes on draw
20160         anymore. Just do them when needed, also track the rects of panels
20161         so that we can optimize refreshing more in the future.
20162
20163 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
20164
20165         * ColorDialog.cs: Fixed focus drawing in small color controls
20166
20167 2005-12-19  Jackson Harper  <jackson@ximian.com>
20168
20169         * InternalWindowManager.cs:
20170         * MdiWindowManager.cs: Cleanup some coordinate system changes so
20171         moving windows works properly.
20172
20173 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
20174
20175         * Control.cs: 
20176           - Removed call to InitLayout() from SetBoundsCore(); doc says
20177             it's only called when a control is added to a container
20178           - Split InitLayout logic, moved to separate UpdateDistances() method
20179             since we need to perform those calculations more often than just
20180             when adding the control to a container. (Needed to fix #77022)
20181           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
20182           - Reduced the OnBindingContextChanged events count, don't send them
20183             unless the control is created, we still aren't totally matching
20184             MS, but I can't quite figure out some of their rules
20185
20186 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
20187
20188         * ThemeClearlooks.cs: Corrected distance between ProgressBar
20189           stripes
20190
20191 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
20192
20193         * ThemeClearlooks.cs:
20194           - Updated ProgressBar drawing
20195           - Corrected drawing of ScrollBars and scroll buttons
20196           - Some temporary fixes for minor pixel artefacts
20197
20198 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
20199
20200         * Control.cs:
20201           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
20202             cause events to be sent in the same order as MS does.
20203           - Added ChangeParent() method to trigger various OnXXXChanged events
20204             that need to be fired when a parent changes (This is a reworking
20205             of the patch from r54254, with the X11 errors fixed)
20206           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
20207             since on MS we get OnLayoutChanged events when calling Clear()
20208           - Changed Enabled property to consider parent state as well, if a
20209             parent is not enabled, the control will not be either
20210           - Changed Parent property to simply call Controls.Add() since that
20211             now does all the work required, this way we avoid code duplication
20212           - Threw in a few OnBindingsContextChanged calls to try and match
20213             when MS sends them. We seem to send a few too many, though.
20214           - Added call to CreateControl when adding the control to a parent.
20215             We were never calling CreateControl. Still needs some work, in
20216             some places we treat HandleCreated and ControlCreated as equal, 
20217             which is wrong
20218           - Removed obsolete commented out code from UpdateZOrder()
20219
20220 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
20221
20222         * ThemeClearlooks.cs: Updated TrackBar drawing.
20223
20224 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
20225
20226         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
20227
20228 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
20229
20230         * FileDialog.cs: Add the Help button and the open readonly
20231           checkbox only if needed
20232
20233 2005-12-16  Jackson Harper  <jackson@ximian.com>
20234
20235         * Control.cs: Make sure we have an active menu before trying to
20236         process commands on it. Prevents menu-less forms from crashing
20237         when Alt is pressed.
20238         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
20239         Dieter Bremes.
20240         * RichTextBox.cs: Expand statement to help out gmcs and fix the
20241         2.0 build.
20242
20243 2005-12-16  Jackson Harper  <jackson@ximian.com>
20244
20245         * InternalWindowManager.cs: Don't translate tool windows screen
20246         coordinates. This fixes windows 'bouncing' around when being moved.
20247
20248 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
20249
20250         * TextBoxBase.cs:
20251           - MaxLength now treats 2^31-1 equal to unlimited length (this is
20252             not quite MS compatible, MS uses that number only for single line
20253             and 2^32-1 for multi-line, but I figure it won't hurt keeping
20254             the limit at 2GB)
20255           - Now enforcing the MaxLength limit when entering characters
20256           - Added argument to internal Paste() method to track if it's called
20257             from programatically or via keyboard, since keyboard driven pastes
20258             need to enforce max-length
20259           - Added logic to Paste to only paste as many chars as MaxLength 
20260             allows
20261         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
20262         * TextControl.cs:
20263           - Added Length property to return number of characters in document
20264           - Added private CharCount property which only tracks actual chars
20265             in the document (no linefeeds) and fires event when CharCount
20266             changes
20267           - Added tracking of character count to all methods that alter it
20268           - Added LengthChanged event to allow applications to subscribe
20269             to any changes to the document
20270
20271 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
20272
20273         * TextBox.cs: 
20274           - Removed local password_char field (moved to TextBoxBase)
20275           - Now setting the document's password var when password is
20276             set
20277         * TextBoxBase.cs:
20278           - Added password_char field (needed here so MultiLine can
20279             access it)
20280           - Added logic to MultiLine property setter to set the document's
20281             variable when password display is allowed
20282           - Removed debug code and made some debug code conditional
20283         * TextControl.cs:
20284           - Added RecalculatePasswordLine() method to handle special password
20285             char only lines
20286           - Added PasswordChar property, also added related tracking vars
20287           - Draw() method now uses local text var for grabbing text to draw,
20288             this var is set to line.text unless we're doing password display,
20289             then it is set to the pre-generated all-password-chars line
20290           - Added calling RecalculatePasswordLine() method for password lines
20291
20292 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
20293
20294         * Hwnd.cs: 
20295           - Added Reparented property to allow tracking of Window Manager
20296             reparenting actions (which affect X/Y calculations of toplevel 
20297             windows)
20298           - Made ToString() print window handles in hex
20299         * XplatUIX11.cs:
20300           - AddConfigureNotify(): Now uses reparented state off Hwnd to
20301             determine if X/Y needs offsetting
20302           - AddConfigureNotify(): Fixed offset calculations
20303           - Now adds ReparentNotify messages into the queue
20304           - Now processes ReparentNotify messages and causes a 
20305             WM_WINDOWPOSCHANGED message to be sent upstream if a window
20306             is reparented (as most likely it's X/Y coordinates are changed
20307             due to that)
20308
20309 2005-12-14  Jackson Harper  <jackson@ximian.com>
20310
20311         * XplatUIX11.cs: Tool windows still need to respek focus.
20312
20313 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
20314
20315         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
20316           have a working release
20317
20318 2005-12-13  Jackson Harper  <jackson@ximian.com>
20319
20320         * Form.cs: Update styles after setting the border style regardless
20321         of whether or not the window is using a window manager.
20322
20323 2005-12-13  Jackson Harper  <jackson@ximian.com>
20324
20325         * Form.cs: We now hook into an internal window manager instead of just an
20326         MDI subsystem, this is so we can have properly behaving tool windows.
20327         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
20328         * InternalWindowManager.cs: New internal class that acts as a
20329         window manager for tool windows and as a base for mdi windows.
20330         * MdiWindowManager.cs: New class that acts as a window manager for
20331         mdi windows.
20332
20333 2005-12-12  Jackson Harper  <jackson@ximian.com>
20334
20335         * Control.cs: Updates so we match behavoir for for implicit
20336         controls. Fixes explosions in MDI.
20337
20338 2005-12-12  Jackson Harper  <jackson@ximian.com>
20339
20340         * Control.cs: Implement Invalidate (Region).
20341
20342 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
20343
20344         * Control.cs: 
20345           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
20346             the same events as MS does. MS fires events for each property 
20347             except, for unknown reasons, Cursor, when the control is reparented. 
20348             I can't seem to totally match add/remove since MS also fires some 
20349             VisibleChanged events, which makes no sense. Consolidated the
20350             parenting code into a separate method so it can be called from
20351             both Add and Remove. set_Parent no longer needs any special logic
20352             as it calls the parent's add method which implicitly fires
20353             all events
20354           - Removed some obsolete code and debug output
20355           - Enabled state is inherited from parents, if this is enabled
20356
20357 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
20358
20359         * Form.cs: Removed commented out code
20360
20361 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
20362
20363         * Control.cs:
20364           - Added internal version of Invoke, with additional argument 
20365             indicating if we're calling it from a Dispose() handler. That
20366             way we can avoid BeginInvoke throwing an exception if we're
20367             calling for an already destroyed window.
20368           - Added a dispose argument to BeginInvokeInternal, and made the
20369             check if a valid window handle chain exists conditional on
20370             it not being a dispose call
20371           - Removed code in DestroyHandle to destroy our children. Since we
20372             now handle the WM_DESTROY message we will catch all our children
20373             being destroyed.
20374           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
20375         * Form.cs:
20376           - Added a field to track the application context of the form.
20377           - No need to set closing variable as response to WM_CLOSE, instead
20378             we destroy the window. We also call PostQuitMessage if the form
20379             has an application context (which makes it the main app form,
20380             which, when closed terminates the app)
20381         * XplatUI.cs:
20382           - Dropped Exit() method, it's naming was confusing
20383           - Added PostQuitMessage() which causes GetMessage to return false
20384             once the message queue is empty
20385         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
20386           PostQuitMessage()
20387         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
20388           no longer a valid XplatUI method, but left it in since it's used
20389           internally. Added empty PostQuitMessage() method.
20390         * MenuAPI.cs: Replaced call to Exit() with call to
20391           PostQuitMessage, even though this is probably no longer needed.
20392         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
20393         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
20394         * Application.cs:
20395           - Replaced call to XplatUI.Exit() with PostQuitMessage()
20396           - Removed old debug code that would call XplatUI for exception
20397             display, enabled standard exception handling (Still not enabled
20398             though, until NativeWindow's ExternalExceptionHandler define
20399             is removed
20400         * NativeWindow.cs:
20401           - Added internal method to allow control to update NativeWindow
20402             after a window has been destroyed
20403           - Added handling of already destroyed windows when calling i
20404             DestroyWindow
20405           - Added removal of handle from list on ReleaseHandle
20406         * XplatUIX11.cs:
20407           - Dropped GetMessageResult var and related code
20408           - Added PostQuitState to field to track if PostQuitMessage has been
20409             called
20410           - Dropped Exit() method
20411           - Added PostQuitMessage() method
20412           - GetMessage now will return false if PostQuitState is set and no
20413             more messages are in the queue.
20414           - Expose handler will no longer generate WM_PAINT messages if we are
20415             in PostQuitState since it's very likely any windows have already
20416             been destroyed, and since Hwnd won't get updated until we have
20417             processed the DestroyNotify we'd be causing X errors.
20418         
20419 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20420
20421         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
20422           Thanks to Mike for pointing out the err of my ways.
20423
20424 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20425
20426         * Control.cs(PreProcessMessage): Moved menu handling back, but
20427           after all other key handling, to match MS (who handles Menu in
20428           DefWndProc)
20429         * Menu.cs (WndProc): Removed my brainfart
20430
20431 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20432
20433         * Control.cs(PreProcessMessage): Removed special menu handling 
20434         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
20435
20436 2005-12-07  Mike Kestner  <mkestner@novell.com>
20437
20438         * Control.cs : special case SYSKEYUP so that we can adjust keynav
20439         state according in tracker.
20440         * Menu.cs : promote tracker field to base class and provide a tracker
20441         lookup capability.  Add/Remove shortcuts dynamically if the top menu
20442         has a tracker. Unparent items that are removed from the collection.
20443         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
20444         * Theme*.cs: add always_show_hotkeys field to support configurability
20445         of mnemonic display.  win32 doesn't show mnemonics until Alt is
20446         pressed.
20447
20448 2005-12-07  Jackson Harper  <jackson@ximian.com>
20449
20450         * MdiChildContext.cs: Use Control.ResetCursor.
20451         * Control.cs: ResetCursor needs to set the property so that the
20452         correct XplatUI call gets made.
20453
20454 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20455
20456         * Control.cs: More fixes to make our key events match MS. We
20457           were not setting the modifier state on KeyData, and we were
20458           not generating any events when Alt was pressed with a key
20459           since handling of WM_SYSxxx was missing for the OnKey methods.
20460
20461 2005-12-07  Jackson Harper  <jackson@ximian.com>
20462
20463         * MdiChildContext.cs: reenable the sizing code.
20464         - When the mouse leaves a window reset its cursor.
20465
20466 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
20467
20468         * ThemeClearlooks.cs: Reflect latest Hwnd changes
20469
20470 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20471
20472         * Hwnd.cs: Now using the theme 3d bordersize to calculate
20473           widths of Fixed3D borders
20474
20475 2005-12-07  Jackson Harper  <jackson@ximian.com>
20476
20477         * MdiClient.cs: Fix warnings. Earn Mike's love.
20478
20479 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
20480
20481         * ThemeClearlooks.cs:
20482           - Adjusted mouse over button color
20483           - Added first parts of CheckBox drawing
20484           - Added correct color for selected text background
20485           - Fixed ComboBox drawing
20486           - Added CPDrawBorder3D and CPDrawBorder
20487
20488 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
20489
20490         * XplatUIX11.cs: Added call to XBell for AudibleAlert
20491
20492 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
20493
20494         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
20495           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
20496           alert users via sound. We could add an enum arg with different
20497           types of alerts in the future
20498
20499 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
20500
20501         * Control.cs: Fix behaviour problems pointed out by Mike
20502
20503 2005-12-05  Mike Kestner  <mkestner@novell.com>
20504
20505         * StatusBarPanel.cs: add Invalidate method and hook it into all the
20506         prop setters.  Calls parent.Refresh for now, but could be maybe be
20507         optimized with an internal method on StatusBar at some point.
20508         [Fixes #76513]
20509
20510 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
20511
20512         * RichTextBox.cs: Implemented get_SelectionColor
20513
20514 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
20515
20516         * ThemeClearlooks.cs:
20517           - Removed dead code
20518           - Draw black button border only if button is Form.AcceptButton
20519           - Draw correct button color for pressed RadioButton if the mouse 
20520             has entered the button
20521           - Updated ProgressBar drawing!
20522           - Updated CPDrawSizeGrip drawing
20523           - Updated StatusBarPanel drawing
20524
20525 2005-12-05  Mike Kestner  <mkestner@novell.com>
20526
20527         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
20528         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
20529
20530 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
20531
20532         * ThemeClearlooks.cs: Initial check-in, activate with
20533           export MONO_THEME=clearlooks
20534         * ThemeEngine.cs: Added ThemeClearlooks
20535
20536 2005-12-03  Mike Kestner  <mkestner@novell.com>
20537
20538         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
20539         [Fixes #76897]
20540
20541 2005-12-02  Jackson Harper  <jackson@ximian.com>
20542
20543         * Form.cs: If the child form has no menu the default main menu is
20544         used as the active menu.
20545
20546 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
20547
20548         * ListBox.cs: Check if any items exist before trying to resolve 
20549           coordinates into items
20550
20551 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
20552
20553         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
20554           as the second color for the background hatch
20555
20556 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
20557
20558         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
20559         * RichTextBox.cs: FormatText position arguments are 1-based, now making
20560           sure that what we pass to FormatText is always 1-based. Fixes #76885
20561
20562 2005-11-29  Miguel de Icaza  <miguel@novell.com>
20563
20564         * NumericUpDown.cs (EndInit): When we are done initializing,
20565         reflect any updates on the UI.
20566
20567 2005-12-02  Jackson Harper  <jackson@ximian.com>
20568
20569         * ImplicitHScrollBar.cs:
20570         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
20571         their container controls.
20572         * TreeView.cs: Use the new implicit scrollbars.
20573
20574 2005-12-02  Jackson Harper  <jackson@ximian.com>
20575
20576         * TreeView.cs: Make top_node internal so the TreeNodeCollections
20577         can play with it.
20578         * TreeNodeCollection.cs: If we remove the topnode we need to
20579         update topnode to the next node in line.
20580         - When clearing nodes go through the same process as removing
20581         them, so they get depareneted and checked if they are top node.
20582
20583 2005-12-01  Jackson Harper  <jackson@ximian.com>
20584
20585         * TreeView.cs: When imagelists are used the image area is
20586         selectable as well as the text.
20587         - If there are no selected nodes select the first one.
20588         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
20589         so don't do it more then we need to.
20590
20591 2005-12-01  Jackson Harper  <jackson@ximian.com>
20592
20593         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
20594         that arrows can be scaled.
20595
20596 2005-12-01  Jackson Harper  <jackson@ximian.com>
20597
20598         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
20599         fail. Patch by Dieter Bremes
20600
20601 2005-11-30  Jackson Harper  <jackson@ximian.com>
20602
20603         * Form.cs: Property is 2.0 only
20604         * PrintDialog.cs: Signature fix.
20605
20606 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
20607
20608         * TextControl.cs: 
20609           - No longer artificially moves text 2 pixels down (now that we have
20610             borders this is no longer needed)
20611           - Added calcs for left, hanging and right indent
20612
20613 2005-11-23  Mike Kestner  <mkestner@novell.com>
20614
20615         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
20616
20617 2005-11-30  Jackson Harper  <jackson@ximian.com>
20618
20619         * MdiChildContext.cs: Set the cloned menus forms, as these don't
20620         get cloned as part of CloneMenu ().
20621         * Menu.cs: Make sure the parent of the items get set correctly
20622         when they are added.  And the owners are notified of the changes.
20623         * Form.cs: Create an ActiveMenu property, so that when MDI is used
20624         we can change the menu being displayed/handled by the form without
20625         changing the menu assosciated with the form.
20626         - Don't let Mdi children draw/handle menus.
20627         
20628 2005-11-30  Jackson Harper  <jackson@ximian.com>
20629
20630         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
20631         a MenuChanged event. Just to make the API a little more
20632         consistent.
20633         * MainMenu.cs:
20634         * MenuItem.cs: Use the new OnMenuChanged
20635         * MdiChildContext.cs: Handle menu merging.
20636         * Form.cs: Implement MergedMenu.
20637         
20638 2005-11-30  Jackson Harper  <jackson@ximian.com>
20639
20640         * Menu.cs: We were misusing Add. Add goes behind the specified
20641         index according to the docs, and does not replace the specified
20642         index. So I added an Insert method.
20643
20644 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
20645
20646         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
20647           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
20648           is for Jackson
20649         * RichTextBox.cs: Added calls to base for DnD events
20650
20651 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
20652
20653         * TextControl.cs:
20654           - Fixed drag-selection related crash; style fixes
20655           - Implemented undo class
20656             o Implemented method to capture document state for specified
20657               range in document tree
20658             o Implemented method to restore captured document state
20659             o Implemented cursor tracking
20660             o Implemented basic undo stack
20661           - Added undo cursor tracking to methods altering cursor location
20662           - Added undo tracking to selection deletion (still missing
20663             other text-altering hookups)
20664         * RichTextBox.cs:
20665           - Added SelectionLength property
20666           - Implemented CanPaste()
20667           - Implemented Paste()
20668           - Added missing protected methods
20669           - Fixed RTF->Document conversion; now uses font index 0 and color 
20670             index 0 as the default font for the parsed text
20671           - Fixed RTF<->Document font size translation
20672           - Fixed RTF generation, now properly handles cross-tag boundaries
20673             for single line selection
20674           - No longer always appends blank line to generated RTF
20675           - Removed TODOs
20676           - Added missing attributes
20677           - Hooked up undo-related methods
20678         * TextBoxBase.cs:
20679           - Implemented Copy()
20680           - Implemented Paste()
20681           - Implemented Cut()
20682           - Fixed caret mis-behaviour on backspace across line-boundaries
20683
20684 2005-11-29  Jackson Harper  <jackson@ximian.com>
20685
20686         * MdiClient.cs: Add a method for activating mdi children. Very
20687         basic right now. I imagine someday it might need more girth.
20688         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
20689         children windows names are added to the menu item.
20690         * ThemeWin32Classic.cs: Draw the arrow if the item is an
20691         mdilist. This happens regardless of whether or not there are any
20692         mdi windows to see in the list, and according to my tests happens
20693         before the items are even added. Also happens if there isn't even
20694         an mdi client to get windows from.
20695
20696 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
20697
20698         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
20699         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
20700
20701 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
20702
20703         * DataGridTableStyle.cs:
20704           - Create always the styles for the missing columns even if they are
20705             provided by the user (not default table style)
20706         * DataGrid.cs:
20707           - Fixes bug 76770
20708           - Fixes SetDataBinding (always re-attach source)
20709           - Fixes SetNewDataSource (only clear styles if they are not for 
20710             this source)
20711          -  Expands OnTableStylesCollectionChanged to handle style refresh 
20712             and remove properly
20713
20714 2005-11-29  Jackson Harper  <jackson@ximian.com>
20715
20716         * FileDialog.cs: Implement missing bits, remove some dead
20717         code.
20718         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
20719         creation of the panel so that the options set on the dialog are
20720         seen when the panel is created.
20721         * TreeView.cs: raise a click when items are clicked.
20722         
20723 2005-11-29  Jackson Harper  <jackson@ximian.com>
20724
20725         * MdiClient.cs: Pass some signature methods through to base.
20726
20727 2005-11-28  Jackson Harper  <jackson@ximian.com>
20728
20729         * ListView.cs: Raise the click event when items are clicked.
20730
20731 2005-11-28  Jackson Harper  <jackson@ximian.com>
20732
20733         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
20734         a nullref.
20735
20736 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
20737
20738         * ThemeNice.cs: - Removed 1 pixel bitmaps
20739           - Use SmoothingMode.AntiAlias where it makes sense
20740             (ScrollButton arrow for example)
20741           - Enhanced Button focus drawing
20742           - Fixed ComboBox drawing (no artefacts anymore, focus
20743             rectangle is back again, reduced size of ComboButton, etc.)
20744           - Fixed RadioButton focus drawing for Appearence.Button
20745           - Slight ScrollButton redesign
20746           - Some LinearGradientBrush size fixes
20747           - GroupBoxes have now rounded edges
20748           - Fixed StatusBar drawing
20749
20750 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
20751
20752         * ThemeNice.cs: - Remove dead code
20753           - use correct background colors for menus, etc.
20754           - Fake pixel drawing with 1 pixel bitmaps
20755
20756 2005-11-24  Jackson Harper  <jackson@ximian.com>
20757
20758         * MdiClient.cs: Size the scrollbars when resizing the window.
20759         - Resize the maximized windows when the client is resized
20760         * Form.cs: Make the child context available
20761         
20762 2005-11-23  Jackson Harper  <jackson@ximian.com>
20763
20764         * MdiChildContext.cs: Don't size windows if they are maximized.
20765
20766 2005-11-23  Mike Kestner  <mkestner@novell.com>
20767
20768         * ContextMenu.cs: use MenuTracker.
20769         * Control.cs: remove menu handle usage.
20770         * Form.cs: remove menu handle usage.
20771         * Hwnd.cs: remove menu handle usage.
20772         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
20773         motion and clicks to the new Tracker handlers.
20774         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
20775         and handle usage.
20776         * MenuAPI.cs: refactored to combine popup and menubar event handling.
20777         Killed the MENU and MENUITEM data types and associated collections
20778         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
20779         MenuTracker class that exposes the leftovers from the old MenuAPI
20780         static methods. Restructured Capture handling so that only one grab is
20781         done for the entire menu hierarchy instead of handing off grabs to
20782         submenus. Tracker now has an invisible control to Capture when active.
20783         * MenuItem.cs: add sizing accessors, kill Create
20784         and handle usage.
20785         * Theme.cs: remove menu handle and MENU(ITEM) usage.
20786         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
20787         MENU(ITEM). remove menu handle usage, use Menu directly.
20788         * XplatUIDriver.cs: remove menu handle usage.
20789         * XplatUIOSX.cs: remove menu handle usage.
20790         * XplatUIWin32.cs: remove menu handle usage.
20791         * XplatUIX11.cs: remove menu handle usage.
20792
20793 2005-11-22  Jackson Harper  <jackson@ximian.com>
20794
20795         * Hwnd.cs: Don't compute the menu size for
20796         DefaultClientRectangle.
20797         - Reenable menu sizes being computed for GetClienRectangle.
20798         * Form.cs: Remove comment of trechery
20799         
20800 2005-11-22  Jackson Harper  <jackson@ximian.com>
20801
20802         * Hwnd.cs: The adjustments for the menu bar are made when it is
20803         attached to the form.
20804
20805 2005-11-19  Jackson Harper  <jackson@ximian.com>
20806
20807         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
20808         (just like on windows).
20809
20810 2005-11-19  Jackson Harper  <jackson@ximian.com>
20811
20812         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
20813         use real buttons anymore because they are in non client area. The
20814         one TODO here is that I need to somehow invalidate a section of
20815         the non client area.
20816
20817 2005-11-18  Jackson Harper  <jackson@ximian.com>
20818
20819         * Control.cs: Put the enum check back in now that MDI doesnt have
20820         to use this to set border styles.
20821         * Form.cs: Only set mdi child windows borders if the handle has
20822         been created.
20823         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
20824         this directly on to the driver.
20825         - Get the move start position before adjusting for the titlebar
20826         height, this fixes the windows "skipping" when they are first
20827         moved.
20828
20829 2005-11-18  Jackson Harper  <jackson@ximian.com>
20830
20831         * XplatUIX11.cs: Just compute the mdi borders separately as they
20832         don't totally match up with normal form borders.
20833
20834 2005-11-18  Jackson Harper  <jackson@ximian.com>
20835
20836         * Control.cs: Set WS_ styles for borders, so that the driver does
20837         not have to retrieve the control instance to figure out what kind
20838         of borders it should have.
20839         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
20840         driver can know its an mdi child easily.
20841         * XplatUIX11.cs: Get the border styles and whether the window is
20842         MDI from the Styles and ExStyles params instead of having to get a
20843         control. This prevents a chicken and egg problem.       
20844
20845 2005-11-18  Jackson Harper  <jackson@ximian.com>
20846
20847         * MdiClient.cs: Fix typo so scrollbars show up correctly.
20848
20849 2005-11-18  Jackson Harper  <jackson@ximian.com>
20850
20851         * MdiClient.cs: Calculate when to add and remove scrollbars
20852         correctly.
20853         * MdiChildContext.cs: Adjust the y position to take the titlebar
20854         into account.
20855         - No height for FormBorderStyle.None
20856
20857 2005-11-18  Jackson Harper  <jackson@ximian.com>
20858
20859         * Control.cs: Allow non enum values to be used for
20860         InternalBorderStyle.  MDI does this to set a special border style.
20861         - New utility methods for converting points to/from client coords
20862         - Add the newly created control to the Controls collection before
20863         updating its style. This way UpdateStyle can walk the control
20864         heirarchy to find the control if needed.
20865         so I don't need to create a new Point object all the time.
20866         * Form.cs: Let MDI windows handle their border styles.
20867         - Set styles on MDI windows so the correct title style is derived.
20868         * MdiChildContext.cs: Move all the painting and window handling
20869         into the non client area.
20870         - Use correct sizing and put correct buttons on frames based on
20871         the FormBorderStyle.
20872         - Notify the mdi client about scrolling
20873         - Need to handle the buttons ourselves now, because they are all
20874         in non client areas and we can't add controls there.
20875         * MdiClient.cs: Halfway to scrolling, this implementation is
20876         somewhat broken though, we need to check to make sure other
20877         windows aren't causing scrolling before removing the bars. Also
20878         the bars need to be drawn on top, maybe I can switch implicit
20879         controls to be on top.
20880         * Hwnd.cs: caption_height and tool_caption_height are now
20881         properties of an hwnd, this way they can be set by the driver
20882         based on the type of window they are.  In X11 the window manager
20883         handles the decorations so caption_height is zero unless its an
20884         MDI window.
20885         - Add 3 pixel borders for MDI windows (0xFFFF).
20886         - Get rid of some code duplication, have DefaultClientRectanle
20887         just call GetClientRectangle.
20888         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
20889         Hwnd now.
20890         - Set border styles differently for mdi windows.
20891         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
20892         Hwnd now.
20893         
20894 2005-11-15  Mike Kestner  <mkestner@novell.com>
20895
20896         * Menu.cs: when adding an item to the collection, if item is already 
20897         parented, remove it from the parent.
20898
20899 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
20900
20901         * X11DesktopColors.cs: Added KDE support
20902
20903 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
20904
20905         * XplatUIWin32.cs: 
20906           - Clipboard methods now can translate Rtf format
20907           - No longer removes clipboard contents whenever a new format is added
20908             to allow placing multiple formats on the clipboard
20909         * Clipboard.cs: Clipboard now supports getting a IDataObject and
20910           will place all formats contained in it onto the clipboard. Also
20911           now cleans the clipboard before placing a new object onto it
20912         * RichTextBox.cs:
20913           - Implemented set_Rtf
20914           - Implemented set_SelectedRtf
20915           - Created InsertRTFFromStream() method to allow single code base
20916             for all properties and methods that insert RTF into document
20917           - Removed debug output
20918         * TextControl.cs:
20919           - Fixed Delete(int) to fix up line numbers
20920           - Fixed ReplaceSelection to combine start and end line
20921           - Fixed serious DeleteChars bug that would leave the document tree
20922             broken
20923           - Improved DumpTree with several logic checks to detect broken
20924             document trees
20925           - Removed debug lines
20926           - Fixed Caret.WordForward/WordBack moving code, now always also 
20927             updates caret.tag (fixes crash when word-selecting across tag
20928             boundaries via keyboard)
20929           - Added Insert() method for inserting multiline text into documents
20930           - Fixed DeleteChars() calculation errors that would cause a broken
20931             tag chain with multiple tag lines
20932           - DeleteChars() no longer crashes on multi-tag lines if not all tags
20933           - Split() no longer moves caret if split is at caret location
20934           - ReplaceSelection() now updates the cursor and re-displays it
20935           - ReplaceSelection() now uses new Insert() method to avoid code
20936             duplication
20937           - FormatText() can now handle formatting partial lines
20938         * TextBoxBase.cs:
20939           - Append now uses new TextControl.Insert() method (this avoids 
20940             duplicate code)
20941           - Implemented Ctrl-X (Cut) (
20942           - Implemented Ctrl-C (Copy)
20943           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
20944             regeneration when pasting text; roundtripping Copy&Paste within
20945             edit control still fails due to some calculation bugs in GenerateRTF)
20946           - The Delete key will now remove the current selection if it is visible
20947         * TextBox.cs: Removed debug lines
20948         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
20949           driver to be initialized and can't therefore be done via a static ctor)
20950
20951 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
20952
20953         * TextControl.cs: Added backend code for finding char arrays and strings
20954         * TextBoxBase.cs:
20955           - Added mouse wheel scroll support
20956           - Added support for VScroll and HScroll events
20957         * RichTextBox.cs:
20958           - Implemented all seven Find() variants
20959           - Implemented GetCharFromPosition()
20960           - Implemented GetCharIndexFromPosition()
20961           - Implemented GetLineFromIndex()
20962           - Implemented GetPositionFromCharIndex();
20963           - Implemented SaveFile for PlainText and UnicodeText
20964           - Fixed set_Font, now setting a new font applies that font to
20965             the whole document
20966           - Implemented generic Document to RTF converter
20967           - Implemented SaveFile for RichText format (still missing unicode
20968             conversion for non-ansi chars)
20969           - Implemented get_Rtf
20970           - Implemented get_SelectedRtf
20971
20972 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
20973
20974         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
20975           to allow any captures to be released before triggering OnClick. This
20976           way a click handler may capture the mouse without interference.
20977         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
20978           This way we send them even though X may not allow a grab (if the window
20979           isn't visible, for example)
20980
20981 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
20982
20983         * DataGridViewRowEventArgs.cs: DataGridView implementation
20984         * DataGridViewElement.cs: DataGridView implementation
20985         * DataGridViewComboBoxCell.cs: DataGridView implementation
20986         * DataGridViewDataErrorContexts.cs: DataGridView implementation
20987         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
20988         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
20989         * ImageLayout.cs: DataGridView implementation
20990         * DataGridViewComboBoxColumn.cs: DataGridView implementation
20991         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
20992         * DataGridViewSelectionMode.cs: DataGridView implementation
20993         * IDataGridViewEditingControl.cs: DataGridView implementation
20994         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
20995         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
20996         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
20997         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
20998         * DataGridViewColumnSortMode.cs: DataGridView implementation
20999         * DataGridView.cs: DataGridView implementation
21000         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
21001         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
21002         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
21003         * Padding.cs: DataGridView implementation
21004         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
21005         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
21006         * DataGridViewRowEventHandler.cs: DataGridView implementation
21007         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
21008         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
21009         * DataGridViewButtonCell.cs: DataGridView implementation
21010         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
21011         * DataGridViewEditMode.cs: DataGridView implementation
21012         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
21013         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
21014         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
21015         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
21016         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
21017         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
21018         * DataGridViewCellEventHandler.cs: DataGridView implementation
21019         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
21020         * DataGridViewCellStyleConverter.cs: DataGridView implementation
21021         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
21022         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
21023         * DataGridViewColumnEventArgs.cs: DataGridView implementation
21024         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
21025         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
21026         * QuestionEventArgs.cs: DataGridView implementation
21027         * IDataGridViewEditingCell.cs: DataGridView implementation
21028         * DataGridViewTriState.cs: DataGridView implementation
21029         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
21030         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
21031         * DataGridViewColumnCollection.cs: DataGridView implementation
21032         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
21033         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
21034         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
21035         * DataGridViewColumn.cs: DataGridView implementation
21036         * DataGridViewCellBorderStyle.cs: DataGridView implementation
21037         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
21038         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
21039         * DataGridViewRow.cs: DataGridView implementation
21040         * DataGridViewImageCellLayout.cs: DataGridView implementation
21041         * DataGridViewImageCell.cs: DataGridView implementation
21042         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
21043         * DataGridViewCheckBoxCell.cs: DataGridView implementation
21044         * DataGridViewHeaderCell.cs: DataGridView implementation
21045         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
21046         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
21047         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
21048         * DataGridViewTextBoxColumn.cs: DataGridView implementation
21049         * QuestionEventHandler.cs: DataGridView implementation
21050         * DataGridViewCellStyleScopes.cs: DataGridView implementation
21051         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
21052         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
21053         * DataGridViewCell.cs: DataGridView implementation
21054         * DataGridViewCellEventArgs.cs: DataGridView implementation
21055         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
21056         * DataGridViewCellStyle.cs: DataGridView implementation
21057         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
21058         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
21059         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
21060         * TextFormatFlags.cs: DataGridView implementation
21061         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
21062         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
21063         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
21064         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
21065         * DataGridViewButtonColumn.cs: DataGridView implementation
21066         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
21067         * HandledMouseEventArgs.cs: DataGridView implementation
21068         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
21069         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
21070         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
21071         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
21072         * DataGridViewRowCollection.cs: DataGridView implementation
21073         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
21074         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
21075         * DataGridViewHitTestType.cs: DataGridView implementation
21076         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
21077         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
21078         * DataGridViewColumnEventHandler.cs: DataGridView implementation
21079         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
21080         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
21081         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
21082         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
21083         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
21084         * DataGridViewContentAlignment.cs: DataGridView implementation
21085         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
21086         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
21087         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
21088         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
21089         * DataGridViewPaintParts.cs: DataGridView implementation
21090         * DataGridViewCellCollection.cs: DataGridView implementation
21091         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
21092         * DataGridViewImageColumn.cs: DataGridView implementation
21093         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
21094         * DataGridViewElementStates.cs: DataGridView implementation
21095         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
21096         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
21097         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
21098         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
21099         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
21100         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
21101         * DataGridViewRowHeaderCell.cs: DataGridView implementation
21102         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
21103         * DataGridViewTextBoxCell.cs: DataGridView implementation
21104         * DataGridViewBand.cs: DataGridView implementation
21105         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
21106         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
21107         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
21108         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
21109         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
21110         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
21111         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
21112         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
21113         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
21114         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
21115         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
21116
21117 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
21118
21119         * ThemeWin32Classic.cs: 
21120           - Draw the outside focus rectangle around buttons
21121           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
21122             doesn't use end caps for every dash of a line anymore. This
21123             workaround ignores the forecolor.
21124
21125 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
21126
21127         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
21128           endian safe.
21129
21130 2005-11-07  Jackson Harper  <jackson@ximian.com>
21131
21132         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
21133
21134 2005-11-07  Jackson Harper  <jackson@ximian.com>
21135
21136         * ScrollableControl.cs: Calculate the maximum and change vars
21137         (more) correctly so that scrollbars appear as a sensible size.
21138
21139 2005-11-04  Jackson Harper  <jackson@ximian.com>
21140
21141         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
21142         collection.
21143         * TreeView.cs: When the tree is sorted null out the top_node so
21144         that it is recalculated.
21145         - Use dotted lines instead of dashed lines to match MS better.
21146
21147 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
21148
21149         * ListView.cs: 
21150           - Implements key search for items. Useful when browsing files with FileDialog
21151           - When changing view mode or when clear the items reset scrollbar positions
21152
21153 2005-11-04  Jackson Harper  <jackson@ximian.com>
21154
21155         * CurrencyManager.cs: Implement the MetaDataChanged event, the
21156         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
21157         as to what the method may do as there is no real way of creating a
21158         derived CurrencyManager and calling the method. 
21159
21160 2005-11-03  Jackson Harper  <jackson@ximian.com>
21161
21162         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
21163         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
21164         method which seems to just be used internally to refresh the tabs.
21165
21166 2005-11-03  Jackson Harper  <jackson@ximian.com>
21167
21168         * TabControl.cs: Implement the remove method. Fix some broken
21169         comments.
21170
21171 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
21172
21173         * DateTimePicker.cs:
21174           - Added missing DateTimePickerAccessibleObject class
21175           - Added missing events
21176           - Added OnFontChanged method
21177         * Form.cs: Added missing attributes
21178         * TreeView.cs: Added missing attributes
21179
21180 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
21181
21182         * GridItemCollection.cs: Fix signatures
21183
21184 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
21185
21186         * XplatUI.cs: Updated build rev/date
21187         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
21188           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
21189         * Application.cs: Trigger context-specific ExitThread events
21190
21191 2005-11-03  Jackson Harper  <jackson@ximian.com>
21192
21193         * Menu.cs:
21194         * MainMenu.cs:
21195         * GridTableStylesCollection.cs:
21196         * Timer.cs:
21197         * TabPage.cs:
21198         * HelpProvider.cs:
21199         * StatusBar.cs:
21200         * MonthCalendar.cs: Signature fixes
21201
21202 2005-11-03  Jackson Harper  <jackson@ximian.com>
21203
21204         * TreeNodeCollection.cs: Remove should not be virtual.
21205         * TreeView.cs: Implement the last of the missing methods.
21206
21207 2005-11-03  Jackson Harper  <jackson@ximian.com>
21208
21209         * TreeNodeConverter.cs: Implement to get off my class-status back.
21210
21211 2005-11-03  Jackson Harper  <jackson@ximian.com>
21212
21213         * TreeView.cs: Hookup the bits for drag and drop.
21214         * TreeNode.cs: Don't cache the tree_view or index anymore, now
21215         that nodes can be moved from tree to tree easily this just causes
21216         all sorts of problems.
21217         * TreeNodeCollection: Don't need to give treenodes an index and
21218         treeview anymore when they are added, these are computed on the
21219         fly. Also make sure to remove a node before its added.
21220
21221 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
21222
21223         * TextControl.cs:
21224           - Added CaretSelection enum
21225           - Added comparison methods to Marker struct, makes selection code
21226             more readable
21227           - Added SelectionStart and SelectionEnd as 'moveable' location for
21228             the CaretDirection enum and handler
21229           - Added selection_prev variable to track optimized invalidation for
21230             word and line selection
21231           - Added SelectionVisible property (returns true if there is a valid 
21232             selection)
21233           - Switched CaretHasFocus to only display the caret if there is no
21234             visible selection
21235           - Avoiding StringBuilder.ToString to retrieve a single char, instead
21236             using the direct character index; should be much faster
21237           - Added various conditional debug statements
21238           - Fixed invalidation calculation for selection ranges
21239           - Added ExpandSelection() method to support word and line selection
21240           - Switched SetSelectionToCaret to use new Marker compare overloads
21241           - Added central IsWordSeparator() method to determine word 
21242             separators/whitespace and FindWordSeparator() to streamline common
21243             usage of IsWordSeparator()
21244         * TextBoxBase.cs:
21245           - Removed unneeded grabbed variable, it was just mirroring
21246             Control.Capture
21247           - No longer firing OnTextChanged event when Text setter is called,
21248             since the base will fire the event for us
21249           - Added handling of Ctrl-Up/Down selection
21250           - Added handling of Shift-Cursorkey selection
21251           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
21252             words
21253           - Added handling of Shift and Ctrl-Shift-Home/End selection
21254           - Removed some debug output
21255           - Added handling for single/double/tripple-click to place caret/
21256             select word/select line respectively (Fixes bug #76031)
21257           - Added support for drag expansion of word/line selection
21258         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
21259           current selection
21260
21261 2005-11-02  Jackson Harper  <jackson@ximian.com>
21262
21263         * X11Dnd.cs: If the drag is going to and from a MWF window just
21264         copy the data instead of sending it out through the X Selection
21265         mechanism.
21266
21267 2005-11-02  Jackson Harper  <jackson@ximian.com>
21268
21269         * X11Dnd.cs:
21270         * XplatUIX11.cs: When in a drag we don't want motion notify
21271         messages to get passed on to the other controls. This prevents
21272         mouse move messages from showing up in the drag source.
21273
21274 2005-11-02  Jackson Harper  <jackson@ximian.com>
21275
21276         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
21277         the correct button is release to end a drag.
21278         * XplatUIX11.cs: Make the button state internal so the drag system
21279         can access it.  Dragging needs to know about all button releases,
21280         not just left button.
21281
21282 2005-11-02  Miguel de Icaza  <miguel@novell.com>
21283
21284         * Form.cs (Icon): If the icon is null, reset the icon to the
21285         default value. 
21286
21287         * Cursor.cs: When writing the AND-mask bitmap do not include the
21288         number of colors, but hardcode those to two (black and white),
21289         fixes the loading of color cursors (Paint Dot Net).
21290
21291         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
21292         turn off autoscaling.
21293
21294         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
21295
21296 2005-11-02  Jackson Harper  <jackson@ximian.com>
21297
21298         * X11Dnd.cs: Make sure to send a status message if the pointer
21299         enters a control that can not accept a drop, otherwise the cursor
21300         isn't updated correctly. Also tried to compress the lines of code
21301         a bit.
21302
21303 2005-11-02  Jackson Harper  <jackson@ximian.com>
21304
21305         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
21306         set actions correctly.  This isn't perfect as XDND and win32 have
21307         some differences on how you allow actions. I'll clear this up by
21308         adding a path for drag from MWF to MWF windows.
21309         * XplatUIX11.cs: Hook into the dnd system.
21310
21311 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
21312
21313         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
21314         previously shown but they are no longer need it. Very obvious when 
21315         browsing files with FileDialog.
21316
21317 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
21318
21319         * Control.cs: We always need to call OnPaintBackground. We pretty much
21320           ignore AllPaintingInWmPaint and always do the painting there, whether 
21321           it's set or not, since we always ignore the WM_ERASEBKGND message 
21322           (which we don't generate on X11). This fixes #76616.
21323         * Panel.cs: Removed unneeded background painting. This happens properly
21324           in Control.cs already
21325
21326 2005-10-31  Mike Kestner  <mkestner@novell.com>
21327
21328         * Menu.cs: Add items to collection before setting their index.
21329         * MenuItem.cs : add range checking with ArgumentException like MS.
21330         [Fixes #76510]
21331
21332 2005-10-31  Jackson Harper  <jackson@ximian.com>
21333
21334         * ListBox.cs: Invalidate if the area is visible at all not just
21335         contained in the visible rect. Fixes unselection of semi visible
21336         items.
21337
21338 2005-10-31  Jackson Harper  <jackson@ximian.com>
21339
21340         * Control.cs: Consistently name the dnd methods. Make them
21341         internal so we can override them to match some MS behavoir
21342         internally.
21343         * Win32DnD.cs: Use the new consistent names.
21344
21345 2005-10-31  Jackson Harper  <jackson@ximian.com>
21346
21347         * TreeView.cs: Don't draw the selected node when we lose focus.
21348
21349 2005-10-31  Jackson Harper  <jackson@ximian.com>
21350
21351         * X11Dnd.cs: We still need to reset the state even though a full
21352         reset isn't being done, otherwise status's still get sent all over
21353         the place.
21354
21355 2005-10-31  Jackson Harper  <jackson@ximian.com>
21356
21357         * Control.cs: Make the dnd_aware flag internal so the dnd
21358         subsystem can check it. Catch exceptions thrown in dnd handlers to
21359         match MS behavoir.
21360         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
21361         * X11Dnd.cs: Handle null data in the converters. Set the XDND
21362         version when sending a XdndEnter. Use the control/hwnd dnd_aware
21363         flags to reduce the number of dnd enters/status's sent.
21364
21365 2005-10-31  Jackson Harper  <jackson@ximian.com>
21366
21367         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
21368
21369 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
21370
21371         * PictureBox.cs: Fixes 76512
21372
21373 2005-10-28  Jackson Harper  <jackson@ximian.com>
21374
21375         * X11Dnd.cs: Early implementation to support winforms being a drag
21376         source for data on X11. Also restructured the converters so they
21377         can go both ways now.
21378         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
21379         
21380 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
21381
21382         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
21383           clipboard requests
21384
21385 2005-10-27  Jackson Harper  <jackson@ximian.com>
21386
21387         * TreeNode.cs: Implement serialization so my DnD examples will work.
21388
21389 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
21390
21391         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
21392           TreeView.cs: Don't dispose objects that are not owned.
21393           
21394 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
21395
21396         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
21397           should retrieve the current cursor and report that, but XplatUI
21398           doesn't (yet) have an interface for that (and I'm not sure I even
21399           can, on X11)
21400         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
21401           until any message loop processing is done (and the WM_SETCURSOR
21402           replaces the cursor to the proper one)
21403         * XplatUIX11.cs: 
21404           - Fixed override behaviour, we can't set the cursor globally on X11, 
21405             just for our windows.
21406           - Invalidating the System.Drawing X11 display handle when we are
21407             shutting down
21408         * Control.cs: Fix to make csc happy
21409
21410 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
21411
21412         * TextBoxBase.cs: 
21413           - get_Text: Add last line (without trailing newline) to returned
21414             value (Fixes 76212)
21415           - get_TextLength: Count last line in returned length
21416           - ToString: Call Text property instead of duplicating code
21417
21418 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
21419
21420         * ImageList.cs: Dispose ImageAttributes objects.
21421
21422 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
21423
21424         * ImageList.cs: Use attribute constructors with less arguments where
21425           possible.
21426
21427 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
21428
21429         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
21430           Use typeof instead of strings when assembly is referenced. Added
21431           some more comments.
21432
21433 2005-10-21  Jackson Harper  <jackson@ximian.com>
21434
21435         * ListView.cs: Raise a double click event. Also tried to somewhat
21436         fix when the selectedindexchanged event is raised. Its still
21437         broken though.
21438
21439 2005-10-21  Jackson Harper  <jackson@ximian.com>
21440
21441         * TreeView.cs: New method to invalidate the plus minus area of a
21442         node without invalidating the whole node (maybe this can be used
21443         in some more places).
21444         * TreeNodeCollection.cs: When adding to an empty node we need to
21445         invalidate its plus minus area so the little block shows up.
21446         
21447 2005-10-21  Jackson Harper  <jackson@ximian.com>
21448
21449         * TreeView.cs: Make sure that when we invalidate a node the bounds
21450         are big enough to cover the selected box and the focus
21451         rectangle. Use a different colour for the lines connecting nodes
21452         so they show up with all themes.
21453
21454 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
21455
21456         * NativeWindow.cs: Don't call anything that could call into the driver,
21457           we might be on a different thread.
21458
21459 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
21460
21461         * Control.cs(Dispose): Since Dispose might run on a different thread,
21462           make sure that we call methods that could call into the driver via
21463           invoke, to avoid thread issues
21464
21465 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
21466
21467         * XplatUI.cs: Removed finalizer
21468         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
21469           not allowing to be called on the finalizer thread.
21470
21471 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
21472
21473         * ImageList.cs:
21474           - Reverted r51889 and r51891.
21475           - Added ImageListItem class that stores unmodified image items and image
21476             properties required to create list images until handle is created.
21477           - Added AddItem and moved image creation logic to AddItemInternal.
21478           - Added CreateHandle method that creates images based on unmodified items.
21479           - Added DestroyHandle that changes state to store unmodified items.
21480           - Add and AddStrip methods no more create handle.
21481           - ReduceColorDepth has no return value.
21482           - Dispose destroys handle.
21483           - Modified other methods to reflect the above changes.
21484           - Implemented key support.
21485           - Added profile 2.0 members and attributes.
21486           - Added private Reset and ShouldSerialize methods that provide the same
21487             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
21488             them as they are private.
21489           - Added some more comments about implementation details.
21490
21491 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
21492
21493         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
21494
21495 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
21496
21497         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
21498
21499 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
21500
21501         * DataGridDrawingLogic.cs: Fixes column hit calcultation
21502         * DataGridColumnStyle.cs: Remove debug message
21503
21504 2005-10-20  Jackson Harper  <jackson@ximian.com>
21505
21506         * TreeView.cs: We can always get input keys regardless of whether
21507         or not editing is enabled. They are used for navigation.
21508
21509 2005-10-20  Jackson Harper  <jackson@ximian.com>
21510
21511         * TreeNode.cs: Use the viewport rect for determining if a node
21512         needs to be moved for visibility. Don't use Begin/End edit. This
21513         calls a full refresh when its done.
21514         * TreeView.cs: New SetBottom works correctly.  Make the viewport
21515         rect property internal so the treenodes can see it. When clicking
21516         on a node we need to ensure that its visible because it might just
21517         be partly visible when clicked.
21518
21519 2005-10-20  Jackson Harper  <jackson@ximian.com>
21520
21521         * TreeNodeCollection.cs: Remove debug code.
21522
21523 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
21524
21525         * Datagrid.cs: Implements column sorting in Datagrid
21526         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
21527
21528 2005-10-20  Jackson Harper  <jackson@ximian.com>
21529
21530         * TreeNodeCollection.cs: Remove items properly. Update the correct
21531         area after removing them.
21532
21533 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
21534
21535         * Datagrid.cs: Should not call base.OnPaintBackground
21536
21537 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
21538
21539         * XplatUIX11.cs (GetMessage):
21540           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
21541             window instead of client window
21542           - Now properly calculates NC_xBUTTONUP message coordinates
21543           - ScreenToMenu now properly calculates it's coordinates of whole 
21544             window, since menus are in the whole window, not in the client
21545             window
21546           - Added WholeToScreen coordinate translation method
21547
21548 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
21549
21550         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
21551           want to return a message, loop back to the beginning of the function
21552           and grab the next real message to process instead.
21553
21554 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
21555
21556         * Splitter.cs: Properly set limits if no filler control is used
21557
21558 2005-10-19  Jackson Harper  <jackson@ximian.com>
21559
21560         * ColorDialog.cs: Don't show the help button if it is not enabled
21561         instead of disabling it (this is what MS does). Don't create the
21562         panel until the dialog is run, otherwise the vars (such as
21563         ShowHelp) are not set yet.
21564
21565 2005-10-19  Jackson Harper  <jackson@ximian.com>
21566
21567         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
21568         are reduced when adding nodes.
21569         * TreeNode.cs:
21570         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
21571         tree.
21572         
21573 2005-10-19  Jackson Harper  <jackson@ximian.com>
21574
21575         * FolderBrowserDialog.cs: End editing our treeview so the window
21576         actually gets refreshed.
21577
21578 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
21579
21580         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
21581           Obsoleted handling of WM_ERASEBKGND, now always draws our background
21582           inside of WM_PAINT
21583
21584 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
21585
21586         * MenuAPI.cs: Returns after Hidding window
21587         * XplatUIX11.cs: Added TODO found while debugging menu issues
21588
21589 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
21590
21591         * XplatUIX11.cs: Do not re-map the whole window when it's size
21592           becomes non-zero unless it's supposed to be actually visible
21593
21594 2005-10-18  Jackson Harper  <jackson@ximian.com>
21595
21596         * TreeView.cs: We don't need to keep a count anymore.
21597         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
21598         use the Grow method.
21599
21600 2005-10-18  Jackson Harper  <jackson@ximian.com>
21601
21602         * TreeNodeCollection.cs: Insert is not supported on arrays, so
21603         implement it manually here.
21604
21605 2005-10-18  Jackson Harper  <jackson@ximian.com>
21606
21607         * ImageList.cs: Dont kill the list when the colour depth is
21608         changed, just change the colour depth of all the images.
21609         - Same goes for setting the image size. Just resize them all
21610         instead of killing the list softly.
21611
21612 2005-10-18  Jackson Harper  <jackson@ximian.com>
21613
21614         * Control.cs: Don't invalidate empty rectangles.
21615
21616 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
21617
21618         * ListViewItem.cs:
21619           - Adds checked item to the Checked/Item lists (where empty before)
21620           - Do not add items to the Selected lists if they are already present
21621         * ListView.cs:
21622           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
21623           - When deleting items make sure that we delete them for the Selected
21624           and Checked list also.
21625
21626 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
21627
21628         * Label.cs: Dispose objects no longer used
21629         * ThemeWin32Classic.cs: Dispose objects no longer used
21630
21631 2005-10-18  Jackson Harper  <jackson@ximian.com>
21632
21633         * TabControl.cs: Don't refresh the whole control when the tabs are
21634         scrolled, we just need to refresh the tab area.
21635
21636 2005-10-17  Jackson Harper  <jackson@ximian.com>
21637
21638         * XplatUIX11.cs: Compress code a little bit. Only calculate the
21639         after handle when we need it.
21640
21641 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
21642
21643         * Control.cs: When the parent size changes, recalculate anchor 
21644           positions. Partial fix for #76462
21645
21646 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
21647
21648         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
21649           drawn. Fixes #76462
21650
21651 2005-10-17  Jackson Harper  <jackson@ximian.com>
21652
21653         * MonthCalendar.cs: Don't create the numeric up down until our
21654         handle is created. Otherwise our handle is created in the
21655         constructor and we don't know if we are a WS_CHILD or WS_POPUP
21656         yet.
21657
21658 2005-10-17  Jackson Harper  <jackson@ximian.com>
21659
21660         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
21661         correctly.
21662
21663 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
21664         * TreeNode.cs : small logical fix (was using local var instead of field)
21665         
21666 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
21667
21668         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
21669
21670 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
21671
21672         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
21673
21674 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
21675
21676         * Control.cs: 
21677           - Re-implemented anchoring code. My first version was really broken.
21678             This fixes bug #76033. Unlike the previous implementation we will
21679             no longer have round errors since all numbers are calculated from
21680             scratch every time. Removed various anchor-related obsolete vars.
21681           - InitLayout no longer causes layout event firing and layout to be 
21682             performed
21683
21684 2005-10-16  Jackson Harper  <jackson@ximian.com>
21685
21686         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
21687         which was broken).
21688
21689 2005-10-16  Jackson Harper  <jackson@ximian.com>
21690
21691         * TabControl.cs: Remove debug code.
21692
21693 2005-10-16  Jackson Harper  <jackson@ximian.com>
21694
21695         * XEventQueue.cs: Increase the default queue size (very simple
21696         apps needed to grow the queue).
21697         * Hwnd.cs: No finalizer so we don't need to suppress
21698         finalization. Compute the invalid area manually so a new rectangle
21699         does not newto be created.
21700         * ScrollableControl.cs: Don't set any params (otherwise visibility
21701         isn't set correctly).
21702         * MdiChildContext.cs: New constructor takes the mdi parent so it
21703         doesn't have to be computed and avoids a crash on windows. Draw
21704         the window icon properly, and allow the text to be seen.
21705         * Form.cs: Use new MdiChildContext constructor. Make sure the
21706         child context isn't null in wndproc.
21707         * TabControl.cs: Don't set focus, this is muddling keyboard
21708         behavoir. Expand the tab rows when a window size increase will
21709         allow extra tabs to be seen. Don't allow tabs smaller than the
21710         width of a window to be scrolled out of view.
21711         * TreeNode.cs:
21712         * TreeView.cs: Use measure string to calculate a nodes width, the
21713         width is cached and only updated when the text or the font is
21714         changed. Don't check for expand/collapse clicks on the first level
21715         nodes if root lines are disabled.
21716         
21717 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
21718
21719         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
21720
21721 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
21722
21723         * DataGridBoolColumn.cs: fixes warning
21724
21725 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
21726
21727         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
21728         to match more to match more precisely the MS Net behavior
21729
21730 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
21731
21732         * Hwnd.cs: Added field to track if window is mapped
21733         * XplatUIX11.cs: 
21734           - Unmap windows if they become 0-size, re-map when 
21735             they are >0 again; fixes #76035
21736           - Re-set our error handler after initializing X11Desktop
21737             to override any error handlers Gtk or whatever was called
21738             may have set.
21739
21740 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
21741
21742         * CheckedListBox.cs: Removed unused vars
21743         * ListView.cs: Fixed signatures
21744         * RichTextBox.cs: Removed unused vars
21745         * TextBoxBase.cs: Removed unused vars
21746         * XplatUIWin32.cs: Removed unused vars
21747         * XplatUIX11.cs: Removed unused vars
21748         * XplatUI.cs: Updated version and date to latest published
21749
21750 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
21751
21752         * Cursor.cs: Added private .ctor to work around a bug in
21753           resourceset (Thanks to Geoff Norton for the help on this)
21754         * SplitterEventArgs.cs: Made fields accessible so we don't
21755           waste boatloads of objects and can reuse the same one
21756           in Splitter
21757         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
21758           any captions and borders when generating screen coordinates
21759         * Splitter.cs: Reimplemented control, now fully complete, uses
21760           rubberband drawing, supports and obeys all properties, has
21761           proper cursors
21762
21763 2005-10-13  Miguel de Icaza  <miguel@novell.com>
21764
21765         * Form.cs (Form): Setup default values for autoscale and
21766         autoscale_base_size;  Make these instance variables, not static
21767         variables. 
21768
21769         (OnLoad): on the first load, adjust the size of the form.
21770
21771 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
21772
21773         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
21774           width argument to DrawReversibleRectangle()
21775         * XplatUIWin32.cs, XplatUIX11.cs: 
21776           - Implemented width for DrawReversibleRectangle()
21777           - Added logic to DrawReversibleRectangle that recognizes a zero
21778             width or height and only draws a line in that situation
21779         
21780 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
21781
21782         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
21783         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
21784         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
21785           method (it uses our FosterParent window to get a graphics context)
21786
21787 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
21788
21789         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
21790           and SetWindowBackground methods
21791         * Control.cs:
21792           - Setting proper ControlStyles
21793           - We no longer call XplatUI.SetWindowBackground and XplatUI.
21794             EraseWindowBackground, instead we draw the window background
21795             ourselves in PaintControlBackground. This behaviour is
21796             required to match MS, where, when OnPaintBackground is not
21797             called, the background is not drawn.
21798           - Removed unneeded Refresh() in set_Text
21799         * Hwnd.cs: Dropped the ErasePending support. No longer needed
21800         * XplatUIX11.cs:
21801           - Created DeriveStyles method to translate from CreateParams to
21802             FormBorderStyle and TitleStyle, also handles BorderStyle (which
21803             matches FormBorderStyle enum values)
21804           - Consolidated SetHwndStyles and CalculateWindowRect border/title
21805             style calculations into single DeriveStyles method
21806           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
21807             from redrawing the whole window on any resize or expose.
21808           - Fixed CreateWindow usage of SetWindowValuemask. Before not
21809             all styles were applied to our whole/client window appropriately
21810           - Removed EraseWindowBackground() and SetWindowBackground() methods
21811           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
21812             no longer clear/redraw the background through X
21813           - Removed handling of erase_pending bit, we have no use for it (or
21814             so it seems)
21815         * XplatUIOSX.cs:
21816           - Removed generation and handling of WM_ERASEBKGND message
21817           - Removed EraseWindowBackground() and SetWindowBackground() methods
21818           - Removed handling of hwnd.ErasePending flag
21819         * XplatUIWin32.cs:
21820           - Removed EraseWindowBackground() and SetWindowBackground() methods
21821           - We no longer call EraseWindowBackground on PaintEventStart, we 
21822             ignore the fErase flag, erasing is handled in Control in the
21823             background handler
21824         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
21825           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
21826           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
21827           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
21828           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
21829           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
21830           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
21831
21832 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
21833
21834         * PropertyGrids.cs: Get sub properties
21835         * PropertyGridView.cs: Fix drawing code
21836
21837 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
21838
21839         * ListBox.cs: Fixes 76383
21840
21841 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
21842
21843         * DataGridTextBoxColumn.cs: Sets location and size before attachment
21844         * ThemeWin32Classic.cs: Fixes border drawing and calculations
21845         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
21846
21847
21848 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
21849
21850         * ComboBox.cs: Fixes border drawing
21851
21852 2005-10-10  Miguel de Icaza  <miguel@novell.com>
21853
21854         * MimeIcon.cs: Ignore errors if the file can not be read.
21855
21856 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
21857
21858         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
21859          - Fixed border calculations
21860          - Fixed horizontal scrolling in single column listboxes
21861          - Fixed drawing issues
21862
21863 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
21864
21865         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
21866           FormBorderStyle enum
21867         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
21868           code to determine FormBorderStyles from CreateParams
21869         * Form.cs:
21870           - Fixed bug where we'd set the wrong window styles if we were
21871             not creating an MDI window
21872           - Added call to XplatUI.SetBorderStyle when form borders are set
21873         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
21874         * Hwnd.cs:
21875           - Removed obsolete edge style
21876           - Switched from BorderStyle to FormBorderStyle
21877         
21878 2005-10-10  Jackson Harper  <jackson@ximian.com>
21879
21880         * Form.cs: Use the property to get the window handle instead of
21881         accessing it directly. Prevents a null reference exception.
21882
21883 2005-10-10  Jackson Harper  <jackson@ximian.com>
21884
21885         * TreeView.cs: Don't adjust the rect given to DrawString now that
21886         our libgdiplus draws correctly.
21887
21888 2005-10-08  Jackson Harper  <jackson@ximian.com>
21889
21890         * TreeView.cs: Don't try to find the clicked on node if there are
21891         no nodes in the tree.
21892
21893 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
21894
21895         * RichTextBox.cs:
21896
21897           restore
21898
21899 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
21900
21901         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
21902           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
21903           ErrorProvider.cs:
21904           Use ResPool for brushes and dispose System.Drawing objects that
21905           are not used anymore.
21906
21907 2005-10-07  Jackson Harper  <jackson@ximian.com>
21908
21909         * MdiChildContext.cs: Use the new borders instead of drawing them
21910         ourselves.
21911
21912 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
21913
21914         * Calling UpdateBounds after changing the window's BorderStyle 
21915         since the style can change the ClientSize
21916
21917 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21918
21919         * Control.cs: Made PaintControlBackground virtual
21920         * Panel.cs: Overriding PaintControlBackground instead of using paint
21921           event; paint event method was interfering with 'real' users of the
21922           event.
21923
21924 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
21925
21926         * ThemeWin32Classic.cs: remove border drawing since it is handled
21927         by the base control class now and was causing double border drawing.
21928
21929 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21930
21931         * Panel.cs: Redraw our background on paint. Not a pretty solution,
21932           but it does seem to match MS behaviour. This fixes bug #75324
21933
21934 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21935
21936         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
21937           somewhat hackish looking
21938
21939 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
21940
21941         * TextBoxBase.cs:
21942           - We now accept Enter even if AcceptEnter is false, if the containing
21943             form does not have an AcceptButton configured (fixes bug #76355)
21944           - Calculations are now fixed to no longer use Width/Height, but
21945             ClientSize.Width/Height, since we now support borders (this was
21946             a result of fixing borders and therefore bug #76166)
21947           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
21948             true (fixes bug #76354)
21949         
21950 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21951
21952         * Control.cs: 
21953           - Defaulting BorderStyle and setting it in XplatUI when our window 
21954             is created
21955           - Added enum check to InternalBorderStyle setter
21956         * XplatUIX11.cs: 
21957           - Added drawing of window borders
21958           - Now properly calculates WM decorations offset for toplevel 
21959             windows (fixes bug #74763)
21960         * XplatUIWin32.cs: 
21961           - Implemented BorderStyles for windows (we're letting win32 draw 
21962             the border for us)
21963           - Fixed the signature for SetWindowLong
21964         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
21965           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
21966           setting borders
21967         * UpDownBase.cs: Remove drawing of borders, this is handled by
21968           the driver, outside the client area
21969         * ListView.cs: Removed bogus border calculations. The control should
21970           be oblivious to borders, since those are not part of the client
21971           area. 
21972         * X11DesktopColors.cs: Commented out (currently) unneeded variables
21973         * ThemeWin32Classic.cs: Removed border calculations from ListView 
21974           drawing code
21975
21976 2005-10-06  Jackson Harper  <jackson@ximian.com>
21977
21978         * MdiChildContext.cs: Clear out the old virtual position remove
21979         all the unneeded calls to CreateGraphics.
21980
21981 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
21982
21983         * TextControl.cs: Use proper color for highlighted text; fixes #76350
21984
21985 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
21986
21987         * Form.cs: 
21988           - Added loading and setting of our new default icon
21989           - Only set icon if window is already created
21990
21991 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21992
21993         * Label.cs:
21994           - Do not explicitly set the foreground and background colors, to
21995             allow inheriting from parents (fixes #76302)
21996           - Use Control's InternalBorderStyle property to deal with borders
21997
21998 2005-10-06  Jackson Harper  <jackson@ximian.com>
21999
22000         * MdiChildContext.cs: Use the new xplatui function to draw a
22001         reversible rect.
22002
22003 2005-10-06  Jackson Harper  <jackson@ximian.com>
22004
22005         * Form.cs: Add the parent before creating the child context cause
22006         we need the parent when setting up the child.
22007
22008 2005-10-06  Jackson Harper  <jackson@ximian.com>
22009
22010         * FolderBrowserDialog.cs: redo the tree population code so a
22011         second thread isn't used. Should be a lot faster and more stable
22012         now.
22013
22014 2005-10-05  Jackson Harper  <jackson@ximian.com>
22015
22016         * TreeView.cs: There are no expand/collapse boxes if the node has
22017         no children.
22018
22019 2005-10-05  Jackson Harper  <jackson@ximian.com>
22020
22021         * X11DesktopColors.cs: Get menu colours for the gtk theme.
22022
22023 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
22024
22025         * FileDialog.cs: Fix InitialDirectory
22026
22027 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
22028
22029         * ComboBox.cs:
22030                 - Fixes changing between styles
22031                 - Fixes simple mode
22032                 - Fixes last item crashing when navigating with keyboard
22033
22034 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
22035
22036         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
22037
22038 2005-10-05  Jackson Harper  <jackson@ximian.com>
22039
22040         * TreeView.cs: If updating the root node do a full refresh.
22041         * TreeNode.cs: The root node should be expanded by default. Also
22042         added a utility prop to tell if we are the root node.
22043         * TreeNodeCollection.cs: Only refresh if the node we are being
22044         added to is expanded. Also added a comment on a potential
22045         optimization.
22046         
22047 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
22048
22049         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
22050           in dispose method. Fixes #76330
22051
22052 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
22053
22054         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
22055
22056                 - Implements vertical and horizontal scrolling using XplatUI
22057                 - Fixes keyboard navagation
22058                 - Fixes EnsureVisible
22059                 - Drawing fixes
22060                 - Handles and draws focus properly
22061
22062
22063 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
22064
22065         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
22066           Create handle. NET_2_0: Destroy handle when value is null.
22067
22068 2005-10-03  Jackson Harper  <jackson@ximian.com>
22069
22070         * ScrollBar.cs: My last scrollbar patch was broken. This is a
22071         revert and a new patch to prevent the thumb from refreshing so
22072         much.
22073
22074 2005-10-02  Jackson Harper  <jackson@ximian.com>
22075
22076         * ScrollBar.cs: Don't update position if it hasn't actually
22077         changed. This occurs when you hold down the increment/decrement
22078         buttons and the thumb gets to the max/min.
22079
22080 2005-10-01  Jackson Harper  <jackson@ximian.com>
22081
22082         * Form.cs:
22083         * MdiChildContext.cs:
22084         * MdiClient.cs: Implement ActiveMdiChild in Form.
22085
22086 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
22087
22088         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
22089
22090 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
22091
22092         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
22093           be found
22094
22095 2005-09-30  Jackson Harper  <jackson@ximian.com>
22096
22097         * ListBox.cs: Don't do a full refresh unless some data has
22098         actually changed.
22099
22100 2005-09-30  Jackson Harper  <jackson@ximian.com>
22101
22102         * TreeView.cs: Make sure that the checkboxes size is factored in
22103         even when not visible.
22104
22105 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
22106
22107         * FileDialog.cs: Fix Jordi's build break
22108
22109 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
22110
22111         * FileDialog.cs: 
22112                 - Use standard the Windows colours for the combobox as espected
22113                 - Dispose objects that use resouces when no longer need them
22114
22115 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
22116
22117         * X11DesktopColors.cs: Initial incomplete implementation
22118         * XplatUIX11.cs: Added call to initialize X11DesktopColors
22119
22120 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
22121
22122         * Theme.cs: 
22123           - Switched Theme color names to match the names defined in 
22124             System.Drawing.KnownColors. Life's hard enough, no need to make 
22125             it harder.
22126           - Added setters to all theme color properties so themes can set
22127             their color schemes. The setters also propagate the color changes
22128             to System.Drawing.KnownColors via reflection
22129         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
22130           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
22131           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
22132           use the new, more logical theme color names
22133         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
22134           post-NT colors
22135         * ThemeWin32Classic.cs:
22136           - Removed code to set the old classic Windows colors. Instead it
22137             now relies on the colors returned by System.Drawing.KnownColors
22138             which will be either modern static colors (Unix) or colors
22139             read from the user's configuration (Win32)
22140           - Updated to use the new, more logical theme color names
22141           - Switched DataGrid drawing code to use only Theme colors instead of
22142             a mix of System.Drawing.KnownColors and Theme colors
22143           - DrawFrameControl(): Removed code that fills the button area, the
22144             fill would overwrite any previous fill done by a control. This
22145             fixes bug #75338 
22146           - Added DrawReversibleRectangle() stub
22147         * ScrollableControl.cs: Set visible state to false when scrollbars
22148           are removed (pdn fix)
22149         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
22150           DrawReversibleRectangle() method to allow drawing primitive 
22151           'rubber bands'
22152         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
22153
22154 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
22155
22156         * ImageList.cs: Add(Icon): Create handle.
22157
22158 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
22159
22160         * ListView.cs:
22161         * ThemeWin32Classic.cs:
22162                 - Fixes detail mode
22163                 - Sets clippings
22164                 - Issues with drawing
22165
22166 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
22167
22168         * ImageList.cs: Moved RecreateHandle back to ImageList as event
22169           source has to be the ImageList.
22170
22171 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
22172
22173         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
22174
22175 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
22176
22177         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
22178
22179 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
22180
22181         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
22182
22183 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
22184         * GridItem.cs: Fixed TODOs
22185         * GridItemCollection.cs: Added ICollection interface
22186
22187 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
22188
22189         * ImageList.cs: Resize icons when needed.
22190
22191 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
22192
22193         * ListViewItem.cs
22194                 - Fixes GetBounds and returns on screen rects
22195         * ListView.cs:
22196                 - Fixes vertical and horzintal scrolling of items
22197         * ThemeWin32Classic.cs:
22198                 - Fixes drawing
22199                 
22200 2005-09-29  Raja R Harinath  <harinath@gmail.com>
22201
22202         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
22203
22204 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
22205
22206         * ImageList.cs: Added comments about handle creation. Moved Handle,
22207           HandleCreated and OnRecreateHandle implementations to ImageCollection.
22208           Handle is created in Add methods.
22209
22210 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
22211          
22212         * DataGridDrawingLogic.cs: 
22213                 - Takes rows into account on Colum calculations
22214                 - Returns the column when clickig
22215         * DataGrid.cs:
22216                 - Fixes default HitTestInfo values
22217                 - Fixes HitTestInfo.ToString
22218                 - Fixes ResetBackColor          
22219         
22220 2005-09-28  Jackson Harper  <jackson@ximian.com>
22221
22222         * MdiChildContext.cs: Obey rules for fixed sized windows (no
22223         sizing or cursor changes). Also added some temp code to draw the
22224         titlebars text (Makes dev a little easier).
22225
22226 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
22227
22228         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
22229
22230 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
22231          
22232         * ListBox.cs: Fixes bug 76253
22233
22234 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
22235
22236         * ImageList.cs: Added comments about the current implementation. Added
22237           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
22238           Format32bppArgb to preserve transparency and can use Graphics.FromImage
22239           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
22240           with Bitmap.LockBits for better performance. Revised the whole file to
22241           match MS.NET behaviour and provide better performance. Non-public
22242           interface members are calling public members even when they throw
22243           NotSupportedException for better maintainability. Moved ColorDepth,
22244           ImageSize, ImageStream and TransparentColor implementations to
22245           ImageCollection for better performance as these properties are not used
22246           by ImageList.
22247         * ImageListStreamer.cs: Added a new internal constructor that takes an
22248           ImageList.ImageCollection and serializes Images based on
22249           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
22250           match ImageList property name.
22251
22252 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
22253
22254         * ListBox.cs: Fixes IndexFromPoint for last item
22255
22256 2005-09-27  Jackson Harper  <jackson@ximian.com>
22257
22258         * Form.cs: Set the position of new mdi children correctly.
22259
22260 2005-09-27  Jackson Harper  <jackson@ximian.com>
22261
22262         * MdiClient.cs: New mdi children need to be added to the back of
22263         the controls collection so the zorder is set correctly. Also add a
22264         count of all the child windows that have been created.
22265
22266 2005-09-27  Jackson Harper  <jackson@ximian.com>
22267
22268         * Form.cs (CreateParams): Setup MDI forms correctly.
22269
22270 2005-09-27  Jackson Harper  <jackson@ximian.com>
22271
22272         * MdiChildContext.cs:
22273         * MonthCalendar.cs:
22274         * UpDownBase.cs:
22275         * ListBox.cs:
22276         * ListView.cs:
22277         * TextBoxBase.cs:
22278         * TreeView.cs:
22279         * ScrollableControl.cs:
22280         * ComboBox.cs: Add implicit controls using the new implict control
22281         functionality in ControlCollection. Also try to block multiple
22282         control add in a suspend/resume layout to save some cycles.
22283         
22284 2005-09-27  Jackson Harper  <jackson@ximian.com>
22285
22286         * Control.cs: Add functionality to the controls collection to add
22287         'implicit controls' these are controls that are created by the
22288         containing control but should not be exposed to the user. Such as
22289         scrollbars in the treeview.
22290         * Form.cs: The list var of the ControlsCollection is no longer
22291         available because of the potential of implicit controls getting
22292         ignored by someone accessing the list directly.
22293
22294 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
22295
22296         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
22297           loose it's parent. (Fixed bug introduced in r49103 when we added
22298           setting the child parent to null on Remove)
22299
22300 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
22301
22302         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
22303         * Splitter.cs: Added missing attributes for BorderStyle property.
22304         * TextBoxBase.cs: Marked Calculate* methods internal.
22305         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
22306         MS.NET.
22307
22308 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
22309          
22310         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
22311
22312 2005-09-25  Jackson Harper  <jackson@ximian.com>
22313
22314         * TreeView.cs: Update the node bounds correctly regardless of
22315         whether the node is visible.
22316
22317 2005-09-25  Jackson Harper  <jackson@ximian.com>
22318
22319         * ImageList.cs: Don't dispose the image after it is added to the
22320         image list. Only reformat images that need to be resized.
22321
22322 2005-09-25  Jackson Harper  <jackson@ximian.com>
22323
22324         * ImageList.cs: Don't set the format when changing the image.
22325
22326 2005-09-25  Jackson Harper  <jackson@ximian.com>
22327
22328         * TreeView.cs: We can't just assume the node has a font. Use the
22329         treeviews font if no node font is available.
22330
22331 2005-09-25  Jackson Harper  <jackson@ximian.com>
22332
22333         * TreeView.cs: Allow the scrollbars to be reset with negative
22334         values.
22335         - Don't add scrollbars to negative sized windows.
22336
22337 2005-09-23  Jackson Harper  <jackson@ximian.com>
22338
22339         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
22340         old Mono.Posix. Also remove some stray code that shouldn't have
22341         been committed.
22342
22343 2005-09-23  Jackson Harper  <jackson@ximian.com>
22344
22345         * TreeView.cs: Attempt at proper sizing of the horizontal
22346         scrollbar. Also don't resize the scrollbars unless they are
22347         visible.
22348
22349 2005-09-23  Jackson Harper  <jackson@ximian.com>
22350
22351         * TreeView.cs: We don't need to expand the invalid area when the
22352         selection changes, as this is all drawn in the node's bounding
22353         box. The area needs to be expanded (previous typo was contracting
22354         it) when the focus rect moves.
22355
22356 2005-09-23  Jackson Harper  <jackson@ximian.com>
22357
22358         * TreeView.cs: Display the selection box under the correct
22359         circumstances. We were rendering white text with no selection box
22360         before.
22361
22362 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
22363
22364         * TextControl.cs(Split): Now updates selection start/end if it points 
22365           into a line that's being split. Fixes a FIXME and bug #75258
22366
22367 2005-09-23  Jackson Harper  <jackson@ximian.com>
22368
22369         * Binding.cs:
22370         * ListControl.cs: Don't use the path when retrieving binding
22371         managers from the binding context. My bat sense tells me that the
22372         path is only used on insertion.
22373
22374 2005-09-22  Jackson Harper  <jackson@ximian.com>
22375
22376         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
22377
22378 2005-09-22  Jackson Harper  <jackson@ximian.com>
22379
22380         * Splitter.cs: There are special cursors used for splitting.
22381         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
22382
22383 2005-09-22  Jackson Harper  <jackson@ximian.com>
22384
22385         * Splitter.cs: Change the cursor appropriately when the splitter
22386         is moused over, so the user actually knows there is a splitter
22387         there.
22388
22389 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
22390
22391        * Label.cs : Fix ToString method to give same output as MS.NET
22392
22393 2005-09-22  Jackson Harper  <jackson@ximian.com>
22394
22395         * TreeView.cs: Create the scrollbars when the handle is created
22396         and add them right away, just make them invisble. Also account for
22397         the window being shrunk vertically to the point that the vert
22398         scrollbar needs to be added.
22399         - Remove some 0.5 adjustments to get around anti aliasing issues.
22400         
22401 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
22402          
22403         * MainMenu.cs: Fixes default value
22404         * MenuItem.cs: Fixes default value
22405
22406 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
22407
22408         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
22409
22410 2005-09-21  Jackson Harper  <jackson@ximian.com>
22411
22412         * Control.cs: Don't try to set the border style on the window if
22413         it hasn't been created. When the window is created the border
22414         style will be used.
22415
22416 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
22417
22418         * Control.cs (Update): Don't call XplatUI if we don't have a
22419           window handle yet
22420
22421 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
22422
22423         * ContainerControl.cs: Instead of throwing an exception, print
22424           a one-time warning about Validate not being implemented
22425         * XplatUIWin32.cs: Removed debug output
22426
22427 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
22428
22429         * Control.cs: Only set XplatUI background if we expect the windowing
22430           system to handle the background. This stops controls that draw their
22431           own background from flickering
22432
22433         * XplatUIX11.cs: Support custom visuals and colormaps for window 
22434           creation. This allows, amongst other things, using MWF X11 windows 
22435           with OpenGL.
22436
22437 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
22438
22439         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
22440           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
22441           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
22442           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
22443           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
22444           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
22445           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
22446           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
22447           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
22448           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
22449           GridColumnStylesCollection.cs, 
22450           IDataGridColumnStyleEditingNotificationService.cs,
22451           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
22452           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
22453           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
22454           TreeNodeCollection.cs, AmbientProperties.cs, 
22455           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
22456           DataObject.cs, ErrorProvider.cs, Splitter.cs,
22457           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
22458           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
22459           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
22460           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
22461           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
22462           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
22463           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
22464           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
22465           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
22466           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
22467           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
22468           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
22469           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
22470           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
22471           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
22472           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
22473           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
22474           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
22475           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
22476           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
22477           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
22478           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
22479           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
22480           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
22481           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
22482           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
22483           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
22484           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
22485           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
22486           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
22487           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
22488           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
22489           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
22490           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
22491           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
22492
22493 2005-09-21  Jackson Harper  <jackson@ximian.com>
22494
22495         * TreeNode.cs: Call Before/After Expand not Collapse when
22496         expanding.
22497
22498 2005-09-20  Jackson Harper  <jackson@ximian.com>
22499         
22500         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
22501
22502 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
22503          
22504         * ListViewItem.cs:
22505                 - Fixes bug 76120
22506                 - Fixes proper storing of subitems
22507                 - Fixes not updated items
22508
22509 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
22510
22511         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
22512           things if our window handle isn't created yet. Also disabled 
22513           debug for TextBoxBase
22514
22515 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
22516
22517         * MenuAPI.cs: Remove filtering of events to allow menu usage
22518
22519 2005-09-20  Miguel de Icaza  <miguel@novell.com>
22520
22521         * Cursor.cs: Allow null to be passed to Cursor.Current.
22522
22523 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
22524
22525         * ThemeWin32Classic.cs:
22526           - Change some private methods/fields to protected virtual so that 
22527             they can be accessed and overriden in derived classes
22528           - First refactoring of some methods. Derived themes now don't 
22529             need to duplicate the complete code from ThemeWin32Classic
22530         * ThemeNice.cs:
22531           - Added nice StatusBar
22532           - Derive from ThemeWin32Classic and not Theme
22533           - Removed duplicate ThemeWin32Classic code
22534
22535 2005-09-20  Miguel de Icaza  <miguel@novell.com>
22536
22537         * Control.cs (ControlCollection.Add): If the value null is passed
22538         the control is ignored. 
22539
22540         Optimize this loop.
22541
22542 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
22543
22544         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
22545           PostQuitMessage state.
22546         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
22547
22548 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
22549
22550         * Application.cs: Our constructor will never get called, move 
22551           initialization to fields; fixes bug #75933
22552
22553 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
22554
22555         * FileDialog.cs :
22556                 - Allow files to be selected properly using file name
22557                 combo box.
22558                 - Add ability to change diretory (absolute / relative)
22559                 using file name combo box.
22560
22561 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
22562          
22563         * ListBox.cs: 
22564                 - Fixes Multicolumn listboxes item wrong calculations
22565                 - Allows to click when only one item is in the listbox
22566                 - Fixes crash when no items using keyboard navigation
22567
22568 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
22569
22570         * ComboBox.cs: Reverted almost everything from the latest patch which
22571           broke ComboBox
22572
22573 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
22574         
22575         * ToolTip.cs:
22576                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
22577         * ComboBox.cs:
22578                 - When DropDownStyle is Simple, it does not show scrollbar 
22579                 to the last item of the list.
22580                 - When DropDownStyle is Simple, it crashed when the list was 
22581                 scrolled down with the down cursor key.
22582                 - Fixed a bug that when DropDownStyle is DropDownList, the 
22583                 selected item was not shown.
22584                 - The position of the selected item was not preserved when 
22585                 the next dropdown happened.
22586         * ThemeWin32Classic.cs:
22587                 - Items were wrapped at the right end.
22588         * CheckedListBox.cs:
22589                 - Fixed Add method
22590         * ListBox.cs:
22591                 - Items should be fully shown.
22592                 - When resizing and vertical scrollbar disappeared, the item 
22593                 of index 0 should be on the top of the list.
22594                 - GetItemRectangle should consider the size of ver. scrollbar
22595         * StatusBar.cs:
22596                 - SizingGrip area should not be allocated when it is not 
22597                 displayed.
22598                 - Now it reflects MinWidth of the containing panel and 
22599                 fixed a crash that happens when its width becomes so small.
22600
22601 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
22602
22603         * CheckedListBox.cs: Fixes bug 76028
22604         * ListBox.cs: Fixes bug 76028
22605
22606 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
22607
22608         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
22609         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
22610
22611 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
22612
22613         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
22614
22615 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
22616
22617         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
22618
22619 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
22620
22621         * IRootGridEntry.cs: Added
22622         * PropertyGridCommands.cs: Added
22623         * PropertiesTab.cs: Added missing methods and property
22624         * PropertyGridView.cs: Made class internal
22625         * PropertyGridTextBox.cs: Made class internal
22626
22627 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
22628
22629         * MimeIcon.cs: Try to check some other environment variables
22630           if "DESKTOP_SESSION" returns "default"
22631
22632 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
22633
22634         * ThemeNice.cs: Corrected background colors (e.g. menus)
22635         * ColorDialog.cs: Use correct background colors for controls
22636
22637 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
22638
22639         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
22640
22641 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
22642
22643         * RichTextBox.cs: Added initial implementation
22644         * lang.cs: Removed. Was accidentally checked in long time ago
22645         * TODO: Removed. Contents were obsolete
22646
22647 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
22648                                                                                 
22649         * PropertiesTab.cs : Added
22650
22651 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
22652                                                                                 
22653         * PropertyGrid.cs : Update
22654         * PropertyGridView.cs : Update
22655         * System.Windows.Forms.resx : Added images and strings
22656
22657 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
22658
22659         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
22660  
22661 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
22662
22663         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
22664           a busy loop right after the Ungrab the X11 display is otherwise 
22665           blocked
22666
22667 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
22668
22669         * ThemeWin32Classic.cs: Optimise the use of clipping
22670
22671 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
22672
22673         * DataGrid.cs: fixes recursion bug
22674
22675 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
22676
22677         * ThemeNice.cs: 
22678           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
22679           - Cleanup
22680
22681 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
22682
22683         * ThemeNice.cs: Draw nice ProgressBars
22684
22685 2005-09-01  Miguel de Icaza  <miguel@novell.com>
22686
22687         * VScrollBar.cs: Another buglet found by Aaron's tool. 
22688
22689         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
22690         bug finder.
22691
22692 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
22693
22694         * ThemeNice.cs:
22695           - Added nicer menu drawing
22696           - Updated DrawTab
22697           - some refactoring
22698
22699 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
22700
22701         * CreateParams.cs (ToString): Made output match MS
22702         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
22703             handle is already created (to avoid forcing window creation)
22704         * XplatUIX11.cs: Set window text to caption after creating window,
22705           in case Text was set before window was created
22706         * Form.cs: Use this.Text instead of a static string as caption
22707
22708 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22709
22710         * NotifyIcon.cs: Don't set the window to visible; this screws
22711           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
22712           OnPaint without a bitmap)
22713         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
22714           happen very often anyway; we could add the check to the WM_PAINT 
22715           event generation code
22716
22717 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
22718
22719         * NotifyIcon.cs: Fill the icon area with a background color, to 
22720           avoid 'residue' when transparent icons are drawn
22721         * XplatUIX11.cs:
22722           - Handle whole_window == client_window when destroying windows
22723           - SystrayAdd(): Set client_window to whole_window value to
22724             get mouse and other events passed to NotifyIcon
22725
22726 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22727
22728         * Form.cs: Set proper default for Opacity property
22729         * NotifyIcon.cs:
22730           - ShowSystray(): Don't bother creating telling the OS
22731             about the systray item if no icon is provided
22732           - Now handles WM_NCPAINT message to deal with whole/client window
22733             split
22734           - Create window as visible to not get caught by Expose optimization
22735         * Hwnd.cs: Removed debug message
22736         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
22737           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
22738             PaintEventStart/End to use new client argument
22739         * TextBoxBase.cs:
22740           - Commented out debug messages
22741           - Switched PaintEventStart/End to use new client argument
22742         * XplatUI.cs: Added client window bool to PaintEventStart()/
22743           PaintEventEnd() calls, to support drawing in non-client areas
22744         * XplatUIDriver.cs: 
22745           - Added client window bool to PaintEventStart()/PaintEventEnd() 
22746             calls, to support drawing in non-client areas
22747           - Added conditional compile to allow using MWF BeginInvoke 
22748             on MS runtime
22749         * XplatUIX11.cs:
22750           - Added some conditional debug output
22751           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
22752             whole/client window split
22753           - Implemented handling of client argument to PaintEventStart()/End()
22754         * Control.cs:
22755           - Throw exception if BeginInvoke() is called and the window handle
22756             or one of the window's parent handles is not created
22757           - Added conditional compile to allow using MWF BeginInvoke on
22758             MS runtime
22759           - get_Parent(): Only sets parent if handle is created. This avoids
22760             forcing window handle creation when parent is set.
22761           - Now fires Layout and Parent changed events in proper order
22762           - Switched to use Handle instead of window.Handle for Z-Order setting,
22763             the get_Parent() patch above causes us to possibly get null for 'window'
22764           - Implemented handling of client argument to PaintEventStart()/End()
22765           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
22766             default handling)
22767           - Now sends a Refresh() to all child windows when Refresh() is called
22768
22769 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
22770
22771         * Form.cs: Added (non-functional) Opacity property
22772         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
22773
22774 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
22775         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
22776           use export MONO_THEME=nice to activate it.
22777           Currently supported controls:
22778           - Button
22779           - ComboBox
22780           - ScrollBar
22781           - TabControl (TabAlignment.Top only, other will follow)
22782         * ThemeEngine.cs: Add theme nice
22783         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
22784           if enabled
22785
22786 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
22787
22788         * Splitter.cs: Resize docked control and its neighbor.
22789
22790 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
22791         -- Making Windows with Menus layout correctly --
22792         * Form.cs : The first leg of the fix
22793                 Menu setter - adjust Client Size as needed to make space for the menu
22794                 SetClientSizeCore - doesn't call base version to be able to pass the 
22795                         menu handle to XplatUI.CalculateWindowRect
22796         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
22797         * XplatUIX11.cs: The critical second leg of the fix
22798                 GetWindowPos needs to use a recalculated client_rect
22799                 so that resizing the window doesn't break layout of child controls. 
22800                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
22801                 Lots of \t\n killed
22802
22803 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22804
22805         * Label.cs: Now properly recalculates width and height on Font and Text
22806           changes if AutoSize is set
22807
22808 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
22809         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
22810
22811 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
22812
22813         * ImageList.cs: Makes ToString method compatible with MS
22814
22815 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
22816
22817         * MenuAPI.cs: fixes bug 75716
22818
22819 2005-08-11 Umadevi S <sumadevi@novell.com>
22820         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
22821
22822 2005-08-11 Umadevi S <sumadevi@novell.com>
22823         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
22824
22825 2005-08-10  Umadevi S <sumadevi@novell.com>
22826         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
22827
22828 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
22829
22830         * Menu.cs: fixes bug 75700
22831         * MenuAPI.cs: fixes navigation issues
22832
22833 2005-08-09  Umadevi S <sumadevi@novell.com>
22834         * CheckedListBox.cs - simple fix for GetItemChecked.
22835
22836 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
22837
22838         * ComboBox.cs: Serveral fixes
22839         * ListBox.cs: Serveral fixes
22840
22841 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
22842
22843         * ComboBox.cs: Fixes FindString methods and GetItemHeight
22844         * ListBox.cs: Fixes FindString methods
22845
22846 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
22847
22848         * DataGrid.cs: fixes bugs exposed by new tests
22849
22850 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
22851
22852         * Mime.cs: Compile Mono assembly references only if compiling
22853           with Mono (Allows to build with VS.Net again)
22854
22855 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
22856
22857         * Control.cs (PaintControlBackground): Draw background image
22858         corrrectly.
22859         (CheckForIllegalCrossThreadCalls): Stubbed.
22860         
22861         * Form.cs (OnCreateControl): Center when should be centered.
22862         
22863         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
22864
22865 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
22866
22867         * Binding.cs: Binding to properties should be case unsensitive
22868
22869 2005-07-18 vlindos@nucleusys.com
22870
22871         * DataGrid.cs: fixes setmember order
22872
22873 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
22874
22875         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
22876         * FileDialog.cs: FileDialog is now resizable and uses the new
22877           MimeIconEngine
22878
22879 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
22880
22881         * DataGridTextBoxColumn.cs: default value
22882         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
22883         * GridTableStylesCollection.cs: fixes checking MappingName
22884         * DataGridDrawingLogic.cs: fixes drawing logic issues
22885         * DataSourceHelper.cs: rewritten to make compatible with more data sources
22886         * DataGrid.cs: fixes    
22887
22888 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
22889
22890         * MimeGenerated.cs: Use case sensitive comparer for
22891           NameValueCollections
22892
22893 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
22894
22895         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
22896         * ThemeWin32Classic.cs: bug fixes, code refactoring
22897         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
22898         * DataGrid.cs: bug fixes, code refactoring
22899         * DataGridTextBox.cs: bug fixes, code refactoring
22900         * DataGridColumnStyle.cs:  bug fixes, code refactoring
22901         * Theme.cs:  bug fixes, code refactoring
22902
22903 2005-07-01  Peter Bartok  <pbartok@novell.com> 
22904
22905         * TextControl.cs: Quick fix for the reported crash on ColorDialog
22906           and other text box usage
22907
22908 2005-07-01  Jackson Harper  <jackson@ximian.com>
22909
22910         * TabControl.cs: Make sure the bottom of the tab covers the pages
22911         border.
22912
22913 2005-06-30  Peter Bartok  <pbartok@novell.com> 
22914
22915         * Form.cs (ShowDialog): Assign owner of the dialog
22916         * TextBoxBase.cs: Always refresh caret size when deleting, caret
22917           might have been moved to a tag with different height
22918
22919 2005-06-30  Jackson Harper  <jackson@ximian.com>
22920
22921         * Form.cs: Don't create an infinite loop when setting focus
22922         * MenuItem.cs: Don't dirty the parents if we don't have any
22923
22924 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
22925
22926         * LibSupport.cs: Rename
22927
22928 2005-06-29  Peter Bartok  <pbartok@novell.com>
22929
22930         * TextBoxBase.cs: Re-align caret after deleting a character
22931         * TextControl.cs:
22932           - DeleteChars(): Ensure that tag covers the provided position
22933           - StreamLine(): Drop reference for dropped tag
22934
22935 2005-06-29  Peter Bartok  <pbartok@novell.com> 
22936
22937         * TextControl.cs: 
22938           - Selections now work properly, anchoring at the initial location
22939             and properly extending in either direction (SetSelectionToCaret(),
22940             SetSelectionStart() and SetSelectionEnd())
22941           - No longer redraws the whole control on selection change, now
22942             calculates delta between previous and new selection and only
22943             invalidates/redraws that area
22944           - Fixed FindPos() math off-by-one errors
22945           - Changed DeleteChars() to verify the provided tag covers the
22946             provided position, selections may have a tag that doesn't cover
22947             the position if the selection is at a tag border
22948           - Fixed off-by-one errors in DeleteChars()
22949           - Added missing streamlining check in DeleteChars() to remove
22950             zero-length tags
22951           - Implemented Invalidate() method, now properly calculates exposures
22952             between two given lines/positions
22953           - Implemented SetSelection()
22954           - Obsoleted and removed FixupSelection()
22955           - Improved RecalculateDocument() logic, removing code duplication
22956
22957 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22958
22959         * LibSupport.cs: changes to match different input/output arguments.
22960
22961 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22962
22963         * LibSupport.cs: added libsupport.so init routine.
22964
22965 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
22966         
22967         * ControlBindingsCollection.cs
22968                 - Throws an exception on null datasource when adding
22969                 - Checks for duplicated bindings when adding
22970
22971 2005-06-28  Jackson Harper  <jackson@ximian.com>
22972
22973         * TreeView.cs (OnKeyDown): Support left and right properly
22974         (navigates as well as expanding and collapsing.
22975         - Add support for Multiply, this expands all the selected nodes
22976         children.
22977         - Fix some tabbing.
22978
22979 2005-06-28  Jackson Harper  <jackson@ximian.com>
22980
22981         * TreeView.cs: Implement keyboard navigation, currently supports,
22982         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
22983         support for toggling checkboxes with the space bar.
22984
22985 2005-06-28  Jackson Harper  <jackson@ximian.com>
22986
22987         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
22988         tree.
22989
22990 2005-06-28  Jackson Harper  <jackson@ximian.com>
22991
22992         * TreeView.cs: Add missing event.
22993
22994 2005-06-27  Peter Bartok  <pbartok@novell.com> 
22995
22996         * TextControl.cs:
22997           - Made line ending size configurable (now allows for counting 
22998             lineendings as \n or \r\n)
22999           - Added margin to viewport to keep caret visible on right side
23000           - Fixed translation routines for line/pos to documentpos to consider
23001             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
23002           - Fixed some line-endings to be unix style
23003           - Fixed Document.FormatText to perform it's calculations 1-based
23004           - Added descriptions for a few methods that might otherwise get 
23005             used wrong
23006           - Added NOTE section with some basic conventions to remember at 
23007             the top of the file
23008           - Major fixup for RichTextBox selection drawing:
23009             * Fixed crashes when multiple tags on a single line were selected
23010             * fixed selection box drawing not overlaying text
23011             * fixed bogus offset calculation for tags not starting at index 1
23012             * Switched behaviour from using multiple Substrings of a 
23013               StringBuilder.ToString() to using multiple 
23014               StringBuilder.ToString(start, length) statements, hoping this is
23015               faster (kept original version commented out in the code, in case
23016               original version was faster)
23017         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
23018           alignment != Left
23019         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
23020           call it as well
23021
23022 2005-06-27  Jackson Harper  <jackson@ximian.com>
23023
23024         * TabControl.cs: Move to the left and right with the arrow
23025         keys. These keys don't cycle beyond first and last like
23026         tab. Refresh all the tabs when scrolling them to the left or
23027         right.
23028
23029 2005-06-27  Jackson Harper  <jackson@ximian.com>
23030
23031         * TabControl.cs:
23032           - ToString: Added method
23033           - CreateParams: Remove TODO and comment
23034           - OnKeyDown: Cycle through bounds properly.
23035           - SelectedIndex: Scroll to the right or left if we need to
23036           display the newly selected tab.
23037
23038 2005-06-23  Jackson Harper  <jackson@ximian.com>
23039
23040         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
23041         set.
23042
23043 2005-06-23  Jackson Harper  <jackson@ximian.com>
23044
23045         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
23046         CTRL-SHIFT-TAB, and HOME, END are there any others?
23047
23048 2005-06-23  Jackson Harper  <jackson@ximian.com>
23049
23050         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
23051
23052 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
23053         
23054         * DataGridTextBoxColumn.cs: fixes and enhancements
23055         * ThemeWin32Classic.cs: fixes and enhancements
23056         * DataGridBoolColumn.cs:  fixes and enhancements
23057         * DataGridDrawingLogic.cs:  fixes and enhancements
23058         * CurrencyManager.cs: fixes and enhancements
23059         * DataGrid.cs: fixes and enhancements
23060         * DataGridColumnStyle.cs:  fixes and enhancements
23061
23062 2005-06-22  Jackson Harper  <jackson@ximian.com>
23063
23064         * TabControl.cs: Add some missing methods that just call into the
23065         base. Make the TabPageCollection's IList interface behave in the
23066         same manner as the MS implementation.
23067
23068 2005-06-22  Peter Bartok  <pbartok@novell.com> 
23069
23070         * TextControl.cs: Added sanity check
23071         * TextBoxBase.cs: 
23072           - Fixed wrapping behaviour, don't set wrap on single line controls
23073             (this fixes the breakage of colordialog introduced in an earlier
23074              checkin)
23075           - Added rudimentary support for autoscrolling right-aligned controls
23076             (still needs fixing, also, center alignment scroll is missing)
23077
23078 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
23079         
23080         * ScrollBar.cs: Fixes thumbpos on Maximum values
23081
23082 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
23083         
23084         * PropertyGridView.cs: Pass context information to UITypeEditors 
23085
23086 2005-06-21  Peter Bartok  <pbartok@novell.com> 
23087
23088         * TextBoxBase.cs:
23089           - Now calling PositionCaret with absolute space coordinates
23090           - Enabled vertical scrolling
23091           - Better tracking of scrollbar changes, tied into WidthChange
23092             event
23093           - Improved cursor tracking
23094           - Removed debug output
23095         * TextControl.cs:
23096           - PositionCaret coordinates are now works in absolute space, not 
23097             the canvas
23098           - Improved tracking of document size
23099           - Added events for width and height changes
23100
23101 2005-06-21  Peter Bartok  <pbartok@novell.com>
23102
23103         * Form.cs: Set focus to active control when form is activated
23104         * TextControl.cs: 
23105           - Added word-wrap functionality to RecalculateLine() 
23106           - Added some short function descriptions for VS.Net to aid in
23107             writing dependent controls
23108           - Added Caret property, returning the current coords of the caret
23109           - Added ViewPortWidth and ViewPortHeight properties
23110           - Added Wrap property
23111           - Added CaretMoved event
23112           - Removed some old debug code
23113           - Split() can now create soft splits
23114           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
23115           - Added method to format existing text
23116           - Fixed size/alignment calculations to use viewport
23117           - RecalculateDocument now can handle changing line-numbers while
23118             calculating lines
23119
23120         * TextBox.cs:
23121           - Added some wrap logic, we don't wrap if alignment is not left
23122           - Added casts for scrollbar var, base class switched types to
23123             also support RichTextBoxA
23124           - Implemented handling of scrollbar visibility flags
23125
23126         * TextBoxBase.cs:
23127           - Switched scrollbars type to RichTextBoxScrollBars to support
23128             RichTextBox
23129           - Added tracking of canvas width/height
23130           - Switched scrollbars to be not selectable (to keep focus on text)
23131           - Added central CalculateDocument() method to handle all redraw
23132             requirements
23133           - Added ReadOnly support
23134           - Added WordWrap support
23135           - Fixed handling of Enter key (we now treat it as a DialogKey)
23136           - Fixed caret positioning when h or v scroll is not zero
23137           - Fixed placing/generation of vertical scrollbar
23138           - Added CalculateScrollBars() method to allow updating scrollbar
23139             limits and visibility
23140           - Fixed handling of horizontal scroll
23141           - Added handling of vertical scroll
23142           - Implemented auto-'jump' when caret moves to close to a left or
23143             right border and there is text to be scrolled into view (currently
23144             there's the potential for a stack overflow, until a bug in
23145             scrollbar is fixed)
23146
23147 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
23148         
23149         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
23150
23151 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
23152
23153         * Mime.cs:
23154         - added inodes.
23155         - return application/x-zerosize for files with size zero
23156           (if no extension pattern matches).
23157         - check matches collection for strings too.
23158         - return only the first mime type if the name value
23159           collection has more than one mime type.
23160
23161 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
23162         
23163         * PropertyGrid.cs: Cleaned up some TODOs
23164         * PropertyGridView.cs: Added support for UITypeEditors
23165
23166 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
23167         
23168         * DataGrid.cs: clears cached value
23169
23170 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
23171
23172         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
23173         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
23174         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
23175         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
23176         
23177 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
23178
23179         * ThemeWin32Classic.cs: fixes colour
23180
23181 2005-06-15  Peter Bartok  <pbartok@novell.com>
23182
23183         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
23184         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
23185         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
23186         * Control.cs: Added some MWFCategory and MWFDescription attributes
23187         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
23188
23189 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
23190
23191         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
23192         usage
23193
23194 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
23195
23196         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
23197         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
23198         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
23199         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
23200         * DataGrid.cs: default datagrid settings for Default Styles, fixes
23201         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
23202
23203 2005-06-13  Jackson Harper  <jackson@ximian.com>
23204
23205         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
23206         isn't printed when the user enables dropping. (X11 does accept
23207         drops).
23208         
23209 2005-06-13  Jackson Harper  <jackson@ximian.com>
23210
23211         * TreeView.cs: Remove some TODOS.
23212
23213 2005-06-13  Jackson Harper  <jackson@ximian.com>
23214
23215         * Form.cs: Hook into the mdi framework.
23216         * MdiClient.cs: Use the base control collections add method so
23217         parents get setup correctly. Set the default back colour and dock
23218         style.
23219         * MdiChildContext.cs: New class, this bad actor handles an
23220         instance of an MDI window. Right now there is only basic
23221         support. You can drag, close, and resize windows. Minimize and
23222         Maximize are partially implemented.
23223
23224 2005-06-13  Jackson Harper  <jackson@ximian.com>
23225
23226         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
23227         freaky when both vals are negative. NOTE: There are probably other
23228         places in XplatUIX11 that this needs to be done.
23229
23230 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
23231
23232         * DataGrid.cs: implement missing methods, move KeyboardNavigation
23233         * DataGridColumnStyle.cs: fixes signature
23234
23235 2005-06-12  Jackson Harper  <jackson@ximian.com>
23236
23237         * XplatUIX11.cs: Use sizing cursors similar to the ones on
23238         windows.
23239
23240 2005-06-11  Jackson Harper  <jackson@ximian.com>
23241
23242         * StatusBarPanel.cs: Signature cleanups. Implement
23243         BeginInit/EndInit.
23244
23245 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
23246
23247         * DataGridTextBoxColumn.cs: Honors aligment
23248         * GridColumnStylesCollection.cs: Contains is case unsensitive
23249         * GridTableStylesCollection.cs: several fixes
23250         * DataGridTableStyle.cs: default column creation
23251         * DataGridDrawingLogic.cs: fixes
23252         * CurrencyManager.cs: ListName property
23253         * DataGrid.cs: multiple styles support
23254         * DataGridColumnStyle.cs: fixes
23255         
23256
23257 2005-06-10  Peter Bartok  <pbartok@novell.com>
23258
23259         * Control.cs(Select): Moved SetFocus call to avoid potential
23260           loops if controls change the active control when getting focus
23261         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
23262           the up/down buttons
23263
23264 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
23265
23266         * ImageListConverter.cs: Implemented
23267
23268 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
23269
23270         * MonthCalendar.cs: Wired in NumericUpDown control for year
23271
23272 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
23273
23274         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
23275           DoubleClick events, since they are not meant to be fired.
23276
23277 2005-06-09  Peter Bartok  <pbartok@novell.com>
23278
23279         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
23280           Jonathan's standalone controls into MWF, implemented missing
23281           events, attributes and methods; added xxxAccessible classes
23282         * AccessibleObject.cs: Made fields internal so other classes
23283           can change them if needed
23284
23285 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
23286
23287         * UpDownBase.cs: Complete implementation
23288         * NumericUpDown.cs: Complete implementation
23289         * DomainUpDown.cs: Complete implementation
23290
23291 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
23292
23293         * DataGridTextBoxColumn.cs: drawing fixes
23294         * DataGridCell.cs: fixes ToString method to match MSNet
23295         * DataGridTableStyle.cs: fixes
23296         * DataGridBoolColumn.cs: fixes, drawing
23297         * DataGridDrawingLogic.cs: fixes, new methods
23298         * DataGridTextBox.cs: Keyboard and fixes
23299         * DataGrid.cs:
23300                 - Keyboard navigation
23301                 - Scrolling fixes
23302                 - Row selection (single, multiple, deletion, etc)
23303                 - Lots of fixes
23304         
23305 2005-06-07  Jackson Harper  <jackson@ximian.com>
23306
23307         * ThemeWin32Classic.cs: Clear the background area when drawing
23308         buttons.
23309
23310 2005-06-06  Peter Bartok  <pbartok@novell.com>
23311
23312         * ImageListStreamer.cs: Fixed signature for GetData
23313         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
23314         * ComboBox.cs:
23315           - Added missing ChildAccessibleObject class
23316           - Added missing OnXXXFocus overrides, switched to using those
23317             instead of the event handler
23318         * Control.cs:
23319           - Added Parent property for ControlAccessibleObject
23320           - Fixed signatures
23321           - Fixed attributes
23322           - Added ResetBindings()
23323         * ListBindingConverter.cs: Implemented some methods
23324         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
23325         * ImageList.cs: Implemented basic handle scheme, removed TODOs
23326         * ContainerControl.cs: Fixed signature, now subscribing to the
23327           ControlRemoved event instead of overriding the handler, LAMESPEC
23328         * CurrencyManager.cs: Added missing attribute
23329         * MonthCalendar.cs: Added missing properties
23330
23331 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
23332
23333         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
23334         
23335 2005-06-06  Gaurav Vaish and Ankit Jain
23336
23337         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
23338         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
23339         
23340 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
23341
23342         * Control.cs: fixes CreateParams Width / Height.
23343
23344 2005-06-05  Peter Bartok  <pbartok@novell.com>
23345
23346         * Win32DnD.cs: Removed compilation warnings
23347
23348 2005-06-05  Peter Bartok  <pbartok@novell.com>
23349
23350         * Control.cs (CreateParams): Since we don't know if one of the
23351           properties we use is overridden, lets make sure if we fail accessing
23352           we continue with a backup plan
23353
23354 2005-06-05  Peter Bartok  <pbartok@novell.com>
23355
23356         * Win32DnD.cs:
23357           - Removed debug output
23358           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
23359             struct
23360           - Plugged resource leak
23361         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
23362           MS size
23363
23364 2005-06-05  Peter Bartok  <pbartok@novell.com>
23365
23366         * XplatUIWin32.cs: Removed DnD code
23367         * Win32DnD.cs: Implemented drop source and drop target functionality
23368
23369 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23370
23371         * UpDownBase.cs: remove duplicate addition of event, enable some code
23372         that was commented out.
23373         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
23374         Validate input when a key is pressed. It works fine now for every
23375         combination of Hexadecimal. Only missing some drawing love when sharing
23376         space with other controls.
23377
23378 2005-06-04  Peter Bartok  <pbartok@novell.com>
23379
23380         * Control.cs:
23381           - We need to pass a window for DragDrop, so enable callback events
23382           - Added DnD callback events when being a DragSource
23383         * XplatUI.cs (StartDrag): Added window handle argument
23384         * XplatUIDriver.cs (StartDrag): Added window handle argument
23385         * QueryContinueDragEventArgs: Made fields internally accessible so
23386           drivers can set them
23387         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
23388           can set them
23389
23390 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
23391
23392         * DataGridTextBoxColumn.cs: column text editing
23393         * DataGridTableStyle.cs: Respect columns styles created by the user
23394         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
23395         * DataGridBoolColumn.cs: bool column editing
23396         * DataGrid.cs: fixes to scrolling, properties, etc
23397         * DataGridTextBox.cs: handle keyboard
23398         * DataGridColumnStyle.cs: fixes
23399
23400 2005-06-02  Jackson Harper  <jackson@ximian.com>
23401
23402         * ImageListStreamer.cs: Somewhat broken implementation of
23403         GetObjectData. The RLE needs some work to match MS properly.
23404
23405 2005-06-02  Jackson Harper  <jackson@ximian.com>
23406
23407         * X11Dnd.cs: Attempting to keep at least one file in MWF
23408         monostyled.
23409
23410 2005-06-02  Peter Bartok  <pbartok@novell.com>
23411
23412         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
23413           that way
23414
23415 2005-06-02  Peter Bartok  <pbartok@novell.com>
23416
23417         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
23418         * XplatUI.cs: Added DoDragDrop() method
23419         * XplatUIDriver.cs: Added DoDragDrop() method
23420
23421 2005-06-02  Jackson Harper  <jackson@ximian.com>
23422
23423         * Splitter.cs: Implement BorderStyle.
23424
23425 2005-06-02  Jackson Harper  <jackson@ximian.com>
23426
23427         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
23428         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
23429         X11 using XDND.
23430
23431 2005-06-02  Peter Bartok  <pbartok@novell.com>
23432
23433         * DataObject.cs:
23434           - Added Data setter
23435           - Fixed broken insertion code for SetData, now also
23436             overwrites any existing entry of the same format name
23437         * Hwnd.cs: Added list of pointers that automatically gets
23438           freed when the window is disposed
23439         * XplatUI.cs: Call driver initialization method when loading
23440           a driver
23441         * Control.cs:
23442           - OnDragLeave takes EventArgs, not DragEventArgs
23443           - Added setting of WS_EX_ACCEPTFILES style when dropping is
23444             supported
23445           - Forces style update when drop state changes
23446         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
23447           not perfect since we cannot (yet) call the IDataObject.GetData()
23448           method, we keep getting 0x80004005 error, dunno why)
23449
23450 2005-06-02  Peter Bartok  <pbartok@novell.com>
23451
23452         * DragEventArgs.cs: Make fields internal so we can cache the
23453           object and re-set the fields from XplatUI
23454
23455 2005-06-02  Jackson Harper  <jackson@ximian.com>
23456
23457         * Control.cs: Add some internal methods so the DnD subsystem can
23458         raise DnD events. Also call into the driver when AllowDrop is set.
23459         * XplatUI.cs:
23460         * XplatUIDriver.cs: New method for setting whether or not a window
23461         is allowed to accept drag and drop messages.
23462                 
23463 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
23464         
23465         * ScrollBar.cs: Make sure that values sent in Scroll events
23466         are always between Maximum and Minimum.
23467
23468 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
23469
23470         * Menu.cs: Call MenuChanged when menuitem visibility has been
23471         changed.
23472         * MenuItem.cs: Rebuild menu when item is (not) visible.
23473         * MainMenu.cs: MainMenu has special MenuChanged.
23474         * Theme.cs: Caption and FrameBorderSize are not fixed.
23475         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
23476         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
23477         * XplatUIX11.cs,
23478         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
23479         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
23480
23481 2005-05-30  Jackson Harper  <jackson@ximian.com>
23482
23483         * DataFormat.cs: We can't statically initialize this stuff because
23484         it calls into the xplatui and could create a loop. So we lazy init
23485         it.
23486
23487 2005-05-28  Jackson Harper  <jackson@ximian.com>
23488
23489         * Control.cs: Proper implementation of Product(Name/Version).
23490
23491 2005-05-27  Jackson Harper  <jackson@ximian.com>
23492
23493         * DataObject.cs: Dont crash if no data is found.
23494
23495 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
23496         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
23497                 as per status page, guessing it should be set to true
23498
23499 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
23500
23501         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
23502         * DataGridTableStyle.cs: set proper formatting text, def header text
23503         * ThemeWin32Classic.cs: new themable paramaters
23504         * DataGridBoolColumn.cs: paint check box, get data, fixes
23505         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
23506         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
23507         * DataGridColumnStyle.cs: fixes
23508         * Theme.cs: new themable paramaters
23509                 
23510 2005-05-26  Peter Bartok  <pbartok@novell.com>
23511
23512         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
23513
23514 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
23515         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
23516
23517 2005-05-24  Peter Bartok  <pbartok@novell.com>
23518
23519         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
23520           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
23521           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
23522           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
23523           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
23524           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
23525           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
23526           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
23527           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
23528           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
23529           missing attributes, etc
23530         * DataGridPreferredColumnWidthTypeConverter.cs: Added
23531
23532 2005-05-24  Peter Bartok  <pbartok@novell.com>
23533
23534         * Help.cs: Added, implemented trivial functions, throws up MessageBox
23535           when user tries to get help
23536         * DataObject.cs, DataFormats.cs, LinkArea.cs,
23537           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
23538           to suppress warnings
23539         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
23540           avoid unreachable code warning
23541
23542 2005-05-20  Peter Bartok  <pbartok@novell.com>
23543
23544         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
23545
23546 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
23547
23548         * DataGridTextBoxColumn.cs: Basic painting methods
23549         * DataGridTableStyle.cs: Set table style in the column
23550         * ThemeWin32Classic.cs: Use Theme for colors
23551         * DataGridDrawingLogic.cs: Implement more drawing
23552         * DataGrid.cs: drawing, theming, enhacements, fixes
23553         * DataGridColumnStyle.cs: fixes, drawing
23554         * Theme.cs: theming for Datagrid
23555
23556 2005-05-20  Peter Bartok  <pbartok@novell.com>
23557
23558         * Cursor.cs: Implemented GetObjectData() method
23559
23560 2005-05-20  Peter Bartok  <pbartok@novell.com>
23561
23562         * Cursors.cs: Added setting of cursor name
23563         * Cursor.cs:
23564           - Implemented constructors
23565           - Implemented Draw and DrawStretched
23566           - Implemented Current property
23567           - Implemented == and != operators
23568           - Implemented Dispose()
23569           - Implemented ToString
23570           - Added missing attributes
23571         * XplatUIX11.cs:
23572           - Added missing reset for OverrideCursor when DoEvents is called
23573           - Fixed creation of cursor, logic was wrong
23574         * XplatUIWin32.cs:
23575           - Added missing reset for OverrideCursor when DoEvents is called
23576           - Fixed creation of cursor, bit arrays were swapped
23577         * Clipboard.cs: Removed obsolete MonoTODO attribute
23578
23579 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
23580
23581         * ComboBox.cs: fixes OnSelectedItemChanged
23582         * ControlBindingsCollection.cs: fixes item range check
23583
23584 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
23585
23586         * UpDownBase.cs:
23587                 - Calc preferred height properly
23588                 - Implement missing properties
23589                 
23590         * NumericUpDown.cs: Implement missing events
23591
23592 2005-05-19  Jackson Harper  <jackson@ximian.com>
23593
23594         * TabControl.cs: New method that resizes the tab pages before
23595         redrawing them. This as needed as the control is double buffered
23596         and sizing will not be recalculated unless ResizeTabPages is
23597         called.
23598         * TabPage.cs: Set base.Text instead of Text in the constructor so
23599         that UpdateOwner does not get called. Use the new Redraw method of
23600         TabControl instead of Refresh so the sizing is recalculated.
23601         * ThemeWin32Classic.cs: Draw the text for button tabs.
23602
23603 2005-05-19  Jackson Harper  <jackson@ximian.com>
23604
23605         * Control.cs: Paint control background images. Fix typo where
23606         PaintControlBackground was not getting called correctly.
23607
23608 2005-05-19  Peter Bartok  <pbartok@novell.com>
23609
23610         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
23611           I can investigate, apparently I broke FileDialog
23612
23613 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
23614
23615         * AxHost.cs: Some simple properties.
23616         * Control.cs: window must be accessible after ctor.
23617         * Form.cs: Added TransparencyKey property.
23618         * TextBoxBase.cs: Implemented Clear. Text property can be null.
23619         * XplatUIWin32.cs: SetBorderStyle implemented.
23620
23621 2005-05-18  Peter Bartok  <pbartok@novell.com>
23622
23623         * DataObject.cs: Entries are not global but particular to the
23624           DataObject, now it behaves that way
23625         * XplatUIWin32.cs: Implemented Clipboard methods
23626         * Clipboard.cs: Implemented
23627         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
23628         * XplatUIOSX.cs: Updated to final clipboard prototypes
23629         * XplatUIX11.cs: Implemented Clipboard methods
23630         * XplatUIDriver.cs: Updated to final clipboard prototypes
23631         * XplatUIStructs.cs:
23632           - Added BITMAPINFOHEADER struct
23633           - Added ClipboardFormats enum
23634         * X11Structs.cs:
23635           - Added ClipboardStruct
23636           - Added Atom enum items for clipboard types
23637           - Fixed atom types for Selection event structures
23638         * DataFormats.cs:
23639           - Added internal properties and methods for drivers to enumerate
23640             all known formats
23641           - Switched initialization method to allow drivers to assign their
23642             own IDs even for the MS predefined clipboard IDs
23643         * XplatUI.cs: Updated to final clipboard interface
23644
23645 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
23646         * PropertyGridView.cs: Fixed compiler warnings.
23647
23648 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
23649         * PropertyGrid.cs: Added some event calls
23650         * PropertyGridView.cs: Change drawing code to use double buffering
23651         * PropertyGridTextBox.cs: Changed Text property name
23652         * GridItem.cs: Added Bounds property.
23653         * GridEntry.cs: Added Bounds property.
23654
23655 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
23656
23657         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
23658         since GetType() may not return the correct type if the object is
23659         a remoting proxy.
23660
23661 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
23662
23663         * TreeNodeCollection.cs: fixes get/set item ranges
23664         
23665 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
23666
23667         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
23668                 
23669 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
23670
23671         * ComboBox.cs: Fix item range comparation
23672         * ListView.cs: Fix item range comparation
23673
23674 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
23675
23676         * FontDialog.cs:
23677           - Clear example panel when OnPaint is called
23678           - Better solution for displaying the example panel text
23679           - Select default indexes in the ListBoxes
23680
23681 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
23682
23683         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
23684
23685 2005-05-11  Peter Bartok  <pbartok@novell.com>
23686
23687         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
23688         * SelectionRangeConverter.cs: Implemented
23689         * PropertyGrid.cs: Fixed attribute value
23690         * Control.cs:
23691           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
23692           - Added Sebastien Pouliot's CAS Stack Propagation fixes
23693         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
23694           that's common to all drivers. First methods to go there are
23695           Sebastien Pouliot's CAS Stack Propagation helper methods
23696         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
23697           Sebastien Pouliot for CAS Stack Propagation
23698
23699 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
23700
23701         * OSXStructs.cs:
23702           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
23703
23704 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
23705
23706         * DataGridTextBoxColumn.cs: fixed some members
23707         * GridColumnStylesCollection.cs: indexed column is case insensitive
23708         * DataGridTableStyle.cs: fixes
23709         * ThemeWin32Classic.cs: add new theme parameter
23710         * Theme.cs: add new theme parameter
23711         * DataGridDrawingLogic.cs: Datagrid's drawing logic
23712         * DataGrid.cs: fixes, new internal properties, etc.
23713         * DataGridColumnStyle.cs: allows to set grid value
23714         *
23715
23716 2005-05-10  Peter Bartok  <pbartok@novell.com>
23717
23718         * AccessibleObject.cs:
23719           - Removed MonoTODO attribute on help, method is correct
23720           - Fixed Bounds property
23721         * AxHost.cs: Moved MonoTODO
23722         * ButtonBase.cs: Now setting AccessibleObject properties
23723         * RadioButton.cs: Setting proper AccessibleObject role
23724         * CheckBox.cs: Setting proper AccessibleObject role
23725         * ControlBindingsCollection.cs: Added properties, methods and attributes
23726         * DataFormats.cs: Fixed awkward internal API, and changed to enable
23727           userdefined DataFormats.Format items as well
23728         * ListControl.cs: Removed data_member from the public eye
23729         * OpenFileDialog.cs:
23730           - Made class sealed
23731           - Added missing attributes
23732         * SaveFileDialog.cs: Added missing attributes
23733         * ImageListStreamer.cs: Fixed code that caused warnings
23734         * LinkLabel.cs: Removed unreachable code
23735         * TreeView.cs: Fixed code that caused warnings
23736         * PropertyGridView.cs: Fixed code that caused warnings
23737         * GridColumnStylesCollection.cs: Added missing attributes
23738         * GridTableStylesCollection: Added missing attribute
23739         * PropertyManager: Added .ctor
23740         * SecurityIDType: Added
23741         * DataObject.cs: Implemented class
23742         * LinkArea.cs: Added missing attribute
23743
23744 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
23745
23746         * RadioButton.cs: call base method to allow to fire OnClick event
23747         * UpDownBase.cs: OnMouseUp call base method
23748         * CheckedListBox.cs: call base method before returning
23749         * TrackBar.cs: call base method before returning
23750         
23751
23752 2005-05-10  Peter Bartok  <pbartok@novell.com>
23753
23754         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
23755           for messages
23756
23757 2005-05-10  Peter Bartok  <pbartok@novell.com>
23758
23759         * DataFormats.cs: Implemented
23760         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
23761           XplatUIX11.cs: Added Clipboard APIs
23762         * XplatUIWin32.cs: Implemented Clipboard APIs
23763         * FolderBrowserDialog.cs: Added missing event, attributes
23764
23765 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
23766
23767         * CheckBox.cs: call base method to allow to fire OnClick event
23768
23769 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
23770
23771         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
23772
23773 2005-05-06  Peter Bartok  <pbartok@novell.com>
23774
23775         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
23776         * Screen.cs: Implemented
23777         * HelpNavigator.cs: Added
23778         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
23779           property
23780         * HelpProvider.cs: Implemented all we can do until we have a CHM
23781           help library (which means that "What's This" does work now)
23782
23783 2005-05-06  Jackson Harper  <jackson@ximian.com>
23784
23785         * XplatUIX11.cs: Fix waking up the main loop.
23786                 
23787 2005-05-05  Peter Bartok  <pbartok@novell.com>
23788
23789         * XplatUI.cs: Updated revision
23790         * Form.cs: Removed enless loop
23791         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
23792         * Label.cs (OnPaint): Added call to base.OnPaint()
23793         * ToolTip.cs: Made ToolTipWindow reusable for other controls
23794         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
23795         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
23796         * AxHost.cs: Added
23797         * ButtonBase.cs: Moved base.OnPaint() call to end of method
23798         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
23799           to ToolTip.ToolTipWindow for drawing and size methods; this allows
23800           reuse of ToolTipWindow by other controls
23801         * SizeGrip.cs: Moved base.OnPaint() call to end of method
23802         * XplatUIX11.cs: Now clipping drawing area (experimental)
23803         * PictureBox.cs: Moved base.OnPaint() call to end of method
23804         * Theme.cs: Fixed ToolTip abstracts to match new format
23805         * ErrorProvider.cs: Implemented
23806
23807 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
23808
23809         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
23810         * LinkLabel.cs:
23811                 - Adds cursors
23812                 - Handles focus
23813                 - Implements LinkBehavior
23814                 - Fixes many issues
23815
23816 2005-05-03  Jackson Harper  <jackson@ximian.com>
23817
23818         * ListView.cs: Calculate the scrollbar positioning on resize and
23819         paint, so they get put in the correct place.
23820
23821 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
23822
23823         * ColorDialogs.cs: The small color panels are now handled by
23824           SmallColorControl. This fixes drawing of the focus rectangle
23825           and adds a 3D border.
23826
23827 2005-05-03  Peter Bartok  <pbartok@novell.com>
23828
23829         * Control.cs: Modified version of Jonathan Chamber's fix for
23830           double-buffering
23831
23832 2005-05-03  Jackson Harper  <jackson@ximian.com>
23833
23834         * ListView.cs: Remove redraw variable. Control now handles whether
23835         or not a redraw needs to be done, and will only raise the paint
23836         event if redrawing is needed.
23837
23838 2005-05-03  Jackson Harper  <jackson@ximian.com>
23839
23840         * Splitter.cs: No decorations for the splitter form. Cache the
23841         hatch brush.
23842
23843 2005-05-03  Jackson Harper  <jackson@ximian.com>
23844
23845         * TreeView.cs: Use dashed lines to connect nodes. Use the
23846         ControlPaint method for drawing the focus rect instead of doing
23847         that in treeview.
23848
23849 2005-05-02  Peter Bartok  <pbartok@novell.com>
23850
23851         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
23852
23853 2005-04-29  Jackson Harper  <jackson@ximian.com>
23854
23855         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
23856         entire image buffer. Just clear the clipping rectangle.
23857
23858 2005-04-29  Jackson Harper  <jackson@ximian.com>
23859
23860         * ThemeWin32Classic.cs: Don't draw list view items that are
23861         outside the clipping rectangle.
23862
23863 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
23864
23865         * ListBox.cs: added horizontal item scroll
23866
23867 2005-04-29  Jackson Harper  <jackson@ximian.com>
23868
23869         * ThemeWin32Classic.cs: Remove some old debug code that was
23870         causing flicker with the new double buffering code.
23871
23872 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
23873
23874         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
23875         behave like combobox and comboboxlist (still not sure if this is
23876         correct though).
23877
23878 2005-04-28  Jackson Harper  <jackson@ximian.com>
23879
23880         * ThemeWin32Classic.cs: Don't fill the middle of progress
23881         bars. This fills areas outside of the clip bounds that don't need
23882         to be filled.
23883
23884 2005-04-28  Jackson Harper  <jackson@ximian.com>
23885
23886         * Control.cs: Don't expose functionality to touch the image buffers.
23887         * ProgressBar.cs:
23888         * ListView.cs: We do not need to (and no longer can) manipulate
23889         the image buffers directly. All of this is handled by Control.
23890
23891 2005-04-28  Peter Bartok  <pbartok@novell.com>
23892
23893         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
23894           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
23895           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
23896
23897 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
23898
23899         * Combobox:
23900                 - Adjust control's height for non-simple comboboxes (bug fix)
23901                 - Remove dead code
23902         * MenuAPI.cs: remove unused var
23903         * ScrollBar.cs: remove unsed var
23904                  
23905         * ListBox.cs: unselect items when clearing
23906
23907 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
23908
23909         * ListControl.cs: honors OnPositionChanged and default Selected Item
23910         * ListBox.cs: unselect items when clearing
23911
23912 2005-04-27  Jackson Harper  <jackson@ximian.com>
23913
23914         * X11Keyboard.cs: Initialize a default keyboard and give a warning
23915         if a "correct" keyboard is not found. This will make us not crash,
23916         but might give some users bad keyboard layouts...seems to be the
23917         same thing rewind does.
23918
23919 2005-04-27  Jackson Harper  <jackson@ximian.com>
23920
23921         * BindingManagerBase.cs: Attach the current/position changed
23922         handlers to their respective events.
23923
23924 2005-04-27  Jackson Harper  <jackson@ximian.com>
23925
23926         * Control.cs: Make sure that the first WM_PAINT does a full draw,
23927         not just a blit.
23928         * ThemeWin32Classic.cs: Don't fill the background for picture
23929         boxes. This could overright user drawing.
23930         * ComboBox.cs: Just fill the clipping rect not the entire client
23931         rect when drawing the background. This prevents pieces of the
23932         image buffer from getting overwritten and is theoretically faster.
23933
23934 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
23935
23936         * ComboBox.cs: Databinding support fixes, fire missing events
23937         * ListControl.cs: implement missing methods and properties, fixes
23938         * ThemeWin32Classic.cs: Databiding support on Drawing
23939         * CheckedListBox.cs: Databinding support fixes, fire missing events
23940         * ListBox.cs: Databinding support fixes, fire missing events
23941         
23942 2005-04-25  Peter Bartok  <pbartok@novell.com>
23943
23944         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
23945
23946 2005-04-25  Jackson Harper  <jackson@ximian.com>
23947
23948         * TreeView.cs: Use the horizontal scrollbars height not width when
23949         determining how much of the client area is available.
23950
23951 2005-04-25  Jackson Harper  <jackson@ximian.com>
23952
23953         * Control.cs: Double buffering is handled differently now. As per
23954         the spec, the extra buffer is created in the WM_PAINT message and
23955         passed down to the control's drawing code.
23956         * GroupBox.cs:
23957         * Label.cs:
23958         * CheckBox.cs:
23959         * ProgressBar.cs:
23960         * RadioButton.cs:
23961         * ColorDialog.cs:
23962         * ComboBox.cs:
23963         * PropertyGridView.cs:
23964         * UpDownBase.cs:
23965         * MessageBox.cs:
23966         * MenuAPI.cs:
23967         * ListView.cs:
23968         * ButtonBase.cs:
23969         * SizeGrip.cs:
23970         * ScrollBar.cs:
23971         * ListBox.cs:
23972         * TrackBar.cs:
23973         * ToolBar.cs:
23974         * PictureBox.cs:
23975         * DateTimePicker.cs:
23976         * StatusBar.cs:
23977         * TreeView.cs: Update to new double buffering system.
23978         * MonthCalendar.cs: Uncomment block, as Capture is now
23979         working. Update to new double buffering
23980         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
23981         * PaintEventArgs.cs: New internal method allows us to set the
23982         graphics object. This is used for double buffering.
23983         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
23984         rectangle. The internal paint_area var has been removed from
23985         StatusBar. The clipping rect should be used instead.
23986         * Theme.cs: Give the PictureBox drawing method a clipping rect.
23987         * TabPage.cs: The RefreshTabs method was removed, so just call the
23988         tab controls Refresh method now.
23989         * TabControl.cs: Update to new double buffering. Make sure the
23990         handle is created before sizing the tab pages, otherwise we will
23991         get stuck in a loop.
23992
23993 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
23994
23995         * LinkLabel.cs: Fix typo, bug #74719; patch
23996           from Borja Sanchez Zamorano
23997
23998 2005-04-22  Jackson Harper  <jackson@ximian.com>
23999
24000         * TreeNode.cs: Implement Handle stuff.
24001         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
24002
24003 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
24004
24005         * DataGridTextBoxColumn.cs: call base constructors, fixes
24006         * GridColumnStylesCollection.cs: missing events, methods, and functionality
24007         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
24008         * DataGridTableStyle.cs: implements create default column styles
24009         * DataGridBoolColumn.cs: which types can handle
24010         * DataGrid.cs: missing methods, fixes, new functionality
24011         * DataGridColumnStyle.cs: fixes
24012
24013 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
24014         * FolderBrowserDialog.cs:
24015         - Use a thread to fill the TreeView
24016         - Adjusted some sizes
24017
24018 2005-04-19  Peter Bartok  <pbartok@novell.com>
24019
24020         * LinkLabel.cs: (Re-)create the pieces when setting the Text
24021           property. Fixes #74360.
24022
24023 2005-04-19  Jackson Harper  <jackson@ximian.com>
24024
24025         * XEventQueue.cs: Lock when getting the lockqueue size.
24026         * PictureBox.cs: Call base OnPaint
24027         
24028 2005-04-19  Peter Bartok  <pbartok@novell.com>
24029
24030         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
24031           messages were no longer being processed (this broke BeginInvoke)
24032
24033           
24034 2005-04-18  Jackson Harper  <jackson@ximian.com>
24035
24036         * TreeView.cs: buglet that caused node images to get drawn
24037         regardless of whether or not they were in the clipping rectangle.
24038
24039 2005-04-18  Jackson Harper  <jackson@ximian.com>
24040
24041         * CurrencyManager.cs: There are four rules for GetItemProperties:
24042         - If the type is an array use the element type of the array
24043         - If the type is a typed list, use the type
24044         - If the list contains an Item property that is not an object, use
24045         that property
24046         - use the first element of the list if there are any elements in
24047         the list.
24048         
24049 2005-04-17  Jackson Harper  <jackson@ximian.oom>
24050
24051         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
24052         click. This handles offsets for scrolling properly and reduces
24053         memory. Also fixed GetNode to not offset now that TopNode works
24054         properly.
24055         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
24056         
24057 2005-04-17  Jackson Harper  <jackson@ximian.com>
24058
24059         * CursorConverter.cs: Initial implementation.
24060
24061 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
24062
24063         * ListControl.cs: work towards complex data binding support on ListControl
24064         * CurrencyManager.cs: work towards complex data binding support on ListControl
24065         * ListBox.cs: work towards complex data binding support on ListControl
24066
24067
24068 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
24069
24070         * GridTableStylesCollection.cs: fixes name and constructor
24071         * DataGridTableStyle.cs: fixes
24072         * DataGridBoolColumn.cs: fixes names and constructors
24073         * DataGrid.cs: define methods and properties. Some init implementations
24074         * DataGridCell.cs: define methods and properties. Some init implementations
24075         * GridTablesFactory.cs: Define methods and properties
24076
24077 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
24078
24079         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
24080         graphics port changes.  We still want the coordinates in global screen
24081         coordinates.
24082
24083 2005-04-14  Jackson Harper  <jackson@ximian.com>
24084
24085         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
24086         check plus minus or checkbox clicks unless those features are enabled.
24087
24088 2005-04-14  Jackson Harper  <jackson@ximian.com>
24089
24090         * TreeView.cs: Add methods for setting the top and bottom visible
24091         nodes. TreeNode::EnsureVisible uses these methods.
24092         * TreeNode.cs: Implement EnsureVisible
24093
24094 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
24095
24096         * Form.cs: Pospone menu assignation if the window has not been created yet
24097         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
24098         size and position
24099
24100 2005-04-12  Jackson Harper  <jackson@ximian.com>
24101
24102         * TreeView.cs: Set the TopNode properly when scrolling
24103         occurs. This has the added benifit of reducing the amount of
24104         walking that needs to be done when drawing. Also removed an old
24105         misleading TODO.
24106         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
24107         
24108 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
24109
24110         * Timer.cs: fixes interval setting when the timer is already enabled
24111         
24112 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
24113
24114         * FolderBrowserDialog.cs: First approach
24115
24116 2005-04-09  Peter Bartok  <pbartok@novell.com>
24117
24118         * FolderBrowserDialog: Added
24119
24120 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
24121
24122         * LinkLabel.cs: move drawing code into the theme
24123         * ThemeWin32Classic.cs: drawing code and painting background bugfix
24124         * Theme.cs: define DrawLinkLabel method
24125
24126 2005-04-05  Jackson Harper  <jackson@ximian.com>
24127
24128         * BindingContext.cs: Use weak references so these bad actors don't
24129         stay alive longer then they need to.
24130
24131 2005-04-05  Jackson Harper  <jackson@ximian.com>
24132
24133         * ListControl.cs: Basic implementation of complex databinding.
24134         * ComboBox.cs:
24135         * ListBox.cs: Add calls to ListControl databinding methods.
24136
24137 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
24138
24139         * FileDialog.cs:
24140           - Don't change PopupButtonState to Normal when the
24141             PopupButton gets pressed several times.
24142           - Renamed ButtonPanel to PopupButtonPanel
24143
24144 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
24145
24146         * ColorDialog.cs: Use cached objects instead of creating them
24147         * LinkLabel.cs: Use cached objects instead of creating them
24148         * Splitter.cs: Use cached objects instead of creating them
24149         * FontDialog.cs: Use cached objects instead of creating them
24150         * PropertyGridView.cs: Use cached objects instead of creating them
24151         * MessageBox.cs: Use cached objects instead of creating them
24152         * FileDialog.cs: Use cached objects instead of creating them
24153         * ThemeWin32Classic.cs: Use cached objects instead of creating them
24154         * TreeView.cs: Use cached objects instead of creating them
24155         
24156 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
24157
24158         * Control.cs: use Equals to compare the font since no == op
24159         * ScrollBar.cs: use Equals to compare the font since no == op
24160
24161 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
24162
24163         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
24164
24165 2005-04-01  Jackson Harper  <jackson@ximian.com>
24166
24167         * Binding.cs: Implement IsBinding.
24168         * BindingManagerBase.cs:
24169         * PropertyManager.cs:
24170         * CurrencyManager.cs: Add IsSuspended property.
24171
24172 2005-04-01  Jackson Harper  <jackson@ximian.com>
24173
24174         * Binding.cs: Had some IsAssignableFrom calls backwards.
24175
24176 2005-04-01  Jackson Harper  <jackson@ximian.com>
24177
24178         * Binding.cs: Handle null data members when pulling data.
24179         * PropertyManager.cs: Handle the data member being a property that
24180         does not exist.
24181
24182 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
24183
24184         * DataGridTextBoxColumn.cs: fixes signature
24185         * DataGrid.cs: calls right constructor
24186
24187 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
24188
24189         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
24190         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
24191         * GridTableStylesCollection.cs: implements GridTableStylesCollection
24192         * DataGridTableStyle.cs: implements DataGridTableStyle
24193         * DataGridBoolColumn.cs: implements DataGridBoolColumn
24194         * DataGridTextBox.cs: implements DataGridTextBox
24195         * DataGridColumnStyle.cs: implements DataGridColumnStyle
24196
24197 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
24198
24199         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
24200
24201 2005-03-29  Peter Bartok  <pbartok@novell.com>
24202
24203         * Application.cs:
24204           - Properly implemented CompanyName property
24205           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
24206             returns a path that includes CompanyName, ProductName and
24207             Version (fixes bug #70330)
24208
24209 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
24210
24211         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
24212           fixes bug #72588.
24213
24214 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
24215
24216         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
24217         
24218           - Added ReadOnly CheckBox
24219           - Further refactoring: moved some code from Open-/SaveFileDialog
24220             to FileDialog
24221
24222 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
24223
24224         * OpenFileDialog.cs: Fixed CheckFileExists
24225         * FileDialog.cs:
24226           Moved FileView and DirComboBox outside FileDialog class.
24227           They can now be used outside FileDialog
24228
24229 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
24230
24231         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
24232         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
24233
24234 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
24235
24236         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
24237           - Added missing CreatePrompt property in SaveDialog
24238           - Overall SaveDialog handling should be better now
24239           - Added non standard ShowHiddenFiles property
24240           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
24241           - Added InitialDirectory and RestoreDirectory support
24242
24243 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
24244
24245         * FileDialog.cs: Made dirComboBox usable
24246
24247 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
24248
24249         * FileDialog.cs: Added Filter support (case sensitiv)
24250
24251 2005-03-24  Jackson Harper  <jackson@ximian.com>
24252
24253         * TabControl.cs: Need a couple more pixels for the lines.
24254
24255 2005-03-23  Jackson Harper  <jackson@ximian.com>
24256
24257         * TabControl.cs: Give the tab page focus when it is selected.
24258
24259 2005-03-23  Jackson Harper  <jackson@ximian.com>
24260
24261         * TabControl.cs: Account for the drawing of tabs borders when
24262         invalidating. If the slider was clicked dont do click detection on
24263         the tabs.
24264
24265 2005-03-23  Jackson Harper  <jackson@ximian.com>
24266
24267         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
24268
24269 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
24270
24271         * CategoryGridEntry.cs: Added
24272         * GridItem.cs: Added helper properties
24273         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
24274         * GridEntry.cs: Updated code for collection
24275         * PropertyGrid.cs: Cleaned up some formatting
24276         * PropertyGridView.cs: Added drop down functionality for enums.
24277         * GridItemCollection.cs: Added enumerator logic
24278         * PropertyGridEntry.cs: Added
24279
24280 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
24281
24282         * FileDialog.cs:
24283           - Removed unnecessary commented code
24284           - Fixed handling for entering the filename manually in the combobox
24285
24286 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
24287
24288         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
24289
24290 2005-03-18  Peter Bartok  <pbartok@novell.com>
24291
24292         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
24293           them being touching the border
24294
24295 2005-03-18  Peter Bartok  <pbartok@novell.com>
24296
24297         * TextControl.cs: Quick hack to center text better
24298
24299 2005-03-18  Peter Bartok  <pbartok@novell.com>
24300
24301         * ControlPaint.cs:
24302           - Don't throw NotImplemented exceptions, just print a notice once
24303             instead (requested by Miguel). This makes running existing SWF
24304             apps a bit easier
24305         * Control.cs:
24306           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
24307           - Added context menu trigger on right click
24308         * Panel.cs: Trigger invalidate on resize
24309         * StatusBar.cs:
24310           - Removed old double-buffer drawing
24311           - Added ResizeRedraw style to force proper update of statusbar
24312         * ListView.cs:
24313           - Removed debug output
24314         * ThemeWin32Classic.cs:
24315           - Fixed drawing of status bar, now draws Text property if there
24316             are no defined panels
24317
24318 2005-03-18  Jackson Harper  <jackson@ximian.com>
24319
24320         * ImageList.cs: When the image stream is set pull all the images
24321         from it.
24322         * ImageListStreamer.cs: Implement reading image list streams.
24323
24324 2005-03-18  Peter Bartok  <pbartok@novell.com>
24325
24326         * ThemeWin32Classic.cs (DrawPictureBox):
24327           - Fixed calculations for centered drawing
24328           - Fixed drawing for normal mode, not scaling the image on normal
24329
24330 2005-03-18  Peter Bartok  <pbartok@novell.com>
24331
24332         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
24333           textbox
24334         * FileDialog.cs:
24335           - Made Open/Save button the accept button for FileDialog
24336           - Tied the cancel button to the IButtonControl cancel button
24337           - Save/Open now properly builds the pathname
24338           - Now handles user-entered text
24339           - Preventing crash on right-click if no item is selected
24340           - Fixed Text property, now uses contents of textbox
24341           - Fixed SelectedText property, now just returns the text part that
24342             is selected in the text box
24343
24344 2005-03-18  Jackson Harper  <jackson@ximian.com>
24345
24346         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
24347         rect, make sure to de-adjust the interior rect after drawing the
24348         tab text.
24349
24350 2005-03-18  Peter Bartok  <pbartok@novell.com>
24351
24352         * MenuAPI.cs: Remove menu *before* executing selected action to
24353           prevent the menu from 'hanging around'
24354           
24355 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
24356
24357         * XplatUIOSX.cs: Implemented WorkingArea property
24358
24359 2005-03-17  Peter Bartok  <pbartok@novell.com>
24360
24361         * XplatUIX11.cs: Fixed menu coord calculations
24362         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
24363           for calculating offsets
24364
24365 2005-03-17  Peter Bartok  <pbartok@novell.com>
24366
24367         * Hwnd.cs: Do not consider menu presence for default client
24368           rectangle location/size
24369         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24370           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
24371           translation functions
24372         * FileDialog.cs: Fixed (what I presume is a) typo
24373
24374 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
24375
24376         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
24377           X access (avoids X-Async errors)
24378
24379 2005-03-16  Jackson Harper  <jackson@ximian.com>
24380
24381         * TabControl.cs: Raise the SelectedIndexChanged event.
24382
24383 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
24384
24385         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
24386           - Removed vertical ToolBar and replaced it with a custom panel
24387             (desktop and home button already work)
24388           - Added Help button (some controls get resized or relocated then)
24389           - Draw correct text depending on Open or Save.
24390           - Fixed some typos...
24391
24392 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
24393
24394         * ScrollBar.cs:
24395           - Only change Maximum and Minimum when need it (bug fix)
24396
24397 2005-03-15  Peter Bartok  <pbartok@novell.com>
24398
24399         * Form.cs: Use Handle for icon, to trigger creation if
24400           the window does not yet exist
24401         * Control.cs:
24402           - CanSelect: Slight performance improvement
24403           - Focus(): Preventing possible recursion
24404           - Invalidate(): Removed ControlStyle based clear flag setting
24405           - WM_PAINT: fixed logic for calling OnPaintBackground
24406           - WM_ERASEBKGND: Fixed logic, added call to new driver method
24407             EraseWindowBackground if the control doesn't paint background
24408         * XplatUIWin32.cs:
24409           - Moved EraseWindowBackground() method to internal methods
24410           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
24411             is sent via SendMessage on BeginPaint call on Win32
24412         * XplatUIX11.cs:
24413           - Added EraseWindowBackground() method
24414           - No longer sends WM_ERASEBKGND on .Expose, but on call to
24415             PaintEventStart, which more closely matches Win32 behaviour
24416           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
24417           - Fixed SetFocus() to properly deal with client and whole windows
24418         * Hwnd.cs: Added ErasePending property
24419         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
24420         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
24421
24422 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
24423
24424         * XplatUIOSX.cs:
24425           - Fix hard loop when timers exist.
24426           - Fix bugs with middle and right click for 3 button mice.
24427
24428 2005-03-11  Peter Bartok  <pbartok@novell.com>
24429
24430         * XplatUIX11.cs:
24431           - get_WorkingArea: Need to call X directly, GetWindowPos only
24432             returns cached data now
24433           - Added sanity check to GetWindowPos hwnd usage
24434
24435 2005-03-11  Jackson Harper  <jackson@ximian.com>
24436
24437         * BindingManagerBase.cs: This method isn't used anymore as
24438         PullData now updates the data in the control.
24439
24440 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
24441
24442         * Form.cs: fixes menu drawing on X11
24443         * MenuAPI.cs:  fixes menu drawing on X11
24444
24445 2005-03-11  Peter Bartok  <pbartok@novell.com>
24446
24447         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
24448           from Jonathan Gilbert; should fix bug #73606
24449         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
24450           in Screen coordinates. Thanks, Jordi.
24451         * Form.cs: Added missing attribute
24452
24453 2005-03-11  Peter Bartok  <pbartok@novell.com>
24454
24455         * Form.cs:
24456           - Rudimentary Mdi support
24457           - Removed outdated FormParent code
24458           - Implemented lots of missing properties and methods, still missing
24459             transparency support
24460           - Added missing attributes
24461           - Implemented support for MaximumBounds
24462           - Added firing of various events
24463         * XplatUI.cs: Added SetIcon() method
24464         * XplatUIDriver.cs: Added SetIcon() abstract
24465         * XplatUIOSX.cs: Stubbed out SetIcon() method
24466         * XplatUIX11.cs:
24467           - Implemented SetIcon() support
24468           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
24469           - Switched to unix line endings
24470         * XplatUIWin32.cs:
24471           - Made POINT internal so for can access it as part of MINMAX
24472           - Implemented SetIcon() support
24473           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
24474             native Mdi support again, might have to go managed)
24475         * Control.cs: Now fires the StyleChanged event
24476         * MdiClient.cs: Added; still mostly empty
24477
24478 2005-03-10  Peter Bartok  <pbartok@novell.com>
24479
24480         * SaveFileDialog.cs: Added emtpy file
24481
24482 2005-03-08  Peter Bartok  <pbartok@novell.com>
24483
24484         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
24485           in turn triggers OnCreateContro) when creating a handle for the
24486           first time.
24487         * TextControl.cs: Fixed endless loop in certain cases when
24488           replacing the current selection
24489
24490 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
24491
24492         * ScrollBar.cs:
24493           - Honors NewValue changes in Scroll events allowing apps to change it
24494           - Adds First and Last Scroll events
24495           - Fixes Thumb events
24496
24497 2005-03-07  Peter Bartok  <pbartok@novell.com>
24498
24499         * Hwnd.cs: Added DefaultClientRectangle property
24500         * XplatUI.cs: Now using the X11 driver Where() method, which provides
24501           more detailed debug information
24502         * XplatUIX11.cs:
24503           - Fixed size-change feedback loop, where we would pull an old size
24504             off the queue and mistakenly change our window's size to an
24505             earlier value
24506           - Now compressing ConfigureNotify events, to reduce looping and
24507             redraw issues
24508         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
24509           is called
24510
24511 2005-03-07  Jackson Harper  <jackson@ximian.com>
24512
24513         * Binding.cs: Push data pushes from data -> property. Check if the
24514         property is readonly when attempting to set it.
24515
24516 2005-03-07  Jackson Harper  <jackson@ximian.com>
24517
24518         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
24519         instead of IsSubclassOf. Pulling data now sets the value on the
24520         control.
24521         * PropertyManager.cs:
24522         * CurrencyManager.cs: Just need to pull data when updating now,
24523         because PullData will set the value on the control.
24524
24525 2005-03-04  Jackson Harper  <jackson@ximian.com>
24526
24527         * Binding.cs: Implement data type parsing and converting on pulled
24528         data. TODO: Are there more ways the data can be converted?
24529
24530 2005-03-04  Jackson Harper  <jackson@ximian.com>
24531
24532         * Binding.cs: Support <Property>IsNull checks. Also bind to the
24533         controls Validating method so we can repull the data when the
24534         control loses focus.
24535
24536 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
24537
24538         * ColumnHeader.cs:
24539           - Fixes null string format
24540           
24541         * ListView.cs:
24542           - Adds enum type checks
24543           - Fixes redrawing and recalc need after changing some properties
24544           - Fixes on focus_item set after the event
24545           - Fixes adding columns after the control has been created
24546           
24547         * ThemeWin32Classic.cs:
24548           - Fixes CheckBox focus rectangle
24549           - Fixes ColumnHeader drawing
24550
24551
24552 2005-03-03  Jackson Harper  <jackson@ximian.com>
24553
24554         * Binding.cs: Bind to <Property>Changed events so we can detect
24555         when properties are changed and update the data.
24556
24557 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
24558
24559         * ImageList.cs:
24560           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
24561           - Fixes ImageList constructor with ImageList container
24562           - Fixes image scaling (wrong parameters at DrawImage)
24563
24564 2005-02-02  Jackson Harper  <jackson@ximian.com>
24565
24566         * Binding.cs: Make property searches case-insensitive. Eliminate
24567         some duplicated code.
24568
24569 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
24570
24571         * ComboBox.cs:
24572                 - Handle focus event
24573                 - Fix scrollbar events
24574                 - Discard highlighted item if remove it
24575                 - Fixes SelectedItem with strings
24576
24577 2005-03-01  Peter Bartok  <pbartok@novell.com>
24578
24579         * Control.cs:
24580           - Fixed Visible property, now follows (once again) parent chain
24581             to return false if any control in the chain is visible=false
24582           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
24583           - Fixed several places where is_visible instead of Visible was used
24584           - Implemented FIXME related to focus selection when setting focused
24585             control to be invisible
24586
24587         * XplatUIWin32.cs: Now using proper method to find out if window is
24588           visible. Thanks to Jordi for pointing it out
24589
24590 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
24591
24592         * ComboBox.cs: show/hide scrollbar instead of creating it
24593
24594 2005-02-27  Jackson Harper  <jackson@ximian.com>
24595
24596         * CurrencyManager.cs: Add PositionChanged stuff.
24597
24598 2005-02-27  Peter Bartok  <pbartok@novell.com>
24599
24600         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
24601         * XplatUIOSX.cs: Added GetMenuOrigin() stub
24602         * XplatUIWin32.cs: Implemented GetMenuOrigin()
24603         * XplatUIX11.cs:
24604           - Implemented GetMenuDC()
24605           - Implemented GetMenuOrigin()
24606           - Implemented ReleaseMenuDC()
24607           - Implemented generation of WM_NCPAINT message
24608           - Implemented generation and handling of WM_NCCALCSIZE message
24609         * Form.cs: Added debug helper message for Jordi's menu work
24610         * Hwnd.cs:
24611           - Modified ClientRect property; added setter, fixed getter to handle
24612             setting of ClientRect
24613           - Added MenuOrigin property
24614
24615 2005-02-26  Peter Bartok  <pbartok@novell.com>
24616
24617         * XplatUIX11.cs:
24618           - Destroys the caret if a window that's being destroyed contains it
24619           - Ignores expose events coming from the X11 queue for windows that
24620             already are destroyed
24621           - Now uses the proper variable for handling DestroyNotify, before we
24622             marked the wrong window as destroyed
24623           - Improved/added some debug output
24624
24625 2005-02-26  Peter Bartok  <pbartok@novell.com>
24626
24627         * X11Keyboard.cs: Fixes to work on 64bit systems
24628
24629 2005-02-26  Peter Bartok  <pbartok@novell.com>
24630
24631         * Control.cs:
24632           - Now calling OnHandleDestroyed from DestroyHandle()
24633             instead of Dispose()
24634           - Removed bogus call to controls.Remove() from DestroyHandle()
24635
24636 2005-02-26  Peter Bartok  <pbartok@novell.com>
24637
24638         * Control.cs: Properly destroy child windows when our handle is
24639           destroyed
24640
24641 2005-02-25  Peter Bartok  <pbartok@novell.com>
24642
24643         * XplatUI.cs:
24644           - Added 'DriverDebug' define to allow tracing XplatUI API calls
24645           - Alphabetized Static Methods and Subclasses
24646
24647         * XplatUIX11.cs:
24648           - Added XException class to allow custom handling of X11 exceptions
24649           - Created custom X11 error handler, tied into XException class
24650           - Added support for MONO_XEXCEPTIONS env var to allow the user
24651             to either throw an exception on X errors or continue running
24652             after displaying the error
24653           - Added handling of DestroyNotify message
24654           - Added handler for CreateNotify message (still disabled)
24655           - Improved (tried to at least) Where method to provide file and lineno
24656         * X11Structs.cs:
24657           - Added XErrorHandler delegate
24658           - Added XRequest enumeration (to suppor translation of errors)
24659
24660 2005-02-25  Jackson Harper  <jackson@ximian.com>
24661
24662         * PropertyManager.cs: Implement editing features
24663         * CurrencyManager.cs:
24664         * Binding.cs: First attempt at UpdateIsBinding
24665         * BindingManagerBase.cs: Call UpdateIsBinding before
24666         pushing/pulling data.
24667
24668 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
24669
24670         * MenuAPI.cs: Respect disabled items
24671         * ThemeWin32Classic.cs
24672                 - Caches ImageAttributes creation for DrawImageDisabled
24673                 - Fixes vertical menu line drawing
24674                 - Draws disabled arrows in disable menu items
24675
24676 2005-02-24  Peter Bartok  <pbartok@novell.com>
24677
24678         * Hwnd.cs:
24679           - Added UserData property to allow associating arbitrary objects
24680             with the handle
24681           - Fixed leak; now removing Hwnd references from static windows array
24682         * XplatUIWin32.cs:
24683           - Fixed Graphics leak in PaintEventEnd
24684           - Removed usage of HandleData, switched over to Hwnd class
24685         * HandleData.cs: Removed, obsoleted by Hwnd.cs
24686
24687 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
24688
24689         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
24690         * ScrollBar.cs: Fixes bug
24691         * TrackBar.cs: removes death code, clipping, mimize refreshes,
24692          keyboard navigation enhancements
24693
24694 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
24695
24696         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
24697         * GroupBox.cs: Add control styles
24698         * Label.cs: Add control styles
24699         * UpDownBase.cs: Add control styles
24700         * ListBox.cs: Add control styles
24701         * XplatUIWin32.cs: Fixes wrong parameter order
24702
24703
24704 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
24705
24706         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
24707
24708 2005-02-23  Jackson Harper  <jackson@ximian.com>
24709
24710         * PropertyManager.cs: Implement property binding. This doesn't
24711         seem to work yet though as (I think) there are some bugs in
24712         System.ComponentModel.PropertyDescriptor.
24713         * BindingContext.cs: Use new PropertyManager constructor.
24714
24715 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
24716
24717         * ProgressBar.cs: use clip region in ProgressBar
24718         * ThemeWin32Classic.cs: use clip region in ProgressBar
24719
24720 2004-02-22  Jackson Harper  <jackson@ximian.com>
24721
24722         * BindingsCollection.cs: Remove some debug code.
24723
24724 2005-02-22  Jackson Harper  <jackson@ximian.com>
24725
24726         * BindingContext.cs:
24727         * ControlBindingsCollection.cs:
24728         * CurrencyManager.cs:
24729         * Binding.cs:
24730         * BindingManagerBase.cs: Initial implementation
24731         * BindingsCollection.cs: Add an internal contains method that the
24732         BindingManagerBase uses to ensure bindings aren't added twice to
24733         the collection.
24734         * PropertyManager.cs: Stubbed out.
24735         * Control.cs:
24736         * ContainerControl.cs: Hook up databinding
24737         
24738 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
24739
24740         * XplatUIOSX.cs:
24741           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
24742           Fixed Invalidate/Update chain.
24743           Fixed tons of other minor bugs (this is almost a complete rewrite).
24744
24745 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
24746
24747         * ComboBox.cs: do subcontrol creation when the control is created
24748
24749 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
24750
24751         * Label.cs: fixes image drawing (image and imagelist)
24752         * ThemeWin32Classic.cs: cache brushes
24753         
24754 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
24755
24756         * Form.cs: Move menu drawing code to Theme class
24757         * ComboBox.cs: Move ComboBox drawing code to Theme class
24758         * MenuItem.cs: Move menu drawing code to Theme class
24759         * MenuAPI.cs: Move menu drawing code to Theme class
24760         * ThemeWin32Classic.cs: New methods
24761         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
24762         * ListBox.cs: Move Listbox drawing code to Theme class
24763         * Theme.cs: New methods
24764
24765 2005-02-20  Peter Bartok  <pbartok@novell.com>
24766
24767         * Control.cs:
24768           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
24769             only process mnemonics on those)
24770           - Fixed event sequence for key handling; first calling
24771             ProcessKeyEventArgs now
24772         * TextBoxBase.cs:
24773           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
24774             for processing non-character keys
24775           - Fixed WM_CHAR to generate proper event sequence before processing
24776         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
24777           generation
24778
24779 2005-02-19  Peter Bartok  <pbartok@novell.com>
24780
24781         * UserControl.cs: Added TextChanged event; added attributes
24782         * SizeGrip.cs: Implemented resizing and optional display of grip
24783         * Form.cs: Fixed attribute
24784         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
24785           Changed meaning of ScrollWindow bool argument; instead of the
24786           clear attribute (which will be true usually anyway), it gives the
24787           option of moving child controls as well.
24788         * XplatUIX11.cs:
24789           - Changed to match new ScrollWindow argument
24790           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
24791             now handles the implicit parent window a WM puts around us
24792         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
24793           to work)
24794         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
24795         * TreeView.cs: Adjusted to new ScrollWindow arguments
24796
24797 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
24798
24799         * Form.cs: Menu integration with non-client area
24800         * MenuItem.cs: Menu integration with non-client area
24801         * MenuAPI.cs: Menu integration with non-client area
24802
24803 2005-02-18  Peter Bartok  <pbartok@novell.com>
24804
24805         * MethodInvoker.cs: Added
24806         * MdiLayout.cs: Added
24807         * SendKeys.cs: Started implementation
24808         * ErrorIconAlignment.cs: Added
24809
24810 2005-02-18  Peter Bartok  <pbartok@novell.com>
24811
24812         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
24813         * Form.cs: Added handling for Menu-related Non-client messages
24814
24815 2005-02-17  Peter Bartok  <pbartok@novell.com>
24816
24817         * UpDownBase.cs: Fixed typo, compilation errors
24818         * DomainUpDown.cs: Fixed attribute value
24819
24820 2005-02-16  Miguel de Icaza  <miguel@novell.com>
24821
24822         * UpDownBase.cs: Attach entry events.
24823         Propagate events.
24824         Add ForeColor property, Focused, InterceptArrowKeys (interception
24825         does not work yet).
24826
24827 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
24828
24829         * Form.cs:
24830                 - Redraw non client are on Setmenu
24831                 - Calc proper menu starting point
24832
24833 2005-02-17  Peter Bartok  <pbartok@novell.com>
24834
24835         * Application.cs: Fixed message_filter check
24836
24837 2005-02-17  Peter Bartok  <pbartok@novell.com>
24838
24839         * Application.cs: Now calls registered message filters
24840         * DockStyle.cs: Fixed attribute
24841         * Form.cs: Fixed attribute
24842         * Menu.cs: Fixed attribute
24843         * ToolTip.cs: Fixed attribute
24844         * TreeNode.cs: Added missing attributes and arranged in regions
24845         * PropertyGrid.cs: Fixed signatures
24846         * TreeNodeCollection.cs: Added attributes
24847         * Splitter.cs: Added missing attributes; arranged into regions
24848         * TabPage.cs: Added missing attributes; arranged into regions
24849         * TextBoxBase.cs: Added missing attributes
24850         * TextBox.cs: Added missing attributes
24851         * ArrangeDirection.cs: Added missing attributes
24852         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
24853         * ToolBarButton.cs: Fixed attributes
24854         * AnchorStyles.cs: Fixed attribute
24855         * TrackBar.cs: Fixed attributes
24856         * TabControl.cs: Added missing attributes and arranged into regions
24857         * ToolBar.cs: Fixed attribute
24858         * StatusBar.cs: Fixed signature, organized into regions and added
24859           attributes
24860         * StatusBarPanel.cs: Fixed attributes
24861         * ContentsResizedEventArgs.cs: Implemented
24862         * ContentsResizedEventHandler.cs: Implemented
24863         * DateBoldEventArgs.cs: Implemented
24864         * DateBoldEventHandler.cs: Implemented
24865         * UpDownEventArgs.cs: Implemented
24866         * UpDownEventHandler.cs: Implemented
24867         
24868 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
24869
24870         * Form.cs: first Menu NC refactoring
24871         * MenuAPI.cs: first Menu NC refactoring
24872         
24873 2005-02-16  Peter Bartok  <pbartok@novell.com>
24874
24875         * ImeMode.cs: Added missing attributes
24876         * Menu.cs: Fixed attribute
24877         * GroupBox.cs: Fixed attribute
24878         * Label.cs: Fixed attribute
24879         * ColorDialog.cs (RunDialog): Removed TODO attribute
24880         * ComboBox.cs: Fixed attributes
24881         * ListControl.cs: Added missing attributes
24882         * PropertyGrid.cs: Fixed attributes
24883         * Control.cs: Fixed attributes
24884         * ListViewItem.cs: Added TypeConverter attribute
24885         * NotifyIcon.cs: Fixed attributes
24886         * ListView.cs: Fixed attributes
24887         * ButtonBase.cs: Fixed attribute
24888         * ImageList.cs: Added missing attributes
24889         * ContainerControl.cs: Fixed signature
24890         * CheckedListBox.cs: Fixed attribute; added missing attributes
24891         * Panel.cs: Fixed attributes
24892         * PropertyTabChangedEventArgs.cs: Added missing attribute
24893         * PropertyValueChangedEventArgs.cs: Added missing attribute
24894         * Binding.cs: Fixed attribute
24895         * ListViewItemConverter: Implemented ListViewSubItemConverter class
24896         * ListBox.cs: Fixed attribute; added missing attributes;
24897         * ScrollableControl.cs: Added missing attributes
24898         * PictureBox.cs: Added missing attributes; implemented missing property
24899         * DateTimePicker.cs: Added missing attributes
24900         * Theme.cs (ToolWindowCaptionHeight): Fixed type
24901         * MonthCalendar.cs: Fixed attributes
24902         * StatusBarPanel.cs: Added missing attributes
24903         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
24904
24905 2005-02-16  Peter Bartok  <pbartok@novell.com>
24906
24907         * TextBoxBase.cs: The previous method to enforce height yet remember
24908           the requested high was less than ideal, this is an attempt to do
24909           it better.
24910         * Control.cs: Added comment about possible problem
24911         * Copyright: Updated format
24912         * GridItemType.cs: Fixed swapped values
24913
24914 2005-02-15  Jackson Harper  <jackson@ximian.com>
24915
24916         * BaseCollection.cs: Use property so we never access an
24917         uninitialized list. Also initialize the list in the property.
24918
24919 2005-02-15  Peter Bartok  <pbartok@novell.com>
24920
24921         * GroupBox.cs (ProcessMnemonic): Implemented
24922         * Label.cs (ProcessMnemonic): Implemented
24923         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
24924           hotkeys
24925
24926 2005-02-15  Peter Bartok  <pbartok@novell.com>
24927
24928         * RadioButton.cs (ProcessMnemonic): Implemented
24929         * CheckBox.cs (ProcessMnemonic): Implemented
24930         * Control.cs:
24931           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
24932             handling
24933           - Added internal method to allow calling ProcessMnemonic from other
24934             controls
24935         * ContainerControl.cs:
24936           - Started support for handling validation chain handling
24937           - Implemented ProcessMnemonic support
24938           - Added Select() call to Active, to make sure the active control
24939             receives focus
24940         * Form.cs: Setting toplevel flag for Forms (this was lost in the
24941           FormParent rewrite)
24942         * ThemeWin32Classic.cs:
24943           - DrawCheckBox(): Fixed stringformat to show hotkeys
24944           - DrawRadioButton(): Fixed stringformat to show hotkeys
24945         * CommonDialog.cs: Removed WndProc override, not needed
24946
24947 2005-02-14  Peter Bartok  <pbartok@novell.com>
24948
24949         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
24950           missed those in the rewrite
24951
24952 2005-02-14  Miguel de Icaza  <miguel@novell.com>
24953
24954         * NumericUpDown.cs (Increment, ToString): Add.
24955         (DecimalPlaces): implement.
24956         
24957         Add attributes.
24958         
24959         * UpDownBase.cs: Add the designer attributes.
24960
24961 2005-02-13  Peter Bartok  <pbartok@novell.com>
24962
24963         * Panel.cs: Removed border_style, now in Control
24964         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
24965           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
24966
24967 2005-02-13  Peter Bartok  <pbartok@novell.com>
24968
24969         * MouseButtons.cs: Added missing attributes
24970         * XplatUIStructs.cs: Added enumeration for title styles
24971         * LeftRightAlignment.cs: Added missing attributes
24972         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
24973           it compatible with Graphics.FromHwnd()
24974         * SelectedGridItemChangedEventArgs.cs: Fixed property type
24975         * Keys.cs: Added missing attributes
24976         * SelectionRange.cs: Added missing attributes
24977         * SelectionRangeConverter.cs: Added
24978         * XplatUI.cs:
24979           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
24980             ReleaseMenuDC methods
24981           - Renamed ReleaseWindow to UngrabWindow
24982           - Added proper startup notice to allow version identification
24983         * Form.cs:
24984           - Added missing attributes
24985           - Removed FormParent concept
24986         * Label.cs: Removed border_style field, now in Control
24987         * RadioButton.cs: Now properly selects RadioButton when focus is
24988           received
24989         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
24990         * Control.cs:
24991           - Added missing attributes
24992           - Added borderstyle handling
24993           - Removed FormParent concept support
24994           - Fixed calls to XplatUI to match changed APIs
24995           - Fixed bug that would case us to use disposed Graphics objects
24996           - Removed unneeded internal methods
24997           - PerformLayout(): Fixed to handle DockStyle.Fill properly
24998           - SelectNextControl(): Fixed to properly check common parents
24999         * TextBoxBase.cs: Removed border_style field (now in Control)
25000         * MessageBox.cs:
25001           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
25002             fixed calculations for form size
25003           - Added support for localized strings and icons
25004           - Improved form size calculations, added border
25005         * ListView.cs: Removed border_style field (now in Control)
25006         * X11Structs.cs: Moved several structs from X11 driver here
25007         * X11Keyboard.cs: Changed debug message
25008         * Application.cs: Removed FormParent concept support
25009         * CommonDialog.cs:
25010           - Resetting end_modal flag
25011           - Removed FormParent concept support
25012         * NativeWindow.cs: Removed FormParent concept support
25013         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
25014           Client area and Non-Client whole window to allow support for WM_NC
25015           messages
25016         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
25017           prevent using it until it supports Hwnd as per Geoff Norton's request
25018         * ToolBar.cs: Fixed drawing, was not doing proper drawing
25019         * PictureBox.cs: Removed border_style field, now in Control
25020         * XplatUIWin32.cs: Added new driver methods
25021
25022 2005-02-12  Peter Bartok  <pbartok@novell.com>
25023
25024         * OpacityConverter.cs: Implemented
25025         * Hwnd.cs: Internal class to support drivers that need to emulate
25026           client area/non-client area window behaviour
25027
25028 2005-02-11  Peter Bartok  <pbartok@novell.com>
25029
25030         * KeysConverter.cs: Implemented
25031
25032 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
25033
25034         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
25035         * LinkLabel: Added missing attributes
25036         * MainMenu.cs: fixes ToString
25037         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
25038         * ListBox.cs: fixes event position
25039         * TrackBar.cs: adds missing attributes and events
25040         
25041 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
25042
25043         * MenuItem.cs: Use SystemInformation and bug fixes
25044         * MenuAPI.cs: Use SystemInformation and bug fixes
25045
25046 2005-02-09  Jackson Harper  <jackson@ximian.com>
25047
25048         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
25049         their keystate otherwise things like VK_MENU get stuck "on".
25050
25051 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
25052
25053         * ListBox.cs: Fixes AddRange bug
25054         
25055 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
25056
25057         * ProgressBar.cs
25058                 - Add missing attributes
25059                 - Add missing method
25060                 
25061         * CheckedListBox.cs: Added missing attributes
25062                 - Add missing attributes
25063                 - Remove extra method
25064         
25065         * ComboBox.cs: Added missing attributes
25066         * VScrollBar.cs: Added missing attributes
25067         * ScrollBar.cs:  Added missing attributes
25068         * ListBox.cs: Fixes signature, add missing consts
25069         * LinkArea.cs:   Added missing attributes
25070         
25071
25072 2005-02-08  Peter Bartok  <pbartok@novell.com>
25073
25074         * Menu.cs: Added missing attributes
25075         * MainMenu.cs: Added missing attributes
25076         * GroupBox.cs: Added missing attributes
25077         * Label.cs: Added missing attributes
25078         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
25079         * ColorDialog.cs:
25080           - Added Instance and Options properties
25081           - Added missing attributes
25082         * Cursor.cs: Made Serializable
25083         * NotifyIcon: Added missing attributes
25084         * MenuItem.cs: Added missing attributes
25085         * TextBoxBase.cs: Implemented AppendText() and Select() methods
25086         * Panel.cs: Added Missing attributes
25087         * MonthCalendar.cs: Fixed CreateParams
25088
25089 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
25090         
25091         * LinkLabel.cs:
25092                 - Fixes signature
25093                 - Fixes issues with links
25094                 - Adds the class attributes
25095
25096 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
25097         
25098         * ComboBox.cs:
25099                 - Fixes button when no items available in dropdown
25100                 - Fixes repainting problems
25101                 - Adds the class attributes
25102                 
25103 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
25104
25105         * XplatUIOSX.cs: Detect the menu bar and title bar height from
25106         the current theme.  Cache these on startup.
25107
25108 2005-02-07  Jackson Harper  <jackson@ximian.com>
25109
25110         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
25111         the scrollbar buttons when they are depressed.
25112
25113 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
25114
25115         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
25116         Get the display size from the main displayid.  We currently dont
25117         support multiple display configurations.
25118
25119 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
25120
25121         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
25122
25123 2005-02-07  Miguel de Icaza  <miguel@novell.com>
25124
25125         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
25126
25127 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25128
25129         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
25130
25131 2005-02-04  Jackson Harper  <jackson@ximian.com>
25132
25133         * ThemeWin32Classic.cs: Respect the clipping rect when
25134         drawing. Only fill the intersection of clips and rects so there
25135         isn't a lot of large fills.
25136         * ScrollBar.cs: Pass the correct clipping rect to the theme
25137         engine. Remove some debug code.
25138
25139 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
25140         
25141         * DateTimePicker.cs:
25142                 - Fixed crash on DateTime.Parse, use Constructor instead
25143
25144 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
25145         
25146         * MenuItem.cs:
25147         * MenuAPI.cs:
25148                 - Owner draw support (MeasureItem and DrawItem)
25149
25150 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
25151         
25152         *  Menu.cs:
25153                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
25154                 - Fixes MenuItems.Add range
25155         * MenuItem.cs:
25156                 - MergeMenu and Clone and CloneMenu functions
25157
25158 2005-02-03  Jackson Harper  <jackson@ximian.com>
25159
25160         * ScrollBar.cs: Make abstract
25161         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
25162         is abstract.
25163
25164 2005-02-03  Jackson Harper  <jackson@ximian.com>
25165
25166         * ScrollBar.cs: First part of my scrollbar fixups. This removes
25167         all the unneeded refreshes and uses invalidates with properly
25168         computed rects.
25169
25170 2005-02-03  Peter Bartok  <pbartok@novell.com>
25171
25172         * ComponentModel.cs: Added
25173         * IDataGridEditingService.cs: Added
25174         * Timer.cs: Added missing attributes
25175         * ToolTip.cs: Added missing attributes
25176
25177 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
25178
25179         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
25180
25181 2005-02-03  Peter Bartok  <pbartok@novell.com>
25182
25183         * ListBox.cs: Added missing attributes
25184
25185 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
25186         
25187         * ListBox.cs:
25188                 - Fixes font height after font change
25189                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
25190                 
25191 2005-02-02  Peter Bartok  <pbartok@novell.com>
25192
25193         * HandleData.cs: Introduced static methods to allow class
25194           to be more self-contained and track it's own HandleData objects
25195         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
25196           HandleData to use new static methods
25197
25198 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
25199
25200         * Combobox.cs:
25201                 - Fixes default size and PreferredHeight
25202                 - Missing events
25203                 - ObjectCollection.Insert implementation
25204                 
25205         * ListControl.cs
25206                 - Fixes signature
25207         * ListBox.cs:
25208                 - Several fixes
25209                 - ObjectCollection.Insert implementation
25210                 - No selection after clean
25211                 - Small fixes
25212
25213 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
25214
25215         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
25216
25217 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
25218
25219         * Combobox.cs:
25220                 - Caches ItemHeight calculation for OwnerDrawVariable
25221                 - Handles dropdown properly
25222                 - Fixes several minor bugs
25223
25224 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
25225
25226         * ListBox.cs:
25227                 - Fixes 71946 and 71950
25228                 - Fixes changing Multicolumn on the fly
25229                 - Fixes keyboard navigation on Multicolumn listboxes
25230
25231 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
25232         
25233         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
25234         crash reporter log.
25235
25236 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
25237
25238         * XplatUIOSX.cs: Allow applications to actually exit.
25239
25240 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
25241
25242         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
25243         their parent at creation time rather than lazily later.  Fixes a major
25244         regression we were experiencing.
25245
25246 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
25247
25248         * ThemeWin32Classic.cs: more date time picker painting fixes
25249         * DateTimePicker.cs: more monthcalendar drop down fixes
25250         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
25251
25252 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
25253
25254         * ScrollBar.cs:
25255                 - When moving the thumb going outside the control should stop the moving
25256                 - Adds the firing of missing events
25257                 - Fixes no button show if Size is not specified
25258                 - End / Home keys for keyboard navigation
25259
25260 2005-01-30  Peter Bartok  <pbartok@novell.com>
25261
25262         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
25263           sanity check to prevent theoretical loop
25264         * XplatUIWin32.cs (SetVisible): Removed debug output
25265         * XplatUIX11.cs (SystrayChange): Added sanity check
25266         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
25267         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
25268           behaviour, valid until the X11 client window rewrite is done
25269         * TextBox.cs (ctor): Setting proper default foreground and background
25270           colors
25271
25272 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
25273
25274         * Theme: Added DrawDateTimePicker to interface
25275         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
25276         * DateTimePicker.cs: Created (still needs keys and painting code)
25277         * DateTimePickerFormat.cs: added
25278         * MonthCalendar.cs: fixed CreateParams for popup window mode
25279           
25280 2005-01-29  Peter Bartok  <pbartok@novell.com>
25281
25282         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
25283           this should also the calculations for ligher/darker
25284         * Theme.cs: Fixed defaults for ScrollBar widths/heights
25285
25286 2005-01-29  Peter Bartok  <pbartok@novell.com>
25287
25288         * ArrangeDirection.cs: Added
25289         * ArrangeStartingPositon.cs: Added
25290         * SystemInformation.cs: Implemented
25291         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25292           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
25293           used by SystemInformation class
25294         * X11Strucs.cs: Added XSizeHints structure
25295         * MenuAPI.cs:
25296           - Fixed CreateParams to make sure the menu window is always visible
25297           - TrackPopupMenu: Added check to make sure we don't draw the
25298             menu offscreen
25299
25300 2005-01-29  Peter Bartok  <pbartok@novell.com>
25301
25302         * HandleData.cs: Added method for altering invalid area
25303         * TextBoxBase.cs: Implemented TextLength
25304
25305 2005-01-28  Peter Bartok  <pbartok@novell.com>
25306
25307         * XplatUIX11.cs: Improvement over last patch, not sending
25308           the WM_PAINT directly anymore, instead we scroll any pending
25309           exposed areas and let the system pick out the WM_PAINT later
25310
25311 2005-01-28  Peter Bartok  <pbartok@novell.com>
25312
25313         * SWF.csproj: Deleted, no longer used. Instead,
25314           Managed.Windows.Forms/SWF.csproj should be used
25315         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
25316           directly, to avoid a potential race condition with the next
25317           scroll
25318
25319 2005-01-28  Peter Bartok  <pbartok@novell.com>
25320
25321         * XplatUI.cs: Made class internal
25322
25323 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
25324
25325         * CheckedListBox.cs:
25326                 - Draw focus
25327                 - Fixed Drawing
25328                 - Missing methods and events
25329
25330 2005-01-27  Peter Bartok  <pbartok@novell.com>
25331
25332         * Application.cs (Run): Don't use form if we don't have one
25333
25334 2005-01-27  Peter Bartok  <pbartok@novell.com>
25335
25336         * TextBoxBase.cs (get_Lines): Fixed index off by one error
25337
25338 2005-01-27  Peter Bartok  <pbartok@novell.com>
25339
25340         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
25341         * GridItem.cs: Added; Patch by Jonathan S. Chambers
25342         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
25343         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
25344         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
25345         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
25346         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
25347         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
25348         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
25349         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
25350         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
25351         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
25352
25353 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
25354
25355         * Combobox.cs:
25356                 - Draw focus on Simple Combobox
25357                 - Fixes drawing issues
25358                 - fixes 71834
25359
25360 2005-01-27  Peter Bartok  <pbartok@novell.com>
25361
25362         * Form.cs:
25363           - Place window in default location, instead of hardcoded 0/0
25364           - Send initial LocationChanged event
25365         * Control.cs:
25366           - UpdateBounds after creation to find out where the WM placed us
25367           - Make sure that if the ParentForm changes location the Form
25368             is notified
25369         * XplatUIX11.cs: XGetGeometry will not return the coords relative
25370             to the root, but to whatever the WM placed around us.
25371             Translate to root coordinates before returning toplevel
25372             coordinates
25373         * XplatUIWin32.cs: Removed debug output
25374         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
25375           flag to GetWindowPos, to allow translation of coordinates on X11
25376
25377 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
25378
25379         * ListBox.cs: connect LostFocus Event
25380
25381 2005-01-27  Peter Bartok  <pbartok@novell.com>
25382
25383         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
25384           XplatUIX11.cs: Extended the Systray API
25385         * Form.cs: Removed debug output
25386         * Application.cs: Fixed focus assignment, always need to call
25387           XplatUI.Activate() since Form.Activate() has rules that may
25388           prevent activation
25389         * NotifyIcon.cs: Should be complete now
25390         * ToolTip.cs: Worked around possible timer bug
25391
25392 2005-01-27  Jackson Harper  <jackson@ximian.com>
25393
25394         * TabControl.cs:
25395         - Only invalidate the effected tabs when the
25396         selected index changes. This reduces drawing and gets rid of some
25397         flicker.
25398         - Only refresh if the tabs need to be shifted, otherwise only
25399         invalidate the slider button.
25400         - On windows the tabs are not filled to right if the slider is
25401         visible.
25402         
25403 2005-01-27  Jackson Harper  <jackson@ximian.com>
25404
25405         * TabControl.cs: Only refresh on mouseup if we are showing the
25406         slider. Also only invalidate the button whose state has changed.
25407
25408 2005-01-26  Peter Bartok  <pbartok@novell.com>
25409
25410         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
25411         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
25412           and SystrayRemove() methods
25413         * XplatUIOSX.cs: Stubbed Systray methods
25414         * XplatUIX11.cs:
25415           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
25416             methods
25417           - Fixed broken XChangeProperty calls (marshalling messed up things)
25418         * X11Structs.cs: Added enums and structs required for Size hinting
25419         * NotifyIcon.cs: Added & implemented
25420
25421 2005-01-26  Jackson Harper  <jackson@ximian.com>
25422
25423         * TabControl.cs: Space vertically layed out tabs properly.
25424
25425 2005-01-26  Peter Bartok  <pbartok@novell.com>
25426
25427         * Form.cs (CreateClientParams): Always set the location to 0,0
25428           since we're a child window.
25429
25430         * Control.cs (SetVisibleCore): Always explicitly setting the location
25431           of a toplevel window, apparently X11 doesn't like to move windows
25432           while they're not mapped.
25433
25434 2005-01-26  Jackson Harper  <jackson@ximian.com>
25435
25436         * TabControl.cs: Implement FillToRight size mode with vertically
25437         rendered tabs.
25438
25439 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
25440
25441         * ControlPaint.cs, ThemeWin32Classic.cs
25442                 - Fixes DrawFocusRectangle
25443
25444 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
25445
25446         * MenuAPI.cs:
25447                 - MenuBar tracking only starts when item is first clicked
25448                 - Fixes menu hidding for multiple subitems
25449                 - Unselect item in MenuBar when item Executed
25450                 - Fixes bug 71495
25451
25452 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
25453
25454         * ListControl.cs:
25455                 - IsInputKey for ListBox
25456         * ListBox.cs:
25457                 - Focus item
25458                 - Shift and Control item selection
25459                 - Implement SelectionMode.MultiExtended
25460                 - Fixes RightToLeft
25461         * ComboBox.cs:
25462                 - IsInputKey implemented
25463                 - Do not generate OnTextChangedEdit on internal txt changes
25464                 
25465 2005-01-23  Peter Bartok  <pbartok@novell.com>
25466
25467         * AccessibleObject.cs: Partially implemented Select()
25468         * MonthCalendar.cs: Added missing attributes and events
25469         * Form.cs: Fixed CreateParams behaviour, now controls derived from
25470           form can properly override CreateParams.
25471         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25472           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
25473           Control performs Invalidate & Update
25474         * NativeWindow (CreateHandle): Added special handling for Form
25475           and Form.FormParent classes to allow overriding of From.CreateParams
25476         * Control.cs:
25477           - ControlNativeWindow: Renamed 'control' variable to more intuitive
25478             name 'owner'
25479           - ControlNativeWindow: Added Owner property
25480           - Removed usage of Refresh() on property changes, changed into
25481             Invalidate(), we need to wait until the queue is processed for
25482             updates, direct calls might cause problems if not all vars for
25483             Paint are initialized
25484           - Added call to UpdateStyles() when creating the window, to set any
25485             styles that CreateWindow might have ignored.
25486           - Added support for Form CreateParent overrides to UpdateStyles()
25487         * MessageBox.cs: Removed no longer needed FormParent override stuff,
25488           CreateParams are now properly overridable
25489         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
25490           CreateParams are now properly overridable
25491
25492 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
25493
25494         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
25495         OnTextBoxChanged.
25496
25497         Capture LostFocus and OnTextBoxChanged.  The later introduces a
25498         recursive invocation that I have not figured out yet.
25499
25500         Reset the timer when not using (it was accumulating).
25501
25502
25503         (OnTextBoxChanged): Set UserEdit to true here to track whether the
25504         user has made changes that require validation.
25505
25506         Reset changing to avoid loops.
25507
25508 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
25509
25510         * NumericUpDown.cs: Display value at startup.
25511
25512         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
25513         ValidateEditText.
25514
25515         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
25516         filled in.  Added some basic parsing of text.
25517
25518         Still missing the OnXXX method overrides, and figuring out the
25519         events that must be emitted.
25520
25521         * UpDownBase.cs: Handle UserEdit on the Text property.
25522         
25523 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
25524
25525         * ComboBox.cs:
25526           - Fixes IntegralHeight
25527           - ToString method
25528
25529 2005-01-21  Jackson Harper  <jackson@ximian.com>
25530
25531         * TabControl.cs: Set the SelectedIndex property when SelectedTab
25532         is set so that the page visibility is updated and the tabs are
25533         sized correctly.
25534
25535 2005-01-21  Jackson Harper  <jackson@ximian.com>
25536
25537         * TabControl.cs: Use cliping rectangle for blitting. Give the
25538         theme the clipping rect so we can do clipping while
25539         drawing. Remove some debug code.
25540
25541 2005-01-21  Jackson Harper  <jackson@ximian.com>
25542
25543         * TabPage.cs: Add a new method so tab pages can force the tab
25544         control to recalculate the tab page sizes.
25545         * TabControl.cs: UpdateOwner needs to make the tab control recalc
25546         sizes.
25547
25548 2005-01-20  Jackson Harper  <jackson@ximian.com>
25549
25550         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
25551
25552 2005-01-20  Jackson Harper  <jackson@ximian.com>
25553
25554         * TreeView.cs: Set the bounds for nodes properly. They were
25555         getting screwed up when checkboxes were not enabled, but images
25556         were.
25557
25558 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
25559
25560         * ListBox.cs:
25561                 - Owner draw support
25562                 - Fixes
25563                 
25564 2005-01-20  Jackson Harper  <jackson@ximian.com>
25565
25566         * XplatUIStructs.cs: More misc keys
25567         * X11Keyboard.cs: Ignore some control keys.
25568
25569 2005-01-20  Jackson Harper  <jackson@ximian.com>
25570
25571         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
25572         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
25573
25574 2005-01-19  Peter Bartok  <pbartok@novell.com>
25575
25576         * Control.cs: Un-selecting the control when it is loosing focus
25577
25578 2005-01-19  Jackson Harper  <jackson@ximian.com>
25579
25580         * TreeView.cs: Hook up to the text controls leave event so we can
25581         end editing when the users clicks outside the text box.
25582         
25583 2005-01-19  Jackson Harper  <jackson@ximian.com>
25584
25585         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
25586         get set in the conversion array.
25587
25588 2005-01-19  Peter Bartok  <pbartok@novell.com>
25589
25590         * Application.cs (ModalRun): Added a call to CreateControl to ensure
25591           focus is properly set
25592         * Button.cs:
25593           - Added missing attributes
25594           - removed styles, those are already set in the base class
25595         * ButtonBase.cs:
25596           - Added missing attributes
25597           - Added clip window styles
25598         * CheckBox.cs: Added missing attributes
25599         * CommonDialog.cs:
25600           - FormParentWindow.CreateParams: Added required clip styles
25601         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
25602           also filters modifier keys
25603         * MessageBox.cs:
25604           - Added assignment of Accept and Cancel button to enable Enter
25605             and Esc keys in MessageBox dialogs
25606           - FormParentWindow.CreateParams: Added required clip styles
25607         * RadioButton.cs: Added missing attributes
25608         * TextControl.cs: No longer draws selection if control does not
25609           have focus
25610         * TextBoxBase.cs:
25611           - Now draws simple rectangle around test area to make it obvious
25612             there's a control. This is a hack until we properly support borders
25613           - A few simple fixes to support selections better, now erases selected
25614             text when typing, and resets selection when using movement keys
25615
25616 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
25617
25618         * UpDownBase.cs: Added some new properties.
25619
25620         * DomainUpDown.cs: Implement a lot to get my test working.
25621
25622 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
25623
25624         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
25625
25626 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
25627
25628         * OSXStructs (WindowAttributes): Fixed csc complaints
25629
25630 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
25631
25632         * XplayUIOSX.cs:
25633           OSXStructs.cs: Initial refactor to move enums and consts into
25634           OSXStructs and use them in the driver for greater readability.
25635
25636 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
25637
25638         * XplatUIOSX.cs: Initial support for Standard Cursors.
25639         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
25640
25641 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
25642
25643         * ComboBox.cs: ability to change style when the ctrl is already
25644         created, missing methods and events, bug fixes, signature fixes
25645
25646 2005-01-19  Peter Bartok  <pbartok@novell.com>
25647
25648         * Cursors.cs (ctor): Added ctor to fix signature
25649
25650 2005-01-18  Peter Bartok  <pbartok@novell.com>
25651
25652         * Button.cs: Implemented DoubleClick event
25653         * ButtonBase.cs:
25654           - Fixed keyboard handling to behave like MS, where the press of
25655             Spacebar is equivalent to a mousedown, and the key release is
25656             equivalent to mouseup. Now a spacebar push will give the same
25657             visual feedback like a mouse click.
25658           - Added missing attributes
25659           - Added ImeModeChanged event
25660           - Added support for generating DoubleClick event for derived classes
25661         * CheckBox.cs:
25662           - Implemented DoubleClick event
25663           - Added missing attributes
25664         * CommonDialog.cs: Added missing attribute
25665         * ContextMenu.cs: Added missing attributes
25666         * RadioButton.cs:
25667           - AutoChecked buttons do not allow to be unselected when clicked
25668             (otherwise we might end up with no selected buttons in a group)
25669           - Added missing attributes
25670           - Implemented DoubleClickEvent
25671         * ThreadExceptionDialog.cs: Enabled TextBox code
25672
25673 2005-01-18  Peter Bartok  <pbartok@novell.com>
25674
25675         * Form.cs: Removed debug output
25676         * Button.cs: Added support for DoubleClick method
25677
25678 2005-01-18  Peter Bartok  <pbartok@novell.com>
25679
25680         * Form.cs:
25681           - Added method to parent window that allows triggering size
25682             calculations when a menu is added/removed
25683           - set_Menu: Cleaned up mess from early days of Form and Control,
25684             now properly triggers a recalc when a menu is added/removed
25685           - Added case to select form itself as focused form if no child
25686             controls exist
25687           - Added PerformLayout call when showing dialog, to ensure properly
25688             placed controls
25689         * Control.cs:
25690           - Select(): Made internal so Form can access it
25691           - Focus(): Only call Xplat layer if required (avoids loop), and sets
25692             status
25693         * Application.cs (Run): Removed hack and calls PerformLayout instead
25694           to trigger calculation when Form becomes visible
25695
25696 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
25697
25698         * ComboBox.cs: fixes for ownerdraw
25699
25700 2005-01-18  Peter Bartok  <pbartok@novell.com>
25701
25702         * TextControl.cs:
25703           - Sentinel is no longer static, each Document gets it's own, this
25704             avoids locking or alternatively overwrite problems when more
25705             than one text control is used simultaneously.
25706           - Switched to use Hilight and HilightText brushes for text selection
25707
25708         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
25709
25710 2005-01-18  Peter Bartok  <pbartok@novell.com>
25711
25712         * Control.cs:
25713           - Hooked up the following events:
25714                 o ControlAdded
25715                 o ControlRemoved
25716                 o HandleDestroyed
25717                 o ImeModeChanged
25718                 o ParentChanged
25719                 o TabStopChanged
25720                 o Invalidated
25721                 o SystemColorsChanged
25722                 o ParentFontChanged
25723                 o Move
25724           - Removed debug output
25725           - Added a call to the current theme's ResetDefaults when a color change
25726             is detected
25727         * Form.cs: Now setting the proper ImeMode
25728         * Theme.cs: Defined a method to force recreation of cached resources
25729           and rereading of system defaults (ResetDefaults())
25730         * ThemeWin32Classic.cs: Added ResetDefaults() stub
25731
25732 2005-01-17  Peter Bartok  <pbartok@novell.com>
25733
25734         * Control.cs: Added missing attributes
25735
25736 2005-01-17  Jackson Harper  <jackson@ximian.com>
25737
25738         * TreeNode.cs: Implement editing. Add missing properties selected
25739         and visible.
25740         * TreeView.cs: Implement node editing. Also some fixes to use
25741         Invalidate (invalid area) instead of Refresh when selecting.
25742
25743 2005-01-17  Peter Bartok  <pbartok@novell.com>
25744
25745         * Control.cs:
25746           - Implemented InvokeGotFocus() method
25747           - Implemented InvokeLostFocus() method
25748           - Implemented InvokePaint() method
25749           - Implemented InvokePaintBackground() method
25750           - Implemented InvokeClick() method
25751           - Implemented FindForm() method
25752           - Implemented RectangleToClient() method
25753           - Implemented ClientToRectangle() method
25754           - Implemented ResetBackColor() method
25755           - Implemented ResetCursor() method
25756           - Implemented ResetFont() method
25757           - Implemented ResteForeColor() method
25758           - Implemented ResetImeMode() method
25759           - Implemented ResetLeftToRight() method
25760           - Implemented ResetText() method
25761           - Implemented Scale() methods
25762           - Implemented ScaleCore() method
25763           - Implemented Update() method
25764           - Removed unused variables
25765           - Stubbed AccessibilityNotifyClients and
25766             ControlAccessibleObject.NotifyClients() methods (dunno what to do
25767             with those yet)
25768           - Now setting proper default for RightToLeft property
25769           - Fixed bug in SetClientSizeCore that would cause windows to get
25770             really big
25771           - Now sending Click/DoubleClick events
25772           - Now selecting controls when left mouse button is clicked on
25773             selectable control
25774         * AccessibleEvents.cs: Added
25775         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
25776         * XplatUIOSX.cs: Stubbed UpdateWindow() method
25777         * XplatUIWin32.cs: Implemented UpdateWindow() method
25778         * XplatUIX11.cs: Implemented UpdateWindow() method
25779         * Form.cs: Removed stray semicolon causing CS0162 warning
25780         * ThemeWin32Classic.cs: Fixed unused variable warnings
25781         * ScrollableControl.cs: Now calls base method for ScaleCore
25782         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
25783           style to avoid interference with internal click handler (which is
25784           different than standard Control click handling)
25785         * RadioButton.cs:
25786           - Now unchecks all sibling radio buttons when control is
25787             selected (Fixes #68756)
25788           - Removed internal tabstop variable, using the one inherited from
25789             Control
25790
25791 2005-01-17  Jackson Harper  <jackson@ximian.com>
25792
25793         * NavigateEventArgs.cs: Fix base type.
25794         * LinkLabel.cs: Sig fix
25795         
25796 2005-01-17  Jackson Harper  <jackson@ximian.com>
25797
25798         * TreeView.cs: Only invalidate the effected nodes bounds when
25799         selecting nodes.
25800
25801 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
25802
25803         * XplatUIWin32.cs: fixes Win32 marshaling
25804         * XplatUIX11.cs: fixes method signature
25805
25806 2005-01-17  Peter Bartok  <pbartok@novell.com>
25807
25808         * XplatUIX11.cs: Clean up resources when we no longer need them
25809
25810 2005-01-17  Peter Bartok  <pbartok@novell.com>
25811
25812         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
25813           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
25814           and DestroyCursor() methods.
25815         * Cursor.cs: Partially implemented, now supports standard cursors;
25816           still contains some debug code
25817         * Cursors.cs: Implemented class
25818         * Control.cs:
25819           - WndProc(): Added handling of WM_SETCURSOR message, setting the
25820             appropriate cursor
25821           - Implemented Cursor property
25822           - Replaced break; with return; more straightforwar and possibly
25823             faster
25824           - Now properly setting the result for WM_HELP
25825         * X11Structs.cs: Added CursorFontShape enum
25826         * XplatUIStructs.cs:
25827           - Added StdCursor enum (to support DefineStdCursor() method)
25828           - Added HitTest enum (to support sending WM_SETCURSOR message)
25829         * XplatUIX11.cs:
25830           - Now sends the WM_SETCURSOR message
25831           - Implemented new cursor methods
25832         * XplatUIOSX.cs: Stubbed new cursor methods
25833         * XplatUIWin32.cs:
25834           - Implemented new cursor methods
25835           - Added GetSystemMetrics function and associated enumeration
25836
25837 2005-01-15  Peter Bartok  <pbartok@novell.com>
25838
25839         * Control.cs:
25840           - WndProc(): Now handles EnableNotifyMessage
25841           - SelectNextControl(): Fixed bug where if no child or sibling
25842             controls exist we looped endlessly
25843
25844 2005-01-14  Jackson Harper  <jackson@ximian.com>
25845
25846         * TreeView.cs: Recalculate the tab pages when a new one is added
25847         so that the proper bounding rects are created.
25848
25849 2005-01-14  Jackson Harper  <jackson@ximian.com>
25850
25851         * TreeView.cs: Draw a gray box instead of a grip in the lower
25852         right hand corner when there are both horizontal and vertical
25853         scroll bars.
25854
25855 2005-01-14  Jackson Harper  <jackson@ximian.com>
25856
25857         * Control.cs: When erasing backgrounds use FromHwnd instead of
25858         FromHdc when there is a NULL wparam. This occurs on the X driver.
25859         * XplatUIX11.cs: Set the wparam to NULL.
25860
25861 2005-01-13  Jackson Harper  <jackson@ximian.com>
25862
25863         * PictureBox.cs: Implement missing methods (except ToString, need
25864         to test that on windows) and events. When visibility is changed we
25865         need to redraw the image because the buffers are killed. When size
25866         is changed refresh if the sizemode needs it.
25867
25868 2005-01-13  Peter Bartok  <pbartok@novell.com>
25869
25870         * Control.cs (SelectNextControl): Was using wrong method to select
25871           a control
25872
25873 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
25874
25875         * ComboBox.cs: fixes dropstyle
25876
25877 2005-01-13  Peter Bartok  <pbartok@novell.com>
25878
25879         * Form.cs:
25880           - Implemented Select() override
25881           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
25882           - Now sets keyboard focus on startup
25883         * Control.cs (SelectNextControl): Now properly handles directed=true
25884         * TextBoxBase.cs:
25885           - WndProc: Now passes tab key on to base if AcceptTabChar=false
25886           - Added (really bad) focus rectangle (mostly for testing)
25887         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
25888           to enforce redraw on focus changes
25889         * ContainerControl.cs:
25890           - Fixed detection of Shift-Tab key presses
25891           - Fixed traversal with arrow keys
25892         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
25893           gonna keep this or if it's complete yet
25894         
25895 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
25896
25897         * ComboBox.cs: missing properties, fixes
25898
25899 2005-01-13  Peter Bartok  <pbartok@novell.com>
25900
25901         * Panel.cs (ctor): Setting Selectable window style to off
25902         * Splitter.cs (ctor): Setting Selectable window style to off
25903         * GroupBox.cs (ctor): Setting Selectable window style to off
25904         * Label.cs (ctor): Setting Selectable window style to off
25905
25906 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
25907
25908         * UpDownBase.cs (InitTimer): If the timer has been already
25909         created, enable it.
25910
25911         Use a TextBox instead of a Label.
25912
25913 2005-01-12  Jackson Harper  <jackson@ximian.com>
25914
25915         * TreeView.cs: Refresh the tree after sorting the nodes. Always
25916         draw the connecting node lines (when ShowLines is true).
25917         * TreeNode.cs: The nodes index can now be updated. This is used
25918         when a node collection is sorted.
25919         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
25920         insert or an existing unsorted node collection can be sorted.
25921         
25922 2005-01-12  Peter Bartok  <pbartok@novell.com>
25923
25924         * ContainerControl.cs: Implemented ProcessDialogKeys()
25925
25926 2005-01-12  Peter Bartok  <pbartok@novell.com>
25927
25928         * Control.cs:
25929           - Implemented SelectNextControl() method
25930           - Several focus related bug fixes
25931           - Fixed Docking calculations to match MS documentation and
25932             behaviour
25933
25934 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
25935
25936         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
25937         bug fixes
25938
25939 2005-01-12  Peter Bartok  <pbartok@novell.com>
25940
25941         * Control.cs:
25942           - Fixed broken Contains() method
25943           - Implemented GetNextControl() method. Finally. This is the pre-
25944             requisite for focus handling.
25945
25946 2005-01-12  Peter Bartok  <pbartok@novell.com>
25947
25948         * OSXStrucs.cs: Added
25949
25950 2005-01-12  Peter Bartok  <pbartok@novell.com>
25951
25952         * XplatUIWin32.cs:
25953           - Removed PeekMessageFlags
25954           - Implemented SetWindowStyle() method
25955         * XplatUIStructs.cs: Added PeekMessageFlags
25956         * X11Structs: Added missing border_width field to XWindowChanges struct
25957         * XplatUIX11.cs:
25958           - PeekMessage: Now throws exception if flags which are not yet
25959             supported are passed
25960           - Implemented SetWindowStyle() method
25961           - Fixed SetZOrder to handle AfterHwnd properly
25962         * XplatUI.cs: Added SetWindowStyle() method
25963         * XplatUIDriver.cs: Added SetWindowStyle() abstract
25964         * Control.cs:
25965           - Implemented UpdateStyles() method
25966           - Implemented UpdateZOrder() method
25967         * XplatUIOSX.cs: Added SetWindowStyle() stub
25968
25969 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
25970
25971         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
25972         button mouse).
25973
25974
25975 2005-01-11  Jackson Harper  <jackson@ximian.com>
25976
25977         * TreeView.cs: Still need to draw lines to siblings even if out of
25978         the current node is out of the clip.
25979
25980 2005-01-11  Jackson Harper  <jackson@ximian.com>
25981
25982         * TreeView.cs: When setting the hbar/vbar/grip position use
25983         SetBounds so that perform layout is only called once. Also suspend
25984         and resume layout so layout is only done once for all controls.
25985         - Removed some debug fluff
25986         * SizeGrip.cs: Call base implmentation in overriding methods.
25987         - When visibility is changed the drawing buffers are killed so we
25988         need to redraw.
25989
25990 2005-01-11  Jackson Harper  <jackson@ximian.com>
25991
25992         * TreeView.cs: Calculate the open node count while drawing. This
25993         saves us an entire tree traversal for every paint operation. Use
25994         a member var for the open node count so less vars are passed around.
25995
25996 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
25997
25998         * MonthCalendar.cs:
25999         - fixed selection to use mousemove, not mouse polling on timer
26000         * ThemeWin32Classic.cs
26001         - removed redundant unused variable "no_more_content"
26002         
26003 2005-01-11  Peter Bartok  <pbartok@novell.com>
26004
26005         * XplatUIX11.cs (DoEvents): Needs to return when no more events
26006           are pending, so it now calls PeekMessage instead of GetMessage;
26007           implemented a incomplete version of PeekMessage
26008         
26009 2005-01-11  Peter Bartok  <pbartok@novell.com>
26010
26011         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
26012           I18n issues
26013         * TextBoxBase.cs: Added sending of TextChanged event
26014
26015 2005-01-10  Jackson Harper  <jackson@ximian.com>
26016
26017         * TreeView.cs: Try not to draw outside the clipping rectangle on
26018         each node element.
26019
26020 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
26021
26022         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
26023
26024 2005-01-10  Jackson Harper  <jackson@ximian.com>
26025
26026         * TreeView.cs:
26027         - Implement fast scrolling. Now only the newly
26028         exposed nodes are drawn and the old image is moved using the
26029         XplatUI::ScrollWindow method.
26030         - Factor in height of nodes when calculating whether or not the
26031         node is in the clipping rect.
26032
26033 2005-01-10  Jackson Harper  <jackson@ximian.com>
26034
26035         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
26036
26037 2005-01-10  Peter Bartok  <pbartok@novell.com>
26038
26039         * Application.cs: Added temporary hack to resolve all our resize
26040           required issues on startup. This will get fixed properly at
26041           some point in the future
26042
26043 2005-01-10  Jackson Harper  <jackson@ximian.com>
26044
26045         * SizeGrip.cs: New internal class that is used as a sizing
26046         grip control...hence the name.
26047
26048 2005-01-10  Peter Bartok  <pbartok@novell.com>
26049
26050         * Control.cs: Implemented proper TabIndex handling, now assigning
26051           a tabindex when a control is added to a container
26052         * GroupBox.cs (ctor): Now sets the Container style bit, required
26053           for Control.GetNextControl()
26054
26055 2005-01-09  Jackson Harper  <jackson@ximian.com>
26056
26057         * TextBoxBase.cs: Clear window when scrolling (fixes build).
26058
26059 2005-01-09  Peter Bartok <pbartok@novell.com>
26060
26061         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
26062           XplatUIX11.cs: Added ability to control ScrollWindow expose and
26063           an overload for ScrollWindow to allow only scrolling a rectangle
26064
26065 2005-01-09  Peter Bartok <pbartok@novell.com>
26066
26067         * Form.cs:
26068           - Implemented SetDesktopBounds method
26069           - Implemented SetDesktopLocation method
26070
26071 2005-01-08  Jackson Harper  <jackson@ximian.com>
26072
26073         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
26074         the node count has changed, this removes to VScroll::Refresh calls
26075         when drawing.
26076
26077 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
26078
26079         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
26080
26081 2005-01-07  Jackson Harper  <jackson@ximian.com>
26082
26083         * TreeNode.cs: Just update the single node when it is
26084         checked. Don't refresh after toggling, the Expand/Collapse already
26085         handles this.
26086         * TreeView.cs: Respect clipping a little more when drawing. Try
26087         not to redraw things that don't need to be redrawn. Just hide the
26088         scrollbars when they are no longer needed instead of removing
26089         them, so they don't have to be created again and again.
26090         
26091 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
26092
26093         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
26094         coordinates to window space to place the caret properly, FIXED.
26095         Implement GetWindowState & SetWindowState
26096
26097 2005-01-06  Peter Bartok <pbartok@novell.com>
26098
26099         * Form.cs:
26100           - Implemented ClientSize property
26101           - Implemented DesktopBounds property
26102           - Implemented DesktopLocation property
26103           - Implemented IsRestrictedWindow property
26104           - Implemented Size property
26105           - Implemented TopLevel property
26106           - Implemented FormWindowState property
26107         * Control.cs:
26108           - Implemented GetTopLevel() method
26109           - Implemented SetTopLevel() method
26110         * X11Structs.cs (Atom):
26111           - Added AnyPropertyType definition
26112           - Added MapState definiton and updated XWindowAttribute struct
26113         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
26114         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
26115         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
26116         * XplatUIWin32.cs:
26117           - Implemented GetWindowState() and SetWindowState() methods
26118           - Fixed Win32GetWindowLong return type
26119         * XplatUIX11.cs:
26120           - Introduced central function for sending NET_WM messages
26121           - Implemented GetWindowState() and SetWindowState() methods
26122         * TextBoxBase.cs (set_Lines):
26123           - Now uses Foreground color for text added via Text property (Duh!)
26124           - Added code to remember programmatically requested size (fixes
26125             behaviour when Multiline is set after Size)
26126           - Added AutoSize logic
26127
26128 2005-01-06  Jackson Harper  <jackson@ximian.com>
26129
26130         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
26131
26132 2005-01-06  Jackson Harper  <jackson@ximian.com>
26133
26134         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
26135         set to less then 0.
26136
26137 2005-01-06  Jackson Harper  <jackson@ximian.com>
26138
26139         * ScrollableControl.cs: Lazy init the scrollbars.
26140         
26141 2005-01-06  Jackson Harper  <jackson@ximian.com>
26142
26143         * Theme.cs: Speed up getting pens and solid brushes, by using
26144         their ARGB as a hash instead of tostring and not calling Contains.
26145
26146 2005-01-06  Peter Bartok <pbartok@novell.com>
26147
26148         * Form.cs:
26149           - Implemented OnActivated and OnDeactivate event trigger
26150           - Implemented Activate() method
26151           - Fixed ShowDialog() to activate the form that was active before
26152             the dialog was shown
26153         * XplatUIX11.cs:
26154           - Added global active_window var that tracks the currently active
26155             X11 window
26156           - Now always grabs Property changes from the root window to always
26157             catch changes on the active window property
26158           - Added code to PropertyNotify handler to send Active/Inactive
26159             messages when state changes. This puts X11 and Win32 en par on
26160             WM_ACTIVATE notifications (except for double notifications when
26161             the user clicks away from our modal window to another one of our
26162             windows)
26163
26164 2005-01-05  Jackson Harper  <jackson@ximian.com>
26165
26166         * ImageList.cs: Implment ctor
26167
26168 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
26169
26170         * XplatUIOSX.cs: Implement Activate/SetTopmost
26171
26172 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
26173
26174         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
26175
26176 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
26177
26178         * XplatUIOSX.cs: Implement GetActive/SetFocus.
26179
26180 2005-01-05  Peter Bartok <pbartok@novell.com>
26181
26182         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
26183           XplatUIOSX.cs: Added GetActive method to return the currently
26184           active window for the application (or null, if none is active)
26185         * Form.cs:
26186           - Implemented ActiveForm
26187           - Commented out owner assignment for modal dialogs (causes problems
26188             on Win32, since the owner will be disabled)
26189           - Reworked some Active/Focus handling (still incomplete)
26190         * CommonDialog.cs: Commented out owner assignment for modal dialogs
26191           (causes problems on Win32, since the owner will be disabled)
26192         * IWin32Window: Added ComVisible attribute
26193
26194 2005-01-05  Peter Bartok <pbartok@novell.com>
26195
26196         * ToolTip.cs (WndProc): Enable setting focus now that we have the
26197           required XplatUI functions.
26198
26199 2005-01-05  Peter Bartok <pbartok@novell.com>
26200
26201         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
26202           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
26203           to implement focus and activation handling; still incomplete and
26204           with debug output
26205
26206 2005-01-04  Peter Bartok <pbartok@novell.com>
26207
26208         * TextBoxBase.cs: Changed access level for Document property to
26209           match switch to internal for TextControl
26210
26211 2005-01-04  Peter Bartok <pbartok@novell.com>
26212
26213         * AccessibleObject: Added ComVisible attribute
26214
26215 2005-01-04  Jackson Harper  <jackson@ximian.com>
26216
26217         * X11Keyboard.cs: Remove unneeded var.
26218
26219 2005-01-04  Jackson Harper  <jackson@ximian.com>
26220
26221         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
26222         but PAINT.
26223         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
26224         ClientMessage. This makes apps exit cleanly (more often).
26225         
26226 2005-01-04  Jackson Harper  <jackson@ximian.com>
26227
26228         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
26229         handling focus, return correct colors and fonts,
26230         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
26231         handle selection, horizontal scrolling, and mouse interaction.
26232
26233 2005-01-04  Peter Bartok <pbartok@novell.com>
26234
26235         * ICommandExecutor.cs: Added
26236         * IDataGridColumnStyleEditingNotificationService.cs: Added
26237         * IFeatureSupport.cs: Added
26238         * IFileReaderService.cs: Added
26239         * IDataObject.cs: Added ComVisible attribute
26240         * AmbientProperties.cs: Added
26241         * BaseCollection.cs: Added missing attributes
26242         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
26243         * BaseCollection.cs: Added missing attributes
26244         * Binding.cs: Added TypeConverter attribute
26245         * BindingContext.cs: Added DefaultEvent attribute
26246         * BindingsCollection.cs: Added DefaultEvent attribute
26247         * Button.cs: Added DefaultValue attribute
26248         * DragEventArgs.cs: Added ComVisible attribute
26249         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
26250         * KeyEventArgs.cs: Added ComVisible attribute
26251         * KeyPressEventArgs.cs: Added ComVisible attribute
26252         * MouseEventArgs.cs: Added ComVisible attribute
26253         * NavigateEventArgs.cs: Added
26254         * NavigateEventHandler.cs: Added
26255         * FeatureSupport.cs: Added
26256         * OSFeature.cs: Added
26257         * Theme.cs: Added abstract Version property to support OSFeature
26258         * ThemeWin32Classic.cs: Added Version property to
26259           support OSFeature.Themes
26260         * ProgressBar.cs: Removed OnPaintBackground override, not required since
26261           the proper styles to avoid background drawing are set, also doesn't
26262           match MS signature
26263         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
26264         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
26265         * ScrollEventArgs.cs: Added ComVisible attribute
26266         * SplitterEventArgs.cs: Added ComVisible attribute
26267         * AccessibleSelection.cs: Added Flags attribute
26268         * Appearance.cs: Added ComVisible attribute
26269         * Border3DSide.cs: Added ComVisible attribute
26270         * Border3DStyle.cs: Added ComVisible attribute
26271         * BorderStyle.cs: Added ComVisible attribute
26272         * DragAction.cs: Added ComVisible attribute
26273         * ErrorBlinkStyle.cs: Added
26274         * ScrollEventType.cs: Added ComVisible attribute
26275         * AnchorStyles.cs: Added Editor attribute
26276         * DockStyle.cs: Added Editor attribute
26277         * HorizontalAlignment.cs: Added ComVisible attribute
26278         * HelpEventArgs.cs: Added ComVisible attribute
26279         * PaintEventArgs.cs: Added IDisposable
26280
26281 2005-01-04  Peter Bartok <pbartok@novell.com>
26282
26283         * TextControl.cs: Switched Line, LineTag and Document classes to
26284           internal
26285
26286 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
26287
26288         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
26289         Simple mode, fixes, IntegralHeight, etc.
26290
26291 2005-01-04  Peter Bartok <pbartok@novell.com>
26292
26293         * TextBoxBase.cs: Using proper font variable now
26294
26295 2005-01-04  Peter Bartok <pbartok@novell.com>
26296
26297         * Form.cs (ShowDialog): Set parent to owner, if provided
26298         * GroupBox.cs: Removed unused vars
26299         * TextControl.cs:
26300           - Added GetHashCode() for Document and LineTag classes
26301           - Removed unused variables
26302           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
26303             to allow translation between continuous char position and line/pos
26304         * CheckBox.cs: Removed vars that are provided by base class
26305         * RadioButton.cs: Removed vars that are provided by base class, added
26306           new keyword where required
26307         * LinkLabel.cs: Added new keyword where required
26308         * Control.cs (WndProc): Removed unused variable
26309         * TextBoxBase.cs:
26310           - Finished SelectionLength property
26311           - Implemented SelectionStart property
26312           - Implemented Text property
26313           - Removed unused vars
26314         * MessageBox.cs: Added new keyword where required
26315         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
26316           WndProc signature
26317         * MenuAPI.cs: Added new keyword where required
26318         * ButtonBase.cs: Removed vars that are provided by base class, added
26319           new keyword where required
26320         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
26321           argument to double, to allow compiling with csc 2.0 (Atsushi ran
26322           into this)
26323         * Application.cs (Run): Now triggers the ThreadExit event
26324         * CommonDialog.cs: Added new keyword where required; now properly sets
26325           parent (owner) for dialog
26326         * XplatUIX11.cs: Commented out unused vars
26327         * StatusBar.cs: Fixed signature for Text property
26328         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
26329
26330 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
26331
26332         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
26333         TrackBar.cs, MonthCalendar.cs: remove unused vars
26334
26335 2005-01-03  Jackson Harper  <jackson@ximian.com>
26336
26337         * ThemeWin32Classic.cs:
26338         * X11Keyboard.cs: Remove unused vars.
26339
26340 2005-01-03  Peter Bartok  <pbartok@novell.com>
26341
26342         * TextBox.cs:
26343           - set_Text: Tied into TextControl
26344           - set_TextAlignment: Tied into TextControl
26345         * TextControl.cs:
26346           - Added alignment properties and implemented alignment handling
26347             and drawing (still has a bug, not generating proper expose events)
26348           - Added new Line() constructor to allow passing the line alignment
26349           - Fixed selection setting, properly handling end<start now
26350           - Added aligment considerations to RecalculateDocument()
26351         * TextBoxBase.cs:
26352           - Now properly enforces control height for single line controls
26353           - Added support for CharacterCasing
26354           - Added IsInputKey override
26355           - Fixed Keys.Enter logic
26356           - Added SetBoundsCore override
26357           - Fixed mouse selection handling
26358
26359 2005-01-03  Jackson Harper  <jackson@ximian.com>
26360
26361         * TreeView.cs:
26362           - Collapse and uncheck all nodes when CheckBoxes is disabled.
26363           - Checkboxes are always aligned to the bottom of the node,
26364           regardless of item height.
26365           - Use the node bounds to draw the text so we can center it when
26366           the item height is greater then the font height.
26367           - Node::Bounds are only the text part of the node.
26368         * TreeNode.cs: New method to combine collapsing and unchecking all
26369           nodes recursively.
26370
26371 2005-01-02  Jackson Harper  <jackson@ximian.com>
26372
26373         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
26374         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
26375         tree when a check is changed. TODO: Only refresh the checked node.
26376
26377 2004-12-30  Jackson Harper  <jackson@ximian.com>
26378
26379         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
26380         * TreeNode.cs: When collapsing make sure to never collapse the
26381         root node.
26382
26383 2004-12-29  Jackson Harper  <jackson@ximian.com>
26384
26385         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
26386         
26387 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
26388
26389         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
26390
26391 2004-12-28  Peter Bartok  <pbartok@novell.com>
26392
26393         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
26394           not yet assigned
26395
26396 2004-12-28  Peter Bartok  <pbartok@novell.com>
26397
26398         * Control.cs (WndProc): Added WM_HELP handler, now generates
26399           HelpRequested event
26400         * Form.cs: Added HelpButton property and required support code
26401         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
26402
26403 2004-12-28  Peter Bartok  <pbartok@novell.com>
26404
26405         * CommonDialog.cs:
26406           - Made DialogForm.owner variable internal
26407           - Added check to ensure owner form is set before setting
26408             owner properties in CreateParams
26409
26410 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
26411
26412         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
26413           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
26414           GetCursorPos.  Fix major visibility issues.  Rework the windowing
26415           system to support borderless/titleless windows (implements menus).
26416           Fix GetWindowPos.  Implement initial background color support for
26417           views.
26418
26419 2004-12-28  Peter Bartok  <pbartok@novell.com>
26420
26421         * Form.cs (get_CreateParams): Make sure we have an owner before using
26422           the owner variable. Implement proper default if no owner exists
26423
26424 2004-12-28  Peter Bartok  <pbartok@novell.com>
26425
26426         * In preparation for making Managed.Windows.Forms the default build target
26427           for System.Windows.Forms, the following stubbed files were added.
26428           Dialogs are currently being implemented by contributors and are only
26429           short-term place holders.
26430         * ColorDialog.cs: Initial check-in (minmal stub)
26431         * DataGrid.cs: Initial check-in (minimal stub)
26432         * DataGridLineStyle.cs: Initial check-in (minimal stub)
26433         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
26434         * DataGridTableStyle.cs: Initial check-in (minimal stub)
26435         * FontDialog.cs: Initial check-in (minimal stub)
26436         * FileDialog.cs: Initial check-in (minimal stub)
26437         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
26438         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
26439         * OpenFileDialog: Initial check-in (minimal stub)
26440         * IComponentEditorPageSite.cs: Initial check-in
26441         * Splitter.cs: Initial check-in (for Jackson)
26442         * SplitterEventArgs.cs: Initial check-in (for Jackson)
26443         * SplitterEventHandler.cs: Initial check-in (for Jackson)
26444         * TextBox.cs: Initial check-in; still needs some wiring to
26445           TextControl backend
26446         * Form.cs: Implemented ControlBox property
26447         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
26448         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
26449         * TextControl.cs: Added selection functionality; added todo header
26450         * TextBoxBase.cs:
26451           - Implemented Lines property
26452           - Implemented TextHeight property
26453           - Implemented SelectedText property
26454           - Implemented SelectionLength property
26455           - Implemented SelectAll method
26456           - Implemented ToString method
26457           - Removed and cleaned up some debug code
26458           - Implemented (still buggy) mouse text selection
26459
26460 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
26461
26462         * ComboBox.cs: Complete DropDownList implementation, fixes.
26463
26464 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
26465
26466         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
26467         * ComboBoxStyle.cs: ComboBoxStyle enum
26468         * ComboBox.cs: Initial work on ComboBox control
26469
26470 2004-12-21  Peter Bartok  <pbartok@novell.com>
26471
26472         * Control.cs (ctor, CreateParams): Moved setting of is_visible
26473           forward so that anything that creates a window gets the default,
26474           also no longer uses Visible property in CreateParams to avoid
26475           walking up the parent chain and possibly get the wrong visible
26476           status. Fixed IsVisible to no longer walk up to the parent.
26477
26478 2004-12-21  Peter Bartok  <pbartok@novell.com>
26479
26480         * Form.cs (ShowDialog): Unset modality for the proper window
26481  
26482 2004-12-20  Peter Bartok  <pbartok@novell.com>
26483
26484         * CommonDialog.cs: Initial check-in
26485
26486 2004-12-20  Peter Bartok  <pbartok@novell.com>
26487
26488         * Control.cs (Visible): Now uses the parent window instead of the
26489           client area window for the property
26490
26491         * Form.cs
26492           - ShowDialog(): Now uses the proper window for modality
26493           - The default visibility state for the form parent is now false. This
26494             will prevent the user from seeing all the changes to the form and
26495             its controls before the application hits Application.Run()
26496           - Removed some stale commented out code
26497
26498         * NativeWindow.cs:
26499           - Added FindWindow() method to have a method to check for existence
26500             of a window handle
26501           - Added ability to override default exception handling (for example
26502             when debugging with VS.Net; to do this the ExternalExceptionHandler
26503             define must be set
26504           - Removed some useless debug output
26505
26506         * XplatUIX11.cs:
26507           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
26508             not working as expected
26509           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
26510             property to allow switching back to the modal window if focus is
26511             given to another one of our windows (Application Modal)
26512           - Now only sets override_redirect if we create a window
26513             without WS_CAPTION
26514           - Moved EventMask selection before mapping of newly created window
26515             so we can catch the map event as well
26516           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
26517           - Added various Atom related DllImports
26518           - Implemented Exit() method
26519           - .ctor() : No longer shows window if WS_VISIBLE is not defined
26520             in the CreateParams
26521
26522         * MessageBox.cs: Now properly deals with the FormParent window by
26523           providing an override the FormParent CreateParams property to
26524           set as POPUP instead of OVERLAPPED window.
26525
26526 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
26527
26528         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
26529         Minor code cleanup.
26530
26531 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
26532         
26533         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
26534
26535 2004-12-18  Peter Bartok  <pbartok@novell.com>
26536
26537         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
26538           implementing SetModal() method
26539
26540 2004-12-18  Peter Bartok  <pbartok@novell.com>
26541
26542         * X11Structs.cs (XGCValues): Fixed type of function element
26543         * XplatUI.cs: Added ScrollWindow() method
26544         * XplatUIDriver.cs: Added ScrollWindow() abstract
26545         * XplatUIWin32.cs: Implemented ScrollWindow() method
26546         * XplatUIX11.cs: Implemented ScrollWindow() method
26547         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
26548
26549 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
26550
26551         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
26552         Some more keyboard support (INCOMPLETE)
26553
26554 2004-12-17  Peter Bartok  <pbartok@novell.com>
26555
26556         * TextControl.cs:
26557         - Added color attribute to line tags.
26558         - Added color argument to all functions dealing with tags
26559         - Added color argument support to various functions
26560         - Fixed miss-calculation of baseline/shift in certain circumstances
26561
26562         * TextBoxBase.cs: Added new color option to test code
26563
26564 2004-12-17  Jackson Harper  <jackson@ximian.com>
26565
26566         * TreeNode.cs:
26567         * MonthCalendar.cs: Signature fixes
26568
26569 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
26570
26571         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
26572         keyboard event moved it.  Create a new graphics context for each paint resolves this
26573
26574 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
26575
26576         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
26577         Make caret exist and go blink blink.  Initial keyboard support.
26578         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
26579         works.
26580
26581 2004-12-17  Jackson Harper  <jackson@ximian.com>
26582
26583         * XplatUIStructs.cs: Updated set of virtual keycodes.
26584         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
26585
26586 2004-12-17  Jackson Harper  <jackson@ximian.com>
26587
26588         * XplatUIX11.cs: Prune old keyboard code.
26589
26590 2004-12-17  Jackson Harper  <jackson@ximian.com>
26591
26592         * XplatUIX11.cs: When generating mouse wparams get the modifier
26593         keys from the ModifierKeys property.
26594
26595 2004-12-17  Jackson Harper  <jackson@ximian.com>
26596
26597         * X11Keyboard.cs: Send up/down input when generating
26598         messages. Remove some unused vars.
26599
26600 2004-12-17  Jackson Harper  <jackson@ximian.com>
26601
26602         * TabControl.cs:
26603         * TreeView.cs: get rid of warnings.
26604
26605 2004-12-17  Jackson Harper  <jackson@ximian.com>
26606
26607         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
26608
26609 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
26610
26611         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
26612           CheckedListBox.cs: Implementation
26613
26614 2004-12-17  Peter Bartok  <pbartok@novell.com>
26615
26616         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
26617
26618 2004-12-16  Peter Bartok  <pbartok@novell.com>
26619
26620         * TextControl.cs:
26621           - InsertCharAtCaret(): Fixed start pos fixup
26622           - CaretLine_get: No longer derives the line from the tag, the tag
26623             could be stale if lines in the document have been added or deleted
26624           - RebalanceAfterDelete(): Fixed bug in balancing code
26625           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
26626           - Line.Streamline(): Now can also elminate leading empty tags
26627           - DumpTree(): Added a few more tests and prevented exception on
26628             uninitialized data
26629           - Added Debug section for Combining lines
26630           - Delete(): Now copies all remaining properties of a line
26631           
26632         * TextBoxBase.cs:
26633           - Left mousebutton now sets the caret (and middle button still acts
26634             as formatting tester, which must go away soon)
26635           - Added Debug section for Deleting/Combining lines
26636           - Fixed calculations for UpdateView after Combining lines
26637
26638 2004-12-16  Peter Bartok  <pbartok@novell.com>
26639
26640         * TextControl.cs: Now properly aligns text on a baseline, using the
26641           new XplatUI.GetFontMetrics() method. Simplified several calculations
26642         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
26643           defined
26644
26645 2004-12-16  Peter Bartok  <pbartok@novell.com>
26646
26647         * XplatUI.cs: Added GetFontMetrics() method
26648         * XplatUIDriver.cs: Added GetFontMetrics() abstract
26649         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
26650           into libgdiplus, our private GetFontMetrics function
26651         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
26652         * XplatUIWin32.cs: Implemented GetFontMetrics() method
26653
26654 2004-12-16  Jackson Harper  <jackson@ximain.com>
26655
26656         * XplatUIStruct.cs: Add enum for dead keys
26657         * X11Keyboard.cs: Map and unmap dead keys.
26658
26659 2004-12-16  Jackson Harper  <jackson@ximian.com>
26660
26661         * X11Keyboard.cs: Detect and use the num lock mask.
26662
26663 2004-12-16  Peter Bartok  <pbartok@novell.com>
26664
26665         * Control.cs (CreateGraphics): Added check to make sure the
26666           handle of the window exists before calling Graphics.FromHwnd()
26667
26668 2004-12-16  Peter Bartok  <pbartok@novell.com>
26669
26670         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
26671           contains a lot of code that's not supposed to be there for the
26672           real thing, but required for developing/testing the textbox
26673           backend.
26674
26675 2004-12-16  Peter Bartok  <pbartok@novell.com>
26676
26677         * TextControl.cs:
26678         - Fixed Streamline method
26679         - Added FindTag method to Line
26680         - Added DumpTree method for debugging
26681         - Added DecrementLines() method for deleting lines
26682         - Fixed UpdateView to update the cursor to end-of-line on single-line
26683           updates
26684         - Added PositionCaret() method
26685         - Fixed MoveCaret(LineDown) to move into the last line, too
26686         - Added InsertChar overload
26687         - Fixed InsertChar tag offset calculations
26688         - Added DeleteChar() method
26689         - Added Combine() method for folding lines
26690         - Fixed Delete() method, no longer allocates wasted Line object and
26691           now copies all properties when swapping nodes
26692         - Delete() method now updates document line counter
26693
26694 2004-12-15  Jackson Harper  <jackson@ximian.com>
26695
26696         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
26697         * X11Keyboard.cs: Expose the currently selected modifier keys
26698         through a property.
26699
26700 2004-12-15  Peter Bartok  <pbartok@novell.com>
26701
26702         * TextControl.cs: Initial check-in. Still incomplete
26703
26704 2004-12-15  Jackson Harper  <jackson@ximian.com>
26705
26706         * TreeNode.cs:
26707         * TreeView.cs: Fix build on csc (second time today ;-))
26708
26709 2004-12-15  Jackson Harper  <jackson@ximian.com>
26710
26711         * TreeView.cs: Store the treenodes plus/minus box bounds when it
26712         is calculated and use this for click testing.
26713         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
26714
26715 2004-12-15  Jackson Harper  <jackson@ximian.com>
26716
26717         * TreeView.cs: Pass the nodes image index to the image list when
26718         drawing that image.
26719
26720 2004-12-15  Jackson Harper  <jackson@ximian.com>
26721
26722         * X11Keyboard.cs: Set messages hwnd.
26723         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
26724         post_message calls.
26725
26726 2004-12-15  Jackson Harper  <jackson@ximian.com>
26727
26728         * X11Keyboard.cs: Fix to compile with csc.
26729         
26730 2004-12-15  Jackson Harper  <jackson@ximian.com>
26731
26732         * X11Structs.cs: Add key mask values
26733         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
26734         * X11Keyboard.cs: New file - Extrapolates and interpolates key
26735         down/up foo into WM_CHAR foo
26736         * KeyboardLayouts.cs: Common keyboard layouts
26737         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
26738         post messages into the main queue.
26739
26740 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
26741
26742         * Button.cs: implement ProcessMnemonic
26743         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
26744           brushes everytime
26745         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
26746         * ButtonBase.cs: Show HotkeyPrefix (not the &)
26747
26748 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
26749         
26750         * MonthCalendar.cs: Implemented click-hold for next/previous month
26751           and date selection
26752           
26753 2004-12-11  Peter Bartok  <pbartok@novell.com>
26754
26755         * X11Structs.cs:
26756           - Added XKeyboardState (moved from XplatUIX11.cs)
26757           - Added XCreateGC related enums and structures
26758           - Added GXFunction for XSetFunction
26759
26760         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
26761
26762         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
26763           CaretVisible() calls
26764
26765         * ToolTip.cs: Added code to prevent stealing focus from app windows
26766
26767         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
26768           DestroyCaret, SetCaretPos and CaretVisible)
26769
26770         * XplatUIX11.cs:
26771           - Added implementation for caret functions
26772           - Moved hover variables into a struct, to make it a bit easier
26773             on the eyes and to debug
26774           - Removed XKeyboardState (moved to XplatUIX11.cs)
26775           - Moved Keyboard properties into the properties region
26776
26777         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
26778           call to get a graphics context for our control
26779
26780         * XplatUIOSX.cs: Added empty overrides for the new caret functions
26781
26782         * TreeView.cs: Fixed bug. No matter what color was set it would always
26783           return SystemColors.Window
26784
26785         * XplatUIWin32.cs: Implemented caret overrides
26786
26787 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
26788
26789         * ListBox.cs: fire events, implement missing methods and properties,
26790         sorting.
26791
26792 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
26793
26794         * MonthCalendar.cs: invalidation bug fixing
26795         * ThemeWin32Classic.cs: paint fixing
26796
26797 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
26798
26799         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
26800         prepare the CGContextRef there now.
26801
26802 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
26803
26804         * MonthCalendar.cs:
26805           - optimisationL only invalidate areas that have changed
26806         * ThemeWin32Classic.cs:
26807           - only paint parts that intersect with clip_area
26808
26809 2004-12-09  Peter Bartok  <pbartok@novell.com>
26810
26811         * Application.cs: Undid changes from r37004 which cause problems
26812         on X11
26813
26814 2004-12-09  Ravindra  <rkumar@novell.com>
26815
26816         * ToolBar.cs: Added support for displaying ContextMenu
26817         attached to a button on ToolBar.
26818         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
26819         property.
26820
26821 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
26822
26823         * Label.cs: autosize works in text change and removes unnecessary
26824         invalidate
26825
26826 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
26827
26828         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
26829         remove warnings
26830
26831 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
26832
26833         * XplatUIOSX.cs: Added mouse move/click/grab support
26834         Remove some debugging WriteLines not needed anymore.
26835         Add window resizing/positioning.
26836         Fix visibility on reparenting.
26837
26838 2004-12-08  Peter Bartok  <pbartok@novell.com>
26839
26840         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
26841
26842 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
26843
26844         * XplatUIOSX.cs: Initial checkin
26845         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
26846
26847 2004-12-03  Ravindra <rkumar@novell.com>
26848
26849         * ListView.cs: Added some keybindings and fixed scrolling.
26850         ScrollBars listen to ValueChanged event instead of Scroll
26851         Event. This would let us take care of all changes being
26852         done in the scrollbars' values programmatically or manually.
26853         * ListView.cs (CanMultiselect): Added a check for shift key.
26854         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
26855         * ListViewItem.cs (Clone): Fixed. We need to make a copy
26856         of ListViewSubItemCollection as well.
26857
26858 2004-12-06  Peter Bartok <pbartok@novell.com>
26859
26860         * Control.cs (Parent): Added check and exception to prevent
26861         circular parenting
26862
26863 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
26864
26865         * ListBox.cs: implemented clipping, selection single and multiple,
26866         bug fixing
26867
26868 2004-12-03  Ravindra <rkumar@novell.com>
26869
26870         * ListView.cs (ListView_KeyDown):
26871         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
26872         when CTRL key is pressed.
26873         * ListViewItem.cs (Selected): Fixed setting the property.
26874
26875 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
26876
26877         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
26878
26879         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
26880         MinimizeBox, ShowInTaskbar, TopMost properties.
26881
26882         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
26883         will be implemented).
26884
26885 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
26886
26887         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
26888
26889         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
26890         tests.
26891         
26892         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
26893         
26894         * TreeView.cs: BackColor is Colors.Window.
26895
26896 2004-12-01  Jackson Harper  <jackson@ximian.com>
26897
26898         * TreeView.cs: When resizing the tree if the user is making it
26899         smaller we don't get expose events, so we need to handle adding
26900         the horizontal scrollbar in the size changed handler as well as
26901         the expose handler.
26902
26903 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
26904
26905         * DrawItemState.cs: fixes wrong enum values
26906
26907 2004-12-01  Jackson Harper  <jackson@ximian.com>
26908
26909         * TreeView.cs: Resize the hbar as well as the vbar on resize.
26910
26911 2004-12-01  Jackson Harper  <jackson@ximian.com>
26912
26913         * NodeLabelEditEventArgs.cs:
26914         * NodeLabelEditEventHandler.cs:
26915         * OpenTreeNodeEnumerator.cs:
26916         * TreeNode.cs:
26917         * TreeNodeCollection.cs:
26918         * TreeView.cs:
26919         * TreeViewAction.cs:
26920         * TreeViewCancelEventArgs.cs:
26921         * TreeViewCancelEventHandler.cs:
26922         * TreeViewEventArgs.cs:
26923         * TreeViewEventHandler.cs: Initial implementation.
26924
26925 2004-12-01  Ravindra <rkumar@novell.com>
26926
26927         * ListView.cs (CalculateListView): Fixed scrolling related
26928         calculations. Also, removed some debug statements from other
26929         places.
26930         * ListViewItem.cs: Changed access to 'selected' instance variable
26931         from private to internal.
26932         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
26933
26934 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
26935
26936         * ThemeWin32Classic.cs: remove cache of brush and pens for
26937         specific controls and use the global system, fixes scrollbutton
26938         bugs (for small sizes, disabled, etc)
26939         
26940         * ScrollBar.cs: does not show the thumb for very small controls
26941         (as MS) and allow smaller buttons that the regular size
26942
26943 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
26944
26945         * UpDownBase.cs: Add abstract methods for the interface.
26946         Add new virtual methods (need to be hooked up to TextEntry when it
26947         exists).
26948         Add override methods for most features.
26949         Computes the size, forces the height of the text entry.
26950
26951         * NumericUpDown.cs: Put here the current testing code.
26952
26953         * Set eol-style property on all files that do not have mixed line
26954         endings, to minimize the future problems.  There are still a few
26955         files with mixed endings, and someone should choose whether they
26956         want to move it or not.
26957
26958 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
26959
26960         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
26961         System.Colors
26962         
26963 2004-11-30  Ravindra <rkumar@novell.com>
26964
26965         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
26966         drawing and replaced use of SystemColors by theme colors.
26967         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
26968         * ListView.cs (ListViewItemCollection.Add): Throw exception when
26969         same ListViewItem is being added more than once.
26970
26971 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
26972
26973         * MonthCalendar.cs:
26974           - ControlStyles love to make the control not flicker
26975           
26976 2004-11-30  Peter Bartok  <pbartok@novell.com>
26977
26978         * CharacterCasing.cs: Added
26979
26980 2004-11-29  Peter Bartok  <pbartok@novell.com>
26981
26982         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
26983           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
26984           I am removing these files as they conflict with already completed
26985           work. While it is fantastic to get contributions to MWF, I
26986           respectfully ask that everyone please coordinate their contributions
26987           through mono-winforms-list or #mono-winforms at this time. We're
26988           explicitly avoiding stubbing and don't want controls that don't have
26989           their basic functionality implemented in svn. Please also see
26990           http://www.mono-project.com/contributing/winforms.html
26991
26992
26993 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
26994
26995         * Application.cs (ModalRun): Don't hang after exit.
26996
26997         * Theme.cs: New TreeViewDefaultSize property.
26998
26999         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
27000         with less hardcoded SystemColors constant.
27001         Implemented TreeViewDefaultSize.
27002
27003         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
27004         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
27005
27006
27007 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
27008
27009         * MonthCalendar.cs:
27010           - Fix NextMonthDate and PrevMonthDate click moving calendar
27011
27012 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
27013
27014         * MonthCalendar.cs:
27015           - Fix usage of ScrollChange Property when scrolling months
27016
27017 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
27018
27019         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
27020          - Fixes menu destroying
27021          - Support adding and removing items on already created menus
27022
27023 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
27024
27025         * MonthCalendar.cs:
27026           - Re-worked all bolded dates handling to match win32
27027         * ThemeWin32Classic.cs:
27028           - Fixed rendering with bolded dates
27029
27030 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
27031
27032         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
27033         - Horizontal scroolbar
27034         - Multicolumn
27035         - Fixes
27036
27037
27038 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
27039
27040         * MonthCalendar.cs:
27041           - Fix Usage of MaxSelectionCount from SelectionRange
27042           - Fixed Shift + Cursor Selection
27043           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
27044           - Fixed normal cursor selection to be compat with win32
27045           - Fixed Shift + Mouse Click selection
27046
27047 2004-11-24  Peter Bartok <pbartok@novell.com>
27048
27049         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
27050         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
27051         * XplatUIX11.cs:
27052           - CreatedKeyBoardMsg now updates keystate with Alt key
27053           - Added workaround for timer crash to CheckTimers, Jackson will
27054             develop a proper fix and check in later
27055           - Implemented DispatchMessage
27056           - Removed calling the native window proc from GetMessage (call
27057             now moved to DispatchMessage)
27058
27059         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
27060           the keydata (Fixes bug #69831)
27061
27062         * XplatUIWin32.cs:
27063           - (DispatchMessage): Switched to return IntPtr
27064           - Added DllImport for SetFocus
27065
27066 2004-11-24  Ravindra <rkumar@novell.com>
27067
27068         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
27069         background drawing.
27070         * ListViewItem.cs: Fixed various properties, calculations
27071         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
27072         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
27073         and some internal properties. Fixed MouseDown handler and Paint
27074         method.
27075
27076 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
27077
27078         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
27079
27080 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
27081
27082         * ContainerControl.cs: correct accidental check in of local changes
27083
27084 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
27085
27086         * ThemeWin32Classic.cs:
27087                 - Fixed Drawing Last month in grid (sometimes not showing)
27088         * MonthCalendar.cs:
27089                 - Fixed title width calculation bug (makeing title small)
27090
27091 2004-11-23  Peter Bartok <pbartok@novell.com>
27092
27093         * XplatUIX11.cs:
27094           - Added generation of WM_MOUSEHOVER event
27095           - Added missing assignment of async_method atom
27096           - Fixed WM_ERASEBKGND; now only redraws the exposed area
27097
27098 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
27099
27100         * ThemeWin32Classic.cs:
27101                 - Fixed Drawing of today circle when showtodaycircle not set
27102                 - fixed drawing of first and last month in the grid (gay dates)
27103         * MonthCalendar.cs:
27104                 - Fixed Drawing of today circle
27105                 - Fixed drawing of grady dates
27106                 - Fixed HitTest for today link when ShowToday set to false
27107                 - Fixed DefaultSize to obey ShowToday
27108
27109 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
27110
27111         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
27112         * System.Windows.Forms/Theme.cs
27113         * MonthCalendar.cs: added for MonthCalendar
27114         * SelectionRange.cs: added for MonthCalendar
27115         * Day.cs: added for MonthCalendar: added for MonthCalendar
27116         * DateRangeEventArgs.cs: added for MonthCalendar
27117         * DateRangeEventHandler.cs: added for MonthCalendar
27118
27119 2004-11-22  Ravindra <rkumar@novell.com>
27120
27121         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
27122         property.
27123
27124 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
27125
27126         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
27127         event handler.
27128         
27129         * NumericUpDown.cs: Added new implementation.
27130         * UpDownBase.cs: Added new implementation.
27131
27132         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
27133         implementations.
27134         
27135         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
27136         implementations.
27137
27138         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
27139         methods.
27140
27141 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
27142
27143         * Timer.cs  (Dispose): Should call the base dispose when
27144         overriding.
27145
27146 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
27147
27148         * ScrollBar.cs: updates thumb position when max, min or increment
27149         is changed
27150
27151 2004-11-21  Ravindra <rkumar@novell.com>
27152
27153         * ListView.cs: Implemented item selection, activation and
27154         column header style. Fixed properties to do a redraw, if
27155         required. Added support for MouseHover, DoubleClick, KeyDown
27156         and KeyUp event handling and some minor fixes.
27157         * ListViewItem.cs: Fixed constructor.
27158         * ThemeWin32Classic.cs: Improved drawing for ListView.
27159
27160 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
27161
27162         * ThemeWin32Classic.cs: initial listbox drawing code
27163         * DrawMode.cs: new enumerator
27164         * ListControl.cs: stubbed class
27165         * ListBox.cs: initial implementation
27166         * Theme.cs: new methods definitions
27167         * SelectionMode.cs: new enumerator
27168
27169 2004-11-17  Peter Bartok  <pbartok@novell.com>
27170
27171         * XplatUIWin32.cs: Added double-click events to the class style
27172         * Control.cs (WndProc):
27173           - Added handling of click-count to MouseDown/ MouseUp events.
27174           - Added handling of middle and right mouse buttons
27175           - Removed old debug code
27176
27177 2004-11-17  Jackson Harper  <jackson@ximian.com>
27178
27179         * XplatUIX11.cs: Use the new Mono.Unix namespace.
27180
27181 2004-11-17  Ravindra <rkumar@novell.com>
27182
27183         * ListView.cs: Added event handling for MouseMove/Up/Down.
27184         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
27185         * ThemeWin32Classic.cs: We need to clear the graphics context and
27186         draw column header in a proper state.
27187
27188
27189 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
27190
27191         *  Menu.cs: fixes signature
27192
27193 2004-11-16  Peter Bartok  <pbartok@novell.com>
27194
27195         * XplatUIX11.cs (GetMessage): Implemented generation of
27196           double click mouse messages
27197
27198 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
27199
27200         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
27201         not by menu
27202
27203 2004-11-11  Peter Bartok  <pbartok@novell.com>
27204
27205         * HandleData.cs: Added Visible property
27206         * XplatUIX11.cs (IsVisible): Now uses Visible property from
27207           HandleData
27208         * XplatUIX11.cs: Removed old debug leftovers
27209         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
27210         * Control.cs (WndProc): Removed old debug leftovers,
27211           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
27212           needed WM_SIZE handling
27213
27214 2004-11-11  Jackson Harper  <jackson@ximian.com>
27215
27216         * OwnerDrawPropertyBag.cs:
27217         * TreeViewImageIndexConverter.cs: Initial implementation
27218
27219 2004-11-10  Jackson Harper  <jackson@ximian.com>
27220
27221         * ThemeWin32Classic.cs:
27222         * TabControl.cs: instead of moving tabs by the slider pos just
27223         start drawing at the tab that is offset by the slider. This way
27224         scrolling always moves by exactly one tab.
27225
27226 2004-11-10  Jackson Harper  <jackson@ximian.com>
27227
27228         * TabControl.cs: You can only scroll left when the slider has
27229         already ben moved right.
27230         
27231 2004-11-10  Jackson Harper  <jackson@ximian.com>
27232
27233         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
27234         the clip area.
27235         
27236 2004-11-10  Jackson Harper  <jackson@ximian.com>
27237
27238         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
27239         clip area.
27240         
27241 2004-11-09  Jackson Harper  <jackson@ximian.com>
27242
27243         * TabControl.cs (CalcXPos): New helper method so we can determine
27244         the proper place to start drawing vertical tabs.
27245         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
27246         
27247 2004-11-09  Jackson Harper  <jackson@ximian.com>
27248
27249         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
27250         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
27251         and Bottom, left and right are illegal values for this and
27252         multiline is enabled when the alignment is set to left or right.
27253         (DrawTab): Each alignment block should draw the text itself now
27254         because Left requires special love. Also add rendering for Left
27255         aligned tabs.
27256         
27257 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
27258
27259         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
27260         does not destroy the windows, removes debugging messages
27261
27262 2004-11-09  jba  <jba-mono@optusnet.com.au>
27263
27264         * ThemeWin32Classic.cs
27265         (DrawButtonBase): Fix verticle text rect clipping in windows
27266         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
27267         rendering and incorrect text rect clipping
27268         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
27269         rendering and incorrect text rect clipping
27270         
27271 2004-11-08  Jackson Harper  <jackson@ximian.com>
27272
27273         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
27274         bottom when they are bottom aligned so the bottoms of the tabs get
27275         displayed.
27276         * TabControl.cs (DropRow): Move rows up instead of down when the
27277         tab control is bottom aligned.
27278
27279 2004-11-08 13:59  pbartok
27280
27281         * XplatUIX11.cs:
27282           - Added handling for various window styles
27283           - Added handling for popup windows
27284           - Added SetTopmost handling
27285
27286 2004-11-08 13:55  pbartok
27287
27288         * XplatUIWin32.cs:
27289           - Added argument to SetTopmost method
27290           - Fixed broken ClientToScreen function
27291
27292 2004-11-08 13:53  pbartok
27293
27294         * XplatUIStructs.cs:
27295           - Added missing WS_EX styles
27296
27297 2004-11-08 13:53  pbartok
27298
27299         * XplatUI.cs, XplatUIDriver.cs:
27300           - Added argument to SetTopmost
27301
27302 2004-11-08 13:52  pbartok
27303
27304         * X11Structs.cs:
27305           - Added XSetWindowAttributes structure
27306           - Improved XWindowAttributes structure
27307           - Added SetWindowValuemask enum
27308           - Added window creation arguments enum
27309           - Added gravity enum
27310           - Added Motif hints structure
27311           - Added various Motif flags and enums
27312           - Added PropertyMode enum for property functions
27313
27314 2004-11-08 13:50  pbartok
27315
27316         * Form.cs:
27317           - Fixed arguments for updated SetTopmost method
27318
27319 2004-11-08 13:49  pbartok
27320
27321         * ToolTip.cs:
27322           - Fixed arguments for updated SetTopmost function
27323           - Fixed usage of PointToClient
27324
27325 2004-11-08 13:44  pbartok
27326
27327         * MenuAPI.cs:
27328           - Added Clipping of children and siblings
27329
27330 2004-11-08 13:41  pbartok
27331
27332         * MainMenu.cs:
27333           - Removed SetMenuBarWindow call. We do this in Form.cs
27334
27335 2004-11-08 13:40  jackson
27336
27337         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
27338           scrolling jimmi in the correct location with bottom aligned tabs
27339
27340 2004-11-08 13:36  pbartok
27341
27342         * ContainerControl.cs:
27343           - Implemented BindingContext
27344           - Implemented ParentForm
27345
27346 2004-11-08 12:46  jackson
27347
27348         * TabControl.cs: Put bottom rendered tabs in the right location
27349
27350 2004-11-08 07:15  jordi
27351
27352         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
27353           removes dead code
27354
27355 2004-11-05 17:30  jackson
27356
27357         * TabControl.cs: When selected tabs are expanded make sure they
27358           don't go beyond the edges of the tab control
27359
27360 2004-11-05 14:57  jackson
27361
27362         * TabControl.cs: Reset show_slider so if the control is resized to
27363           a size where it is no longer needed it's not displayed anymore
27364
27365 2004-11-05 13:16  jackson
27366
27367         * TabControl.cs: Make tab pages non visible when added to the
27368           control
27369
27370 2004-11-05 12:42  jackson
27371
27372         * TabControl.cs: Implement SizeMode.FillToRight
27373
27374 2004-11-05 12:16  jackson
27375
27376         * Control.cs: Do not call CreateHandle if the handle is already
27377           created
27378
27379 2004-11-05 11:46  jackson
27380
27381         * TabControl.cs: Remove superflous call to CalcTabRows
27382
27383 2004-11-05 09:07  jackson
27384
27385         * XplatUIX11.cs: Update for Mono.Posix changes
27386
27387 2004-11-05 07:00  ravindra
27388
27389         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
27390           scrolling.
27391
27392 2004-11-04 22:47  jba
27393
27394         * ThemeWin32Classic.cs:
27395           - Fix Button rendering for FlatStyle = Flat or Popup
27396           - Fix RadioButton and CheckBox rendering when Appearance = Button
27397             (normal and flatstyle).
27398           - Correct outer rectangle color when drawing focus rectangle
27399           - Adjust button bounds to be 1 px smaller when focused
27400           - Make button not draw sunken 3d border when pushed (windows compat)
27401           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
27402           - Offset the text in RadioButton and Checkbox when being rendered as
27403           a button.
27404           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
27405           radiobuttons
27406           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
27407           - Fixed disabled text rendering for normally rendered radiobuttons
27408
27409 2004-11-04 10:26  jackson
27410
27411         * TabControl.cs: Recalculate tab rows when resizing
27412
27413 2004-11-04 07:47  jordi
27414
27415         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
27416           collection completion, drawing issues, missing features
27417
27418 2004-11-04 05:03  ravindra
27419
27420         * ScrollBar.cs:
27421                 - We need to recalculate the Thumb area when
27422                 LargeChange/maximum/minimum values are changed.
27423           - We set the 'pos' in UpdatePos() method to minimum, if it's less
27424                 than minimum. This is required to handle the case if large_change is
27425                 more than max, and use LargeChange property instead of large_change
27426                 variable.
27427           - We return max+1 when large_change is more than max, like MS does.
27428
27429 2004-11-04 04:29  ravindra
27430
27431         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
27432                 - Changed default value signatures (prefixed all with ListView).
27433                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
27434                 ListView.
27435           - Fixed calculations for ListViewItem and implemented Clone()
27436           method.
27437
27438 2004-11-04 04:26  ravindra
27439
27440         * Theme.cs, ThemeWin32Classic.cs:
27441                 - Changed default ListView values signatures (prefixed all with
27442                 ListView).
27443           - Fixed default size values for VScrollBar and HScrollBar.
27444                 - Fixed DrawListViewItem method.
27445
27446 2004-11-04 04:05  ravindra
27447
27448         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
27449
27450 2004-11-04 04:04  ravindra
27451
27452         * ImageList.cs: Implemented the missing overload for Draw method.
27453
27454 2004-11-03 19:29  jackson
27455
27456         * TabControl.cs: Handle dropping rows on selection properly
27457
27458 2004-11-03 11:59  jackson
27459
27460         * TabControl.cs: remove debug code
27461
27462 2004-11-03 11:52  jackson
27463
27464         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
27465           the scrolly widgerywoo
27466
27467 2004-11-02 13:52  jackson
27468
27469         * TabControl.cs: Resize the tab pages and tabs when the tab control
27470           is resized
27471
27472 2004-11-02 13:40  jackson
27473
27474         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
27475           selected tab to the bottom
27476
27477 2004-11-02 13:39  jackson
27478
27479         * TabPage.cs: Store the tab pages row
27480
27481 2004-11-02 12:33  jordi
27482
27483         * MenuItem.cs: fixes handle creation
27484
27485 2004-11-02 11:42  jackson
27486
27487         * TabControl.cs: signature fix
27488
27489 2004-11-02 08:56  jackson
27490
27491         * TabControl.cs: Calculate whether the tab is on an edge properly.
27492           Remove top secret debugging code
27493
27494 2004-11-01 19:57  jackson
27495
27496         * TabControl.cs: Add click handling, and proper sizing
27497
27498 2004-11-01 19:47  jackson
27499
27500         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
27501           tab controls
27502
27503 2004-11-01 19:39  jackson
27504
27505         * TabPage.cs: add internal property to store the bounds of a tab
27506           page
27507
27508 2004-10-30 04:23  ravindra
27509
27510         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
27511           values.
27512
27513 2004-10-30 04:21  ravindra
27514
27515         * ListView.cs, ListViewItem.cs: Added support for scrolling and
27516           fixed calculations.
27517
27518 2004-10-30 03:06  pbartok
27519
27520         * XplatUIX11.cs:
27521           - Removed extension of DllImported libs
27522
27523 2004-10-29 09:55  jordi
27524
27525         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
27526           navigation, itemcollection completion, menu fixes
27527
27528 2004-10-27 22:58  pbartok
27529
27530         * XplatUIX11.cs:
27531           - Now throws a nice error message when no X display could be opened
27532
27533 2004-10-26 13:51  jordi
27534
27535         * ListView.cs: removes warning
27536
27537 2004-10-26 03:55  ravindra
27538
27539         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
27540           ThemeWin32Classic.cs: Some formatting for my last checkins.
27541
27542 2004-10-26 03:36  ravindra
27543
27544         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
27545           control and default values.
27546
27547 2004-10-26 03:35  ravindra
27548
27549         * Theme.cs: Added some default values for ListView control.
27550
27551 2004-10-26 03:33  ravindra
27552
27553         * ToolBar.cs: ToolBar should use the user specified button size, if
27554           there is any. Added a size_specified flag for the same.
27555
27556 2004-10-26 03:33  ravindra
27557
27558         * ColumnHeader.cs: Added some internal members and calculations for
27559           ColumnHeader.
27560
27561 2004-10-26 03:32  ravindra
27562
27563         * ListViewItem.cs: Calculations for ListViewItem.
27564
27565 2004-10-26 03:31  ravindra
27566
27567         * ListView.cs: Added some internal members and calculations for
27568           ListView.
27569
27570 2004-10-22 13:31  jordi
27571
27572         * MenuAPI.cs: speedup menus drawing
27573
27574 2004-10-22 13:16  jackson
27575
27576         * XplatUIX11.cs: Make sure to update exposed regions when adding an
27577           expose event
27578
27579 2004-10-22 11:49  jackson
27580
27581         * Control.cs: oops
27582
27583 2004-10-22 11:41  jackson
27584
27585         * Control.cs: Check to see if the window should have its background
27586           repainted by X when drawing.
27587
27588 2004-10-22 11:31  jackson
27589
27590         * XplatUIX11.cs: When invalidating areas only use XClearArea if
27591           clear is true, this way we do not get flicker from X repainting the
27592           background
27593
27594 2004-10-22 11:28  jackson
27595
27596         * XEventQueue.cs: Queue properly
27597
27598 2004-10-21 09:38  jackson
27599
27600         * XEventQueue.cs: Fix access modifier
27601
27602 2004-10-21 09:36  jackson
27603
27604         * XEventQueue.cs: Don't loose messages
27605
27606 2004-10-21 09:22  jackson
27607
27608         * XEventQueue.cs: Don't loose messages
27609
27610 2004-10-20 04:15  jordi
27611
27612         * BootMode.cs: enum need it by SystemInfo
27613
27614 2004-10-19 21:58  pbartok
27615
27616         * XplatUIWin32.cs:
27617           - Small sanity check
27618
27619 2004-10-19 21:56  pbartok
27620
27621         * Form.cs:
27622           - Added private FormParentWindow class which acts as the container
27623             for our form and as the non-client area where menus are drawn
27624           - Added/Moved required tie-ins to Jordi's menus
27625           - Fixed/Implemented the FormStartPosition functionality
27626
27627 2004-10-19 21:52  pbartok
27628
27629         * Control.cs:
27630           - Removed unneeded locals
27631           - Added code to all size and location properties to understand and
27632             deal with the parent container of Form
27633
27634 2004-10-19 21:33  pbartok
27635
27636         * Application.cs:
27637           - Fixed to deal with new Form subclasses for menus
27638
27639 2004-10-19 17:48  jackson
27640
27641         * XEventQueue.cs: commit correct version of file
27642
27643 2004-10-19 16:50  jackson
27644
27645         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
27646
27647 2004-10-19 16:15  jordi
27648
27649         * MenuAPI.cs: MenuBarCalcSize returns the height
27650
27651 2004-10-19 08:31  pbartok
27652
27653         * Control.cs:
27654           - Added missing call to PreProcessMessage before calling OnXXXKey
27655           methods
27656
27657 2004-10-19 00:04  ravindra
27658
27659         * ToolTip.cs: Fixed constructor.
27660
27661 2004-10-18 09:31  jordi
27662
27663         * MenuAPI.cs: menuitems in menubars do not have shortcuts
27664
27665 2004-10-18 09:26  jordi
27666
27667         * MenuItem.cs: fixes MenuItem class signature
27668
27669 2004-10-18 08:56  jordi
27670
27671         * MenuAPI.cs: prevents windows from showing in the taskbar
27672
27673 2004-10-18 00:28  ravindra
27674
27675         * ToolTip.cs: Suppressed a warning message.
27676
27677 2004-10-18 00:27  ravindra
27678
27679         * Control.cs: Default value of visible property must be true.
27680
27681 2004-10-17 23:19  pbartok
27682
27683         * ToolTip.cs:
27684           - Complete implementation
27685
27686 2004-10-17 23:19  pbartok
27687
27688         * XplatUIX11.cs:
27689           - Added EnableWindow method
27690           - Added SetModal stub
27691           - Added generation of WM_ACTIVATE message (still needs testing)
27692           - Added SetTopMost stub
27693           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
27694
27695 2004-10-17 23:17  pbartok
27696
27697         * XplatUIWin32.cs:
27698           - Removed VirtualKeys to XplatUIStructs
27699           - Implemented SetTopMost method
27700           - Implemented EnableWindow method
27701           - Bugfix in ScreenToClient()
27702           - Bugfixes in ClientToScreen()
27703
27704 2004-10-17 22:51  pbartok
27705
27706         * XplatUIStructs.cs:
27707           - Added WS_EX styles to WindowStyles enumeration
27708
27709 2004-10-17 22:50  pbartok
27710
27711         * XplatUI.cs, XplatUIDriver.cs:
27712           - Added method for enabling/disabling windows
27713           - Added method for setting window modality
27714           - Added method for setting topmost window
27715
27716 2004-10-17 22:49  pbartok
27717
27718         * ThemeWin32Classic.cs:
27719           - Added ToolTip drawing code
27720
27721 2004-10-17 22:49  pbartok
27722
27723         * Theme.cs:
27724           - Added ToolTip abstracts
27725
27726 2004-10-17 22:47  pbartok
27727
27728         * Form.cs:
27729           - Fixed Form.ControlCollection to handle owner relations
27730           - Added Owner/OwnedForms handling
27731           - Implemented Z-Ordering for owned forms
27732           - Removed unneeded private overload of ShowDialog
27733           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
27734             so I hope)
27735           - Fixed Close(), had wrong default
27736           - Added firing of OnLoad event
27737           - Added some commented out debug code for Ownership handling
27738
27739 2004-10-17 22:16  pbartok
27740
27741         * Control.cs:
27742           - Fixed/implemented flat list of controls
27743
27744 2004-10-17 22:14  pbartok
27745
27746         * Application.cs:
27747           - Added code to simulate modal dialogs on Win32
27748
27749 2004-10-17 16:11  jordi
27750
27751         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
27752           mouse event
27753
27754 2004-10-17 13:39  jordi
27755
27756         * MenuAPI.cs: menu drawing fixes
27757
27758 2004-10-15 09:10  ravindra
27759
27760         * StructFormat.cs: General Enum.
27761
27762 2004-10-15 09:09  ravindra
27763
27764         * SizeGripStyle.cs: Enum for Form.
27765
27766 2004-10-15 09:08  ravindra
27767
27768         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
27769           in Theme for ListView.
27770
27771 2004-10-15 09:06  ravindra
27772
27773         * ColumnHeader.cs: Flushing some formatting changes.
27774
27775 2004-10-15 09:05  ravindra
27776
27777         * ListViewItem.cs: Implemented GetBounds method and fixed coding
27778           style.
27779
27780 2004-10-15 09:03  ravindra
27781
27782         * ListView.cs: Implemented Paint method and fixed coding style.
27783
27784 2004-10-15 07:34  jordi
27785
27786         * MenuAPI.cs: fix for X11
27787
27788 2004-10-15 07:32  ravindra
27789
27790         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
27791                 - Renamed Paint() method to Draw() for clarity. Also, moved
27792                 DrawImage() to OnPaint().
27793
27794 2004-10-15 07:25  ravindra
27795
27796         * CheckBox.cs, RadioButton.cs:
27797                 - Removed Redraw (), we get it from ButtonBase.
27798                 - Implemented Paint (), to do class specific painting.
27799
27800 2004-10-15 07:16  ravindra
27801
27802         * ButtonBase.cs:
27803                 - Redraw () is not virtual now.
27804                 - Added an internal virtual method Paint (), so that
27805                 derived classes can do their painting on their own.
27806                 - Modified OnPaint () to call Paint ().
27807
27808 2004-10-15 06:43  jordi
27809
27810         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
27811           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
27812
27813 2004-10-15 00:30  ravindra
27814
27815         * MessageBox.cs:
27816                 - MessageBox on windows does not have min/max buttons.
27817                 This change in CreateParams fixes this on Windows. We
27818                 still need to implement this windowstyle behavior in
27819                 our X11 driver.
27820
27821 2004-10-14 05:14  ravindra
27822
27823         * ToolBar.cs:
27824                 - Changed Redraw () to do a Refresh () always.
27825                 - Fixed the MouseMove event handling when mouse is pressed,
27826                 ie drag event handling.
27827                 - Replaced the usage of ToolBarButton.Pressed property to
27828                 ToolBarButton.pressed internal variable.
27829
27830 2004-10-14 05:10  ravindra
27831
27832         * ToolBarButton.cs:
27833                 - Added an internal member 'inside' to handle mouse move
27834                 with mouse pressed ie mouse drag event.
27835                 - Changed 'Pressed' property to return true only when
27836                 'inside' and 'pressed' are both true.
27837                 - Some coding style love.
27838
27839 2004-10-14 00:17  ravindra
27840
27841         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
27842           public method.
27843
27844 2004-10-14 00:15  ravindra
27845
27846         * ButtonBase.cs: Redraw () related improvements.
27847
27848 2004-10-14 00:14  ravindra
27849
27850         * MessageBox.cs: Moved InitFormSize () out of Paint method and
27851           removed unnecessary calls to Button.Show () method.
27852
27853 2004-10-13 17:50  pbartok
27854
27855         * XplatUIX11.cs:
27856           - Formatting fix
27857           - Removed destroying of window until we solve the problem of X
27858             destroying the window before us on shutdown
27859
27860 2004-10-13 16:32  pbartok
27861
27862         * ButtonBase.cs:
27863           - Now Redraws on MouseUp for FlatStyle Flat and Popup
27864
27865 2004-10-13 14:18  pbartok
27866
27867         * XplatUIX11.cs:
27868           - Added code to destroy the X window
27869
27870 2004-10-13 14:18  pbartok
27871
27872         * XplatUIWin32.cs:
27873           - Added code to destroy a window
27874
27875 2004-10-13 14:12  pbartok
27876
27877         * ButtonBase.cs:
27878           - Added the Redraw on Resize that got dropped in the last rev
27879
27880 2004-10-13 09:06  pbartok
27881
27882         * ThemeWin32Classic.cs:
27883           - Path from John BouAntoun:
27884             * Fix check rendering (centre correctly for normal style, offset
27885               correctly for FlatStyle).
27886             * Fix border color usage (use backcolor) for FlatStyle.Popup
27887             * Use checkbox.Capture instead of checkbox.is_pressed when
27888               rendering flatstyle states.
27889
27890 2004-10-12 21:48  pbartok
27891
27892         * ThemeWin32Classic.cs:
27893           - Removed all occurences of SystemColors and replaced them with the
27894             matching theme color
27895
27896 2004-10-12 21:41  pbartok
27897
27898         * ThemeWin32Classic.cs:
27899           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
27900             him using the function for flatstyle drawing
27901           - Changed functions to use the new version of CPDrawBorder3D
27902
27903 2004-10-12 21:15  pbartok
27904
27905         * ControlPaint.cs:
27906           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
27907             match MS documentation. They need to return defined colors if the
27908             passed color matches the configured control color. Thanks to John
27909             BouAntoun for pointing this out.
27910
27911 2004-10-12 20:57  pbartok
27912
27913         * Control.cs:
27914           - Fix from John BouAntoun: Raise ForeColorChanged event when text
27915             color is changed
27916
27917 2004-10-12 20:46  pbartok
27918
27919         * CheckBox.cs:
27920           - Fix from John BouAntoun: Now properly sets the Appearance property
27921
27922 2004-10-12 20:45  pbartok
27923
27924         * ThemeWin32Classic.cs:
27925           - Fixes from John BouAntoun: now handles forecolors and backcolors
27926             for flatstyle rendered controls much better; It also fixes normal
27927             checkbox rendering when pushed or disabled.
27928
27929 2004-10-08 02:50  jordi
27930
27931         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
27932           work
27933
27934 2004-10-07 08:56  jordi
27935
27936         * ThemeWin32Classic.cs: Removes deletion of cached brushes
27937
27938 2004-10-06 03:59  jordi
27939
27940         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
27941           XplatUIWin32.cs: removes warnings from compilation
27942
27943 2004-10-05 12:23  jackson
27944
27945         * RadioButton.cs: Fix ctor
27946
27947 2004-10-05 11:10  pbartok
27948
27949         * MessageBox.cs:
27950           - Partial implementation by Benjamin Dasnois
27951
27952 2004-10-05 10:15  jackson
27953
27954         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
27955           by John BouAntoun
27956
27957 2004-10-05 03:07  ravindra
27958
27959         * ToolBar.cs:
27960                 - Removed a private method, Draw ().
27961                 - Fixed the ButtonDropDown event handling.
27962                 - Fixed MouseMove event handling.
27963
27964 2004-10-05 03:04  ravindra
27965
27966         * ThemeWin32Classic.cs:
27967                 - Added DrawListView method and ListViewDefaultSize property.
27968                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
27969                 - Changed DOS style CRLF to Unix format (dos2unix).
27970
27971 2004-10-05 03:03  ravindra
27972
27973         * Theme.cs:
27974                 - Added DrawListView method and ListViewDefaultSize property.
27975
27976 2004-10-05 02:42  ravindra
27977
27978         * ToolBarButton.cs: Added an internal member dd_pressed to handle
27979           clicks on DropDown arrow.
27980
27981 2004-10-04 22:56  jackson
27982
27983         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
27984           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
27985           Control handle the buffers, derived classes should not have to
27986           CreateBuffers themselves.
27987
27988 2004-10-04 21:20  jackson
27989
27990         * StatusBar.cs: The control handles resizing the buffers now.
27991
27992 2004-10-04 21:18  jackson
27993
27994         * Control.cs: When resizing the buffers should be invalidated. This
27995           should be handled in Control not in derived classes.
27996
27997 2004-10-04 14:45  jackson
27998
27999         * TabPage.cs: oops
28000
28001 2004-10-04 02:14  pbartok
28002
28003         * LeftRightAlignment.cs:
28004           - Initial check-in
28005
28006 2004-10-04 01:09  jordi
28007
28008         * ThemeWin32Classic.cs: fixes right button position causing right
28009           button not showing on horizontal scrollbars
28010
28011 2004-10-02 13:12  pbartok
28012
28013         * XplatUIX11.cs:
28014           - Simplified the Invalidate method by using an X call instead of
28015             generating the expose ourselves
28016           - Added an expose when the window background is changed
28017           - Implemented ClientToScreen method
28018
28019 2004-10-02 13:08  pbartok
28020
28021         * XplatUIWin32.cs:
28022           - Added Win32EnableWindow method (test for implementing modal
28023           dialogs)
28024           - Added ClientToScreen method and imports
28025
28026 2004-10-02 13:07  pbartok
28027
28028         * XplatUI.cs, XplatUIDriver.cs:
28029           - Added ClientToScreen coordinate translation method
28030
28031 2004-10-02 13:06  pbartok
28032
28033         * KeyPressEventArgs.cs:
28034           - Fixed access level for constructor
28035
28036 2004-10-02 13:06  pbartok
28037
28038         * NativeWindow.cs:
28039           - Changed access level for the window_collection hash table
28040
28041 2004-10-02 13:05  pbartok
28042
28043         * Form.cs:
28044           - Added KeyPreview property
28045           - Added Menu property (still incomplete, pending Jordi's menu work)
28046           - Implemented ProcessCmdKey
28047           - Implemented ProcessDialogKey
28048           - Implemented ProcessKeyPreview
28049
28050 2004-10-02 13:02  pbartok
28051
28052         * Control.cs:
28053           - Added private method to get the Control object from the window
28054           handle
28055           - Implemented ContextMenu property
28056           - Implemented PointToScreen
28057           - Implemented PreProcessMessage
28058           - Implemented IsInputChar
28059           - Implemented IsInputKey
28060           - Implemented ProcessCmdKey
28061           - Completed ProcessKeyEventArgs
28062           - Fixed message loop to call the proper chain of functions on key
28063           events
28064           - Implemented ProcessDialogChar
28065           - Implemented ProcessDialogKey
28066           - Implemented ProcessKeyMessage
28067           - Implemented ProcessKeyPreview
28068           - Added RaiseDragEvent stub (MS internal method)
28069           - Added RaiseKeyEvent stub (MS internal method)
28070           - Added RaiseMouseEvent stub (MS Internal method)
28071           - Added RaisePaintEvent stub (MS Internal method)
28072           - Added ResetMouseEventArgs stub (MS Internal method)
28073           - Implemented RtlTranslateAlignment
28074           - Implemented RtlTranslateContent
28075           - Implemented RtlTranslateHorizontal
28076           - Implemented RtlTranslateLeftRight
28077           - Added generation of KeyPress event
28078
28079 2004-10-02 05:57  ravindra
28080
28081         * ListViewItem.cs: Added attributes.
28082
28083 2004-10-02 05:32  ravindra
28084
28085         * ListView.cs: Added attributes.
28086
28087 2004-10-01 11:53  jackson
28088
28089         * Form.cs: Implement the Close method so work on MessageBox can
28090           continue.
28091
28092 2004-09-30 14:06  pbartok
28093
28094         * XplatUIX11.cs:
28095           - Bug fixes
28096
28097 2004-09-30 11:34  jackson
28098
28099         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
28100
28101 2004-09-30 07:26  ravindra
28102
28103         * ListViewItemConverter.cs: Converter for ListViewItem.
28104
28105 2004-09-30 07:26  ravindra
28106
28107         * SortOrder.cs: Enum for ListView control.
28108
28109 2004-09-30 07:25  ravindra
28110
28111         * ColumnHeader.cs: Supporting class for ListView control.
28112
28113 2004-09-30 07:24  ravindra
28114
28115         * ListView.cs, ListViewItem.cs: Initial implementation.
28116
28117 2004-09-30 07:20  ravindra
28118
28119         * ItemActivation.cs: Enum for ListView Control.
28120
28121 2004-09-29 20:29  pbartok
28122
28123         * XplatUIX11.cs:
28124           - Added lookup of pixel value for background color; tries to get a
28125             color 'close' to the requested color, it avoids having to create a
28126             colormap.  Depending on the display this could mean the used color
28127             is slightly off the desired color. Might have to change it to a more
28128             resource intensive colormap approach, but it will work as a
28129           workaround to avoid red screens.
28130
28131 2004-09-29 14:27  jackson
28132
28133         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
28134
28135 2004-09-28 12:44  pbartok
28136
28137         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
28138           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
28139           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
28140           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
28141           TrackBar.cs, VScrollBar.cs:
28142           - Streamlined Theme interfaces:
28143             * Each DrawXXX method for a control now is passed the object for
28144               the control to be drawn in order to allow accessing any state the
28145               theme might require
28146
28147             * ControlPaint methods for the theme now have a CP prefix to avoid
28148               name clashes with the Draw methods for controls
28149
28150             * Every control now retrieves it's DefaultSize from the current
28151             theme
28152
28153 2004-09-28 12:17  jackson
28154
28155         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
28156           drawing
28157
28158 2004-09-24 14:57  jackson
28159
28160         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
28161           Gives us a nice little performance boost.
28162
28163 2004-09-24 12:02  jackson
28164
28165         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
28166           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
28167           Control and supporting classes. Initial checkin
28168
28169 2004-09-23 13:08  jackson
28170
28171         * Form.cs: Temp build fixage
28172
28173 2004-09-23 01:39  ravindra
28174
28175         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
28176           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
28177           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
28178           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
28179           EventHandlers needed by ListView Control.
28180
28181 2004-09-22 14:12  pbartok
28182
28183         * ScrollableControl.cs:
28184           - Implemented DockPadding property
28185           - Implemented AutoScroll property
28186           - Implemented AutoScrollMargin property
28187           - Implemented AutoScrollMinSize property
28188           - Implemented AutoScrollPosition property
28189           - Implemented DisplayRectangle property (still incomplete)
28190           - Implemented CreateParams property
28191           - Implemented HScroll property
28192           - Implemented VScroll property
28193           - Implemented OnVisibleChanged property
28194
28195 2004-09-22 14:09  pbartok
28196
28197         * Form.cs:
28198           - Added Form.ControllCollection class
28199           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
28200             RemoveOwnedForm (still incomplete, missing on-top and common
28201             minimize/maximize behaviour)
28202           - Added StartPosition property (still incomplete, does not use when
28203             creating the form)
28204           - Added ShowDialog() methods (still incomplete, missing forcing the
28205             dialog modal)
28206
28207 2004-09-22 14:05  pbartok
28208
28209         * Application.cs:
28210           - Added message loop for modal dialogs
28211
28212 2004-09-22 14:02  pbartok
28213
28214         * GroupBox.cs:
28215           - Fixed wrong types for events
28216
28217 2004-09-22 14:00  pbartok
28218
28219         * Shortcut.cs, FormWindowState.cs:
28220           - Fixed wrong values
28221
28222 2004-09-22 12:01  jackson
28223
28224         * Control.cs: Text is never null
28225
28226 2004-09-20 22:14  pbartok
28227
28228         * XplatUIWin32.cs:
28229           - Fixed accessibility level for Idle handler
28230
28231 2004-09-20 18:54  jackson
28232
28233         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28234           XplatUIX11.cs: New message loop that uses poll so we don't get a
28235           busy loop
28236
28237 2004-09-17 10:43  pbartok
28238
28239         * ScrollBar.cs:
28240           - Fixed behaviour of arrow buttons. Now properly behaves like
28241             Buttons (and like Microsoft's scrollbar arrow buttons)
28242
28243 2004-09-17 10:14  pbartok
28244
28245         * ScrollBar.cs:
28246           - Added missing release of keyboard/mouse capture
28247
28248 2004-09-17 06:18  jordi
28249
28250         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
28251           Theme.cs: Very early menu support
28252
28253 2004-09-16 17:45  pbartok
28254
28255         * XplatUIWin32.cs:
28256           - Fixed sending a window to the front
28257           - Added overload for SetWindowPos to avoid casting
28258
28259 2004-09-16 17:44  pbartok
28260
28261         * Control.cs:
28262           - Added SendToBack and BringToFront methods
28263
28264 2004-09-16 07:00  ravindra
28265
28266         * Copyright: Added Novell URL.
28267
28268 2004-09-16 07:00  ravindra
28269
28270         * ToolBar.cs: Invalidate should be done before redrawing.
28271
28272 2004-09-15 21:19  ravindra
28273
28274         * ColumnHeaderStyle.cs: Enum for ListView Control.
28275
28276 2004-09-15 21:18  ravindra
28277
28278         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
28279           ListView Control.
28280
28281 2004-09-13 18:26  jackson
28282
28283         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
28284           properly
28285
28286 2004-09-13 18:13  jackson
28287
28288         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
28289           a second thread and post messages into the main threads message
28290           queue. This makes timing much more consistent. Both win2K and XP
28291           have a minimum timer value of 15 milliseconds, so we now do this
28292           too.
28293
28294 2004-09-13 15:18  pbartok
28295
28296         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28297           XplatUIX11.cs:
28298           - Added Z-Ordering methods
28299
28300 2004-09-13 10:56  pbartok
28301
28302         * Form.cs:
28303           - Fixed #region names
28304           - Moved properties and methods into their proper #regions
28305
28306 2004-09-13 10:51  pbartok
28307
28308         * Form.cs:
28309           - Added Accept and CancelButton properties
28310           - Added ProcessDialogKey() method
28311
28312 2004-09-13 08:18  pbartok
28313
28314         * IWindowTarget.cs:
28315           - Initial check-in
28316
28317 2004-09-10 21:50  pbartok
28318
28319         * Control.cs:
28320           - Added DoDragDrop() [incomplete]
28321           - Properly implemented 'Visible' handling
28322           - Added SetVisibleCore()
28323           - Implemented FindChildAtPoint()
28324           - Implemented GetContainerControl()
28325           - Implemented Hide()
28326
28327 2004-09-10 19:28  pbartok
28328
28329         * Control.cs:
28330           - Moved methods into their appropriate #regions
28331           - Reordered methods within regions alphabetically
28332
28333 2004-09-10 18:57  pbartok
28334
28335         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
28336           - Added method to retrieve text from window
28337
28338 2004-09-10 18:56  pbartok
28339
28340         * Control.cs:
28341           - Moved some internal functions into the internal region
28342           - Implemented FontHeight
28343           - Implemented RenderRightToLeft
28344           - Implemented ResizeRedraw
28345           - Implemented ShowFocusCues
28346           - Implemented ShowKeyboardCues
28347           - Implemented FromChildHandle
28348           - Implemented FromHandle
28349           - Implemented IsMnemonic
28350           - Implemented ReflectMessage
28351           - All public and protected Static Methods are now complete
28352
28353 2004-09-10 16:54  pbartok
28354
28355         * Control.cs:
28356           - Implemented remaining missing public instance properties
28357           - Alphabetized some out of order properties
28358
28359 2004-09-10 05:51  ravindra
28360
28361         * PictureBox.cs: Added a check for null image.
28362
28363 2004-09-10 00:59  jordi
28364
28365         * GroupBox.cs: remove cvs tag
28366
28367 2004-09-09 05:25  ravindra
28368
28369         * ToolBar.cs: Make redraw accessible from ToolBarButton.
28370
28371 2004-09-09 05:23  ravindra
28372
28373         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
28374           parent redraw.
28375
28376 2004-09-09 02:28  pbartok
28377
28378         * ThemeWin32Classic.cs:
28379           - Improve disabled string look
28380
28381 2004-09-09 01:15  jordi
28382
28383         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
28384           args and handler
28385
28386 2004-09-08 23:56  ravindra
28387
28388         * ItemBoundsPortion.cs: It's enum, not a class!
28389
28390 2004-09-08 23:47  ravindra
28391
28392         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
28393           Enums for Form.
28394
28395 2004-09-08 21:13  ravindra
28396
28397         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
28398           ListView control.
28399
28400 2004-09-08 21:03  ravindra
28401
28402         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
28403           avoid crash.
28404
28405 2004-09-08 21:01  ravindra
28406
28407         * ScrollableControl.cs: Removed unreachable code.
28408
28409 2004-09-08 06:45  jordi
28410
28411         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
28412
28413 2004-09-08 01:00  jackson
28414
28415         * XplatUIX11.cs: Only run the timers when updating the message
28416           queue. This effectively gives X messages a higher priority then
28417           timer messages. Timers still need love though
28418
28419 2004-09-07 14:01  jackson
28420
28421         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
28422           this for us and the handle is no longer valid.
28423
28424 2004-09-07 13:59  jackson
28425
28426         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
28427           loop that manages to not crash. TODO: Add poll and cleanup timers
28428
28429 2004-09-07 11:12  jordi
28430
28431         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
28432
28433 2004-09-07 03:40  jordi
28434
28435         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
28436           fixes, methods, multiple links
28437
28438 2004-09-06 06:55  jordi
28439
28440         * Control.cs: Caches ClientRectangle rectangle value
28441
28442 2004-09-05 02:03  jordi
28443
28444         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
28445           certain situations
28446
28447 2004-09-04 11:10  jordi
28448
28449         * Label.cs: Refresh when font changed
28450
28451 2004-09-02 16:24  pbartok
28452
28453         * Control.cs:
28454           - Added sanity check to creation of double buffer bitmap
28455
28456 2004-09-02 16:24  pbartok
28457
28458         * ButtonBase.cs:
28459           - Fixed selection of text color
28460           - Fixed handling of resize event; now properly recreates double
28461             buffering bitmap
28462           - Added missing assignment of TextAlignment
28463           - Added proper default for TextAlignment
28464
28465 2004-09-02 14:26  pbartok
28466
28467         * RadioButton.cs:
28468           - Added missing RadioButton.RadioButtonAccessibleObject class
28469
28470 2004-09-02 14:26  pbartok
28471
28472         * Control.cs:
28473           - Added missing Control.ControlAccessibleObject class
28474           - Started to implement Select()ion mechanisms, still very incomplete
28475
28476 2004-09-02 14:25  pbartok
28477
28478         * AccessibleObject.cs:
28479           - Added missing methods
28480
28481 2004-09-02 14:23  pbartok
28482
28483         * AccessibleNavigation.cs, AccessibleSelection.cs:
28484           - Initial check-in
28485
28486 2004-09-02 10:32  jordi
28487
28488         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
28489           pool for pens, brushes, and hatchbruses
28490
28491 2004-09-01 15:30  jackson
28492
28493         * StatusBar.cs: Fix typo
28494
28495 2004-09-01 14:44  pbartok
28496
28497         * RadioButton.cs:
28498           - Fixed state
28499
28500 2004-09-01 14:39  pbartok
28501
28502         * Button.cs, RadioButton.cs:
28503           - Functional initial check-in
28504
28505 2004-09-01 14:01  pbartok
28506
28507         * CheckBox.cs:
28508           - Added missing default
28509           - Added missing region mark
28510
28511 2004-09-01 09:10  jordi
28512
28513         * Label.cs: fixes method signatures, new methods, events, fixes
28514           autosize
28515
28516 2004-09-01 07:19  jordi
28517
28518         * Control.cs: Init string variables with an empty object
28519
28520 2004-09-01 04:20  jordi
28521
28522         * Control.cs: fires OnFontChanged event
28523
28524 2004-08-31 20:07  pbartok
28525
28526         * ButtonBase.cs:
28527           - Enabled display of strings
28528
28529 2004-08-31 20:05  pbartok
28530
28531         * Form.cs:
28532           - Added (partial) implementation of DialogResult; rest needs to be
28533             implemented when the modal loop code is done
28534
28535 2004-08-31 19:55  pbartok
28536
28537         * CheckBox.cs:
28538           - Fixed to match the removal of the needs_redraw concept
28539
28540 2004-08-31 19:55  pbartok
28541
28542         * ButtonBase.cs:
28543           - Removed the rather odd split between 'needs redraw' and redrawing
28544           - Now handles the events that require regeneration (ambient
28545             properties and size)
28546
28547 2004-08-31 19:41  pbartok
28548
28549         * Control.cs:
28550           - Added firing of BackColorChanged event
28551           - Added TopLevelControl property
28552           - Fixed handling of WM_ERASEBKGRND message
28553
28554 2004-08-31 12:49  pbartok
28555
28556         * ButtonBase.cs:
28557           - Removed debug
28558           - Minor fixes
28559
28560 2004-08-31 12:48  pbartok
28561
28562         * CheckBox.cs:
28563           - Finished (famous last words)
28564
28565 2004-08-31 04:35  jordi
28566
28567         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
28568           scrolling bugs, adds new methods
28569
28570 2004-08-30 14:42  pbartok
28571
28572         * CheckBox.cs:
28573           - Implemented CheckBox drawing code
28574
28575 2004-08-30 14:42  pbartok
28576
28577         * ButtonBase.cs:
28578           - Made Redraw() and CheckRedraw() virtual
28579           - Improved mouse up/down/move logic to properly track buttons
28580
28581 2004-08-30 09:44  pbartok
28582
28583         * CheckBox.cs:
28584           - Updated to fix broken build. Not complete yet.
28585
28586 2004-08-30 09:28  pbartok
28587
28588         * CheckState.cs:
28589           - Initial checkin
28590
28591 2004-08-30 09:17  pbartok
28592
28593         * Appearance.cs:
28594           - Initial check-in
28595
28596 2004-08-27 16:12  ravindra
28597
28598         * ToolBarButton.cs: Added TypeConverter attribute.
28599
28600 2004-08-27 16:07  ravindra
28601
28602         * ImageIndexConverter.cs: Implemented.
28603
28604 2004-08-27 14:17  pbartok
28605
28606         * Control.cs:
28607           - Removed unneeded stack vars
28608           - First attempt to fix sizing issues when layout is suspended
28609
28610 2004-08-25 15:35  jordi
28611
28612         * ScrollBar.cs: more fixes to scrollbar
28613
28614 2004-08-25 14:04  ravindra
28615
28616         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
28617           Added the missing divider code and grip for ToolBar Control.
28618
28619 2004-08-25 13:20  pbartok
28620
28621         * Control.cs:
28622           - Control now properly passes the ambient background color to child
28623             controls
28624
28625 2004-08-25 13:20  jordi
28626
28627         * ScrollBar.cs: small bug fix regarding bar position
28628
28629 2004-08-25 12:33  pbartok
28630
28631         * Timer.cs:
28632           - Now only calls SetTimer or KillTimer if the enabled state has
28633           changed
28634
28635 2004-08-25 12:33  pbartok
28636
28637         * XplatUIWin32.cs:
28638           - Fixed timer handling, now seems to work
28639           - Improved error message for window creation
28640
28641 2004-08-25 12:32  pbartok
28642
28643         * Control.cs:
28644           - Fixed generation of MouseUp message
28645
28646 2004-08-25 12:29  jordi
28647
28648         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
28649           and fixes for progressbar
28650
28651 2004-08-24 18:43  ravindra
28652
28653         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
28654           in ToolBar control.
28655
28656 2004-08-24 17:15  pbartok
28657
28658         * Panel.cs:
28659           - Added #region
28660           - Added missing events
28661           - Alphabetized
28662
28663 2004-08-24 17:14  pbartok
28664
28665         * StatusBar.cs, PictureBox.cs:
28666           - Now uses Control's CreateParams
28667
28668 2004-08-24 16:36  pbartok
28669
28670         * XplatUIX11.cs:
28671           - Fixed background color handling
28672           - Fixed sending of enter/leave events on a grab
28673
28674 2004-08-24 16:35  pbartok
28675
28676         * X11Structs.cs:
28677           - Refined definitions for CrossingEvent
28678
28679 2004-08-24 12:37  jordi
28680
28681         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
28682           formmating, methods signature, and adds missing events
28683
28684 2004-08-24 12:24  jordi
28685
28686         * Control.cs: fire OnEnabledChanged event
28687
28688 2004-08-24 11:17  pbartok
28689
28690         * XplatUIWin32.cs:
28691           - Implemented SetTimer() and KillTimer()
28692
28693 2004-08-24 11:16  pbartok
28694
28695         * XplatUIX11.cs:
28696           - Now uses Remove instead of Add to kill the timer
28697
28698 2004-08-24 10:16  jackson
28699
28700         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
28701           picture boxes in the theme now. Draw picture box borders and obey
28702           sizing modes
28703
28704 2004-08-24 05:49  jackson
28705
28706         * Timer.cs: Remove top secret debugging code
28707
28708 2004-08-24 05:34  jackson
28709
28710         * PictureBox.cs: Temp hack to make picture boxes draw their full
28711           image
28712
28713 2004-08-24 05:29  jackson
28714
28715         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28716           XplatUIX11.cs: Move timers to the driver level. On X they are
28717           queued by the driver and checked on idle.
28718
28719 2004-08-24 01:07  jackson
28720
28721         * XplatUIX11.cs: Use a queue for async messages instead of passing
28722           them as ClientMessages since that was totally broken. Also simply
28723           check for events and return an idle message if none are found. This
28724           gives us an idle handler, and prevents deadlocking when no messages
28725           are in the queue.
28726
28727 2004-08-23 18:19  ravindra
28728
28729         * XplatUIWin32.cs: Removed the unwanted destructor.
28730
28731 2004-08-23 17:27  pbartok
28732
28733         * ButtonBase.cs:
28734           - Finishing touches. Works now, just needs some optimizations.
28735
28736 2004-08-23 16:53  jordi
28737
28738         * ScrollBar.cs: small fix
28739
28740 2004-08-23 16:45  pbartok
28741
28742         * Application.cs:
28743           - Removed debug output
28744           - Simplifications
28745
28746 2004-08-23 16:43  jordi
28747
28748         * ScrollBar.cs: [no log message]
28749
28750 2004-08-23 16:10  pbartok
28751
28752         * Form.cs:
28753           - Fixed handling of WM_CLOSE message
28754           - Removed debug output
28755
28756 2004-08-23 16:09  pbartok
28757
28758         * Application.cs:
28759           - Added handling of Idle event
28760           - Added handling of form closing
28761           - Fixed reporting of MessageLoop property
28762           - Removed some unneeded code, should provide a bit of a speedup
28763
28764 2004-08-23 15:22  pbartok
28765
28766         * Control.cs:
28767           - Added InitLayout() method
28768           - Added code to properly perform layout when Anchor or Dock property
28769             is changed
28770           - Changed 'interpretation' of ResumeLayout. MS seems to have a
28771             LAMESPEC, tried to do it in a way that makes sense
28772
28773 2004-08-23 14:10  jordi
28774
28775         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
28776           properties and methods
28777
28778 2004-08-23 13:55  pbartok
28779
28780         * Control.cs:
28781           - Properly fixed Jordi's last fix
28782           - Now uses Cursor's Position property instead of calling XplatUI
28783           directly
28784
28785 2004-08-23 13:44  jordi
28786
28787         * PaintEventHandler.cs: Adding missing attribute
28788
28789 2004-08-23 13:39  pbartok
28790
28791         * Cursor.cs:
28792           - Implemented Position property
28793
28794 2004-08-23 13:39  pbartok
28795
28796         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
28797           - Added method to move mouse cursor
28798
28799 2004-08-23 13:39  pbartok
28800
28801         * XplatUIX11.cs:
28802           - Fixed setting of background color
28803           - Added method to move mouse cursor
28804
28805 2004-08-23 13:16  jordi
28806
28807         * Control.cs: avoids null exception
28808
28809 2004-08-22 17:46  jackson
28810
28811         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
28812           PictureBox
28813
28814 2004-08-22 17:40  jackson
28815
28816         * XplatUIX11.cs: Add some missing locks
28817
28818 2004-08-22 15:10  pbartok
28819
28820         * Control.cs, Form.cs:
28821           - Removed OverlappedWindow style from Control, instead it's default
28822             now is child
28823           - Made form windows OverlappedWindow by default
28824
28825 2004-08-22 13:34  jackson
28826
28827         * ScrollBar.cs: Update the position through the Value property so
28828           the OnValueChanged event is raised.
28829
28830 2004-08-22 12:04  pbartok
28831
28832         * SWF.csproj:
28833           - Added Cursor.cs and UserControl.cs
28834
28835 2004-08-22 12:03  pbartok
28836
28837         * Cursor.cs:
28838           - Started implementation, not usable yet
28839
28840 2004-08-22 12:00  pbartok
28841
28842         * UserControl.cs:
28843           - Implemented UserControl (complete)
28844
28845 2004-08-21 19:20  ravindra
28846
28847         * ToolBar.cs: Correcting the formatting mess of VS.NET.
28848
28849 2004-08-21 18:49  ravindra
28850
28851         * ToolBar.cs: Probably this completes the missing attributes in
28852           toolbar control.
28853
28854 2004-08-21 18:03  ravindra
28855
28856         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
28857           Fixed toolbar control signatures.
28858
28859 2004-08-21 16:32  pbartok
28860
28861         * LinkLabel.cs:
28862           - Signature Fixes
28863
28864 2004-08-21 16:30  pbartok
28865
28866         * Label.cs:
28867           - Signature fixes
28868
28869 2004-08-21 16:19  pbartok
28870
28871         * Control.cs, Label.cs:
28872           - Signature fixes
28873
28874 2004-08-21 15:57  pbartok
28875
28876         * ButtonBase.cs:
28877           - Added loads of debug output for development
28878           - Fixed typo in method name
28879
28880 2004-08-21 15:52  pbartok
28881
28882         * ToolBarButtonClickEventArgs.cs:
28883           - Added missing base class
28884
28885 2004-08-21 14:53  pbartok
28886
28887         * Control.cs:
28888           - Updated to match new GrabWindow signature
28889
28890 2004-08-21 14:51  pbartok
28891
28892         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
28893           - Added method to get default display size
28894
28895 2004-08-21 14:23  pbartok
28896
28897         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
28898           - Added method to query current grab state
28899           - Added argument to allow confining a grab to a window
28900
28901 2004-08-21 14:22  pbartok
28902
28903         * Keys.cs:
28904           - Added [Flags] attribute so that modifiers can be used in bitwise
28905           ops
28906
28907 2004-08-21 14:21  pbartok
28908
28909         * TrackBar.cs, ScrollBar.cs:
28910           - Replaced direct XplatUI calls with their Control counterpart
28911
28912 2004-08-21 13:32  pbartok
28913
28914         * Control.cs:
28915           - Implemented Created property
28916
28917 2004-08-21 13:28  pbartok
28918
28919         * Control.cs:
28920           - Implemented ContainsFocus
28921
28922 2004-08-21 13:26  pbartok
28923
28924         * Control.cs:
28925           - Implemented CausesValidation
28926
28927 2004-08-21 13:21  pbartok
28928
28929         * Control.cs:
28930           - Implemented CanFocus
28931           - Implemented CanSelect
28932           - Implemented Capture
28933
28934 2004-08-21 12:35  pbartok
28935
28936         * XplatUIWin32.cs:
28937           - Fixed bug with Async message handling
28938           - Implemented getting the ModifierKeys
28939
28940 2004-08-21 12:32  jackson
28941
28942         * AsyncMethodResult.cs: Make sure we have the mutex before we
28943           release it. Fixes BeginInvoke on windows
28944
28945 2004-08-21 11:31  pbartok
28946
28947         * XplatUIWin32.cs, XplatUIX11.cs:
28948           - Drivers now return proper mouse state
28949
28950 2004-08-21 10:54  jackson
28951
28952         * Control.cs: Implement EndInvoke
28953
28954 2004-08-21 10:48  jackson
28955
28956         * Timer.cs: Remove unneeded finalizer
28957
28958 2004-08-20 19:52  ravindra
28959
28960         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
28961           in mouse event handling in the ToolBar control.
28962
28963 2004-08-20 19:50  ravindra
28964
28965         * ImageList.cs: Changed draw method to use the arguments passed in
28966           to draw the image.
28967
28968 2004-08-20 18:58  pbartok
28969
28970         * XplatUIStructs.cs:
28971           - Added private message for async communication
28972
28973 2004-08-20 17:38  ravindra
28974
28975         * Control.cs: Made RightToLeft property virtual and removed a
28976           Console.WriteLine.
28977
28978 2004-08-20 14:39  jordi
28979
28980         * ThemeGtk.cs: use style_attach
28981
28982 2004-08-20 14:39  pbartok
28983
28984         * XplatUIWin32.cs:
28985           - Added jackson's Async code from X11 to Win32
28986
28987 2004-08-20 14:09  pbartok
28988
28989         * SWF.csproj:
28990           - Added all new files
28991
28992 2004-08-20 14:09  pbartok
28993
28994         * Control.cs:
28995           - Added call to set window background color
28996
28997 2004-08-20 14:03  pbartok
28998
28999         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
29000           - Added method for setting the window background
29001
29002 2004-08-20 14:02  pbartok
29003
29004         * XplatUIWin32.cs:
29005           - Added method for setting the background color
29006           - Added handling for erasing the window background
29007
29008 2004-08-20 13:45  jordi
29009
29010         * TrackBar.cs: fixes timer, new properties and methods
29011
29012 2004-08-20 13:34  jackson
29013
29014         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
29015           correct thread
29016
29017 2004-08-20 13:22  jackson
29018
29019         * Timer.cs: Timer Tick events are now handed through Controls Async
29020           mechanism so the callbacks are executed in the same thread as X
29021
29022 2004-08-20 13:19  jackson
29023
29024         * XplatUIDriver.cs: Expose functionality to send async messages
29025           through the driver
29026
29027 2004-08-20 13:18  jackson
29028
29029         * Control.cs: Implement Begininvoke
29030
29031 2004-08-20 13:14  jackson
29032
29033         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
29034           messages through the driver
29035
29036 2004-08-20 13:12  jackson
29037
29038         * XplatUIX11.cs: Lock before all X operations. Also added Async
29039           method functionality through XSendEvent
29040
29041 2004-08-20 13:11  jackson
29042
29043         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
29044           This will screw up on 64 bit systems)
29045
29046 2004-08-20 13:10  jackson
29047
29048         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
29049           Async messages through X/Win32
29050
29051 2004-08-19 19:39  pbartok
29052
29053         * XplatUIX11.cs:
29054           - Updated code to match new HandleData.DeviceContext type
29055
29056 2004-08-19 19:38  pbartok
29057
29058         * HandleData.cs:
29059           - Made DeviceContext a generic object to allow usage from various
29060           drivers
29061           - Added support for queueing Windows messages
29062
29063 2004-08-19 19:37  pbartok
29064
29065         * XplatUIWin32.cs:
29066           - Added generation of MouseEnter, MouseLeave and MouseHover events
29067           - Added cleanup on EndPaint
29068
29069 2004-08-19 19:17  pbartok
29070
29071         * Control.cs:
29072           - Added handling of WM_MOUSEHOVER
29073           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
29074           code
29075
29076 2004-08-19 18:55  jordi
29077
29078         * ThemeGtk.cs: fixes button order
29079
29080 2004-08-19 18:12  jordi
29081
29082         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
29083
29084 2004-08-19 17:09  pbartok
29085
29086         * Control.cs:
29087           - Added Right property
29088           - Added RightToLeft property
29089
29090 2004-08-19 16:27  jordi
29091
29092         * ThemeGtk.cs: experimental GTK theme support
29093
29094 2004-08-19 16:26  jordi
29095
29096         * ITheme.cs, Theme.cs: move themes from an interface to a class
29097
29098 2004-08-19 16:25  jordi
29099
29100         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
29101           theme enhancaments
29102
29103 2004-08-19 16:04  pbartok
29104
29105         * XplatUIX11.cs:
29106           - Added colormap basics
29107           - Added a way to re-initialize with a different display handle
29108           - Fixed setting of the window background color
29109           - Added various X11 imports related to colors and colormaps
29110
29111 2004-08-19 15:51  pbartok
29112
29113         * X11Structs.cs:
29114           - Removed packing hints (Paolo suggested this a while back)
29115           - fixed colormap type
29116           - Added default Atom types
29117           - Added Screen and color structs and enums
29118
29119 2004-08-19 15:39  pbartok
29120
29121         * ImageList.cs:
29122           - Added missing Draw() method
29123           - Added missing RecreateHandle event
29124
29125 2004-08-19 15:30  pbartok
29126
29127         * Form.cs:
29128           - Added handling of WM_CLOSE
29129
29130 2004-08-18 13:16  jordi
29131
29132         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
29133           a table
29134
29135 2004-08-18 09:56  jordi
29136
29137         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
29138
29139 2004-08-17 15:31  ravindra
29140
29141         * SWF.csproj: Updated project.
29142
29143 2004-08-17 15:25  pbartok
29144
29145         * Control.cs:
29146           - Drawing improvement; don't call UpdateBounds if we are not visible
29147             (or have been minimized)
29148
29149 2004-08-17 15:24  pbartok
29150
29151         * XplatUIWin32.cs:
29152           - Finished IsVisible
29153           - Added Win32GetWindowPlacement
29154
29155 2004-08-17 15:08  jackson
29156
29157         * Panel.cs: Initial checkin of the Panel
29158
29159 2004-08-17 14:25  pbartok
29160
29161         * Control.cs:
29162           - Fixed broken handling of default window sizes
29163
29164 2004-08-17 13:29  jackson
29165
29166         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
29167           has a large startup time.
29168
29169 2004-08-17 10:25  jackson
29170
29171         * HandleData.cs: union areas properly
29172
29173 2004-08-17 10:12  jackson
29174
29175         * HandleData.cs: union areas properly
29176
29177 2004-08-16 20:00  ravindra
29178
29179         * ToolBar.cs, ToolBarButton.cs: Added attributes.
29180
29181 2004-08-16 18:48  ravindra
29182
29183         * ToolBar.cs: Added attributes.
29184
29185 2004-08-16 17:17  ravindra
29186
29187         * SWF.csproj: Updated project.
29188
29189 2004-08-16 17:16  jackson
29190
29191         * XplatUIX11.cs: Check for more expose events before sending a
29192           WM_PAINT so they can all be grouped together. This makes dragging a
29193           window across another window redraw in a sane way.
29194
29195 2004-08-16 15:47  pbartok
29196
29197         * Control.cs:
29198           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
29199             support OnMouseEnter/Leave()
29200           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
29201             exposure handling
29202
29203 2004-08-16 15:46  pbartok
29204
29205         * XplatUIStructs.cs, XplatUIX11.cs:
29206           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
29207           OnMouseEnter/Leave()
29208
29209 2004-08-16 15:34  jackson
29210
29211         * XplatUIX11.cs: Group multiple expose events in HandleData, make
29212           sure messages get the message field set to WM_NULL if they are not
29213           handled.
29214
29215 2004-08-16 15:24  jackson
29216
29217         * HandleData.cs: HandleData is used for storing message information
29218           for window handles
29219
29220 2004-08-15 17:23  ravindra
29221
29222         * ColorDepth.cs: Added attribute.
29223
29224 2004-08-15 17:23  ravindra
29225
29226         * SWF.csproj: Updated project for ToolBar Control.
29227
29228 2004-08-15 17:20  ravindra
29229
29230         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
29231           control and also dos2unix format.
29232
29233 2004-08-15 17:13  ravindra
29234
29235         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
29236           ToolBarButtonClickEventArgs.cs,
29237           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
29238           ToolBarTextAlign.cs: First Implementation of ToolBar control.
29239
29240 2004-08-15 15:31  pbartok
29241
29242         * ButtonBase.cs:
29243           - First (mostly) working version
29244
29245 2004-08-13 16:15  pbartok
29246
29247         * Control.cs:
29248           - Fixed Anchor default
29249
29250 2004-08-13 15:43  pbartok
29251
29252         * Control.cs:
29253           - Changed GetCursorPos signature
29254
29255 2004-08-13 15:42  pbartok
29256
29257         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
29258           - Changed signature for GetCursorPos
29259
29260 2004-08-13 15:25  pbartok
29261
29262         * XplatUIX11.cs:
29263           - Cleanup
29264           - Fixed resizing/exposure handling
29265
29266 2004-08-13 15:22  jordi
29267
29268         * ThemeWin32Classic.cs: removes redundant code and fixes issues
29269           with tickposition
29270
29271 2004-08-13 14:55  jordi
29272
29273         * TrackBar.cs: change from wndproc to events
29274
29275 2004-08-13 13:00  jordi
29276
29277         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
29278           XplatUIX11.cs: implements PointToClient (ScreenToClient)
29279
29280 2004-08-13 12:53  pbartok
29281
29282         * XplatUIWin32.cs:
29283           - Changed GetWindowPos to also provide client area size
29284           - Fixed broken prototypes for several win32 functions
29285
29286 2004-08-13 12:53  pbartok
29287
29288         * XplatUI.cs, XplatUIDriver.cs:
29289           - Changed GetWindowPos to also provide client area size
29290
29291 2004-08-13 12:52  pbartok
29292
29293         * XplatUIX11.cs:
29294           - Added generation of WM_POSCHANGED
29295           - Changed GetWindowPos to also provide client area size
29296
29297 2004-08-13 12:52  pbartok
29298
29299         * Control.cs:
29300           - Added Dispose() and destructor
29301           - Fixed resizing and bounds calculation
29302           - Fixed Layout
29303           - Added memory savings for invisible windows
29304
29305 2004-08-13 12:46  jordi
29306
29307         * TrackBar.cs: adds timer and grap window
29308
29309 2004-08-13 10:25  jackson
29310
29311         * Timer.cs: SWF Timer
29312
29313 2004-08-12 16:59  pbartok
29314
29315         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29316           - Implemented method to get current mouse position
29317
29318 2004-08-12 14:29  jordi
29319
29320         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
29321           enhancement, fix mouse problems, highli thumb, etc
29322
29323 2004-08-12 13:31  pbartok
29324
29325         * Control.cs:
29326           - Fixed Anchoring bugs
29327
29328 2004-08-12 13:01  jackson
29329
29330         * StatusBar.cs: Don't forget things
29331
29332 2004-08-12 12:54  jackson
29333
29334         * ThemeWin32Classic.cs: Handle owner draw status bars
29335
29336 2004-08-12 12:54  jackson
29337
29338         * StatusBar.cs: Implement missing properties, events, and methods.
29339           Handle mouse clicking
29340
29341 2004-08-12 10:19  jackson
29342
29343         * StatusBarPanelClickEventArgs.cs,
29344           StatusBarPanelClickEventHandler.cs: Classes for handling status
29345           bar panel click events
29346
29347 2004-08-12 10:10  jackson
29348
29349         * Control.cs: Add missing properties
29350
29351 2004-08-12 09:46  pbartok
29352
29353         * BindingsManagerBase.cs:
29354           - Name changed to BindingManagerBase.cs
29355
29356 2004-08-12 09:25  jordi
29357
29358         * ScrollableControl.cs: calls ctrlbase instead of exeception
29359
29360 2004-08-11 16:28  pbartok
29361
29362         * InputLanguageChangingEventArgs.cs:
29363           - Never check in before compiling. Fixes the last check-in
29364
29365 2004-08-11 16:26  pbartok
29366
29367         * InputLanguageChangingEventArgs.cs:
29368           - More signature fixes
29369
29370 2004-08-11 16:20  pbartok
29371
29372         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
29373           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
29374           ImageListStreamer.cs, InputLanguage.cs,
29375           InputLanguageChangedEventArgs.cs,
29376           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
29377           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
29378           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
29379           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29380           - Signature fixes
29381
29382 2004-08-11 16:16  pbartok
29383
29384         * Application.cs:
29385           - Fixed Signature
29386           - Added .Net 1.1 method
29387
29388 2004-08-11 15:25  pbartok
29389
29390         * SWF.csproj:
29391           - Fixed BindingManagerBase.cs filename
29392
29393 2004-08-11 15:22  pbartok
29394
29395         * BindingManagerBase.cs:
29396           - Was checked in with wrong filename
29397
29398 2004-08-11 14:50  pbartok
29399
29400         * SWF.csproj:
29401           - Updated
29402
29403 2004-08-11 13:41  jordi
29404
29405         * XplatUIWin32.cs: Fixes ClientRect
29406
29407 2004-08-11 13:19  pbartok
29408
29409         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
29410           XplatUIX11.cs:
29411           - We had SetWindowPos and MoveWindow to set window positions and
29412             size, removed MoveWindow. We have GetWindowPos, so it made sense to
29413             keep SetWindowPos as matching counterpart
29414           - Added some X11 sanity checking
29415
29416 2004-08-11 12:59  pbartok
29417
29418         * Control.cs:
29419           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
29420             (It seems that SetBounds is just a front for SetBoundsCore and
29421              SetBoundsCore updates the underlying window system and
29422              UpdateBounds is responsible for updating the variables associated
29423              with the Control and sending the events)
29424           - Major cleanup of Size handling; we now have two sizes, client_size
29425             and bounds. Bounds defines the window with decorations, client_size
29426             without them.
29427
29428 2004-08-11 12:55  pbartok
29429
29430         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29431           - Added method to calculate difference between decorated window and
29432             raw client area
29433
29434 2004-08-11 12:54  pbartok
29435
29436         * Label.cs:
29437           - Forcing redraw on resize
29438
29439 2004-08-11 11:43  pbartok
29440
29441         * ImageList.cs:
29442           - Removed disposing of the actual images when the list is disposed
29443
29444 2004-08-11 09:13  pbartok
29445
29446         * Control.cs:
29447           - Now properly reparents windows
29448
29449 2004-08-11 08:37  pbartok
29450
29451         * Control.cs:
29452           - Duh!
29453
29454 2004-08-11 07:47  pbartok
29455
29456         * Control.cs:
29457           - Rewrote the collection stuff. Might not be as fast now, not
29458             keeping the number of children around and accessible directly, but
29459             it's more straightforward
29460
29461 2004-08-11 07:44  pbartok
29462
29463         * AccessibleObject.cs:
29464           - Fixed to match ControlCollection rewrite
29465
29466 2004-08-11 07:43  pbartok
29467
29468         * ImageList.cs:
29469           - Added missing creation of the collection list
29470
29471 2004-08-10 20:08  jackson
29472
29473         * StatusBar.cs: Get the paint message from WndProc
29474
29475 2004-08-10 19:31  jackson
29476
29477         * ThemeWin32Classic.cs: Create Brushes as little as possible
29478
29479 2004-08-10 19:20  jackson
29480
29481         * UICues.cs: Add Flags attribute
29482
29483 2004-08-10 19:19  jackson
29484
29485         * StatusBarPanel.cs: Signature cleanup
29486
29487 2004-08-10 19:10  jackson
29488
29489         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
29490           Initial implementation of status bar item drawing
29491
29492 2004-08-10 17:27  jordi
29493
29494         * TrackBar.cs: add missing methods, properties, and restructure to
29495           hide extra ones
29496
29497 2004-08-10 16:24  jackson
29498
29499         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
29500           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
29501           attribute
29502
29503 2004-08-10 13:21  jordi
29504
29505         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
29506           enhancements and standarize on win colors defaults
29507
29508 2004-08-10 12:52  jackson
29509
29510         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
29511           ThemeWin32Classic.cs: Implement DrawItem functionality
29512
29513 2004-08-10 12:47  jordi
29514
29515         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
29516
29517 2004-08-10 12:32  jordi
29518
29519         * Control.cs: throw ontextchange event
29520
29521 2004-08-10 11:43  pbartok
29522
29523         * Control.cs:
29524           - Added more to the still unfinished Dock/Anchor layout code
29525
29526 2004-08-10 11:39  pbartok
29527
29528         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
29529           - Added GetWindowPos method
29530
29531 2004-08-10 11:36  pbartok
29532
29533         * XplatUIWin32.cs:
29534           - Implemented several methods
29535
29536 2004-08-10 09:47  jackson
29537
29538         * TrackBar.cs: Allow control to handle buffering
29539
29540 2004-08-10 09:41  jackson
29541
29542         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
29543
29544 2004-08-10 09:24  jackson
29545
29546         * Label.cs, LinkLabel.cs: Let Control handle buffering.
29547
29548 2004-08-10 09:09  jackson
29549
29550         * StatusBar.cs: Let Control handle all the buffering.
29551
29552 2004-08-10 09:08  jackson
29553
29554         * Control.cs: Control will now handle the buffering code, so each
29555           control does not have to implement this.
29556
29557 2004-08-10 08:34  jackson
29558
29559         * XplatUIDriver.cs: Use default colors from the theme
29560
29561 2004-08-09 17:12  pbartok
29562
29563         * ImageList.cs:
29564           - Fixed several bugs Ravindra pointed out
29565
29566 2004-08-09 16:11  pbartok
29567
29568         * Control.cs:
29569           - Added incomplete dock layout code
29570           - Added support for mouse wheel
29571
29572 2004-08-09 16:09  pbartok
29573
29574         * XplatUIX11.cs:
29575           - Added handling for middle and right mousebutton
29576           - Added handling for mouse wheel
29577           - Added handling for key state and mouse state and position
29578           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
29579           messages
29580
29581 2004-08-09 15:40  jackson
29582
29583         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
29584           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
29585           checkin
29586
29587 2004-08-09 15:37  jackson
29588
29589         * StatusBar.cs: Initial implementation of StatusBar
29590
29591 2004-08-09 15:36  jackson
29592
29593         * ITheme.cs: Add support for drawing status bar and getting status
29594           bar item sizes
29595
29596 2004-08-09 15:35  pbartok
29597
29598         * MouseButtons.cs:
29599           - Fixed values
29600
29601 2004-08-09 15:34  jackson
29602
29603         * ThemeWin32Classic.cs: Add support for drawing status bar and get
29604           status bar item sizes
29605
29606 2004-08-09 15:21  jackson
29607
29608         * ThemeWin32Classic.cs: Use known colors for default control
29609           colours
29610
29611 2004-08-09 15:12  jackson
29612
29613         * ThemeWin32Classic.cs: Make the default font static, it is static
29614           in control so this doesn't change functionality and creating fonts
29615           is sloooooow.
29616
29617 2004-08-09 14:56  pbartok
29618
29619         * X11Structs.cs:
29620           - Added GrabMode enum
29621
29622 2004-08-09 14:55  pbartok
29623
29624         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29625           - Removed Run method, was only required for initial development
29626
29627 2004-08-09 14:51  pbartok
29628
29629         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29630           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
29631           capture
29632
29633 2004-08-09 13:48  pbartok
29634
29635         * XplatUIX11.cs:
29636           - Fixed default sizing for child windows
29637
29638 2004-08-09 12:56  pbartok
29639
29640         * XplatUIX11.cs:
29641           - Added generation of WM_DESTROY message
29642           - Added handling of window manager induced shutdown
29643
29644 2004-08-09 11:31  jackson
29645
29646         * ThemeWin32Classic.cs: New names for control properties
29647
29648 2004-08-09 11:25  jackson
29649
29650         * Control.cs: Use new color names
29651
29652 2004-08-09 11:02  jackson
29653
29654         * XplatUI.cs: Get default window properties from the theme
29655
29656 2004-08-09 11:01  jackson
29657
29658         * ITheme.cs: The theme engine now controls default window
29659           properties
29660
29661 2004-08-09 11:00  jackson
29662
29663         * ThemeWin32Classic.cs: Add default window color properties
29664
29665 2004-08-09 10:17  jackson
29666
29667         * ThemeWin32Classic.cs: Use correct default back color
29668
29669 2004-08-09 10:05  jackson
29670
29671         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
29672           the theme now.
29673
29674 2004-08-09 09:56  jackson
29675
29676         * XplatUI.cs: Remove defaults, these are handled by the theme now.
29677
29678 2004-08-09 09:54  jackson
29679
29680         * Control.cs: Get default properties from the theme.
29681
29682 2004-08-09 09:53  jackson
29683
29684         * ITheme.cs: Themes now handle default control properties
29685
29686 2004-08-09 09:53  jackson
29687
29688         * ThemeWin32Classic.cs: Themes now handle default control
29689           properties so coloring will be consistent
29690
29691 2004-08-08 16:54  jordi
29692
29693         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
29694
29695 2004-08-08 15:08  jordi
29696
29697         * XplatUIX11.cs: fixes keyboard crash
29698
29699 2004-08-08 13:47  jordi
29700
29701         * Label.cs: add cvs header info
29702
29703 2004-08-08 12:09  jackson
29704
29705         * ThemeWin32Classic.cs: Add pen_buttonface
29706
29707 2004-08-08 11:52  jordi
29708
29709         * Label.cs, LinkLabel.cs: [no log message]
29710
29711 2004-08-08 11:34  jordi
29712
29713         * ThemeWin32Classic.cs: Use Windows Standard Colours
29714
29715 2004-08-07 17:32  jordi
29716
29717         * TrackBar.cs: throw exceptions of invalid enums values
29718
29719 2004-08-07 17:31  jordi
29720
29721         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
29722           draw method name
29723
29724 2004-08-07 16:56  jackson
29725
29726         * HorizontalAlignment.cs: Initial checkin
29727
29728 2004-08-07 13:16  jordi
29729
29730         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
29731           methods
29732
29733 2004-08-07 13:05  jordi
29734
29735         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
29736           GetSysColor defines
29737
29738 2004-08-06 18:01  pbartok
29739
29740         * ThemeWin32Classic.cs:
29741           - Fixed some rounding issues with float/int
29742
29743 2004-08-06 18:00  jackson
29744
29745         * DockStyle.cs, AnchorStyles.cs:
29746
29747                   Add flags and serializable attributes.
29748
29749 2004-08-06 17:46  pbartok
29750
29751         * XplatUIX11.cs:
29752           - Implemented GetParent
29753
29754 2004-08-06 17:18  pbartok
29755
29756         * TrackBar.cs:
29757           - Fixed some rounding issues with float/int
29758
29759 2004-08-06 17:17  pbartok
29760
29761         * X11Structs.cs, XplatUIX11.cs:
29762           - Fixed Refresh and Invalidate
29763
29764 2004-08-06 15:30  pbartok
29765
29766         * Control.cs, X11Structs.cs, XplatUIX11.cs:
29767           - Fixed recursive loop when resizing
29768           - Improved/fixed redrawing on expose messages
29769
29770 2004-08-06 09:53  jordi
29771
29772         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
29773           keyboard navigation
29774
29775 2004-08-06 08:02  pbartok
29776
29777         * X11Structs.cs, XplatUIX11.cs:
29778           - Fixed reparenting
29779           - Fixed window border creation
29780
29781 2004-08-05 15:38  pbartok
29782
29783         * XplatUIX11.cs:
29784           - Attempted fix for reparenting problems
29785
29786 2004-08-04 15:14  pbartok
29787
29788         * Control.cs:
29789           - Fixed Invalidation bug (calculated wrong client area)
29790           - Added ClientSize setter
29791
29792 2004-08-04 15:13  pbartok
29793
29794         * Form.cs:
29795           - Added AutoScale properties
29796
29797 2004-08-04 15:13  pbartok
29798
29799         * SWF.csproj:
29800           - Added latest files
29801
29802 2004-08-04 14:11  pbartok
29803
29804         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
29805           XplatUIX11.cs:
29806           - Added Invalidate handling
29807
29808 2004-08-03 17:09  jordi
29809
29810         * XplatUIDriver.cs: fixes spelling mistake
29811
29812 2004-07-27 09:53  jordi
29813
29814         * TrackBar.cs: fixes trackbar events, def classname, methods
29815           signature
29816
29817 2004-07-27 09:29  jordi
29818
29819         * ScrollBar.cs: fixes scrollbar events
29820
29821 2004-07-27 04:38  jordi
29822
29823         * Control.cs: changes to be able to run winforms samples
29824
29825 2004-07-26 11:42  jordi
29826
29827         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
29828           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
29829
29830 2004-07-26 05:41  jordi
29831
29832         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
29833           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
29834           implementation
29835
29836 2004-07-22 09:22  jordi
29837
29838         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
29839           check link overlapping, implement events, and fixes
29840
29841 2004-07-21 10:28  jordi
29842
29843         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
29844
29845 2004-07-21 10:19  jordi
29846
29847         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
29848           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
29849           LinkLabelLinkClickedEventArgs.cs,
29850           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
29851           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
29852           implementation
29853
29854 2004-07-19 13:09  jordi
29855
29856         * Control.cs, Label.cs: label control re-written: added missing
29857           functionlity, events, and properties
29858
29859 2004-07-19 10:49  jordi
29860
29861         * Control.cs: fixes SetBounds logic
29862
29863 2004-07-19 01:29  jordi
29864
29865         * Control.cs: Call RefreshWindow only if the window has created
29866
29867 2004-07-15 14:05  pbartok
29868
29869         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
29870           - Implemented ImageList and ImageList.ImageCollection classes
29871           - Added ColorDepth enumeration
29872           - Updated SWF VS.Net project
29873
29874 2004-07-15 11:06  jordi
29875
29876         * XplatUIStructs.cs: added MsgButons enum
29877
29878 2004-07-15 11:03  jordi
29879
29880         * Control.cs: added basic mouse handeling events
29881
29882 2004-07-15 03:38  jordi
29883
29884         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
29885           Vertical TrackBar control implementation
29886
29887 2004-07-13 09:33  jordi
29888
29889         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
29890
29891 2004-07-13 09:31  jordi
29892
29893         * Control.cs, Form.cs: commit: new properties and fixes form size
29894           problems
29895
29896 2004-07-09 14:13  miguel
29897
29898         * ProgressBar.cs: Spelling
29899
29900 2004-07-09 11:25  pbartok
29901
29902         * ProgressBar.cs:
29903           - Removed usage of Rectangle for drawing. Miguel pointed out it's
29904           faster
29905
29906 2004-07-09 11:17  miguel
29907
29908         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
29909
29910                 * ProgressBar.cs: Fixed spelling for `block'
29911
29912                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
29913                 style guidelines.
29914
29915                 Avoid using the += on rect.X, that exposed a bug in the compiler.
29916
29917 2004-07-08 23:21  pbartok
29918
29919         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
29920           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
29921           BaseCollection.cs, Binding.cs, BindingContext.cs,
29922           BindingMemberInfo.cs, BindingsCollection.cs,
29923           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
29924           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
29925           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
29926           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
29927           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
29928           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
29929           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
29930           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
29931           FrameStyle.cs, GiveFeedbackEventArgs.cs,
29932           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
29933           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
29934           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
29935           InputLanguageChangedEventArgs.cs,
29936           InputLanguageChangedEventHandler.cs,
29937           InputLanguageChangingEventArgs.cs,
29938           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
29939           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
29940           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
29941           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
29942           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
29943           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
29944           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
29945           QueryAccessibilityHelpEventArgs.cs,
29946           QueryAccessibilityHelpEventHandler.cs,
29947           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
29948           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
29949           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
29950           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
29951           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
29952           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
29953           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
29954           XplatUIX11.cs, lang.cs:
29955           - Initial check-in
29956
29957