In System.Windows.Forms:
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2
3         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
4         text is empty.
5
6 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7
8         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
9         text is empty.
10
11 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
12
13         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
14         prevent calling of OnBackColorChanged. Fixes #325321.
15
16 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
17
18         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
19         because control can be disabled because owner is disabled.
20
21 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
22
23         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
24         string.Empty, test failed from previous change.
25
26 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
27
28         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
29         is null, not String.Empty.  See bug #323038.
30
31 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
32
33         * TextControl.cs: Change the margins to match MS a little better.
34         Still not perfect for X11 due to some DrawString differences, but
35         is still an improvement over the old stuff.
36         Partially fixes #324467.
37
38 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
39
40         * FolderBrowserDialog.cs: When using MyComputer as 
41         RootFolder, let absolute paths be considered as valid ones. Also, use
42         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
43         for Windows compatibility.
44         Partially fixes #325247.
45
46 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
47
48         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
49         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
50         method, since it causes the dialog to not select folders directly
51         under the root path (when setting SelectedPath property).
52
53 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
54
55         * TreeNode.cs: When calling Expand/Collapse and need to call 
56         ExpandBelow/CollapseBelow respectively, take into account
57         partially visible nodes (previously Expanding/Collapsing
58         a partially visible node in the bottom was not updating its +- sign).
59
60 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
61
62         * TreeView.cs: When calling Expand on a TreeNode, and we need to
63         expand nodes below (ExpandBelow), scroll the entire Viewport
64         area if the node is above it and not visible (instead of scrolling
65         the area from node's Bottom, which applies only when the node is
66         visible).
67         Fixes #325266.
68
69 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
70
71         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
72         node in the bottom area (as .Net does). This is done to preserve the
73         scroll position when ExpandAll is called before handle is created for
74         the 1.1 profile (bottom area, as opposed to top area in 2.0).
75         Fixes #324103.
76
77 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
78
79         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
80         bottom area if we are in fact not using the vertical scroll bar.
81         Fixes #324824.
82
83 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
84
85         * Control.cs: Comment out a double buffering optimization that doesn't
86         take into account invalidates created in OnPaint, causing the control
87         to never be redrawn.  It would take quite a bit of work to work around
88         this, but I left it commented with an explanation for later possible
89         optimization.
90         [Fixes bug #328681]
91
92 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
93
94         * Control.cs: Ask parent to perform a layout if control is AutoSize and
95         the text changes.
96         * RadioButton.cs: Implement GetPreferredSizeCore.
97         [Fixes bug #328672]
98
99 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
100
101         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
102         corcompare stuffs.
103
104 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
105
106         * Application.cs: Move the sync context stuff to Run instead of RunLoop
107         so that it doesn't get uninstalled on modal forms.
108         * Control.cs: Install a sync context when a control is created.
109         * WindowsFormsSyncronizationContext.cs: Create a private static control
110         to invoke on.  This is easier than trying to find a created control we
111         can use.
112         [Fixes bug #327608]
113
114 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
115
116         * Application.cs: Install a WindowsFormsSynchronizationContext in the
117         run loop, and uninstall it when done.
118         * WindowsFormsSynchronizationContext.cs: Implement.
119         [Fixes the common case in bug #327608]
120
121 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
122
123         * DataGridViewCellCollection.cs: Added argument checks for indexers.
124         Use case-insensitive lookup of column name in indexer. Code
125         formatting.
126
127 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
128
129         * TreeNode.cs: When collapsing or expanding a node, check whether its
130         change will affect the visible area (we were previously doing a
131         IsVisible check, but that check is not enough since children nodes
132         could be still visible). Fixes part of #325266.
133
134 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
135
136         * TreeView.cs: Always select the first node when the TreeView gets
137         focus if there is no currently selected node.
138         [Fixes bug #324279]
139
140 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
141
142         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
143         node being selected is null.
144         [Patch from Yves Bastide fixes bug #326858]
145
146 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
147
148         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
149         whether all the parent nodes are expanded.
150         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
151         call RecalculateVisibleOrder if all previous nodes are expanded.
152         Before that we were doing a IsVisible check, but sometimes the node
153         is not in the visible area, but _should_already be ready, because of
154         all previous nodes are expanded. Fixes #325259.
155
156 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
157
158         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
159         portion of the item is clicked.
160
161 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
162
163         * TextControl.cs: Do not tell the system to move the cursor if the
164         textbox isn't focused.  Fixes part of bug #322668.
165
166 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
167
168         * ComboBox.cs: When there are no items, do not show the dropdown if
169         the down arrow is clicked.  Fixes part of bug #322668.
170
171 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
172
173         * ToolStripComboBox.cs: Manually set the size of this control in the
174         constructor, as it doesn't seem to be the same as DefaultSize.
175         Fixes a failing monobuild test.
176
177 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
178
179         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
180         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
181
182 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
183
184         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
185         Desktop.  This lets it work for people who have moved their desktops
186         from the default location on windows.  For people who have not, both
187         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
188
189 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
190
191         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
192         but when the base constructor sets this, the control is null.  Set it
193         again in the constructor.  Fixes a failing monobuild test.
194
195 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
196
197         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
198         get called.
199         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
200         called.
201
202 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
203
204         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
205         will handle it themselves.
206         * ToolStripItem.cs: When deciding what the text of a tooltip should
207         be, use the Text property instead of the text field.
208         * ToolStripTextBox.cs: Handle tooltips.
209         [Fixes bugs #325417 and #325973]
210
211 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
212
213         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
214         left click.  Fixes the easy part of bug #325969.
215
216 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
217
218         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
219         bug #325406, but set a minimum for StatusStrip to 22 to keep
220         bug #325390 fixed.  I think this minimum would have been figured
221         up automatically if the grip was actually a ToolStripItem, but it
222         currently is not.
223
224 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
225
226         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
227         as this is apparently the actual value used by .Net. Also apply
228         ItemPadding in Details view only, and decrease the general width padding,
229         to have only the needed. This should fix #324340 in Windows too.
230
231 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
232
233         * ListViewItem.cs: Don't Invalidate item if parent is inside
234         a BeginUpdate/EndUpdate block. This prevents to have differences
235         between the ListView and items state, as well as avoid some exceptions
236         there.
237         * ListView.cs: Make 'updating' field internal.
238
239 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
240
241         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
242         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
243         size if appropriate.
244         Fixes reopened bug #325414.
245
246 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
247
248         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
249         * ToolStripItem.cs: Invalidate before and after our new autosize when
250         text changes.
251         Fixes reopened bug #325390.
252
253 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
254
255         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
256         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
257         #325044.
258
259 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
260
261         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
262
263 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
264
265         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
266         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
267         #82734.
268
269 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
270
271         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
272         item to select when the ToolStrip is selected.
273         * ToolStripControlHost: Realign the control when the bounds or visibility
274         change.
275         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
276         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
277         preferred height.
278         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
279         base.OnPaint.  Was causing text not to be drawn.
280
281 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
282
283         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
284
285 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
286
287         * TreeView.cs: When creating the label edit text box,
288         set is initially to Visible = false. This is done to
289         prevent a confusion in the layout which makes it to lose
290         focus when shown the first time. Fixes part of #82592.
291
292 2007-09-13 Andreia Gaita <avidigal@novell.com>
293
294         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
295
296 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
297
298         * ToolStrip.cs: Take Margin into account when calculating preferred
299         size.  Also, allow preferred size to get smaller than the explicit
300         size.
301         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
302         First step towards fixing bug #82747.
303
304 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
305
306         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
307         full row select background over the plus/minus glyph.  Also, turn
308         off the focus rectangle for full row select since MS doesn't seem
309         to ever paint it.  [Fixes bug #81839]
310
311 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
312
313         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
314         This was causing keyboard opened dropdowns to lose focus.
315         [Fixes bug #82803]
316
317 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
318
319         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
320         ClientRectangle instead.  [Fixes bug #82838]
321
322 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
323
324         * SplitContainer.cs: We can't reset Visible on every layout because
325         someone may have set Visible = false explicitly on a SplitterPanel.
326         Make sure when we switch orientation the SplitterDistance does not
327         change.  Fixes two failing tests.
328
329 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
330
331         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
332         TextRenderer, since the latter is only available in 2.0.
333
334 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
335
336         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
337         * SplitContainer.cs: Implement FixedPanel layouting.
338
339 2007-09-12  Andreia Gaita  <avidigal@novell.com>
340
341         * WebBrowserBase.cs: setup shutdown routine
342
343 2007-09-12  Andreia Gaita  <avidigal@novell.com>
344
345         * Application.cs: Let keyboard events that are targetted 
346                 to non-mwf windows hosted inside mwf (as in, webbrowser),
347                 propagate properly. Fixes keyboard handling on the webbrowser.
348
349 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
350
351         * ListView.cs: When handling MouseUp event and we are 
352         highligting a node with the mouse right button, don't trigger
353         Before/AfterSelecting event, since we are not actually selecting
354         the node.
355
356 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
357
358         * TreeView.cs: When editing a node, modify the edit text box
359         depending on the text length (as you are typing), like MS does.
360
361 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
362
363         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
364         Override GetPreferredSizeCore to perform calculations.  Remove custom
365         autosize logic.  [Fixes bug #82739]
366
367 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
368
369         * TextBoxBase.cs: Modified should default to false.
370
371 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
372
373         * Control.cs: Update the anchoring distances even when layout is supspended.
374         Patch provided by George fixes bug #82805.
375
376 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
377
378         * Control.cs: Provide a setter for ExplicitHeight.
379         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
380         remove the hacks in here for requested_height.
381         [Fixes bug #82749]
382
383 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
384
385         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
386         Maximum to lower that its current Value caused an ArgumentException by setting
387         the Value to the new Maximum.
388
389 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
390
391         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
392         handle moves to the closest tick when it is being dragged.
393         [Fixes bug #82751]
394
395 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
396
397         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
398         can't let them count as real items when calculating where to merge in the
399         user's items.  [Fixed bug #82786]
400
401 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
402
403         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
404         who want to add a menu item directly onto a toolstrip.
405         [Fixes bug #82775, part II]
406
407 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
408
409         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
410         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
411         don't set it to available.
412         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
413         [Fixes bug #82727, part II]
414
415 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
416
417         * StatusStrip.cs: Change item placement to None if not visible.
418         * ToolStripItem.cs: Invalidate when InternalVisible changes.
419         These should have been committed to fix 82723, but I missed them.
420
421 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
422
423         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
424         Click, and that it is only called once.
425         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
426         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
427         dropped down.
428         [Fixes bug #82775]
429
430 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
431
432         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
433         to match .Net.
434         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
435         instead of 8, just like above. Partially fixes #82734.
436
437 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
438
439         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
440         fixes #82734.
441
442         * ListView.cs: Remove extra space between rows in Details view (match
443         .Net). 
444         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
445         the DefaultFont.
446
447 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
448
449         * Application.cs: Modified ProductVersion to return value of
450         AssemblyInformationVersion if available, and fallback to assembly
451         version. Fixes bug #82746. Code formatting.
452         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
453         instead.
454
455 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
456
457         * Control.cs: When updating ZOrder for a child control,
458         take into account the implicit ones (we need it in our controls
459         using them). Fixes #82642.
460
461 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
462
463         * ToolStripItem.cs: Add support for animated images.
464         [Fixes bug #82726]
465
466 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
467
468         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
469         visible.  [Fixes bug #82727]
470
471 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
472
473         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
474         so we repaint using the new size.  [Fixes bug #82723]
475
476 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
477
478         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
479         option.  [Fixes bug #81779]
480
481 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
482
483         * TreeView.cs: Override HandleClick because the StandardClick style is
484         set to false.  According to MSDN (and testing), the click events should
485         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
486
487 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
488
489         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
490         the border will disappear.  Fixes reopened #82653.
491
492 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
493
494         * Control.cs: If the control is autosize, and its preferred size changes
495         when it lays out its children, tell its parent so it can be re-layed out.
496         Fixing some of the fallout from r85433.
497
498 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
499
500         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
501         and CheckBox share some code.
502
503 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
504
505         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
506         the TrackBar, not every mouse move.  [Fixed bug #82718]
507
508 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
509
510         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
511         under 2.0 rendering.  [Fixes bug #82657]
512
513 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
514
515         * TreeView.cs: If we found a TreeNode to display a context menu, but
516         it doesn't have one to show, let the TreeView display its menu
517         instead.  [Fixes bug #82680]
518
519 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
520
521         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
522         OnPaintInternal instead.  Give the internal TextBox a Border property
523         so it can draw itself more correctly.  [Fixes bug #82653]
524
525 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
526
527         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
528
529 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
530
531         * ComboBox.cs: Adjust combobox button state to reflect current state when
532         back to enabled = true. Fixes first issue of #82654.
533
534 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
535
536         * Control.cs: Fix last patch regression, prevent forms to update zorder when
537         setting visible property.
538
539 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
540
541         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
542         fix zorder for controls initially created as non visible. Fixes #82667.
543
544 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
545
546         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
547         mimic win32 look. Fixes #82656.
548
549 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
550
551         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
552         Stubs for new net 3.5 classes.
553
554 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
555
556         * ListViewItem.cs: In ListViewItemCollection operations calculate
557         Layout for owner as well as invalidate it. Fixes part of #82642.
558
559 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
560
561         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
562         when returning Enabled.  [Fixes bug #82651]
563
564 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
565
566         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
567
568 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
569
570         * ListView.cs: Put item padding info in a single place
571         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
572         columns again.
573         * ThemeWin32Classic.cs:
574         * Theme.cs: Likewise.
575
576 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
577
578         * ListView.cs: When a ListViewSubItem instance is invalidated,
579         invoke Invalidate on parent ListViewItem, not parent ListView.
580         Fixes #81570.
581
582 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
583
584         * ListView.cs, ListViewItem.cs: corcompare stuffs.
585
586 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
587
588         * BindingMemberInfo.cs: Implement == and != operators.
589
590 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
591
592         * HtmlElementEventArgs.cs: Implement properties.
593
594 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
595
596         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
597
598 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
599
600         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
601         Add (string,string,string) to implement the imagekey.  It turns out, we
602         use the requested imagekey whereas .Net does not.  So I broke ours to match
603         theirs.  :(
604
605 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
606
607         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
608
609 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
610
611         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
612
613 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
614
615         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
616         up-to-date. Fixes bug #82618.
617
618 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
619
620         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
621         reflect document changes. Fixes #82367.
622
623 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
624
625         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
626         as well as add new ones. This should make work the BackgroundImage
627         property for ListView again.
628
629 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
630
631         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
632         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
633         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
634
635 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
636
637         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
638         IsKeyLocked.
639
640 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
641
642         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
643         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
644
645 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
646
647         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
648         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
649
650 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
651
652         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
653
654 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
655
656         * GridEntry.cs: Implement GetService.
657
658 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
659
660         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
661         for label editting, make sure we focus back on the TreeView.
662         [Fixes bug #82590]
663
664 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
665
666         * ListView.cs: Add some 2.0 overrides.
667
668 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
669
670         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
671         because getter dont returns right value before handle creation. Thanks 
672         to George. Fixes #82569.  
673
674 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
675
676         * Theme.cs: Revert last patch, it causes error under win32. 
677
678 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
679
680         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
681         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
682         logical Desktop rather than the physical file system location. Fixes #82603. 
683
684 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
685
686         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
687         for the patch. Fixes #82568.
688
689 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
690
691         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
692         methods.
693
694 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
695
696         * ListViewInsertionMark.cs: New stubbed class.
697
698 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
699
700         * FolderBrowserDialog.cs: When adding folder, immediately create the
701         directory with temporary name and rename the directory when editing
702         finishes. This matches MS. Ensure the node for the new folder is 
703         selected and LabelEdit is disabled, when editing is either finished
704         or cancelled.
705
706 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
707
708         * TreeView.cs: When editing label of node, ensure node is visible.
709
710 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
711
712         * PropertyGridView.cs: Set the value only if it has changed.
713
714 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
715
716         * ListView.cs: Some more code refactoring to add support sorting
717         with groups (now for Details view). Remove unused code also.
718
719 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
720
721         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
722         Not a big fan of reacting immediately to a field in an EventArg, but that's
723         the way it's done.  (This is part of the previous commit that got left out.)
724
725 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
726
727         * FolderBrowserDialog.cs: Removed need for separate description field.
728         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
729         has focus when dialog box is displayed again, regardless of what
730         button was pressed the previous time. Set RootFolder and SelectedPath
731         each time dialog box is displayed. This ensures the treeview is
732         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
733         when it does not have focus. Added support for more special folders.
734
735 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
736
737         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
738         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
739         it resets the edit_args.
740         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
741         [Fixes bug #82577]
742
743 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
744
745         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
746         button to match MS. Provide more meaningful exception message for
747         invalid RootFolder value. Use zero-length string when SelectedPath
748         is set to null. Allow non-rooted paths in SelectedPath, but ignore
749         them in FolderBrowserTreeView. Allow folders to be created in
750         RootFolder. Fixes bug #82576.
751
752 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
753
754         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
755         since we need to take into account the group headers and the margin
756         between them.
757         * ListViewGroup.cs: Add a rows field to store the number of rows per
758         group.
759
760 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
761
762         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
763           Anyways, let's just follow the lead.
764
765 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
766
767         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
768         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
769         controls in GetPreferredSizeCore.
770         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
771         [Fixes bug #82488]
772
773 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
774
775         * PrintDialog.cs: Need to instantiate the form variable here too.
776
777 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
778
779         * ListView.cs: Do some reorganization to support sorting in groups,
780         by doing the layout sequentially in ListView.Items. Also add support
781         for the Default Group, which should be available for items with no
782         group assigned.
783         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
784         for storing layout info also.
785         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
786         collection, as well as providing internal members to do a traversal
787         including the default group (needed when doing layout/drawing).
788         * ThemeWin32Classic.cs: When drawing group headers use internal
789         ListViewGroupCollection members to take into account the default
790         group.
791
792 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
793
794         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
795
796 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
797
798         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
799         been created.  If handle is created, we want arror keys.  If we are editing
800         a node, we want things like enter, esc, home, end, page up, page down.
801         Allows Esc to work for FolderBrowserDialog.
802
803 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
804
805         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
806         they close when ESC is pressed.  Thanks Andy!
807
808 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
809
810         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
811         This way we can tell if this is a CommonDialog provided with mono, or one
812         that is being implemented outside by a developer.  If it is an external one,
813         the developer is responsible for showing their own form.  We were showing
814         our blank form after the developer showed his.
815         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
816         PageSetupDialog.cs: Instantiate form variable in our constructor.
817         [Fixes bug #82531]
818
819 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
820
821         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
822         and always return true.  [Fixes bug #81616]
823
824 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
825
826         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
827         TextBox.  [Fixes bug #82549]
828
829 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
830
831         * FileDialog.cs: When Save/Open is clicked and no filename is selected
832         or entered then do not close the dialog. Fixes bug #82539. Removed
833         CWLs.
834
835 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
836
837         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
838         code to this method. It is calling every time filter changes. This method
839         will help to fix the bug #80887.
840
841 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
842
843         * CheckBox.cs: Implement AutoSize calculation.
844
845 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
846
847         * CheckBox.cs: Use new 2.0 rendering for 2.0.
848         * Theme.cs: Method declarations for 2.0 rendering path.
849         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
850
851 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
852
853         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
854
855 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
856
857         * ListViewGroupCollection.cs: Implement AddRange the right way, to
858         only call Redraw on the parent one time.
859
860 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
861
862         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
863           GetClipboardContent.
864         * DataGridViewCell.cs: Implemented GetClipboardContent,
865           GetEditedFormattedValue, GetFormattedValue.
866         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
867
868 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
869
870         * TableLayoutStyleCollection.cs: corcompare fix.
871
872 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
873
874         * DataObject.cs: Implemented retrieval of convertible / not convertible
875           objects.
876
877 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
878
879         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
880         ourselves.  This ensures the entire old bounds are repainted, in case our new
881         size is smaller.  [Fixes bug #82518]
882
883 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
884
885         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
886         flag to make fast handle of mouse events, without this the mouse move is
887         handled in some manner, whether it is a mouse move or not. Fixes #81588.
888
889 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
890
891         * ListView.cs: When doing layout calculations don't use a ref
892         param to keep the current item; instead use its Index value (this 
893         is specially important when doing the layout with Groups
894         and Items being sparse). Also don't take into account items added to
895         the Group but not yet added to the main ListView.Items collection.
896
897 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
898
899         * ListViewGroupCollection.cs: Forgot to mimic an issue
900         in the indexer (don't assign the ListView owner for new values).
901
902 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
903
904         * ListViewGroupCollection.cs: Make the string indexer use
905         the int based indexer to re-use code, instead of duplicate the code.
906         Also Redraw as needed and take into account null values.
907
908 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
909
910         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
911         [Fixes bug #82481]
912
913 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
914
915         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
916         when other buttons are clicked or navigated to.
917
918 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
919
920         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
921           it's XplatUIX11 that attaches them.
922
923 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
924
925         * DataGridView.cs: If a column has been added, recreate the editing row.
926           Fixes #82226.
927
928 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
929
930         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
931           of the tag to draw. Makes disappearing text show up again.
932
933 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
934
935         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
936           Contents. Fixes #82487.
937
938 2007-08-19  Andreia Gaita  <avidigal@novell.com>
939
940         * Added HtmlElement.cs, HtmlElementCollection.cs, 
941           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
942           
943 2007-08-19  Andreia Gaita  <avidigal@novell.com>
944
945         * BindingSource.cs: Implement this, dispose and getenumerator.
946         * DataGridViewRowCollection.cs: Move the InvalidOperationException
947         out of AddInternal, throw it only on public Add calls. The 
948         UsingWebBrowser sample was blowing up with this when setting the
949         DataSource after adding DataBindings, so it's likely that .net
950         only throws this exception when Add is called directly. 
951         
952         * ToolStripControlHost.cs: Return the hosted control's text
953         property, and not the ToolStripItem one (it would always return
954         the initial value).
955         
956         * HtmlDocument.cs: Implement GetElementById and All
957         * WebBrowser.cs: Remove exception on set_DocumentStream.        
958
959 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
960
961         * Form.cs: Fix the max and min value for opacity (0~1).
962
963 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
964
965         [Fixes #80118]
966         * DataGridTableStyle.cs: Default header font is now null, on getter it 
967         returns datagrid font when is null. On setter permits null.
968
969         * DataGrid.cs:
970         - When ResetHeaderFont set header font to null.
971         - On EndInit set grid_style.DataGrid.
972
973 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
974
975         * TabControl.cs: Fix regression in default padding x.
976
977 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
978
979         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
980
981 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
982
983         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
984         not 2. Fixes #82229.
985
986 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
987
988         * TabControl.cs: Fix tab size when image height is less than text height.
989         Partially fixes #81837.
990
991 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
992
993         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
994         "alt + tab". It works only for Win32, for X11 theres no way to remove window
995         from taskbar and keep it on "alt_tab". Fixes #81722.
996
997 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
998
999         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
1000         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
1001         Fixes #80877 and #79418.
1002
1003 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1004
1005         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
1006         between position and one of the screen borders. Fixes #82349.
1007
1008 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1009
1010         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
1011         the MessageBox in the taskbar. Fixes #82457.
1012
1013 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
1014
1015         * MessageBox.cs: Fix form size when icon is set and text height is bigger
1016         than icon. Fixes #82468.
1017
1018 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1019
1020         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
1021         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
1022           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
1023           Refactored HandleNCCalcSize somewhat to avoid code duplication.
1024         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
1025           FormBorderStyle to decide if we're calculating a new size from the
1026           client size or not. CreateParams: Don't fake tool windows, only the X11
1027           backend manages toolwindows manually.
1028
1029 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1030
1031         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
1032         ObjectDisposedException.
1033
1034 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1035
1036         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
1037         in OnLoad should not have any effect.  [Fixes bug #82470]
1038
1039 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1040
1041         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
1042         paint for controls that create their own ToolTipWindow instead of
1043         going through ToolTip.
1044
1045 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1046
1047         * ToolTip.cs: Make Hide internal instead of public to match MS API.
1048
1049 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1050
1051         * ListViewGroupCollection.cs: Use generic List instead of an
1052         ArrayList, since this collection is 2.0 only.
1053
1054 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
1055
1056         * ToolTip.cs (Hide): Made public to make the build work (should
1057         this not be public?).
1058
1059 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1060
1061         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
1062         ToolTipWindow.
1063         * ToolTip.cs: Add an internal Visible property to facilitate transition.
1064
1065 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
1066
1067         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
1068         PopupEventHandler.cs: Make these internal for 1.1.
1069         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
1070         use ToolTipWindow internals.
1071         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
1072         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
1073
1074 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1075
1076         * X11Dnd.cs: Add a null check.
1077
1078 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1079
1080         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
1081           nothing else succeeds. Fixes #82453.
1082
1083 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1084
1085         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
1086           rectangle if we're painting to another window than the one the paint
1087           message was generated on. Simplify the code somewhat, which makes
1088           PaintEventEnd also simpler.
1089
1090 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1091
1092         * Control.cs: When changing parent of a form, let the form decide whether
1093           XplatUI.SetParent should be called or not.
1094         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
1095           recreating the handle. If the new parent's handle isn't created, don't
1096           recreate our handle, just destroy it. CreateParams: Check if the
1097           parent's handle is created before fetching it.
1098
1099 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1100
1101         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
1102           Update calls to PaintEventStart/End to take a Message argument.
1103         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
1104           take a Message argument.
1105         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
1106           Message argument, and handle the case where we don't paint to the window
1107           for which the paint message was generated.
1108
1109 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1110
1111         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
1112           Marshal.GetLastWin32Error. Plug nasty memory leak in
1113           PaintEventStart/End, we were creating a DC we weren't releasing.
1114
1115 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1116
1117         * ListView.cs: Add Groups support in Details view. Also have a small
1118         method to do the layout of the group header. Don't use a separate
1119         method to do the groups calculation in Icons view, since our methods
1120         are now a little simpler.
1121         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
1122         `Bounds'.
1123         * ThemeWin32Classic.cs: Likewise.
1124
1125 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
1126
1127         * Application.cs: Add FilterMessage method and rework our message loop
1128         logic to use it.
1129
1130 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
1131
1132         * Application.cs: Add some methods and stub a few methods that are
1133         pretty much never used.
1134
1135 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
1136
1137         * TreeNode.cs: Add some serialization methods.
1138
1139 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1140
1141         * ListView.cs: In ListViewItemCollection have a 
1142         'is_main_collection' field to not modify ListViewItem.ListView
1143         when using it as ListViewGroup.Items (and not ListView.Items)
1144         and also don't modify selection state (.Net behaviour). 
1145         Instead, set group for items contained in a ListViewGroup.Items collection.
1146         * ListViewItem.cs: Simplify some code in Group setter.
1147         * ListViewGroup.cs: use the new .ctor to pass the current instance
1148         to the ItemsCollection.
1149         * ListViewGroup.cs: Set the ListView property for ListViewGroup
1150         instances when adding/removing. Also make Remove use RemoveAt, which
1151         should perform better.
1152
1153 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
1154
1155         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
1156         that crept into the 1.1 profile.
1157
1158 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
1159
1160         * ToolBarButton.cs: Implement ImageKey.
1161
1162 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
1163
1164         * ToolBar.cs: Implement ScaleControl/ScaleCore.
1165
1166 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1167
1168         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
1169           created, it might have gotten destroyed since we last checked. Fixes
1170           #82405.
1171
1172 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
1173
1174         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
1175         tooltip will hide when mouse is moved off the control.
1176         [Fixes bug #82407]
1177
1178 2007-08-11 Andreia Gaita <avidigal@novell.com>
1179
1180         * WebBrowserBase.cs, WebBrowser.cs: add implementation
1181         using Mono.Mozilla for loading and navigating webcontrol
1182         with xulrunner.
1183         The initial implementation was done on 
1184         /trunk/mozembed/tests/browser , and copied here.
1185
1186 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
1187
1188         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
1189         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
1190
1191 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1192
1193         * DataGridView.cs: Add support for an editing row. Fixes #82226.
1194           RowTemplateFull: throw an exception if a column doesn't have a template.
1195         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
1196           add the row just before it.
1197         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
1198           selected.
1199         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
1200           DataGridView field to be able to reach the grid's editing row.
1201
1202 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
1203
1204         * ToolTip.cs: If the control's handle hasn't been created when it has a
1205         tooltip set on it, don't check to see if we need to show the tooltip.  This
1206         check was causing the control's handle to be created.
1207         [Fixes bug #82399]
1208
1209 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
1210
1211         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
1212                                         1.1             2.0
1213         Handle Not Created      -1              0
1214         Handle Created          0               0
1215         [Fixes bug #82371]
1216
1217 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
1218
1219         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
1220         [Fixes bug #82348]
1221
1222 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
1223
1224         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
1225         * ToolTip.cs: Implement some properties and owner draw.
1226
1227 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1228
1229         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
1230           show them again, since setting visibility causes a paint, causing an
1231           endless loop (instead use a temporary and set it all when it's known if
1232           they should be shown or not). Fixes #79265.
1233
1234 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1235
1236         * DataGridView.cs: Only do a full column/row selection if a header was
1237           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
1238           isn't pressed, deselect everything before selecting something.
1239
1240 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1241
1242         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
1243           behaviour according to bug #81075 - they are returned in the order they
1244           are selected. Fix HitTest to check if the point is within any of the
1245           headers. Allow for row/column selection when in ColumnHeader or
1246           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
1247           the row and column to call when their selected state changes, and
1248           updated selected_[rows|columns] whenever SetSelected* is called.
1249         * DataGridViewBand.cs: Initialize isRow correctly. Call
1250           SetSelected[Row|Column]CoreInternal when the selected state changes, and
1251           add a SelectedInternal to avoid StackOverflows.
1252         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
1253           ReadOnly no matter what.
1254         * DataGridViewSelectedColumnCollection.cs,
1255           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
1256           the items in reverse order (just as MS does...)
1257
1258 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
1259
1260         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
1261         itself, not part of a mnemonic.  [Fixes bug #82378]
1262
1263 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1264
1265         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
1266         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
1267           the DGV, the column, the row, or the cell itself is readonly.
1268
1269 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
1270
1271         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
1272         OSVersion.Platform.
1273         * FileDialog.cs: Same.
1274         * TextRendered.cs: Same.
1275         * FolderBrowserDialog.cs: Same.
1276         * TextBoxBase.cs: Same.
1277         * Application.cs: Same.
1278         * Cursors.cs: Same.
1279         * ThemeClearLooks.cs: Same.
1280
1281 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
1282
1283         * XplatUI.cs: Added RunningOnUnix property to be used by controls
1284         instead of duplicating these checks everywhere.
1285         * FileDialog.cs: Use case-insensitive comparison for populating the
1286         DirComboBox when not running on unix. Fixes bug #82385.
1287         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
1288         "Look in".
1289
1290 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1291
1292         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
1293           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
1294           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
1295           cell and column selection with ctrl and shift pressed. Call the correct
1296           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
1297           the corresponding virtual method (PaintBackground to paint background,
1298           etc).
1299         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
1300           either the column, row or the cell itself is selected.
1301         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
1302           OnRowsAdded.
1303         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
1304           here. When the row is selected, don't select all cells. Each cell now
1305           queries the row to see if the row is selected.
1306
1307 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1308
1309         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
1310           SelectionMode.
1311
1312 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1313
1314         * ListView.cs: In ListViewItemsCollection check that owner is
1315         not null before trying to access it (this happens quite often
1316         using Groups). Also don't duplicate calls by calling CollectionChanged
1317         method.
1318
1319 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
1320
1321         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
1322         when we are dismissed to clear keyboard mnemonics.
1323         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
1324         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
1325         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
1326         was activated by keyboard or the OS tells us to always draw them.
1327         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
1328         [Fixes bugs #82376, #82377]
1329
1330 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
1331
1332         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
1333         shot at having it because Alt was pressed.
1334         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
1335         the first real menu item.
1336         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
1337         a mnemonic if Text is null.
1338         [Fixes bug #82374]
1339
1340 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1341
1342         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
1343         search do check whether the item is already contained in the
1344         collection or not; instead check if the owner of the item is the same
1345         as ours. Also, remove a redundant check in the same method. 
1346
1347 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
1348
1349         * Control.cs: Allow the clip region to be set back to null.
1350         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
1351         [Fixes button still showing up in bug #82370 when Show Through is turned off]
1352
1353 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1354
1355         * GridEntry.cs: Add a null check.
1356         * PropertyGrid.cs: When checking for existing grid entries, ignore category
1357           entries. Fixes #82297.
1358
1359 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
1360
1361         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
1362         for 2.0.
1363
1364 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
1365
1366         * ListBox.cs: Implement ScaleControl.
1367
1368 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1369
1370         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
1371           have a menu strip.
1372         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
1373           parent has a menu strip. Fixes #81689.
1374
1375 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1376
1377         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
1378           moments, so apply some fuzzy logic to determine if the mouse is still
1379           inside a control or not. Fixes #82288 (for the third time).
1380
1381 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1382
1383         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
1384           Don't create the child if it has been disposed already (may happen if
1385           the user closes the form the Load event).
1386
1387 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1388
1389         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
1390           #82288.
1391
1392 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1393
1394         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
1395           might call us after we've been destroyed, in which case our own private
1396           parent field is null. Fixes #82326.
1397
1398 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
1399
1400         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
1401         check for setting the dropdown's owner.
1402
1403 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
1404
1405         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
1406         before removing system menu items.
1407
1408 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
1409
1410         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
1411         folding.
1412         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
1413         folding.
1414         * ToolStrip.cs: Add a null check to mnemonics.
1415         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
1416         no ConnectedArea.
1417         [Fixes most of bug #81689]
1418
1419 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1420
1421         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
1422
1423 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1424
1425         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
1426
1427 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1428
1429         * DataGridViewCell.cs: EditType: returns
1430           DataGridViewTextBoxEditingControl always.
1431
1432 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
1433
1434         * TextRenderer.cs: Remove the LineLimit string format flag from the
1435         DrawString fallback method so that things like buttons that aren't
1436         tall enough to draw a full line will still draw part of the text.
1437         [Fixes part of bug #82272]
1438
1439 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1440
1441         * DataGridView.cs: Implemented AutoResizeColumn(s).
1442         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
1443           according to the Alignment.
1444         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
1445           Implement alignment and padding when painting.
1446         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
1447           exists.
1448         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
1449           way.
1450         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
1451           a column is added.
1452
1453 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
1454
1455         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
1456         which is internal.
1457
1458 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
1459
1460         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
1461         hide GetPreferredSize from public API.
1462         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
1463         * ToolStripItem.cs: Stub out drag and drop methods and events.
1464         * ToolStripManager.cs: Stub out Save/LoadSettings.
1465         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
1466         * ToolStripPanel.cs: Fix corcompare error.
1467         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
1468         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
1469         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
1470
1471 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
1472
1473         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
1474         bounds height instead of PreferredHeight.  Puts things back the way 
1475         they were for height while still fixing the width.  Fixes broken unit
1476         tests.
1477
1478 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1479
1480         * Binding.cs: Implement 2.0 constructors and add a null check.
1481
1482 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1483
1484         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
1485           and fix row index (off by one).
1486
1487 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1488
1489         * PropertyGridView.cs: Remove debug output.
1490
1491 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1492
1493         * Control.cs: We need to reset the is_created flags when the handle is
1494           destroyed. Fixes #82187.
1495         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
1496           client coordinates if the window doesn't have a parent.
1497           Win32GetParent returns the parent or the owner, and for top-level
1498           windows with no parent (but with an owner) we were calculating the
1499           location from the location of the owner.
1500         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
1501           form has been disposed.
1502         * MdiClient.cs: Add a null-check.
1503
1504 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
1505
1506         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
1507         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
1508         so we can provide an implementation that returns the current width
1509         and preferred height.  Allows anchor = right to work with TextBox 2.0.
1510         [Fixes bug #82233]
1511
1512 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1513
1514         * ListView.cs: Add support for navigating items in Groups mode, by
1515         creating a big matrix containing all rows and cols of all groups. When
1516         are in other mode than Details, pressing Up should have a similar
1517         behaviour as that one of Down (moving to the next available column if
1518         current one doesn't have an item in the requested row). Also, don't
1519         proceed to use groups if ShowGroups is false.
1520         * ListViewGroup.cs: Add an internal int field to store the starting
1521         row of the group (used by the big matrix used for navigating the
1522         ListView).
1523         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
1524         false.
1525
1526 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
1527
1528         * ToolStripDropDown.cs: When we do Show, start with the 
1529         DefaultDropDownDirection, but if our popup menu is going to off-screen,
1530         modify the direction to keep it on screen.  [Fixes bug #82210]
1531
1532 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
1533
1534         * FileDialog.cs: Accept any FilterIndex value, and store it
1535         unmodified. When FilterIndex is less than 1, or greater than number
1536         of filters, then default to first filter. Only add filter extension to
1537         file if user did not specifiy an extension. When type of dialog is
1538         OpenFileDialog and DefaultExt is set, then only use filter extension
1539         if: CheckFileExists is true and no file wih the default extension
1540         exists, or CheckFileExists is false, and user specified file does not
1541         exist. When CheckFileExists is true, then add first extension of 
1542         selected filter that matches existing file. Perform checks for
1543         existing file, overwrite and create after extension has been added to
1544         file name. When CheckFileExists is true and type is SaveFileDialog,
1545         then only consider first filter extension if DefaultExt is set.
1546         When CheckFileExists is true, then ignore DefaultExt if file with that
1547         extension does not exist. Also perform check for existing file when
1548         type is SaveFileDialog. Changed some field to constants.
1549
1550 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1551
1552         * ListView.cs: Take into account the region used by header
1553         control when doing the vertical scroll (this way we invalidate
1554         the precise area, and don't get any dirty one).
1555
1556 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
1557
1558         * FileDialog.cs: Check for valid filterIndex on button open/save. 
1559         Fixes #82184.
1560
1561 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1562
1563         * ListView.cs: Update some layout calculations in details view
1564         and clean the code in a pair of assignations.
1565
1566 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
1567
1568         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
1569         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
1570         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
1571         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
1572
1573 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
1574
1575         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
1576         performance of thread-safe Graphic methods.  (Thanks rolf!)
1577
1578 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1579
1580         * ListView.cs: When doing the layout calculations, don't calculate
1581         scroll bars before handle is created. This is unnecessary and also
1582         calculating them before handle creation item causes a number of random
1583         bugs (which begin to appear after Chris' big patch for handle creation
1584         fixes). 
1585
1586 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
1587
1588         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
1589         for things that don't have a Graphics object.  Currently, things just use
1590         the static Hwnd.bmp_g which is not thread safe.
1591
1592 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1593
1594         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
1595           dialog. Fixes #82187.
1596
1597 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1598
1599         * DataGridViewElement.cs: Initialize state.
1600         * DataGridView.cs: Forward a few Mouse events to cells. Add
1601           GetRowInternal and GetCellInternal that doesn't unshare rows.
1602           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
1603           don't use the index, but look it up. Add
1604           DataGridViewControlCollection.RemoveInternal to remove controls
1605           that Remove won't remove (scrollbars, edit control).
1606         * DataGridViewColumn.cs: Initialize State correctly.
1607         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
1608           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
1609           implementing this.
1610         * DataGridViewRowCollection.cs: Implemented shared rows.
1611         * DataGridViewRow.cs: Throw exceptions as MS do.
1612         * DataGridViewCell.cs: A few properties are implemented by a
1613           Get<Property> method, so move implementation there and remove the
1614           NIEX in the method. Add a bunch of OnXInternal that DataGridView
1615           calls when necessary.
1616         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
1617           complicates matters.
1618         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
1619           unshare any rows.
1620
1621 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
1622
1623         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
1624         the children controls.  Instead, we will just set up the proper docking for the
1625         children controls so we don't have to worry about it.  [Fixes bug #82188]
1626
1627 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
1628
1629         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
1630         canceling and correct Before/AfterLabelEdit properties as layed out in bug
1631         81847.  [Fixes bug #81847]
1632
1633 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
1634
1635         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
1636         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
1637         an explicit size based on the design-time size of the text.  Since our fonts
1638         may not match this explicit size, we tend to cut off the ends of people's labels.
1639
1640 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
1641
1642         * Menu.cs: Add some missing methods to MenuItemCollection.
1643
1644 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1645
1646         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
1647         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
1648         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
1649         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
1650         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
1651         * DataGridViewElement.cs: State defaults to Visible.
1652         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
1653         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
1654
1655 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1656
1657         * Control.cs: Minor 1.1 corcompare fix.
1658
1659 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
1660
1661         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
1662         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
1663
1664 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1665
1666         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
1667           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
1668           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
1669           DataGridViewSelectedColumnCollection.cs,
1670           DataGridViewSelectedRowCollection.cs: Corcompare work.
1671
1672 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
1673
1674         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
1675         it is autoset by VS2005 designer and the effect is barely noticeable.
1676
1677 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
1678
1679         * TreeView.cs: Implement HitTest.
1680
1681 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1682
1683         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
1684           manually adding and removing the control from the Controls
1685           collecftion.
1686         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
1687           EditingControlInternal property that tracks the editing control.
1688           Always keeping the scrollbars in the Controls collection, as MS
1689           testing confirms is the right behaviour.
1690
1691 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1692
1693         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
1694           according to MSDN and new test.
1695
1696 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
1697
1698         * TreeNode.cs: Implement ToolTipText.
1699         * TreeView.cs: Implement tooltips, NodeMouse* events.
1700
1701 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
1702
1703         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
1704
1705 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
1706
1707         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
1708         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
1709
1710 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
1711
1712         * Control.cs, Form.cs, ContainerControl.cs,
1713         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
1714         for misc properties.
1715
1716 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
1717
1718         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
1719         * TreeView.cs: Implement StateImageList.
1720
1721 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1722
1723         * Form.cs: Don't check if the current form is the active form before
1724           activating it. Fixes #81904.
1725
1726 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1727
1728         * Form.cs: Don't check if the current form is the active form before
1729           activating it. Fixes #81904.
1730
1731 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1732
1733         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
1734
1735 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1736
1737         * Form.cs: Don't try to position the form after loading if the form was
1738           disposed. Fixes #81969.
1739
1740 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1741
1742         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
1743           properties. Had to change ToolBar into ToolStrip, which required a
1744           few #ifs.
1745
1746 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1747
1748         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
1749           resized, fixes part of #79829 (vertical lines in toolbar).
1750           PropertyGrid: Refactored Populate* to something that's easier to
1751           follow at least for me, as well as splitting it up into several new
1752           methods, required to update only subitems when something has
1753           changed by a popup editor or listbox. Don't use events to check
1754           when any values are changed, since the events are unreliable (we're
1755           changing the objects the events are registered with, and if the
1756           event handling requires the objects to be immutable (objects stored
1757           in hashtables for instance), the events will never be raised).
1758         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
1759           everytime we change a value, since events are unreliable.
1760           DropDownButtonClicked: For the same reason don't compare objects to
1761           check if it has changed or not, it would require all objects to
1762           derive Equals. Fix dialog location on windows, MS is doing weird
1763           things when creating parented forms.
1764         * GridEntry.cs: Add a SelectedObject setter.
1765
1766 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
1767
1768         * TreeNode.cs: Add some corcompare attributes.
1769         * TreeNodeCollection.cs: Implement 2.0 stuffs.
1770         * TreeView.cs: Implement some 2.0 stuffs.
1771
1772 2007-07-18  Andreia Gaita  <avidigal@novell.com>
1773
1774         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
1775         for moma.
1776
1777 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
1778
1779         * ListBox.cs: Implement custom tab offsets.
1780
1781 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
1782
1783         * ToolStripContentPanel.cs: Support System renderer.
1784         * ToolStripControlHost.cs: Set RightToLeft to default to No.
1785
1786 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
1787
1788         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
1789
1790 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
1791
1792         * CheckBox.cs: Chain TextAlign to base implementation instead of
1793         maintaining another one.
1794
1795 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
1796
1797         * ButtonBase.cs: Fix an incorrect string constant.
1798
1799 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
1800
1801         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
1802         of creating one for measuring strings.
1803
1804 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
1805
1806         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
1807         Implement MaxItemSize.
1808
1809 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
1810
1811         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
1812         for DeviceContext.  Instead, use the static one available in Hwnd.
1813         Informal tests show this saves about 500k on formtest.exe.
1814
1815 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
1816
1817         * ContainerControl.cs: Implement 2.0 AutoScaling.
1818
1819 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1820
1821         * ComboBox.cs: Work around bug #82120 (bug in mcs).
1822
1823 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
1824
1825         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
1826         Darken the focus color.
1827
1828 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
1829
1830         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
1831         for the checkbox.
1832         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
1833         X, Y instead of a rect for drawing text.
1834         - For ControlPaint.DrawCheckBox, center the check a little better when the
1835         checkbox is odd width.  When drawing a flat checkbox, use a white background
1836         when state != inactive.
1837         [Fixes bugs #82097, 82100]
1838
1839 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
1840
1841         * ListControl.cs: When changing CurrencyManager, disconnect event
1842         handlers from previous one. Fixes bug #81771. Code formatting.
1843
1844 2007-07-15  Andreia Gaita <avidigal@novell.com>
1845
1846         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
1847         full preview invalidation from layout invalidation, and only invalidate
1848         the layout when setting zoom or other properties. Invalidation should
1849         always be done even when resetting properties with the same values as
1850         what is there. Fixes #81744 and #79830.
1851
1852 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1853
1854         * ListView.cs: Implement initial support for Groups. Split some of the
1855         LayoutIcons code to render a partial list of the items (needed by
1856         items contained in ListViewGroup instances). Let the
1857         ListViewItemsCollection.ListView property be modifiable (needed when
1858         using Groups, too).
1859         * ListViewGroup.cs: Use a Bounds property rather than a Location
1860         one. Also invalidate the bounds when they get changed.
1861         * ThemeWin32Classic.cs: When drawing items, also draw the group header
1862         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
1863         method as well.
1864
1865 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1866
1867         * ListView.cs: When space gets pressed and CheckBoxes is true, 
1868         don't invoke the Begin and EndUpdate methods. We are generating 
1869         a redraw of the entire control without need to do so.
1870
1871 2007-07-13  William Holmes <billholmes54@gmail.com> 
1872
1873         * Control.cs: Changing logic in FindFlatForward and 
1874           FindFlatBackward to handle multiple Controls with 
1875           the same TabIndex.  
1876           This fixes bug 81687.
1877
1878 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
1879
1880         * OSFeature.cs: Enable IsPresent.
1881
1882 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1883
1884         * Control.cs: Don't do anything in WmShowWindow if the control has been
1885           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
1886           control is created, put on a form, the control is disposed (the
1887           form is never shown), and then we get a MapNotify, triggering a
1888           WM_SHOWWINDOW.
1889         * Form.cs: Exclude the current form when sending Deactivate to all
1890           MdiChildren.
1891         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
1892           there was a race condition because assigning the handle raises
1893           events, we can get more messages, therefore trying to assign the
1894           handle again, which would fail if any of those event handlers
1895           closed/disposed the control.
1896
1897 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1898
1899         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
1900
1901 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
1902
1903         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
1904         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
1905
1906 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1907
1908         * DateTimePicker.cs: If there's no part format specifier, return an
1909           empty string.
1910
1911 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
1912
1913         * FlatButtonAppearance.cs: Throw NotSupportedException for a
1914         Transparent BorderColor.
1915
1916 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1917
1918         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
1919           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
1920           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
1921           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
1922           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
1923           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
1924           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
1925           Remove warnings.
1926         * X11Structs.cs: Remove warnings, add ToString implementations.
1927
1928 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1929
1930         * XplatUIX11.cs: Translate min/max size according to the actual min/max
1931           size, and not the current size. Fixes #81798.
1932
1933 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1934
1935         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
1936           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
1937           to the control yet).
1938
1939 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1940
1941         * PropertyGridTextBox.cs: Add a method that sends any forwarded
1942           mousedowns to the contained textbox.
1943         * X11Structs.cs: More ToString implementation.
1944         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
1945           #81791.
1946
1947 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1948
1949         * PropertyGridView.cs: Add a null-check, fixes a few tests.
1950
1951 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
1952
1953         * TableLayoutPanelCellPosition.cs: TypeConverter.
1954
1955 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1956
1957         [ Fixes #79761]
1958         
1959         * PropertyGridTextBox.cs: Propagate any color changes to all contained
1960           controls.
1961         * PropertyGridView.cs: A few color fixes.
1962
1963 2007-07-10  Jackson Harper  <jackson@ximian.com>
1964
1965         * TextControl.cs: Remove some old unused text formatting stuff.
1966
1967 2007-07-10  Jackson Harper  <jackson@ximian.com>
1968
1969         * TreeView.cs: Update full row select invalidation to match the
1970         newer DrawSelection... method.
1971         - Make sure to invalidate the entire width when selecting a new
1972         node, if we have full row selection enabled.
1973
1974 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1975
1976         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
1977           display of properties again.
1978
1979 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
1980
1981         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
1982         to existing collections.
1983
1984 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
1985
1986         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
1987         that changed between 1.1 and 2.0.
1988
1989 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
1990
1991         * PowerStatus.cs: Added.  This is just a data class, it is filled
1992         in by SystemInformation.
1993
1994 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
1995
1996         * Message.cs: Add op_Equality and op_Inequality.
1997
1998 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
1999
2000         * MenuStrip.cs: Finish corcompare work.
2001
2002 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2003
2004         * LinkArea.cs: Add op_Equality and op_Inequality.
2005
2006 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2007
2008         * Application.cs: Add MessageLoopCallback delegate.
2009
2010 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2011
2012         * ListBox.cs: First set of 2.0 stuffs.
2013
2014 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
2015
2016         * Control.cs: Make an internal Height property we can override
2017         without messing up the public API.
2018         * ListBox.cs: Override HeightInternal to always return the size
2019         the user set.  [Fixes bug #80466]
2020
2021 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
2022
2023         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
2024         paint cell borders if we haven't calculated where they go yet.
2025         [Fixes bugs #82040 and #82041]
2026
2027 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2028
2029         * ListView.cs: In Details view, set the location of item_control
2030         in the (0,0) position (and the header_control is thus on the
2031         item_control). This way the Bounds of the Items are relative to the
2032         ListView control (before this, they had a Bounds value without the
2033         header_control offset, which wasn't matching .Net). Fixes #82004.
2034
2035 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2036
2037         * ListControl.cs: When DataSource is set to null, pass an empty
2038         array of object to SetItemsCore. This is done to clean the items
2039         in the ListContol children. Fixes #81788.
2040
2041 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2042
2043         * ListControl.cs: Add 2.0 stuffs.
2044
2045 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2046
2047         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
2048         Refresh is overkill for just about every repaint request.
2049
2050 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2051
2052         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
2053         so remove my custom Get method and fix the property getter.
2054
2055 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2056
2057         * Label.cs: DefaultMargin for 2.0.
2058
2059 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2060
2061         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
2062         reported issue where other controls with mnemonics would steal strokes
2063         from a selected ComboBox.
2064
2065 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
2066
2067         * ScrollOrientation.cs: Make internal for 1.1.
2068         * ScrollEventArgs.cs: Add 2.0 stuffs.
2069
2070 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
2071
2072         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
2073         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
2074         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
2075
2076 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2077
2078         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
2079
2080 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2081
2082         * ListView.cs: Implement the so-incredibly broken 2.0 
2083         VirtualItemsSelectionRangeChanged event.
2084
2085 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2086
2087         * ListView.cs: When enter is pressed and selection is non empty,
2088         an OnItemActivate event must be fired.
2089
2090 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2091
2092         * ListView.cs: Store the FocusedItem information as an
2093         int instead of a ListViewItem (needed by VirtualMode).
2094         Update the calls to SetFocusedItem to pass an index instead of
2095         an item.
2096         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
2097         the Focused state from the owner ListView. 
2098
2099 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2100
2101         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
2102         property. Also, invalidate previous focused item in the mentioned
2103         property (match .Net).
2104
2105 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2106
2107         * ListView.cs: Implement 2.0 FocusedItem property setter.
2108
2109 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2110
2111         * ListView.cs: Implement 2.0 TopItem property setter.
2112
2113 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
2114
2115         * StatusStrip.cs: The default renderer is System.
2116         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
2117         if the user specifies it.
2118         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
2119         if we are ManagerRenderMode.
2120         * ToolStripMenuItem.cs: Calculate our text color better.
2121         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
2122         from Professional to the base class based off working with the System renderer.
2123         * ToolStripSystemRenderer.cs: Added.
2124
2125 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2126
2127         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
2128
2129 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
2130
2131         * ToolTip.cs: Implement 2.0 Tag property.
2132
2133 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2134
2135         * ListView.cs: Implement 2.0 HitTest methods.
2136
2137 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2138
2139         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
2140         item is under the pointer or not (sugar). Also remove the TODO
2141         regarding to the cursor changes in OneClick activation.
2142         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
2143         the subitems use the parent's HotFont if UseItemStyleForSubItems is
2144         true; otherwise don't show the underline style.
2145
2146 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2147
2148         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
2149         the code to retrieve the item at position only one time. Also
2150         change cursor when Activation is ItemActivation.OneClick as well
2151         as invalidate the item if HotTracking is true (to show/hide the
2152         underline style). Add an internal HotItemIndex property to retrieve
2153         the current hot item's index.
2154         * ListViewItem.cs: Add an internal HotFont property to cache the
2155         font used when HotTracking is true and the pointer moves within the
2156         item's borders.
2157         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
2158         HotFont depending on the hot state of the item.
2159
2160 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2161
2162         * ListView.cs: Implement 2.0 HotTracking property.
2163
2164 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
2165
2166         * ToolStripControlHost.cs: If our hosted control never got created,
2167         don't try to dispose it.  [Fixes bug #81909]
2168
2169 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
2170
2171         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
2172
2173 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
2174
2175         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
2176
2177 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2178
2179         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
2180         Details view.
2181         * DrawListViewColumnHeaderEventArgs.cs:
2182         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
2183         using the DrawText () methods.
2184
2185 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
2186
2187         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
2188         background which got erased in my changes yesterday.
2189
2190 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2191
2192         * ListViewItem.cs: Actually set bounds for subitems in Details view
2193         (2.0 feature).
2194         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
2195         can invoke from the owner draw routines if we need it. Also, add
2196         support for Owner draw in Details view.
2197
2198 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
2199
2200         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
2201         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
2202         ShowImageMargin setting, properly align text in a ToolStripLabel
2203         hosted on a ToolStripDropDown.
2204
2205 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
2206
2207         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
2208         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
2209
2210 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2211
2212         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
2213
2214 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
2215
2216         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
2217         location to match ToolStripMenuItems.
2218
2219 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2220
2221         * DrawListViewColumnHeaderEventArgs.cs:
2222         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
2223         column headers in ListView. 
2224
2225 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
2226
2227         * UserControl.cs: Implement AutoSize.
2228
2229 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2230
2231         * DrawListViewItemEventArgs.cs:
2232         * ListView.cs:
2233         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
2234         ListView.
2235
2236 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
2237
2238         * ToolStripDropDownItemAccessibleObject.cs: Added.
2239         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
2240         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
2241         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
2242         ToolStripTextBox.cs: corcompare work.
2243
2244 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
2245
2246         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
2247         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
2248         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
2249                 corcompare.
2250
2251 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
2252
2253         * OSFeature.cs: Add IsPresent.
2254         * PrintPreviewControl.cs: Add RightToLeft.
2255         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
2256         * SplitterPanel.cs: Add AutoSizeMode.
2257
2258 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
2259
2260         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
2261         * MdiClient.cs: Add 2.0 ScaleControl.
2262         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
2263         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
2264
2265 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
2266
2267         * Form.cs: Implement some scaling methods, stub some RTL methods,
2268         corcompare work.
2269
2270 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
2271
2272         * Control.cs: corcompare work.
2273         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
2274
2275 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
2276
2277         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
2278         ControlPaint 2.0 stuffs.
2279
2280 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2281
2282         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
2283
2284 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2285
2286         * UpDownBase.cs: Add 2.0 stuffs.
2287
2288 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2289
2290         * NumericUpDown.cs: Add 2.0 stuffs.
2291
2292 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2293
2294         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
2295
2296 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2297
2298         * ErrorProvider.cs: Implement 2.0 stuffs.
2299
2300 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2301
2302         * DomainUpDown.cs: Implement 2.0 stuffs.
2303
2304 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2305
2306         * CheckedListBox.cs: Fix RefreshItems signature.
2307
2308 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
2309
2310         * PictureBox.cs: Implement 2.0 stuffs.
2311
2312 2007-06-12  Andreia Gaita  <avidigal@novell.com>
2313         
2314         * TabControl.cs: Check if there are tabpages before checking
2315         the selected index - fix #81802 (font changes raise a ResizeTabs
2316         call on controls.add, which blew up nicely with no tabpages)
2317
2318 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2319
2320         * ListView.cs:
2321         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
2322
2323 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2324
2325         * ListView.cs:
2326         * ListViewItem.cs: In VirtualMode the selection information
2327         resides in the ListView, rather than in the Items. Also, throw
2328         InvalidOperationExceptions when VirtualMode is being used and
2329         CheckedItemCollection is accessed.
2330
2331 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
2332
2333         * ComboBox.cs: Add ScaleControl.
2334
2335 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
2336
2337         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
2338
2339 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
2340
2341         * GroupBox.cs: Add 2.0 stuffs.
2342
2343 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
2344
2345         * Panel.cs: Add autosize properties/event.
2346
2347 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
2348
2349         * Control.cs:
2350         - When we remove a control, remove it from the collection before performing the layout.
2351         - Setup an internal property for explicit_bounds.
2352         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
2353         - Perform a layout when we set a new AutoSizeMode.
2354
2355 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
2356
2357         * ScrollableControl.cs: Add 2.0 stuffs.
2358
2359 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2360
2361         * ScrollBar.cs: Add 2.0 stuffs.
2362
2363 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2364
2365         * Splitter.cs: Add 2.0 stuffs.
2366
2367 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2368
2369         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
2370         to have BindingContext simply use base implementation.
2371
2372 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2373
2374         * ColumnHeader.cs: corcompare fix.
2375
2376 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2377
2378         * Button.cs: corcompare fixes.
2379         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
2380
2381 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
2382
2383         * Button.cs: Override GetPreferredSizeCore.
2384         * ButtonBase.cs: PerformLayout after changing properties that can affect
2385         AutoSize.  Simplify some mouse/keyboard code.
2386         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
2387         * MouseEventArgs.cs: Make Location internal for 1.1.
2388         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
2389         * Theme.cs: Add CalculateButtonAutoSize.
2390         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
2391
2392 2007-06-05  Miguel de Icaza  <miguel@novell.com>
2393
2394         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
2395
2396 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2397
2398         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
2399         since we can get different item instances every time we retrieve it.
2400
2401 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2402
2403         * ListView.cs: Work around for #81602, since an unkown an pretty
2404         infrequent condition appears only in some systems (old linux boxes, it
2405         seems).
2406
2407 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
2408
2409         * Button.cs: Completely reformat and a little refactor to bring
2410         this closer to Mono circa 2007.
2411
2412 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
2413
2414         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
2415         to be ButtonBase.Invalidate.
2416
2417 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
2418
2419         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
2420
2421 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
2422
2423         * ButtonBase.cs: Completely reformat and a little refactor to bring
2424         this closer to Mono circa 2007.
2425
2426 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
2427
2428         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
2429         values for autosize. Fixes #80137.
2430
2431 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
2432
2433         * Control.cs: Don't perform layout when AutoSize changes.
2434         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
2435         directly when autosizing, use SetBounds with BoundsSpecified.None.
2436         Fixes unit tests my last commit broke.
2437
2438 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
2439
2440         * Control.cs: Perform layout when AutoSize changes.
2441         * Form.cs: Implement AutoSizing.
2442
2443 2007-06-01  Chris Toshok  <toshok@ximian.com>
2444
2445         * DataGrid.cs: remove the XXX'ed check at the top of
2446         ProcessGridKey.  fixes #80464.
2447
2448 2007-06-01  Chris Toshok  <toshok@ximian.com>
2449
2450         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
2451         adding idempotent (add/remove in Edit()), and also make sure we
2452         don't add it until after we set the text, so it's not tripped in
2453         Edit().  Fixes unit test regression.
2454
2455 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
2456
2457         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
2458         change is user explicit, not when the layout engine moves stuff.  Fixes
2459         anchoring to bottom and right.  [Fixes bug #81790]
2460
2461 2007-06-01  Andreia Gaita  <avidigal@novell.com>
2462
2463         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
2464
2465 2007-06-01  Andreia Gaita  <avidigal@novell.com>
2466
2467         * ContainerControl.cs: 
2468         Fire enter event for common ancestor if it is not a ContainerControl.
2469         Send focus to the active_control and not the 'value', the active 
2470         control might have been changed in one of the events fired.     
2471         Definitely fixes #80159.
2472
2473 2007-06-01  Andreia Gaita  <avidigal@novell.com>
2474
2475         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
2476
2477 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2478
2479         * PropertyGrid.cs: Anchor the help description to the bottom of the
2480           help panel and refactor SelectGridItem into a
2481           SelectGridItemInternal that can be set to null (and update it to
2482           clear the help texts when it is set to null). Set root item to null
2483           when there's no SelectedObject. Fixes #80438.
2484         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
2485           when we're recalculating after a resize (only).
2486
2487 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2488
2489         * ListView.cs: Implement 2.0 RedrawItems method.
2490
2491 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2492
2493         * ListControl.cs: Disconnect PositionChanged and ItemChanged
2494         handlers from previous data manager when DataSource is set to
2495         null. Fixes #81771.
2496
2497 2007-05-31  Jackson Harper  <jackson@ximian.com>
2498
2499         * TextBoxBase.cs: These seem to be the correct values.
2500
2501 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
2502
2503         * FileDialog.cs: When close dialog with ok set filterindex using combobox
2504         value. Fixes #81784.
2505
2506 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
2507
2508         * Control.cs: Implement 2.0 scaling methods.
2509
2510 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2511
2512         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
2513           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
2514           corcompare issues.
2515
2516 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2517
2518         * ProgressBar.cs: Implemented missing 2.0 members.
2519
2520 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2521
2522         * Control.cs: Corcompare issues.
2523         * MessageBox.cs: Implemented missing 2.0 functions.
2524
2525 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2526
2527         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
2528           Implemented more 2.0 members.
2529
2530 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2531
2532         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
2533           null (strange, but it seems to happen when running unit tests).
2534
2535 2007-05-30  Andreia Gaita  <avidigal@novell.com>
2536
2537         * ContainerControl.cs: Set active_control even earlier, before 
2538         firing any events, and undo it if validation returns false.
2539
2540 2007-05-30  Andreia Gaita  <avidigal@novell.com>
2541
2542         * ContainerControl.cs: Raise Validation and Enter/Leave events
2543         even if there is no Form and set active_control earlier, just
2544         before firing Enter events (toshok's patches). Fixes #80647.
2545
2546 2007-05-30  Jackson Harper  <jackson@ximian.com>
2547
2548         * TextControl.cs: Redid the pageup/pagedown a little to simplify
2549         things and fix bug #81311.
2550
2551 2007-05-30  Jackson Harper  <jackson@ximian.com>
2552
2553         * X11Dnd.cs: Now that we have our own event loop, we need to
2554         cancel when we get a mouseup but it won't be accepted.
2555
2556 2007-05-30  Chris Toshok  <toshok@ximian.com>
2557
2558         * DataGrid.cs (set_CurrentCell): guard against negative
2559         column/row.
2560
2561         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
2562         array index syntax instead of looping over the property names.
2563
2564         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
2565         and set IsInEditOrNavigateMode to false there.
2566
2567 2007-05-30  Jackson Harper  <jackson@ximian.com>
2568
2569         * TreeView.cs: Make sure we don't get a bad visible order when
2570         setting to the top node.  Fixes some misc crashing in
2571         ControlInspector.
2572
2573 2007-05-30  Andreia Gaita  <avidigal@novell.com>
2574
2575         * UserControl.cs: Add 2.0 AutoSizeMode
2576
2577 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2578
2579         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
2580
2581 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2582
2583         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
2584         lines. Fixes #80285. 
2585
2586 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2587
2588         * DataGridColumnStyle.cs: Add char trimming column header text format. 
2589
2590 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2591
2592         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
2593         Fixes #80147.
2594
2595 2007-05-29  Jackson Harper  <jackson@ximian.com>
2596
2597         * TreeNode.cs: Fix off by one on calculating whether or not a node
2598         is visible.
2599
2600 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
2601
2602         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
2603         * ScrollableControl.cs: Force an UpdateDistances when we move the
2604         scrollbars.
2605         [Fixes bug #80605]
2606
2607 2007-05-29  Andreia Gaita  <avidigal@novell.com>
2608
2609         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
2610         update the page setup screen.
2611
2612 2007-05-29  Andreia Gaita  <avidigal@novell.com>
2613
2614         * PageSetupDialog.cs: Fix landscape mode.
2615
2616 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2617
2618         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
2619         IconSizeHorizontalSpacing.
2620
2621 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2622
2623         * ListView.cs: The declaration of prev_tooltip_item should be inside
2624         a NET_2_0 conditional (avoid a warning).
2625
2626 2007-05-28  Andreia Gaita  <avidigal@novell.com>
2627
2628         * PageSetupDialog.cs: Implement PrintPreview control to display
2629         the preview thumbnail. Change unit conversion to use 
2630         PrinterUnitConvert methods.
2631         
2632         Note: there is a huge bug in ms.net where the default margins are 
2633         interpreted as centimeters (?), when in fact they are set in inches. When 
2634         loading the page setup dialog initially (ms.net), the default margins 
2635         are set to 1 inch, and the dialog shows them with value 10, when in fact 
2636         it should be 25 (properly converted). Our dialog doesn't have this bug.
2637         
2638         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
2639         RectangleF.
2640         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
2641
2642 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2643
2644         * ListView.cs:
2645         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
2646         items.
2647
2648 2007-05-28  Andreia Gaita  <avidigal@novell.com>
2649
2650         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
2651         an IntPtr on csc (it builds fine on mcs, could it be a compiler
2652         bug?), convert the ptr to Int32 first.
2653
2654 2007-05-28  Jackson Harper  <jackson@ximian.com>
2655
2656         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
2657         recieved, we will exit the dnd tracking loop.
2658
2659 2007-05-28  Jackson Harper  <jackson@ximian.com>
2660
2661         * X11Dnd.cs: Keep tracking until the xdnd finished event is
2662         recieved. TODO: I should probably stick a timer on the dropped
2663         event, and finish the drag if the XDND Finished event never shows
2664         (because some apps don't seem to send it).
2665
2666 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
2667
2668         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
2669         #81733.
2670
2671 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2672
2673         * MonthCalendar.cs: Only mark the keypresses we actually handle as
2674           handled.
2675
2676 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2677
2678         * MonthCalendar.cs: Set the size after initializing all the relevant
2679           variables. Fixes #81742.
2680
2681 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2682
2683         * KeyEventArgs.cs: Fix typo.
2684
2685 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
2686
2687         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
2688         to match MS. Fixed MinDate to only accept value less than or equal
2689         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
2690         Removed TODO's that are now verified by unit tests.
2691
2692 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
2693
2694         * TreeNodeCollection.cs: Minor corrections to exceptions to match
2695         MS.
2696
2697 2007-05-25  Jackson Harper  <jackson@ximian.com>
2698
2699         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
2700         it's own message loop.
2701         * XplatUIX11.cs: Remove some of the dnd hooks
2702
2703 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
2704
2705         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
2706         instead of MinimizedWindowSize.
2707
2708 2007-05-25  Jackson Harper  <jackson@ximian.com>
2709
2710         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
2711
2712 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2713
2714         * KeyEventArgs.cs: Added SuppressKeyPress.
2715         * Control.cs: Added support for SuppressKeyPress.
2716
2717 2007-05-24  Andreia Gaita  <avidigal@novell.com>
2718
2719         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
2720         problems with PieChart. suppress_validation should not be a counter,
2721         if there are several BeginInit calls, the first EndInit will 
2722         activate validation. Fix exceptions thrown by set_Value.
2723         * UpDownBase.cs: ValidateText only if it's the user editing it.
2724
2725 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2726
2727         * ListControl.cs: FilterItemOnProperty should return the filtered
2728         item proeprty even if DataSource is null. The same applies for
2729         GetItemText. Fixes #80427.
2730
2731 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
2732
2733         * Control.cs: If a control doesn't have a parent when it's Dock is
2734         set, but it has children, it needs to do a layout.  Fixes some nested
2735         controls issues.  [Fixes bug #81199]
2736
2737 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2738
2739         * ComboBox.cs: If there are few items in the drop down list, make it
2740           the exact size the items need, no bigger. Fixes #81612.
2741
2742 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
2743
2744         * Application.cs: When we have captured the keyboard for a menu,
2745         check for mouse down events in case we need to close the menu.
2746         * Control.cs, Form.cs: Remove mouse down checks for menus.
2747
2748 2007-05-24  Jackson Harper  <jackson@ximian.com>
2749
2750         * TextControl.cs: Handle tabs in non multiline mode a little
2751         differently.
2752
2753 2007-05-24  Jackson Harper  <jackson@ximian.com>
2754
2755         * TextControl.cs: We need to manually break apart tabbed text and
2756         move the tabs, since the system.drawing tabbing mechanism relies
2757         on tab stops.
2758         * TextBoxBase.cs: Move the caret properly when the user enters a
2759         tab.
2760
2761 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
2762
2763         * ContainerControl.cs: Don't check CanSelect before calling
2764         ProcessMnemonic.
2765         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
2766         release a KeyboardActive on click if it's not ours.
2767
2768 2007-05-23  Andreia Gaita  <avidigal@novell.com>
2769
2770         * ColumnHeader.cs: Add TypeConverter
2771
2772 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2773
2774         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
2775
2776 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2777
2778         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
2779
2780 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2781
2782         * LinkLabel.cs: Implement public Padding property.
2783
2784 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2785
2786         * LinkLabel.cs: Implement public FlatStyle.
2787
2788 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
2789
2790         * Control.cs: Apply patch from George to call parent.PerformLayout
2791         when Visible is changed.  [Fixes bugs #81118, 81718]
2792
2793 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2794
2795         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
2796
2797 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2798
2799         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
2800
2801 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
2802
2803         * ContextMenu.cs: Implement Collapse.
2804
2805 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
2806
2807         * ToolBarButton.cs: Implement Name.
2808
2809 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
2810
2811         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
2812         use current_item, it prevents some NRE. Fixes #81675.  
2813
2814 2007-05-22  Andreia Gaita  <avidigal@novell.com>
2815
2816         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
2817         without updating the text.
2818
2819 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
2820
2821         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
2822         without calling DeleteObject.  [Should fix bug #81709]
2823
2824 2007-05-22  Jackson Harper  <jackson@ximian.com>
2825
2826         * RichTextBox.cs: Set the line endings correctly, when flushing
2827         RTF text.
2828
2829 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
2830
2831         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
2832          {Width=0,Height=0}.
2833
2834 2007-05-22  Jackson Harper  <jackson@ximian.com>
2835
2836         * TreeView.cs: Setting top with a null node should set to the very
2837         top.
2838
2839 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2840
2841         * Form.cs: ShowDialog: destroy the handle when message loop is
2842           finished, matches MS behaviour. Refactor parts of WmClose into
2843           RaiseCloseEvents, that only raises events if they haven't already
2844           been raised. Fixes #81688 and #81521.
2845         * Application.cs: Don't call close on the form when exiting a modal
2846           loop, it will raise all the (Form)Closed/Closing events again if
2847           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
2848           which doesn'r raise any events it they have been raised before.
2849
2850 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
2851
2852         * Control.cs: Add OnPrint.
2853         * ToolStrip.cs: Add GetChildAtPoint.
2854         * ToolStripContainer.cs: Add OnRightToLeftChanged.
2855         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
2856
2857 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
2858
2859         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
2860
2861 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2862
2863         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
2864           isn't visible anymore. Fixes #81651.
2865
2866 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2867
2868         * Control.cs: WmShowWindow: Update children's z-order after setting
2869           their parent. SetParent may show the window, thereby corrupting
2870           z-order, since the window will be shown on top.
2871         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
2872           multiple (and redundant) WM_SHOWWINDOW messages.
2873         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
2874           event has already been raised.
2875         * Form.cs: Change is_changing_visible_state to a counter, since
2876           SetVisibleCore can be called recursively. CreateHandle: when
2877           creating mdi children, send (De)Activated events.
2878         * MdiClient.cs: Update use of is_changing_visible_state.
2879         * Application.cs: OnThreadException: Surround exception handling with
2880           try/finally to ensure we always reset the error-handling state
2881           before leaving.
2882
2883 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2884
2885         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
2886           (#81704).
2887
2888 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2889
2890         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
2891         SmallIcon views, now that we have a standarized horizontal spacing.
2892
2893         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
2894         4, just like the other views (Match .Net).
2895
2896 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
2897
2898         * Control.cs: Delay calculating anchor distances until we actually layout.
2899         Always query the WM for the actual size and location it put us at instead of
2900         only when we send negative values.
2901         [Fixes bugs #81694, 81695]
2902
2903 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2904
2905         * Application.cs: Avoid a possible stack overflow when trying to exit
2906           the application.
2907
2908 2007-05-19  Marek Safar  <marek.safar@gmail.com>
2909
2910         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
2911         enum value.
2912
2913 2007-05-19  Andreia Gaita  <avidigal@novell.com>
2914
2915         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
2916         * NumericUpDownAcceleration.cs, 
2917           NumericUpDownAccelerationCollection.cs: Added 2.0
2918           implementation.
2919
2920 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
2921
2922         * RichTextBox.cs: Recalculate the document after the ScrollBars
2923         property is changed. Fixes bug #81681.
2924
2925 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
2926
2927         * DataObject.cs: Implement 2.0 methods.
2928
2929 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2930
2931         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
2932         in the center of the checkbox, not in the left-top corner. 
2933         Fixes #80037.
2934
2935 2007-05-18  Jackson Harper  <jackson@ximian.com>
2936
2937         * RichTextBox.cs: Recalculate the document after the scrollbars
2938         property is changed.
2939         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
2940         81486.
2941
2942 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2943
2944         * CreateParams.cs: Make HasWindowManager marginally faster.
2945         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
2946           into Hwnd so that other drivers can use it as well.
2947         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
2948           the default location from Hwnd. Fixes MDI client windows always
2949           showing up at (0,0) in Windows (Win32 won't set the default
2950           location since the window styles aren't correct).
2951
2952 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
2953
2954         * TreeView.cs: Modified DoubleBuffered to just use the base
2955         implementation.
2956
2957 2007-05-18  Jackson Harper  <jackson@ximian.com>
2958
2959         * TreeView.cs: Set the top node to the last child node when
2960         expanding all
2961         - When we get focus, if there is no selected node, use the top
2962         node.
2963
2964 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
2965
2966         * KeysConverter.cs: Add CanConvertTo.
2967         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
2968         * LinkConverter.cs: Added.
2969
2970 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
2971
2972         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
2973         it prevents error when file dont have write access. Fixes #81669 and #81667.  
2974
2975 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
2976
2977         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
2978         button text. Fixes #79640.  
2979
2980 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
2981
2982         * Control.cs: According to MSDN controls created in the designer theres 
2983         keyboard accelerators visible by default. So included check for design
2984         in ShowKeyboardCuesInternal.  
2985
2986 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
2987
2988         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
2989         text. Fixes #81621.  
2990
2991 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
2992
2993         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
2994         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
2995
2996 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
2997
2998         * Control.cs: Finish implementation of UI State using WmChangeUIState
2999         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
3000         in some controls to check for show_keyboard_cues to draw accell keys "_".  
3001
3002 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3003
3004         * ListBox.cs: When calculating the horizontal scrollbar
3005         in single column mode, don't use values less than 0 for
3006         Maximum. Fixes #81474.
3007
3008 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3009
3010         * ListBox.cs: Throw the some missing exceptions in
3011         ListBox.ObjectCollection methods.
3012
3013 2007-05-17  Jackson Harper  <jackson@ximian.com>
3014
3015         * TextBoxBase.cs: Recalculate the document when the word wrap
3016         value has changed. This fixes 81488.
3017
3018 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
3019
3020         * Clipboard.cs: Implement missing GetText overload.
3021
3022 2007-05-17  Chris Toshok  <toshok@ximian.com>
3023
3024         * Control.cs (CheckDataBindings): remove the binding_context arg
3025         to binding.Check.
3026
3027         * CurrencyManager.cs (OnItemChanged): fix this now that
3028         BindingManagerBase is fixed. also remove the comment telling where
3029         the fix should go.  We set transfering_data to true/false around
3030         the call to PushData to keep UpdateIsBinding from being called.
3031         (ListChangedHandler): remove the extra OnMetaDataChanged call for
3032         PropertyDescriptorAdded in the 1.1 case.  The extra call is
3033         actually generated by System.Data generating 2 metadata changed
3034         events of its own per column add.  The fix should go there.  Add a
3035         comment to that affect in our test's Assert.Ignore.
3036
3037         * BindingManagerBase.cs: Rework PullData and PushData slightly.
3038         we keep a boolean flag (transfering_data) that keeps us from
3039         calling UpdateIsBinding multiple times if we re-enter either of
3040         them.
3041
3042         * ControlBindingsCollection.cs (AddCore): remove the
3043         binding_context arg to binding.Check.
3044
3045         * Binding.cs (IsBinding): don't check if we're binding here, just
3046         return our cached value.  we update it in UpdateIsBinding.
3047         (Check): don't take the binding_context arg, we'll just use our
3048         control's.  Also, for some reason MS doesn't use the data member
3049         field when getting the bindingmanager for this binding.  it just
3050         uses the datasource.  Make this method callable multiple times,
3051         and only do the is_null_desc stuff if manager.Position != -1 (so
3052         we don't get an exception accessing manager.Current).
3053         (UpdateIsBinding): move the code from IsBinding here.
3054         (PositionChangedHandler): call Check here to we can initialize
3055         things that require a non- -1 position.
3056
3057 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
3058
3059         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
3060         control.
3061
3062 2007-05-17  Andreia Gaita  <avidigal@novell.com>
3063
3064         * TabControl.cs: Add 2.0 methods and events, including
3065         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
3066         * TabPage.cs: Add 2.0 methods
3067
3068 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
3069
3070         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
3071         keyboard_cues is properly handled by message method.  
3072
3073 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
3074
3075         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
3076
3077 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
3078
3079         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
3080
3081 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
3082
3083         * Control.cs: 
3084         - WmUpdateUIState added to handle state changes, it make call to
3085         OnChangeUICues event.
3086         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
3087         SystemInformation.
3088
3089 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
3090
3091         * ImageKeyConverter.cs: Added.
3092         * TreeViewImageKeyConverter.cs: Added.
3093
3094 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3095         
3096         * ToolTips.cs: Update Text if SetToolTip is called for a control
3097         already showing the tooltip, as well as restarting its timer; show
3098         tooltip if we are inside the control bounds by the time of calling
3099         SetToolTip. Inside ShowTooltip remove the check to not show the 
3100         tooltip again for the active control (it is allowed by .Net to 
3101         show the tooltip on the same control multiple times).
3102
3103 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3104
3105         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
3106
3107 2007-05-16  Andreia Gaita <avidigal@novell.com> 
3108
3109         * ContainerControl.cs: only process tab key if there are no 
3110         modifier keys present, otherwise the control does the 
3111         tab processing, if it needs to. Fixes #81622
3112         * TabControl.cs: Fixes calculation for which tab to select on
3113         shift+ctrl+tab.
3114
3115 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3116
3117         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
3118
3119 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
3120
3121         * Control.cs: Make IsInputCharInternal to allow controls to
3122         override it and still match MS API.
3123         * TextBoxBase.cs: Override IsInputCharInternal and always
3124         return true.
3125         [Fixes bug #81616]
3126
3127 2007-05-15  Jackson Harper  <jackson@ximian.com>
3128
3129         * TextBox.cs: Disable some of the menu options when using a
3130         readonly textbox.
3131
3132 2007-05-15  Jackson Harper  <jackson@ximian.com>
3133
3134         * TextBox.cs:
3135         * TextBoxBase.cs:
3136         * RichTextBox.cs: Some new 2.0 methods
3137
3138 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
3139
3140         * FileDialog.cs: On 1.0 profile, do not support multidotted 
3141         extensions.
3142
3143 2007-05-14  Jackson Harper  <jackson@ximian.com>
3144
3145         * TextBoxBase.cs: Implement some of the new 2.0 methods.
3146         * RichTextBox.cs: We need to override these methods on 2.0.
3147         * MaskedTextBox.cs: These are implemented now
3148         * TextControl.cs: This was off by one.
3149
3150 2007-05-14  Jackson Harper  <jackson@ximian.com>
3151
3152         * TextControl.cs: Because the line endings are including in the
3153         text, we don't need to add them in anymore.
3154
3155 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3156
3157         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
3158         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
3159
3160 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3161
3162         * ToolBar.cs: Adjust size to default size when button theres no text and
3163         image, it fixes remaining issues from #81524.
3164
3165 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3166
3167         * ToolBar.cs: 
3168         - When not flat call redraw to recalculate sizes on creare handle to match
3169         win32 behavior.
3170         - Revert 77220 because it causes some regressions in toobar
3171         button.
3172
3173 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3174
3175         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
3176           now actually enters a usable state.
3177
3178 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3179
3180         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
3181         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
3182         3 buttons.
3183
3184 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3185
3186         * ToolBar.cs: Save default_size on create handle to use later for buttons
3187         without text, needed to mimic win32 behavior.
3188
3189 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
3190
3191         * ToolBar.cs: Fix button layour to best fit width or height according to
3192         vertical or not. Fixes #81524.
3193
3194 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
3195
3196         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
3197         toolbar size info because different styles theres different sizes.
3198         Fixes #81522.
3199
3200 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3201
3202         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
3203         if we are using checkboxes, checked is true, and we have less
3204         than two images in StateImageList; for the 1.1 in the same scenario
3205         draw the first image if we have at least one image in StateImageList.
3206         Fixes part of #81191.
3207
3208 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
3209
3210         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
3211         the owner's Items collection on merge.
3212
3213 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
3214
3215         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
3216         * ToolStripItemCollection.cs: Lots of fixes to when events get called
3217         and parent/owner gets changed based on gert's unit tests.
3218
3219 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3220
3221         * MaskedTextBox.cs: Started implementing parts of it.
3222
3223 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3224
3225         * ListView.cs: When clicking the checkbox on the items
3226         take into account the double clicks even if we have only
3227         one image in StateImageList (only for 1.0/1.1). Also 
3228         generate an extra change of checked state when we receive
3229         the second click on checkbox (match .Net behaviour). 
3230         Fixes part of #81191.
3231
3232 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
3233
3234         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
3235
3236 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
3237
3238         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
3239         even if OnLoad is overriden and base.OnLoad is not called.
3240         [Fixes bug #81582]
3241
3242 2007-05-10  Andreia Gaita  <avidigal@novell.com>
3243
3244         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
3245         shame. (I blame my ever-persisting and annoying cold)
3246
3247 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * ListView.cs: Don't eat navigation keys.  Let them flow through to
3250         KeyDown/KeyPress routines.  [Fixes bug #81569]
3251
3252 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
3253
3254         * ListView.cs: When handling keys for selecting the item based off
3255         keyboard input, do not consider keys pressed with Alt or Control.  Also,
3256         correctly handle keys when the Shift key is down. [Fixes bug #81578]
3257
3258 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
3259
3260         * Control.cs: When using UseWaitCursor, we have to store the requested
3261         Cursor to use when UseWaitCursor is turned off.
3262
3263 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
3264
3265         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
3266         to false.
3267         * Application.cs: Use PreProcessControlMessage instead of
3268         PreProcessMessage.
3269         * PreProcessControlMessage.cs: Make internal for 1.1.
3270
3271 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3272
3273         * Control.cs: Add InternalContains focus property, which hast the same
3274         functionality of ContainsFocus, but also including implicit controls.
3275         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
3276         since we need to know if the focus is contained in our implicit
3277         ItemControl when calculating Layout. Fixes part of #80888.
3278
3279 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
3280
3281         * ToolTip.cs: Remove center form string alignment as it must be align to
3282         left.
3283
3284 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
3285
3286         * ToolStripItemCollection.cs: Set the new item's parent and owner
3287         in Insert like we do in Add.  [Fixes bug #81568]
3288
3289 2007-05-08  Jackson Harper  <jackson@ximian.com>
3290
3291         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
3292         - Off by one error in SetTop
3293         - Disable DoubeBuffering
3294         
3295 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3296
3297         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
3298           control as much as necessary in order to make it entirely visible,
3299           instead of centering the control in the container (matches MS
3300           behaviour). CalculateCanvasSize: we need to take the current scroll
3301           position into account when calculating the maximum canvas,
3302           otherwise the following scenario will fail: resize so that the
3303           scrollbars appear, use the scrollbars to scroll, resize again
3304           smaller, and now the canvas size is too small. Recalculate: when
3305           showing scrollbars make sure they start off at 0, and try to scroll
3306           the active control into view. Fixes #79540. HandleScrollBar: don't
3307           scroll anywhere if the scrollbar isn't visible.
3308
3309 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3310
3311         * ListView.cs: When focus changed, call Layout/Invalidate
3312         in the focused item to update the selected state (should show
3313         entire label when ListView is focused, and a part of it if is not).
3314         * ListViewItem.cs: When doing layout for LargeIcon, take into account
3315         for displaying the entire label not only the Focused state of the
3316         item, but also the Focused state of the ListView (match .Net
3317         behaviour).
3318
3319 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3320
3321         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
3322         Implement UseWaitCursor. 
3323
3324 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3325         Applying contributed patch from Sergey Volk.
3326
3327         * Clipboard.cs: Implement SetDataObject retry logic and new overload
3328         of SetDataObject.
3329         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
3330
3331 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3332
3333         * Control.cs: Implement DrawToBitmap.
3334
3335 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3336         Applying contributed patch from Stefan Noack.
3337         
3338         * Control.cs: Add [Get|Set]AutoSizeMode.
3339
3340 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3341
3342         * MdiClient.cs: Unmerge menus when the last child is closed.
3343
3344 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
3345
3346         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
3347         * ToolStripManager.cs: Call Merge on DropDowns.
3348         [Fixes bug #81477]
3349
3350 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3351
3352         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
3353           uints.
3354         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
3355           visibility. We can't create forms visible, since we have to set the
3356           owner before making the form visible (otherwise Win32 will do
3357           strange things with task bar icons). The problem is that we set the
3358           internal is_visible to true before creating the control, so
3359           is_changing_visible_state is the only way of determining if we're
3360           in the process of creating the form due to setting Visible=true -
3361           this works because SetVisibleCore explicitly makes the form
3362           visibile afterwards anyways. Fixes #80775.
3363
3364 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3365
3366         * ThemeWin32Classic.cs: When drawing ListViewItems,
3367         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
3368         or LargeIcon _and_ item is not focused (match .Net behaviour).
3369
3370 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
3371
3372         * Control.cs, Form.cs: Fix some obsolete method warnings.
3373
3374 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
3375
3376         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
3377         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
3378
3379 2007-05-04  Andreia Gaita  <avidigal@novell.com>
3380
3381         * ContainerControl.cs: Fix active_control attribution when going
3382         up the parent chain so that the first parent container gets the control
3383         and the rest of the parent containers get the child containers (skips
3384         non-containers). Fixes #80729
3385
3386 2007-05-04  Randolph Chung  <tausq@debian.org>
3387
3388         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
3389         [Fixes bug #81499]
3390
3391 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3392
3393         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
3394           takes a size parameter, since the CreateParam's size isn't true for
3395           minimized forms. Fixes #81518,
3396
3397 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3398
3399         * Form.cs: Add OnDeactivateInternal.
3400         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
3401
3402 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3403
3404         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
3405           accessing the parent. Fixes #81508.
3406
3407 2007-05-03  Chris Toshok  <toshok@ximian.com>
3408
3409         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
3410         2.0 block, pass listposition + 1 to ChangeRecordState when a row
3411         was added before the current listposition.  Fixes the
3412         TestInsertRowBeforeCurrent unit test.
3413
3414 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
3415
3416         * Application.cs: Add RaiseIdle.
3417         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3418         XplatUIX11.cs: Implement RaiseIdle.
3419
3420 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
3421         corcompare work: N - Z
3422         * NotifyIcon.cs
3423         * ProgressBar.cs
3424         * RadionButton.cs
3425         * ScrollableControl.cs
3426         * SplitContainer.cs
3427         * SplitterPanel.cs
3428         * StatusBar.cs
3429         * SystemInformation.cs
3430         * TabControl.cs
3431         * TableLayoutControlCollection.cs
3432         * TableLayoutPanel.cs
3433         * TabPage.cs
3434         * ToolBar.cs
3435         * ToolBarButton.cs
3436         * ToolStrip.cs
3437         * ToolStripComboBox.cs
3438         * ToolStripContainer.cs
3439         * ToolStripContentPanel.cs
3440         * ToolStripDropDown.cs
3441         * ToolStripDropDownItem.cs
3442         * ToolStripDropDownMenu.cs
3443         * ToolStripItem.cs
3444         * ToolStripItemCollection.cs
3445         * ToolStripMenuItem.cs
3446         * ToolStripPanel.cs
3447         * ToolStripSplitButton.cs
3448         * ToolTip.cs
3449         * TreeNode.cs
3450         * TreeNodeCollection.cs
3451         * TreeNodeMouseHoverEventArgs.cs
3452         * TreeView.cs
3453
3454 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
3455
3456         * ContextMenu.cs: Add public method Show with alignment property to 2.0
3457         stuff. Thanks aatdark for the patch. 
3458
3459 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
3460
3461         * GridItem.cs: Implement 2.0 Tag property.
3462
3463 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
3464
3465         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
3466         count instead of Nodes.Length.  [Fixes bug #81448]
3467
3468 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
3469
3470         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
3471         [Fixes bug #81506]
3472
3473 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
3474         corcompare work: A - M
3475         * BindingNavigator.cs
3476         * Button.cs
3477         * ButtonBase.cs
3478         * CheckBox.cs
3479         * Control.cs
3480         * FlowLayoutPanel.cs
3481         * Form.cs
3482         * Label.cs
3483         * LinkLabel.cs
3484         * ListView.cs
3485
3486 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
3487
3488         * Application.cs: Give toolstrips a chance to process mnemonics.
3489         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
3490         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
3491         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
3492
3493 2007-05-01  Jackson Harper  <jackson@ximian.com>
3494
3495         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
3496         wider area too.
3497         - Don't set the BoundsSpecified
3498
3499 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
3500
3501         * Application.cs: When using the toolstrip shortcut mechanism, allow the
3502         message to pass through to a regular control if it hosted by a toolstrip.
3503         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
3504         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
3505
3506 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
3507
3508         * TextRenderer.cs: Use the flags argument when using the MeasureString
3509         fallback algorithm.
3510
3511 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
3512
3513         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
3514         the MDI menu item.  [Fixes bug #81483]
3515
3516 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
3517
3518         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
3519         string. When setting Name to null, use zero-length string instead.
3520
3521 2007-04-29  Andreia Gaita  <avidigal@novell.com>
3522
3523         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
3524         DeselectTab). Implement missing 2.0 TabPageCollection methods
3525         (Add, ContainsKey, RemoveByKey, IndexOfKey)
3526
3527 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
3528
3529         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
3530
3531 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
3532
3533         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
3534         Fixes bug #81479. Include details of exception when LoadFile fails.
3535
3536 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
3537
3538         * DrawListViewSubItemEventArgs.cs: Added missing setter
3539
3540 2007-04-27  Andreia Gaita  <avidigal@novell.com>
3541
3542         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
3543         Hide methods (not complete). Implement missing 2.0 OnPopup event.
3544
3545 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3546
3547         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
3548         removed in ly last commit (it was breaking the Label edit feature).
3549
3550         * ThemeWin32Classic.cs: When drawing a ListViewItem use
3551         StringAlignment.Near for LineAlignment (match .Net).
3552
3553 2007-04-27  Andreia Gaita  <avidigal@novell.com>
3554
3555         * TabControl.cs: Change SetTab so it adds the tabpage to the list
3556         of controls if it isn't already there - was blowing up when doing
3557         tabcontrol.TabPages[i]=new TabPage(). 
3558         SetTab now does a replace by removing the page at the index. 
3559         Add a new InsertTab method that inserts a page in a given index 
3560         instead of replacing. 
3561         Implements TabPageCollection.Insert(int, TabPage).
3562
3563 2007-04-27  Chris Toshok  <toshok@ximian.com>
3564
3565         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
3566         internal handler that can be invoked from our subclasses.)  Also,
3567         add a comment to PushData about how we need to fix it.
3568
3569         * CurrencyManager.cs: tons of changes here.  trying to get things
3570         matching the behavior of .net wrt event orders (ItemChanged,
3571         CurrentChanged, PositionChanged.)  I've implemented a private .net
3572         symbol (ChangeRecordState) that appears in stack traces because
3573         it's actually easier to do this than to effective inline all its
3574         various behaviors at every call site.
3575
3576         * RelatedPropertyManager.cs: guard against an exception here by
3577         not using parent.Current if the position is set to -1 (if the
3578         parent datasource is cleared, for instance).
3579
3580         * Binding.cs: don't parse data in PushData (this might be wrong,
3581         but it jives with MS's behavior.)  Also, don't call PushData when
3582         we get a CurrentChanged event.
3583
3584 2007-04-27  Andreia Gaita  <avidigal@novell.com>
3585
3586         * WebBrowser.cs,
3587           WebBrowserBase.cs,
3588           WebBrowserSiteBase.cs,
3589           HtmlDocument.cs: Added stubbed out classes, no real implementations 
3590           yet.
3591
3592 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
3593
3594         * MainMenu.cs: In draw method without parameters call draw method with 
3595         PaintEvent, another one (just rect) adjust rectangle and we dont need it
3596         as Rect property is already adjusted. Fixes #80694.
3597
3598 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
3599
3600         * Application.cs: Need to handle keyboard menu deselection here.
3601         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
3602         navigation, allowing keyboard to work on X11.
3603         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
3604
3605 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
3606
3607         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
3608         menu bar. It fixes some drawing issues in menu bar.
3609
3610 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
3611
3612         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
3613         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
3614         when <alt> key is pressed.
3615
3616 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
3617
3618         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
3619         example just set visible to false and make this prevent from other problems.
3620         In SystrayAdd always remove pending expose. Fixes #81072.
3621
3622 2007-04-26  Marek Safar  <marek.safar@gmail.com>
3623
3624         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
3625         value is set.
3626
3627 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
3628
3629         * ListView.cs: Added three missing 2.0 events and corresponding
3630         EventHandlers. Added the OwnerDraw property.
3631         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
3632
3633 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
3634
3635         * DrawListViewItemEventArgs.cs
3636         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
3637
3638 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
3639
3640         * TextControl.cs: Fixed typo in constructor
3641
3642 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
3643
3644         * Application.cs: Create a shortcut path so that currently selected
3645         MenuStrips can intercept keyboard events without having focus.
3646         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
3647         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
3648         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
3649         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
3650         generate WM_SYSCOMMAND message in X11 for other platforms.
3651         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
3652         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
3653         * ToolStripSplitButton.cs: Add DefaultItem property.
3654         
3655 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
3656
3657         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
3658         fixes some menu draw problem on Windows with border diferent from default
3659         it also fixes #81403.
3660
3661 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3662
3663         * Form.cs: Refactor WndProc into separate methods, just like Control is
3664           doing it.
3665
3666 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3667
3668         * Control.cs: set_Text: move the call to the driver into a seperate
3669           virtual method so that Form can override it.
3670         * MaskedTextBox.cs: Corcompare fixes.
3671         * Form.cs: Override UpdateWindowText and only update the styles if the
3672           form has been shown (fixes #81405).
3673
3674 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
3675
3676         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
3677         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
3678         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
3679         the form lost focus or another control was clicked.
3680
3681 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
3682
3683         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
3684         fixed.
3685
3686 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3687
3688         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
3689           DrawListViewItemEventHandler.cs,
3690           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
3691           Added.
3692         * X11Structs.cs: More ToString implementation.
3693
3694 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
3695
3696         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
3697         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
3698
3699 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3700
3701         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
3702           handle.
3703         * FormCollection.cs: Don't add a form if it's already in the
3704           collection.
3705         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
3706           according to behaviour and MSDN. The ownerWin32 is the active
3707           window at the moment when we call ShowDialog, not the context's
3708           main form (the context's main form may open another form that opens
3709           a form with ShowDialog, the win32 owner is the second form). Add
3710           and remove forms to the Application.OpenForms in other places to
3711           better match MS behaviour. Add an IsActive property that raises
3712           On(de)Activated only if the active state has changed (we were
3713           raising OnDeactivated before OnActivated while creating forms).
3714         * Application.cs: Refactor Enabling/Disabling of windows for modal
3715           dialog loops out to separate methods, and restore the thread
3716           context when we quit the method. Fixes #81407.
3717
3718 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3719
3720         * ListView.cs: In ItemControl.HandleClicks, also fire 
3721         2.0 MouseClick or MouseDoubleClick events on the parent,
3722         not only the Click/DoubleClick events.
3723
3724 2007-04-24  Andreia Gaita  <avidigal@novell.com>
3725
3726         * TableLayoutSettings.cs: 
3727         - Added a GetControls method and a support structure to help the 
3728         TypeConverter to enumerate the controls for     serialization. 
3729         - Added a new serialization constructor. 
3730         - Added a isSerialized flag initialized to true on the 
3731         serialization constructor so that the TableLayoutPanel.LayoutSettings 
3732         setter does not throw the designed NotSupportedOperation exception
3733         when the object is built through deserialization.
3734         - Implemented GetObjectData
3735         
3736         * TableLayoutPanel.cs: Added check on LayoutSettings.
3737
3738 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3739
3740         * ListView.cs: Report Click and DoubleClick events to the parent
3741         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
3742         from breaking the click count state when using dialog forms (Control
3743         reports the clicks in a similar fashion). In the previous behaviour
3744         the last WM_LBUTTONUP message in a  double click was sent to the
3745         ListView's form, instead of the ListView, which was breaking the click
3746         count for it. Fixes #80387.
3747
3748 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
3749
3750         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
3751
3752 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
3753
3754         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
3755         us from created dropdowns for menu items that do not have subitems.
3756         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
3757         Check HasDropDownItems before calling DropDown so a dropdown will not be
3758         created if it isn't needed.
3759
3760 2007-04-24  Jackson Harper  <jackson@ximian.com>
3761
3762         * TreeView.cs: Set the first node to the selected node when we get
3763         focus if there is no selected node.
3764
3765 2007-04-24  Andreia Gaita  <avidigal@novell.com>
3766
3767         * MimeIcon.cs: remove using blocks so that image streams are
3768         not disposed of. Fixes #80151
3769
3770 2007-04-24  Jackson Harper  <jackson@ximian.com>
3771
3772         * TextBoxBase.cs: Fixup the height of textboxes when the control
3773         is created.
3774
3775 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
3776
3777         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
3778         for each ToolStripItem when the parent's RightToLeftChanged is called.
3779
3780 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3781
3782         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
3783           Fixes #80163.
3784         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
3785           property, so that the setter can be overriden too.
3786         * TextBox.cs: Change GetContextMenuInternal() to use
3787           ContextMenuInternal.
3788
3789 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3790
3791         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
3792           #81406.
3793
3794 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3795
3796         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
3797           #81406.
3798
3799 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3800
3801         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
3802           avoid duplicate work. Mostily skeleton code, it's not working at
3803           all yet.
3804
3805 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
3806
3807         * NotifyIcon.cs : stub for MouseClick event
3808         * Application.cs: stub for SetUnhandledExceptionMode
3809
3810 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
3811
3812         * BindingNavigator.cs : Initial (partial) implementation
3813
3814 2007-04-23  Jackson Harper  <jackson@ximian.com>
3815
3816         * TreeView.cs: Do not create the treeview's handle when setting
3817         the scroll position.
3818         - ExpandAll needs to compute the scrollbars so it knows which
3819         position to set the bar too.
3820         * TreeNode.cs: 
3821         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
3822
3823 2007-04-23  Jackson Harper  <jackson@ximian.com>
3824
3825         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
3826         key. Fixes #81408.
3827
3828 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
3829
3830         * ToolStripItem.cs: Make GetImageSize internal.
3831         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
3832         need to draw an item.  Fixes a reported issue where images on menus
3833         that were not 16x16 were drawing incorrectly.
3834
3835 2007-04-21  Miguel de Icaza  <miguel@novell.com>
3836
3837         * Padding.cs: Use the converter, fixes the resgen2 issue with
3838         XMLNotePad. 
3839
3840 2007-04-21  Jackson Harper  <jackson@ximian.com>
3841
3842         * TreeView.cs: Dont try to unhighlight the selected node if there
3843         isn't a selected node.
3844
3845 2007-04-21  Jackson Harper  <jackson@ximian.com>
3846
3847         * UpDownBase.cs:
3848         * TextBoxBase.cs:
3849         * ListView.cs:
3850         * ListBox.cs:
3851         * TreeView.cs: Use the InternalBorderStyle property to set the
3852         initial border style, this forces the client rectangle to be sized
3853         correctly.
3854
3855 2007-04-20  Jackson Harper  <jackson@ximian.com>
3856
3857         * TreeView.cs: Simplify scrolling to the last node after expanding
3858         all.
3859         - Fix some off by ones with setting the bottom.
3860
3861 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
3862
3863         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
3864         that.  We were incorrectly doing it the other way around.  Also,
3865         update ClientSize if we change the BorderStyle before the control
3866         is created.
3867
3868 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
3869
3870         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
3871         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
3872         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
3873         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
3874         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
3875         Caption to CaptionHeight.
3876         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
3877         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
3878         and FixedFrameBorderSize to return value from current XplatUI driver.
3879         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
3880         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
3881         and FixedFrameBorderSize using win32 API. Renamed Caption to
3882         CaptionHeight.
3883         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
3884         * SystemInformation.cs: Fixed typo in BorderSize.
3885
3886 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
3887
3888         * XplatUI.cs: Added MenuAccessKeysUnderlined.
3889         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
3890         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
3891         returning false.
3892         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
3893         value from XplatUI driver.
3894         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
3895         SystemParametersInfo.
3896         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
3897         override.
3898         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
3899         returning false.
3900
3901 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3902
3903         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
3904
3905 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3906
3907         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
3908
3909 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
3910
3911         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
3912         MenuStrips that contain ToolStripSeparators.
3913
3914 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3915
3916         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
3917           DefineStdCursorBitmap.
3918         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
3919           has been created off a standard cursor. This is used to get a
3920           bitmap of the standard cursor when Draw or DrawStretched is called
3921           in order to draw the cursor.
3922         * X11Structs.cs: Added XcursorImage and XcursorImages.
3923         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
3924           DefineStdCursorBitmap.
3925         * Cursors.cs: Update all relevant creations of Cursor to use the new
3926           internal constructor.
3927
3928 2007-04-19  Jackson Harper  <jackson@ximian.com>
3929
3930         * TextBox.cs: Move the has_been_focused into the base control, so
3931         some of the text adding methods can manipulate it (probably time
3932         for a better name for this flag too).
3933         - Call a new version of selectall that doesn't scroll
3934         * TextBoxBase.cs: When we append text, if the document is empty,
3935         don't scroll.  If the document has text already, we scroll to the
3936         end of the appended text.
3937         - When the text is changed, we reset the has_been_focused, so the
3938         next time the control gets focused, all the text is selected.
3939
3940 2007-04-19  Jackson Harper  <jackson@ximian.com>
3941
3942         * TextControl.cs: Move the margins to the document, add a method
3943         so the margin sizes can be updated.
3944         * TextBoxBase.cs: When the border style is changed, update the
3945         border sizes.
3946
3947 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
3948
3949         * Control.cs: Respect DefaultPadding.
3950         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
3951         padding into account.
3952         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
3953
3954 2007-04-19  Jackson Harper  <jackson@ximian.com>
3955
3956         * TextControl.cs: Oops, we need to use the ClientRect not the
3957         bounds here.
3958
3959 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3960
3961         * ListView.cs: In ItemControl.ItemsMouseDown, take into
3962         account the double clicks when CheckBoxes are used and
3963         the pointer is inside the checkbox. Fixes part of #81191.
3964
3965 2007-04-18  Jackson Harper  <jackson@ximian.com>
3966
3967         * TextControl.cs: Pressing the end key shouldn't move the caret
3968         past the line ending.
3969         * TextBoxBase.cs: We can still delete if we are in the line
3970         ending and the combine will just kill the existing line ending.
3971
3972 2007-04-18  Jackson Harper  <jackson@ximian.com>
3973
3974         * TextControl.cs: We can't move lines, then invalidate their
3975         bounds, we need to get the old bounds and combine that with the
3976         new bounds.
3977         * TextBoxBase.cs: Before combining two lines for a delete, we need
3978         to invalidate the area of the old line, since that will be moved
3979         in the combine operation.
3980
3981 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
3982
3983         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
3984         with transparent background. Fixes #80482.
3985
3986 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
3987
3988         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
3989         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
3990         [Fixes bug #81391]
3991
3992 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3993
3994         * CreateParams.cs: Add a couple of helper methods and do a less string
3995           concatenation in ToString.
3996         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
3997           overload that takes a Control parameter, since this method may be
3998           called before a control is assigned to the hwnd (from
3999           CreateWindow), and update CreateWindow to use the new overload. In
4000           GetMenuOrigin subtract the title bar from the y position if the
4001           form has a window manager (since we're painting it and not X).
4002         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
4003           CreateParams to calculate the origin (since border sizes may vary).
4004           In ScreenToMenu only subtract the title height if we actually have
4005           a title.
4006         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
4007           mdi children never have menus of themselves.
4008         * InternalWindowManager.cs: Implement menu handling like form does.
4009           Added GetMenuOrigin to calculate the menu origin, can't use the
4010           CreateParams from the form like normally since it's lying.
4011         * Hwnd.cs: Implement GetBorderSize better (in the sense more
4012           windows-like) and add Inflate and comparison operators to the
4013           Borders type. When calculating MenuOrigin and it's a form with a
4014           window manager, use the window manager to calculate it.
4015
4016 2007-04-17  Chris Toshok  <toshok@ximian.com>
4017
4018         * Control.cs (CreateControl): turns out in 2.0 we don't need this
4019         OnBindingContextChanged thing here.  It's only generated from
4020         ContainerControl.OnCreateControl.  Fixes a newly written unit test
4021         - BindingTest.BindingContextChangedTest4.
4022         
4023 2007-04-17  Jackson Harper  <jackson@ximian.com>
4024
4025         * ScrollBar.cs: When setting values, make sure the current
4026         position stays within the new values range.
4027
4028 2007-04-17  Chris Toshok  <toshok@ximian.com>
4029
4030         * Control.cs (CreateControl): talk about a bizarre corner case.
4031         Don't emit OnBindingContextChanged here if we're a parentless
4032         control (i.e. if we're a form.).  Fixes
4033         BindingTest.BindingContextChangedTest2.
4034
4035 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
4036
4037         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
4038         from win32. Fixes #81255.
4039
4040 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
4041
4042         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
4043         already present in CalculateButtonTextAndImageLayout.
4044
4045 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4046
4047         * XplatUIX11.cs: When setting min/max size for a window we need to
4048           translate the coordinates to x coordinates. Create an overload of
4049           SetWindowMinMax that takes a CreateParams handling this, and change
4050           SetWMStyles to call this function (can't use Control.FromHandle in
4051           the SetWindowMinMax to get the control/CreateParams from the handle
4052           because the handle might not have been assigned to the control
4053           yet). Fixes #81371.
4054
4055 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4056
4057         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
4058         if StateImageList is non-null and it has less than two items (match MS
4059         behaviour). Also, in HandleNavKeys handle the Space key, calling
4060         the new ToggleItemsCheckState method, which tries to change the
4061         checked state of the selected items. Fixes part of #81191.
4062
4063 2007-04-16  Jackson Harper  <jackson@ximian.com>
4064
4065         * RichTextBox.cs: namespace cleanup.
4066
4067 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
4068
4069         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
4070
4071 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
4072
4073         [Fixes #79447]
4074         * Control.cs: Call invalidate in set_Region.
4075
4076         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
4077         it dont works here.
4078
4079 2007-04-16  Jackson Harper  <jackson@ximian.com>
4080
4081         * TextBoxBase.cs: When enter is pressed, we need to update all
4082         lines below the current.
4083
4084 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
4085
4086         * MdiClient.cs: Implement implicit menu merging for MDI
4087         children.  When a child form is active, if it has a menustrip
4088         and the parent form has a MainMenuStrip, automatically merge
4089         the menus.
4090
4091 2007-04-15  Andreia Gaita  <avidigal@novell.com>
4092
4093         * TabControl.cs: Refactored sizing methods to not repeat
4094         code all over the place. Tab bounds are now calculated
4095         as if alignment is top and single line, and only when 
4096         setting the bounds are the positions adjusted according
4097         to alignment. Replaced hardcoded positions, spacings and
4098         paddings by getting the values the ThemeEngine. 
4099         Fixes #79619.
4100         
4101         * Theme.cs: Change TabControl properties and methods so
4102         that all start with TabControl*. Added more properties
4103         to help remove hardcoded values on tabcontrol.
4104         Add CPDrawBorder3D declaration so the Theming classes
4105         can access it.
4106         
4107         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
4108
4109         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
4110         on the Theming namespace, and call the appropriate methods here.
4111         Change CPDrawBorder3D to public.
4112
4113 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4114
4115         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
4116         the control after firing the OnMouseUp event, instead of sending
4117         the message before the mentioned event. This is so we can match the
4118         MS behaviour. Fixes part of #80385.
4119
4120 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
4121
4122         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
4123         RightToLeft property.
4124
4125 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
4126
4127         * ToolStrip.cs: Add properties and internal methods to support merging.
4128         * ToolStripItem.cs: Add MergeAction and MergeIndex.
4129         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
4130         not trigger reparenting or layouts.
4131         * ToolStripManager.cs: Add Merge and RevertMerge methods.
4132         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
4133         is hosting the overflow menu.
4134
4135 2007-04-13  Jackson Harper  <jackson@ximian.com>
4136
4137         * TextControl.cs: Set the line ending correctly for the first
4138         inserted line.
4139
4140 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
4141
4142         * Theme.cs: Update GetMethod to get the new definition for 
4143         KnownColors.Update (and fix theme color updates).
4144
4145 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
4146
4147         * MessageBox.cs: Fix some test and button position.
4148
4149 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4150
4151         * Form.cs: Consider the implicit controls in
4152         GetRealChildAtPoint. We need it since this method
4153         is called on Form when handling the some messages in
4154         WndProc, and need to consider those implicit ones too.
4155         Fixes #80385.
4156
4157 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
4158
4159         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
4160         if there are no ShortcutKeys set.
4161         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
4162         set, use it when painting.
4163
4164 2007-04-12  Jackson Harper  <jackson@ximian.com>
4165
4166         * TextControl.cs: Fix some off-by-one issues in line duplication
4167         and insertion in the undo manager. Also, overwrite the first tag
4168         of a line on insert, if it is just a zero lengthed tag. This
4169         prevents us from getting an extra stranded tag at the beginning of
4170         the first line.
4171
4172 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
4173
4174         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
4175         to calculated proper size including when handle was not created yet.
4176
4177 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4178
4179         * MdiWindowManager.cs: When moving a form, allow the form to be moved
4180           when the mouse is outside of it's parent's client rectangle. Fixes
4181           #79982 (take 3, part 2).
4182
4183 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4184
4185         * X11Structs.cs: Add a few ToString() overrides.
4186         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
4187           the window location in a window-manager independent way. Reworked
4188           FrameExtents, it now actually works. Reworked AddConfigureNotify
4189           and ReparentNotify handling to use GetTopLevelWindowLocation
4190           instead of the earlier, more hacky solution. Reworked SetWMStyles,
4191           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
4192           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
4193           for all other windows (fixes #81281 part 1), a toolwindow is hidden
4194           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
4195           and generally refactored to do as few calculations as possible
4196           inside the lock.
4197
4198 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
4199
4200         * Theme.cs: Change "reflective-contract" between MWF and SD to 
4201         minimize # of calls, avoid Color serialization and avoid updating 
4202         every "known colors" each time a single one is updated.
4203
4204 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
4205
4206         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
4207         when not readonly and the text is explicitly set. Code style updates.
4208         * DataGridTableStyle.cs: Removed extra line.
4209         * DataGrid.cs: Code style updates. Removed extra whitespace.
4210         * DataGridColumnStyle.cs: Code style updates. Removed extra 
4211         whitespace.
4212
4213 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4214
4215         * XplatUIX11.cs: Added comment that "fixes" #80021.
4216
4217 2007-04-09  Jackson Harper  <jackson@ximian.com>
4218
4219         * TextControl.cs: We don't need this -1 on the line count anymore.
4220
4221 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
4222
4223         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
4224         entered value to underlying type, and convert it back to a string to
4225         apply formatting. Modified GetFormattedValue to use TypeConverter
4226         if available.
4227
4228 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
4229
4230         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
4231         Use SubItems property when we want to ensure there's at least one
4232         subitem. Modified SubItems property to ensure there's always at least
4233         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
4234         the NRE's reported by MS.
4235
4236 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
4237
4238         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
4239         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
4240         Spaces to tabs. Removed extra tabs.
4241
4242 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
4243
4244         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
4245         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
4246
4247 2007-04-06  Jackson Harper  <jackson@ximian.com>
4248
4249         * TextBoxBase.cs: When a delete removes a line, recalculate all
4250         lines below that line (they need to get offsets setup correctly)
4251         and invalidate.
4252
4253 2007-04-05  Jackson Harper  <jackson@ximian.com>
4254
4255         * TextControl.cs: We need to invalidate across the width of the
4256         document when we are invalidating multiple lines.
4257         * TextBoxBase.cs: Don't delete into the line ending.
4258
4259 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4260
4261         * ListView.cs: Restore the check for the MouseHover event
4262         in ListView. It looks like the ListView fires more than one MouseHover
4263         event when HoverSelection is true  _only_ in weird-corner scenarios, but
4264         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
4265         event.
4266
4267 2007-04-05  Mike Kestner  <mkestner@novell.com>
4268
4269         * ListView.cs : raise MouseDown before updating selection.
4270         [Fixes #80373 tab 1&3]
4271
4272 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
4273
4274         * ToolStripRenderer.cs: Add static method to mirror image.
4275         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
4276         and RightToLeftAutoMirrorImage.
4277         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
4278
4279 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
4280
4281         * ToolStripSplitStackLayout.cs: Support Alignment property.
4282         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
4283
4284 2007-04-05  Jackson Harper  <jackson@ximian.com>
4285
4286         * TextControl.cs: Move around the line endings when crossing line
4287         boundaries.
4288         - When combining lines, strip the ending text off the first line.
4289
4290 2007-04-05  Jackson Harper  <jackson@ximian.com>
4291
4292         * TextControl.cs:
4293         * TextBoxBase.cs: Try to never move the cursor into the line
4294         ending.
4295         
4296 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
4297
4298         * ToolStripItem.cs: Make sure we aren't firing mouse events when
4299         the item is disabled.  Also add a few missing methods.
4300
4301 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4302
4303         * ListView.cs: We don't need the MouseEnter/MouseLeave check
4304         to fire just one MouseHover event when HoverSelection is true, since
4305         .Net does fire more than one MouseHover event in that scenario. Also,
4306         fix the selection in HoverSelection, by invoking UpdateMultiSelect
4307         if MultiSelect is true, instead of only setting ListViewItem.Selected.
4308         Finally, we need to reset the Hover logic in MouseMove, even when we
4309         don't have a selected item.
4310
4311 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
4312
4313         * ToolStrip.cs: Add several missing methods, properties, and events.
4314
4315 2007-04-04  Chris Toshok  <toshok@ximian.com>
4316
4317         * DataGridTextBoxColumn.cs: set the bounds of the text box to
4318         (0,0,0,0) in Commit, as MS does.
4319
4320         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
4321         make sure we set CurrentRow on a row header click *before* calling
4322         Select.  This moves the current cell (and the textbox) to the new
4323         row.  The call to Select then hides the textbox, giving us the
4324         correct behavior.  Fixes #80362.
4325
4326         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
4327         (ListChangedHandler): reorder the position/current changed events,
4328         and call UpdateIsBinding in the ItemAdded case.
4329
4330         * GridColumnStylesCollection.cs: add some columns events, one of
4331         which raises the CollectionChanged event.
4332
4333 2007-04-04  Jackson Harper  <jackson@ximian.com>
4334
4335         * TextControl.cs: When we delete multiple selection lines
4336         invalidate the selection area, don't need to do that for single
4337         lines because the final update view will handle it.
4338
4339 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
4340
4341         * Control.cs: When we CreateControl, we need to also create all of the
4342         control's children.  The child's OnLoad must also fire before the parent's
4343         OnLoad.  Fixes the toolbox size in PDN.
4344
4345 2007-04-04  Jackson Harper  <jackson@ximian.com>
4346
4347         * TextBoxBase.cs: When the user presses enter, insert a line
4348         ending into the text. (Maybe this would be a good spot for
4349         Environment.NewLine).
4350         * TextControl.cs: Remove undo manager hack, line endings get
4351         inserted properly now.
4352         
4353 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
4354
4355         * MenuAPI.cs: 
4356         - Remove unneeded parameters in UpdateCursor.
4357         - Fix UpdateCursor to check if menu is active.
4358         - Call UpdateCursor when menu deactivate my click.
4359         [Fixes remaining issues from #80410]
4360
4361 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
4362
4363         * Control.cs: GetRealChildAtPoint method added, it make an
4364         recursive child control search for the point. 
4365
4366         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
4367         menu.
4368
4369         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
4370
4371 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
4372
4373         * Form.cs: Fix mouse position when send back mouse event after closes
4374         menu.
4375
4376 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
4377
4378         * Form.cs: Simplify the BUTTONDOWN for active tracker.
4379
4380 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
4381
4382         * Control.cs: Fix an issue where if a user resized a control inside
4383         a sizing method like OnResize, we would overwrite their explicit
4384         value.  Also, only call DefaultSize once in the constructor instead
4385         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
4386         nothing actually changed.
4387
4388 2007-04-03  Jackson Harper  <jackson@ximian.com>
4389
4390         * TextControl.cs: Don't attempt to copy text for lines with no
4391         text in them (technically this shouldn't happen, but we aren't
4392         always inserting line endings when we should be).
4393
4394 2007-04-03  Jackson Harper  <jackson@ximian.com>
4395
4396         * TextBoxBase.cs: Calculate the scrollbars before calculating the
4397         document, because this sets some of the document size properties
4398         that are needed.
4399
4400 2007-04-03  Jackson Harper  <jackson@ximian.com>
4401
4402         * TextBoxBase.cs: We need to calculate maximums even if this is
4403         not a multiline control, because the maxs are used for scrolling.
4404         - Display the caret after doing a page up/down, we need to
4405         manually display it because a proper CaretMoved event isn't
4406         triggered (this is because of the way the math is done to
4407         determine how far to scroll).
4408
4409 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
4410
4411         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
4412         (ToolBar was relying on SetBoundsCore to default the values sent 
4413         base off of BoundsSpecified.)
4414
4415 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4416
4417         * DateTimePicker.cs: Change Text so that when a null value or empty
4418           string is assigned to the test we always raise ValueChanged and
4419           TextChanged (earlier implementation would only raise ValueChanged
4420           if the current date value was different from DateTime.Now).
4421
4422 2007-04-03  Andreia Gaita <avidigal@novell.com> 
4423
4424         * ButtonBase: Call update after invalidation, fixes #80194
4425
4426 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4427
4428         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
4429           #79335.
4430
4431 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4432
4433         * XplatUIX11.cs: SetWMStyles: If the control is a form with
4434           FormBorderStyle = None, don't give the window any decorations.
4435           Fixes #81276.
4436
4437 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4438
4439         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
4440         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
4441           to check for is a mix of several styles (such as WS_CAPTION for
4442           instance).
4443         * Control.cs: Don't paint an area bigger than the client area when
4444           painting the background colour. Add an internal GetCreateParams.
4445           Update calls to XplatUI.CalculateWindowRect due to API change.
4446         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
4447           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
4448           the size if it hasn't been handled by any windows. When creating
4449           and moving windows, X wants the location of the entire window, but
4450           the size of the client window, so add
4451           TranslateClientRectangleToXClientRectangle,
4452           TranslateWindowSizeToXWindowSIze and
4453           TranslatedXWindowSizeToWindowSize to cope with this, and call them
4454           before every window creation and move. Update CalculateWIndowRect
4455           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
4456           In AddConfigureNotify don't do anything if the hwnd is a zombie
4457           (fixes the BadWindow we were getting while running the tests),
4458           always calculate the offsets when it's a parentless window, not
4459           only when reparented, and translate the window size, since we're
4460           getting the client size of the whole window, excluding entire
4461           window.
4462         * Theme.cs: Added BorderSizableSize.
4463         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
4464           anymore. Update calls to XplatUI.CalculateWindowRect due to API
4465           chang
4466         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
4467           change. Fake the window styles here instead of in XplatUIWin32 so
4468           that all back-ends get the same window styles (and it's Form that's
4469           deciding when to use wm, not the Win32 backend anyways)
4470         * Hwnd.cs: Completely reworked GetWindowRectangle and
4471           GetClientRectangle - they are now passed a CreateParams and they
4472           only use Style and ExStyle to determine the rectangles (they should
4473           now work just like Win32AdjustWindowRectEx - though quite a few
4474           special cases are probably missing). They should also be 100%
4475           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
4476           == rect), and all numbers (borders, menu sizes) are taken from the
4477           current theme. Added a GetBorders helper function that will return
4478           the borders for any given CreateParams (including captions and
4479           menus), and GetBorderSize that returns the given border size only.
4480         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
4481           Hwnd.GetClientRectangle.
4482
4483 2007-04-02  Chris Toshok  <toshok@ximian.com>
4484
4485         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
4486         logic between the values we present to the user and the values
4487         which are stored in the column's property.  Also, don't call
4488         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
4489
4490 2007-04-02  Jackson Harper  <jackson@ximian.com>
4491
4492         * TextBoxBase.cs: Scroll faster!
4493
4494 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
4495
4496         * StatusStrip.cs: Layout fixes for PDN.
4497         * ToolStrip.cs: Set item's available to true, and placement to main when
4498         added.
4499         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
4500         changing in setter before doing any work, add InternalVisible.
4501         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
4502         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
4503         infinite loop.
4504
4505 2007-04-02  Jackson Harper  <jackson@ximian.com>
4506
4507         * TextBox.cs: LBUTTON does not make the textbox select all of it's
4508         text on focus.
4509
4510 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4511
4512         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
4513           Makes ToolStripComboBoxes show up again.
4514
4515 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4516
4517         * ListView.cs: Add a hover_pending field in ListView
4518         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
4519         cycle (we are resetting the MouseHover logic in XplatUI
4520         to handle HoverSelection). Fixes #80429.
4521
4522 2007-04-02  Jackson Harper  <jackson@ximian.com>
4523
4524         * TextControl.cs: Make sure the attributes get set on the last
4525         tag.
4526         - Still have to do the end tag if we have stepped all the ways to
4527         the end.
4528
4529 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
4530
4531         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
4532         on an internal libgdiplus call when the information is already 
4533         available via the public API.
4534
4535 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4536
4537         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
4538           control is removed from a control collecftion.
4539         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
4540           Fixes FormPropertyTest (failed on rare occasions).
4541         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
4542           of Win32SetParent (when changing from no parent to a parent it
4543           might add the new parent's location in screen coordinates to this
4544           window's location).
4545         * Form.cs: Rework ChangingParent once again, now the handle is
4546           recreated whenever a FormWindowManager is added or removed (that is
4547           whenever a normal form is parented or abandoned). Also change
4548           CreateParams so that all non-toplevel windows always get the
4549           specified sice (StartupPosition is never considered for
4550           non-TopLevel forms).
4551         * ContainerControl.cs: Add ChildControlRemoved, the container control
4552           needs to be notified when a control is removed from it's
4553           collection, in the case the removed control is the active control.
4554
4555 2007-04-02  Jackson Harper  <jackson@ximian.com>
4556
4557         * RichTextBox.cs: Use the new methods for setting the font and
4558         color, these methods set the specified attribute without
4559         overriding the other attributes.
4560
4561 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
4562
4563         * ToolStripPanel.cs: Fixes for better layouts in PDN.
4564
4565 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
4566
4567         * TextBox.cs: Added internal ChangeBackColor method to special-case
4568         Color.Empty. Added check for invalid ScrollBars value.
4569         * TextBoxBase.cs: Added internal ChangeBackColor method.
4570         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
4571         internal ChangeBackColor method to special-case Color.Empty. Added
4572         check for invalid ScrollBars value.
4573
4574 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
4575
4576         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
4577
4578 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
4579
4580         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
4581         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
4582         [Based on submitted patch from Olivier Duff.]
4583
4584 2007-03-30  Jackson Harper  <jackson@ximian.com>
4585
4586         * TextBox.cs: Only select all on initial focus if the user has not
4587         specified a selection area.
4588
4589 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
4590
4591         * UserControl.cs: Override CreateParams.
4592
4593 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4594
4595         [ Fixes #80995 ]
4596
4597         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
4598         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
4599           check for is a mix of several styles (such as WS_CAPTION for instance).
4600         * Control.cs: Don't paint an area bigger than the client area when painting
4601           the background colour. Add an internal GetCreateParams. Update calls to
4602           XplatUI.CalculateWindowRect due to API change.
4603         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
4604           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
4605           hasn't been handled by any windows. When creating and moving windows, X
4606           wants the location of the entire window, but the size of the client
4607           window, so add TranslateClientRectangleToXClientRectangle,
4608           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
4609           to cope with this, and call them before every window creation and move.
4610           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
4611           removing DeriveStyles). In AddConfigureNotify don't do anything if the
4612           hwnd is a zombie (fixes the BadWindow we were getting while running the
4613           tests), always calculate the offsets when it's a parentless window, not
4614           only when reparented, and translate the window size, since we're getting
4615           the client size of the whole window, excluding entire window.
4616         * Theme.cs: Added BorderSizableSize.
4617         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
4618           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
4619         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
4620           Fake the window styles here instead of in XplatUIWin32 so that all
4621           back-ends get the same window styles (and it's Form that's deciding when
4622           to use wm, not the Win32 backend anyways)
4623         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
4624           they are now passed a CreateParams and they only use Style and ExStyle
4625           to determine the rectangles (they should now work just like
4626           Win32AdjustWindowRectEx - though quite a few special cases are probably
4627           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
4628           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
4629           sizes) are taken from the current theme. Added a GetBorders helper
4630           function that will return the borders for any given CreateParams
4631           (including captions and menus), and GetBorderSize that returns the given
4632           border size only.
4633         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
4634           Hwnd.GetClientRectangle.
4635
4636 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4637
4638         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
4639           layout of the mdi children is handled by CreateParams. Fixes
4640           #79964,
4641
4642 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
4643
4644         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
4645         processed.
4646
4647         * Form.cs: When active tracker mouse down is not processed, send event 
4648         back to control inside mouse position. [Fixes #81227]
4649
4650 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
4651
4652         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
4653         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
4654         stealing focus from the active form on Windows.  (Control will be made
4655         visible in ShowWindow.)
4656
4657 2007-03-29  Mike Kestner  <mkestner@novell.com>
4658
4659         * ImageList.cs : add internal Changed event.
4660         * ListView.cs : hook up to StateImageList.Changed to perform
4661         invalidations when the the state icon list changes. [Fixes #81191]
4662
4663 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
4664
4665         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
4666         to prevent tooltips from stealing focus from the active form on Windows.
4667
4668 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
4669
4670         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
4671
4672         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
4673
4674 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
4675
4676         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
4677         balloons.
4678
4679 2007-03-29  Jackson Harper  <jackson@ximian.com>
4680
4681         * TextControl.cs: When deleting text from non multiline textboxes,
4682         we need to update the entire document, because line offsets will
4683         be shifting.
4684
4685 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
4686
4687         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
4688         added to theme, now we can create themes that uses diferent notify engines
4689         like notification-daemon from galago project or growl for Mac OS.
4690
4691 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
4692
4693         * NotifyIcon.cs: Prevent Balloon to show in task bar.
4694
4695 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
4696
4697         * XplatUIX11.cs: Prevent system to open more than one balloon.
4698
4699         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
4700         some compiler warning messages.
4701
4702 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
4703
4704         [Fixes #79149]
4705
4706         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
4707
4708         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
4709         implemented, this methods is used by NotifyIcon.BalloonWindow class.
4710
4711         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
4712         systems.
4713
4714 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4715
4716         * ListViewItem.cs: Forgot to make Invalidate internal.
4717
4718 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4719
4720         * ListView.cs: Add a InvalidateSelection method to
4721         invalidate methods which are currently selected, and call
4722         it when setting FullRowSelect and HideSelection, instead of
4723         calling Redraw.
4724
4725 2007-03-28  Chris Toshok  <toshok@ximian.com>
4726
4727         * XplatUIX11.cs (UnmapWindow): reindent this block.
4728
4729         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
4730         the selection_start if we're moving the selection (that is, not
4731         extending it). Fixes bug #80461.
4732
4733 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
4734
4735         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
4736         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
4737         create private ControlCollection.
4738
4739 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
4740
4741         * Control.cs: We need to call OnVisibleChanged for our implicit
4742         children as well as our normal children.  Fixes scrollbars in
4743         comboboxes not showing up.
4744
4745 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
4746
4747         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
4748         the check for IsHandleCreated first.  The check in CreateHandle is not
4749         good enough because CreateHandle can be overriden, and the override 
4750         should not be called if the handle is already created.
4751
4752 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
4753
4754         * ToolStrip.cs: Remove MonoTODO for tooltips.
4755         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
4756         * ToolStripContainer.cs: Add custom ControlCollection class.
4757         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
4758         * ToolStripDropDown.cs: Add some missing properties/methods.
4759         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
4760         * ToolStripItem.cs: Remove MonoTODO for tooltips.
4761         * ToolStripManager.cs: Add IsShortcutDefined.
4762         * ToolStripOverflow.cs: Override LayoutEngine.
4763         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
4764         * ToolStripSeparator.cs: Add ImageKey.
4765
4766 2007-03-28  Jackson Harper  <jackson@ximian.com>
4767
4768         * TextControl.cs: If a char delete removes a line ending, we need
4769         to update the ending style.
4770         - Make sure the line ending calcs get called.
4771
4772 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4773
4774         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
4775           it was making the new code not work. Fixed a typo in the new code
4776           as well. Fixes #79826.
4777
4778 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
4779
4780         * XplatUIWin32.cs:
4781         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
4782         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
4783         - SystrayBalloon method implemented.
4784         [Add support for notifyicon balloon on win32, #79149]
4785
4786 2007-03-27  Mike Kestner  <mkestner@novell.com>
4787
4788         * ThemeWin32Classic.cs : update StateImageList selection to mirror
4789         the ms behavior when only one image is added to the list.
4790         [Fixes #81191]
4791
4792 2007-03-27  Jackson Harper  <jackson@ximian.com>
4793
4794         * TextControl.cs: Improvements to non multiline line ending
4795         drawing/measuing.
4796
4797 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
4798
4799         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
4800
4801 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
4802
4803         * NotifyIcon.cs: 
4804         - Balloon message handling added.
4805         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
4806
4807         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
4808         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
4809         to SystrayBalloon to me like other Systray method, also a
4810         handle parameter added.
4811
4812 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4813
4814         * ListView.cs: Show scrollbars even when items.Count == 0
4815         but the columns Width is bigger than the ListView.Width.
4816         Also, when columns.Count == 0 set layout_wd and layout_ht
4817         to the ClientRectangle values, so we don't show any scrollbar
4818         in that case.
4819
4820 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
4821
4822         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
4823
4824 2007-03-27  Jackson Harper  <jackson@ximian.com>
4825
4826         * RichTextBox.cs: The RTF library decodes the text properly for us
4827         now.
4828
4829 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4830
4831         * ListView.cs: Display HeaderControl even when columns.Count == 0.
4832         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
4833         ListView header (HeaderControl), instead of Control.BackColor.
4834
4835 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
4836
4837         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
4838         Fixes tab control issues where controls would not show up because they
4839         never received their OnVisibleChanged call.
4840
4841 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
4842
4843         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
4844         BalloonTipShown).
4845
4846 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
4847
4848         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
4849         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
4850         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
4851         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
4852         the handle.  Fix WindowState by using the internal variable until we are 
4853         sure that we've been shown.
4854         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
4855         max or min.
4856         [Fixes bug #81198]
4857
4858 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4859
4860         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
4861           (at least borders). Fixes #79386 on Linux (with a small difference
4862           in behaviour: when trying to resize a caption-less window metacity
4863           shows the sysmenu. Resizing is still possible though).
4864         * XplatUIWin32.cs: When setting window styles send request an extra
4865           WM_NCCALCSIZE when it's a form without title (due to no text and no
4866           caption), since Win32 seems to calculate it wrong the first time we
4867           get the message, though the second time things work as they should.
4868         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
4869           newly reparented window might show up unparented. Update
4870           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
4871           there's no title text. Fixes #79386.
4872
4873 2007-03-27  Mike Kestner  <mkestner@novell.com>
4874
4875         * ListBox.cs : don't perform invalidations if the handle hasn't been
4876         created.  [Fixes #80753]
4877
4878 2007-03-27  Mike Kestner  <mkestner@novell.com>
4879
4880         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
4881         [Fixes #80428]
4882
4883 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
4884
4885         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
4886         needed to implement Balloon.
4887
4888 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4889
4890         * ListViewItem.cs: In the constructors that take
4891         an array of strings, don't use ListViewSubItemCollection.AddRange
4892         method to add items, since we need to have a different behaviour (in
4893         the constructors we add an item for each null string, opposed to
4894         the behaviour of AddRange, which adds nothing).
4895
4896 2007-03-26  Andreia Gaita  <avidigal@novell.com>
4897
4898         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
4899
4900 2007-03-26  Jackson Harper  <jackson@ximian.com>
4901
4902         * TextControl.cs: Draw and measure line endings when in non
4903         multiline mode.
4904         - When searching the text, count the end of the last line as a
4905         word boundary.
4906
4907 2007-03-26  Jackson Harper  <jackson@ximian.com>
4908
4909         * RichTextBox.cs: The selection_start and selection_end don't
4910         really track the correct tags for the selection. So we'll manually
4911         compute the correct tag here.
4912
4913 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4914
4915         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
4916           and Continuous styles. Fixes #79469.
4917
4918 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
4919
4920         * ToolStrip.cs: Implement Tooltips.
4921         * ToolStripItem.cs: Create internal method for determining tooltip.
4922
4923 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
4924
4925         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
4926
4927 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
4928
4929         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
4930         it prevents a problem thak keeps icon visible after application 
4931         closes on win32.
4932
4933 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
4934
4935         * NotifyIcon.cs: Balloon properties and methods created.
4936
4937         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
4938         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
4939
4940 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
4941
4942         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
4943
4944 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
4945
4946         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
4947         parameter indicates which aspects were explicit/user-set.
4948         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
4949
4950 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
4951
4952         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
4953         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
4954         SmallChange, and Value (2.0).
4955         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
4956
4957 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4958
4959         * ListView.cs: Always set item_control.Width in LayoutDetails
4960         if View is Details. Setting it later in CalculateScrollBars
4961         in a not-so-corner scenario (the sum of columns width is
4962         not bigger than the ListView width when handle is created, and then
4963         that sum gets bigger by increasing the width of the columns)
4964         causes a very weird recursion path (which shouldn't be happening,
4965         since header_control sets it in CalculateScrollBars too). This bug
4966         appeared after Chris' fixes for handle created issues, so probably
4967         it's related to some handle-creation time.
4968
4969 2007-03-23  Chris Toshok  <toshok@ximian.com>
4970
4971         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
4972         case where there's an add row, just so we don't end up in a case
4973         where it's not displayed (this happens when the row is partially
4974         obscured).  Fixes bug #79574.
4975
4976 2007-03-23  Jackson Harper  <jackson@ximian.com>
4977
4978         * TextControl.cs:
4979         * TextBoxBase.cs:
4980         * RichTextBox.cs: Preserve line endings in the lines text buffer,
4981         also added an enum that represents the line ending type. 
4982
4983 2007-03-23  Andreia Gaita  <avidigal@novell.com>
4984
4985         * NumericUpDown.cs: Fix logic so Text and Value properties are not
4986         messed with in every method call, but only from DownButton, 
4987         UpButton, UpdateEditText() and ValidateText. Fixes #80346
4988
4989 2007-03-23  Chris Toshok  <toshok@ximian.com>
4990
4991         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
4992         format objects if the format spec is "".  Fixes bug #80889.
4993
4994 2007-03-22  Miguel de Icaza  <miguel@novell.com>
4995
4996         * ToolStripPanel.cs (Join): added stubs to build PDN3
4997
4998         * Control.cs (AutoScrollOffset): Add.
4999
5000         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
5001         property, its only implemented for Win32, on X11 it defaults to
5002         some hardcoded value.
5003
5004         * ToolStripItem.cs (AllowDrop): Add property
5005
5006 2007-03-22  Mike Kestner  <mkestner@novell.com>
5007
5008         * ListView.cs : in FullRowSelect Details mode, only enable box
5009         selection if the user clicks over the "item" column outside of the
5010         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
5011
5012 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5013
5014         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
5015           handle is not created yet.
5016         * Form.cs: Select: Don't call CreateHandle if the handle is already
5017           created, avoids a stack overflow on Windows when we are recreating
5018           controls.
5019         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
5020           they are made visible, and override AfterTopMostControl to keep
5021           them on top when other controls are brought to front.
5022           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
5023           or force_*scroll_visible is true (old implementation always shows
5024           scrollbars when needed, no matter what auto_scroll was set to).
5025         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
5026           IsHandleCreated check.
5027
5028 2007-03-22  Andreia Gaita  <avidigal@novell.com>
5029
5030         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
5031         row or col separator.
5032         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
5033
5034 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
5035
5036         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
5037
5038 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
5039
5040         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
5041         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
5042         every time. Fixes #80410.
5043
5044 2007-03-22  Chris Toshok  <toshok@ximian.com>
5045
5046         * BindingSource.cs (AddNew): partially implement.
5047
5048         remove a couple of NotImplementedException's
5049         to get bug #81148 closed.
5050
5051 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
5052
5053         [Fixes #80380]
5054         
5055         * Control.cs:
5056         - UpdateCursor method added to update the screen cursor.
5057         - GetAvailableCursor method added to return cursor for enabled tree,
5058         it searches for cursor on control and it's parent's for enabled control.
5059         - Call UpdateCursor method on setter of Cursor property.
5060         - On setter of Enabled call UpdateCursor when it is false, we need to
5061         change cursor to normal (or to this parent cursor) because cursor 
5062         setting theres no effect to disabled controls.
5063         - Some minor source changes to follow the coding style guidelines.
5064
5065         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
5066         controls.
5067
5068 2007-03-22  Chris Toshok  <toshok@ximian.com>
5069
5070         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
5071         generates.
5072
5073 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5074
5075         * XplatUIX11.cs: Implement default locations for forms.
5076         * Form.cs: Completely rework startup location for forms. Fixes #79964.
5077         * Hwnd.cs: Add previous_child_startup_location (to track the current
5078           startup location for any child forms of the current form) and
5079           previous_main_startup_location (to track the startup location for
5080           the current toplevel form).
5081
5082 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
5083
5084         * Control.cs: Don't trigger a layout if an implicit control is added
5085         that isn't visible.  Also, don't notify the owner when an implicit control
5086         is added.  (Owners shouldn't even know about their implicit controls.)
5087
5088 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
5089
5090         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
5091         to save some re-layouts.
5092
5093 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
5094
5095         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
5096         [Fixes #81203]
5097
5098 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
5099
5100         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
5101         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
5102
5103 2007-03-21  Mike Kestner  <mkestner@novell.com>
5104
5105         * ListView.cs : disable selection update for non-left button clicks
5106         with mods and over selected items.  [Fixes #80524]
5107
5108 2007-03-20  Jackson Harper  <jackson@ximian.com>
5109
5110         * TextControl.cs:
5111         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
5112         \r\r\n, \n.
5113
5114 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5115
5116         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
5117           very probably a more complicated calculation there. Update the
5118           textbox' ForeColor and BackColor when the ComboBox' colors are
5119           changed. Change the border change in LayoutComboBox to only affect
5120           the textbox, not all the calculations there. Seems to fix most of
5121           #79436.
5122
5123 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5124
5125         * ComboBox.cs: Handle Home and End keys as well as all combinations of
5126           modifiers + navigation keys as input keys, enables advanced text
5127           selection in the combobox (like Shift+Left Arrow for instance).
5128           ComboTextBox now overrides Focused and returns whatever
5129           ComboBox.Focused returns, since it really should be focused
5130           whenever the ComboBox is. Fixes #80795. Also make the border around
5131           the text box one pixel bigger, as mentioned in #79436.
5132
5133 2007-03-20  Jackson Harper  <jackson@ximian.com>
5134
5135         * TreeView.cs: Don't offset the images, this was causing some
5136         artifacts when expanding/collapsing with images that were the
5137         exact height of the treenode.
5138
5139 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5140
5141         * TrackBar.cs: Query the theme for the correct value when the mouse
5142           moves and the thumb is pressed. 
5143         * Theme.cs: Added TrackBarValueFromMousePosition
5144         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
5145           implementation was updating the trackbar value when drawing, now
5146           the drawing methods only draw. Fixes #80900. Refactored the
5147           calculations out to TrackBarValueFromMousePosition and
5148           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
5149           according to the mouse position whenever it wants to. Changed the
5150           light coloured pen when drawing the thumb from ControlLight to
5151           ControlLightLight, because the ControlLight is the same colour as
5152           the background so the 3D effect is lost. 
5153
5154 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5155
5156         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
5157         defined. Fixes #80784.
5158
5159 2007-03-20  Marek Habersack  <mhabersack@novell.com>
5160
5161         * ContextMenuStrip.cs: align with the change introduced in
5162         revision 74664.
5163
5164 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5165
5166         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
5167         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
5168         in SetTopmost.
5169
5170 2007-03-19  Chris Toshok  <toshok@ximian.com>
5171
5172         * Control.cs (WmPaint): don't make use of the Handle property
5173         after an event is emitted, as the user could have closed the
5174         form/destroyed the control.  Store the Handle in a local variable
5175         and make use of that.  Fixes bug #80768.
5176
5177 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5178
5179         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
5180         behavior in X11 environments.
5181
5182 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5183
5184         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
5185         because on setter of topmost we dont call SetTopmost when handle is not
5186         created.
5187
5188 2007-03-20  Jackson Harper  <jackson@ximian.com>
5189
5190         * TextControl.cs: Need to use SelectionLength () not
5191         selection_length, since that var is reset to -1.
5192         - Draw the caret when we don't have focus.
5193         * TextBox.cs: The selectall actually doesn't occur until the first
5194         focus.
5195         * TextBoxBase.cs: Need to update the caret position after a
5196         selectall.
5197         
5198 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5199
5200         * ListView.cs: Enable scrolling when using Tile view.
5201
5202 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
5203
5204         [Fixes #80902]
5205
5206         * XplatUIDriver.cs: Abstract SetOwner method created.
5207
5208         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
5209         must be implemented and was masked as todo.
5210
5211         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
5212         GWL_HWNDPARENT.
5213
5214         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
5215         cheking for null owner to remove transient. The SetTopmost will be change
5216         on a decond step.
5217
5218         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
5219         SetTopmost. Now owned forms will work properly in win32 and X11.
5220
5221 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5222
5223         * MdiWindowManager.cs: Update function name.
5224         * Form.cs: After closing a form MdiParent is always null.
5225         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
5226           better what it should do: necessary book-keeping when the form is
5227           closed, it should not close the form itself.
5228
5229 2007-03-19  Andreia Gaita  <avidigal@novell.com>
5230
5231         * ListViewItem.cs: Fix back and fore color. The subitems only
5232         use their own colors if they are set, otherwise use the listview's
5233         colors. Don't set default colors on constructor for subitem.
5234         Fixes #79315.
5235
5236 2007-03-19  Mike Kestner  <mkestner@novell.com>
5237
5238         * ListView.cs : make box selection for Details views with 
5239         FullRowSelect conform to MS behavior when clicking in the "item" 
5240         column and clicking outside the defined columns.
5241         [Fixes case 5-6 of #80374]
5242
5243 2007-03-19  Chris Toshok  <toshok@ximian.com>
5244
5245         * ScrollableControl.cs: create the controls from within the ctor,
5246         but don't actually add them until our handle is created.  this
5247         fixes a NRE possibility jpobst found (if you override OnLayout in
5248         a subclass, it's called before your ctor).  Also, add a
5249         IsHandleCreated guard to UpdateSizeGripVisibility as well.
5250
5251 2007-03-19  Jackson Harper  <jackson@ximian.com>
5252
5253         * TextBox.cs: Reduce the amount of invalidation we do.
5254         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
5255         some of them are true by default on MS.
5256         - Add some functions to reduce the amount of invalidates we do.
5257         * TextControl.cs: Less invalidation.
5258
5259 2007-03-19  Chris Toshok  <toshok@ximian.com>
5260
5261         [ Fixes #81773, and *seems* to fix #81553 as well ]
5262
5263         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
5264         AccumulateDestroyedHandles.  We need to do it *after* we send
5265         WM_DESTROY, as the user's code can access Control.Handle in
5266         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
5267         move the WM_DESTROY/zombie handling to before the call to
5268         XDestroyWindow.  For some reason without this ordering
5269         FormTest.RecreateHandle hangs.  This ordering is semantically
5270         equivalent, however, as XDestroyWindow is async anyway.
5271
5272 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
5273
5274         * RichTextBox.cs: Reset backcolor_set after setting default.
5275
5276 2007-03-19  Chris Toshok  <toshok@ximian.com>
5277
5278         * ScrollableControl.cs: the scroll position should not effect the
5279         canvas size.  commit patch from georgegiolfan@yahoo.com, which
5280         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
5281         
5282 2007-03-19  Chris Toshok  <toshok@ximian.com>
5283
5284         * ScrollableControl.cs: clean this up a bit.  create the
5285         scrollbars in the ctor and just show/hide them as needed.  Also,
5286         make hscroll_visible/vscroll_visible internal to Recalculate, and
5287         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
5288         everywhere else.  This seems to fix the scrollbars appearing
5289         beneath the content for me (i have *no* idea why that is,
5290         however.)
5291
5292 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
5293
5294         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
5295         some redundacy for stuff in Anchor and Dock that base will take care of.
5296         [Fixes #80762]
5297
5298 2007-03-19  Mike Kestner  <mkestner@novell.com>
5299
5300         * ListView.cs : make box selection for Details views without 
5301         FullRowSelect dependent on the text bounds, not item bounds.
5302         * ListViewItem.cs : add an internal property to obtain the TextBounds
5303         in Details view.  [Fixes case 1-4 of #80374]
5304
5305 2007-03-19  Andreia Gaita  <avidigal@novell.com>
5306
5307         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
5308         we're < 2.0. #78448 && #80316
5309
5310 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
5311
5312         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
5313         have the same style available as the previously selected one.  Also,
5314         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
5315
5316 2007-03-19  Jackson Harper  <jackson@ximian.com>
5317
5318         * TextControl.cs: Add an alignment property that all new lines
5319         will be given.
5320         - Make sure to use the align shift when calculating the line's X
5321         position.
5322         * TextBox.cs: Set the alignment on the document as well as on all
5323         the document lines.
5324
5325 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5326
5327         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
5328           throw if setting the parent of an mdichild that already has an
5329           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
5330           AssemblyProductAttribute in the assembly, use the type's namespace (as
5331           MS seems to do). CreateControl: don't create the handle if the control
5332           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
5333           create handle if the control is not a form. Change FocusInternal to
5334           virtual so that it can be overriden by Form.
5335         * TextBox.cs: Update call to FocusInternal.
5336         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
5337           form is not a toplevel form when it's a mdi child, so update is_toplevel
5338           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
5339           hasn't been created. Show (IWin32Window): Don't allow this overload for
5340           toplevel windows. CenterToParent/CenterToScreen/Select: create the
5341           handle as MS does. SetVisibleCore: if called on a MdiChild and the
5342           parent isn't visible yet, save the visibility and restore it when the
5343           parent is made visible.
5344         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
5345           methods, since the visibility of the scrollbars can be changed from
5346           several places, not only from AutoScroll.
5347           [Fixes #81179]
5348
5349 2007-03-19  Jackson Harper  <jackson@ximian.com>
5350
5351         * RichTextBox.cs: Enable shortcuts by default.
5352         * TextBoxBase.cs: Add conditional shortcuts.  
5353
5354 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
5355
5356         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
5357
5358 2007-03-19  Chris Toshok  <toshok@ximian.com>
5359
5360         [ Fixes bug #80604]
5361         
5362         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
5363         swallow the message we're waiting on, instead of delivering it, as
5364         this is only used for the WM_SHOWWINDOW raised from
5365         MapWindow/UnmapWindow, and the message needs to be generated
5366         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
5367         before doing the Map/Unmap.  Also make sure that the Hwnd is still
5368         alive after the message has been handled.
5369
5370         *before* the window is shown.
5371
5372         * Control.cs (CreateControl): guard a few more things inside the
5373         if (!is_created) block, as we might end up being called again -
5374         yay .net.
5375         (WmShowWindow): call CreateControl if we're showing the control.
5376
5377 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5378
5379         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
5380           controls without a handle if they have any parent with a handle. In
5381           Dispose add a check whether the handle is created or not before
5382           calling BeginInvoke, this removes the need of the extra disposing
5383           parameter (which was bogus anyway since it didn't prevent the
5384           invoke from happening, it only skipped the check for an existing
5385           handle, meaning that the invoke would call on an inexistent
5386           handle).
5387
5388 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
5389
5390         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
5391         appears in taskbar.
5392
5393 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
5394
5395         * MessageBox.cs:
5396         - Fixed a problem that dont show help button for messages with 3 buttons.
5397         - Refactory button size and position calculations, now dont use fixed 
5398         values, also fixed button sizes (#80043) and form's border space.
5399         - AddButton method created, now all other AddButton methods call this one.
5400         - Some other source code cosmetic changes.
5401
5402 2007-03-18  Jackson Harper  <jackson@ximian.com>
5403
5404         * RichTextBox.cs: Don't do this all fonts must match check if
5405         there is only one char selected.
5406
5407 2007-03-18  Jackson Harper  <jackson@ximian.com>
5408
5409         * TreeView.cs: ScrollWindow works properly now, so we don't need
5410         to screw around with the scroll area.  This fixes some artifacts
5411         when expanding and collapsing.
5412
5413 2007-03-18  Jackson Harper  <jackson@ximian.com>
5414
5415         * TextBoxBase.cs: Allow updating the selection position when the
5416         cursor is outside the textarea, but we have a capture.
5417         * TextControl.cs: A special case for when the cursor is outside
5418         the bounds of the TB.
5419         
5420 2007-03-18  Jackson Harper  <jackson@ximian.com>
5421
5422         * TextBoxBase.cs: Remove image pasting code for now.  There is no
5423         way to get an image on the clipboard right now anyways.
5424         * TextControl.cs:
5425         * RichTextBox.cs: Use the new RTF Picture class for pictures.
5426
5427 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
5428
5429         * MessageBox.cs:
5430         - Set window properties in constructor intead of on CreateParams.
5431         - Remove topmost from Window ExStyle.
5432         - Set ShowInTaskbar to false.
5433         - Set form border to FixedDialog.
5434         - Some cosmetic changes and remove unneeded comments.
5435         - It fixes itens 2,3 and 4 of bug #80043.
5436
5437 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
5438
5439         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
5440         none was explicitly set. Fixes part of bug #79949.
5441
5442 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
5443
5444         * ToolStripComboBox.cs: Add AutoComplete*.
5445
5446 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
5447
5448         * ToolStripComboBox.cs: Add FlatStyle.
5449
5450 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
5451
5452         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
5453         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
5454
5455 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5456
5457         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
5458           CheckBox.cs, RadioButton.cs, BindingSource.cs,
5459           DataGridColumnStyle.cs: Remove warnings.
5460
5461 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5462
5463         * Menu.cs: MergeMenu: Check menu argument for null before looping over
5464           it.
5465         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
5466           visibility of mdi child forms. FormSizeChangedHandler: update the
5467           maximized size if size has changed while maximized.
5468         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
5469           creating the handle.
5470         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
5471           avoid creating the handle if not created.
5472         * XplatUI.cs: Update debug output.
5473         * XplatUIStructs.cs: Added ToString's for a couple of structs.
5474
5475 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
5476
5477         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
5478         ProcessCmdKey().
5479         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
5480         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
5481         Implement keyboard shortcuts.
5482
5483 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
5484
5485         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
5486         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
5487         ColorDialog and all derived classes.
5488
5489 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
5490
5491         [ Fixes bug #79828 ]
5492
5493         * ToolBar.cs:
5494         - Rename ToolBarButtonInfor to ToolBarItem.
5495         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
5496         - Maintain an array of ToolBarItem, used instead of ToolBarButton
5497         collection to be able add same button more than one time on a toolbar.
5498         - Refactory all properties and methods to use ToolBarItem. 
5499
5500         * ToolBarButton.cs: 
5501         - Remove all propeties and methods that is now in ToolBarItem.
5502         - Rectangle propery now gets the rectangle from first ToolBarItem to
5503         mimic win32 behavior.
5504         - Size calculation and layout methods also removed.
5505
5506         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
5507         ToolBarItem instead of ToolBarButton to right drawing buttons when
5508         same button/separator was added more than one time to ToolBar.
5509
5510         * ThemeNice.cs: Same as above. 
5511
5512 2007-03-15  Andreia Gaita  <avidigal@novell.com>
5513
5514         * XplatUIX11.cs: Fire extra MouseMove events right after
5515         MouseDown and MouseUp, emulating win32's <censored> behaviour
5516         for apps that rely on it.
5517
5518 2007-03-15  Jackson Harper  <jackson@ximian.com>
5519
5520         * TextControl.cs:
5521         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
5522         it is drawn on the controls client window and there is no NC
5523         area.
5524         - Set the background color to gray on 2.0 when we are readonly.
5525
5526 2007-03-15  Chris Toshok  <toshok@ximian.com>
5527
5528         [ Fixes bug #81144 ]
5529         
5530         * XplatUIX11.cs: implement VirtualScreen independently of
5531         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
5532         property.
5533
5534 2007-03-15  Chris Toshok  <toshok@ximian.com>
5535
5536         * Hwnd.cs: add an internal field for the cached_window_state.
5537
5538         * XplatUIX11.cs: cache the window state, invalidating the cache
5539         (and thus re-querying the X server) only when we see an update to
5540         the _NET_WM_STATE property.
5541
5542 2007-03-15  Chris Toshok  <toshok@ximian.com>
5543
5544         * BindingSource.cs: get a lot of the unit tests working.
5545
5546 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
5547
5548         * Control.cs: Modify UpdateStyles to store distances when bounds >=
5549         0 instead of just bounds > 0.  [Fixes bug #80912]
5550
5551 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
5552
5553         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
5554         and methods.
5555
5556 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
5557         
5558         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
5559         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
5560         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
5561         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
5562
5563 2007-03-15  Chris Toshok  <toshok@ximian.com>
5564
5565         [ Fixes #81101 ]
5566         
5567         * Control.cs: add Ivan's fix for 81101, with a slight modification
5568         - you can set control.Target to null.
5569
5570 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
5571
5572         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
5573         HideDropDown, use Hide instead to prevent an NRE.
5574         [Fixes bug #81147]
5575
5576 2007-03-14  Jackson Harper  <jackson@ximian.com>
5577
5578         * TextBoxBase.cs: Mess with the creation stuff a little. We need
5579         to calculate the document before the handle is created, in some
5580         cases. (Actually just one case).
5581
5582 2007-03-14  Jackson Harper  <jackson@ximian.com>
5583
5584         * TextBoxBase.cs: Need to display the caret after letting the base
5585         wndproc handle the focus methods, because the caret display
5586         methods check the focus state.
5587         - Try to display the caret after updating it's position with SelectWord.
5588         - Don't need to do an immediate update on this recalc, since there
5589         will be an invalidate anyways.
5590
5591 2007-03-14  Jackson Harper  <jackson@ximian.com>
5592
5593         * TreeView.cs: Some workarounds so that we can match event order a
5594         little better.
5595
5596 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
5597
5598         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
5599         #80803. Avoid NullReferenceException when Control does not have
5600         parent. Fixed different blinkstyle issues. Only subscribe to Tick
5601         event a single time. Only draw error icon when control is created and
5602         visible. Fixes failing unit tests.
5603
5604 2007-03-14  Andreia Gaita  <avidigal@novell.com>
5605
5606         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
5607         Selecting events. Fire Leave and Enter events when changing tabs.
5608
5609 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
5610
5611         * TreeView.cs: Add TreeViewNodeSorter.
5612         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
5613
5614 2007-03-14  Chris Toshok  <toshok@ximian.com>
5615
5616         * Form.cs: go ahead and remove the RecreateHandles that jpobst
5617         removed earlier and I had him add back it.  It turns out metacity
5618         *does* in fact handle the MOTIF_WM_HINTS property changing, it
5619         just doesn't redraw the window titlebar until you resize the
5620         window.  This also means we aren't recreating the entire window
5621         hierarchy on X when you change this property.  And it looks better
5622         on windows, too.
5623
5624 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5625
5626         * ListViewItem.cs:
5627         * ListView.cs: Collecting selection information
5628         is now done in SelectedIndexCollection rather than in
5629         SelectedListViewItemCollection. This is done so we can
5630         have the selection information code in one single place
5631         (virtual mode selection information entirely depends on
5632         SelectedIndexCollection).
5633
5634 2007-03-13  Miguel de Icaza  <miguel@novell.com>
5635
5636         * ErrorProvider.cs: Add stubs for ISupportInitialize
5637
5638 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5639
5640         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
5641         in the right order with the right values, from the Checked property, 
5642         just as MS does (instead of triggering them from ListView).
5643
5644         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
5645
5646 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5647
5648         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
5649         the correct handler in OnItemCheck method (ItemCheckEventHandler 
5650         instead of EventHandler). This used to throw an InvalidCastException.
5651
5652 2007-03-13  Jackson Harper  <jackson@ximian.com>
5653
5654         * TextBoxBase.cs: Calculate the document before the handle is
5655         created, so there isn't an extra invalidate called.
5656
5657 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
5658
5659         * Form.cs: Don't set owner in ShowDialog until we are sure
5660         that we aren't going to throw an exception.  [Fixes bug #80773]
5661
5662 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
5663
5664         * TreeView.cs: Make it compile.
5665
5666 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5667
5668         * Control.cs: Another place we don't call SizeFromClientSize.
5669         * Form.cs: Another place we don't call SizeFromClientSize.
5670         [Fixes bug #81125]
5671
5672 2007-03-12  Jackson Harper  <jackson@ximian.com>
5673
5674         * TreeView.cs: Basically emulating some strangness here with
5675         exanding nodes and setting node positions when windows aren't
5676         created.
5677         - Also attempting to walk the node tree less than previously, and
5678         just use visible order calculations for determining offsets.
5679         - oops made scrolling backwards.
5680         * TreeNode.cs: We need to start nodes with a zero visible order,
5681         because the order calcs are based on the first nodes order.
5682
5683 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5684
5685         * Form.cs: Don't exit the program if RecreateHandle is called on
5686         the main form.
5687
5688 2007-03-12  Chris Toshok  <toshok@ximian.com>
5689
5690         * XEventQueue.cs: remove the use of PostQuitState.
5691
5692         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
5693         WM_QUIT message in GetMessage, return false (and if we're in the
5694         nested WaitForHwndMessage, repost the WM_QUIT message).
5695
5696 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5697
5698         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
5699         or the MaximizeBox properties.  [Part of bug #80640]
5700
5701 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
5702
5703         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
5704         no links.
5705
5706 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5707
5708         * ToolStripItem.cs: Fix some tests I broke by checking Visible
5709         instead of visible.
5710
5711 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
5712
5713         * FileDialog.cs: Use text of File name combobox to determine what
5714         files the user selected. Added tokenizer to parse the file names.
5715         Fixes bug #81123.
5716
5717 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
5718
5719         * Control.cs: We can't call SizeFromClientSize in the constructor,
5720         but we still need to do the same work, so make an internal version.
5721         [Fixes bug #80621]
5722
5723 2007-03-12  Jackson Harper  <jackson@ximian.com>
5724
5725         * TreeView.cs:
5726         * TreeNode.cs:
5727         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
5728         IsExpanded.
5729
5730 2007-03-12  Jackson Harper  <jackson@ximian.com>
5731
5732         * TextBoxBase.cs: Now that the handles are being created a little
5733         later, we need to make sure that the document is recalculated when
5734         the handle is created.
5735
5736 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
5737
5738         * Theme.cs: GetLinkFont abstract method added.
5739         
5740         * LinkLabel.cs: 
5741         - Remove CalcTrimRectangle, no longer needed.
5742         - Factor also remove, position issues must be fixed in libgdiplus.
5743         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
5744         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
5745         care about font used to draw links.
5746         - Set TabStop to true when control is "Selectable", control is selectable
5747         when have one or more links. Fixes #80501 (test case is also added).
5748         - Set the LinkArea values after links change, LinkArea values must be
5749         based in first link position and size, a test case was created.
5750         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
5751         the attribute must be true LinkArea.Length > 0. The same was applied to
5752         TabStop.
5753         
5754         * ThemeWin32Classic.cs: 
5755         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
5756         in draw method.
5757         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
5758         color change.
5759         - Draw focus rectangle for every parts focused, including parts that 
5760         is on another line, its because regions returns various rectangles
5761         and not only one. Needed to mimic W32 look.
5762         - Uses Graphics.Clip to delimite region painted, it mean that now 
5763         complete text is passed to DrawString, with this we solve layout
5764         issues without create another text renderer.
5765         - Uses Region.Intersect to fix some flickers problems, now only needed
5766         parts will redrawed.
5767         - This changes fixes #79614 and some other unreported issues, on Linux 
5768         some layout problems still remain, the problem is under 
5769         MeasureCharacterRanges but it is an libgdiplus bug.
5770
5771 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
5772
5773         * TextBox.cs: Set for foreground color.
5774         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
5775         this is already done in Control.
5776
5777 2007-03-10  Jackson Harper  <jackson@ximian.com>
5778
5779         * TextBox.cs: Set the background color, but reset the
5780         backcolor_set flag which is just for the user setting the
5781         background color.
5782
5783 2007-03-09  Chris Toshok  <toshok@ximian.com>
5784
5785         * Control.cs: really remove the call to XplatUI.SetVisible from
5786         CreateHandle(), like I said I did when I merged the branch.
5787
5788         * BindingSource.cs: implement some more of this stuff.
5789
5790 2007-03-09  Jackson Harper  <jackson@ximian.com>
5791
5792         * TextBox.cs: Don't explicitly set our background colors.
5793         * TextControl.cs:
5794         * TextBoxBase.cs: Draw readonly text.
5795         - Need to invalidate when backcolor or readonly are changed.
5796         
5797 2007-03-09  Jackson Harper  <jackson@ximian.com>
5798
5799         * TextBoxBase.cs: Don't set the forecolor until the handle is
5800         created.
5801         - Do not raise OnPaint, and removed some old debug code.
5802
5803 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
5804
5805         * ScrollableControl.cs: Fix mouse wheel scrolling.
5806
5807 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
5808
5809         * Control.cs: Wire up MouseDoubleClick event.
5810
5811 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
5812
5813         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
5814         top or bottom.
5815         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
5816         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
5817         item is added.  This logic was moved to ToolStrip.OnItemAdded.
5818         [Fixes bug #81090]
5819
5820 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5821
5822         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
5823
5824 2007-03-08  Jackson Harper  <jackson@ximian.com>
5825
5826         * TreeView.cs: Show the correct image for selected node (this used
5827         to work, not sure how the code got deleted). Also implemented 2.0 feature
5828         SelectedImageKey.
5829
5830 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5831
5832         * ListView.cs:
5833         * ListViewItem.cs: Cache index in items when retrieving them
5834         in VirtualMode.
5835
5836 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
5837
5838         * ToolStripItem.cs: Don't return the explicit_size if we are using 
5839         AutoSize.  Fixes invalidation issue when user has explicitly set a
5840         size and has AutoSize = true.
5841
5842 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
5843
5844         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
5845
5846 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
5847
5848         * DataGridView.cs: Remove event handler from DataView when a
5849         DataTable is used as DataSource.
5850
5851 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
5852
5853         * Control.cs: Create internal setter for client_size to allow it to be
5854         set without triggering resizing code.
5855         * Form.cs: Calculate client_size in constructor, only change client_size
5856         in FormBorderStyle property if Handle has been created.
5857         [Fixes #80574, #80791]
5858
5859 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
5860
5861         * SystemInformation.cs: Add TerminalServerSession.
5862
5863 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
5864
5865         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
5866         TreeView code.
5867
5868 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
5869
5870         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
5871         Handle before we were supposed to.  Now checks ActivateOnShow property
5872         in Control.
5873         * Control.cs: Add internal ActivateOnShow property.
5874         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
5875         for ActivateOnShow.
5876         * Hwnd.cs Remove no longer needed no_activate field.
5877
5878 2007-03-07  Jackson Harper  <jackson@ximian.com>
5879
5880         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
5881         2.0 properties
5882         * DrawTreeNodeEventHandler.cs: Add
5883         * DrawTreeNodeEventArgs.cs: Correct default value.
5884         
5885 2007-03-07  Chris Toshok  <toshok@ximian.com>
5886
5887         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
5888         to be called before NativeWindow.WndProc.  Put the HwndCreating
5889         magic there to hook up our Hwnd's to handles.
5890
5891 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
5892
5893         * DataGridView.cs: Comment out debug code.
5894
5895 2007-03-07  Chris Toshok  <toshok@ximian.com>
5896
5897         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
5898         to make the rest of the world happy]
5899
5900         * Control.cs (CreateHandle): there's no need to call
5901         XplatUI.SetVisible here, it's effectively done by
5902         XplatUI.CreateWindow on X now, and always was on windows.
5903
5904         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
5905         shortcircuit out of the loop if we have a message loop running on
5906         this thread.
5907
5908         [Changelog from merge]
5909
5910         2007-03-05  Chris Toshok  <toshok@ximian.com>
5911
5912                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
5913                 causes handle creation.
5914
5915         2007-02-28  Chris Toshok  <toshok@ximian.com>
5916
5917                 * ApplicationContext.cs: Add a flag to make sure we only raise the
5918                 ThreadExit event once (ExitThreadCore can be indirectly called
5919                 from a few places.)  I don't like the additional flag, but it
5920                 makes the event ordering/count correct.
5921
5922                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
5923                 without locking the collection.  An enumerator doesn't give us any
5924                 protection from modification anyway.  Lock the thread hash and
5925                 replace the complicated enumerator loop with a foreach.
5926                 (Application.CloseForms): make internal so it can be called from
5927                 ApplicationContext.  This should probably be moved to MWFThread.
5928                 (Application.ExitThread): don't call MWFThread.Current.Exit()
5929                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
5930                 when the runloop exits (in response to WM_QUIT.)
5931                 (Application.RunLoop): add a comment (and check) for
5932                 context.MainForm being null after setting context.MainForm.Visible
5933                 = true.  This is because you're perfectly free to dispose of a
5934                 form in VisibilityChanged.  Chalk this up to another case where we
5935                 need to synchronously generate WM_ACTIVATE from Control.Show.
5936                 Also, add handling for WM_QUIT here so we'll exit the loop.
5937                 
5938                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
5939                 fact that we don't wait if we're only unmapping the whole_window
5940                 makes me a bit nervous, but it doesn't seem to cause any problems
5941                 yet.
5942
5943                 also, add a comment about the stupid, broken and wrong resetting
5944                 of PostQuitState to false in GetMessage().
5945
5946                 In PostQuitMessage, we need to add a WM_QUIT message to the
5947                 thread's queue.  We use the FosterParent to get the right
5948                 handle/hwnd/queue.
5949
5950                 Lastly, in SetVisible, we need to unmap both windows, since the
5951                 waiting only happens when we're unmapping the client window.  So
5952                 now, the *only* time we unmap just the whole_window is in the hack
5953                 for resizing a control to 0,0.
5954                 
5955         2007-02-21  Chris Toshok  <toshok@ximian.com>
5956
5957                 * Application.cs (CloseForms): rewrite this so that we don't
5958                 modify the list while we're traversing it.
5959
5960         2007-02-20  Chris Toshok  <toshok@ximian.com>
5961
5962                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
5963                 of OnHandleCreated.
5964                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
5965                 handle is created.  otherwise we'll create it here.
5966                 (VerticalScrollEvent): same here.
5967
5968                 * Application.cs (CloseForms): call Form.Dispose, don't post
5969                 WM_CLOSE_INTERNAL.
5970
5971                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
5972                 here. Application should Dispose() of the Form's.
5973
5974                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
5975                 WM_DESTROY as well.
5976                 (MapWindow,UnmapWindow): only actually do the waiting for
5977                 SHOWWINDOW if the control we're dealing with is a Form.
5978                 (CreateWindow): if the control isn't a form, SendMessage
5979                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
5980
5981                 * Control.cs (SetVisibleCore): always use is_visible here, not
5982                 value.  If we use value, we can end up re-setting something
5983                 visible if, for instance, you do Control.Hide() in a delegate
5984                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
5985
5986         2007-02-20  Chris Toshok  <toshok@ximian.com>
5987
5988                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
5989                 the message we need.  PeekMessage returning false should not be a
5990                 condition under which we exit the loop.
5991
5992         2007-02-15  Chris Toshok  <toshok@ximian.com>
5993
5994                 * Control.cs (Refresh): only refresh if we've got a handle and are
5995                 visible.
5996                 (CreateAccessibilityInstance): CreateControl() here.
5997                 (UpdateChildrenZOrder): complicate the code loop even more by
5998                 taking into account controls that haven't had their handle
5999                 created, and those that aren't visible.  But on the flip side,
6000                 simplify the code by splitting it into two loops.  one which
6001                 builds up the list of child controls we're interested in, and the
6002                 other that sets the z order of those children.
6003
6004         2007-02-14  Chris Toshok  <toshok@ximian.com>
6005
6006                 * Control.cs: Control.AccessibilityObject causes the control to be
6007                 created, not just the handle.
6008
6009         2007-02-14  Chris Toshok  <toshok@ximian.com>
6010
6011                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
6012                 problem on X where a window might have its handle created (and be
6013                 visible) while the window is unmapped.  calling XConfigureWindow
6014                 on an unmapped window is bad, and generates X errors.
6015
6016         2007-02-13  Chris Toshok  <toshok@ximian.com>
6017
6018                 * Control.cs (CreateHandle): don't loop over our children setting
6019                 their parent here.  do it when in WndProc when we're shown.
6020                 (UpdateChildrenZOrder): make this internal so we can call it from
6021                 ScrollableControl.
6022                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
6023                 creating its handle.  Also, remove the calls to PerformLayout from
6024                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
6025                 OnVisibleChanged only seems to be called directly here for the
6026                 toplevel control.  It's propagated down the window hierarchy by
6027                 calls to child.OnParentVisibleChanged.
6028                 (OnVisibleChanged): don't do layout here - it's done (oddly
6029                 enough, according to a glance at stack traces on ms.net..) in
6030                 ScrollableControl.
6031                 
6032                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
6033                 z order of our children before calling PerformLayout.
6034
6035         2007-02-12  Chris Toshok  <toshok@ximian.com>
6036
6037                 [big change, fixes #80020]
6038                 
6039                 * AccessibleObject.cs: we need to make owner internal again to fix
6040                 some of ControlAccessibleObject.
6041
6042                 * Control.cs: lots of changes here.  add support for WM_CREATE,
6043                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
6044                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
6045                 we create child controls.  leave the MonoTODO's for the
6046                 accessibility calls, but fix the exceptions so the tests pass.
6047
6048                 Add the InvalidOperationExceptions to Invoke methods, and remove a
6049                 couple of InvokeInternal methods we aren't using.
6050                 
6051                 Also, add a couple of CreateHandle calls in places where we know
6052                 the handles are being created but our code doesn't reference
6053                 .Handle.
6054
6055                 Make SetVisibleCore call OnVisibleChange if the handle isn't
6056                 created.  If the handle is created, we rely on XplatUI.SetVisible
6057                 generating the event synchronously.
6058                 
6059                 Lastly, make sure we don't use this.Handle inside CreateHandle,
6060                 because we can call back into client (and that code can dispose of
6061                 the control).
6062
6063                 * XplatUIStructs.cs: misc/cleanup.
6064
6065                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
6066                 although we don't populate the wParam properly.
6067                 (CreateWindow): generate WM_CREATE.
6068                 (MapWindow,UnmapWindow): make these calls synchronous, at great
6069                 performance expense (particularly in the unmap case), to match
6070                 win32 behavior.
6071
6072                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
6073                 to call it.
6074                 (set_MdiParent): don't recreate the handle unless it's been
6075                 created already.
6076                 
6077                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
6078                 it's created.
6079
6080                 * NativeWindow.cs: this is probably the weirdest part of the
6081                 patch.  We need a way to link up the window being created to the
6082                 WM_CREATE message.  Since we can only be creating one window at a
6083                 time on a given thread, we keep track of a per-thread reference so
6084                 we can dispatch it properly.  We also need to keep track of the
6085                 Hwnd currently being created so that the win32 backend doesn't
6086                 have problems.
6087                 
6088                 * XplatUIWin32.cs: a similar change to the one we made in
6089                 NativeWindow.cs.
6090
6091 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
6092
6093         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
6094         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
6095         to draw the menu shortcut string.
6096
6097 2007-03-07  Jackson Harper  <jackson@ximian.com>
6098
6099         * TreeNode.cs: Add the 2.0 collapse method.
6100
6101 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6102
6103         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
6104
6105 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6106
6107         * DataGridView.cs: Change DataSource will clear column and row
6108         lists. Call Invalidate() to reflect DataSource change.
6109
6110 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6111
6112         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
6113         and a new row is added to it.
6114
6115 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
6116
6117         * DataGridView.cs: Add columns when DataSource is en empty list but
6118         is a System.Data.DataView (from a System.Data.DataTable).
6119
6120 2007-03-06  Andreia Gaita  <avidigal@novell.com>
6121
6122         * Label.cs: Implement AutoEllipsis (2.0)
6123
6124 2007-03-06  Jackson Harper  <jackson@ximian.com>
6125
6126         * TreeView.cs: Implement 2.0 TopNode setter property.
6127         - Use a local var instead of the skipped_nodes field for computing
6128         how many nodes to skip.  Otherwise we won't scroll because the
6129         valuechanged handler checks if skipped_nodes is equal to the new
6130         value.
6131         - Implement 2.0 Sort method.
6132         - Add useless 2.0 DoubleBuffer property
6133         - Implement 2.0 LineColors property.  Lets you change the color of
6134         the lines in the tree. Terribly useful for creating non cohesive
6135         desktops.
6136         - Implement 2.0 image key feature.
6137
6138 2007-03-06  Jackson Harper  <jackson@ximian.com>
6139
6140         * TreeView.cs: We can't get the bounds of the nodes before raising
6141         the AfterSelect event, because that event could change the node's
6142         bounds (scrolling, font change, etc).
6143
6144 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6145
6146         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
6147         * Form.cs: Don't recreate handle when creating FormWindowManager, just
6148           update window styles. In CreateParams us VisibleInternal instead of
6149           VIsible to get the actual visible flag set for this form.
6150         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
6151           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
6152           handle the case when the form is already maximized, in which case
6153           it should be restored. Fixes #81043.
6154
6155 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6156
6157         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
6158
6159 2007-03-05  Jackson Harper  <jackson@ximian.com>
6160
6161         * TreeViewHitTestInfo.cs: implement.
6162
6163 2007-03-05  Jackson Harper  <jackson@ximian.com>
6164
6165         * InternalWindowManager.cs: class status fix.
6166
6167 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6168
6169         * InternalWindowManager.cs: All windows that have a parent
6170         are confined to their parent when they're being moved.
6171         Fixes #80822.
6172
6173 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
6174
6175         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
6176         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
6177
6178 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6179
6180         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
6181           buttons invisible before deciding which ones should be visible
6182           (fixes minimize/maximize buttons showing up in toolwindows). Remove
6183           an unused variable.
6184         * InternalWindowManager.cs: Remove warning.
6185
6186 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6187
6188         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
6189         to throw an InvalidOperationException is virtual mode is being used.
6190
6191 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
6192
6193         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
6194         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
6195         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
6196         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
6197         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
6198         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
6199
6200 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6201
6202         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
6203           driver.KeyboardDelay from XplatUI.KeyboardDelay 
6204         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
6205           (patch by Sergey Volk)
6206
6207 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6208
6209         * ToolWindowManager.cs: Added, contains logic for
6210           tool windows.
6211         * CreateParams.cs: Add a few helper methods and an
6212           internal variable to know which control the CreateParams belongs
6213           to.
6214         * Control.cs: Call Form.ChangingParent when the
6215           parent is about to be changed.
6216         * XplatUIX11.cs: DeriveStyles (): Set
6217           caption_height for all windows that have captions and are children.
6218           Update to use ToolWindowManager instead of InternalWindowManager
6219           for ToolWindows.
6220         * XplatUIWin32.cs: Set fake window styles for all
6221           windows that have window managers.
6222         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
6223           now duplicated for mdi windows when they are
6224           maximized, first for the buttons the window itself has, then for
6225           the buttons that appear in the menu bar. Makes things a little
6226           easier). Updated UpdateWindowDecorations, SetWindowState and the
6227           mouse eventhandlers accordingly.
6228         * Form.cs: Add ChangingParent (), contains the
6229           logic of what should happen when the parent changes. In MdiParent
6230           don't set things that ChangingParent () is doing. When handling
6231           WM_CLOSE, we can close the form if there are any other modal forms
6232           and the current form is a descendent of the modal form.
6233         * InternalWindowManager.cs: A lot of refactoring,
6234           the title buttons are now extracted to a separate container class
6235           that takes care of all button code (clicks, tooltips, etc). Moved
6236           Iconic|Maximized|Normal Bounds properties to this class from
6237           MdiWindowManager, so that the window state logic can succeed for
6238           other than mdi wm's. Implemented general window state change logic.
6239           Moved CreateButtons to ThemeWin32Classic, since the theme might
6240           override which buttons are available when as well as the exact
6241           location.
6242         * FormWindowManager.cs: Added, contains logic for
6243           normal forms.
6244         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
6245           which buttons go where (and if they are at all visible). 
6246           Removed special handling of maximized windows, since they aren't special. 
6247           In DrawManagedWindowDecorations don't try to draw the text if it is
6248           empty.
6249         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
6250           use whatever the wm gives us.
6251
6252 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
6253
6254         * ButtonBase.cs: Add 2.0 properties.
6255         * Button.cs: Override Draw for 2.0.
6256         * Control.cs: Add Entered and Selected properties.
6257         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
6258         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
6259         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
6260         buttons.
6261         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
6262
6263 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
6264
6265         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
6266
6267 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
6268
6269         * XplatUIWin32.cs: Register a new class with Windows each time we get
6270         a new ClassStyle.  [Fixes bugs #79432, #80817]
6271         * Controls.cs: Set the correct ClassStyle in CreateParams.
6272         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
6273
6274 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
6275
6276         * ListView.cs: Add fireEvent argument to ReorderColumn since the
6277         ColumnReordered event must not be signaled when modifying DisplayIndex
6278         of a ColumnHeader. Added internal ReorderColumns method which takes
6279         care of drawing, and updating the internal DisplayIndex of the
6280         ColumnHeader. Added AddColumn method which is invoked from
6281         ColumnHeaderCollection when adding or inserting columns, and which
6282         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
6283         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
6284         Recalculated dispay indices after removing a ColumnHeader.
6285         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
6286         match MS. Allows last display index to be returned after ListView
6287         is disposed. Update actual location of ColumnHeader when DisplayIndex
6288         is modified.
6289
6290 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
6291
6292         * LinkLabel.cs: Improve CalcTrimRectangle.
6293         
6294         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
6295
6296 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
6297
6298         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
6299         get rectangle as a result value.
6300
6301 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
6302
6303         * LinkLabel.cs: Theres some diferences between rectangle return from 
6304         MeasureCharacterRanges and the area used for DrawString to fix this 
6305         CalcMeasurementFactor method was created, it calcules the diferences
6306         to be use later to adjust rectangle in draw operations. Fixes #80473.
6307         
6308         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
6309         to adjust draw rectangle.
6310
6311 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
6312
6313         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
6314         text and some other changes to reduce and optimize source code.
6315
6316 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
6317
6318         * RadioButton.cs: Implement 2.0 event.
6319         * RelatedImageListAttribute.cs: Implement new class.
6320
6321 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
6322
6323         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
6324
6325 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
6326
6327         * CheckBox.cs: Implement 2.0 functionality.
6328
6329 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6330
6331         * ListView.cs: Refactor Add and AddRange methods of
6332         ListViewItemCollection, to not update the ListView
6333         everytime an item is added in AddRange. Also move the update
6334         code to a new CollectionChanged method, and call it
6335         from other methods that need it as well (this should also fix some
6336         bugs when Sorting is used).
6337
6338 2007-02-27  Jackson Harper  <jackson@ximian.com>
6339
6340         * TextControl.cs: Try to never let the caret stay in a non-text
6341         tag.
6342         * TextBoxBase.cs: Update the caret.
6343
6344 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
6345
6346         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
6347         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
6348         delete POINT structure, duplicate of one in XplatUIStructs.
6349         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
6350
6351 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
6352
6353         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
6354         edit box since otherwise the Label would immediately be set (even if
6355         the user did not modify the label). In OnKeyDown set Handled to true
6356         if Return or Escape was pressed. In ColumnHeaderCollection unlink
6357         columns that are to be removed. In ListViewItemCollection unlink items
6358         that are to be removed.
6359
6360 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
6361
6362         * TextRenderer.cs: If we set a GDI clip region, we need to clear
6363         it when we are done.  [Fixes bug #80949]
6364
6365 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6366
6367         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
6368
6369 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6370
6371         * ListView.cs: I forgot to commit the changes for ListView 
6372         in my previous patch.
6373
6374 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6375
6376         * Clipboard.cs: Partially implement an overload of SetDataObject.
6377         * Form.cs: Implement ShowWithoutActivation.
6378         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
6379
6380 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6381
6382         This is a first set of changes to make the Virtual mode works,
6383         by avoiding the retrieval of ListViewItem instances until
6384         draw time.
6385
6386         * ListView.cs: Store item position in the ListView instead of the
6387         ListViewItem, this way we don't request the Bounds property of
6388         ListViewItem inside the ListView calculations, as well as cache the item
6389         size in item_size field. Store indexes instead of ListViewItem
6390         instances in the matrix used by icon view. Add a ItemMatrixLocation
6391         struct to hold the row and col info of the matrix info.
6392
6393         * ListViewItem.cs: Don't store the location anymore, and only cache
6394         the rectangles for GetBounds. Use the ListView.GetItemLocation
6395         method to retrieve the actual location.
6396
6397 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6398
6399         * TextRenderer.cs: Add clipping support, thanks to George.
6400         [Fixes bug #80949]
6401
6402 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
6403
6404         * ListViewItem.cs: Cancel label edit when item is removed from 
6405         ListView.
6406         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
6407         event before the edit textbox is displayed.  Added CancelEdit method
6408         which is used end to editing while ignoring the value set by the
6409         user. In EndEdit, set focus to ListView to avoid losing focus to
6410         other controls. In ListViewItemCollection.Clear, cancel editing of
6411         any of the items.  In Remove, cancel editing of item being removed.
6412         Avoid udplicate code by modifing RemoveAt to invoke Remove.
6413
6414 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
6415
6416         * FileDialog.cs: Update FSEntry when move is successful. Fixes
6417         bug #80948.  
6418
6419 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
6420
6421         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
6422         compatible with non X11 systems. Fixes #80901.
6423
6424 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
6425
6426         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
6427         whether the item should be unselected and reselect. We do no want this
6428         when we're starting to edit the label. Do not fire the 
6429         SelectedIndexChanged event from ListView when its already been fired
6430         by modifying ListViewItem.Selected. Fixes bug #80943.
6431
6432 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6433
6434         * TextRenderer.cs: Previos commit logic was backwards.
6435
6436 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
6437
6438         * TextRenderer.cs: Don't add padding on MeasureText if we were
6439         sent the NoPadding flag.
6440
6441 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
6442
6443         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
6444         after DrawButton. To prevent image overlaps button borders SetClip and 
6445         ResetClip added before and after draw image. Fixes #79129.
6446
6447 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
6448
6449         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
6450         window size, it fix problem when you run under win32 that theres
6451         Size diferent than ClientSize. Also fix controls size and positions
6452         to mimic Win32. Fixes #80837.
6453
6454 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
6455
6456         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
6457         menu area to fix some problems for non X11 systems. Fixes #80613.
6458
6459 2007-02-22  Jackson Harper  <jackson@ximian.com>
6460
6461         * TreeNode.cs: When a node is expanded, set its is_expanded flag
6462         even if it doesn't have any children.
6463
6464 2007-02-22  Jackson Harper  <jackson@ximian.com>
6465
6466         * TreeView.cs: Calculate the top node 'on the fly', this
6467         eliminates issues where you need to click on the tree before
6468         scrolling it to get the top node computed correctly.
6469         * TreeNodeCollection.cs: We don't need to mess with the top node
6470         anymore.
6471
6472 2007-02-22  Jackson Harper  <jackson@ximian.com>
6473
6474         * DataGridViewRow.cs: Fix typo so height can actually be set.
6475         Patch by Peter Grimm.
6476
6477 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
6478
6479         * FileDialog.cs: Fixed support for renaming files and directories.
6480         * ListView.cs: Do not lose focus when edit is canceled. Process
6481         Escape as regular key (to prevent closing of dialogs).
6482
6483 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
6484
6485         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
6486         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
6487
6488 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
6489
6490         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
6491         did not modify label.
6492         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
6493         modified the text. Reset Label when user presses Escape in edit mode.
6494         Move focus to ListView after having cancelled or finished editing the
6495         label.
6496
6497 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
6498
6499         * ComboBox.cs: Removed unnecessary initializations. Marked items field
6500         private. Clear textbox when Text is set to null and SelectedIndex is
6501         already -1.
6502         * FileDialog.cs: Removed unnecessary initializations. Removed 
6503         workarounds for ComboBox bugs that are now fixed. Modified
6504         DefaultExt, InitialDirectory and Title property to change null to
6505         zero-length string in getters. Avoid directly accessing fields.
6506
6507 2007-02-20  Jackson Harper  <jackson@ximian.com>
6508
6509         * TextControl.cs: Remove RecalAlignments call, that was some
6510         debugging leftovers.
6511         - Don't use the line indent when we shouldn't.
6512         * RichTextBox.cs: Add support for paragraph left indents.
6513
6514 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6515
6516         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
6517         Seems like the class status pages doesn't catch params differences.
6518
6519 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
6520
6521         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
6522
6523 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
6524
6525         * ComboBox.cs: Setting Text should have no effect if item text of
6526         selected item exactly matches value. First lookup text using
6527         case-sensitive comparison, and fallback to case-insensitive comparison.
6528         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
6529         allow startIndex to be last index. Changed ArgumentOutOfRangeException
6530         paramname to match MS. Restart from first item if string is not found
6531         after startIndex. Fixed paramname of ArgumentNullException that is
6532         thrown for null value in ObjectCollection.Contains.
6533
6534 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
6535
6536         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
6537
6538 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6539
6540         * ListControl.cs: In SelectedValue use value.Equals to compare for
6541         equality instead of ==, otherwise it will fail for strings.
6542         Fixes #80794.
6543
6544 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6545         
6546         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
6547         since the caret won't show up unless ShowSelection is true. 
6548         Fixes #80795.
6549
6550 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6551
6552         * Application.cs: When disabling all forms but the main form, do not
6553           disable any descendants of the main form (such as mdi children or
6554           other parented forms). Fixes #80822 on Windows.
6555         * Form.cs: If we have a parent, set the WS_CHILD style.
6556         * Control.cs: Update the window styles if the control whose parent has
6557           changed is a form (the WS_CHILD style has to be switched).
6558
6559 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
6560
6561         * XplatUIStructs.cs: MsgUIState structure added.
6562
6563 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
6564
6565         * FileDialog.cs: Removed need for separate fileName field. On 2.0
6566         profile, do not check filename(s) for illegal character if filename(s)
6567         were set non-interactively but always check on 1.0 profile. Fixed NRE
6568          in DefaultExt and only strip off first leading dot. Improve exception
6569         message when invalid Filter is set. Do not ignore InitialDirectory if
6570         it does no exist. Store specified Title, and if empty use default
6571         title (depending on type of dialog). Added an internal DialogTitle 
6572         property for retrieving dialog title. Fixed logic of displayed dir to
6573         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
6574         string as its buggy.
6575         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
6576         FileName is a zero-length string (it can never be null). Override 
6577         DialogTitle property to set default title of dialog box.
6578         * SaveFileDialog.cs: Override DialogTitle property to set default
6579         title of dialog box.
6580
6581 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
6582
6583         * FileDialog.cs: Modify default text of filename and filetype labels
6584         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
6585         after we've updated the SelectedIndex. Fixes part of bug #80887.
6586         * SaveFileDialog.cs: Set text of filetype label.
6587
6588 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6589
6590         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
6591         label field. Needed by latest Jackson's fixes for ListView.
6592
6593 2007-02-16  Andreia Gaita  <avidigal@novell.com>
6594
6595         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
6596         print preview images.
6597
6598 2007-02-16  Jackson Harper  <jackson@ximian.com>
6599
6600         * ListView.cs: Make AfterLabelEdit work correctly.
6601         * FileDialog.cs: After changing the name of the folder, we have to
6602         make sure that it is created, or that we pop up an error because
6603         it already exists.
6604
6605 2007-02-16  Jackson Harper  <jackson@ximian.com>
6606
6607         * X11Dnd.cs: Implement aliases on mime handlers, so things like
6608         System.String are mapped to text.
6609         - Handle dataobjects, getting all the possible formats out of them
6610         - We dont need the drag event args before we give feedback. This
6611         allows feedback cursors to be immediate before selections have
6612         been converted.
6613
6614 2007-02-16  Jackson Harper  <jackson@ximian.com>
6615
6616         * TextBoxBase.cs: Modified the method for inserting images to
6617         taking a line and position instead of tag and position.
6618         * RichTextBox.cs: Handle PngBlip data by inserting the png image
6619         into the RTF file.
6620         * TextControl.cs: Allow images to be inserted as the first tag of
6621         a line.
6622         - Fix some off by one issues when we assume the first tag is a
6623         text tag, not an image tag.
6624
6625 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6626
6627         * ListView.cs: Set focus to ListView when ItemControl gets a
6628         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
6629         Fixes part of #80467.
6630
6631 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6632
6633         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
6634           validate Text input (if null or empty string reset Value to default
6635           value). Fixes #80830.
6636
6637 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6638
6639         * ListView.cs: Set owner as null for columns and items when
6640         Dispose is invoked. Fixes #80607.
6641
6642 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
6643
6644         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
6645         showing DropDowns, don't show a Grip when doing Flow layout.
6646         [This fixes the toolbox in PDN 2.72.]
6647         * ToolStripItem.cs: Add Anchor property and some internal properties to
6648         reduces needed changes to FlowLayout.
6649         * ToolStripOverflow.cs: Remove unused variable.
6650         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
6651         use it in the layout calculations.
6652
6653 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
6654
6655         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
6656         reported in #79640.
6657         
6658         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
6659         size calculation.
6660
6661 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
6662
6663         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
6664         MeasureString format, it can make button very large in some cases, it is
6665         strange but is what win32 do.
6666
6667 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
6668
6669         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
6670         size calculation.
6671
6672         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
6673         rendering, the value is based on MenuAccessKeysUnderlined.
6674
6675 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
6676
6677         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
6678         for most themes.
6679         
6680         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
6681         
6682         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
6683         and use MenuAccessKeysUnderlined instead.
6684
6685 2007-02-13  Andreia Gaita  <avidigal@novell.com>
6686
6687         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
6688         A selected control would not get a Focus call if:
6689                 - the default active control of the container is the same as
6690                   the one that was selected
6691                 - we are switching from one container to another
6692         Under these conditions, the container being selected already has
6693         an active_control, which is the same as the one being activated, 
6694         so set_ActiveControl would always return and not send the Focus
6695         call. Fix to check if the currently active control of the container
6696         is actually focused.
6697
6698 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
6699
6700         * StatusStrip.cs: Implement the spring layout.
6701         * ToolStripControlHost.cs: Make sure the hosted control's visibility
6702         always matches the host.
6703         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
6704         and TextAfterImage.
6705
6706 2007-02-13  Andreia Gaita  <avidigal@novell.com>
6707
6708         * Control.cs: Code reorganization only.
6709           - Reorganize the WndProc cases so that each case has it's own handling method, 
6710           to help with the no-line-numbering stack traces.
6711           - Formatting changes (it's vstudio's fault, really :p)
6712
6713 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6714
6715         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
6716           Thread.CurrentUICulture to match DateTimePicker's (and MS)
6717           behaviour.
6718
6719 2007-02-12  Jackson Harper  <jackson@ximian.com>
6720
6721         * RichTextBox.cs:
6722         * TextBox.cs: By default we have a non multiline document
6723         - use the multiline property instead of the internal variable
6724         * TextBoxBase.cs: Treat multiline and non multiline the same in
6725         most places.
6726         - Use the documents multiline flag instead of tracking it ourself
6727         * TextControl.cs: Attempt at getting multiline to match MS
6728         behavior.  Lines now track an offset, which is either their X or Y
6729         offset depending on whether or not we are in multiline mode.
6730         - Update all the methods to understand that lines have an X value.
6731         - Fix crash in Undo::Duplicate when empty lines are deleted.
6732
6733 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
6734
6735         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
6736         code moved to properties PreferredHeight and PreferredWidth. It solve the
6737         all problems when preferred sizes must be recalculated. Fixes #80801.
6738
6739 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
6740
6741         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
6742         font height when compatible_text_rendering is false. Partially fix #80801.
6743
6744 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
6745
6746         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
6747
6748 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
6749
6750         * Form.cs: Improved exception messages in ShowDialog.
6751
6752 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
6753
6754         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
6755         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
6756         if not set. Fixes bug #80764. Avoid accessing current_settings field
6757         directly.
6758
6759 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
6760
6761         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
6762         false.
6763
6764         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
6765         public in 2.0 and for easy maintenance and dont break compatibility it is 
6766         internal in 1.1.
6767         
6768 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
6769
6770         * ToolStripItem.cs: Implement using images from ImageList.
6771
6772 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6773
6774         * DateTimePicker.cs: Change default date-formatting culture from
6775           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
6776           seems to be the way MS does it.
6777
6778 2007-02-08  Andreia Gaita  <avidigal@novell.com>
6779
6780         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
6781         (the 6 was cut off on the right side)
6782
6783 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
6784
6785         * Form.cs: Tell MenuStrips to close when the form is clicked.
6786         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
6787         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
6788         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
6789         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
6790         support for Overflow, where items that do not fit are automatically
6791         reparented to a drop down menu.
6792         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
6793         Also: fixes bug #80747.
6794
6795 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6796
6797         * ComboBox.cs: Remove warning (unused code).
6798         * ScrollableControl.cs: Remove warning for 1.1 profile.
6799
6800 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6801
6802         * Form.cs: Remove a warning.
6803
6804 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6805
6806         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
6807           'g' specifier, not documented anywhere, but seems to always show up
6808           as a single space (might have something to do with the DateTime 'g'
6809           specifier, which is the era format, but since DateTimePicker can't
6810           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
6811           won't crash if the format has an unmatched quote. Now shows
6812           single-character formats correctly. Fixes #80744.
6813
6814 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
6815
6816         * StatusStrip.cs: Stretch property needs to call base.Stretch,
6817         not this.Stretch to fix stack overflow. [Fixes bug #80760]
6818
6819 2007-02-07  Chris Toshok  <toshok@ximian.com>
6820
6821         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
6822         background color.  it overwrites the background image we've
6823         already painted.  Fixes #80599.
6824
6825 2007-02-07  Chris Toshok  <toshok@ximian.com>
6826
6827         * DataGrid.cs: return immediately from Edit() when there are no
6828         columns.  Fixes #80662.
6829
6830 2007-02-07  Chris Toshok  <toshok@ximian.com>
6831
6832         * MessageBox.cs: fix #80625.  don't always show the Help button in
6833         2.0.  use the displayHelpButton parameter to determine if we
6834         should show it. Also, make the internal show_help field private.
6835
6836 2007-02-07  Chris Toshok  <toshok@ximian.com>
6837
6838         * Control.cs (SetVisibleCore): check in the proposed patch for
6839         80604, and set is_visible before calling CreateControl.
6840
6841 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
6842
6843         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
6844         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
6845         on it.
6846
6847 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
6848
6849         * MenuAPI.cs: hotkey_active internal field added, it is required because
6850         we need to know when hotkeys must be draw, before this change a keystate
6851         Navigating was used but we can have menu in navigating state without
6852         hotkeys. Fixes #80694.
6853         
6854         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
6855
6856 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6857
6858         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
6859           corresponding events and methods to be internal for 1.1 profile and
6860           public for 2.0 profile (required by SizeGrip).
6861         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
6862           implicit control list). Don't set the size nor the location of the
6863           SizeGrip anymore as it's not needed.
6864         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
6865           draw directly on the captured control (fixes #80656). Removed
6866           ShowGrip (it wasn't used anywhere), redraw (always true), added
6867           GetDefaultSize and GetDefaultRectangle to calculate defaults.
6868         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
6869           be called from SizeGrip.
6870
6871 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6872
6873         * Timer.cs: Throw ArgumentException if Interval <= 0.
6874
6875 2007-02-05  Jackson Harper  <jackson@ximian.com>
6876
6877         * TreeView.cs: We need to check scrollbar visibility when window
6878         visibility is updated, because non visible trees don't ever add
6879         scrollbars.
6880         * Cursor.cs: We want the override cursor to be reset to NULL when
6881         we set current cursor to the default cursor.
6882
6883 2007-02-05  Jackson Harper  <jackson@ximian.com>
6884
6885         * TextControl.cs: Don't have crlfs when we are non multiline.
6886         - Consolidate the line position.
6887
6888 2007-02-05  Jackson Harper  <jackson@ximian.com>
6889
6890         * X11Keyboard.cs: BACK+CTRL gets a special char code.
6891
6892 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6893
6894         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
6895           handling LeaveNotify->NotifyUngrab in order to send
6896           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
6897           after calling XUngrabPointer, so we call WindowUngrabbed directly
6898           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
6899         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
6900           MouseCaptureChanged correctly. Also create handles if changing
6901           Capture (matches MS behaviour).
6902
6903 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6904
6905         * SizeGrip.cs: Make the last change 2.0 only.
6906
6907 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6908
6909         * SizeGrip.cs: If resizing and the capture is lost, revert any size
6910           changes to initial size (fixes #80597).
6911
6912 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6913
6914         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
6915
6916 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6917
6918         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
6919           background) and only allow dragging if enabled. This way the
6920           sizegrip can be used to fill the open square that otherwise would
6921           have been shown in the bottom right corner of ScrollableControl
6922           when ScrollableControl is not suppose to support sizing.
6923         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
6924           sizegrip is shown and enabled, and hook up with necessary events.
6925
6926 2007-02-01  Chris Toshok  <toshok@ximian.com>
6927
6928         * DataGridTextBoxColumn.cs: clean up the
6929         GetFormattedString/GetColumnValueAtRow combination of functions.
6930         Also fix UpdateUI, and the initial state of
6931         IsInEditOrNavigateMode.
6932
6933         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
6934         aren't supposed to scroll the textbox here, we're supposed to
6935         scroll the datagrid.
6936
6937 2007-02-01  Chris Toshok  <toshok@ximian.com>
6938
6939         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
6940         setting the position.
6941
6942 2007-02-01  Chris Toshok  <toshok@ximian.com>
6943
6944         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
6945         here, since the most recent focus fixes keep us from generating
6946         the Leave event when our textbox gets focus.
6947         (Edit): we should be passing null for the column style's
6948         instantText parameter.
6949         
6950 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
6951
6952         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
6953         raised.  Fixes menu text/icons not showing up in PDN.
6954
6955 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6956
6957         * Control.cs: Remove code in constructor that makes every
6958         control with WS_CHILD set have initial location -1, -1.
6959
6960 2007-01-31  Jackson Harper  <jackson@ximian.com>
6961
6962         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
6963         XplatUIX11.
6964         * XplatUIX11.cs: Give teh keyboard to teh dnd.
6965
6966 2007-01-31  Jackson Harper  <jackson@ximian.com>
6967
6968         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
6969         - Remove some debug code.
6970
6971 2007-01-31  Jackson Harper  <jackson@ximian.com>
6972
6973         * XplatUIX11.cs: If you set the override cursor during a grab, it
6974         should actually override the grab cursor.  This comes into play
6975         when you are setting custom cursors in a DND feedback method.
6976
6977 2007-01-31  Jackson Harper  <jackson@ximian.com>
6978
6979         * X11Dnd.cs: Add support for handling the QueryContinue and
6980         GiveFeedback events.
6981         - Cancel drag and drop actions when the escape key is clicked.
6982         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
6983         can handle the ESCAPE key.
6984         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
6985         done when dnd events are continued after the button is released.
6986         - Add a new helper method so that dnd can translate key events.
6987
6988 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
6989
6990         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
6991         make it more obvious what is happening.
6992
6993 2007-01-30  Jackson Harper  <jackson@ximian.com>
6994
6995         * XplatUIX11.cs: Don't break when handling button release in drag
6996         and drop operations. We need that BUTTONUP message to get through
6997         so capture is released.
6998         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
6999         this is handled automatically when the mouse is down.
7000
7001 2007-01-30  Jackson Harper  <jackson@ximian.com>
7002
7003         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
7004         is closed, so we need to make sure that we aren't changing the
7005         dialog result when the OK (Open or Save) button has been clicked
7006         and we are closing the window ourselves.  Note we don't need to
7007         worry about the cache being written in this case, because it was
7008         already done in the previous FilOk call.
7009
7010 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7011         
7012         * DateTimePicker.cs: Remove a warning.
7013         * ComboBox.cs: Remove a couple of warnings.
7014
7015 2007-01-29  Chris Toshok  <toshok@ximian.com>
7016
7017         * XplatUIX11.cs: don't crash, and remove the icon if the user has
7018         set one, if SetIcon is passed a null icon.
7019
7020 2007-01-29  Andreia Gaita  <avidigal@novell.com>
7021
7022         * TextBox.cs: Redraw when the password characters changes
7023         * TextControl.cs: Check if textbox has a password char and draw 
7024         a line of password chars instead of the text in the line. LineTag gets 
7025         an extra Draw() method which allows document.Draw to override the text 
7026         that will be drawn. Removes 1024 char limitation on length of passworded 
7027         lines.
7028
7029 2007-01-29  Jackson Harper  <jackson@ximian.com>
7030
7031         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
7032         single chars is not.
7033
7034 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
7035
7036         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
7037         one pixel.  Fix a StackOverflowException caused by an overload wrongly
7038         calling itself.
7039
7040 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
7041
7042         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
7043         also remove ProcessArrowKey and put the code inside ProcessKeys.
7044
7045 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
7046
7047         * PaddingConverter.cs: Added.
7048
7049 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7050         
7051         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
7052         ShowPanels is false (fixes #80600). Only draw up to 127 characters
7053         of text (fixes #80601). For panels clip the text to draw to the
7054         panel (fixes #80603).
7055
7056 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7057
7058         * ComboBox.cs: Fixed implementation of ResetText.
7059
7060 2007-01-25  Jackson Harper  <jackson@ximian.com>
7061
7062         * TextControl.cs: For the last char of a line we need to use the
7063         line size, not that chars width, since it won't actually be
7064         computed since the right side of a char is based on the start of
7065         the left side of the next char, and the next char does not exist.
7066
7067 2007-01-25  Chris Toshok  <toshok@ximian.com>
7068
7069         * Splitter.cs: fix the new unit tests, and reindent some switch
7070         statements.
7071
7072 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7073
7074         * ComboBox.cs: Implemented 2.0 methods and events.
7075         * TextBoxBase.cs: Added OnTextUpdate, so that
7076         ComboBox.ComboTextBox can inform ComboBox of it.
7077
7078 2007-01-25  Jackson Harper  <jackson@ximian.com>
7079
7080         * TextControl.cs: Respect ShowSelection when deciding whether or
7081         not to display the caret, this allows comboboxes to have carets
7082         when the combotextbox does not have focus.
7083
7084 2007-01-25  Jackson Harper  <jackson@ximian.com>
7085
7086         * TextControl.cs: Add a Suspend/Resume for updating, basically the
7087         same as the Suspend/Resume for recalc, except this will do actual
7088         Invalidates.
7089         - New Undo manager, works much like the MS version.
7090         - Implemented Redo
7091         * TextBoxBase.cs: The Cut operation is undoable.
7092
7093 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7094         
7095         * TextBoxBase.cs: Don't antialias text. Makes it look way better
7096         on Windows (no difference on Linux).    
7097
7098 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7099
7100         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
7101         we don't want to activate any windows. Fixes #79433.
7102
7103 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
7104
7105         - ButtonBase.cs: Fix capitalization of parameter: disposing.
7106         [Fixes bug #80609]
7107
7108 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
7109
7110         * FileDialog.cs:
7111         - Move to using System.ComponentModel.EventHandlerList
7112         - Replace Refresh with Invalidate
7113         - Clear the mime filecache on closing
7114         - Some other memory reducing work. After beeing closed FD now uses
7115           only about 300 KB for the fdo mime stuff plus the memory of the
7116           cached icons.
7117         * Mime.cs: Changed coding style and removed unnecessary commented
7118         code. Some more memory memory reducing work.
7119
7120 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7121
7122         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
7123         a few other missing 2.0 properties.
7124         * Theme.cs: Added DrawFlatStyleComboBox.
7125         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
7126
7127 2007-01-24  Chris Toshok  <toshok@ximian.com>
7128
7129         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
7130         wake_waiting flag, not just when there's data to be read.  if we
7131         don't, then future wakeup's won't reach us and we'll be doomed to
7132         wait for the entire 1 second timeout forever (unless there are X
7133         events to be had).
7134
7135 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
7136
7137         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
7138         until you pass Items.Count, not Items.Count - 1 like 1.1.
7139
7140 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
7141
7142         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
7143
7144 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
7145
7146         * ToolStripContainer.cs: The recent Dock fix exposed that I was
7147         adding the panels in the wrong order.
7148
7149 2007-01-24  Jackson Harper  <jackson@ximian.com>
7150
7151         * TextBoxBase.cs: When we move the caret we also need to move the
7152         selection, this fixes some random crashing after doing select
7153         text, unselect, delete a char, paste.
7154
7155 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7156
7157         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
7158
7159 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
7160
7161         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
7162         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
7163         * ToolBar.cs: Force redraw in BackgroundImageChanged.
7164
7165 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
7166
7167         * ToolBar.cs:
7168         - Implement support for vertical toolbars. Fixes #80539;
7169         - Call LayoutToolBar when resize, it fix some other problems in layout.
7170         - Rename requested_height to requested_size, as we can have width on it
7171         when toolbar is vertical.
7172         - Create a private property "Vertical" that uses Dock to verify when 
7173         toolbar is vertical or not.
7174         - Set ControlStyles when change Dock property.
7175         - Refactory in LayoutToolBar to have better variables names and to support
7176         vertical toolbars.
7177         - Fixes default value for ButtonSize when button count is equal zero, size
7178         must be (39, 36) test case writed.
7179
7180 2007-01-23  Chris Toshok  <toshok@ximian.com>
7181
7182         * Control.cs: fix the checks so that they work correctly for mdi
7183         parents/children.
7184
7185 2007-01-23  Chris Toshok  <toshok@ximian.com>
7186
7187         * Control.cs: ControlCollection seems to have super-secret
7188         abstraction breaking knowledge of Mdi containers.  allow MdiClient
7189         to add toplevel controls.
7190
7191 2007-01-23  Chris Toshok  <toshok@ximian.com>
7192
7193         * Control.cs: throw an ArgumentException if a toplevel control is
7194         added to our control collection from ControlCollection.Add, as
7195         well as from ControlCollection.IList.Add.  This fixes the
7196         ControlSetTopLevelTest.TestTopLevelAdd unit test.
7197
7198         Also, in ControlCollection.IList.Add, don't through an
7199         ArgumentNullException, throw an ArgumentException, when value ==
7200         null.  This matches MS.
7201
7202 2007-01-23  Chris Toshok  <toshok@ximian.com>
7203
7204         * BindingSource.cs: initial, incomplete, implementation of
7205         BindingSource.
7206
7207 2007-01-23  Jackson Harper  <jackson@ximian.com>
7208
7209         * TextControl.cs:
7210         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
7211         that I can fix a broken unit test (TextBoxTest::ClearUndo)
7212         
7213 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
7214
7215         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
7216
7217 2007-01-23  Andreia Gaita  <avidigal@novell.com>
7218
7219         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
7220         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
7221         IndexOfKey() for 2.0
7222
7223 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7224
7225         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
7226         to prevent it from changing z-order.
7227         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
7228         leave UI updates in MdiWindowManager.
7229         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
7230         1 sized (NC handling goes weird on Linux otherwise).
7231         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
7232         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
7233         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
7234         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
7235         and SetWindowState(s) to allow for changing the size of an activated child
7236         before activating it (reduces a lot of flicker).
7237
7238 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
7239
7240         * Form.cs: Changing FormBorderStyle has different semantics based
7241         on whether the Form is visible or not.  If not visible, don't change
7242         the Size.  But InvalidateNC needs to be called to force the window
7243         to pick up the changes and redraw itself.  [Fixes bug #80574]
7244
7245 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
7246
7247         [Moma work]
7248         * ContainerControl.cs: ProcessCmdKey.
7249         * ErrorProvider.cs: new constructor.
7250         * Form.cs: fix AutoValidateEvent compiler warning.
7251         * Label.cs: fix OnAutoSizeChanged compiler warning.
7252         * MenuStrip.cs: fix CanOverflow compiler warning.
7253         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
7254         * TextBox.cs: Dispose.
7255         * ToolStrip.cs: CanOverflow, re-enable double buffering.
7256         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
7257         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
7258         * ToolStripItem.cs: Overflow, RightToLeft properties.
7259
7260 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7261
7262         * Form.cs: Move the layout of the main form to MdiWindowManager.
7263         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
7264         do a layout of the main window to update MdiClient's client area to
7265         the right area. Fixes #80533. Remove the calculation of nc size, 
7266         it was just wrong and the correct one is the same as for 
7267         InternalWindowManager. 
7268
7269 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
7270
7271         * Control.cs: Setting Anchor or Dock needs to reset the other
7272         to its default.  [Fixes bug #80556]
7273
7274 2007-01-20  Chris Toshok  <toshok@ximian.com>
7275
7276         * CheckedListBox.cs: class status changes.
7277
7278         * ScrollableControl.cs: same.
7279
7280         * RichTextBox.cs: same.
7281
7282         * ContainerControl.cs: same.
7283
7284         * ListView.cs: same.
7285
7286         * NotifyIcon.cs: same.
7287
7288         * MenuStrip.cs: same.
7289
7290         * RadioButton.cs: same.
7291
7292         * CheckBox.cs: same.
7293
7294         * PrintPreviewDialog.cs: same.
7295
7296         * Form.cs: same.
7297
7298 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
7299
7300         * TreeNode.cs: Apply Alan's patch for Name property.
7301
7302 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7303         
7304         * Form.cs: Implemented SizeGripStyle.
7305         * SizeGrip.cs: Check for minimum and maximum size for the
7306         control being resized and only resize if size has actually
7307         changed.
7308
7309 2007-01-19  Chris Toshok  <toshok@ximian.com>
7310
7311         * DataGridColumnStyle.cs: stop setting _readonly in the
7312         PropertyDescriptor setter.  fixes a unit test failure.
7313
7314         also, rename ParentReadOnly to TableStyleReadOnly, and have it
7315         just consult our table style (if we have one).  We don't need to
7316         consult the datagrid readonly attribute because that's passed in
7317         as the _ro arg to Edit.  this simplifies things a little.
7318         
7319         * DataGrid.cs: use CurrentColumn instead of
7320         current_cell.ColumnNumber just to simplify some of the code.
7321
7322         switch the order of some things in the CurrentCell setter to keep
7323         the previous cell from getting a textbox again -
7324         EnsureCellVisibility causes scrolling to happen, which calls Edit.
7325         So we need to set the new cell before calling it.
7326         
7327         call Edit in OnEnter, as does Microsoft.
7328         
7329         also, make sure the current table style isn't the one we create
7330         initially when checking to see if it's different than the one
7331         we're setting it to in BindColumns (this fixes #80421).
7332
7333         * GridTableStylesCollection.cs: table styles can have "" for a
7334         mapping name.  part of the fix for #80421.
7335
7336         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
7337         Edit significantly.
7338
7339 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7340
7341         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
7342         and less GDI object leaky-er.
7343
7344 2007-01-18  Andreia Gaita  <avidigal@novell.com>
7345
7346         * LinkLabel.cs: Add opaque control style
7347
7348 2007-01-18  Jackson Harper  <jackson@ximian.com>
7349
7350         * TextControl.cs: Calculate width properly.
7351         - Don't store the tag's X offset, this can be figured out very
7352         easily.
7353         - When getting the caret tag make sure to get the last empty tag.
7354
7355 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7356
7357         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
7358         [Fixes bug #79959]
7359
7360         * Control.cs: Color.Empty shouldn't count for previous transparent
7361         redraw changes.
7362
7363 2007-01-18  Jackson Harper  <jackson@ximian.com>
7364
7365         * TextBox.cs:
7366         * RichTextBox.cs:
7367         * TextControl.cs: Starting to merge in some pieces of my older
7368         undo work.  Basically just some slight cleanup of the undo API.
7369
7370 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7371
7372         * TrackBar.cs: Fix signature of RightToLeftLayout.
7373         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
7374         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
7375         * Application.cs: Implemented UseWaitCursor.
7376
7377 2007-01-18  Jackson Harper  <jackson@ximian.com>
7378
7379         * TextControl.cs: We can't skip tags if any part of the tag is
7380         visible.
7381
7382 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7383
7384         * ContainerControl.cs: Override OnLayout.
7385
7386 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7387
7388         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
7389
7390         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
7391         everything else.
7392
7393 2007-01-18  Chris Toshok  <toshok@ximian.com>
7394
7395         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
7396         (leftover from the container_selected days, I'd wager).  fixes bug
7397         #80546.
7398
7399 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7400
7401         * Control.cs: Apply patch from George to fix the new testcase on
7402         bug #80451.  We can't just check for Color.Transparent, we need 
7403         to check if the back color's alpha channel is < 255.
7404
7405 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
7406
7407         * Form.cs: Move setting show_icon = true to before the constructor
7408         so that the base constructor has that information when it calculates
7409         the form's size.  Was causing forms to be (6, 6) bigger than they
7410         were supposed to be.  Thanks for catching this Rolf!
7411
7412 2007-01-18  Jackson Harper  <jackson@ximian.com>
7413
7414         * TextControl.cs: When replacing a selection we need to invalidate
7415         from the initial selection start, because selection start is moved
7416         to the end of the replacement.
7417
7418 2007-01-18  Andreia Gaita  <avidigal@novell.com>
7419
7420         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
7421
7422 2007-01-18  Chris Toshok  <toshok@ximian.com>
7423
7424         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
7425         I just added.
7426
7427 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
7428
7429         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
7430         layout methods and properties from ToolBarButton must be available
7431         into ToolBarButtonInfo.
7432
7433 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
7434
7435         * Control.cs: If the control has a transparent background, we
7436         need to refresh it when it moves and when it's parent's background
7437         image changes.  [Fixes bug #80451]
7438
7439 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
7440
7441         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
7442
7443 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
7444
7445         * XplatUIWin32.cs: Implement proper double buffering for Windows.
7446         [Fixes bug #80447, and probably speeds up things as well]
7447
7448 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7449
7450         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
7451         * XplatUIWin32.cs: We need to recalculate NC size after changing 
7452         window style to toolwindow (otherwise the client rectangle will be
7453         3 pixels to small for some reason).
7454         * MdiWindowManager.cs: Revert NC size calculations to match how
7455         they are calculated only based on window styles (to match
7456         Win32AdjustWindowRectEx, since otherwise when setting size or 
7457         location, Control will call Win32AdjustWindowRectEx to update client 
7458         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
7459         calculate a different value of client size causing another paint 
7460         (and flickering))
7461         * InternalWindowManager.cs: When moving or resizing a window only
7462         update size or location if they actually changed.
7463         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
7464         (seems to match Windows behaviour better). Cleaned up 
7465         ManagedWindowDecorations to draw what's needed and nothing else
7466         (was drawing borders and lines where they shouldn't be)
7467         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
7468         (style = 0xFFFF) and takes into account caption height when 
7469         calculating window rectangle.   
7470
7471 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
7472
7473         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
7474         can be added to toolbar multiple times, we need to maintain a list of 
7475         button information for each positions.
7476
7477 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
7478
7479         * ToolBar.cs: Some small stetic changes.
7480
7481 2007-01-16  Jackson Harper  <jackson@ximian.com>
7482
7483         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
7484         that allow us to have nested recalc = false blocks.
7485         - Add paste support for images in the RichTextBox
7486         * RichTextBox.cs: flush the text after the color is changed, so
7487         the change takes effect.
7488         - Use SuspendRecalc
7489         - Some extra debugging info
7490         * TextControl.cs: Tags no longer track their length, it is just
7491         computed from the next tags length, this makes things a little
7492         simpler and reduces places that we have to track length changes.
7493         - Refactored the linetag class a little so we could make it
7494         a base class for different kinds of tags
7495         - Created a image tag, a tag that can have a single image inserted
7496         into it
7497         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
7498         that we can call suspend multiple times.
7499         - Add some debugging methods
7500
7501 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7502
7503         * MdiClient.cs: Add ActivatePreviousChild for 
7504         mdi child window navigation.
7505         * Form.cs: Use MdiClient.ActivateNextChild/
7506         ActivatePreviousChild instead of Form.SelectNextControl
7507         to select the next/previous child since 
7508         SelectNextControl doesn't do it in the same order
7509         as mdi children should do it.
7510
7511 2007-01-16  Chris Toshok  <toshok@ximian.com>
7512
7513         * Control.cs: remove container_selected field.
7514
7515 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7516
7517         * MdiClient.cs: Update main form's ActiveChild when
7518         updating keyboard focus for the mdi child.
7519
7520 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
7521
7522         * Control.cs: PreferredSize fix.
7523
7524         * Form.cs: Add several 2.0 events, properties, and methods.
7525
7526 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
7527
7528         * Form.cs: Provide meaningful message when MdiParent is assigned a
7529         Form that is not an MdiContainer.
7530
7531 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7532
7533         * MdiClient.cs: Update main form's ActiveChild when
7534         activating a mdi child.
7535
7536 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7537
7538         * MdiWindowManager.cs: Fix NRE when merging menus and main form
7539         doesn't have a menu.
7540
7541         * Form.cs: Request NCRecalc after creating a mdi child window.
7542         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
7543         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
7544         
7545         * MdiClient.cs: Add new method SendFocusToActiveChild that either
7546         sends keyboard focus to the active child, or to the MdiClient
7547         if there are no child forms.
7548         
7549 2007-01-15  Chris Toshok  <toshok@ximian.com>
7550
7551         * ListView.cs: drop the *Internal overrides, just do our work in
7552         ItemControl's WndProc instead.
7553
7554         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
7555         of the various controls, and forward the events properly (in the
7556         same manner as MS) from the textbox to the UpDown.  Also the
7557         ActiveControl of the UpDownBase gets set properly now.  Finally,
7558         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
7559
7560         * NumericUpDown.cs: set Text in the ctor.
7561
7562         * DomainUpDown.cs: call UpdateEditText in the ctor.
7563         
7564         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
7565         so even a Selectable = false textbox can be focused if you click
7566         in it.  Go figure.
7567
7568         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
7569         just add their handling in their respective WndProc's.  Also add
7570         an explicit FocusInternal method that doesn't consult CanFocus
7571         before calling Select(this).
7572
7573         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
7574         do our work in WndProc instead.
7575
7576         * TabControl.cs: same.
7577
7578         * ComboBox.cs: same.
7579
7580 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
7581
7582         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
7583         Fixes #80006.
7584
7585 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7586
7587         * ListViewItem.cs:
7588         * ThemeWin32Classic.cs: Don't draw the item text outside
7589         item bounds in Details view, as well as use trimming.
7590         Fixes bug #80376.
7591
7592 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
7593
7594         * Form.cs: Implement Form.ShowIcon.
7595         
7596         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
7597         null, which when combined with the DlgModalFrame window style removes
7598         the icon from the title bar.
7599
7600 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
7601
7602         * Control.cs: Call OnMouseClick after OnClick. (2.0)
7603
7604 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
7605
7606         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
7607         menu when mdi child windows theres a menu, uses insert to get icon
7608         at first position. Partially fix #80006.
7609
7610 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
7611
7612         * Clipboard.cs: Implement 2.0 methods.
7613
7614 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
7615
7616         * Menu.cs: Implement Insert method of MenuItemCollection class
7617         to fix MenuMerge.
7618
7619 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7620
7621         * ListView.cs: Implement 2.0 FindItemWithText method.
7622
7623 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
7624
7625         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
7626         to calculate menu bar size. Fixes #80290.
7627
7628 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
7629
7630         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
7631
7632 2007-01-11  Chris Toshok  <toshok@ximian.com>
7633
7634         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
7635         initial form.
7636
7637 2007-01-11  Chris Toshok  <toshok@ximian.com>
7638
7639         * LinkLabel.cs: make sure to call base.Select in our Select method
7640         if it turns out we're going to be selected (i.e. if we have a link
7641         that is going to receive focus).  That way our container's
7642         ActiveControl is updated properly.
7643
7644 2007-01-11  Chris Toshok  <toshok@ximian.com>
7645
7646         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
7647         they have 1 or more links.  this fixes the crash gert reported.
7648
7649 2007-01-11  Andreia Gaita  <avidigal@novell.com>
7650
7651         * ContainerControl.cs: Remove ContainerSelected flag, not needed
7652         anymore.
7653
7654         * Control.cs (Controls.Add): Check if control to be added to the collection
7655         is a top level control, and throw an ArgumentException if it is.
7656         Remove ContainerSelectedFlag, not needed anymore.
7657
7658         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
7659         top most control doesn't activate the form. This fixes a problem in the
7660         MessageBox, where the default button wouldn't get focus because the form
7661         was activated before being Loaded - when the Owner is set, SetTopMost is
7662         called, and it would activate it.
7663
7664 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
7665
7666         * Button.cs: When clicked and setting the parent form's DialogResult,
7667         use FindForm instead of Parent, since parent could be a container
7668         control and not the Form.  Fixes bug #80495.
7669
7670 2007-01-10  Chris Toshok  <toshok@ximian.com>
7671
7672         * Form.cs: move the call to SendControlFocus into the same
7673         is_loaded check.
7674
7675 2007-01-10  Chris Toshok  <toshok@ximian.com>
7676
7677         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
7678         It breaks in the face of the new ActiveControl stuff, and should
7679         be unnecessary.
7680
7681         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
7682         activecontrol's focus if it's not already set, after we set
7683         ActiveControl, but before we call OnActivated.  Re-fixes #79667
7684         after the previous focus/active control fixes regressed it.
7685
7686         * Control.cs: reindent some code.
7687         
7688 2007-01-10  Chris Toshok  <toshok@ximian.com>
7689
7690         * Splitter.cs: clearing some outstanding changes from my tree.
7691         Replace all accesses (not writes) to the internal dock_style field
7692         with the Dock property.
7693
7694 2007-01-10  Chris Toshok  <toshok@ximian.com>
7695
7696         * Control.cs: make FireEnter, FireLeave, FireValidating, and
7697         FireValidated virtual.
7698
7699         * Form.cs: override and don't chain up calls to FireEnter and
7700         FireLeave.
7701
7702 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7703
7704         * ListView.cs: Add more text padding space when using
7705         auto resize for columns (the previous value didn't work fine).
7706
7707         * ThemeWin32Classic.cs: Update text position inside columns,
7708         to match the appeareance of .Net.
7709
7710         * ColumnHeader.cs: When using auto resize, only the Width should
7711         depend on the sub items, not the Height. Also, set width after
7712         auto resizing (the value of Width should never remain as -1 or -2).
7713
7714 2007-01-10  Chris Toshok  <toshok@ximian.com>
7715
7716         * Application.cs: fix compilation errors when debug is enabled.
7717
7718 2007-01-10  Chris Toshok  <toshok@ximian.com>
7719
7720         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
7721         add some nice ascii art pictures and explanation of the process).
7722         (GetMostDeeplyNestedActiveControl): new utility function we need
7723         because our ActiveControl can refer to a child container with its
7724         own ActiveControl.
7725
7726         * Form.cs (OnActivated): remove the call to SelectActiveControl
7727         from here, since you can override this method and not chain up,
7728         and winforms still sets the active control.
7729         (OnCreateControl): also remove the unnecessary SelectActiveControl
7730         call from here.
7731         (WndProc): it's actually called from the WM_ACTIVATE block, just
7732         before calling OnActivated.
7733
7734         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
7735         inside the else.  the ActiveControl setter will end up setting
7736         focus on @control.  This keeps us from setting it again (and
7737         generating an extra LostFocus/GotFocus pair).
7738         (Select (bool, bool)): reindent.
7739
7740 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
7741
7742         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
7743         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
7744         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
7745         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7746         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
7747         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
7748         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
7749         ToolStripTextBox.cs: Another wave of corcompare work.
7750
7751 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7752
7753         * ColumnHeader.cs: Implement 2.0 AutoResize method using
7754         the Width property.
7755
7756         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
7757         methods by callling Column.AutoResize method on columns.
7758
7759 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
7760
7761         * Control.cs: Provide proper implementations of PreferredSize
7762         and GetPreferredSize (2.0).
7763
7764 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
7765
7766         * Form.cs: Remove one character (!) to make my previous OnClosing
7767         stuff work for modal windows like MessageBox.
7768
7769 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7770
7771         * ListView.cs:
7772         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
7773         ListView.Columns to get the last displayed column. Fixes #80452.
7774
7775 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
7776
7777         * Label.cs, LinkLabel.cs: Source code identation fixes.
7778
7779 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
7780
7781         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
7782         we dont need to invalidate only borders because when we invalidate four
7783         border lines the invalidate's generates a complete redraw of button, 
7784         because it now invalidate a complete rect some other redraws operations
7785         are fixed. Fixes #80196.
7786         
7787         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
7788         Remove ToolBarInvalidateEntireButton as it is not used.
7789
7790 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
7791         
7792         * Form.cs: Make sure that both OnClosing and OnFormClosing are
7793         called for 2.0 profile.
7794         * CloseReason.cs: Make class internal for 1.1.
7795
7796 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
7797
7798         * ToolStripManager.cs: Implement FindToolStrip functionality.
7799         * ToolStrip.cs: Register and unregister with ToolStripManager.
7800
7801 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
7802
7803         * Control.cs: This was messy.  2.0 moves much of ControlCollection
7804         to ArrangedElementCollection.  Implemented this with as few #if's as 
7805         possible (which is still too many).
7806
7807 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
7808
7809         * Control.cs: Implement SizeFromClientSize() [2.0].
7810
7811 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
7812
7813         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
7814         use Theme.BorderSize to calculate area instead of static value 1, 
7815         by the way use new BorderStaticSize instead     Border3DSize when 
7816         border_static is true. Fixes #79537.
7817         
7818         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
7819         
7820         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
7821         it is not needed.
7822
7823 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
7824
7825         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
7826
7827 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
7828
7829         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
7830         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
7831         
7832         * Hwnd.cs: 
7833         - border_static field added, it will used to define when a control 
7834         theres 3D border but it must be static (thin).
7835         - In GetWindowRectangle use Theme.BorderSize to calculate area 
7836         instead of static value 1, by the way use new BorderStaticSize instead
7837         Border3DSize when border_static is true.
7838
7839         * XplatUIX11.cs, XplatUIOSX.cs: 
7840         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
7841         
7842         * Theme.cs: BorderStaticSize field added.
7843
7844 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
7845
7846         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
7847
7848 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
7849
7850         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
7851         mimic same behavior than win32 that set border only in CreateParams,
7852         it fix problems under CreateParams overrides. Fix #79442 and partial
7853         fix #79537.
7854         
7855         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
7856         of thi control you must call recreate handle. 
7857         
7858         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
7859         need to do anything as RecreateHangle will take care about borders.
7860
7861 2007-01-05  Mike Kestner  <mkestner@novell.com>
7862
7863         * ListView.cs: hack to eliminate Lost/Got focus notifications on
7864         cycles between the ItemControl and parent.  Fixes #80388.
7865
7866 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
7867
7868         * Control.cs: Lazy init layout engine. Do not directly use 
7869         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
7870
7871 2007-01-05  Chris Toshok  <toshok@ximian.com>
7872
7873         * DataGrid.cs: don't forceably rebind columns in SetDataSource
7874         unless our list manager has changed (i.e. unless we have reason to
7875         believe our columns have changed).  Fixes #80422.
7876         
7877         also, disable the call do BindColumns in
7878         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
7879         1.1 the event isn't raised in response to a column addition on a
7880         table.)
7881
7882 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
7883
7884         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
7885         that inheritors can not call it if they choose.  Fixes bug #80456.
7886
7887 2007-01-05  Andreia Gaita  <avidigal@novell.com>
7888
7889         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
7890         doesn't blow up with a null exception on marshalling.
7891         
7892 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
7893
7894         * Control.cs: Implement several 2.0 protected properties and methods.
7895         Ensure that all necessary events are being called when properties
7896         are set.
7897
7898 2007-01-05  Mike Kestner  <mkestner@novell.com>
7899
7900         * ListView.cs: implement PgUp/PgDn for Details view.  Also
7901         fixes First/LastVisibleIndex to use the item_control.ClientRect 
7902         instead of the parent control.  Fixes #80378.
7903
7904 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
7905
7906         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
7907           determine whether to use yard-pound or not (bug #78399).
7908
7909 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7910
7911         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
7912         problems. So it is time to bring back the old popupbutton colors.
7913
7914 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7915
7916         * ColumnHeader.cs:
7917         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
7918         property by using the internal information of the
7919         columns order in ListView.
7920
7921 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
7922
7923         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
7924         Add 2.0 Tag properties.
7925
7926         * LinkArea.cs: Add 2.0 ToString method.
7927
7928 2007-01-03  Chris Toshok  <toshok@ximian.com>
7929
7930         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
7931         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
7932         when we're editing, which fixes #80047.
7933
7934 2007-01-03  Chris Toshok  <toshok@ximian.com>
7935
7936         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
7937         #80404.
7938
7939 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
7940
7941         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
7942         property and implementation.
7943
7944         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
7945         for MdiWindowListItem property.
7946
7947         * ToolStripDropDown.cs: Don't consider hidden menu items while
7948         laying out the menu.
7949
7950 2007-01-03  Andreia Gaita  <avidigal@novell.com>
7951
7952         * SendKeys.cs: window handle is not needed in win32, so just
7953         get the active window for X after parsing keys and don't use
7954         it when building the message; it is passed by parameter to the 
7955         Xplat method and used there to build the message instead. Also,
7956         wait for events to be processed on SendWait, as opposed to Send,
7957         which doesn't wait :) Playing with threads and Send() completely 
7958         hangs on ms.net, only SendWait() works.
7959         
7960         XplatUIX11.cs
7961         X11Display.cs: Check for valid window handle.
7962
7963 2007-01-03  Jackson Harper  <jackson@ximian.com>
7964
7965         * TextControl.cs: Need to prevent wrap calculations when replacing
7966         text (this was there before i removed it accidently).
7967         - Don't update the cursor during the positioning, just set it to
7968         selection_start at the end of the operaion.
7969
7970 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7971
7972         * Control.cs:
7973         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
7974         
7975 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7976
7977         * MonthCalendar.cs: Added Click and DoubleClick events again,
7978         but this time they only hide Control's Click and DoubleClick.
7979         
7980 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
7981
7982         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
7983         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
7984
7985 2007-01-02  Jackson Harper  <jackson@ximian.com>
7986
7987         * TextBoxBase.cs: We move the caret with the split now, so we
7988         don't need to explicitly move the caret after splitting.  This
7989         fixes the caret bumping down an extra line on Enter.
7990
7991 2007-01-02  Miguel de Icaza  <miguel@novell.com>
7992
7993         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
7994         2.72). 
7995
7996         * ScrollableControl.cs: Add Scroll event.
7997
7998 2007-01-02  Mike Kestner  <mkestner@novell.com>
7999
8000         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
8001         to fix all hdr height padding codepaths.  Fixes #80207.
8002
8003 2007-01-02  Chris Toshok  <toshok@ximian.com>
8004
8005         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
8006         setting it to the Control defaults anyway, and it being after the
8007         Dock set was screwing up layout.
8008         (set_Dock): don't short circuit out of setting base.Dock.  Also,
8009         no need to call UpdateStatusBar here, as it'll be re-layed out if
8010         it needs to be.
8011
8012 2007-01-02  Mike Kestner  <mkestner@novell.com>
8013
8014         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
8015         to header height for width == -1. Fixes the rest of #80207.
8016
8017 2007-01-02  Mike Kestner  <mkestner@novell.com>
8018
8019         * ListView.cs: rework the mouse event forwarding everaldo added
8020         to translate the coordinates to the parent control not
8021         raise the parent events until after we've done our work. Hover
8022         needs more work, in the case where HoverSelection is on, because
8023         the item control receives more than one MouseHover per Enter
8024         event, so we need to ensure only the "first" hover gets forwarded.
8025         Opening a minor bug for that.
8026
8027 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
8028
8029         * CheckedListBox.cs: Fixed SelectionMode to match MS.
8030         * ListControl.cs: Implemented AllowSelection property. Removed extra
8031         tabs.
8032         * ListBox.cs: Implemented AllowSelection property.
8033
8034 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
8035
8036         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
8037         SelectedItem, it prevent for errors when you must disable item
8038         before perform click. Fixes #80409.
8039
8040 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
8041
8042         * MenuAPI.cs: Prevent second level and beyond submenus to close
8043         until first level when move out side of popup.
8044         
8045 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
8046
8047         * MenuAPI.cs:
8048         - Down submenu positin in three pixels.
8049         - Closes sub menu when mouse leaves from menu. Fixes #80402.
8050
8051 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
8052
8053         * ThemeWin32Classic.cs:
8054         - Fix popup menu size adding one pixel on the top.
8055         - Down menu item border from two to one to mimic Win32.
8056         - Some source identation fixes. 
8057
8058 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
8059
8060         * ThemeWin32Classic.cs: Use float numbers to calculate size and
8061         position of menu arrows, it fix wrong arrow size.
8062
8063 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
8064
8065         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
8066         instead of line, it simplify draw operation and fix it using 3D
8067         borders to mimic Win32.
8068
8069 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
8070
8071         * StatusStrip.cs: Add implementation of the sizing grip.
8072
8073         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
8074         StatusStrip rendering.
8075
8076 2006-12-31  Chris Toshok  <toshok@ximian.com>
8077
8078         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
8079         override the layout style (anchor/dock) of the control.  assign to
8080         Dock instead.  Fixes bug #80416.
8081
8082         * ToolStrip.cs: same.
8083
8084 2006-12-31  Andreia Gaita  <avidigal@novell.com>
8085
8086         * ContainerControl.cs: Use ContainerSelected flag to check if 
8087         a Container is directly selected, or if Select is called on a 
8088         non-container. If a container is directly selected, focus events 
8089         should not be raised.
8090         Apply #80411 patch to throw exception on set_ActiveControl if 
8091         control is the same as the current one.
8092         
8093         * Control.cs: Use ContainerSelected flag (see above).
8094         Add invalidation check to raise event but not invalidate if 
8095         dimensions are 0.       
8096         Apply #80411 patch.
8097         
8098
8099 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
8100
8101         * MenuAPI.cs: After click, dont close popup menu when menu is
8102         ContextMenu. Fixes #80399.
8103
8104 2006-12-30  Chris Toshok  <toshok@ximian.com>
8105
8106         * ContainerControl.cs: make sure we throw the exception if the
8107         container control doesn't contain the control we're setting
8108         ActiveControl to.
8109
8110 2006-12-30  Chris Toshok  <toshok@ximian.com>
8111
8112         * Control.cs (SetTopLevel): fix the exception raised by
8113         SetTopLevel for child controls.
8114         (set_Anchor): call UpdateDistances when setting the anchor type.
8115         This fixes bug #80336.
8116
8117 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
8118
8119         * Theme.cs: For now, revert back to 8pt font.
8120
8121 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
8122
8123         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
8124         Fixes #80395.
8125
8126 2006-12-29  Chris Toshok  <toshok@ximian.com>
8127
8128         * Control.cs: reorder the code in OnResize to give the same event
8129         ordering as MS.
8130
8131 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8132
8133         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
8134         TileHorizontally and TileVertically.
8135         
8136 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
8137
8138         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
8139         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
8140         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
8141         Corrected copyright and email adress.
8142
8143 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
8144
8145         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
8146         of Exception in FullPath property if no TreeView is associated with
8147         the TreeNode.
8148
8149 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
8150
8151         * Theme.cs: Marked default_font as private, and initialize it in ctor
8152         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
8153         on 2.0 profile.
8154         * ThemeGtk.cs: Removed default_font intialization.
8155         * ThemeWin32Classic.cs: Removed default_font initialization.
8156
8157 2006-12-28  Chris Toshok  <toshok@ximian.com>
8158
8159         * Control.cs: fix a couple of place where we were creating handles
8160         more aggressively than we should be.  Fixes ControlRefresh unit
8161         tests.
8162
8163 2006-12-28  Chris Toshok  <toshok@ximian.com>
8164
8165         * Control.cs: contrary to what the comment said, Control.Dock does
8166         not supercede Control.Anchor - the last one you assign to decides
8167         the layout behavior.  so we need to keep track of which was the
8168         last set.  Also, fix some of the affected property arguments in
8169         PerformLayout calls, and remove an redundant parent.PerformLayout
8170         call in OnResized.
8171
8172         Add a VisibleInternal property, which returns is_visible.  We
8173         can/should get rid of all the usage of this field elsewhere.
8174
8175 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8176         
8177         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
8178         control style, not DoubleBuffer. Added UseDoubleBuffering property
8179         that indicates whether doublebuffering is enabled and supported.
8180         (comment from and code based on Gert Driesen's patch in #80324).
8181         Fixes #80324.
8182
8183 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8184         
8185         * Control.cs: Fixed a NRE.
8186
8187 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8188
8189         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
8190         for 2.0.
8191
8192 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8193
8194         * Control.cs: Rewrote double buffering, now a seperate
8195         class handles all the buffering, no Graphics is disposed of
8196         until the painting is finished (earlier implementation 
8197         would crash if the control was resized in the OnPaint, 
8198         since it would cause the double buffer to be recreated
8199         and the old one disposed), a separate Graphics is 
8200         created for every paint (MS behaviour and anyways the state
8201         of the Graphics would have to be saved and restored otherwise)
8202         
8203         * XplatUIDriver.cs: 
8204         * XplatUIX11.cs:
8205         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
8206         so that we can get the graphics for the back buffer without
8207         having to create a new one and remove the offscreen_dc parameter
8208         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
8209         
8210 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8211
8212         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
8213         Also make virtual all the key-related methods.
8214
8215         * ListViewItem.cs: Make virtual the key related methods for
8216         ListViewSubItemCollection.
8217
8218 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8219
8220         * ListView.cs:
8221         * ListViewItem.cs:
8222         * ThemeWin32Classic.cs:
8223         * Theme.cs: Initial support for Tile view in ListView,
8224         as well as the implementation of the required bits for it (Item
8225         and Subitem).
8226
8227 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8228
8229         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
8230         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
8231         Provide useful exception messages.
8232
8233 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8234
8235         * TrackBar.cs: Remove a warning.
8236         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
8237         when used by DateTimePicker, fixes #80287. This also requires that 
8238         MonthCalendar implements it's own drawing for the yearly updown control,
8239         otherwise the Capture tracking would be too complicated. Removed the Click 
8240         and DoubleClick events (according to comments they were hiding the base class
8241         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
8242         raise these events, not that they cannot be raised. It is possible to raise 
8243         them by calling OnClick and OnDoubleClick). Added two internal fields in 
8244         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
8245         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
8246         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
8247         event, no longer needed.
8248         
8249 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8250
8251         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
8252         true if new value differs from current value.
8253
8254 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8255
8256         * Control.cs: ControlCollection.Count must be public. Fixed build of
8257         unit tests.
8258
8259 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8260
8261         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
8262
8263 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
8264
8265         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
8266
8267 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
8268
8269         * Control.cs: Invalidates control including when Width and Height is 
8270         equal zero or is not visible, only Paint event must be care about 
8271         this. Fixes #79913.
8272
8273 2006-12-26  Chris Toshok  <toshok@ximian.com>
8274
8275         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
8276         more corcompare work.
8277
8278         * DataGridView.cs: fix compiler warning.
8279
8280         * ColumnHeader.cs: some corcompare work, and also take the
8281         opportunity to make the internal fields private.
8282
8283         * ListView.cs: fix the fallout from the above field change.
8284
8285 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
8286
8287         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
8288         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
8289         ToolStripTextBox.cs: Fixes to events and corcompare.
8290
8291 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
8292
8293         * ListView.cs: Call owner.OnMousexx event to propagate events from
8294         item to ListView. Fixes #80367.
8295
8296 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
8297
8298         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
8299         if value is less than one. ItemHeight should not be set to a value
8300         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
8301         Removed extra tabs.
8302
8303 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
8304
8305         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
8306         * ToolStripStatusLabel.cs: Add Spring for Moma.
8307
8308 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
8309
8310         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
8311         Fixed code formatting. Removed debug code.
8312         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
8313
8314 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
8315
8316         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
8317         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
8318         ArgumentOutOfRangeException if ColumnCount is negative. In 
8319         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
8320         less than 4 or higher than 32768.
8321         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
8322         Fixed FormatProvider to return CurrentCulture unless explicitly set.
8323         Fixed IsFormatProviderDefault to return true if FormatProvider has
8324         not been explicitly set.
8325
8326 2006-12-25  Chris Toshok  <toshok@ximian.com>
8327
8328         * Application.cs: add a couple of 2.0 events.
8329
8330 2006-12-25  Chris Toshok  <toshok@ximian.com>
8331
8332         * Control.cs: fix compiler warning.
8333
8334         * AxHost.cs: corcompare fixes.
8335
8336         * ApplicationContext.cs: corcompare fixes.
8337
8338 2006-12-25  Chris Toshok  <toshok@ximian.com>
8339
8340         * Control.cs: only update dist_right/dist_bottom if the
8341         width/height is > 0.  this fixes anchored controls being resized
8342         smaller until they disappear and then resized larger again.
8343
8344 2006-12-25  Chris Toshok  <toshok@ximian.com>
8345
8346         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
8347         since they're nothing more than X/Left and Y/Top, respectively.
8348
8349         Also, move back to a per-control Bitmap/Graphics for
8350         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
8351         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
8352         Height.
8353
8354 2006-12-25  Miguel de Icaza  <miguel@novell.com>
8355
8356         * MessageBox.cs: Implemented overload that takes a new "bool
8357         displayHelpButton" by adding a new internal field "show_help".
8358         When clicked this will raise the HelpRequested on the owner or the
8359         main form. 
8360
8361         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
8362         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
8363
8364         * ListView.cs: Add support ColumnWidthChanged and
8365         ColumnWidthChanging. 
8366
8367         Add support for ColumnReordered event.
8368         (ReorderColumn): Add NET_2_0 specific support for cancelling the
8369         reorder.
8370
8371         Very nice codebase!
8372
8373         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
8374
8375         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
8376
8377 2006-12-24  Chris Toshok  <toshok@ximian.com>
8378
8379         * GridTablesFactory.cs: 2.0 corcompare work.
8380
8381         * ToolStripContainer.cs: add "override" to
8382         ContextMenuStripChanged, and remove the local event object.
8383
8384         * ToolStripDropDown.cs: same with a couple properties.
8385
8386         * ToolStripPanel.cs: same with AutoSizeChanged event.
8387
8388         * TextBoxBase.cs: add "override" to AutoSizeChanged.
8389
8390         * Form.cs: add the remaining 2.0 events, and do some corcompare
8391         attribute work.
8392
8393         * DateTimePicker.cs: add "new" to padding.
8394
8395         * ButtonBase.cs: use Control's use_compatible_text_rendering.
8396
8397         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
8398
8399         * DataGridView.cs: PaddingChanged is overridden.
8400
8401 2006-12-24  Chris Toshok  <toshok@ximian.com>
8402
8403         * Control.cs: corecompare work here too.
8404
8405         * DataGridViewElement.cs, DataGridView.cs,
8406         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
8407         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
8408         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
8409         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
8410         work.
8411
8412 2006-12-24  Miguel de Icaza  <miguel@novell.com>
8413
8414         * Control.cs: Switched the error message on the console for a
8415         todo.  A review of the code will have to cope with this anyways
8416         (since its a large feature, it is in our radar) and it was
8417         producing too much output when running PDN.
8418
8419         * ToolStripComboBox.cs: Set the text when the SelectedIndex
8420         changes.  Applications depend on this (PDN 2.72)
8421
8422 2006-12-23  Chris Toshok  <toshok@ximian.com>
8423
8424         * TableLayoutSettings.cs: finish up the corcompare work for this
8425         class.
8426
8427 2006-12-23  Chris Toshok  <toshok@ximian.com>
8428
8429         * Control.cs: make SetImplicitBounds internal, do some futzing
8430         with LayoutEngine so that it's available in 1.1, and remove the
8431         entire duplicated code mess from PerformLayout.  Use
8432         System.Windows.Forms.Layout.DefaultLayout instead.
8433
8434         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
8435
8436 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
8437
8438         * Form.cs: Add MainMenuStrip property.
8439
8440 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
8441
8442         * Control.cs: Add ContextMenuStrip property and implementation.
8443         Fix ContextMenu implementation to show menu centered on control when
8444         activated using the keyboard instead of showing at screen (0,0).
8445
8446         * ToolStripDropDown.cs: Fix needed overload of Show ().
8447
8448 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
8449
8450         * Menu.cs: Name property added for 2.0 profile.
8451         
8452 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
8453
8454         * Menu.cs: Update information about FindMenuItem, method to be
8455         implemented soon.
8456
8457 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
8458
8459         * MenuAPI.cs: When deselect items deselect also selected subitems.
8460         
8461 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
8462
8463         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
8464         FindSubItemByCoord to found itens that is not active, also an
8465         cheking added to FindSubItemByCoord to search for items only 
8466         in visible popup windows. Fixes #80274.
8467
8468 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
8469
8470         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
8471         internal property, it be care about change ExStyle. 
8472
8473 2006-12-22  Andreia Gaita  <avidigal@novell.com>
8474
8475         * ContainerControl.cs: set activeControl for parent forms up the 
8476         tree when the new activecontrol is a container.
8477         When validating the active control, if it is a container, also
8478         raise up the validation for it's active control. Fixes #80280
8479         
8480         * Control.cs: Add internal property flag and check to prevent
8481         Focus events from getting raised when Select() is called for
8482         a ContainerControl. There are still too many focus events being
8483         raised at the moment though.
8484         Cleaned up the code a bit.
8485
8486 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8487
8488         * Control.cs: Added all missing 2.0 events.and
8489         fixed a couple of corcompare issues.
8490         * TrackBar.cs: Implemented missing 2.0 bits.
8491         * MonthCalendar.cs, 
8492         * DateTimePicker.cs, 
8493         * MdiClient.cs: Fixed some corcompare issues.
8494
8495 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
8496
8497         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
8498         SplitterPanel.cs: corecompare work.
8499
8500 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
8501
8502         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
8503         Clean up warnings for BackgroundImageChanged and PaddingChanged
8504         events now that they are implemented in Control.cs.
8505
8506 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
8507
8508         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
8509         
8510         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
8511         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
8512         of TableLayoutPanel and supporting cast.
8513
8514 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8515
8516         * XplatUIWin32.cs: 
8517         - GrabWindow now confines the mouse pointer to the confine window.
8518         - Added Win32ClipCursor and Win32GetClipCursor.
8519
8520         * Control.cs: 
8521         - Added CaptureWithConfine to be able to capture and confine 
8522         mouse pointer.
8523         
8524         * InternalWindowManager.cs: 
8525         - Call CaptureWithConfine instead of Capture if we're an
8526         MdiChild (fixes #79982).
8527
8528 2006-12-21  Chris Toshok  <toshok@ximian.com>
8529
8530         * DataGrid.cs: guard against the initial state of selection, where
8531         selection_start == -1.  make sure we only select from index >= 0.
8532         Fixes bug #80291.
8533
8534 2006-12-21  Chris Toshok  <toshok@ximian.com>
8535
8536         * Control.cs: we don't need to be so draconian with
8537         UpdateDistances, and we thusly don't need to call it before
8538         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
8539
8540 2006-12-21  Daniel Nauck  <dna@mono-project.de>
8541
8542         * ComboBox.cs,
8543         TextBox.cs: Implemented AutoComplete properties.
8544
8545 2006-12-20  Chris Toshok  <toshok@ximian.com>
8546
8547         * DataGridView*.cs: some corecompare work.
8548
8549 2006-12-20  Jackson Harper  <jackson@ximian.com>
8550
8551         * XplatUIX11.cs: We need to hide the caret when deleting it,
8552         otherwise you get carets left lying around everywhere.
8553         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
8554         prevents getting some weird half drawn caret tracers when
8555         scrolling.
8556         * TextControl.cs: Attempt to reduce the number of times we need to
8557         recreate the caret.
8558
8559 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
8560
8561         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
8562
8563 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8564
8565         * DateTimePicker.cs:
8566         - Implemented missing 2.0 bits.
8567         - Changed some default values to match MS.
8568         
8569 2006-12-20  Jackson Harper  <jackson@ximian.com>
8570
8571         * TextBoxBase.cs: When changing the font across the document we
8572         can't recalculate after changing each line, since that will cahnge
8573         the line count.
8574         - PreferredHeight is a little different than i thought.
8575         - When backspacing, move the caret before we do the actual char
8576         delete, because when that delete crosses a wrap boundary the
8577         positional information will change.
8578
8579 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8580
8581         * Control.cs: Added some missing 2.0 bits: 
8582         BackgroundImageLayout, BackgroundImageLayoutChanged, 
8583         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
8584         add IBindableComponent and IDropTarget implementation.
8585         
8586         * MonthCalendar.cs: 
8587         - Added all missing 2.0 features:
8588         BackgroundImageLayout, RightToLeftLayout, 
8589         OnHandleDestroyed, RightToLeftLayoutChanged, 
8590         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
8591         PaddingChanged.
8592         - Rewrote all the BoldDate code, it was completely broken.
8593         - Fixed all the tests (the tests can now be re-enabled, the
8594         problems were not with the tests, but with the control, it was
8595         mostly broken).
8596         
8597         * DateTimePicker.cs: Changed the location where the 
8598         MonthCalendar is shown.
8599         
8600 2006-12-19  Chris Toshok  <toshok@ximian.com>
8601
8602         * DataGridView.cs: add IDropTarget implementation.
8603
8604         * ToolStripPanel.cs: add IDropTarget implementation.
8605
8606 2006-12-19  Jackson Harper  <jackson@ximian.com>
8607
8608         * TextControl.cs: soft now means something different than what it
8609         used to mean, we want to move the caret regardless of whether or
8610         not this break was soft (would we really have wanted the caret
8611         to not move with the break in the old context?)
8612         * TreeView.cs: Make sure we factor in the vert scrollbar when
8613         calculating the horizontal scrollbar's maximum.
8614
8615 2006-12-19  Andreia Gaita  <avidigal@novell.org>
8616
8617         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
8618         check for keywords in alternate casing, close bug #80049.
8619
8620 2006-12-19  Chris Toshok  <toshok@ximian.com>
8621
8622         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
8623         methods (which all do nothing).
8624
8625         * IDropTarget.cs: add the 4 missing methods.
8626
8627 2006-12-19  Chris Toshok  <toshok@ximian.com>
8628
8629         * TableLayoutRowStyleCollection.cs: corcompare work.
8630         
8631         * TableLayoutSettings.cs: same.
8632
8633         * TableLayoutStyle.cs: same.
8634
8635         * TableLayoutColumnStyleCollection.cs: same.
8636
8637 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
8638
8639         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
8640         TableLayoutPanel I've had in my local tree for way too long.
8641
8642 2006-12-19  Miguel de Icaza  <miguel@novell.com>
8643
8644         * TableLayoutSettings.cs: Finish the public API (still needs all
8645         the logic to update on changes). 
8646
8647         * TableLayoutPanelCellPosition.cs: new file.
8648         
8649         * TableLayoutRowStyleCollection.cs,
8650         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
8651         TableLayoutSettings.cs: Track the final 2.0 table api.
8652
8653 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8654
8655         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
8656         and Image List 2.0 members for ColummnHeader.
8657         * ListView.cs: Add key-related 2.0 methods for
8658         ColumnHeaderCollection.
8659
8660 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
8661
8662         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
8663         ArgumentNullException if items argument is null. Ignore null item in
8664         arrays. Removed extra tabs.
8665
8666 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
8667
8668         * MonthCalendar.cs: Fixed InvalidCastException.
8669
8670 2006-12-19  Jackson Harper  <jackson@ximian.com>
8671
8672         * TextControl.cs: Don't increment the position here.
8673         - When calculating char positions only add in the line break size
8674         for hard line breaks.
8675
8676 2006-12-19  Andreia Gaita  <avidigal@novell.org>
8677
8678         * SendKeys.cs: Changed some things to match ms.net behaviour
8679         when parsing shifted capital letters.
8680         
8681         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
8682         Add window handle as parameter to SendInput. X11 needs the 
8683         window handle, and the handle being passed      to it in the keys 
8684         queue is the active control handle (which windows needs), not 
8685         the window handle.
8686         
8687         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
8688         to support SendKeys on X.       
8689         
8690         * X11Keyboard: Implement helper method to lookup a linux keycode
8691         given the virtual keycode. Added table of keycode-2-virtualkey
8692         values to support this.
8693
8694 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8695
8696         * ListView.cs: Add support for SelectedIndexCollection
8697         and SelectedItemCollection 2.0 methods. Implement support
8698         for ImageKey too.
8699         * ListViewItem.cs: Add support for ListViewSubItemCollection
8700         2.0 methods. Also, fix an incorrect behavior of AddRange method
8701         (it shouldn't call Clear).
8702         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
8703
8704 2006-12-19  Jackson Harper  <jackson@ximian.com>
8705
8706         * RichTextBox.cs: 
8707         * TextBoxBase.cs: New args for FormatText
8708         * TextControl.cs: Rewrote the main drawing method, this version
8709         feels a little easier to understand and debug to me.  Hopefully it
8710         does to others also
8711         - Fix FormatText to OR in the new formating values.  Added
8712         FormatSpecified param, basically this works in the same way as
8713         BoundsSpecified in Control.
8714         - Set the caret properties when the caret is positioned.
8715         - When wrapping text make sure that we calculate the width of the
8716         last character
8717         - when calculating alignments we might have wrapped down to the
8718         next line, so don't search for an individual tag, search for the
8719         end of the line
8720         - We need to invalidate the selection area when we replace the
8721         selection.
8722         
8723 2006-12-19  Daniel Nauck  <dna@mono-project.de>
8724
8725         * Application.cs: add Restart () 2.0 support
8726
8727 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
8728
8729         * MenuItem.cs: Invalidate menu item rectangle after change Enable
8730         property. Fixes #80268.
8731         
8732 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
8733
8734         * MenuAPI.cs: Dont trigger select event when closes top menu
8735         item. Fixes #80270.
8736
8737 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
8738
8739         * MenuAPI.cs: When you click on menuitem only trigger onselect
8740         event for top menu itens. Fixes #80271.
8741         
8742 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8743
8744         * MdiWindowManager.cs: Make IconicBounds depend on
8745         the bottom of MdiClient, not the top (fixes #80267)
8746         
8747 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8748
8749         * MdiClient.cs: Added missing 2.0 attribute
8750
8751 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8752
8753         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
8754         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
8755
8756 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
8757
8758         * MenuAPI.cs: Fix click when menuitem is not popup,
8759         this regression was caused by last commit (#80272).
8760
8761 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
8762
8763         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
8764         fire click event or close menu. Fixes #80272.
8765
8766 2006-12-17  Daniel Nauck  <dna@mono-project.de>
8767
8768         * ListViewHitTestInfo.cs: add
8769
8770 2006-12-17  Daniel Nauck  <dna@mono-project.de>
8771
8772         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
8773         * FlatButtonAppearance.cs: add
8774         * DockingAttribute.cs: add
8775
8776 2006-12-17  Chris Toshok  <toshok@ximian.com>
8777
8778         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
8779         and rebind our columns when it does - this way, if you make
8780         changes to the DataTable (or set the Table attribute on a DataView
8781         after setting it as the DataGrid's DataSource, the changes are
8782         made visible.)  Fixes bug #80107.
8783
8784 2006-12-17  Daniel Nauck  <dna@mono-project.de>
8785
8786         * ListViewGroup.cs: add internal Location property for layouting.
8787         * Theme.cs: add abstract ListViewGroupHeight function.
8788         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
8789
8790 2006-12-16  Andreia Gaita  <avidigal@novell.com>
8791
8792         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
8793         Added reset of selected index to 0 when adding first tab page.
8794         Fixes #80264
8795         
8796         * NumericUpDown.cs: Fix NET_2_0 check
8797
8798 2006-12-16  Daniel Nauck  <dna@mono-project.de>
8799
8800         * ListViewGroup.cs: fixed DefaultValueAttribute value
8801
8802 2006-12-16  Daniel Nauck  <dna@mono-project.de>
8803
8804         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
8805
8806 2006-12-15  Miguel de Icaza  <miguel@novell.com>
8807
8808         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
8809         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
8810         ScrollableControl.cs: Add a handful of methods that are
8811         overwritten in 2.0 
8812
8813 2006-12-15  Chris Toshok  <toshok@ximian.com>
8814
8815         * XplatUIWin32.cs: initial implementation of the Reversible
8816         drawing functions.  there are some problems.  DrawReversibleFrame
8817         doesn't seem to work at all for Dashed FrameStyle, and in the
8818         Thick case there are drawing errors at the corners (we probably
8819         need to bind Rectangle instead of doing moveto/lineto's.)
8820
8821 2006-12-16  Andreia Gaita  <avidigal@novell.com>
8822         
8823         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
8824         to send blocks of key messages. Send accumulates keys to send with Flush, 
8825         while SendWait sends all keys immediately.
8826                 
8827         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
8828         XplatUIX11.cs,  XplatUIX11-new.cs:
8829         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
8830         to Win32 SendInput.
8831         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
8832         
8833         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
8834         testing for ms.net on this class is very tricky, as the tests run too fast 
8835         to allow the hook to release, essentially freezing the keyboard and the 
8836         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
8837         category :p
8838
8839 2006-12-16  Daniel Nauck  <dna@mono-project.de>
8840
8841         * Padding.cs: fixed serialization compability to MS ("_var" field names),
8842                         added missing attributes.
8843  
8844 2006-12-15  Daniel Nauck  <dna@mono-project.de>
8845
8846         * ListViewGroup.cs: Added missing attributes.
8847         * ListViewGroupCollection.cs: Added missing attributes.
8848
8849 2006-12-15  Daniel Nauck  <dna@mono-project.de>
8850
8851         * ListViewItem.cs: fixed ListViewSubItem text property.
8852
8853 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8854         
8855         * Control.cs: Added missing 2.0 attributes
8856         
8857 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8858         
8859         * MdiClient.cs: Added missing 2.0 attribute.
8860         * MonthCalendar.cs: Added some missing 2.0 attributes 
8861         and properties.
8862         
8863 2006-12-15  Daniel Nauck  <dna@mono-project.de>
8864
8865         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
8866
8867 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
8868
8869         * MainMenu.cs: Add the new 2.0 constructor to help out people
8870         using the MainMenu in VS2005.
8871
8872 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8873         
8874         * MdiChildContext.cs: Removed it, no longer used.
8875         * MdiClient.cs: Added missing 2.0 attributes.
8876         
8877 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8878         
8879         * InternalWindowManager.cs: Fix a NullRef with previous 
8880         changes for toolwindows.
8881         
8882 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8883
8884         * Control.cs: 
8885         - Added AfterTopMostControl to allow for certain controls 
8886         to always stay on top when normal controls are brought to 
8887         front.
8888         
8889         * XplatUIWin32.cs: 
8890         - (DrawInversibleRectangle): Get window rectangle from Win32 
8891         in stead of from control, since Win32 doesn't calculate
8892         screen coords correctly from control's Location if it 
8893         have docked siblings.
8894         
8895         * MdiWindowManager.cs:
8896         - Correct the control menu popup location when clicked on
8897         the maximized form icon. (fixes #80223.1)
8898         - Don't show moving rectangle if mouse hasn't moved from
8899         the original clicked point.
8900         - Removed FormGotFocus handler (not used).
8901         - Calculate the control buttons location from the main
8902         window's size and not client size (fixes #79770).
8903         - Form is now closed when the form icon is double-clicked
8904         (fixes #79775). 
8905         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
8906         
8907         * InternalWindowManager.cs:
8908         - Moved some MDI-only methods to MdiWindowManager.
8909         - Removed unused properties and methods.
8910         - Unified method naming for methods handling wm messages.
8911         - Moved all message handling to seperate methods for
8912         each message.
8913         
8914         * ThemeWin32Classic.cs:
8915         - DrawManagedWindowDecorations now draws the title bar 
8916         with a gradient brush.
8917         - Add a CPDrawButtonInternal that allows us to specify
8918         light, normal and dark colors for the buttons (control 
8919         buttons for MDI children were drawn with the same light
8920         color as the background, therefore loosing the 3D effect).
8921         
8922         * SizeGrip.cs:
8923         - Add a CapturedControl property that is used to 
8924         determine the control to resize (defaults to parent). 
8925         Needed for MdiClient, since its SizeGrip's parent is
8926         MdiClient, but the control to resize is the main form.
8927         
8928         * MdiClient.cs:
8929         - Set SizeGrip's CapturedControl to the main form in order
8930         to resize the main form and not the MdiClient.
8931         - Override AfterTopMostControl to leave the scrollbars 
8932         always on top.
8933
8934 2006-12-15  Daniel Nauck  <dna@mono-project.de>
8935
8936         * ListView.cs: fixed ListViewItemCollection AddRange and
8937                         implemented ListViewItemCollection AddRange 2.0 support.
8938
8939 2006-12-15  Daniel Nauck  <dna@mono-project.de>
8940
8941         * ListViewGroup.cs: Add.
8942         * ListViewGroupCollection.cs: Add
8943         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
8944         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
8945                                 stub for ImageKey 2.0 support.
8946
8947 2006-12-14  Mike Kestner  <mkestner@novell.com>
8948
8949         * ListView.cs: add text padding to the autocalculation for columns
8950         of width -2.  Fixes #80207.
8951  
8952 2006-12-14  Mike Kestner  <mkestner@novell.com>
8953
8954         * ListView.cs: add some index guarding for partial row navigation 
8955         logic.  Fixes #80250.
8956
8957 2006-12-14  Mike Kestner  <mkestner@novell.com>
8958
8959         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
8960         are added or inserted to the collection.  Fixes #81099.
8961
8962 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
8963
8964         * MenuAPI.cs: Closes menu when right click out side of popup
8965         it fix problem in ContextMenu and MainMenu. Fixes #80252.
8966
8967 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8968
8969         * ListViewItem.cs: Fix dumb error.
8970
8971         * ListView.cs: Add Find and ContainsKey methods in 
8972         ListViewItemCollection, and also return true for IsReadOnly
8973         and IsFixedSize (changes for 2.0). 
8974
8975 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
8976
8977         * Control.cs: Allow Region to be set to null.
8978
8979 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8980
8981         * MdiWindowManager.cs: Remove unused (commented out) code.
8982         * Form.cs: When the MdiChild is maximized, the form needs 
8983         WM_NCMOUSELEAVE, so request it.
8984         * InternalWindowManager.cs: 
8985         - Added tooltips to control buttons.
8986         - Removed duplicated control button handling code.
8987         - Removed unused (commented out) code.
8988         
8989 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
8990
8991         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
8992         was used because we must set cursor without trigger ChangeCursor event
8993         and without change Cursor control property. Fixes #79963.
8994
8995 2006-12-12  Andreia Gaita  <avidigal@novell.com>
8996         
8997         * Control.cs: Check if Region setter value is null, and ignore
8998
8999 2006-12-12  Jackson Harper  <jackson@ximian.com>
9000
9001         * TextControl.cs: We were almost always drawing one more line then
9002         needed, since the GetLineByPixel will return the last line found
9003         at that pixel. In most cases though, we were invalidating up to
9004         the junction between two lines.
9005         - Improve debug code.
9006
9007 2006-12-12  Chris Toshok  <toshok@ximian.com>
9008
9009         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
9010         and FillReversibleRectangle.
9011
9012         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
9013         and FillReversibleRectangle.
9014
9015         * XplatUIWin32.cs: add stubs which do nothing for
9016         DrawReversibleFrame, DrawReversibleLine, and
9017         FillReversibleRectangle.
9018
9019         * XplatUIOSX.cs: add stubs which raise NIE for
9020         DrawReversibleFrame, DrawReversibleLine, and
9021         FillReversibleRectangle.
9022
9023         * XplatUIX11.cs: add working implementation for
9024         DrawReversibleFrame, DrawReversibleLine, and
9025         FillReversibleRectangle.
9026         
9027         * ControlPaint.cs: implement DrawReversibleFrame,
9028         DrawReversibleLine, and FillReversibleRectangle, by calling into
9029         the appropriate XplatUI method.
9030
9031 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9032
9033         * Form.cs: Make MdiClient have the focus even if it's
9034         not selectable, since it should receive WM_KEY* and WM_MOUSE 
9035         messages. Fixes #79907.
9036         
9037 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9038
9039         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
9040         queried after the window is created.
9041         
9042         * XplatUIX11.cs: Added SendParentNotify to implement 
9043         WM_PARENTNOTIFY logic. Fixes #79965.
9044         
9045         * Control.cs: Added MakeParam.
9046         
9047 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9048
9049         * MdiClient.cs: Resume Layout before setting window
9050         states (fixes #80201).
9051
9052 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9053
9054         * MenuAPI.cs: Deselect a menu item after performing
9055         the click (fixes #80197).
9056
9057 2006-12-11  Jackson Harper  <jackson@ximian.com>
9058
9059         * TextBoxBase.cs: We need to cap this value, since Maximum -
9060         ViewPortHeight can be less than zero.
9061         - Only do selection with the left mouse button.
9062         * TextBox.cs: Don't tell the world that we have a context menu.
9063         * Control.cs: New method so that we can control whether or not the
9064         context menu is visible outside MWF.
9065
9066 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
9067
9068         * ToolBarButton.cs: Fix text positon. 
9069
9070 2006-12-11  Miguel de Icaza  <miguel@novell.com>
9071
9072         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
9073
9074         * Control.cs (DoubleBuffered): Add implementation.
9075
9076         * Application.cs (OpenForms): Add.
9077
9078 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
9079
9080         * Form.cs: Use opacity instead of Opactiy to determine if we need
9081         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
9082
9083 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
9084
9085         * Control.cs: Fix NRE if Control.Site was set to null.
9086
9087 2006-12-11  Chris Toshok  <toshok@ximian.com>
9088
9089         * Control.cs: ControlCollection.Remove should return if the arg is
9090         null, and ControlCollection.SetChildIndex should raise a ANE.
9091
9092 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
9093
9094         * Control.cs: Verify value set for Dock property. Code formatting
9095         updates.
9096
9097 2006-12-11  Jackson Harper  <jackson@ximian.com>
9098
9099         * TextControl.cs: Draw the caret and the selection when a flag is
9100         set on the owner.
9101         * TextBoxBase.cs: We want to draw the caret and the selection for
9102         TextBox but not for TextBoxBase.
9103         - If the window is resized and scrolling is no longer needed (the
9104         whole doc is visible) set the scroll position to zero.
9105         - The default SelectWord (the one TextBox uses) should move the
9106         caret to the end of the word.
9107         - SelectAll moves the caret to the end of the selection.
9108         * TextBox.cs: We don't selectall on focus, we just do it when the
9109         control is created.
9110         
9111 2006-12-11  Mike Kestner  <mkestner@novell.com>
9112
9113         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
9114
9115 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9116
9117         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
9118         2.0 support.
9119         * ListViewItem.cs: Add Name 2.0 property.
9120
9121 2006-12-11  Andreia Gaita  <avidigal@novell.com>
9122
9123         * TabControl.cs: Set visibility on selected or default tab 
9124         when tabcontrol handle is created, so that it's contents
9125         actually show up (duh). Fixes #80193
9126         Don't redraw the control if there is no handle created, as
9127         the selected index might be completely invalid. Added some tests
9128         to check for this.
9129
9130 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
9131
9132         * ToolBar.cs: Uses maximun width and height of all buttons as 
9133         button rectangle when ButtonSize specified, it looks strange but
9134         is what happens in Win32. Fixes #80189.
9135
9136 2006-12-11  Jackson Harper  <jackson@ximian.com>
9137
9138         * TextControl.cs: Need to track undo levels ourself, since
9139         compound actions will mess them up.
9140
9141 2006-12-10  Andreia Gaita  <avidigal@novell.com>
9142
9143         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
9144         SelectedIndex value is changed (even if it's not valid).
9145         Reset SelectedIndex to 0 when the handle is created and if
9146         the current index is invalid.
9147         Fixes SelectdeIndex unit tests and #80128
9148
9149 2006-12-08  Chris Toshok  <toshok@ximian.com>
9150
9151         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
9152         calls EndEdit, it needs to be called before we set current_cell to
9153         its new value.  Otherwise, we end up committing the value in the
9154         textbox to the new cell as well.  Fixes bug #80160.
9155
9156 2006-12-08  Chris Toshok  <toshok@ximian.com>
9157
9158         * Form.cs (set_CancelButton): if the button's DialogResult is
9159         None, set it to Cancel.  Fixes bug 80180.
9160
9161 2006-12-08  Jackson Harper  <jackson@ximian.com>
9162
9163         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
9164         to watch ourselves when setting the canvas size and setting the
9165         scrollbar values.
9166
9167 2006-12-08  Chris Toshok  <toshok@ximian.com>
9168
9169         * DataGrid.cs: comment out the two MakeTransparent calls for the
9170         time being so people using trunk (and not 1.2.2) on windows can
9171         actually use the datagrid.  This deals with bug #80151.
9172
9173 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
9174
9175         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
9176         Graphics.DrawImage (image, int, int, int, int) overload instead
9177         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
9178         the dpi difference and was blurring images it drew.
9179         [Fixes bug #79960]
9180
9181 2006-12-08  Chris Toshok  <toshok@ximian.com>
9182
9183         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
9184         rowcnt is 0 (such as with an empty datasource), and make sure we
9185         initialize not_usedarea.Y to cells.Y, so we don't draw over the
9186         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
9187
9188 2006-12-08  Chris Toshok  <toshok@ximian.com>
9189
9190         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
9191         grid.
9192
9193 2006-12-08  Chris Toshok  <toshok@ximian.com>
9194
9195         [ Fixes bug #80167 ]
9196         
9197         * ThemeWin32Classic.cs: don't draw the image if the button's flat
9198         style is FlatStyle.System.
9199
9200         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
9201         ButtonBase.flat_style private, and switch uses of it to the public
9202         property.
9203         
9204 2006-12-08  Chris Toshok  <toshok@ximian.com>
9205
9206         [ Fixes bug #80121 ]
9207         
9208         * ThemeWin32Classic.cs: center the caption text in the datagrid
9209         when we draw it.
9210
9211         * DataGrid.cs: lessen the amount we add to the caption height from
9212         6 to 2.  6 was making it huge.
9213
9214 2006-12-08  Andreia Gaita  <avidigal@novell.com>
9215
9216         * UpDownBase: Handle MouseWheel call directly instead of capturing
9217         the inner textbox's OnMouseWheel. Fixes #80166
9218
9219 2006-12-08  Jackson Harper  <jackson@ximian.com>
9220
9221         * TextControl.cs: We need to invalidate the textbox when we empty
9222         it (how had this not been discovered before?)
9223
9224 2006-12-08  Jackson Harper  <jackson@ximian.com>
9225
9226         * TextBoxBase.cs: Reworked the mouse down code so I could get it
9227         to behave like MS, we now ignore the eventargs.Click and just
9228         track state ourself, which we were already doing anyways.
9229         - Constrain the double click handler to the double click size.
9230         
9231 2006-12-08  Chris Toshok  <toshok@ximian.com>
9232
9233         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
9234         direction if that scrollbar isn't shown.  fixes bug #80158.
9235
9236 2006-12-08  Andreia Gaita  <avidigal@novell.com>
9237
9238         * NumericUpDown.cs: Update value on getter. Fixes #79950
9239
9240 2006-12-08  Chris Toshok  <toshok@ximian.com>
9241
9242         * MenuItem.cs: add back in the event cloning code.  I didn't know
9243         how to do it in the face of the EventHandlerList work i'd done
9244         last week.  Fixes bug #80183.
9245
9246 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
9247
9248         * Control.cs: Add an invalidate to the BackgroundImage setter.
9249         [Fixes 80184]
9250
9251 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
9252
9253         * ToolStrip*: Add some small properties reported by MoMA, fix event
9254         firing and default properties based off of unit tests, and add some
9255         attributes based off of the class status page.
9256
9257 2006-12-07  Jackson Harper  <jackson@ximian.com>
9258
9259         * TextBoxBase.cs: Take HideSelection into account when determining
9260         whether or not to show the selection.
9261         * RichTextBox.cs: After inserting the RTF into the document move
9262         the cursor to the beginning of the document.
9263
9264 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
9265
9266         * Control.cs: Remove static ArrayList "controls" which maintained
9267         a reference to every control created.
9268         * Application.cs: Create a static FormCollection to maintain a reference
9269         to every form created.  Use it in places that formerly enumerated through
9270         the controls one looking for forms.
9271         * Form.cs: Add and remove self from above FormCollection.
9272
9273 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
9274
9275         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
9276           not libgdk (though it makes me wonder why I didn't have any
9277           problems)
9278
9279 2006-12-07  Chris Toshok  <toshok@ximian.com>
9280
9281         [ you had to know this was coming after that last commit...]
9282         
9283         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
9284         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
9285         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
9286         XCopyArea).
9287
9288 2006-12-07  Chris Toshok  <toshok@ximian.com>
9289
9290         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
9291         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
9292         all the behavior we need for double buffering.
9293
9294         * XplatUIDriver.cs: implement the 3 double buffer methods using a
9295         client side Bitmap, just like the old Control-based double buffer
9296         code did.  The methods are virtual, so each XplatUI driver
9297         subclass can replace the implementation to use a faster, platform
9298         specific approach.
9299
9300         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
9301         double buffer code, and clean things up a bit in the process.
9302
9303 2006-12-06  Chris Toshok  <toshok@ximian.com>
9304
9305         * Control.cs: reindent WndProc.
9306
9307 2006-12-06  Chris Toshok  <toshok@ximian.com>
9308
9309         [ I wanna be like BenM when I grow up ]
9310         
9311         * Hwnd.cs: create a single static Graphics object on the static
9312         Bitmap we create.  use this for our text measurements.
9313
9314         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
9315         This was causing us to allocate a backbuffer for every control,
9316         even when it wasn't flagged as double buffered.  Instead use the
9317         single graphics instance.  This might have implications for
9318         multithreaded applications.  If we run into problems we can switch
9319         to creating 1 Graphics per control, on the static Hwnd bitmap.
9320
9321         this change nets us a 7M savings in private dirty mappings when
9322         running FormsTest.exe.
9323
9324 2006-12-06  Chris Toshok  <toshok@ximian.com>
9325
9326         * ListView.cs: the BackgroundImage override is just to set
9327         attributes.  chain up to base.BackgroundImage.
9328
9329         * RichTextBox.cs: same.
9330
9331         * ToolBar.cs: same, but we need to also redraw the toolbar when it
9332         changes, so instead a handler for BackgroundImageChanged.
9333         
9334         * Control.cs: make background_image private.
9335
9336 2006-12-06  Chris Toshok  <toshok@ximian.com>
9337
9338         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
9339         sure we even need this assignment, but roll with it for now.
9340
9341         * Control.cs: make the cursor field private.
9342
9343 2006-12-06  Chris Toshok  <toshok@ximian.com>
9344
9345         * Form.cs: we don't need to explicitly set ImeMode to
9346         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
9347         behavior in the face of ImeMode.Inherit.
9348
9349         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
9350         change the ctor's assignment to use ImeMode instead of ime_mode.
9351
9352         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
9353         ImeModeInherit.  Only check for the parent's imemode (and return
9354         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
9355         This fixes the button unit test, which sets both ImeMode and
9356         DefaultImeMode to ImeMode.Disable.
9357
9358         also make the ime_mode field private.
9359
9360 2006-12-06  Chris Toshok  <toshok@ximian.com>
9361
9362         * Control.cs: make control_style private.
9363
9364         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
9365         setting the styles to true, then setting them to false instead of
9366         reverting to their previous values.
9367
9368         also, call SetStyle on the scrollbars instead of using
9369         control_style directly.
9370
9371 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
9372
9373         * FormCollection.cs: Implement. [2.0]
9374
9375 2006-12-06  Chris Toshok  <toshok@ximian.com>
9376
9377         * Control.cs: make tab_stop private.
9378
9379         * Label.cs: set TabStop, not tab_stop.  reformat some event
9380         add/remove methods to make them more compact.
9381
9382 2006-12-06  Chris Toshok  <toshok@ximian.com>
9383
9384         * RadioButton.cs: fix TabStop handling.
9385
9386 2006-12-06  Chris Toshok  <toshok@ximian.com>
9387
9388         * TextBox.cs: remove the explicit assignments to has_focus.
9389         Control does that.
9390
9391         * ButtonBase.cs: remove the assignment to has_focus.  Control will
9392         manage that.
9393         
9394 2006-12-06  Chris Toshok  <toshok@ximian.com>
9395
9396         * ButtonBase.cs: remove all uses of is_enabled from this code.
9397         it's always true when any of the code containing the checks is
9398         executed.
9399
9400 2006-12-06  Chris Toshok  <toshok@ximian.com>
9401
9402         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
9403         with different semantics (some are present in both 1.1 and 2.0
9404         profiles) so that we match MS's behavior in our unit tests.
9405
9406 2006-12-06  Jackson Harper  <jackson@ximian.com>
9407
9408         * TextControl.cs: Make this operation undoable.
9409         * TextBoxBase.cs: Factor the border width into the preferred
9410         height.
9411         - implement Modified as per the spec.
9412
9413 2006-12-06  Chris Toshok  <toshok@ximian.com>
9414
9415         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
9416
9417 2006-12-06  Chris Toshok  <toshok@ximian.com>
9418
9419         * Control.cs: make right_to_left and context_menu fields private.
9420
9421 2006-12-06  Chris Toshok  <toshok@ximian.com>
9422
9423         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
9424         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
9425         Control.child_controls private.  switch all uses over to
9426         Control.Controls.
9427
9428 2006-12-06  Chris Toshok  <toshok@ximian.com>
9429
9430         * System.Windows.Forms/GroupBox.cs,
9431         System.Windows.Forms/AccessibleObject.cs,
9432         System.Windows.Forms/ErrorProvider.cs,
9433         System.Windows.Forms/Control.cs,
9434         System.Windows.Forms/UpDownBase.cs,
9435         System.Windows.Forms/ScrollBar.cs,
9436         System.Windows.Forms/DateTimePicker.cs,
9437         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
9438         System.Windows.Forms/ToolTip.cs,
9439         System.Windows.Forms/RadioButton.cs,
9440         System.Windows.Forms/LinkLabel.cs,
9441         System.Windows.Forms/Splitter.cs,
9442         System.Windows.Forms/TextBoxBase.cs,
9443         System.Windows.Forms/ToolStripTextBox.cs,
9444         System.Windows.Forms/ContainerControl.cs,
9445         System.Windows.Forms/ThemeWin32Classic.cs,
9446         System.Windows.Forms/SizeGrip.cs,
9447         System.Windows.Forms/ToolStripDropDown.cs,
9448         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
9449         private.  switch all uses over to Control.Parent.
9450
9451 2006-12-06  Chris Toshok  <toshok@ximian.com>
9452
9453         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
9454         Control does this before calling emitting these events.
9455
9456         * TabControl.cs: same.
9457
9458         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
9459         Control.client_rect.
9460
9461         * ButtonBase.cs: use the ClientSize property instead of the
9462         client_size field.
9463
9464         * ScrollableControl.cs: same.
9465
9466         * Control.cs: another pass at making properties private.  also,
9467         move the initialization of tab_stop to the ctor.
9468
9469 2006-12-05  Andreia Gaita <avidigal@novell.com>
9470
9471         * TabControl.cs: Let the selected index be set freely if the 
9472         control handle is not yet created.
9473
9474 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
9475
9476         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
9477         internal until I can rewrite DefaultLayout.
9478         * ToolStrip.cs: Fix build error and some general cleaning.
9479         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
9480         Fix build errors caused by making some of Control's fields private.
9481
9482 2006-12-05  Jackson Harper  <jackson@ximian.com>
9483
9484         * TextControl.cs: Redo Insert a little so that it use IndexOf
9485         instead of Split, this prevents it from messing up on things like
9486         \n\n\n. Also more effecient since the split array doesn't need to
9487         be created.
9488         * TextBoxBase.cs: AppendText doesnt handle multiline and non
9489         multiline text differently, this is the first of many fixes that
9490         will make multiline/non-multiline the same thing as far as the
9491         TextBoxBase is concerned.
9492         - Don't split the text and insert lines, this can lose some line
9493         endings (like is the last line a soft or hard break). Instead use
9494         the new Insert.
9495         - Fix an off by one when combining all the lines in the Text
9496         getter.
9497         - Remove separate multiline handling from the Text getter/setter.
9498
9499 2006-12-05  Chris Toshok  <toshok@ximian.com>
9500
9501         * ButtonBase.cs: a few changes:
9502
9503         - don't reinitialize internal Control fields in the ctor when they
9504         have the same values as Control sets them.
9505
9506         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
9507         this before calling those methods.
9508
9509         - we don't need to call Refresh for anything.  use Invalidate
9510         instead.
9511
9512         - OnEnabledChanged doesn't need to redraw at all - Control.cs
9513         calls Refresh in its OnEnabledChanged.
9514         
9515         - several of the events we were registered for in the ctor to
9516         redraw ourselves already include calls to Invalidate in the
9517         property setters that raise the events.  remove the extra
9518         invalidation.
9519
9520         - reformat a switch statement that was 83274658 columns wide.
9521         
9522 2006-12-05  Mike Kestner  <mkestner@novell.com>
9523
9524         * ComboBox.cs: fix a unit test regression from a TextBox
9525         SelectionLength return of -1 when there's no selection.  
9526
9527 2006-12-05  Chris Toshok  <toshok@ximian.com>
9528
9529         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
9530         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
9531         cleaning up some of the internal Control fields being used by
9532         subclasses.
9533
9534 2006-12-05  Mike Kestner  <mkestner@novell.com>
9535
9536         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
9537         listbox after AddImplicit calls since it defaults to hidden. Add a 
9538         hack to preserve requested heights across DropDownStyle changes.
9539
9540 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
9541
9542         * PropertyGrid.cs: Hide FindFirstItem method from public API.
9543
9544 2006-12-05  Chris Toshok  <toshok@ximian.com>
9545
9546         * DataGridView.cs: fix compiler warnings.
9547
9548         * PrintControllerWithStatusDialog.cs: same.
9549
9550         * ToolBar.cs: same.
9551
9552         * FolderBrowserDialog.cs: same.
9553
9554         * Splitter.cs: same.
9555
9556         * DataGridViewComboBoxCell.cs: same.
9557
9558         * XplatUIWin32.cs: same.
9559
9560         * PictureBox.cs: same.
9561
9562         * Win32DnD.cs: same.
9563
9564         * PageSetupDialog.cs: same.
9565
9566         * FileDialog.cs: same.
9567
9568         * PrintDialog.cs: same.
9569
9570         * DataGridTextBoxColumn.cs: same.
9571
9572         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
9573
9574 2006-12-05  Chris Toshok  <toshok@ximian.com>
9575
9576         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
9577         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
9578         System.ComponentModel.EventHandlerList work.
9579
9580 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
9581
9582         * DrawTreeNodeEventArgs.cs: Added.
9583
9584 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9585         
9586         * InternalWindowManager.cs: Remove an unused field.
9587         
9588 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9589
9590         * InternalWindowManager.cs:
9591         - Save the point where the title bar is clicked.
9592         
9593         * MdiWindowManager.cs:
9594         - Only allow moving of the window as long as the 
9595         clicked point on the title bar does not get out of
9596         MdiClient's rectangle. Fixes #79982.
9597         
9598         * MdiClient.cs:
9599         - Added Horizontal/VerticalScrollbarVisible.
9600         - Simplified the scrollbar sizing algorithm.
9601         - Cache the difference in scrolled value in
9602         H/VBarValueChanged and move the calculation out
9603         of the for loop.
9604
9605 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9606
9607         * Control.cs: Make the Console.WriteLine in WndProc 
9608         write more info.
9609
9610 2006-12-05  Chris Toshok  <toshok@ximian.com>
9611
9612         * ToolStripManager.cs, ToolStripButton.cs,
9613         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
9614         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
9615         ToolStripSplitButton.cs, ToolStripSeparator.cs,
9616         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
9617         ToolStripProgressBar.cs, ToolStripContainer.cs,
9618         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
9619         to using System.ComponentModel.EventHandlerList.
9620
9621 2006-12-04  Chris Toshok  <toshok@ximian.com>
9622
9623         * LinkLabel.cs: fix up compiler warnings.
9624
9625         * TableLayoutSettings.cs: same.
9626
9627         * TreeView.cs: same.
9628
9629         * ToolBar.cs: same.
9630
9631         * TabControl.cs: same.
9632
9633         * RichTextBox.cs: same.
9634
9635         * ListViewItem.cs: same.
9636
9637         * PropertyGrid.cs: same.
9638
9639         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
9640
9641         * ToolTip.cs same.
9642
9643         * TextRenderer.cs: fix up compiler warnings.
9644
9645         * Label.cs: same.
9646
9647         * Form.cs: corcompare fixes.
9648
9649         * PictureBox.cs: fix up compiler warnings.
9650
9651         * ImageListStreamer.cs: same.
9652
9653         * TrackBar.cs: corcompare fix.
9654
9655         * Control.cs: fix up compiler warnings.
9656
9657         * SplitterPanel.cs: same.
9658
9659         * NumericTextBox.cs: same.
9660
9661         * ImageList.cs: same.
9662
9663         * StatusStrip.cs: same.
9664
9665         * ProgressBar.cs: corcompare fix.
9666
9667         * ToolStripButton.cs: fix up compiler warnings.
9668
9669         * ToolStripStatusLabel.cs: same.
9670
9671         * ToolStripSplitButton.cs: same.
9672
9673         * ToolStripSeparator.cs: same.
9674
9675         * ToolStripProgressBar.cs: same.
9676
9677         * ToolStripDropDownMenu.cs: same
9678
9679         * ToolStripDropDown.cs: same.
9680
9681         * ToolStripDropDownButton.cs: same.
9682
9683         * ToolStrip.cs: same.
9684
9685         * ToolStripControlHost.cs: same.
9686
9687         * ToolStripContentPanel.cs: same.
9688
9689         * ToolStripDropDown.cs: same.
9690
9691         * ToolStripContainer.cs: same.
9692
9693         * ToolStripPanel.cs: same, and add "new" where we need it to work
9694         with the new ArrangedElementCollection.
9695
9696         * ToolStripItemCollection.cs: add "new" where we need it to work
9697         with the new ArrangedElementCollection.
9698
9699 2006-12-04  Andreia Gaita <avidigal@novell.com>
9700
9701         * TabControl.cs: Fix default tab selection to after TabControl
9702         gets focus and not before. Fixes #80128
9703
9704 2006-12-04  Chris Toshok  <toshok@ximian.com>
9705
9706         * DataGridTableStyle.cs: remove the gross calling of
9707         datagrid.Refresh from here.  It's a broken idea and it doesn't
9708         work anyway.
9709
9710         * DataGrid.cs: instead, just register/unregister from the
9711         DataGridTableStyle events in CurrentTableStyle.  we play it
9712         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
9713         even though some would most likely not require it.  Fixes bug
9714         #80115 (and one portion of #80117 as a side effect).
9715
9716 2006-12-04  Chris Toshok  <toshok@ximian.com>
9717
9718         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
9719         so the textbox (if any) goes away.  Fixes bug #80117.
9720
9721 2006-12-04  Chris Toshok  <toshok@ximian.com>
9722
9723         * DataGridColumnStyle.cs: set the column's readonly property
9724         initially based on the property descriptor's IsReadOnly.  Fixes
9725         bug #80044.
9726
9727 2006-12-04  Chris Toshok  <toshok@ximian.com>
9728
9729         * ComboBox.cs: wrap the dropdown style changing work in
9730         SuspendLayout/ResumeLayout.  Fixes bug #79968.
9731
9732 2006-12-04  Jackson Harper  <jackson@ximian.com>
9733
9734         * TextBoxBase.cs: Fix off by one, since these are one-based.
9735         * TextBox.cs: Select all the text when we get focus.  The TextBox
9736         does this but the RTB does not.
9737
9738 2006-12-04  Chris Toshok  <toshok@ximian.com>
9739
9740         * DataGridTextBoxColumn.cs: remove some spew.
9741
9742         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
9743         but some part of me is saying "it shouldn't be here.."  At any
9744         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
9745         setting the value.
9746
9747 2006-12-04  Chris Toshok  <toshok@ximian.com>
9748
9749         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
9750         to reassign the propertydescriptor.
9751
9752 2006-12-04  Jackson Harper  <jackson@ximian.com>
9753
9754         * TextBoxBase.cs:
9755         * TextControl.cs: Remove some unused variables.  Maybe this will
9756         patch things up between mike and I.
9757         - don't split lines less then one char wide, if the viewport is
9758         that small text won't be visible anyways.
9759         
9760 2006-12-04  Jackson Harper  <jackson@ximian.com>
9761
9762         * TextBoxBase.cs: Default selection length is -1, need to do some
9763         more testing on windows to see when this is used for the property.
9764         - Redid the Lines [] property to that we properly remove soft line
9765         breaks
9766         - added support for preserving carriage returns
9767         -  CanUndo is not a variable like 'is undo enabled' it just returns
9768         true if there is undo operations available.
9769         - AppendText doesn't need to grab the last tag itself anymore,
9770         this happens automatically when we move the cursor.
9771         * TextControl.cs: Add CompoundActions to the undo class. This
9772         allows combining the other operations into one big option.  ie a
9773         paste will combine { delete old, insert new, move cursor }
9774         - Add InsertString undo operation
9775         - New method for deleting multiline text
9776         - Add carriage returns to lines. So we can preserve carriage
9777         returns when text is 'roundtripped'
9778
9779 2006-12-04  Chris Toshok  <toshok@ximian.com>
9780
9781         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
9782         minimum 0.  Fixes the scrollbar exception in bug #80136.
9783
9784 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9785
9786         * MdiClient.cs: 
9787         * MdiWindowManager: Removed unused fields and methods.
9788         
9789 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9790         
9791         * StatusBar.cs: Update all panels when a AutoSize=Contents
9792         panel needs updating.
9793         
9794         * StatusBarPanel.cs: Remove twidth and only use initialize.
9795         Fixes #80031.
9796                 
9797 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9798
9799         * Form.cs: When a form's MdiParent is set add it directly
9800         on top of the z-order in stead of relying on MdiClient's
9801         ActivateChild to do it. Fixes #80135.
9802         
9803         * MdiClient.cs: 
9804         - Remove original_order, mdi_child_list is already doing
9805         the same thing.
9806         - Create mdi_child_list on construction in
9807         stead of first use (avoids a few null checks).
9808
9809         * MenuItem.cs: Use an already existing list of mdi children
9810         to get the correct order of children and remove the other
9811         redundant list.
9812
9813 2006-12-04  Chris Toshok  <toshok@ximian.com>
9814
9815         * PropertyGridView.cs: cached_splitter_location is only used in
9816         !DOUBLEBUFFER code.
9817
9818         * PropertyGrid.cs: implement the ComComponentNameChanged event
9819         using Events, hoping that would fix the warning.  Looks like a
9820         compiler bug instead (#80144).
9821
9822         * PropertyManager.cs: remove unused method.
9823
9824 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
9825
9826         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
9827         include parentesis to fix expression evaluation. Fixes #79634.
9828
9829 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
9830         
9831         * MenuAPI.cs:
9832         - Changes to fix behavior in Menu control, some reported in #80097
9833         and other detected during behavior refactory like a select event
9834         problems.
9835         - Remove unneded "if's" conditions.
9836         - Created an internal to flag when popup is active in control, we need 
9837         it because in .NET you can have menu active but without popup active
9838         when you active menu using popup without visible items.
9839         - Mimic win32 behavior for Select and Popup events.  
9840         - Dont open popup menu when you dont have visible subitems.
9841         - Do nothing when click on disabled menu item.
9842         - Some small changes to follow the coding style guidelines.
9843         - Unselect menu only when another control gives focus. Fixes #80097.
9844         - Remove unused code.
9845         
9846         * MenuItem.cs: internal VisibleItems method to check if menu
9847         theres visible subitems, it will be usefull to fix some 
9848         behavior in Menu control.
9849         
9850 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
9851         
9852         * Timer.cs: Tag property for 2.0 profile.
9853         
9854 2006-12-01  Chris Toshok  <toshok@ximian.com>
9855
9856         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
9857         
9858         * Win32DnD.cs: comment out some unused fields.
9859
9860         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
9861         some unused properties/methods.
9862
9863         * XplatUIX11.cs: fix MousePosition so we override the base class's
9864         property instead of conflicting with it.
9865
9866         * PictureBox.cs: comment out some unused fields
9867
9868         * OSXStructs.cs: make some struct fields public.
9869
9870         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
9871         MousePosition so we override the base class's property instead of
9872         conflicting with it.
9873
9874         * X11Dnd.cs: comment out some unused fields
9875
9876         * X11DesktopColors.cs: fix some struct field visibility to quiet
9877         the compiler.
9878
9879         * X11Dnd.cs: remove some debug code.
9880
9881         * ThemeClearlooks.cs: comment out unused field.
9882
9883         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
9884
9885         * ThemeGtk.cs: comment out some unused pinvokes.
9886
9887         * Timer.cs: remove some unused fields.
9888
9889         * ThemeClearlooks.cs: comment out unused field.
9890
9891         * UpDownBase.cs: comment out unused field.
9892
9893         * DataObject.cs: comment out unused field.
9894
9895         * DataGridBoolColumn.cs: reomve unused field.
9896
9897         * DataGrid.cs: remove unused field.
9898
9899         * Cursor.cs: remove old ToBitmap code.
9900
9901         * ControlPaint.cs: remove unused method.
9902
9903         * ScrollBar.cs: remove unused fields.
9904
9905         * ComboBox.cs: remove unused field, and chain up to
9906         AccessibleObject ctor.
9907
9908         * ListBox.cs: remove unused field.
9909
9910         * ButtonBase.cs: wrap a couple fields in NET_2_0.
9911
9912         * GridEntry.cs: remove unused fields.
9913
9914         * Binding.cs: remove unused fields.
9915
9916         * AxHost.cs: remove unused method.
9917
9918         * ContainerControl.cs: remove unused field.
9919
9920         * ScrollableControl.cs: remove unused fields.
9921
9922 2006-12-01  Chris Toshok  <toshok@ximian.com>
9923
9924         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
9925         the Where/WhereString stuff.  it's easy enough to CWL
9926         Environment.StackTrace.
9927
9928         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
9929         unused private fields.
9930
9931 2006-12-01  Jackson Harper  <jackson@ximian.com>
9932
9933         * TextControl.cs: Do not update the view while inserting multiline
9934         text. If we update the view we might wrap lines, before entering
9935         the new lines, which causes the new line insertion calculations to
9936         be totally fubared.
9937         - Remove an old TODO
9938         - Make debug output a little nicer
9939         
9940 2006-12-01  Chris Toshok  <toshok@ximian.com>
9941
9942         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
9943
9944 2006-12-01  Chris Toshok  <toshok@ximian.com>
9945
9946         [ fix the majority of the CS0108 warnings we've been suppressing ]
9947         
9948         * TreeView.cs: mark BackgroundImageChanged as 'new'.
9949
9950         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
9951         to "LayoutToolBar" to quiet mcs.
9952         
9953         * TabControl.cs: mark our ControlCollection class as 'new'.
9954
9955         * TextBoxBase.cs: mark some events as 'new'.
9956
9957         * Splitter.cs: TabStop is 'new'.
9958
9959         * ControlBindingsCollection.cs: mark a few methods as new since
9960         they change the visibility from protected to public.
9961
9962         * RadioButton.cs: DoubleClick -> base class, and remove unused
9963         HaveDoubleClick.
9964
9965         * MonthCalendar.cs: ImeMode property -> base class, and mark many
9966         events as new.
9967
9968         * NumericUpDown.cs: TextChanged -> base class.
9969
9970         * CheckedListBox.cs: mark our ObjectCollection class as new to
9971         quiet mcs.
9972
9973         * FolderBrowserDialog.cs: make HelpRequest event new and have it
9974         muck with the base class.
9975
9976         * StatusBar.cs: fix some mcs warnings about Update being the same
9977         name as a base class method.
9978
9979         * RichTextBox.cs: mark some events as new, and make them do things
9980         to the base class impl.
9981
9982         * UserControl.cs: mark TextChanged as new, and have it manipulate
9983         base.TextChanged.
9984
9985         * UpDownBase.cs: mark some things new.
9986
9987         * CheckBox.cs: mark DoubleClick "new", and add some text about
9988         what we need to look at.
9989
9990         * Panel.cs: make the events "new", and manipulate the base
9991         version.  these are just here for attributes.
9992
9993         * AccessibleObject.cs: make owner private.
9994
9995         * Control.cs: deal with AccessibleObject.owner being private.
9996         cache our own copy if we need it.
9997
9998         * Button.cs: add "new" to the DoubleClickEvent.
9999
10000         * ListBox.cs: no need to track our own has_focus here.  let
10001         Control.has_focus do it for us.  Also some other work to clear up
10002         warnings about not overriding base class methods of the same name.
10003         
10004         * ComboBox.cs: clear up some warnings about not override base
10005         class methods of the same name.
10006
10007 2006-12-01  Chris Toshok  <toshok@ximian.com>
10008
10009         * Form.cs: flag a few things as "new" to quiet some of the mcs
10010         warnings.
10011
10012         * AxHost.cs: same.
10013
10014         * PrintPreviewDialog.cs: same.
10015
10016         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
10017         now DGV isn't so horrible on the class status page.  also, move
10018         all events to using System.ComponentModel.EventHandlerList.  my
10019         wrists hurt.
10020
10021 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10022
10023         * MdiWindowManager.cs:
10024         - Set form to active mdi child if shown,
10025         and update the active mdi child to the next 
10026         remaining child in the z-order if the form is hidden.
10027
10028         * Form.cs: 
10029         - Track if the form has been visible and if its 
10030         visibility is beeing changed, so that the MdiClient
10031         can properly decide the ActiveMdiChild. The MdiClient 
10032         cannot track this since the form can change visibility 
10033         before MdiClient is created.
10034
10035         * MdiClient.cs:
10036         - Don't activate anything of the parent form is changing
10037         its visibility.
10038         - Rework ActiveMdiChild to only return visible mdi 
10039         children and take into account several other corner 
10040         cases.
10041
10042 2006-12-01  Chris Toshok  <toshok@ximian.com>
10043
10044         * IBindableComponent.cs: new 2.0 interface.
10045
10046 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
10047
10048         * DataGrid.cs: Font for caption area is bold by default.
10049
10050 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
10051
10052         * Menu.cs: Tag property for 2.0.
10053         
10054 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
10055
10056         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
10057         
10058 2006-12-01  Chris Toshok  <toshok@ximian.com>
10059
10060         * TreeView.cs: doh, the Begin* events should be
10061         TreeViewCancelEventHandler.
10062
10063 2006-12-01  Chris Toshok  <toshok@ximian.com>
10064
10065         * Form.cs: Form.ControlCollection already stores off the
10066         form_owner field.  don't access the base class's internal "owner"
10067         field.
10068
10069         * Control.cs: make all the fields in Control.ControlCollection
10070         private.  there's no need for any internal fields here.
10071
10072 2006-12-01  Chris Toshok  <toshok@ximian.com>
10073
10074         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
10075         OnHandleCreated.  Fixes bug #80109.
10076
10077 2006-12-01  Chris Toshok  <toshok@ximian.com>
10078
10079         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
10080         SplitContainer.cs, Control.cs, StatusStrip.cs,
10081         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
10082         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
10083         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
10084         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
10085         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
10086         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
10087         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
10088         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
10089         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
10090         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
10091
10092         do most of the work to convert our code over to use
10093         System.ComponentModel.Component.Events for
10094         adding/removing/dispatching events.
10095
10096
10097 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
10098
10099         * DataGridView.cs: Fix an ArgumentNullException reported 
10100         twice today in IRC.
10101
10102 2006-11-30  Mike Kestner  <mkestner@novell.com>
10103
10104         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
10105         grabbed listbox.  Fixes #80036 and #80101.
10106
10107 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
10108
10109         * Message.cs: Changed ToString() to match MS.
10110         
10111 2006-11-30  Jackson Harper  <jackson@ximian.com>
10112
10113         * TextBoxBase.cs: You can still change the selected text on a read
10114         only textbox.
10115         * TextControl.cs: Lower magic number for wrap calculations. This
10116         lets text get closer to the right (far) edge.
10117
10118 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
10119
10120         * Control.cs: Tweak 2.0 layout properties.
10121         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
10122         * TextRenderer.cs: Add a new overload.
10123         * ToolStrip*: Huge amount of changes and new features.
10124
10125 2006-11-30  Mike Kestner  <mkestner@novell.com>
10126
10127         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
10128         scroll range correct.  Fixes #79994.
10129
10130 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
10131
10132         * MdiWindowManager.cs: Update main form's text when
10133         a form is closed. (fixes #80038)
10134         
10135 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
10136
10137         * ToolBar.cs:
10138         - Fix an regression in ButtonSize.
10139         - Get ImeMode default value change to "Disable".
10140         - Get ShowTooltips default value change to true, default value is 
10141         "false" but after make a test in .NET we get "true" result as default.
10142         
10143 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
10144
10145         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
10146
10147 2006-11-29  Chris Toshok  <toshok@ximian.com>
10148
10149         * XplatUIWin32.cs (GetWindowTransparency): check return value of
10150         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
10151         SetWindowTransparency hasn't been called.
10152
10153 2006-11-29  Chris Toshok  <toshok@ximian.com>
10154
10155         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
10156         if it's supported.
10157         (set_AllowTransparency): reorder things a little so that the
10158         WS_EX_LAYERED style is removed properly.
10159
10160 2006-11-29  Chris Toshok  <toshok@ximian.com>
10161
10162         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
10163         
10164         * Form.cs: only call the XplatUI transparency method (get/set) if
10165         SupportsTransparency says it's supported. Otherwise fallback to
10166         doing nothing (in the set case) or returning the instance field we
10167         cache (in the get case).
10168
10169         * XplatUIStructs.cs: add TransparencySupport flag enum.
10170         
10171         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
10172         change to SupportsTransparency.
10173
10174         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
10175         TransparencySupport.None from SupportsTransparency.
10176
10177         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
10178         TransparencySupport.Set from SupportsTransparency.
10179
10180         * XplatUIWin32.cs: implement GetWindowTransparency calling
10181         GetLayeredWindowAttributes, and implement SupportsTransparency by
10182         checking whether or not both
10183         GetWindowTransparency/SetWindowTransparency are available
10184         entrypoints.  We need to do this since SetWindowTransparency is
10185         available as of win2k, but GetWindowTransparency requires winxp.
10186         yay win32 api.
10187
10188         * XplatUI.cs: Add GetWindowTransparency, and change
10189         SupportsTransparency to allow for either/both Get/Set.
10190
10191 2006-11-29  Chris Toshok  <toshok@ximian.com>
10192
10193         * DataGrid.cs: keep from going into an infinite loop redrawing a
10194         datagrid that has no datasource.  Fixes bug #80033.
10195
10196 2006-11-29  Chris Toshok  <toshok@ximian.com>
10197
10198         * MenuItem.cs: fix the NRE when we assign text (and therefore call
10199         Invalidate) before the mainmenu has been assigned to a control.
10200
10201 2006-11-29  Chris Toshok  <toshok@ximian.com>
10202
10203         * DataGrid.cs: detect when we should be double the double click
10204         row/column autosize stuff, although that codepath has yet to be
10205         written.  part of the work for bug #79891.
10206
10207 2006-11-29  Chris Toshok  <toshok@ximian.com>
10208
10209         * Binding.cs (SetControl): fix unit test.
10210
10211 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10212
10213         * PageSetupDialog.cs: Validate the margins and set them in
10214         PageSettings. 
10215         * NumericTextBox.cs: New class to mimic the behavior of the
10216         textboxes used in the printing dialogs.
10217
10218 2006-11-29  Andreia Gaita  <avidigal@novell.com>
10219         
10220         * Form.cs: Revert previous change (remove call UpdateBounds
10221         from form constructor), because it messes with the handle creation
10222         order, and that one needs lots and lots of love.
10223         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
10224         for valid printer and throw InvalidPrinterException if document
10225         is set but printer not valid), adding a MonoTODO. Once 
10226         handle creation is done properly, we can put this back in.
10227
10228 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
10229
10230         * MenuItem.cs: Create a invalidate method for menu item, to be
10231         calling from set text, it make text changes to imadiate update
10232         on screen. Fixes #80013. 
10233         
10234 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
10235
10236         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
10237         fixes bug #80070 and some other problem on toolbar buttons
10238         layout.
10239
10240 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
10241
10242         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
10243         with dotted brush.      Fixes #79564
10244         
10245 2006-11-28  Andreia Gaita  <avidigal@novell.com>
10246
10247         * Form.cs: Removed call to UpdateBounds on Form
10248         constructor, it was causing a call to CreateHandle
10249         before it was supposed to.
10250         * PrintControllerWithStatusDialog: Applied patch
10251         by Chris Toshok to hide controller when there are
10252         no printers available.
10253         PrintDialog.cs: initialize printer settings to 
10254         null - correct DefaultValues test #5
10255         * PrintPreviewControl.cs: Move PrintController
10256         initialization to GeneratePreview
10257         * PrintPreviewDialog.cs: 
10258         - Remove Preview generation     from Document_set(). It is 
10259         called on OnPaint
10260         - Throw InvalidPrinterException on CreateHandle if
10261         a Document is set but there are no printers or 
10262         printer is not valid.
10263         * ThemeWin32Classic: don't paint PrintPreviewControl
10264         if there is nothing to paint    
10265
10266 2006-11-28  Miguel de Icaza  <miguel@novell.com>
10267
10268         * Form.cs: Add another popular method.
10269
10270         * TabPage.cs: ditto.
10271
10272 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10273
10274         * MenuItem.cs: Fixed a warning.
10275         * InternalWindowManager: Fixed a warning.
10276
10277 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10278
10279         * MenuItem.cs:
10280         - When cloning a menu also clone MdiList and clone the 
10281           window menu items properly (as the forms and menuitems
10282           are kept in an internal hashtable, these need updating 
10283           as well)
10284         - Rewrote the window menu code, menu items are added in the
10285           order the forms were added to their parent, and they are
10286           updated every time the window menu is shown (before the
10287           list was only generated once, in the current order of the
10288           forms, and would never be updated). A checkmark is shown
10289           next to the item corresponding to the active mdi child.
10290
10291 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10292
10293         * XplatUIStructs.cs: 
10294         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
10295         
10296         * XplatUIWin32.cs: 
10297         - Added TME_NONCLIENT to TMEFlags.
10298         - Handles WM_NCMOUSEMOVE in GetMessage to 
10299           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
10300
10301         * MdiWindowManager:
10302         - Now merges mdi child menu to parent menu when maximized.
10303         - Recalculate NC areas of both mdi child and mdi parent. 
10304           Fixes #79757 (4).
10305           on window state and size changes.Fixes #79844 (3).
10306         - Handle WM_NCCALCSIZE to properly calculate borders.
10307
10308         * Form.cs:
10309         - Add/remove to the mdi containers list of mdi children 
10310           in the order they are added.
10311         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
10312           to the maximized mdi child.
10313         
10314         * InternalWindowManager.cs:
10315         - Only execute a click on the control buttons on the mouse up,
10316           not on the mouse down. Show the state of the button 
10317           (was only showing Normal state, never Pressed state). The
10318           pressed button now follows the mouse (if you click the Close 
10319           button and move the mouse over the Maximize button, the 
10320           Maximize button will be shown as pressed). Since Win32 does
10321           not generate WM_NCLBUTTONUP if you release the button outside
10322           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
10323           it as a mouse up.
10324         
10325         * ThemeWin32Classic.cs:
10326         - Draw a missing border around mdi child forms. Fixes #79844 (2).
10327
10328         * MdiClient.cs:
10329         - Added a list of forms which contains the order the forms are
10330           added to the mdi parent.
10331         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
10332         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
10333         - If the active form changes set the scrollbars to the top
10334           of the Z order, otherwise the form could hide them.
10335         - Scrollbars are now sized according to ClientSize, not 
10336           to Size, and they take into account the other scrollbar
10337           to determine maximum.
10338         
10339 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
10340         
10341         * XplatUI.cs:
10342         * XplatUIDriver.cs:
10343         * XplatUIX11.cs:
10344         * XplatUIWin32.cs:
10345         * XplatUIOSX.cs:
10346         - Added RequestAdditionalWM_NCMessages for windows to 
10347           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
10348           Currently only implemented in XplatUIWin32.
10349
10350 2006-11-27  Chris Toshok  <toshok@ximian.com>
10351
10352         * Hwnd.cs: only add the hwnd to the windows hash in
10353         set_WholeWindow and set_ClientWindow if whole_window/client_window
10354         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
10355
10356 2006-11-27  Mike Kestner  <mkestner@novell.com>
10357
10358         * ComboBox.cs: remove redundant OnDropDown call.  It is called
10359         from the ComboListBox.ShowWindow code. Fixes #79969.
10360
10361 2006-11-27  Chris Toshok  <toshok@ximian.com>
10362
10363         * Hwnd.cs: remove the setters for ExposePending and
10364         NCExposePending - noone uses them.
10365
10366 2006-11-27  Jackson Harper  <jackson@ximian.com>
10367
10368         * TextControl.cs: new param for ReplaceSelection which determines
10369         whether we select the new selection, or set the cursor to the end
10370         of the new selection.
10371         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
10372         pasting, select the new text.
10373         * RichTextBox.cs: Use new param for ReplaceSelection.
10374
10375 2006-11-27  Jackson Harper  <jackson@ximian.com>
10376
10377         * TextBoxBase.cs: Set the selection to the caret after the caret
10378         is moved, otherwise they get out of sync.
10379
10380 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
10381
10382         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
10383         it fixes #80015
10384
10385 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
10386
10387         * ThemeWin32Classic.cs: 
10388         - Fix toolbar drop down arrow position.
10389         - Fix drop down appearance when ToolBar.Appearance is normal,
10390         it fixes #80018.
10391         
10392 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
10393
10394         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
10395         * Control.cs: Same.
10396         * UpDownBase.cs: Same.
10397         * ButtonBase.cs: Same.
10398         * ScrollBar.cs: Same.
10399         * TrackBar.cs: Same.
10400         * PictureBox.cs: Same.
10401         * UserControl.cs: Same.
10402         * Label.cs: Same.
10403         * ListControl.cs: Same.
10404         * TextBoxBase.cs: Same.
10405         * ListView.cs: Same.
10406         * RichTextBox.cs: Same.
10407         * TreeView.cs: Same.
10408
10409 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
10410
10411         * PrintDialog.cs:
10412         - Text label for where 
10413         - Text label comment was not shown
10414
10415 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
10416
10417         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
10418
10419 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
10420
10421         * InternalWindowManager.cs: 
10422         - Handle WM_PARENTNOTIFY to activate the form
10423         if any child control is clicked.
10424         - The form is only sizable if not minimized.
10425
10426         * MdiWindowManager.cs:
10427         - Save the IconicBounds if the form is moved.
10428         - Rework SetWindowState, now the window bounds 
10429         are stored only if the old window state is Normal.
10430         
10431         * MdiClient.cs:
10432         - In SetWindowStates store the old window state if 
10433         the window is maximized and restore window state if
10434         the window looses focus.
10435         - Don't handle any scrollbar value changes if 
10436         initializing the scroll bars. Fixes #79771.
10437         - Reworked ArrangeIconicWindows. Current algorithm
10438         tests bounds agains all other minimized windows, if
10439         any intersections create new bounds (going left to 
10440         right, bottom to top) and then test again. When 
10441         successful the bounds are saved and never computed
10442         again. Fixes #79774.
10443
10444 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
10445
10446         * InternalWindowManager.cs: Added HandleTitleBarUp.
10447
10448 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
10449
10450         * NumericUpDown.cs: In .NET 1.1, user entered text is still
10451         hexadecimal in ParseUserEdit.
10452
10453         
10454 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
10455
10456         * MdiWindowManager.cs: 
10457         - Handle a click on the form's icon to show the 
10458         system menu (when maximized). Fixes #79775.
10459         - Change the existing click handler for the form's
10460         icon when not maximized to show on MouseUp.
10461         Fixes #79776.
10462
10463         * Form.cs: In OnResize only layout the mdi child's
10464         parent if it actually has a parent. Might not if
10465         the window is closing.
10466
10467
10468 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
10469
10470         * MdiClient.cs: Ignore active MDI client for text of parent, if
10471         child has no text set.
10472
10473 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
10474
10475         * ToolBar.cs: Fixed ToString to match MS.
10476
10477 2006-11-22  Andreia Gaita  <avidigal@novell.com>
10478
10479         * NumericUpDown: 
10480         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
10481         update inner values on set. Fixes #79966.
10482         - Override OnLostFocus to update value on NET 2. Fixes #79950.
10483         - Fix hexadecimal parsing.
10484         
10485         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
10486         parent. Fixes #79957
10487
10488 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10489
10490         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
10491         the actual size has to be queried, since if height /
10492         width is negative Win32 changes it to 0. 
10493         Fixes #79999 on Windows.
10494         
10495         * XplatUIX11.cs: Set height / width to 0 if negative
10496         in SetWindowPos. Fixes #79999 on Linux.
10497         
10498 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
10499
10500         * ThemeWin32Classic.cs: Fix text redenring when button is
10501         pressed.
10502
10503 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
10504
10505         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
10506         and later navigate by mouse. Fixes #79528.
10507
10508 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
10509
10510         * ToolBar.cs: Set default value for TabStop to false in
10511         constructor, it fixes remaining behavior of bug #79863.
10512
10513 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10514
10515         * MdiWindowManager.cs:
10516         * InternalWindowManager.cs:
10517         - Moved a few methods specific to Mdi from 
10518         InternalWindowManager to MdiWindowManager.
10519         Fixes #79996.
10520         
10521 2006-11-21  Chris Toshok  <toshok@ximian.com>
10522
10523         * XplatUIOSX.cs: stub out InvalidateNC.
10524
10525         * XplatUIWin32.cs: implement InvalidateNC using the call I found
10526         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
10527
10528         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
10529
10530         * XplatUIDriver.cs: add InvalidateNC abstract method.
10531
10532         * XplatUI.cs: add InvalidateNC.
10533
10534 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
10535
10536         * ToolBar.cs: Invalidate complete button area when pressed status 
10537         was changed.
10538         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
10539         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
10540         by 1 when button is pressed.
10541
10542 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
10543
10544         * ToolButton.cs: Invalidate middle of DropDown button when
10545         ToolBar theres DropDownArrows.
10546         * ThemeWin32Classic.cs: Change position of DropDown arrow and
10547         fix DropDown drawing operations.
10548
10549 2006-11-20  Chris Toshok  <toshok@ximian.com>
10550
10551         * NativeWindow.cs: fix the formatting of functions ('{' on the
10552         following line), and enable the thread exception dialog.
10553
10554         * Application.cs: remove the duplicate exception catching from
10555         here.
10556
10557 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
10558
10559         * Toolbar.cs: Triggers button click event when click on icon
10560         of dropdown ToolBarButton. Fixes #79912.
10561         
10562 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10563
10564         * Theme.cs:
10565         * ThemeWin32Classic.cs:
10566         - Added a property WindowBorderFont to enable themeing
10567           of mdi child windows' Text.
10568           
10569 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10570
10571         * InternalWindowManager.cs:
10572         * Form.cs:
10573         * MdiClient.cs:
10574         * MdiWindowManager.cs: 
10575         - If mdi child is maximized, set mdi parent's
10576           text to "Parent - [Child]". Fixes #79770.
10577         - If there is any maximized mdi child windows, only the active 
10578           window (and any new windows) is maximized, the rest are normal.
10579         - On a WindowState change only save mdi child's window bounds 
10580           if the old window state was normal. Fixes #79774.
10581         - The scroll bars are now calculated on hopefully all
10582           necessary events. Fixed #79771 / #79844->6 / #79906.
10583         - MdiClient.SizeScrollBars() now takes into account docked 
10584           controls in the parent when calculating available space.
10585         - InternalWindowManager now always repaints the entire title
10586           area. Fixes #79844->1/4/5.
10587         - Added RequestNCRecalc on mdi child windowstate changes.
10588           Fixes #79772.
10589
10590 2006-11-20  Mike Kestner  <mkestner@novell.com>
10591
10592         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
10593         in the MouseUp handler of the listbox and move the return handling
10594         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
10595
10596 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
10597
10598         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
10599
10600 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
10601
10602         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
10603           working in 1.2.x anymore. So, updated.
10604
10605 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
10606
10607         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
10608         NumberGroupSeparator of current culture instead of assuming en-US.
10609         Fixed bug #79967.
10610
10611 2006-11-17  Mike Kestner  <mkestner@novell.com>
10612
10613         * Control.cs: Add the concept of implicit bounds setting so that
10614         dock/undock round trips preserve explicitly set size/locations.
10615         Fixes #79313.
10616
10617 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
10618
10619         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
10620           can't handle those filters. (Fixes bug #79961)
10621
10622 2006-11-17  Chris Toshok  <toshok@ximian.com>
10623
10624         [ fixes the exit/crashes associated with #79835.  it's clearly
10625         suboptimal though, we need to figure out a better way to solve
10626         this. ]
10627         
10628         * PrintPreviewControl.cs: deal with the new invalid printer
10629         exceptions.
10630
10631         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
10632         and return false (so CommonDialog.ShowDialog doesn't actually show
10633         the form.)
10634
10635         * PrintDialog.cs: enable/disable the Ok button depending on
10636         whether or not the printer is valid.
10637
10638         * CommonDialog.cs (ShowDialog): only actually show the form if
10639         RunDialog returns true.
10640
10641 2006-11-17  Jackson Harper  <jackson@ximian.com>
10642
10643         * TextControl.cs: When soft splitting a line, mark it as a soft
10644         split line. Also carry over the current line break to the next
10645         line.
10646
10647 2006-11-17  Chris Toshok  <toshok@ximian.com>
10648
10649         * XplatUIX11.cs: when scrolling a window with an invalid area, we
10650         only want to shift the part of the invalid area that overlaps the
10651         area we're scrolling.  we also don't want to clear the invalid
10652         area unless the invalid area was entirely contained within the
10653         scrolling area.
10654
10655 2006-11-16  Chris Toshok  <toshok@ximian.com>
10656
10657         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
10658         also make sure to free the memory returned by XGetWindowProperty
10659         in GetText().
10660
10661         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
10662
10663 2006-11-16  Chris Toshok  <toshok@ximian.com>
10664
10665         * XplatUI.cs: add a new super secret way to get at the totally
10666         unsupported X11 backend.
10667
10668 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
10669
10670         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
10671
10672 2006-11-16  Jackson Harper  <jackson@ximian.com>
10673
10674         * TreeView.cs: Allow more explicit setting of top node position
10675         for scrollbars. Slower algo, but more accurate.
10676         - CollapseAll should maintain the current top node.
10677         * TextBoxBase.cs: When positioning the caret, use the line, pos
10678         method, since the x, y method does not grab the correct tag, and
10679         the caret height never gets set correctly. (Maybe I should just do
10680         away with the caret having its own height, and always use the
10681         carets current tag for height).
10682
10683 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
10684
10685         [Fixes 79778, 79923]
10686
10687         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
10688         Parent to the FosterParent instead.
10689
10690 2006-11-16  Jackson Harper  <jackson@ximian.com>
10691
10692         * TreeView.cs: Need to recalc the topnode when we expand or
10693         collapse. The scrolling methods can't handle this on their own,
10694         since they use differences between the last scroll position, and
10695         those difference get completely messed up since we are expanding
10696         nodes.  This problem should probably be fixed in the scrolling
10697         methods, so they can figure out exactly where they are, but this
10698         will slow things down a little.
10699         * ThemeWin32Classic.cs: Special case for groupboxes with empty
10700         strings, makes nunit-gui look a lot nicer.
10701
10702 2006-11-16  Chris Toshok  <toshok@ximian.com>
10703
10704         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
10705         the broken multithreaded event handling we have in here.  File
10706         this entry under "Why we should move to the new X11 backend".
10707
10708         Any thread can make it into UpdateMessageQueue, which gets events
10709         from the X socket - some of which could belong to hwnds being
10710         managed by a different thread.  We can also have multiple threads
10711         in UpdateMessageQueue at the same time, with each one reading from
10712         the X socket.  This leads to many problems, with the following
10713         solutions:
10714
10715         We can't use hwnd.Queue.Enqueue anywhere in here and must use
10716         EnqueueLocked.
10717
10718         The MotionNotify compression we do can't work across threads
10719         (without locking the entire queue, perhaps) since we call
10720         hwnd.Queue.Peek, so we just punt and don't compress motion events
10721         unless the owning thread is the one which got the X event.
10722
10723         ConfigureNotify is another fun one, since it modifies the hwnd's
10724         bounds and then enqueues the event.  We add a lock to Hwnd which
10725         is held when setting configure_pending to true (and enqueuing the
10726         event).
10727
10728         There is a race wrt the wake socket.  we need to make sure that
10729         only 1 thread is waiting on that socket, or else a thread could
10730         sleep waiting for data that never comes.  It's difficult (but not
10731         impossible) to make happen, because it seems to require something
10732         like the following:
10733
10734             1. Thread 1 polls on wake_receive
10735         
10736             2. poll returns saying there's data to be read on
10737                wake_receive.
10738         
10739             3. Thread 2 polls on wake_receive and immediately returns
10740                saying there's data to be read.
10741
10742             4. Thread 2 reads the wakeup byte from wake_receive
10743
10744             5. Thread 1 attempts to read the wakeup byte from
10745                wake_receive.
10746
10747             6. Thread 2 exits (due to a form closing, perhaps).
10748
10749             7. Thread 1 blocks forever.
10750         
10751         Fun, eh?
10752
10753         Fixing the Expose handling isn't done yet, and the races inherent
10754         in that piece of code are responsible for the drawing mistakes you
10755         see when generating expose events in a MT app (like NPlot).  This
10756         one is the likely to be the hardest to bandaid, and it doesn't
10757         appear to cause anything but drawing problems.  The other issues
10758         caused apps to exit or hang.
10759
10760         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
10761         called from a different thread than the one that should be calling
10762         these functions.
10763
10764         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
10765
10766 2006-11-15  Chris Toshok  <toshok@ximian.com>
10767
10768         * Application.cs: null out the context's MainForm when we exit
10769         RunLoop.  Fixes a newly checked in unit test as well as the last
10770         ODE from bug #79933.
10771
10772 2006-11-15  Chris Toshok  <toshok@ximian.com>
10773
10774         * Form.cs (set_Owner): allow a null value so we can clear the
10775         form's owner.
10776         (Dispose): set all our owned_form's Owner properties to null, and
10777         clear the owned_forms collection.
10778         (WM_CLOSE): clean up this a little bit.. still not right though.
10779
10780         * ApplicationContext.cs: OnMainFormClosed should only call
10781         ExitThreadCore if the main form isn't recreating.  Fixes unit
10782         test.
10783
10784 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
10785
10786         [Fixes 78346]
10787
10788         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
10789
10790 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
10791
10792         [Fixes 79433]
10793
10794         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
10795         keep popup window types from stealing focus from the main form
10796         on Windows.
10797
10798         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
10799
10800         * MenuAPI.cs: Set above flag to true.
10801
10802 2006-11-15  Chris Toshok  <toshok@ximian.com>
10803
10804         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
10805         the button being released is not in wParam.
10806
10807 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
10808
10809         * Form.cs: Add the released button to MouseEventArgs.Button
10810         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
10811         on Win32.
10812
10813 2006-11-15  Chris Toshok  <toshok@ximian.com>
10814
10815         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
10816         GetText().  untested because it's unused in our implementation.
10817         Control.Text always caches the text, even if
10818         ControlStyles.CacheText is not set.
10819
10820         fixes bug #79939.
10821
10822 2006-11-15  Chris Toshok  <toshok@ximian.com>
10823
10824         [ fixes #79933 ]
10825         
10826         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
10827         message.  no hiding, no disposing.
10828
10829         in the WM_CLOSE handler, hide the form if it's modal.
10830
10831 2006-11-15  Chris Toshok  <toshok@ximian.com>
10832
10833         * XplatUIX11.cs: use AddExpose instead of sending a message.
10834         fixes textbox border drawing.
10835
10836 2006-11-15  Chris Toshok  <toshok@ximian.com>
10837
10838         * PropertyGridView.cs: keep from crashing on mouse move/down when
10839         the property grid is empty.
10840
10841 2006-11-14  Jackson Harper  <jackson@ximian.com>
10842
10843         * TextControl.cs: Make PageUp and PageDown more like the MS
10844         versions.
10845         * TextBoxBase.cs: When we set the text property position the
10846         cursor at the beginning of the document.
10847
10848 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10849
10850         * Form.cs: if a mdi child's WindowState has changed
10851         before it's creation, it would display wrong control
10852         buttons.
10853         
10854 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
10855
10856         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
10857           (Fixes bug #79927)
10858
10859 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10860
10861         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
10862         the window gets to paint its borders even if the window is
10863         getting smaller.
10864         
10865         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
10866         otherwise the old control buttons would still be painted 
10867         if the window gets bigger.
10868         
10869         * PaintEventArgs.cs: add an internal method so that the clip 
10870         rectangle can be changed.
10871         
10872 2006-11-13  Chris Toshok  <toshok@ximian.com>
10873
10874         [ fixes bug #79745 ]
10875         
10876         * NotifyIcon.cs: lots of cleanup.
10877
10878         * X11Structs.cs: add an enum for XEMBED messages.
10879
10880         * XplatUIX11.cs: reindent one of the giant switch statements, it
10881         was taking up an additional tab stop, and this file is already way
10882         too wide for my laptop's screen.
10883
10884         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
10885         we get it, resize the hwnd to the WMNormalHints max_width/height.
10886
10887 2006-11-13  Jackson Harper  <jackson@ximian.com>
10888
10889         * TextBoxBase.cs: Compute the value changes for the mouse wheel
10890         teh simple way.
10891
10892 2006-11-13  Chris Toshok  <toshok@ximian.com>
10893
10894         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
10895         #79898.  force a reference to the Region to stick around so the
10896         unmanaged object isn't collected (rendering our handle in the MSG
10897         stale).
10898
10899 2006-11-13  Chris Toshok  <toshok@ximian.com>
10900
10901         * XplatUIX11.cs: fix #79917 for window managers which support
10902
10903         using XStoreName on the raw utf8, and we need to convert to
10904         COMPOUND_TEXT if it's non-latin1.
10905
10906 2006-11-13  Chris Toshok  <toshok@ximian.com>
10907
10908         * Form.cs (set_DialogResult): we need to set closing to false if
10909         we're setting our result to None.  fixes bug #79908.
10910
10911 2006-11-13  Jackson Harper  <jackson@ximian.com>
10912
10913         * TextControl.cs: When formatting text, compute the adjusted tag
10914         lengths correctly, using FindTag for the end tag instead of trying
10915         to figure it out outselves.
10916         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
10917         the item, ItemHeight doesn't work, because trees with large
10918         imagelists use those for their height
10919         * TreeView.cs: ActualItemHeight factors in the image height
10920         - compute left edge of checkboxes correctly
10921         - when expanding/collapsing move the bottom down one pixel, so we
10922         aren't moving part of the node
10923
10924 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10925
10926         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
10927         stack in PaintEventStart so that it won't get disposed by the gc
10928         before reaching PaintEventEnd.
10929
10930 2006-11-13  Jackson Harper  <jackson@ximian.com>
10931
10932         * TextBoxBase.cs: Don't select the word if we are on a line with
10933         no text.
10934         - We don't need to position the caret on mouse up, since the mouse
10935         move handler should be doing this
10936         - When double clicking a blank line, the caret is advanced to the
10937         next line.
10938
10939 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
10940
10941         * TreeNodeCollection.cs: Avoid duplicating indexer code.
10942
10943 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
10944
10945         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
10946         Fixes part of bug #79910.
10947
10948 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
10949
10950         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
10951           (bug #79903). Some minor string updates to match ms.
10952
10953 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
10954
10955         * FileDialog.cs: Don't add an extension if the filename
10956           already ends with that extension.
10957
10958 2006-11-10  Jackson Harper  <jackson@ximian.com>
10959
10960         * TreeView.cs: Use the currently highlighted node for the
10961         BeforeSelect event.
10962         * TextBoxBase.cs: There is no need to expand selection on
10963         MouseMove.
10964         - CanUndo means 'is there any undo operations', not 'is undo
10965         allowed on this textcontrol. Fixed ClearUndo unit test.
10966
10967 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
10968
10969         * Button.cs: only perform click when button is Selectable (so as 
10970         not to activate default buttons when they're disabled)
10971         
10972         * Control.cs: Rewrite of the SelectNextControl and related 
10973         methods. HandleClick now selects next control if the current one
10974         is being disabled.
10975         
10976         * Form.cs: OnActivated selects next active control only if Load 
10977         has already occurred. If Load hasn't run, there's no point in 
10978         selecting here, Load might change the state of controls.
10979         
10980         * FocusTest.cs: Tests marked as working again for these fixes
10981
10982 2006-11-10  Chris Toshok  <toshok@ximian.com>
10983
10984         * XplatUIX11.cs: a couple of fixes.
10985
10986         - use XInternAtoms with almost all the atoms we need to register,
10987         instead of many, many calls to XInternAtom.  should help a bit on
10988         startup time, at the expense of making the code look a little
10989         worse.
10990
10991         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
10992         isn't reparented (which seems to be a clue that we're running fon
10993         compiz) and they have an Owner form.  This fixes the tool windows
10994         in paint.net when running under compiz.
10995
10996         - when setting the opacity of a window, support both the case
10997         where the window has been reparented and also when it hasn't been.
10998         Since compiz/beryl doesn't seem to reparent windows, and these are
10999         the only window managers which support translucency, I'm not sure
11000         why we need the hwnd.reparented case at all.. but leave it in.
11001         now we get translucent windows in paint.net under compiz/beryl.
11002
11003 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
11004
11005         * FileDialog.cs: Always return the value for FilterIndex that
11006           was set. Internally convert it to values that make sense.
11007
11008 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
11009         
11010         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
11011
11012 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
11013
11014         * Toolbar.cs: Change default value of DropDownArrows to true, the 
11015         signature still using false to make it compatible with MS but the 
11016         initial value is true. Fixes #79855.
11017
11018 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
11019
11020         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
11021           only available on Linux.
11022
11023 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
11024
11025         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
11026         reduce number of calls to redraw method during toolbar creation.
11027
11028 2006-11-09  Mike Kestner  <mkestner@novell.com>
11029
11030         * ListView.cs : raise SelectedIndexChanged when an item is selected
11031         programmatically via the Item.Selected property.  Gert's nice 
11032         ListViewSelectedIndexChanged test fixture now runs clean.
11033
11034 2006-11-09  Mike Kestner  <mkestner@novell.com>
11035
11036         * ListView.cs : raise SelectedIndexChanged when a selected item is
11037         removed from the item collection using Remove or RemoveAt.
11038
11039 2006-11-09  Mike Kestner  <mkestner@novell.com>
11040
11041         * ListView.cs : raise SelectedIndexChanged once per selected item
11042         for compat with MS.  Fixes #79849+.
11043
11044 2006-11-09  Chris Toshok  <toshok@ximian.com>
11045
11046         * TabControl.cs: initialize row_count to 0, and set it to 1 when
11047         we need to (if we have any tab pages).  Fixes unit test.
11048
11049 2006-11-09  Chris Toshok  <toshok@ximian.com>
11050
11051         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
11052         width is 0, not 3.  Fixes a unit test.
11053
11054 2006-11-09  Mike Kestner  <mkestner@novell.com>
11055
11056         * ListView.cs : use Implicit scrollbars so that focus isn't 
11057         stolen from the listview when they are clicked. Fixes #79850.
11058
11059 2006-11-09  Chris Toshok  <toshok@ximian.com>
11060
11061         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
11062         have a root item.  Fixes #79879.
11063
11064 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
11065
11066         * FileDialog.cs:
11067           - Fix ToString ()
11068           - An ArgumentException is now thrown if a wrong filter
11069             is applied (matches ms). The previous filter doesn't change
11070             anymore if an exception is thrown.
11071           - Changing the FileName property also affects FileNames
11072         * ColorDialog.cs: The length of the CustomColors array is always
11073           16. It doesn't matter if we use a smaller array or null to update
11074           or change the custom colors property.
11075         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
11076           for RootFolder if we get a undefined value.
11077
11078 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11079
11080         * StatusBarPanel.cs: 
11081         - Width is set to MinWidth if Width is smaller than
11082         MinWidth. Fixes #79842.
11083         - MinWidth now always overrides Width (MSDN says MinWidth
11084         is set to Width when AutoSize = None, but they do not 
11085         behave like that).
11086         - Style has now the the correct default value.
11087         
11088 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11089  
11090         * TrackBar.cs: 
11091         - The control is completely invalidated on 
11092         Got/LostFocus to draw the focus rectangle correctly.
11093         - When AutoSize then height is always 45 (width for 
11094         vertical controls).
11095         
11096         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
11097         on the mouse when moved and it doesn't move when grabbed
11098         until the mouse moves as well. Also fixed some wrong 
11099         calculations when clicking on the thumb (control thought
11100         click was outside of thumb and didn't grab it).
11101         Fixes some of the issues in #79718.
11102
11103 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
11104
11105         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
11106
11107 2006-11-08  Chris Toshok  <toshok@ximian.com>
11108
11109         * PropertyGridView.cs: only call ToggleValue if the item is not
11110         readonly.
11111
11112 2006-11-08  Jackson Harper  <jackson@ximian.com>
11113
11114         * TextBoxBase.cs: The RichTextBox and textbox have very different
11115         word selection methods.  Implement the textbox's simple word
11116         selection here, and let the RichTextBox override and provide it's
11117         own.
11118         - Don't do extra selection on mouseup
11119         * RichTextBox.cs: Use the documents word selection algorithm, I
11120         think ideally, this function will be pulled into the
11121         RichTextBox.cs code someday.
11122
11123 2006-11-08  Chris Toshok  <toshok@ximian.com>
11124
11125         * RootGridEntry.cs: new class to represent GridItemType.Root.
11126
11127         * CategoryGridEntry.cs: reformat, and add boilerplate.
11128         
11129         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
11130         returns the UI parent anyway, and we need special handling to
11131         implement the GetTarget method in the face of it.  Also, implement
11132         Select().
11133
11134         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
11135         a root grid item, and use that instead of PropertyGrid.grid_items.
11136         Also, make use of TypeConverters (and add limitted support for
11137         ICustomTypeDescriptors) when initially populating the grid.
11138         Arrays now show up more or less properly.
11139
11140 2006-11-08  Chris Toshok  <toshok@ximian.com>
11141
11142         * Application.cs: set the modal dialog to non modal after we close
11143         it.  Fixes bug #79866.
11144
11145 2006-11-08  Jackson Harper  <jackson@ximian.com>
11146
11147         * TextControl.cs: When combining lines carry over the line end
11148         style from the end line.
11149         - Invalidate the selected area when setting it, if it is visible.
11150         * TextBoxBase.cs: Only rich text box can do full line selects.
11151         - Make sure to set the cursor position when there is a click,
11152         otherwise two clicks in separate areas could cause a large chunk
11153         to be selected.
11154
11155 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11156
11157         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
11158         Fixes #79863.
11159
11160 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11161
11162         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
11163         time. Remove tooltips when ToolButton click events.  Fixes #79856.
11164
11165 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11166
11167         * MenuAPI.cs: Ignore right click for menu actions and fixes
11168         menu border when clicked.  Fixes #79846.
11169
11170 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11171
11172         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
11173         MouseState after create wParam for message, this fixes mouse button 
11174         equal none in mouse up events.
11175         
11176 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
11177
11178         * Control.cs : Focus() now calls Select to set the Container's
11179         Active Control and to give it focus. To avoid infinite recursion
11180         (because ActiveControl also calls Focus at one point), a check 
11181         is made in Focus with the help of a new internal variable
11182         is_focusing.
11183
11184 2006-11-07  Mike Kestner  <mkestner@novell.com>
11185
11186         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
11187         if there's a selection.  Fixes #79849.
11188
11189 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
11190
11191         * PropertyGrid.cs: Avoid fixed height of help description label.
11192         Fixes part of bug #79829.
11193
11194 2006-11-07  Chris Toshok  <toshok@ximian.com>
11195
11196         * XplatUIX11.cs: fix #79790 again, by using the
11197         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
11198
11199 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11200
11201         * ToolBar.cs: Fix left click checking.
11202
11203 2006-11-07  Chris Toshok  <toshok@ximian.com>
11204
11205         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
11206
11207 2006-11-07  Chris Toshok  <toshok@ximian.com>
11208
11209         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
11210         PropertyManager unit tests.
11211
11212         * PropertyManager.cs: make property_name internal.
11213
11214 2006-11-07  Chris Toshok  <toshok@ximian.com>
11215
11216         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
11217         pass a unit test.  Also, don't set image_index to anything in
11218         response to setting the ImageList property.
11219
11220 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
11221
11222         * ToolBar.cs: Ignore click events when mouse button is not a
11223         left button, only accepts other button for dropdown menus.  
11224         Fixes #79854.
11225
11226 2006-11-07  Chris Toshok  <toshok@ximian.com>
11227
11228         * DataGrid.cs: make the back and parent row buttons a little less
11229         ugly.
11230
11231 2006-11-07  Jackson Harper  <jackson@ximian.com>
11232
11233         * TextBoxBase.cs: When converting to Text don't put line breaks in
11234         for soft line breaks.
11235         * TextControl.cs: There is an initial "fake" line in the document,
11236         this is now a soft break line, so that an extra line feed doesn't
11237         get added to the end of documents.
11238
11239 2006-11-07  Chris Toshok  <toshok@ximian.com>
11240
11241         [ fix bug #79778 ]
11242         
11243         * CurrencyManager.cs: if the list is readonly, don't bother
11244         checking if IBindingList.AllowNew is true.
11245
11246         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
11247         for non-DataRowView datasources..  or rather, make it not crash.
11248         (DataGridPaintRelationRow): make sure we limit the row painting to
11249         the area not covered by the row header, and make our cell width at
11250         least large enough to cover the relation area.  This allows grids
11251         that have relations but no rows to render correctly.
11252         (DataGridPaintRowContents): same type of changes here.
11253         (SetDataSource): move back to always calling
11254         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
11255         navigating back through relations.
11256         (HitTest): handle the case where we have no cells but have
11257         relations.  Right now we generate a hit in cell 0 of whatever the
11258         row is, not sure if this is strictly correct, but it works for our
11259         purposes.
11260         
11261         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
11262         bother doing anything.
11263
11264 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
11265
11266         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
11267         early version of StatusStrip.  Not responsible for eaten
11268         application or firstborn children.
11269
11270 2006-11-06  Chris Toshok  <toshok@ximian.com>
11271
11272         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
11273         call GetTabRect with a -1 index.  Fixes #79847.
11274
11275 2006-11-06  Jackson Harper  <jackson@ximian.com>
11276
11277         * TreeNodeCollection.cs: Update scrollbars after clearing.
11278
11279 2006-11-06  Chris Toshok  <toshok@ximian.com>
11280
11281         * NumericUpDown.cs: fix the ToString method for some unit test
11282         love.
11283
11284 2006-11-06  Chris Toshok  <toshok@ximian.com>
11285
11286         * PropertyGrid.cs:
11287         - set the initial SelectedGridItem if we can.
11288
11289         - Exclude non-mergable properties only if we're merging > 1
11290         object.  Merging 1 object isn't really merging, obviously.
11291
11292         - Handle PropertySort.NoSort just like Alphabetical, which is
11293         wrong of course, but at least gets things on the screen.
11294         
11295         * PropertyGridView.cs:
11296         - Add method "FindFirstItem" which finds the first property grid
11297         item, so we can select it by default.
11298
11299         - make use of GridEntry.CanResetValue.
11300
11301         - Don't call RedrawBelowItemOnExpansion here anymore, the
11302         individual GridEntry's will do that.
11303
11304         - Remove the ITypeDescriptorContextImpl internal class.
11305         
11306         * GridEntry.cs:
11307         - this class needs to implement ITypeDescriptorContext, as it's
11308         what MS's PropertyDescriptorGridEntry does, which means we can
11309         remove the ITypeDescriptorContextImpl internal class from
11310         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
11311
11312         - keep a reference to our PropertyGridView, and move the call to
11313         RedrawBelowItemOnExpansion here from PGV.  This means
11314         programmaticly setting Expanded actually does something visible.
11315
11316         - add a CanResetValue() function which takes into account our
11317         possibly multiple "selected_objects" in the merged case.  Shifting
11318         PropertyGridView to use this method fixes another unreported
11319         crasher found running the test for #79829.
11320
11321         - when Top or Bounds is updated, make sure the PropertyGridTextBox
11322         is updated to reflect this.
11323
11324         * CategoryGridEntry.cs: the ctor takes the PGV now.
11325         
11326 2006-11-06  Jackson Harper  <jackson@ximian.com>
11327
11328         * TextControl.cs: These are 1 based.
11329         * TextBoxBase.cs: When setting the selected text, don't change the
11330         selected text tags, this is done by ReplaceText, just position the
11331         cursor at the end of the new text.
11332
11333 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
11334
11335         * ListView.cs: Allow label edit only when, when LabelEdit is
11336           set to true.
11337
11338 2006-11-06  Jackson Harper  <jackson@ximian.com>
11339
11340         * TextControl.cs: If a suitable wrapping position isn't found,
11341         just wrap right in the middle of a word.
11342
11343 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
11344
11345         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
11346           bug #79820.
11347
11348 2006-11-06  Jackson Harper  <jackson@ximian.com>
11349
11350         * TreeView.cs: Can't use the VisibleCount property when setting
11351         scrollbar heights, because this doesn't take into account whether
11352         or not the horz scrollbar just came visible.
11353
11354 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
11355
11356         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
11357         activated.  Fixes #79369, #79832.
11358
11359 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
11360
11361         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
11362           had to remove support for links that point to a directory. FileInfo
11363           returns no usefull information (means, the directory they point to)
11364           for such links. Replaced some empty string ("") with String.Empty.
11365
11366 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
11367
11368         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
11369         NullReferenceException when attempting to remove node that is not in
11370         collection. Throw NullReferenceException when null is passed to 
11371         Remove. Allow first element of the collection to be removed. Fixes
11372         bug #79831.  In GetEnumerator ().Current return null if positioned 
11373         before the first element of the collection. In GetEnumerator ().Reset,
11374         position before first element of the collection.
11375
11376 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
11377
11378         * PropertyGrid.cs: To match MS, remove default title and description
11379         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
11380         buttons.
11381
11382 2006-11-04  Chris Toshok  <toshok@ximian.com>
11383
11384         * Theme.cs: add a Clamp method, just for kicks.
11385
11386         * ThemeWin32Classic.cs: clamp all color components to [0..255].
11387
11388 2006-11-04  Chris Toshok  <toshok@ximian.com>
11389
11390         * Form.cs: if the form isn't visible, Close() does nothing.
11391
11392 2006-11-03  Chris Toshok  <toshok@ximian.com>
11393
11394         * Form.cs (Close): if the form is modal, don't Dispose of it, only
11395         Hide it.
11396         (WndProc): don't Dispose after handling the WM_CLOSE message.
11397
11398         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
11399         them as such, instead of using casts from Control to Form.  Also,
11400         don't Dispose of the modal dialog when we fall out of the loop -
11401         Close() it instead.
11402
11403         fixes bug #79813.
11404
11405 2006-11-03  Chris Toshok  <toshok@ximian.com>
11406
11407         * Control.cs (Dispose): only go through the dispose thing if we're
11408         @disposing, and we haven't already been disposed.  Fixes bug
11409         #79814.
11410
11411         * Form.cs: no reason to call "base.Dispose()" here instead of
11412         "Dispose()".
11413
11414 2006-11-03  Mike Kestner  <mkestner@novell.com>
11415
11416         * ComboBox.cs : use ToString instead of casts in AddItem for
11417         sorting functionality.  Fixes #79812.
11418
11419 2006-11-03  Chris Toshok  <toshok@ximian.com>
11420
11421         * Application.cs: pave the way for actually using the thread
11422         exception dialog.  it's ifdefed out at the moment.
11423
11424 2006-11-03  Chris Toshok  <toshok@ximian.com>
11425
11426         * ThreadExceptionDialog.cs: until we get a better layout, actually
11427         hide the details textbox and label when we shouldn't see them.
11428
11429 2006-11-03  Jackson Harper  <jackson@ximian.com>
11430
11431         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
11432         multiline textboxes anymore.  This method also determines the
11433         width/height of a textboxes canvas area.
11434         - Sorta a revert of the last patch.  For multiline just position
11435         the controls, then bail.  This way the scrollbar width won't be
11436         altered.
11437
11438 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
11439
11440         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
11441         it dont need.  Fixes #79537.
11442
11443 2006-11-02  Jackson Harper  <jackson@ximian.com>
11444
11445         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
11446         send the status after firing the DndOver event.
11447
11448 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11449
11450         * TrackBar.cs: Now orientation only switches height / width if
11451         the control's handle is created (Win32 does it like this). Also 
11452         fixed a typo in ToString() for a test to pass, changed the 
11453         exception thrown in set_LargeChange and set_SmallChange to 
11454         match Win32 behaviour, and added TrackBar tests to the unit 
11455         tests.
11456
11457 2006-11-02  Chris Toshok  <toshok@ximian.com>
11458
11459         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
11460         not _NET_WM_STATE_NO_TASKBAR.
11461
11462 2006-11-02  Jackson Harper  <jackson@ximian.com>
11463
11464         * TextControl.cs: Increment count by one, since in the update view
11465         count - 1 is used.
11466
11467 2006-11-02  Jackson Harper  <jackson@ximian.com>
11468
11469         * TextBoxBase.cs: Use client rectangle not bounds for checking if
11470         the mouse is in the client rectangle (duh).
11471
11472 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11473         
11474         * TrackBar.cs: Fixed trackbar jumping around when clicking
11475         on it - the trackbar was not detecting correctly at which
11476         side of the thumb the click was done. (fixes #79718)
11477
11478 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
11479
11480         * ListBox.cs: scroll visible area when change SelectedIndex to
11481         a non visible area.  Fixes #79481.
11482
11483 2006-11-01  Jackson Harper  <jackson@ximian.com>
11484
11485         * TextControl.cs: When replacing the selection move the selection
11486         start/end/anchor to the end of the new text.
11487
11488 2006-11-01  Jackson Harper  <jackson@ximian.com>
11489
11490         * XplatUIWin32.cs: When setting the parent change the controls
11491         visibility to it's visibility flag, not to it's old parents
11492         visibility (.Visible walks the parent chain).
11493
11494 2006-11-01  Chris Toshok  <toshok@ximian.com>
11495
11496         * XplatUIX11.cs: revert the #79790 fix, as the simple.
11497         XSetTransientForHint fix breaks paint .net's tool windows.  more
11498         work needed for that one.
11499
11500 2006-11-01  Chris Toshok  <toshok@ximian.com>
11501
11502         * ScrollBar.cs: throw ArgumentException instead of Exception in
11503         LargeChange/SmallChange setters.  fixes unit tests.
11504
11505 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
11506
11507         * ContainerControl.cs: reverted rev.67183 (which was itself
11508         a reversion of rev.66853... eh).
11509         
11510         * Control.cs: Fixes Reflector hang by changing Focus() call
11511         to what it was before rev.66643 (calling Select() here sets 
11512         ActiveControl, which in some situations calls back Focus and 
11513         eventually does a stack overflow). Temp fix.    
11514         Changes to GetNextControl() to not look for children to select when
11515         parent cannot be selectable (so it looks for siblings instead)  
11516         
11517 2006-10-31  Mike Kestner  <mkestner@novell.com>
11518
11519         * CheckedListBox.cs : off by one error in returned index from
11520         ObjectCollection.Add.  Fixes #79758.
11521
11522 2006-10-31  Chris Toshok  <toshok@ximian.com>
11523
11524         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
11525         calls for the textbox/spinner, to keep from recursing to the point
11526         where we crash.  Fixes #79760.
11527
11528 2006-10-31  Chris Toshok  <toshok@ximian.com>
11529
11530         * ListControl.cs (set_SelectedValue): don't throw exceptions on
11531         null/"" value, just return.  matches ms's behavior and fixes some
11532         failing tests.
11533
11534 2006-10-31  Chris Toshok  <toshok@ximian.com>
11535
11536         * Control.cs (set_Capture): make a logic a little easier to
11537         follow.
11538
11539         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
11540         if it's being destroyed.  A necessary fix surely, but a bandaid
11541         also, to fix the stuck capture problem in bug #78413.
11542
11543 2006-10-31  Chris Toshok  <toshok@ximian.com>
11544
11545         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
11546         convention of clearing hwnd.ClientRect when we set the
11547         width/height (so it'll be recalculated by Hwnd).
11548
11549 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
11550
11551         * ContainerControl.cs: reversed Contains check from
11552         ActiveControl due to hanging problems. This fix
11553         partly regresses #79667 (button does not have
11554         initial focus), so this might be a symptom for 
11555         a larger parenting problem (set_ActiveControl
11556         is being called but the child control does
11557         not have the parent set yet?)   
11558         
11559 2006-10-31  Mike Kestner  <mkestner@novell.com>
11560
11561         * MenuAPI.cs : fix keynav when menu is click activated.
11562
11563 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
11564
11565         * ToolStrip*: Version 0.2.
11566
11567         * MenuStrip.cs: Version 0.1.
11568
11569         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
11570
11571 2006-10-30  Chris Toshok  <toshok@ximian.com>
11572
11573         [ fixes the oversized notify icon issue in bug #79745 ]
11574         
11575         * NotifyIcon.cs: scale the icon down to the size we're given by
11576         the XplatUI layer (this would be faster if we did it once instead
11577         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
11578         since it's never invoked.
11579
11580         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
11581         pixels high by default, so let's hardcode our systray icon to that
11582         size.  The SYSTEM_TRAY protocol should really have a way for
11583         client apps to query for the correct icon size.. but oh well.  A
11584         couple of patches to deal with the screwy client_window ==
11585         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
11586         instance, and also make sure we don't XSelectInput twice).
11587
11588 2006-10-30  Chris Toshok  <toshok@ximian.com>
11589
11590         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
11591         recreating forms.  Control recreation is the bane of my existence.
11592         Fix it in a way that keeps everyone happy.
11593
11594 2006-10-30  Chris Toshok  <toshok@ximian.com>
11595
11596         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
11597         just non-CHILD ones.  otherwise sometimes scrollbars end up with
11598         client_windows not being resized to the proper size (ReportBuilder
11599         shows this extremely well).
11600
11601 2006-10-30  Chris Toshok  <toshok@ximian.com>
11602
11603         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
11604         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
11605         showing up in the gnome taskbar.  Fixes bug #79790.
11606
11607 2006-10-30  Chris Toshok  <toshok@ximian.com>
11608
11609         * ApplicationContext.cs: guard against a NRE.
11610
11611         * Application.cs: null out the old MainForm for the context, so we
11612         don't try to use it again once it's disposed.  Fixes bug #79783.
11613
11614 2006-10-30  Chris Toshok  <toshok@ximian.com>
11615
11616         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
11617         BindingContext, set the data source directly, otherwise do the
11618         lazy approach - the actual ListManager will be created when we get
11619         a BindingContext. Fixes bug #79700.
11620
11621 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
11622
11623         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11624           XplatUIX11.cs: Remove old 2 parameter SetVisible.
11625
11626         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
11627
11628 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
11629
11630         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
11631         of SetVisible that allows a window to be shown, but not activated.
11632         This is needed on Windows for MenuStrip, and can probably be used
11633         with MainMenu and ComboBox to fix the focus stealing issues on
11634         Windows.
11635
11636         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
11637
11638 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
11639
11640         * PictureBox.cs: Fix the output of the ToString method.
11641
11642 2006-10-29  Chris Toshok  <toshok@ximian.com>
11643
11644         * Control.cs (get_TopLevelControl): fix bug #79781.
11645
11646 2006-10-29  Chris Toshok  <toshok@ximian.com>
11647
11648         * ListControl.cs (set_DataSource): throw Exception here, not
11649         ArgumentException, to match MS behavior.
11650
11651 2006-10-29  Chris Toshok  <toshok@ximian.com>
11652
11653         * Form.cs: remove the try-catch's around calls to GetWindowState.
11654         We can just check the return value.
11655
11656         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
11657         Instead return -1.
11658
11659         * XplatUI.cs: Add note about additional return value for
11660         GetWindowState.
11661
11662 2006-10-29  Chris Toshok  <toshok@ximian.com>
11663
11664         * Control.cs (CreateHandle): when we create our handle, we also
11665         create the handles of our child controls.  Fixes one of the
11666         Control unit tests (CH11).
11667
11668 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
11669
11670         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
11671
11672 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
11673
11674         * ThemeClearlooks.cs: A little speedup.
11675
11676 2006-10-27  Chris Toshok  <toshok@ximian.com>
11677
11678         * Control.cs: implement Control.FromChildHandle in a way that
11679         matches the docs (and fixes the failed test.)
11680
11681 2006-10-27  Chris Toshok  <toshok@ximian.com>
11682
11683         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
11684         comments).
11685
11686         * DataGrid.cs: implement ResetForeColor such that the tests
11687         succeed.
11688         
11689 2006-10-27  Chris Toshok  <toshok@ximian.com>
11690
11691         * ToolBarButton.cs: setting text/tooltiptext to null results in it
11692         being set to "".  Fixes bug #79759.
11693
11694 2006-10-27  Jackson Harper  <jackson@ximian.com>
11695
11696         * TextControl.cs: We need to clear the entire selection area when
11697         setting the start, otherwise multiline selections are still
11698         visible.
11699
11700 2006-10-26  Chris Toshok  <toshok@ximian.com>
11701
11702         * PropertyGridView.cs: 
11703
11704         - ifdef all the code specific to the double
11705         buffer case, and provide some alternatives in the non-doublebuffer
11706         code, which makes heavy use of XplatUI.ScrollWindow to move things
11707         around without having to invalidate (and cause flicker).  There
11708         are still some drawing problems in the non-doublebuffered case, so
11709         DOUBLEBUFFER is defined by default.
11710
11711         - Fix the way dropdowns are handled.  now we explicitly watch for
11712         the events which might cause the dropdown to close, and break out
11713         of the nested event loop there.  This gets rid of all Capture
11714         code, at the expense of the Msg special casing.  Seems to work,
11715         though, and fixes bug #79743.
11716
11717 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
11718         * Control.cs: SetIsRecreating now recreates implicitly added
11719         child controls as well. Finally fixes #79629. The flag passed to 
11720         SetIsRecreating has also been removed since it wasn't used.
11721         
11722 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11723
11724         * PageSetupDialog.cs: Clean some code, fix some bits, 
11725         add some checks, and add a printer sub-dialog.
11726
11727 2006-10-26  Chris Toshok  <toshok@ximian.com>
11728
11729         * PropertyGrid.cs: make set_SelectedObject call
11730         set_SelectedObjects, and move the duplicate logic to the
11731         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
11732
11733         * PropertyGridView.cs: hide the textbox when we get a
11734         SelectedObjectsChanged event.
11735
11736         Fixes bug #79748.
11737
11738 2006-10-26  Chris Toshok  <toshok@ximian.com>
11739
11740         * PropertyGridView.cs: deal with the type converter not supporting
11741         GetStandardValues() or GetStandardValues() returning null, which
11742         is does in the default case.  Fixes #79742.
11743
11744 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
11745
11746         * CheckedListBox.cs: nunit no longer crashes when selecting 
11747         Project/Edit menu option
11748         
11749 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
11750
11751         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
11752         is no menu selected. fixes #79739
11753
11754 2006-10-25  Chris Toshok  <toshok@ximian.com>
11755
11756         * PropertyGridView.cs: factor out the splitter invalidation code
11757         into the SplitterPercent setter, and for kicks implement the
11758         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
11759         amount in either direction.
11760
11761 2006-10-25  Chris Toshok  <toshok@ximian.com>
11762
11763         * PropertyGridView.cs: do some cleanup of the brush used to draw
11764         text - read only fields should be grayed out.  not sure how to do
11765         this with the textbox, though.  but the textbox's should also be
11766         readonly now at least.  Also, hide/show the textbox when resizing
11767         the control.
11768         
11769         * CursorConverter.cs: use System.Reflection when getting the
11770         properties of Cursors, as TypeDescriptor.GetProperties isn't
11771         returning static properties.
11772
11773 2006-10-25  Chris Toshok  <toshok@ximian.com>
11774
11775         * PropertyGridView.cs: factor out the up/down handling, and reuse
11776         it for page up/down.  also add End/Home support.
11777
11778 2006-10-25  Chris Toshok  <toshok@ximian.com>
11779
11780         * PropertyGridView.cs:
11781
11782         - ensure the selected grid item is visible in the scrolled area,
11783         fixes bug #79572.
11784
11785         - fix Keys.Down handling when you're on the last item in the
11786         propertygrid.
11787
11788 2006-10-25  Mike Kestner  <mkestner@novell.com>
11789
11790         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
11791         clicks too.  Fixes #79725.
11792
11793 2006-10-24  Chris Toshok  <toshok@ximian.com>
11794
11795         * PropertyGrid.cs: use property.Converter instead of
11796         TypeDescriptor.GetConverter(property.PropertyType), so we catch
11797         TypeConverters declared on the property as well as on the
11798         PropertyType.  Fixes bug #79678.
11799
11800 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
11801
11802         * MimeIcon.cs, Mime.cs:
11803           Fallback to the default platform handler if no shared mime info
11804           stuff exists (fixes #79693).
11805
11806 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
11807         * ContainerControl.cs: Incorrect contains check in ActiveControl 
11808         from previous fix (duh).
11809
11810 2006-10-20  Chris Toshok  <toshok@ximian.com>
11811
11812         * PropertyGridView.cs: the dropdown should be MIN(number of items
11813         in list, 15).  Fixes #79551.
11814
11815 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
11816         Fixes #79384, #79394, #79652, #79667
11817         * Application.cs: 
11818         
11819         - Modal windows are now destroyed in the proper order for windows
11820         
11821         * ContainerControl.cs:
11822         
11823         - ActiveControl setter has more conditions on when to return:
11824                 - if we're reselecting the active control, but it actually
11825                 didn't have focus (window hidden or some such), it runs
11826                 - if the active control being selected doesn't actually 
11827                 exist in the container, it returns
11828         
11829         * Form.cs
11830         
11831         - The ShowDialog now gets the current form as the owner when
11832         invoking without parameters, and correctly activates the owner 
11833         when returning
11834         
11835         * MessageBox.cs
11836         
11837         - MessageBox now catches the Escape key to exit
11838
11839 2006-10-20  Chris Toshok  <toshok@ximian.com>
11840
11841         * PropertyGridView.cs: fix a number of issues (bug #78565, and
11842         most of bug #79676):
11843
11844         - you can navigate around the property grid with the arrow keys.
11845
11846         - the dropdown is sized properly when the pg has a vertical
11847         scrollbar.
11848
11849         - fix the indentation for subentries, and properly select the
11850         entire label rect.
11851
11852         - fix the gray bar's drawing (only draw it to the last element,
11853         not for the height of the control.  Also make sure we draw that
11854         last horizontal grid line.
11855
11856         - use the same mechanism the datagrid uses wrt the editing textbox
11857         when scrolling/resizing/etc.  Namely, we hide it first, do the
11858         operation, then show it again (if it's still visible).
11859         
11860         - aggressively remove a lot of unnecessary refreshes (and also
11861         calls to Invalidate(). call more limited variants, and only redraw
11862         what we need.)
11863         
11864         * PropertyGrid.cs:
11865
11866         - when we're populating the merged collection, fill in the UI
11867         parent with either the passed in item, or the category item we
11868         create.
11869
11870         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
11871
11872         * GridItem.cs: drop some fully qualified names.
11873         
11874         * GridEntry.cs: add a "UIParent", which is basically the parent
11875         treenode.
11876
11877         * GridItemCollection.cs: add an IndexOf method.
11878
11879 2006-10-20  Mike Kestner  <mkestner@novell.com>
11880
11881         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
11882         a working win32 NC invalidation mechanism, we can't invalidate
11883         menus.  [Fixes #79705]
11884
11885 2006-10-20  Mike Kestner  <mkestner@novell.com>
11886
11887         * ListBox.cs : don't update the VScrollbar if the list is empty,
11888         just hide it.  [Fixes #79692]
11889
11890 2006-10-20  Jackson Harper  <jackson@ximian.com>
11891
11892         * RichTextBox.cs: Handle some special chars better, and don't skip
11893         the entire group when we encounter a special char that we don't
11894         handle correctly.
11895
11896 2006-10-18  Chris Toshok  <toshok@ximian.com>
11897
11898         * PropertyGridView.cs: address a number of issues from bug #79676,
11899         mostly of the cosmetic variety.
11900
11901         - The highlight rectangle for indented items not extends all the
11902         way to the left.
11903
11904         - Indented items aren't indented so much.
11905
11906         - the dropdown is properly sized width-wise if the pg has a
11907         vertical scrollbar.
11908
11909 2006-10-18  Chris Toshok  <toshok@ximian.com>
11910
11911         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
11912         systray stuff is rather convoluted to begin with.
11913
11914         systray icons are a single window for some reason (that I haven't
11915         figured out yet), and for them, client_window == whole_window.
11916         Given the way the tests are structured elsewhere to determine
11917         which paints are pending (client vs. nc), that situation will
11918         always yield PAINT, not NCPAINT.  So, if we have a pending
11919         nc_expose and no pending expose, remove the hwnd from the paint
11920         queue, and also set nc_expose_pending to false, to keep us from
11921         blocking further expose's adding the hwnd to the paint queue.
11922
11923         phew.  like i said, a rather convoluted change.  Fixes the
11924         notifyicon repaint issues in bug #79645.
11925
11926 2006-10-18  Chris Toshok  <toshok@ximian.com>
11927
11928         * Form.cs: when getting the backcolor of the form, don't get
11929         base.BackColor, as this allows parents to influence the background
11930         color.  This breaks mdi forms.  Instead, if the background_color
11931         is empty, return the default.
11932
11933 2006-10-18  Chris Toshok  <toshok@ximian.com>
11934
11935         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
11936         to being private instead of internal static.
11937
11938         * Control.cs: remove all the stupid ParentWaitingOnRecreation
11939         crap, it wasn't working for more deeply nested controls anyway,
11940         and we already have the is_recreating flag - use that instead.
11941         Before calling DestroyHandle in RecreateHandle, recurse through
11942         the control tree setting it to true.  this returns the recreate
11943         code to much of its original simplicity, while now guaranteeing we
11944         actually recreate everything we're supposed to.  This change gets
11945         fyireporting actually showing mdi children.
11946
11947 2006-10-17  Chris Toshok  <toshok@ximian.com>
11948
11949         * Form.cs: remove some debug spew, and collapse some duplicate
11950         code at the end of SetClientSizeCore.
11951
11952         * XplatUIX11.cs: 
11953         - add some more debug spew here too wrt Destroy handling.
11954         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
11955         in Control's handling of WM_DESTROY.
11956         - Remove the handling of zombie window DestroyNotifies from the
11957         event loop - we don't need it.  Now the only DestroyNotifies we
11958         actually handle are ones generated by X.
11959         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
11960         match gtk's (functioning) handling of this. This keep metacity
11961         from leaving droppings in the form of wm borders with no window
11962         contents all over the place.
11963
11964         * Control.cs:
11965         - add a bunch of debug spew wrt control recreation.
11966         - fix a bug where we weren't tracking Visible properly on
11967         recreated hwnds.
11968         - fixed the WM_PAINT double buffer handling to support re-entrant
11969         calls (yes, i know it's gross, but it's happening to us).
11970
11971 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
11972         * ThemeWin32Classic.cs: changed drawing of selected days
11973         to make them look better.
11974
11975 2006-10-16  Chris Toshok  <toshok@ximian.com>
11976
11977         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
11978         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
11979
11980         * XplatUIX11.cs: move away from using hwnd.client_dc and
11981         hwnd.non_client_dc and on to a stack of dc's (and in window's
11982         case, PAINTSTRUCT's), so we can deal with nested Paint calls
11983         without puking or not disposing of Graphics objects.
11984
11985         * XplatUIOSX.cs: same.
11986
11987         * XplatUIWin32.cs: same.
11988
11989 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
11990
11991         * FileDialog.cs: Don't call on_directory_changed inside
11992           OnSelectedIndexChanged (it changes the SelectedIndex too).
11993           Instead move it to OnSelectionChangeCommitted.
11994
11995 2006-10-13  Chris Toshok  <toshok@ximian.com>
11996
11997         * XplatUIX11.cs: more Destroy work.  the current code does the
11998         following things, in order:
11999
12000         1. Enumerates all handles of all controls at or below the one
12001         being destroyed, in pre-order.  As it is doing this, it marks the
12002         handles as zombie and clears all references to them.
12003         
12004         2. calls XDestroyWindow on the window passed in.
12005
12006         3. SendMessage's WM_DESTROY to all he handles in the accumulated
12007         list.
12008
12009 2006-10-13  Chris Toshok  <toshok@ximian.com>
12010
12011         * XplatUIX11.cs: set hwnd.zombie to true before calling
12012         SendMessage (WM_DESTROY).  this keeps us from marking the new
12013         window a zombie, and also keeps us from calling sendmessage at
12014         all.
12015
12016 2006-10-13  Jackson Harper  <jackson@ximian.com>
12017
12018         * TextControl.cs: Do not show the caret and selection at the same
12019         time.  Reduces ugliness by 35%.
12020
12021 2006-10-13  Chris Toshok  <toshok@ximian.com>
12022
12023         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
12024         zombie after we do the recursive call, so we actually do call
12025         SendMessage on the children controls.
12026         (GetMessage): if we find a pending paint event for a zombie hwnd,
12027         remove the hwnd from the paint queue, or else it will always be
12028         there (and we'll effectively loop infinitely)
12029
12030 2006-10-13  Mike Kestner  <mkestner@novell.com>
12031
12032         * MenuItem.cs : add Selected format under keynav too.
12033         Fixes #79528.
12034
12035 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
12036
12037         * PropertyGrid.cs: Fixed some NRE's and small difference between our
12038         implementation and that of MS.
12039
12040 2006-10-13  Chris Toshok  <toshok@ximian.com>
12041
12042         * Control.cs (OnInvalidated) only futz with the invalid_region if
12043         the control is double buffered.  this fixes the apparent hang in
12044         the ListView unit tests.  Someone needs to make the
12045         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
12046
12047 2006-10-13  Chris Toshok  <toshok@ximian.com>
12048
12049         * PropertyGridView.cs:
12050
12051         - do a little refactoring so that only one place calls
12052         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
12053         else call that.  Also make it Refresh, since there are redraw bugs
12054         otherwise (we should take a look at that...)
12055
12056         - do a little more refactoring work to share the body of code
12057         involved with the drop down.  it was duplicated in the code
12058         dealing with the listbox handling and in the code dealing with the
12059         UITypeEditors.
12060
12061         - add a Capture to the dropdown form's control once it's
12062         displayed, and add a MouseDown handler that checks to make sure
12063         the position is inside the control.  If it's not, close the
12064         dropdown.  This fixes #78190.
12065
12066         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
12067         if the value is different than the initial value.
12068         
12069 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
12070
12071         * Control.cs: see #78650
12072         - Fixed GetNextControl for several cases:
12073                 - Changed FindFlatForward to return 
12074                 correct sibling control when more than one
12075                 control has same TabIndex as the currently 
12076                 focused one.
12077                 - Changed FindFlatBackward to loop children
12078                 from last to first and apply same logic as in
12079                 FindFlatForward
12080                 - Changed FindControlForward to search for
12081                 children when control is not a container
12082                 but has children, or search for siblings if
12083                 control is a container...
12084                 - Changed FindControlBackward   to continue
12085                 searching for child controls when hitting 
12086                 Panel-like parents
12087                 
12088         - Fixed Focus method to update ActiveControl
12089         (FocusTest.FocusSetsActive failure)
12090         
12091         * TabControl.cs:
12092         - Focus rectangle now refreshes when gaining
12093         or losing focus
12094         - Removed grab for Tab key on IsInputKey that 
12095         was keeping tab navigation from working (#78650)
12096
12097 2006-10-13  Chris Toshok  <toshok@ximian.com>
12098
12099         * PropertyGridView.cs:
12100         - Rewrite SetPropertyValue to loop over SelectedGridItem's
12101         SelectedObjects.
12102
12103         - Deal with GridItem.Value == null a few places.
12104
12105         * PropertyGrid.cs: 
12106         - replace the PopulateGridItemCollection with a pair of methods
12107         which compute the intersection of all the properties in the
12108         SelectedObjects array.  Fixes #79615.
12109
12110         - Throw ArgumentException from set_SelectedObjects if there's a
12111         null in the array.
12112
12113         - Add GetTarget method which can be used to traverse up the
12114         GridItem.Parent chain.  It depends on the assumption that
12115         selected_objects for different GridEntries are always in the same
12116         order (a safe assumption).  Use this method and loop over all the
12117         selected objects in the entry when calling RemoveValueChanged and
12118         AddValueChanged.
12119         
12120         * GridEntry.cs: Make this handle multiple selected objects.
12121         .Value returns null if not all the selected objects share the same
12122         value.
12123
12124 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
12125         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
12126           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
12127           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
12128           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
12129           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
12130         add additional functionality.
12131
12132 2006-10-12  Mike Kestner  <mkestner@novell.com>
12133
12134         * ErrorProvider.cs : new ToolTipWindow ctor sig.
12135         * HelpProvider.cs : new ToolTipWindow ctor sig.
12136         * ToolTip.cs : remove ToolTip param from Window sig since it is
12137         not used.
12138         * ToolBar.cs : add tooltip support.  Fixes #79565.
12139
12140 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
12141
12142         * ComboBox.cs: move the events in set_SelectedIndex to 
12143         after the call to HighlightIndex in order to avoid 
12144         possible recursion and subsequent problems with the call
12145         to HighlightIndex and include a range check in 
12146         set_HighlightIndex. Fixes #79588
12147         
12148 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
12149
12150         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
12151         to ui thread's settings instead of sunday. 
12152         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
12153
12154 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
12155
12156         * DateTimePicker.cs
12157         * MonthCalendar.cs
12158         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
12159         and implement missing functionality (selecting different parts 
12160         of the date and edit them individually with the keyboard).
12161         
12162 2006-10-11  Chris Toshok  <toshok@ximian.com>
12163
12164         * Control.cs (OnInvalidated): fix NRE relating to last change.
12165
12166 2006-10-11  Chris Toshok  <toshok@ximian.com>
12167
12168         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
12169         atoms in _NET_WM_STATE here if the window is maximized.  We need
12170         to do this because we're *replacing* the existing _NET_WM_STATE
12171         property, so those atoms will be lost otherwise, and any further
12172         call to GetWindowState will return Normal for a window which is
12173         actually maximized.  Fixes #79338.
12174
12175 2006-10-11  Jackson Harper  <jackson@ximian.com>
12176
12177         * TextControl.cs: Special case for setting selection end to
12178         selection start, we basically kill the anchor.
12179         - some todo comments.
12180
12181 2006-10-11  Chris Toshok  <toshok@ximian.com>
12182
12183         * Control.cs: switch to using an "invalid_region" to track which
12184         parts of the image buffer need updating.  This is more code than
12185         the simple fix from r66532.  That version just attempted to always
12186         fill the entire buffer on redraw, which turns out to be
12187         inefficient when invalidating small rectangles.  This version
12188         simply adds the invalid rectangle to the invalid region.  When we
12189         get any WM_PAINT message we see if it can be filled using the
12190         image buffer, and if it can't (if the paint event's clip rectangle
12191         is visible in the invalid region) we first fill the image buffer.
12192         So, the image buffer is still a cache, we just fill it lazily.
12193
12194         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
12195         need it any longer.
12196
12197 2006-10-11  Chris Toshok  <toshok@ximian.com>
12198
12199         * XplatUIX11.cs (SetWindowPos): we need to update both position as
12200         well as size after calling XMoveResizeWindow.  This keeps us from
12201         ignoring future SetWindowPos calls.  Fixes the disappearing
12202         DateTimePicker in the ToolBarDockExample from bug #72499.
12203
12204 2006-10-11  Chris Toshok  <toshok@ximian.com>
12205
12206         * TextBoxBase.cs: reorder things a bit when it comes to
12207         resizing-causing-recalculation.  we were recalculating the
12208         document when our position was changed, which shouldn't happen.
12209         We only care about size changes.  Clear up some more redundant
12210         recalculation calls while I'm at it.  This makes the toolbar dock
12211         example snappy when you're just dragging toolbars around (since it
12212         causes a relayout whenever you move one.)
12213
12214 2006-10-11  Chris Toshok  <toshok@ximian.com>
12215
12216         * ToolBarButton.cs (get_Rectangle): this only returns
12217         Rectangle.Empty if Visible == false, or Parent == null.
12218         Parent.Visible doesn't matter.
12219
12220 2006-10-10  Chris Toshok  <toshok@ximian.com>
12221
12222         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
12223         by .net 1.1, so switch to an internal method instead.
12224
12225 2006-10-10  Chris Toshok  <toshok@ximian.com>
12226
12227         * Control.cs (WM_PAINT): when a control is double buffered we draw
12228         initially to the ImageBuffer and then copy from there.  But when a
12229         parent control which has child controls is double buffered, the
12230         initial drawing doesn't encompass the entire ClientRectangle of
12231         the parent control, so we end up with uninitialized bits (this is
12232         easily seen by dragging the top toolbar in
12233         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
12234         manually set the ClipRectangle of the paint_event (only the one we
12235         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
12236         of the nastiness in bug #72499.
12237
12238         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
12239         which we use in Control.cs's WM_PAINT handling.
12240
12241 2006-10-10  Jackson Harper  <jackson@ximian.com>
12242
12243         * TextBoxBase.cs: Finish off the autoscrolling stuff.
12244
12245 2006-10-10  Chris Toshok  <toshok@ximian.com>
12246
12247         * Cursor.cs: Apply a slightly different patch to the one suggested
12248         in #79609.
12249
12250 2006-10-10  Jackson Harper  <jackson@ximian.com>
12251
12252         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
12253         not the parent form.
12254         * TextControl.cs: use difference in old line count vs new count to
12255         calculate how many lines were added, this takes into account soft
12256         line breaks properly.
12257
12258 2006-10-10  Chris Toshok  <toshok@ximian.com>
12259
12260         * LinkLabel.cs: don't call MeasureCharacterRanges against a
12261         rectangle located at 0,0 and the size of the text.  Use
12262         ClientRectangle instead.  This fixes rendering of non-left aligned
12263         link labels.
12264
12265 2006-10-10  Jackson Harper  <jackson@ximian.com>
12266
12267         * TextBoxBase.cs: When we set the selection start position the
12268         caret.
12269         * TextControl.cs: Need to update the caret when we decrement it to
12270         zero.
12271         - Make sure that the selection_visible flag gets reset to false if
12272         the selection isn't visible.  Before this you could get it set to
12273         visible by changing the selection start, then changing the end to
12274         equal the start.
12275
12276 2006-10-09  Jackson Harper  <jackson@ximian.com>
12277
12278         * TreeView.cs: Don't update scrollbars when we aren't visible.
12279         * TreeNodeCollection.cs: Only need to update scrollbars if being
12280         added to an expanded visible node or the root node.
12281
12282 2006-10-09  Chris Toshok  <toshok@ximian.com>
12283
12284         * XplatUIX11.cs (SendMessage): fix NRE.
12285
12286 2006-10-09  Jackson Harper  <jackson@ximian.com>
12287
12288         * TextBoxBase.cs: Implement horizontal autoscrolling.
12289         * TextControl.cs: Add a movement types that allows moving forward
12290         and backwards without wrapping.
12291
12292 2006-10-09  Mike Kestner  <mkestner@novell.com>
12293
12294         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
12295         with focus "expansion" of labels.  Fixes #79532 and then some.
12296         * ThemeWin32Classic.cs : add LineLimit to ListView label format
12297         when wrapping.
12298
12299 2006-10-09  Jackson Harper  <jackson@ximian.com>
12300
12301         * TextBoxBase.cs: Set the default max values to MaxValue since
12302         we use the scrollbar for autoscrolling and the default value is
12303         100.  If we don't do this the caret won't keep up with typing
12304         after about 18 characters.
12305         * TextControl.cs: Make sure the selection is offset by the
12306         viewport x.  This fixes selection when using auto scrolling.
12307
12308 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
12309         
12310         * Form.cs: The active control should be selected after the 
12311         OnLoad so that any child control initialization that affects
12312         the selection is done. Fixes #79406
12313
12314 2006-10-06  Chris Toshok  <toshok@ximian.com>
12315
12316         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
12317         to have no evil effects.
12318
12319         - Stop selecting StructureNotifyMask on non-toplevel windows.
12320
12321           The only way children should be resized is by using the SWF api,
12322           and we already send WM_WINDOWPOSCHANGED messages in those cases.
12323           Toplevel windows can be interacted with via the window manager,
12324           and so we keep the input mask there.
12325
12326           The other event StructureNotifyMask gives us (that we care
12327           about) is DestroyNotify.  The code is already structured such
12328           that it assumes we won't be getting a DestroyNotify event for
12329           the window we pass to XDestroyWindow (which is what
12330           StructureNotifyMask is supposed to guarantee.)  So, that code
12331           shouldn't be affected by this either.
12332
12333         - Stop selecting VisibilityChangeMask altogether.
12334
12335           We weren't doing anything with the resulting events anyway.
12336         
12337         This vastly reduces the number of X requests and events we see
12338         when resizing/laying out a large ui.
12339
12340 2006-10-06  Chris Toshok  <toshok@ximian.com>
12341
12342         * ScrollableControl.cs (DisplayRectangle): we need to take into
12343         account the DockPadding regardless of whether or not auto_scroll
12344         == true.  rework this slightly to this effect, and fix bug #79606,
12345         and part of #72499 (you can now see the drag handles and drag
12346         toolbars around).
12347
12348 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
12349
12350         * ListViewItem.cs: Collections of selected and checked items are now
12351         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
12352         we mark the collection "dirty".
12353         * ListView.cs: Marked collections readonly. Modified UpdateSelection
12354         to only clear SelectedItems when a new item is selected and MultiSelect
12355         is enabled. CheckedItems and SelectedItems now subscribe to Changed
12356         event of ListViewItemCollection, and mark its list dirty whenever
12357         that event is fire. This allows us to return selected/checked items 
12358         in the same order as they are in the Items collection. This matches
12359         the MS behavior.
12360
12361 2006-10-06  Chris Toshok  <toshok@ximian.com>
12362
12363         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
12364         right mouse clicks.  Fixes bug #79593.
12365
12366 2006-10-06  Chris Toshok  <toshok@ximian.com>
12367
12368         * Splitter.cs: doh, fix splitters that don't want to cancel the
12369         movement when you drag them.  Also, impose the limits on the
12370         values we send to the SplitterMovingEvent.  Fixes #79598.
12371
12372 2006-10-06  Jackson Harper  <jackson@ximian.com>
12373
12374         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
12375         since we use this for auto scrolling also.
12376
12377 2006-10-05  Chris Toshok  <toshok@ximian.com>
12378
12379         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
12380         beginning to think that most datagrid column types don't need this
12381         method.  Fixes bug #79392.
12382
12383 2006-10-05  Chris Toshok  <toshok@ximian.com>
12384
12385         * DataGrid.cs: move back to a more lazy scheme for creating the
12386         CurrencyManager, so we aren't updating it every time you set
12387         either DataSource or DataMember.  Also, don't call
12388         RecreateDataGridRows if the currency manager hasn't changed.
12389
12390 2006-10-05  Chris Toshok  <toshok@ximian.com>
12391
12392         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
12393         emitted, SelectedIndex should already be updated.  Fixes bug
12394         #78929.
12395
12396 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
12397
12398         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
12399           ToolStripTextBox.cs: Initial commit.
12400         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
12401
12402 2006-10-05  Jackson Harper  <jackson@ximian.com>
12403
12404         * TabControl.cs: We need to invalidate the tab control area when
12405         new ones are added (duh).
12406
12407 2006-10-03  Chris Toshok  <toshok@ximian.com>
12408
12409         * Form.cs (ProcessDialogKey): if the focused control is in this
12410         form and is a button, call its PerformClick method here.  Fixes
12411         #79534.
12412
12413 2006-10-04  Jackson Harper  <jackson@ximian.com>
12414
12415         * TabPage.cs: Ignore setting of Visible, and add an internal
12416         method for setting the controls visibility.  TabPage's Visible
12417         property is a little strange on MS, this seems to make us
12418         compatible, and fixes cases where people set all the tab pages to
12419         visible.
12420         * TabControl.cs: Use the new internal setting on tab pages
12421         visibility.
12422
12423 2006-10-03  Mike Kestner  <mkestner@novell.com>
12424
12425         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
12426
12427 2006-10-03  Mike Kestner  <mkestner@novell.com>
12428
12429         * ListView.cs : use is_visible instead of Visible to check if 
12430         scrollbars should be placed/sized.  Also some max_wrap_width
12431         love for LargeIcon view.  [Fixes #79533]
12432
12433 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
12434
12435         * TextControl.cs :
12436           Make set_TextAlign() do actually update the align. Fixed #78403.
12437
12438 2006-10-03  Chris Toshok  <toshok@ximian.com>
12439
12440         * DataGrid.cs: fix a crash when switching datasources if the
12441         vertical scrollbar is at someplace other than Value = 0.  Also,
12442         reduce the number of recalculation passes we do in SetDataSource
12443         from 2 to 1.
12444
12445 2006-10-03  Jackson Harper  <jackson@ximian.com>
12446
12447         * TextBoxBase.cs: Move the if value the same bail check up, we
12448         don't want to empty the document if it is already empty, this
12449         seems to severly mess up the caret.  TODO: I should probably fix
12450         the empty statement to update teh caret somehow.
12451
12452 2006-10-03  Chris Toshok  <toshok@ximian.com>
12453
12454         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
12455         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
12456         reflection, an internal row type, properties on said type, etc.)
12457         will work with our datagrid.  Fixes #79531.
12458
12459 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
12460
12461         * FileDialog.cs: Don't crash if a path is not accessible
12462           (System.UnauthorizedAccessException). Fixes #79569.
12463         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
12464           a ':' too. Return unknown icon for those paths/files.
12465
12466 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
12467
12468         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
12469         GetContainerControl returns null.
12470
12471 2006-10-02  Chris Toshok  <toshok@ximian.com>
12472
12473         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
12474         call to XGetWindowAttributes instead of "handle".  fixes an X
12475         error using notifyicon after the NotifyIconWindow to Form base
12476         class switch.
12477
12478 2006-10-02  Chris Toshok  <toshok@ximian.com>
12479
12480         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
12481         server grab and looping we need to do to get down to the most
12482         deeply nested child window.
12483         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
12484         QueryPointer again after the WarpPointer so we can generate a
12485         proper (fake) MotionNotify event to be enqueued in the destination
12486         window's queue.
12487         (GetCursorPos): call QueryPointer.
12488
12489         Fixes #79556.
12490
12491 2006-10-02  Jackson Harper  <jackson@ximian.com>
12492
12493         * NotifyIcon.cs: Derive the notify icon from a form, so things
12494         like FindForm work on it.
12495         - Swallow the WM_CONTEXTMENU message, since that is generated on
12496         mouse down, and context menu is a mouse up kinda guy.  I believe
12497         the correct fix here is probably to make the notify icon entirely
12498         NC area, but this seems to work fine for anyone not manipulating
12499         WndProc.
12500
12501 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
12502
12503         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
12504           ToolStripItemCollection.cs, ToolStripLabel.cs,
12505           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
12506           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
12507           Initial implementation.
12508         * TextRenderer.cs: Provide padding to MeasureText.
12509
12510 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
12511
12512         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
12513         of ButtonBaseAccessibleObject. Fix bug #79552.
12514
12515 2006-10-02  Jackson Harper  <jackson@ximian.com>
12516
12517         * MdiWindowManager.cs: When maximizing use the containers client
12518         rect, not it's bounds, so nc area is accounted correctly.
12519         - Use the parent form's size for the menu position, since the
12520         client isn't always the full form size.
12521
12522 2006-10-01  Chris Toshok  <toshok@ximian.com>
12523
12524         * ScrollableControl.cs: make sure neither right_edge or
12525         bottom_edge are < 0, since they're used as LargeChange for the
12526         horiz/vert scrollbars respectively.  Fixes #79539.
12527
12528 2006-10-01  Chris Toshok  <toshok@ximian.com>
12529
12530         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
12531         the xplatuix11 code can cause us to destroy/recreate our handle.
12532
12533         * XplatUIX11.cs
12534         (SystrayAdd):
12535         - this code can be invoked many times for the same Hwnd.  Make
12536           sure we only destroy the client window once (the first time this
12537           method is called).  This fixes bug #79544.
12538         - Remove the call to the improperly bound XSync.  why we had two
12539           bindings to this, I will never know, but this call resulted in
12540           events being discarded from the queue(!).
12541         - correct a misunderstanding of _XEMBED_INFO - the second atom is
12542           not our current state but the state we wish to be in.  So, 0 if
12543           we don't want to be mapped.  Change it to 1.
12544         (SystrayRemove): The XEMBED spec makes mention of the fact that
12545         gtk doesn't support the reparent of client windows away from the
12546         embedder.  Looking at gtksocket-x11.c seems to agree with this.
12547         The only avenue we have for removing systray icons is to destroy
12548         them.  We don't want the handle to go away for good, though, so
12549         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
12550         #79545.
12551         
12552 2006-10-01  Chris Toshok  <toshok@ximian.com>
12553
12554         * Form.cs (WndProc): inline the native_enabled variable usage into
12555         the cases in which it's used.  Fixes #79536.
12556
12557 2006-09-29  Mike Kestner  <mkestner@novell.com>
12558
12559         * ListView.cs : toggle the selection state for ctrl clicks in 
12560         multiselect mode. [Fixes #79417]
12561
12562 2006-09-29  Mike Kestner  <mkestner@novell.com>
12563
12564         * ListView.cs : kill CanMultiSelect and refactor the selection
12565         code to support multiselection in the absence of mod keys. Steal
12566         arrow/home/end keys by overriding InternalPreProcessMessage to
12567         restore regressed keynav behavior.
12568         [Fixes #79416]
12569
12570 2006-09-29  Jackson Harper  <jackson@ximian.com>
12571
12572         * MdiClient.cs: Repaint the titlebars when the active window is
12573         changed.
12574
12575 2006-09-29  Chris Toshok  <toshok@ximian.com>
12576
12577         * Application.cs: when entering a runloop with a modal, make sure
12578         the hwnd is enabled.  Fixes #79480.
12579
12580 2006-09-29  Chris Toshok  <toshok@ximian.com>
12581
12582         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
12583         when ListManager.CanAddRows == false, bump us back one.
12584
12585         * DataGridColumnStyle.cs (ParentReadOnly): remove the
12586         listmanager.CanAddRows check.  This makes ArrayLists uneditable
12587         using a datagrid, which is not right.
12588         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
12589         is an IEditable, but call property_descriptor.SetValue regardless.
12590         fixes #79435.
12591
12592 2006-09-29  Chris Toshok  <toshok@ximian.com>
12593
12594         * DataGridBoolColumn.cs: we need to test equality in the face of
12595         possible null values (as is the case with the default NullValue).
12596         This patch keeps us from crashing in that case.
12597
12598 2006-09-29  Jackson Harper  <jackson@ximian.com>
12599
12600         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
12601         here, since it will get called for every node collection in the
12602         tree. This is now done in the treeview once the sorting is
12603         finished.
12604         * TreeView.cs: Recalculate the visible order, and update the
12605         scrollbars after sorting, set the top nope to the root so that the
12606         recalc actually works.
12607
12608 2006-09-29  Chris Toshok  <toshok@ximian.com>
12609
12610         * LinkLabel.cs: more handling of the default link collection in
12611         the face of LinkArea manipulation.  The default link collection
12612         contains 1 element (start=0,length=-1).  If the user sets LinkArea
12613         to anything and the links collection is the default, clear it.
12614         Then only add the link if its nonempty.  Fixes #79518.
12615
12616 2006-09-29  Chris Toshok  <toshok@ximian.com>
12617
12618         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
12619         piece correctly when we hit a '\n'.  Fixes #79517.
12620
12621 2006-09-29  Chris Toshok  <toshok@ximian.com>
12622
12623         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
12624         change the binding of gdk_init_check to take two IntPtr's, and
12625         pass IntPtr.Zero for both of them.  Fixes #79520.
12626
12627 2006-09-29  Mike Kestner  <mkestner@novell.com>
12628
12629         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
12630         [Fixes #78779]
12631
12632 2006-09-28  Jackson Harper  <jackson@ximian.com>
12633
12634         * XplatUIX11.cs: When translating NC messages make sure we go from
12635         whole window to screen, not client window to screen.
12636         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
12637         method doesn't exist
12638         - Skip over controls that aren't forms when arranging.
12639
12640 2006-09-28  Jackson Harper  <jackson@ximian.com>
12641
12642         * XplatUIWin32.cs: Clip the rect to the parent window.
12643         * XplatUIStructs.cs: Add clipping modes struct.
12644         * InternalWindowManager.cs: New private method that factors title
12645         bar heights in when calculating the pos of an NC mouse message.
12646         - Use SendMessage to force a paint when the form's size is changed
12647         instead of painting the decorations immediately.
12648         - Don't let the NC button click messages get to DefWndProc,
12649         because they will attempt to handle windowing themself, and this
12650         messes up z-order (it will put them in front of the scrollbars).
12651         * XplatUIX11.cs: Make sure that we don't reset window managers if
12652         we already have one (ie the window is an MDI window).
12653
12654 2006-09-28  Chris Toshok  <toshok@ximian.com>
12655
12656         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
12657         menu code really needs going over.
12658
12659 2006-09-27  Chris Toshok  <toshok@ximian.com>
12660
12661         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
12662         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
12663         window is maximizable.  So, we need to make sure that even if we
12664         clear the border/wm frame of those functions, they're still
12665         available (basically, we remove the decoration without removing
12666         the function).  Half the fix for #79338.
12667
12668 2006-09-27  Chris Toshok  <toshok@ximian.com>
12669
12670         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
12671         Fixes bug #79515.
12672
12673 2006-09-27  Chris Toshok  <toshok@ximian.com>
12674
12675         * Splitter.cs: reorder things a bit so that we don't actually
12676         draw/move the splitter until after calling OnSplitterMoving.  This
12677         lets users cancel/disallow the movement by explicitly setting
12678         event.SplitX/SplitY.  Fixes #79372.
12679
12680 2006-09-27  Jackson Harper  <jackson@ximian.com>
12681
12682         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
12683         because it is most likely on a window being destroyed, and that
12684         will give us an X11 error.
12685
12686 2006-09-27  Chris Toshok  <toshok@ximian.com>
12687
12688         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
12689         the dropdown button now toggles between showing and hiding the
12690         dropdown.  Also, get rid of dropdown_form_showing and just use
12691         dropdown_form.Visible.  We still don't do a grab, but I'll leave
12692         that part to someone who has handled Capture-fu before.
12693
12694 2006-09-27  Chris Toshok  <toshok@ximian.com>
12695
12696         * DataGrid.cs: return false if alt isn't pressed when '0' is
12697         pressed.  this keeps the '0' key from being swallowed, and fixes
12698         bug #79350.
12699
12700 2006-09-27  Chris Toshok  <toshok@ximian.com>
12701
12702         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
12703         Calling Refresh (in response to a scrollbar event) screws up the
12704         scrollbar painting.  Fixes bug #78923.
12705
12706 2006-09-27  Chris Toshok  <toshok@ximian.com>
12707
12708         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
12709         then insert into hashtable" blocks threadsafe.
12710
12711 2006-09-27  Chris Toshok  <toshok@ximian.com>
12712
12713         * MessageBox.cs (CreateParams): the styles should be |'ed with our
12714         baseclass's, since otherwise the
12715         ControlBox/MinimizeBox/MaximizeBox assignments above have no
12716         effect.  This gets the close button back in messageboxes.
12717
12718 2006-09-27  Chris Toshok  <toshok@ximian.com>
12719
12720         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
12721         flag, not just != 0.  this makes flags that are actually multiple
12722         bits (like WS_CAPTION) work.  fixes bug #79508.
12723
12724 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
12725
12726         * PageSetupDialog.cs: add support for getting and settings the 
12727         paper size, source and orientation.
12728
12729 2006-09-26  Chris Toshok  <toshok@ximian.com>
12730
12731         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
12732         and caption == "", we need to remove the resize handles as well as
12733         the title bar.
12734
12735         * Control.cs (set_Text): turns out that setting Text on a form
12736         should change the WM styles on the window, since if ControlBox ==
12737         false, the only way to get a window border is to have a non-""
12738         Text property.  check winforms/forms/text.cs for an example.  so,
12739         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
12740         update both window styles and title.  This fixes a lot of dialogs
12741         (including the preferences dialog in MonoCalendar.)
12742
12743 2006-09-26  Chris Toshok  <toshok@ximian.com>
12744
12745         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
12746         control isn't a Form), call Win32ShowWindow to hide the window,
12747         but don't update the control Visible property.  When we reparent
12748         back to a parent control, call SetVisible in order for the
12749         window's visibility to be reinstated.
12750
12751         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
12752         the FosterParent.
12753
12754         * Control.cs (ControlCollection.Remove): remove that value.Hide()
12755         call for good, since it breaks MonoCalendar (and other things I'm
12756         sure.) Also, set all_controls to null *after* the owner calls,
12757         which end up regenerating it.
12758         (ChangeParent): allow new_parent to be == null, passing
12759         IntPtr.Zero down to XplatUI.
12760
12761         this fixes #79294 the right way.
12762
12763 2006-09-26  Mike Kestner  <mkestner@novell.com>
12764
12765         * GridEntry.cs : internal SetParent method.
12766         * PropertyGrid.cs : attach to property changed on the proper
12767         target if we have a hierarchical grid with subobjects. Setup
12768         GridItem.Parent for hierarchical items.
12769         * PropertyGridView.cs : Set value on the correct target for
12770         hierarchical grids. [Fixes #78903]
12771
12772 2006-09-26  Chris Toshok  <toshok@ximian.com>
12773
12774         * Control.cs (ChildNeedsRecreating): this should return true if
12775         either we're being recreated and the child is in our list, or our
12776         parent is waiting for our recreation.
12777
12778 2006-09-26  Chris Toshok  <toshok@ximian.com>
12779
12780         * Control.cs (ControlCollection.Remove): reinstate the
12781         value.Hide() call as suggested in bug #79294.
12782
12783 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
12784
12785         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
12786         coordinates (versus a relative move).
12787
12788 2006-09-26  Chris Toshok  <toshok@ximian.com>
12789
12790         * Control.cs: rework child recreation a little bit.  It turns out
12791         that we race between the DestroyNotify the WM_DESTROY message.  If
12792         the parent gets its DestroyNotify before the child gets the
12793         WM_DESTROY message, the child ends up not recreating (since the
12794         parent finishes its recreation on DestroyNotify, and the child
12795         checks ParentIsRecreating.)
12796
12797         So, instead we store off a list of all the child controls which
12798         need to be recreated when the parent control starts to recreate
12799         itself.  Then, when child controls get their WM_DESTROY message we
12800         check to see if they're in the parent's pending recreation list,
12801         and if so, we recreate.  This removes all dependency on ordering
12802         from the code and fixes the initial MonoCalendar upgrade dialog.
12803         
12804 2006-09-26  Jackson Harper  <jackson@ximian.com>
12805
12806         * TextControl.cs: Use the Line to get the length of the line,
12807         since soft line breaks can change the end line.
12808
12809 2006-09-26  Chris Toshok  <toshok@ximian.com>
12810
12811         * Control.cs (ControlCollection.AddImplicit): don't add the
12812         control again if it's already in one of our lists.  This keeps us
12813         from adding controls over and over again for comboboxes when their
12814         handle gets recreated (as the combobox adds implicit controls in
12815         OnHandleCreated).  Fixes the X11 errors in bug #79480.
12816
12817 2006-09-26  Jackson Harper  <jackson@ximian.com>
12818
12819         * TextControl.cs: When deleting characters make sure that any
12820         orphaned zero lengthed tags get deleted.
12821         - Fix ToString for zero lengthed tags.
12822
12823 2006-09-25  Jackson Harper  <jackson@ximian.com>
12824
12825         * TextControl.cs: When getting a tag at the location there can be
12826         multiple tags at the same spot, these are 0-lengthed tags that
12827         appear when extra formatting has been stuck in a location.  We
12828         need to pull out the last of these 0 lengthed tags.
12829
12830 2006-09-25  Jackson Harper  <jackson@ximian.com>
12831
12832         * TextControl.cs: Fix print out in debug method.
12833         * TextBoxBase.cs: When text is set bail if we are setting to the
12834         previous value.
12835         
12836 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
12837
12838         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
12839           It is now possible to change the selected index in a FontXXXListBox
12840           with the up and down arrow keys from the FontXXXTextBoxes.
12841           Also, send the FontXXXTextBox mouse wheel event to the corresponding
12842           FontXXXListBoxes to match ms.
12843
12844 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
12845
12846         * SystemInformation.cs: Return a clone of the theme's MenuFont because
12847         anyone can dispose it, anytime. All other properties returns enums, 
12848         structs or basic types so they don't need such tricks.
12849
12850 2006-09-22  Jackson Harper  <jackson@ximian.com>
12851
12852         * XplatUI.cs:
12853         * XplatUIWin32.cs:
12854         * Clipboard.cs:
12855         * DataFormats.cs:
12856         * XplatUIOSX.cs:
12857         * XplatUIDriver.cs: Update interface to add a primary selection
12858         flag, so the driver can use the primary selection buffer if
12859         needed.
12860         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
12861
12862         * RichTextBox.cs: We need to supply the data object to paste now
12863         (so we can choose to supply CLIPBOARD or PRIMARY).
12864         * TextBoxBase.cs: Supply data object to paste (see above).
12865         - Middle click uses the primary selection data object.
12866         
12867 2006-09-21  Chris Toshok  <toshok@ximian.com>
12868
12869         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
12870         of SetWMStyles.  It's still a rat's nest and is largely
12871         order-dependent which I dislike immensely.  This also fixes the X
12872         button disappearing from toplevel forms.
12873
12874 2006-09-21  Mike Kestner <mkestner@novell.com>
12875
12876         * ListBox.cs: move Jordi's click/dblclick raising code to the
12877         mouse up handler.
12878
12879 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
12880
12881         * ListBox.cs: Fixes 79450
12882
12883 2006-09-21  Mike Kestner <mkestner@novell.com>
12884
12885         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
12886         to deal with people updating the TreeNodeCollection after the tree
12887         is disposed.  "Fixes" 79330.
12888
12889 2006-09-20  Jackson Harper <jackson@ximian.com>
12890
12891         * TextControl.cs: Push the cursor record onto the undo stack
12892         before the delete action. This fixes 78651.
12893
12894 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
12895
12896         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
12897         CreateParams. Fixes 79329.
12898
12899 2006-09-19  Chris Toshok  <toshok@ximian.com>
12900
12901         * XplatUIX11.cs: a couple of blanket code massage passes to clean
12902         things up a bit.  First, get rid of the NetAtoms array (and the NA
12903         enum), and just embed the atoms as static fields.  Also, add a
12904         couple of functions (StyleSet and ExStyleSet) to clean up all the
12905         bitmask testing of styles.
12906
12907         * X11Structs.cs: remove the NA enum, not needed anymore.
12908         
12909 2006-09-19  Chris Toshok  <toshok@ximian.com>
12910
12911         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
12912         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
12913         added cleanup to get MessageBox titles appearing again, which were
12914         broken by my earlier fix for caption-less/ControlBox-less windows.
12915
12916 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
12917
12918         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
12919           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
12920           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
12921           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
12922           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
12923           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
12924           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
12925           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
12926           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
12927           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
12928           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
12929             Inital import.
12930         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
12931           ToolStripButton.cs: Stubs needed for above.
12932         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
12933
12934 2006-09-15  Chris Toshok  <toshok@ximian.com>
12935
12936         * XplatUIX11.cs:
12937         - make the MessageQueues hashtable Synchronized.
12938         
12939         - SendMessage: if the Hwnd is owned by a different thread, use the
12940         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
12941         thread.  Fixes bug #79201.
12942
12943 2006-09-15  Chris Toshok  <toshok@ximian.com>
12944
12945         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
12946         ControlBox == false, we disallow maximize/minimize/close.  If the
12947         form Caption is "" we also disallow move (and get rid of the Title
12948         decoration).  Unfortunately, regardless of how things are set,
12949         we're stuck with the Title and WM menu.
12950
12951 2006-09-15  Chris Toshok  <toshok@ximian.com>
12952
12953         * Application.cs: add locking around the static message_filters
12954         ArrayList, part of #79196.
12955
12956 2006-09-15  Chris Toshok  <toshok@ximian.com>
12957
12958         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
12959         Form.ControlBox == false, the window has no titlebar nor resize
12960         handles.  fixes bug #79368.
12961
12962 2006-09-15  Chris Toshok  <toshok@ximian.com>
12963
12964         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
12965         >= 0.  Fixes bug #79370.
12966
12967 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
12968         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
12969         * Control.cs:
12970             Add properties: LayoutEngine, Margin, DefaultMargin.
12971             Add method: GetPreferredSize.
12972             Move layout logic from PerformLayout to layout engines. 
12973
12974 2006-09-13  Chris Toshok  <toshok@ximian.com>
12975
12976         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
12977         fix for #79326 broke #78718, so this change addresses that.
12978
12979         - in SendWMDestroyMessages remove the call to
12980         CleanupCachedWindows, since we might be recreating the control and
12981         need to maintain the references to right Hwnd handles.  Also, set
12982         the zombie flag to true for each of the children in the hierarchy
12983         instead of calling hwnd.Dispose.  This will cause GetMessage to
12984         ignore all events for the window except for DestroyNotify.
12985
12986         - In GetMessage, ignore messages except for DestroyNotify for
12987         zombie hwnds.
12988         
12989         * Control.cs: revert the is_recreating fix from the last
12990         ChangeLog.  It's definitely "right", but it breaks switching from
12991         an MDI form to a non-MDI form.  Will need to revisit that.
12992
12993         * Hwnd.cs: add a zombie flag, which means "the
12994         client_window/whole_window handles are invalid, but we're waiting
12995         for the DestroyNotify event to come in for them".  Set the flag to
12996         false explicitly if setting WholeWindow/ClientWindow, and also
12997         when Disposing.
12998         
12999 2006-09-13  Chris Toshok  <toshok@ximian.com>
13000
13001         * XplatUIX11.cs: rework window destruction slightly.
13002
13003         - when destroying the windows associated with a control, we don't
13004         need 2 separate XDestroyWindow calls.  Just the one for the
13005         whole_window (or for client_window if whole_window is somehow
13006         IntPtr.Zero -- can this happen?) is enough.
13007
13008         - reworked SendWMDestroyMessages slightly, so we always dispose
13009         the child control hwnd's after sending the messages.
13010         
13011         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
13012         the two places it was used (one was even using hwnd.Handle and the
13013         other hwnd.client_window.  ugh), adding another call in
13014         SendWMDestroyMessages.  We need this new call because now the
13015         DestroyNotify events in the queue will be ignored for the child
13016         controls (as their hwnd's were disposed, and the window id's
13017         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
13018
13019         - this fixes bug #79326.
13020
13021 2006-09-13  Chris Toshok  <toshok@ximian.com>
13022
13023         * Control.cs: don't always set is_recreating to false at the end
13024         of RecreateHandle, since sometimes we're not done (and won't be
13025         until WndProc handles the WM_DESTROY message).  Also, set
13026         is_recreating to false in the WM_DESTROY handling code.  Part of
13027         the fix for bug #79326.
13028
13029 2006-09-13  Miguel de Icaza  <miguel@novell.com>
13030
13031         * X11DesktopColors.cs: Start the droppage of debugging messages.
13032
13033         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
13034
13035 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
13036
13037         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
13038
13039 2006-09-12  Chris Toshok  <toshok@ximian.com>
13040
13041         * DataGrid.cs (get_ListManager): if the list_manager is null, try
13042         to create it using SetDataSource.  Fixes bug #79151.
13043
13044 2006-09-11  Chris Toshok  <toshok@ximian.com>
13045
13046         * XEventQueue.cs: add a DispatchIdle property.
13047
13048         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
13049         either the queue is null, or the queue has DispatchIdle set to
13050         true.
13051         (DoEvents): set queue.DispatchIdle to false around the
13052         peek/translate/dispatch message loop in this method.  This keeps
13053         Application.Doevents from emitting idle events.  Part of the fix
13054         for #78823.
13055
13056 2006-09-11  Chris Toshok  <toshok@ximian.com>
13057
13058         * DataGrid.cs (set_DataSource): make this work for both the
13059         winforms/datagrid test and ReportBuilder.  It seems as though when
13060         we've created a ListManager (or maybe it's if we have a
13061         BindingContext?), when we set the DataSource it clears the
13062         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
13063         #79333.
13064
13065 2006-09-11  Chris Toshok  <toshok@ximian.com>
13066
13067         * XplatUIX11.cs: deal with queue being null, which happens in all
13068         the Clipboard functions.  Fixes one of the two problems mentioned
13069         in #78612.
13070
13071 2006-09-11  Chris Toshok  <toshok@ximian.com>
13072
13073         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
13074         button on various spots (including outside the menu) works closer
13075         to MS, and doesn't crash.  Fixes #79343.
13076
13077 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
13078
13079         * ListView.cs: Do not initialize item_sorter in init. To match MS,
13080         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
13081         and the internal comparer is set. When a new ListViewItemSorter is set,
13082         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
13083         was specified. No further processing is necessary if SortOrder is set
13084         to it's current value. If Sorting is modified to None, and View is
13085         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
13086         (either custom or our internal ItemComparer) to null, on 1.0 profile
13087         only set item_sorter to null if its our internal IComparer. If Sorting
13088         is modified to Ascending or Descending, then use our internal IComparer
13089         if none is set, and if the current IComparer is our internal one then:
13090         on 2.0 profile always replace it with one for new Sorting, and on 1.0
13091         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
13092         Enum.IsDefined to verify whether a valid View value is specified in
13093         its setter. Automatically sort listview items when listview is
13094         created. In Sort, do nothing if ListView is not yet created, or if
13095         no item_sorter is set (no Sorting was set, Sorting was explicitly set
13096         to None or ListViewItemSorter was set to null). Added Sort overload
13097         taking a bool to indicate whether the ListView should be redrawn when
13098         items are sorted (we use this in ListViewItemCollection to avoid double
13099         redraws). Modified our internal IComparer to take the sort order into
13100         account. In Add and AddRange methods of ListViewItemCollection, also
13101         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
13102         view), but use overload with noredraw option to avoid double redraw.
13103         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
13104         true when View is Tile, and do the same when attempting to set View to
13105         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
13106         for selected/checked indices, as it involves overhead when sorting is
13107         done while these collections are not used all that often. Instead
13108         we'll build the indices on demand. Modified IList implementation of
13109         CheckedIndexCollection to use public methods if object is int.
13110         Modified CheckedListViewItemCollection to hide checked items if
13111         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
13112         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
13113         IList implementation in SelectedIndexCollection to use public methods
13114         if object is int. Modified SelectedListViewItemCollection to hide
13115         selected items if listview is not yet created.
13116         * ListViewItem.cs: CheckedIndices list no longer needs to be
13117         maintained separately (see ListView changes). Also clone font, fixes
13118         test failure.
13119
13120 2006-09-11  Mike Kestner  <mkestner@novell.com>
13121
13122         * ComboBox.cs: if we are updating the contents of the currently
13123         selected index, refresh the control or the textbox selection.
13124         [Fixes #79066]
13125
13126 2006-09-11  Mike Kestner  <mkestner@novell.com>
13127
13128         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
13129         the 'specified' logic has been moved there.  This seems like a bug 
13130         in Control.cs, since our current SetBoundsCore completely ignores 
13131         the specified parameter.  Peter's commit seems to indicate that is 
13132         the way the MS control implementation works.  [Fixes #79325]
13133
13134 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
13135
13136         * XplatUI.cs: Set default_class_name to be composed
13137         of current domain id. This allows MWF to be loaded in multiple
13138         domains on Win32.
13139
13140 2006-09-09  Miguel de Icaza  <miguel@novell.com>
13141
13142         * X11Keyboard.cs: If we are unable to obtain the input method, do
13143         not call CreateXic to create the input context.   Should fix
13144         #78944/79276.
13145
13146 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
13147
13148         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
13149           Simplified gnome support by adding more pinvokes to get the
13150           icon for a file or mime type.
13151
13152 2006-09-08  Jackson Harper  <jackson@ximian.com>
13153
13154         * MenuAPI.cs: Deslect popup context menu items before closing the
13155         window, so that you don't see the previously selected item
13156         selected when you reopen the menu.
13157         * TextControl.cs: Update the cursor position even if we don't have
13158         focus.  This fixes typing in things like the ComboBox.  I'm not
13159         totally sure we should always set the visibility if we don't have
13160         focus, but couldn't find any corner cases where the cursor showed
13161         up when it shouldn't.
13162
13163 2006-09-08  Chris Toshok  <toshok@ximian.com>
13164
13165         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
13166         our arrays are length 256.  & 0xff before indexing.  Fixes the
13167         crash in bug #78077.
13168         
13169 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13170
13171         * ThemeWin32Classic.cs: 
13172         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
13173         is true. Handle that check box too.
13174
13175 2006-09-07  Chris Toshok  <toshok@ximian.com>
13176
13177         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
13178         79244.
13179
13180 2006-09-07  Chris Toshok  <toshok@ximian.com>
13181
13182         * Control.cs: in set_BackColor only do the work if
13183         background_color != value.
13184
13185         * XplatUIX11.cs: move the clearing of invalid areas (both client
13186         and nc) to the same block of code where we set (nc_)expose_pending
13187         to false.  That is, move it from PaintEventEnd to PaintEventStart,
13188         so things that cause invalidates from within OnPaint will trigger
13189         another call to OnPaint.  Fixes bug #79262.
13190
13191 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
13192
13193         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
13194         * FileDialog.cs: Fix typo
13195
13196 2006-09-07  Jackson Harper  <jackson@ximian.com>
13197
13198         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
13199         for tab pages if they have any.
13200
13201 2006-09-06  Mike Kestner  <mkestner@novell.com>
13202
13203         * Splitter.cs: use the "current" rect when finishing drag handle
13204         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
13205
13206 2006-09-06  Mike Kestner  <mkestner@novell.com>
13207
13208         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
13209         support offset splitters. [Fixes #79298]
13210
13211 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
13212
13213         * Mime.cs: Fixed a bug that could override the global mime type
13214           result.
13215
13216 2006-09-05  Jackson Harper  <jackson@ximian.com>
13217
13218         * TabControl.cs: Better calculation method for setting the slider
13219         pos. Prevents crashes on really wide tabs.
13220         - Draw Image on tab pages if an image list is used.
13221
13222 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13223
13224         * MonthCalendar.cs: When Font changes, the Size should be
13225         updated to fit the new font's space requirements.
13226
13227 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
13228
13229         * ListBox.cs: If the items are cleared with Items.Clear set
13230           top_index to 0.
13231
13232 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13233
13234         * MonthCalendar.cs: Handle arrow keys as input keys. Also
13235         fire DateChanged event instead of DateSelected event when
13236         the date was changed by keyboard interaction.
13237
13238 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13239
13240         * DateTimePicker.cs: Handle DateChanged for the associated
13241         month_calendar control, and set month_calendar.Font from 
13242         OnFontChanged method, as well as resize the height of the
13243         control when needed. Make PreferredHeight proportional.
13244
13245 2006-09-01  Chris Toshok  <toshok@ximian.com>
13246
13247         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
13248         properties.
13249
13250         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
13251
13252 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
13253
13254         * FileDialog.cs: Set ClientSize instead of window size, to allow space
13255           for decorations (Fixes #79219)
13256
13257 2006-09-01  Mike Kestner  <mkestner@novell.com>
13258
13259         * ComboBox.cs: first stab at sorting plus some selection handling
13260         fixes to bring us more in line with MS behavior.  Also switches back
13261         to index based selection.  Alternative patches for index-based 
13262         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
13263         and latency@gmx.de on bug 78848.  I assume they were similar to this
13264         code I've had simmering in my tree forever.
13265         [Fixes #78848]
13266
13267 2006-09-01  Chris Toshok  <toshok@ximian.com>
13268
13269         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
13270         when setting list position guard against ending up with a -1 index
13271         (the other part of the fix for #78812).  Should probably make sure
13272         we don't need the analogous fix in the ItemDeleted case.
13273
13274         * DataGrid.cs:
13275         - in SetDataSource, work around the fact that the way
13276         OnBindingContextChanged is invoked will cause us to re-enter this
13277         method.  I'll remove the hack once I investigate
13278         OnBindingContextChanged.
13279
13280         - fix the logic in set_DataSource and set_DataMember (basically
13281         what to do if the other of the two is null.)
13282         
13283         - in OnListManagerItemChanged, we need to take into account the
13284         edit row when deciding whether or not to call RecreateDataGridRows
13285         (part of the fix for #78812).
13286
13287 2006-09-01  Jackson Harper  <jackson@ximian.com>
13288
13289         * Splitter.cs: Don't do anything if there is no control to affect
13290         (prevents us from crashing in weird tet cases).
13291         * TreeView.cs: Bounding box for the mouse movement reverting
13292         focus/selection back to previously selected node.  This matches
13293         MS, and makes the tree a lot more useable.
13294         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
13295         use clipping so they are not drawn.  This fixes when the control
13296         is set to have a transparent background, or if it was over an
13297         image.
13298
13299 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
13300
13301         * MimeIcon.cs: Improved handling for reading default icons when
13302           using gnome (2.16 made it necessary). Check and read svg icons
13303           first, then 48x48 and then 32x32 icons.
13304
13305 2006-08-31  Chris Toshok  <toshok@ximian.com>
13306
13307         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
13308         visible.
13309
13310         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
13311         ProcessKeyPreview.  Fixes part of #77806.
13312
13313         * DataGrid.cs: big patch.
13314
13315         - revert the queueing up of DataSource/DataMember if inside
13316         BeginInit/EndInit calls.  That's not the way the datagrid achieves
13317         its delayed databinding.  Instead, call SetDataSource in
13318         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
13319         #78811.
13320
13321         - Also, it wasn't mentioned in #78811, but the test case exhibits
13322         behavior that was lacking in our datagrid implementation - Columns
13323         that have mapping names that don't exist in the datasource's
13324         properties aren't shown.  Yuck.  To fix this I added the bound
13325         field to the column style, and basically any calculation to figure
13326         out anything about columns uses a loop to find the bound columns.
13327         still need to investigate if I can cache an array of the bound
13328         columns or if the indices must be the same.
13329
13330         - When setting CurrentCell, we no longer abort if the cell being
13331         edited was in the add row.  This fixes the other part of #77806.
13332
13333         - The new code also fixes #78807.
13334         
13335         * ThemeWin32Classic.cs: perpetrate the same disgusting
13336         column.bound field hack, and only render bound fields.
13337
13338 2006-08-31  Chris Toshok  <toshok@ximian.com>
13339
13340         * DataGridColumnStyle.cs: add bound field.  this field is true if
13341         the datasource has a property corresponding to the mapping name.
13342
13343         * DataGridTableStyle.cs: set the bound field on the column styles
13344         depending on whether or not we have a column for that property.
13345
13346 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
13347
13348         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
13349           splitter control (fixes #79228)
13350
13351 2006-08-31  Chris Toshok  <toshok@ximian.com>
13352
13353         * DataGridColumnStyle.cs: we need to delay the assignment of
13354         property descriptor until the last possible moment due to the lazy
13355         databinding stuff in the datagrid.  Also, fix the exceptions
13356         thrown by CheckValidDataSource to match MS.
13357
13358 2006-08-31  Jackson Harper  <jackson@ximian.com>
13359
13360         * Form.cs: When activated select the active control, if there is
13361         no active control, we select the first control.
13362         * XplatUIX11.cs: If there is no focus control when we get a
13363         FocusIn event, find the toplevel form and activate it.  This
13364         occurs when you popup a window, it becomes the focus window, then
13365         you close that window, giving focus back to the main window.
13366
13367 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13368
13369         * MonthCalendar.cs: 
13370         * ThemeWin32Classic.cs: Cache Font in bold style, as well
13371         as StringFormat with Center alignments in MonthCalendar,
13372         instead of creating new ones when drawing the control. 
13373         Also, draw the month name in bold style.
13374
13375 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
13376
13377         * Control.cs:
13378           - PerformLayout(): It would seem MS performs the fill even if the 
13379             control is not visible (part of #79218 fix)
13380           - ResetBackColor(): Use the setter to reset the color, to allow
13381             overriders to catch the change.
13382         * Form.cs:
13383           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
13384           - CreateHandle(): dito (part of $79218 fix)
13385           - Don't set an icon if we have a dialog
13386         * ScrollableControl.cs:
13387           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
13388           - ScrollIntoView(): No need to scroll if control is already visible
13389             (resolves fixme and fixes #79218)
13390
13391 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13392
13393         * MonthCalendar.cs: Change proportions in SingleMonthSize
13394         to match the aspect of the original control.
13395
13396 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
13397
13398         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
13399           get updated when they get maximized.
13400
13401 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
13402
13403         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
13404
13405 2006-08-29  Chris Toshok  <toshok@ximian.com>
13406
13407         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
13408
13409 2006-08-29  Jackson Harper  <jackson@ximian.com>
13410
13411         * TreeView.cs: Need to track selected node and highlighted node,
13412         they aren't always the same thing, when the mouse is down on a
13413         node it is hilighted, but not selected yet.
13414         - Do the HideSelection stuff right
13415         - Need to focus on rbutton mouse down. And redraw selection when
13416         right click is mouse upped.
13417
13418 2006-08-29  Mike Kestner  <mkestner@novell.com>
13419
13420         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
13421         when SubItems.Count < Columns.Count.  [Fixes #79167]
13422
13423 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
13424
13425         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
13426
13427 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
13428
13429         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
13430           from X. Only send based on ConfigureNotify if we don't have the
13431           correct location in hwnd (if the window manager moved us)
13432
13433 2006-08-28  Mike Kestner  <mkestner@novell.com>
13434
13435         * ListView.cs: remove a TODO. 
13436         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
13437         [Fixes ListView part of #79166]
13438
13439 2006-08-28  Mike Kestner  <mkestner@novell.com>
13440
13441         * ListView.cs: move wheel handler to parent since it is focused
13442         instead of the item_control now.  [Fixes #79177]
13443
13444 2006-08-28  Mike Kestner  <mkestner@novell.com>
13445
13446         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
13447         when the control is focused. [Fixes #79171]
13448
13449 2006-08-28  Mike Kestner  <mkestner@novell.com>
13450
13451         * ListView.cs: size the item and header controls for empty and
13452         unscrollable views.
13453         * ThemeWin32Classic.cs: draw disabled backgrounds.
13454         [Fixes #79187]
13455
13456 2006-08-28  Chris Toshok  <toshok@ximian.com>
13457
13458         * Form.cs: remove unused "active_form" static field.
13459
13460         * Hwnd.cs: lock around accesses to static windows collection.
13461
13462         * Application.cs: lock threads in Exit ().
13463
13464 2006-08-28  Chris Toshok  <toshok@ximian.com>
13465
13466         * NativeWindow.cs: lock around accesses to window_collection.
13467         
13468 2006-08-28  Chris Toshok  <toshok@ximian.com>
13469
13470         * Control.cs: err, fix this the right way, by locking on controls
13471         when using it.  not by making it synchronized.
13472
13473 2006-08-28  Chris Toshok  <toshok@ximian.com>
13474
13475         * Control.cs: make the static "controls" field synchronized, as it
13476         gets updated from multiple threads.
13477
13478 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
13479
13480         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
13481           Prevent other threads from exiting when calling thread sets quit state.
13482         * XEventQueue.cs: Added PostQuitState property
13483
13484 2006-08-27  Chris Toshok  <toshok@ximian.com>
13485
13486         * AsyncMethodData.cs: add a slot for the window handle.
13487
13488         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
13489         window (the destination control's window, not the foster window).
13490
13491         * Control.cs (BeginInvokeInternal): store the window's handle in
13492         the AsyncMethodData.
13493         
13494
13495 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
13496
13497         * XplatUIX11.cs:
13498           - PostQuitMessage: Removed resetting S.D display handle, we might have
13499             another loop started after calling PostQuitMessage (Fixes #79119)
13500           - Created destructor to reset S.D handle
13501
13502 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
13503
13504         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
13505
13506 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13507
13508         * TextControl.cs (Insert): Update the caret position even if we don't
13509           have a handle yet, just don't call the driver in that case.
13510         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
13511           to the end of the new selection text (Fixes #79184)
13512
13513 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13514
13515         * Form.cs (Activate): Only activate if the handle is created)
13516         * Control.c:
13517           - Mark window as invisible when it's disposed
13518           - Check if window handle is created when setting window visible, 
13519             instead of relying just on the is_created variable
13520           - Check if object is disposed when creating the control (Fixes #79155)
13521
13522 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13523
13524         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
13525           when allowing layout again. Otherwise we re-generate the anchoring 
13526           distance to the border again and actually alter what the user wanted
13527           This is ugly, it'd be better if we used DisplayRectangle instead of
13528           ClientRectangle for Control.UpdateDistances, but that causes us to
13529           have other problems (initial anchoring positons would be wrong)
13530           (Fixes #78835)
13531
13532 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13533
13534         * Control.cs:
13535           - The size and location setters shouldn't go directly to 
13536             SetBoundsCore, but to SetBounds, which triggers layout on the
13537             parent, then calls SetBoundsCore. (Related to fix for #78835)
13538           - SetBounds: Moved actual location update code into this function
13539             from SetBoundsCore, to match MS. Added call to PerformLayout if
13540             we have a parent (to trigger resizing of anchored parents if the 
13541             child size has changed (see testcase for #78835) 
13542         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
13543           new control code
13544         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
13545
13546 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13547
13548         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
13549           System.Drawing when a toplevel window gets closed; there might
13550           be other toplevel windows belonging to the same app (Fixes #78052)
13551
13552 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
13553
13554         * FileDialog.cs: After reading FileDialog settings from mwf_config
13555           use Desktop prefix only if a real folder doesn't exist anymore.
13556         * FontDialog.cs: Added char sets.
13557           It is now possible to select the font, size or style with the
13558           textboxes.
13559
13560 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
13561
13562         * PrintPreviewDialog.cs: Use assembly name constants.
13563
13564 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13565
13566         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
13567           scrollbar from whacking it's buttons)
13568
13569 2006-08-24  Chris Toshok  <toshok@ximian.com>
13570
13571         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
13572         in this patch (aggregating setting Left/Top/Width/Height to
13573         setting Bounds on the scrollbars), but the crux of the fix is in
13574         Recalculate, where we scroll by the remaining scroll_position if
13575         we're hiding a scrollbar.  The 2*$5 reward in the comment is
13576         serious.
13577
13578 2006-08-24  Jackson Harper  <jackson@ximian.com>
13579
13580         * MdiClient.cs:
13581         * MdiWindowManager.cs: If the form is made a non-mdi window we
13582         need to remove the form closed event so that closing forms works
13583         correctly.
13584
13585 2006-08-24  Jackson Harper  <jackson@ximian.com>
13586
13587         * Control.cs: Make IsRecreating internal so that the driver can
13588         check it
13589         - Temporarily remove the Hide when controls are removed, its
13590         making a whole bunch of things not work because visibility isn't
13591         getting reset elsewhere correctly
13592         * Form.cs: Need to do a full handle recreation when the mdi parent
13593         is set.
13594         * XplatUIX11.cs: If we are recreating handles don't dispose the
13595         HWNDs.  What was happening is the handles were being recreated in
13596         SendWMDestroyMessages, but then flow continued on in that method
13597         and destroyed the new handles.
13598
13599 2006-08-23  Jackson Harper  <jackson@ximian.com>
13600
13601         * Form.cs: MdiClient is always at the back of the bus
13602         * Control.cs: When the order of items in the collection is changed
13603         we need to reset the all_controls array
13604         - do the same sorta setup thats done when adding a control when a
13605         control is set on the collection.
13606
13607 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
13608
13609         * TextBoxBase.cs (get_Text): Return an empty array if our document
13610           is empty (fixes #79052)
13611
13612 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13613
13614         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
13615           on WM_SYSCHAR messages (fixes #79053)
13616
13617 2006-08-23  Chris Toshok  <toshok@ximian.com>
13618
13619         * DataGrid.cs: fix flickering when scrolling vertically.
13620
13621 2006-08-23  Chris Toshok  <toshok@ximian.com>
13622
13623         * DataGrid.cs (EndEdit): only invalidate the row header when we
13624         need to.
13625
13626 2006-08-23  Chris Toshok  <toshok@ximian.com>
13627
13628         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
13629         methods.  fixes the flicker when scrolling around.
13630
13631 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13632
13633         * FileDialog.cs: Making sure the control is created before we get a 
13634           chance to use it with BeginInvoke (Fixes #79096)
13635
13636 2006-08-23  Chris Toshok  <toshok@ximian.com>
13637
13638         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
13639         width to use when painting the rows.
13640
13641 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13642
13643         * TextBoxBase.cs:
13644           - Throw ArgumentException if a negative value is passed to SelectionLength
13645           - Update the selection end if start is moved. end needs to be always
13646             after start. (Fixes #79095)
13647           - Track selection length; MS keeps the selection length even if start
13648             is changed; reset on all other operations affection selection
13649
13650 2006-08-22  Jackson Harper  <jackson@ximian.com>
13651
13652         * TreeView.cs: Make sure both scrollbars get displayed and sized
13653         correctly when the other bar is visible.
13654         - Use the original clip rectangle for checking if the area between
13655         the two scrollbars is visible, not the viewport adjusted clipping
13656         rectangle.
13657
13658 2006-08-22  Jackson Harper  <jackson@ximian.com>
13659
13660         * Binding.cs: We don't use IsBinding because it requires the
13661         control to be created, which really shouldn't be necessary just to
13662         set a property on the control.
13663
13664 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13665
13666         * ComboBox.cs: Some CB.ObjectCollection methods must throw
13667         ArgumentNullReferenceException when the argument is null.
13668
13669 2006-08-21  Jackson Harper  <jackson@ximian.com>
13670
13671         * Timer.cs: Track the thread that the timer is started in (NOT
13672         CREATED), this way messages for it will only be triggered on its
13673         queue.
13674         * XEventQueue.cs: Track the timers here, this makes timers per
13675         thread, like MS.
13676         * XplatUIX11.cs: The timers are moved to the XEventQueue.
13677
13678 2006-08-19  Chris Toshok  <toshok@ximian.com>
13679
13680         * XplatUIX11.cs: after further communication with pdb, we get the
13681         best of both worlds.  SetZOrder working for un-Mapped windows, and
13682         no X errors for un-mapped windows.
13683
13684 2006-08-19  Chris Toshok  <toshok@ximian.com>
13685
13686         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
13687         as it was causing pdn toolbars to not have the correct stacking.
13688
13689 2006-08-18  Mike Kestner  <mkestner@novell.com> 
13690
13691         * ListView.cs : guard against negative ClientArea.Width in scrollbar
13692         calculation.  Not sure why control should ever be setting a negative
13693         width though.  Fixes #78931.
13694
13695 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13696
13697         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
13698         null items in ObjectCollection class.
13699         * ListBox.cs.: Likewise.
13700
13701 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
13702
13703         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
13704           as the base method in ThemeWin32Classic should work fine.
13705           Fixed bug #78607.
13706
13707 2006-08-18  Jackson Harper  <jackson@ximian.com>
13708
13709         * Binding.cs: When validating if the value entered doesn't convert
13710         properly reset to the old value.
13711         * RadioButton.cs: Don't fire click when we get focus.
13712
13713 2006-08-18  Jackson Harper  <jackson@ximian.com>
13714
13715         * FileDialog.cs: Paint the selection on the directory combobox the
13716         same way as on MS. 
13717
13718 2006-08-17  Jackson Harper  <jackson@ximian.com>
13719
13720         * ErrorProvider.cs: Don't allow the error control to be selected.
13721         * Control.cs: Don't send the SetFocus messages, the control
13722         activation will do this, and if we do it blindly here validation
13723         does not work.
13724
13725 2006-08-17  Jackson Harper  <jackson@ximian.com>
13726
13727         * Control.cs:
13728         * ContainerControl.cs: Make validation events fire in the correct
13729         order.  TODO: For some reason the first validation event is not
13730         getting fired.
13731
13732 2006-08-17  Mike Kestner  <mkestner@novell.com> 
13733
13734         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
13735
13736 2006-08-17  Mike Kestner  <mkestner@novell.com> 
13737
13738         * ComboBox.cs : implement scroll wheel support for popped-down
13739         state. Fixes #78945. 
13740
13741 2006-08-17  Jackson Harper  <jackson@ximian.com>
13742
13743         * TreeView.cs: Specify treeview actions (old patch that didn't get
13744         committed for some reason).
13745         - Don't let the mouse wheel scroll us too far.  Just want to make
13746         the bottom node visible, not scroll it all the ways to the top.
13747
13748 2006-08-17  Jackson Harper  <jackson@ximian.com>
13749
13750         * XplatUIX11.cs: Mouse wheel events go to the focused window.
13751
13752 2006-08-17  Mike Kestner  <mkestner@novell.com> 
13753
13754         * ComboBox.cs : don't do mouseover selection in simple mode.
13755
13756 2006-08-16  Jackson Harper  <jackson@ximian.com>
13757
13758         * Form.cs: Fire the closing events for all the mdi child windows
13759         when a window is closed.  If the cancel args are set to true, the
13760         main window still gets the event fired, but it doesn't not close.
13761         * MdiWindowManager.cs: Do this closing cleanup in a Closed
13762         handler, instead of when the button is clicked, so cancelling the
13763         close works correctly.
13764         * ComboBox.cs: Send the mouse down to the scrollbar.
13765
13766 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13767
13768         * ListBox.cs: When passing 'null' to SelectedItem,
13769         set SelectedIndex to -1, to unselect items. This is the
13770         observed behaviour in .Net.
13771
13772 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
13773
13774         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
13775           MS flags saying there won't be any. (fixes #78800)
13776         * Control.cs (HandleClick): Made virtual
13777
13778 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
13779
13780         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
13781           cultures. Fixed bug #78399.
13782
13783 2006-08-16  Jackson Harper  <jackson@ximian.com>
13784
13785         * Form.cs: Use the MdiClients MdiChildren property to access
13786         MdiChildren instead of creating the array from the child controls.
13787         * MdiClient.cs: Maintain a separate array of the mdi children, so
13788         that insertion order is maintained when the Z-order is changed.
13789
13790 2006-08-16  Mike Kestner  <mkestner@novell.com> 
13791
13792         * ListView.cs : add an ItemComparer and default to it for sorting.
13793         Fixes #79076, but sorting needs a complete overhaul to be compat with
13794         MS.
13795
13796 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
13797
13798         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
13799
13800 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
13801
13802         * Hwnd.cs (Mapped): Properly traverse the tree
13803
13804 2006-08-15  Chris Toshok  <toshok@ximian.com>
13805
13806         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
13807         pass manager.Current.GetType() to ParseData.  It has to be the
13808         property type.  So, hold off doing the ParseData until we're in
13809         SetPropertyValue where we know the type.  This fixes the crash in
13810         #78821 but the textbox is still empty.
13811
13812 2006-08-15  Chris Toshok  <toshok@ximian.com>
13813
13814         * DataGrid.cs:
13815         - when we're scrolling, only call Edit() again if the
13816         current cell is still unobscured. Fixes bug #78927.
13817         - when handling mousedown on a cell, ensure the cell is visible
13818         before calling Edit.
13819         - remove the properties from DataGridRow, and remove the
13820         DataGridParentRow class altogether.
13821         
13822
13823 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
13824
13825         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
13826           fire OnTextChanged by ourselves. There's no point calling base,
13827           we don't set the base value anywhere else. Fixes #78773.
13828
13829 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13830
13831         * ListBox.cs: Call CollectionChanged when modifying
13832         an item from Items indexer, to update the actual items
13833         in the list box.
13834
13835 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13836
13837         * PrintDialog.cs: Small fixes for focus and a pair of checks,
13838         to match .Net behaviour.
13839
13840 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
13841
13842         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
13843
13844 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
13845
13846         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
13847
13848 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
13849
13850         * MessageBox.cs: Prevent potential NRE exception.
13851         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
13852
13853 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
13854
13855         * MessageBox.cs: Calculate the owner of a messagebox, also make
13856           it topmost. Fixes #78753
13857
13858 2006-08-14  Chris Toshok  <toshok@ximian.com>
13859
13860         * XplatUIX11.cs: A couple of fixes so that metacity will let us
13861         programmatically move windows.  first, set the PPosition hint as
13862         well as the USPosition hint.  Second include some code from pdb
13863         that sets the window type to NORMAL when we set the transient for
13864         hint.  This is because, in the absence of a window type, metacity
13865         thinks any window with TransientFor set is a dialog, and refuses
13866         to let us move it programmatically.  fascists.
13867
13868 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
13869
13870         * XplatUIX11.cs: When setting normal hints, take into consideration
13871           an different hints previously set so we don't delete them (fixes #78866)
13872
13873 2006-08-12  Chris Toshok  <toshok@ximian.com>
13874
13875         * ToolBarButton.cs: make Layout return a boolean, if something to
13876         do with the button's layout changed.
13877
13878         * ToolBar.cs:
13879         - add another parameter to Redraw, @force, which all existing
13880           calls set to true.
13881         - make the Layout function return a boolean which is true if the
13882           layout has actually changed.  Redraw now uses this (and @force)
13883           to determine when to invalidate.  At present the only place
13884           where @force can be false is the call from OnResize, when
13885           background_image == null.  So, resizing a toolbar when the
13886           layout doesn't change results in no drawing.
13887
13888 2006-08-12  Chris Toshok  <toshok@ximian.com>
13889
13890         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
13891         the VScrollBar and HScrollbar reversed.  oops.
13892
13893         * DataGrid.cs: fix the logic that assigns sizes to the implicit
13894         scrollbars.  we were assigning them twice (once in
13895         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
13896         therefore causing two scrollbar resizes (and redraws?) to happen
13897         per grid resize.
13898
13899 2006-08-12  Chris Toshok  <toshok@ximian.com>
13900
13901         * ToolBarButton.cs: redraw the entire button if the theme tells us
13902         to.
13903
13904         * Theme.cs: add ToolBarInvalidateEntireButton.
13905
13906         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
13907         buttons, just the border.
13908
13909         * ThemeNice.cs: redraw the entire toolbar button since we need to
13910         draw the highlight image.
13911
13912         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
13913         we need to redraw the entire button (not just the border).
13914
13915 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
13916
13917         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
13918           for vertical bars. Fixes the mismatches shown by #78513
13919
13920 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
13921
13922         * FileDialog.cs: If a saved/remembered path doesn't exist
13923           anymore, fall back to "Desktop".
13924
13925 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
13926
13927         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
13928           parent. It's apparently legal to not have one
13929         * XplatUIX11.cs:
13930           - SetZOrder: Don't try to set Z-Order on an unmapped window
13931           - CreateWindow: 0,0 are legal coordinates for a window. don't move
13932             it unless the coordinates are negative
13933
13934 2006-08-10  Mike Kestner  <mkestner@novell.com>
13935
13936         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
13937         when setting to null per msdn docs.  Fixes #78854.
13938
13939 2006-08-10  Chris Toshok  <toshok@ximian.com>
13940
13941         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
13942         flickering by setting a clip rectangle on the Graphics when we
13943         need to redraw just a particular menuitem.  Also, rename "OnClick"
13944         to "OnMouseDown" to reflect what it actually is.
13945         
13946         * Form.cs: track the OnMouseDown change.
13947
13948 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
13949
13950         * CommonDialog.cs: Properly inherit the CreateParams from the form
13951           and only change what we need. Fixes #78865
13952
13953 2006-08-10  Chris Toshok  <toshok@ximian.com>
13954
13955         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
13956         flickering in flat mode (and most of the flickering in general) by
13957         only invalidating the button border (and not the entire rectangle)
13958         when the state changes.  A couple of cases still flicker:
13959         ToggleButtons, and the dropdown arrow case when the user mouse
13960         ups.
13961
13962 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
13963
13964         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
13965           for german keyboards. Numlock state shouldn't affect the behaviour
13966           of the Del key. Fixes bug #78291.
13967
13968 2006-08-10  Chris Toshok  <toshok@ximian.com>
13969
13970         * ListControl.cs: remove the items.Clear line from BindDataItems,
13971         as this is the first thing done by both subclasses in their
13972         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
13973         passed -1, refresh the list.  This gets databinding working when
13974         the datasource is set on the list before the datasource is
13975         populated (as in wf-apps/ReportBuilder.)
13976
13977         * ComboBox.cs: remove the argument to BindDataItems.  This call
13978         should really go away, and be initiated by the ListControl code.
13979
13980         * ListBox.cs: same.
13981
13982 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
13983
13984         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
13985           if no data is in the document when the control is displayed
13986
13987 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
13988
13989         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
13990           yes (fixes #78806)
13991         * TextControl.cs: 
13992           - PositionCaret: Allow positioning of caret but don't call methods 
13993             requiring a handle if the window isn't created yet
13994           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
13995           - owner_HandleCreated: Don't position the caret, just update it's 
13996             location. User might have already set a different position
13997
13998 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
13999
14000         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
14001           windows. Screws up the returned coordinates for child windows. 
14002           Fixes #78825. I'm hoping this doesn't break something, since the
14003           code was explicitly put in 8 months ago, but no bug was attached.
14004           Menus still seem to work properly.
14005
14006 2006-08-08  Chris Toshok  <toshok@ximian.com>
14007
14008         * DataGrid.cs: make BeginInit/EndInit actually do what they're
14009         supposed to do - delay data binding until the EndInit call.  Also,
14010         make the table style collection's CollectionChangeAction.Refresh
14011         work properly.
14012
14013         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
14014         (with action = Refresh) when a consituent table's MappingName is
14015         changed.
14016
14017 2006-08-08  Chris Toshok  <toshok@ximian.com>
14018
14019         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
14020         Invalidate, since changing the text can change the size of the all
14021         toolbar buttons.
14022
14023 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
14024
14025         * Form.cs (AddOwnedForm): Still need to add the form to our listif
14026           we don't have it yet
14027
14028 2006-08-08  Chris Toshok  <toshok@ximian.com>
14029
14030         * PrintControllerWithStatusDialog.cs: don't .Close() the status
14031         dialog, as this causes X errors later on, since we actually
14032         destroy the window.  Instead, .Hide() it.
14033
14034 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
14035
14036         * ComboBox.cs: Added focus reflection for popup window
14037         * XplatUIX11.cs: 
14038           - Removed transient setting for non-app windows for now, not sure it
14039             was needed
14040           - Fixed logic checking if we have captions when deciding 
14041             override_redirect, WS_CAPTION is two bits and a 0 check was not
14042             sufficient
14043           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
14044             complicated
14045         * Form.cs: 
14046           - AddOwnedForm: Don't just add the form to the list, call the property
14047             to ensure the driver is informed about the ownership as well
14048           - CreateHandle: Set the TopMost status in the driver if we have an owner
14049         * XplatUI.cs: Fixed debug statement
14050
14051 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
14052         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
14053           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
14054           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
14055           TrackBarRenderer.cs: Make constructor private.
14056         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
14057         * ProfessionalColorTable.cs: Make properties virtual.
14058
14059 2006-08-06  Duncan Mak  <duncan@novell.com>
14060
14061         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
14062         is not changing.
14063
14064 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
14065         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
14066           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
14067           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
14068           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
14069           Initial import of new 2.0 classes.
14070
14071 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
14072         * Application.cs: Add 2.0 VisualStyles properties.
14073
14074 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
14075         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14076           XplatUIX11.cs: Create property to allow access to existing private
14077           variable "themes_enabled"
14078
14079 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14080
14081         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
14082         file size, as otherwise our class libraries fail using windows. Fixes
14083         bug #78759.
14084
14085 2006-08-04  Jackson Harper  <jackson@ximian.com>
14086
14087         * Form.cs:
14088         * XplatUIX11.cs: Move the toolwindow window manager creation into
14089         the X11 driver, this way on win32 we can let windows create/handle
14090         the toolwindows.
14091
14092 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14093
14094         * PrintDialog.cs: Remove some redundant checks, add some others,
14095         clean some code, and move the focus to the text boxes when the
14096         values are incorrect.
14097
14098 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
14099
14100         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
14101
14102 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
14103
14104         * NumericUpDown.cs: Setting the Minimum and Maximum is now
14105           handled correctly. Fixes bug #79001.
14106
14107 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14108
14109         * PrintDialog.cs: The "Copies" numeric up down must have
14110         set the Minimum property to 1; only if the value is bigger
14111         than 1, activate "Collate" check box. This is the behaviour of .Net.
14112         Also modify the Document elements only if it is not null.
14113
14114 2006-08-03  Jackson Harper  <jackson@ximian.com>
14115
14116         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
14117         length. (We have a larger array then actual node count).
14118                 
14119 2006-08-03  Jackson Harper  <jackson@ximian.com>
14120
14121         * ComboBox.cs: Don't show selection by default.
14122         - The SelectAll isn't needed here, since the focus code should do
14123         that
14124         - DDL style lists to manual selection drawing, so when they
14125         get/lose focus they have to invalidate.
14126
14127 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
14128
14129         * TextBoxBase.cs: Don't always show all selections by default.
14130
14131 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
14132         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
14133           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
14134           Fixed various typos.
14135
14136 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
14137
14138         * Control.cs: Removing the controls in a ControlCollection with
14139           Clear now hides the controls as expected. Fixes bug #78804. 
14140
14141 2006-08-03  Jackson Harper  <jackson@ximian.com>
14142
14143         * Control.cs: Revert previous focus patch, it breaks reflector.
14144
14145 2006-08-03  Jackson Harper  <jackson@ximian.com>
14146
14147         * ComboBox.cs: Cleanup selection and focus with the combobox.
14148         This also eliminates some duplicated keyboard code, since now
14149         everything is handled by the main class.
14150         - Make list selection work on mouse up instead of down, to match
14151         MS.
14152
14153 2006-08-02  Jackson Harper  <jackson@ximian.com>
14154
14155         * Control.cs: Setting focus needs to go through the whole
14156         selection mechanism.
14157
14158 2006-08-02  Chris Toshok  <toshok@ximian.com>
14159
14160         * PrintPreviewDialog.cs: change MinimumSize to use
14161         base.MinimumSize so it works.
14162
14163 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
14164
14165         * TextControl.cs:
14166           - UpdateCaret: Added sanity check in case caret isn't defined yet
14167           - Line.Delete: Now updating selection and caret markers if we're
14168             transfering a node (Properly fixes #78323)
14169           - SetSelectionEnd: Added sanity check
14170         * TextBoxBase.cs: Removed broken attempt to fix #78323
14171
14172 2006-08-01  Chris Toshok  <toshok@ximian.com>
14173
14174         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
14175         Close() call is handled in Form, not here.
14176
14177 2006-08-01  Chris Toshok  <toshok@ximian.com>
14178
14179         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
14180         layout/rendering.
14181
14182         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
14183         for sizes < 100% zoom.  The code now aggressively attempts to keep
14184         from calling document.Print (), and tries not to use the scaling
14185         g.DrawImage whenever possible (it still does if you scale to >
14186         100%, since usually that involves huge images).
14187
14188         * PrintPreviewControl.cs: hook up the close button.
14189
14190 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
14191         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
14192           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
14193           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
14194           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
14195           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
14196           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
14197           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
14198           Removed [Serializable] for 2.0 Event Handlers.
14199
14200 2006-07-31  Jackson Harper  <jackson@ximian.com>
14201
14202         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
14203         * TextControl.cs: Uncomment out the body of this method.
14204
14205 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
14206
14207         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
14208           standard cursors.
14209
14210 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
14211
14212         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
14213           that embed TextBox and need selections visible even if textbox is not
14214           focused to enforce that behaviour.
14215         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
14216           selection drawing
14217
14218 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
14219
14220         * TextControl.cs:
14221           - Added new SetSelectionStart/SetSelectionEnd overloads
14222           - Fixed viewport width assignment to be accurate
14223           - Adjusted alignment line shift calculations to allow cursor on right
14224             aligned lines to be always visible at the right border (like MS)
14225         * TextBoxBase.cs:
14226           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
14227           - TextBoxBase_SizeChanged: recalculating canvas on size changes
14228           - CalculateScrollBars: Use ViewPort size instead of window size, to
14229             properly consider space occupied by the border and scrollbars 
14230             (Fixes #78661)
14231           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
14232             calculations; no longer leaves artifacts
14233           - CaretMoved: Adjusted window scrolling to match MS and fixed several
14234             calculation bugs (Still missing right/center align calculations)
14235
14236 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
14237
14238         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
14239           use of both scroll rect and clip rect, as they do the same.
14240
14241 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
14242
14243         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
14244           in the event handler (fixes #78912)
14245
14246 2006-07-31  Chris Toshok  <toshok@ximian.com>
14247
14248         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
14249         grid.ListManager.Count, since grid.ListManager might be null.
14250         This of course begs the question "why are we drawing rows for a
14251         grid with no list manager (and therefor no rows)?"  Fixes the
14252         crash in bug #78929.
14253
14254 2006-07-31  Chris Toshok  <toshok@ximian.com>
14255
14256         * RelatedPropertyManager.cs: Don't always chain up to the parent
14257         ctor.  instead, call SetDataSource if the parent's position is !=
14258         -1.  Fixes the crash in #78822.
14259
14260 2006-07-31  Chris Toshok  <toshok@ximian.com>
14261
14262         * DataGrid.cs (get_ListManager): use field instead of property
14263         accessors for datasource and datamember.
14264         (RowsCount): make internal again.
14265         (OnMouseDown): end edits before resizing columns/rows.
14266         (OnMouseUp): restart edits after resizing columns/rows.
14267
14268 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
14269
14270         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
14271           This fixes the situation where the last set cursor is displayed
14272           whenever the mouse is over scrollbars.
14273
14274 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14275
14276         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
14277         Document properties, as well as initial values.
14278
14279 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
14280
14281         * XplatUIWin32.cs (SetBorderStyle): Setting both border
14282           and ClientEdge results in a 3-pixel border, which is
14283           wrong.
14284
14285 2006-07-28  Jackson Harper  <jackson@ximian.com>
14286
14287         * TreeNodeCollection.cs: Fix the clear method.
14288         - Fix the Shrink also
14289
14290 2006-07-27  Jackson Harper  <jackson@ximian.com>
14291
14292         * TreeView.cs: Make sure the visible order is computed when we
14293         attempt to size the scrollbars (for trees that mess with the
14294         scrolling when they shouldn't.
14295         - Make sure to give the scrollbars valid values.
14296
14297 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
14298
14299         * XplatUIX11.cs: Move motion compression code to where it
14300           has less performance impact
14301
14302 2006-07-26  Jackson Harper  <jackson@ximian.com>
14303
14304         * UpDownBase.cs: When the control is selected make the child
14305         controls non selectable, so that a click on them won't do a
14306         focus/unfocus cycle.
14307         - Don't give focus to the text box when the spinner is selected.
14308         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
14309
14310 2006-07-26  Chris Toshok  <toshok@ximian.com>
14311
14312         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
14313         satisfied with this solution.  If the bitmaps are small, we should
14314         just cache them in the PrintPreviewDialog and draw them here.
14315         Also, the layout is broken for the 2-up and 3-up cases.
14316
14317         * Theme.cs: add PrintPReviewControlPaint.
14318
14319         * PrintPreviewDialog.cs: first pass implementation.
14320
14321         * PrintPreviewControl.cs: first pass implementation.  No
14322         scrollbars yet.
14323
14324         * PrintDialog.cs: only validate fields if that particular portion
14325         of the UI is enabled.  Also, set the document's controller to a
14326         PrintControllerWithStatusDialog wrapping the document's print
14327         controller.
14328
14329         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
14330         bring up a SaveFileDialog (i hope we don't want to match the
14331         behavior of the crappy windows file entry) and set the
14332         PrinterSettings.PrintFileName accordingly.
14333
14334 2006-07-26  Jackson Harper  <jackson@ximian.com>
14335
14336         * ContainerControl.cs: Add a field that disables auto selecting
14337         the next control in a container when the container is activated.
14338         * UpDownBase.cs: Don't select the text box when the up down is
14339         selected.
14340
14341 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
14342
14343         * XEventQueue.cs: Added methods for peeking (used for compression
14344           of successive events)
14345         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
14346           mouse move events (fixes #78732)
14347
14348 2006-07-25  Jackson Harper  <jackson@ximian.com>
14349
14350         * UpDownBase.cs: Use an internal class for the textbox so that we
14351         can control focus.  the updown control should always have focus,
14352         if either the text area or the buttons are clicked.
14353         - Send the key messages to the textbox, since it never actually
14354         has focus
14355         - Activate and decativate the textbox caret.
14356
14357 2006-07-24  Jackson Harper  <jackson@ximian.com>
14358
14359         * Control.cs: Use the directed select when selecting a control,
14360         this way the container controls override will get called and the
14361         whole ActiveControl chain will get triggered.  TODO: probably need
14362         to make sure this gets done everywhere instead of the old
14363         Select(Control).
14364         * ContainerControl.cs: Implement the directed Select method to
14365         find and activate the correct child control.    
14366         
14367 2006-07-22  Mike Kestner  <mkestner@novell.com>
14368
14369         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
14370         menu handling code so that clicks without a grab work too.
14371         [Fixes #78914]
14372
14373 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
14374
14375         * FileDialog.cs: Enable the BackButton when dirstack has one element.
14376           Added some small optimizations.
14377
14378 2006-07-21  Matt Hargett  <matt@use.net>
14379
14380         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
14381
14382 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
14383
14384         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
14385           tests pass and match MS in some strange border cases.
14386
14387 2006-07-21  Chris Toshok  <toshok@ximian.com>
14388
14389         * ThemeWin32Classic.cs: handle drawing of the relation links and
14390         parent row buttons.
14391
14392         * Theme.cs: change args to DataGridPaintParentRow.
14393
14394         * DataGrid.cs: Don't use controls for the relation links and
14395         parent buttons, so we have to handle all their interactions in
14396         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
14397         when we're navigating through child tables, so we can reinstate
14398         selection, expanded state, current cell, etc.
14399
14400 2006-07-20  Chris Toshok  <toshok@ximian.com>
14401
14402         * ToolBar.cs: When we redraw a button, for whatever reason,
14403         there's no reason to redraw the entire toolbar.  Also, don't call
14404         Control.Refresh from within Redraw, as it's much heavier than
14405         Invalidate (which is really what we want).
14406
14407 2006-07-20  Chris Toshok  <toshok@ximian.com>
14408
14409         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
14410         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
14411         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
14412         traces from within a debug IBindingList datasource
14413         (in mono/winforms/datagrid) for *days*, I've finally gotten things
14414         to work in a similar fashion.
14415
14416 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14417
14418         * ListBox.cs: Don't call Sort () when setting 
14419         the Sorted property to false (avoid an unnecessary sort).
14420
14421 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14422
14423         * ListControl.cs: DataSource should throw an ArgumentException
14424         instead of a normal exception when the argument is not of the 
14425         correct type.
14426
14427 2006-07-20  Mike Kestner  <mkestner@novell.com>
14428
14429         * Control.cs: add InternalPreProcessMessage to allow us to steal
14430         key events before MWF gets its paws on them.  Adapted from a
14431         suggestion by eno.
14432         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
14433         up/down/left/right navigation. Override the new internal control
14434         method to steal the events since they never make it to WndProc.
14435         * ToolBarButton.cs: don't worry about pushed when setting hilight
14436         since the drawing code prefers pushed to hilight. Invalidate on 
14437         Hilight changes. Fixes #78547 and #78525.
14438
14439 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
14440
14441         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
14442           the canvas size. Fixes #78868
14443
14444 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
14445
14446         * Splitter.cs: Track requested split position until first layout
14447           is performed. Fixes #78871
14448
14449 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
14450
14451         * Application.cs: Removed code that forces 1.x for the version
14452           number if the version started with 0. Not sure why that code was
14453           there and I couldn't find any bugs that indicated we needed it.
14454           Fixes #78869
14455
14456 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
14457
14458         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
14459           ResetDefaults(), just write some output to the console until it's
14460           implemented. Fixes bug #78907 for now. Eliminated two warnings.
14461
14462 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
14463
14464         * PropertyGridView.cs: set StartPosition of drop down forms
14465         so they appear in correct initial spot.  Fixes #78190.
14466
14467 2006-07-19  Mike Kestner  <mkestner@novell.com>
14468
14469         * ThemeWin32Classic.cs: use parent background color when drawing
14470         flat toolbars.  Restructure the conditionals to make sure non-flat
14471         non-Divider toolbars are filled too.  Fixes #78837.
14472
14473 2006-07-19  Mike Kestner  <mkestner@novell.com>
14474
14475         * ListBox.cs: Sort on collection changes even if the handle
14476         isn't created yet.  Fixes #78813.
14477
14478 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14479
14480         * ListControl.cs: DisplayMember should never be null,
14481         and now we assign String.Empty when null is passed to it (this
14482         is the .Net way).
14483
14484 2006-07-17  Mike Kestner  <mkestner@novell.com>
14485
14486         * ListViewItem.cs: restructure Font and subitem Font handling 
14487         to hold a specific font and refer back to owner on null.
14488         Fixes #78761.
14489
14490 2006-07-17  Mike Kestner  <mkestner@novell.com>
14491
14492         * ToolBar.cs: bandaid for side-effect of previous patch which was
14493         discarding explicit heights for non-AutoSize toolbars.  Need to
14494         extend my format tester to deal with AutoSize=false. Fixes #78864.
14495
14496 2006-07-15  Jackson Harper  <jackson@ximian.com>
14497
14498         * LabelEditTextBox.cs:
14499         * TreeView.cs: Use a new LabelEdit class for node editing, this
14500         class automatically 'closes' itself when it gets the enter key or
14501         loses focus.
14502         - Use the client rectangle when setting the trees scrollbars, so
14503         border style is taken into account.
14504         
14505 2006-07-14  Jackson Harper  <jackson@ximian.com>
14506
14507         * TreeNode.cs:
14508         * TreeView.cs: Make the editing work similar to MSs, firing the
14509         events correctly and ending edits correctly.
14510
14511 2006-07-14  Mike Kestner  <mkestner@novell.com>
14512
14513         * ToolBarButton.cs:
14514         * ToolBar.cs: layout restructuring and redraw enhancements to support
14515         formatting changes gracefully, like setting TextAlign, ImageList, 
14516         ButtonSize, and Appearance.  Handles explicit button sizing quirks
14517         of the MS controls.  Things like flat toolbars ignoring button size
14518         but becoming constant sized at the largest button's size.  Normal
14519         toolbars with an image set cannot be shrunk smaller than the image,
14520         but text can be clipped/ignored.
14521         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
14522         is zero.  Seems like DrawString should be smart enough to not put
14523         anything on screen though. Also trim labels and ellipsize at the char
14524         boundary, not word.
14525         Fixes #78711 and #78483.
14526
14527 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
14528
14529         * FolderBrowserDialog.cs: Disable "New Folder" button and
14530           "New Folder" contextmenu menuitem if a folder like "My Computer"
14531           is selected.
14532
14533 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
14534
14535         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
14536         * FolderBrowserDialog.cs:
14537           - Use MWFConfig to store and read size and position settings
14538           - Added code to create a new folder (button or context menu).
14539             Use TreeView labeledit to change the name of the new folder.
14540
14541 2006-07-14  Jackson Harper  <jackson@ximian.com>
14542
14543         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
14544         when the tree is scrolled we end editing.
14545
14546 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
14547
14548         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
14549           Down arrows
14550
14551 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
14552
14553         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
14554         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
14555         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
14556         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
14557         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
14558         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
14559         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
14560         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
14561         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
14562         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
14563         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
14564         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
14565         ListViewItemSelectionChangedEventHandler.cs,
14566         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
14567         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
14568         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
14569         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
14570         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
14571         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
14572         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
14573         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
14574         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
14575         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
14576         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
14577         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
14578         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
14579         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
14580         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
14581         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
14582         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
14583         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
14584         WebBrowserNavigatingEventHandler.cs, 
14585         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
14586
14587 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
14588
14589         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
14590         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
14591         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
14592         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
14593         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
14594         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
14595         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
14596         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
14597         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
14598         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
14599         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
14600         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
14601         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
14602         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
14603         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
14604         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
14605         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
14606         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
14607         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
14608         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
14609         ListViewItemStates.cs, MaskFormat.cs: Added
14610
14611 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
14612
14613         * PropertyGridView.cs: Fix keyboard navigation of drop down.
14614         Patch from eno for bug 78558.
14615         
14616 2006-07-13  Jackson Harper  <jackson@ximian.com>
14617
14618         * TreeView.cs: When an edit is finished make sure that the
14619         selected node is visible.
14620         - When setting the top/bottom use the scrollbars is_visible, so
14621         everything will be set correctly even if the tree isn't visible
14622         yet.
14623
14624 2006-07-13  Jackson Harper  <jackson@ximian.com>
14625
14626         * ComboBox.cs: Revert the item->index part of my previous patch.
14627         * TreeView.cs: Use LostFocus instead of Leave for detecting when
14628         the edit box has lost focus (duh).
14629         - Just make the edit box not visible when we get return, that will
14630         take the focus, which will call EndEdit
14631         * TreeNode.cs When we start editing, notify the treeview.
14632
14633 2006-07-12  Jackson Harper  <jackson@ximian.com>
14634
14635         * ComboBox.cs: Clear out old items before setting the item list.
14636         This prevents databound controls from having their items added
14637         twice.
14638         - Switch the combobox to use indices whereever possible instead of
14639         using Item's.  This allows usto navigate through lists that have
14640         more then one item with the same string value (ie a, b, b, a).
14641         - Scroll the listboxes scrollbar when a non visible item is
14642         highlighted
14643         - Allow keypress to cycle through all the possible values. For
14644         example if you have b1, b2, b3 and hold down the B key all the
14645         values will be cycled through.
14646         
14647 2006-07-12  Jackson Harper  <jackson@ximian.com>
14648
14649         * TextBoxBase.cs:
14650         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
14651         this using the internal methods.
14652         * Control.cs: Add OnGotFocusInternal.  A new method that allows
14653         controls to "override" OnGotFocus and change focus behavior if
14654         needed.
14655         - Same thing for LostFocus
14656         * ComboBox.cs: Pass off focus to the text control properly.
14657
14658 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
14659
14660         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
14661         * FolderBrowserDialog.cs: Almost a complete rewrite.
14662           - Better support for Environment.Specialfolders
14663           - Added support for MWFVFS
14664           - Made setting SelectedPath work
14665
14666 2006-07-12  Jackson Harper  <jackson@ximian.com>
14667
14668         * Control.cs: Optimze getting all the controls.
14669
14670 2006-07-11  Jackson Harper  <jackson@ximian.com>
14671
14672         * ContainerControl.cs: Override SETFOCUS in the container control,
14673         so that it is not selected on mouse click.
14674
14675 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
14676
14677         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
14678           Hopefully we will have a better way once all of focus is complete.
14679
14680 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
14681
14682         * ThemeWin32Classic.cs: Commented out some debug code and fixed
14683           a compile error with csc.
14684
14685 2006-07-11  Jackson Harper  <jackson@ximian.com>
14686
14687         * Control.cs: When hiding a control only select the next control
14688         if the current control was focused.
14689         - Don't handle enter/leave when setting/killing focus, this is
14690         done by the container control.
14691         - Remove is_selected, it's not needed anymore.
14692         - Add utility methods for selecting a child control, and for
14693         firing the Enter/Leave events.
14694         * ContainerControl.cs: When a control is activated fire the
14695         enter/leave events.
14696         - Don't wrap when processing the tab key, so that focus can be
14697         moved outside of the container.
14698         - Use the correct active control
14699
14700 2006-07-11  Jackson Harper  <jackson@ximian.com>
14701
14702         * ComboBox.cs: Remove some debug code that was blinding me.
14703         * UpDownBase.cs: These controls actually aren't implicit, they are
14704         visible to the user.
14705
14706 2006-07-10  Chris Toshok  <toshok@ximian.com>
14707
14708         * DataGrid.cs: move back to the is_adding boolean field.  god i
14709         hate this is_editing/is_adding/is_changing stuff.
14710
14711 2006-07-10  Chris Toshok  <toshok@ximian.com>
14712
14713         * DataGridTableStyle.cs: just check if the property type is bool.
14714         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
14715         Don't use CanRenderType.
14716
14717         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
14718         if our text == NullText.  Remove CanRenderType.
14719
14720         * DataGridBoolColumn.cs: nuke CanRenderType.
14721
14722         * DataGrid.cs: reenable some code to end the current edit inside
14723         of set_CurrentCell.  This fixes the other 1.1.16 regression.
14724         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
14725         Also, remove the visible_row_count arg from CalcRowHeaders, since
14726         we don't need to worry about the actual height of the area.
14727
14728 2006-07-10  Chris Toshok  <toshok@ximian.com>
14729
14730         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
14731         mode, just return.
14732
14733         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
14734         the real sense of the IsInEditOrNavigateMode property (true =
14735         navigate, false = edit).  Also, update OnKeyPress to reflect this.
14736
14737         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
14738         column style exists, we still need to set its property descriptor
14739         to match up with our list manager.
14740
14741 2006-07-10  Chris Toshok  <toshok@ximian.com>
14742
14743         * ThemeWin32Classic.cs: implement the new row/header painting
14744         approach.  The parent row painting will likely go away and
14745         replaced with label controls, but the rest seems to work ok (and
14746         efficiently).
14747
14748         * Theme.cs: change the way we draw datagrid rows.  we don't draw
14749         the row headers as a block now.  Instead we draw them in the
14750         normal draw-row loop.  Add some calls for drawing parent rows and
14751         relation rows.
14752
14753         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
14754         a default table style.  Set the defaults from ThemeEngine.Current,
14755         not SystemColors.  Fix lots of misc issues with property setters.
14756
14757         * DataGrid.cs: move loads of style information out of this class
14758         as it's being duplicated with DataGridTableStyle.  keep track of a
14759         special DataGridTableStyle for the properties we used to mirror
14760         here.  Switch all the style properties to access this table style
14761         instead of instance fields of this class.  Also add a internal
14762         class to represent parent rows (more needs to be stored here, like
14763         the selection state from the parent table, as well as the
14764         expansion state.)  Also, for datasources with relations, do the
14765         right thing for collapse/expand, and add support for the
14766         navigation/parent row buttons.
14767
14768         Lastly, fix the crash in the 1.1.16 build.
14769
14770         * GridTableStylesCollection.cs: make the explicit interface
14771         implementations call the class's methods as opposed to duplicating
14772         them.
14773
14774         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
14775         0 so the text doesn't jump around when we move the cursor.
14776
14777 2006-07-10  Jackson Harper  <jackson@ximian.com>
14778
14779         * TextBoxBase.cs:
14780         * ListBox.cs: Match MS's ToString (this makes debugging focus
14781         stuff infinitely easier).
14782
14783 2006-07-10  Jackson Harper  <jackson@ximian.com>
14784
14785         * Control.cs (SelectNextControl): When checking the control's
14786         parent use this instead of ctrl.parent so that null can be passed
14787         to SelectNextControl. (I have unit tests for this).
14788         - Remove unused var.
14789
14790 2006-07-10  Chris Toshok  <toshok@ximian.com>
14791
14792         * CurrencyManager.cs: correct one regression, the removal of the
14793         finalType field.  Also, add a MonoTODO on CanAddRows, implement
14794         Refresh() correctly, and fix some event emission in
14795         ListChangedHandler.
14796
14797 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
14798
14799         * FileDialog.cs: Don't use brackets for new folders if they exist
14800           under *nix. Instead use -(number of existing folders +1).
14801
14802 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
14803
14804         * FileDialog.cs:
14805           - Fixed really nasty bug #78771
14806           - Don't block the whole GUI when reading directories with a lot of
14807             entries. Use an other thread instead and call BeginInvoke to
14808             update the ListView in MWFFileView
14809
14810 2006-07-07  Chris Toshok  <toshok@ximian.com>
14811
14812         * Control.cs (Dispose): release any Capture when disposing.
14813
14814 2006-07-07  Chris Toshok  <toshok@ximian.com>
14815
14816         * LinkLabel.cs (Select): if we chain up to the parent, set
14817         focused_index to -1 so we'll search for the first available link
14818         the next time the user tabs into us.  Also, if the direction is
14819         backward and focused_index == -1, start the search from the last
14820         element.
14821
14822 2006-07-07  Chris Toshok  <toshok@ximian.com>
14823
14824         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
14825         is beyond the end of the text, don't do anything.
14826         (CreateLinkPieces): set our ControlStyles.Selectable based on
14827         whether or not we have any links.
14828         (Link.Invalidate): use a loop instead of foreach.
14829         (Link.set_Start): null out owner.sorted_links so it'll be
14830         recreated by CreateLinkPieces.
14831
14832 2006-07-06  Chris Toshok  <toshok@ximian.com>
14833
14834         * LinkLabel.cs: revert the SetStyle change.
14835
14836 2006-07-06  Chris Toshok  <toshok@ximian.com>
14837
14838         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
14839         (OnEnableChanged): s/Refresh/Invalidate
14840         (OnGotFocus): if we have a focused index already, refocus it (so
14841         if we mouse out/in to the window it'll focus the right link).
14842         (OnKeyDown): move the tab handling out of here.
14843         (OnLostFocus): don't set focused_index to -1, so we can refocus it
14844         when we lose focus.
14845         (OnMouseDown): don't Capture here - Control handles it.  Also,
14846         focus the active link.
14847         (OnMouseUp): don't deal with Capture.
14848         (OnPaintBackgroundInternal): remove.
14849         (OnTextAlignChanged): CreateLinkPieces before calling the
14850         superclass's method.
14851         (OnTextChanged): call CreateLinkPieces before calling superclass's
14852         method.
14853         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
14854         move around.
14855         (Select): implement this, moving the selection between different
14856         links, and call parent.SelectNextControl if we don't have another
14857         link to focus in the given direction.
14858         (CreateLinkPieces): call Invalidate instead of Refresh.
14859         
14860 2006-07-06  Chris Toshok  <toshok@ximian.com>
14861
14862         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
14863         new LinkLabel internals.
14864
14865         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
14866         over pieces looking for active/focused/etc links.  also, deal with
14867         runs of text (and links) with embedded \n's in them, and use
14868         MeasureCharacterRanges instead of MeasureString to figure out the
14869         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
14870         two-step.
14871
14872 2006-07-04  Jackson Harper  <jackson@ximian.com>
14873
14874         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
14875         XKB or key auto repeat, do it manually.  Without key auto repeat,
14876         when a key is held down we get key press, key release, key press,
14877         key release, ... with auto repeat we get key press, key press, key
14878         press ..., and then a release when the key is actually released.
14879
14880 2006-07-03  Jackson Harper  <jackson@ximian.com>
14881
14882         * TabControl.cs:
14883         * ThemeWin32Classic.cs: Tabs do not obey normal background color
14884         rules, they are always control color regardless of the background
14885         color.
14886
14887 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
14888
14889         * FileDialog.cs: Added internal class MWFConfig.
14890           Removed Registry support and replaced it with support for the new
14891           MWFConfig class. See MWFConfig comments for more information.
14892
14893 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
14894
14895         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
14896           rectangle. Added some patches from eno from bug #78490 and fixed
14897           the arrow position for small up and down CPDrawScrollButtons.
14898
14899 2006-06-30  Jackson Harper  <jackson@ximian.com>
14900
14901         * InternalWindowManager.cs: Remove some debug code.
14902         * Form.cs: When an MdiParent is set to null, the window is
14903         "detatched" and becomes a normal window.
14904         * MdiClient.cs: Don't bring the new child form to the front until
14905         it is activated (setting it as active does this), this makes the
14906         previously active forms titlebar get redrawn as inactive.
14907
14908 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
14909
14910         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
14911           with later controls
14912
14913 2006-06-29  Mike Kestner  <mkestner@novell.com>
14914
14915         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
14916         arrow in keynav state.  Fixes #78682.
14917
14918 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
14919
14920         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
14921           order (fixes #78393)
14922
14923 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
14924
14925         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
14926           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
14927           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
14928           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
14929           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
14930           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
14931           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
14932           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
14933           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
14934           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
14935           enumerations (FlagsAttribute, SerializableAttribute, added/removed
14936           values)
14937
14938 2006-06-28  Mike Kestner  <mkestner@novell.com>
14939
14940         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
14941
14942 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
14943
14944         * PropertyGrid.cs,
14945           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
14946           item lines from other area (It also makes BackColor consistent and
14947           compatible with .NET). Fixed bug #78564.
14948
14949 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
14950
14951         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
14952         Patch from Eno for #78555.
14953
14954 2006-06-27  Chris Toshok  <toshok@ximian.com>
14955
14956         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
14957
14958         * DataGridColumnStyle.cs: same.
14959
14960         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
14961         
14962         * DataGridDrawingLogic.cs: nuke.
14963
14964 2006-06-27  Chris Toshok  <toshok@ximian.com>
14965
14966         * DataGridTableStyle.cs: clean up the constructors, and build the
14967         list of child relations for this table.  I have no idea if this is
14968         where we should be doing it (it probably isn't), but since we're
14969         already iterating over the properties..
14970
14971         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
14972         struct and array for keeping track of row information, similar to
14973         what's shown in a hack on
14974         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
14975
14976         * Theme.cs: be consistent about the naming of DataGrid methods,
14977         prefering ColumnWidths and RowHeights over columnsWidths and
14978         RowsHeights.
14979
14980         * ThemeWin32Classic.cs: same, and also add support for variable
14981         sized rows (and the +/- expansion icons for related rows).
14982
14983 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
14984
14985         * TextBoxBase.cs: Applied Eno's patch from #78660
14986
14987 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
14988
14989         * Form.cs (ScaleCore): We don't want to scale our form if it's
14990           state is minimized or maximized, but we still need to scale our
14991           child windows. Also, added try/finally block to ensure layout
14992           gets reset (Fixes #78697)
14993
14994 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
14995
14996         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
14997
14998 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
14999
15000         * Form.cs: Fixed c+p error and added check to resize form if minimum
15001           size is bigger than current size (Fixes #78709)
15002
15003 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
15004
15005         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
15006
15007 2006-06-26  Mike Kestner  <mkestner@novell.com>
15008
15009         * ComboBox.cs: only do Keypress handling in the combo when there  
15010         are items in the collection. Fixes #78710.
15011
15012 2006-06-26  Chris Toshok  <toshok@ximian.com>
15013
15014         * Binding.cs: make this work bi-directionally.  also, clear up
15015         other mixups between Push/Pull Data (e.g. we're supposed to pull
15016         data when validating).
15017
15018         * BindingManagerBase.cs: trim some fully qualified collection
15019         types.
15020
15021         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
15022
15023 2006-06-23  Chris Toshok  <toshok@ximian.com>
15024
15025         * PropertyManager.cs: It appears (according to the unit tests)
15026         that PropertyManager doesn't use
15027         PropertyDescriptor.AddValueChanged to track propery value changes
15028         in its datasource, but uses the same scheme as Binding, where it
15029         looks for a <Property>Changed event and binds to it.
15030
15031         Also, according to the docs, IsSuspended always returns false for
15032         a property manager with a non-null datasource.
15033
15034 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
15035
15036         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
15037           need to update the actual DialogResult. (Fixes #78613)
15038
15039 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
15040
15041         * Form.cs (ShowDialog): Release any captures before running the
15042           new message pump (fixes #78680)
15043
15044 2006-06-22  Mike Kestner  <mkestner@novell.com>
15045
15046         * ListView.cs: Layout column widths properly in details mode even 
15047         if HeaderStyle.None is set.  Fixes #78691.
15048
15049 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
15050
15051         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
15052
15053 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
15054
15055         * Control.cs (ContainsFocus): Using new driver method to get focused
15056           window, instead of trying to use internal tracking var, which can
15057           recursion issues (Fixes #78685)
15058         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
15059           XplatUIWin32.cs: Added GetFocus method to return focused window
15060
15061 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15062
15063         * ColorDialog.cs: when the mouse button is pressed inside the color
15064         matrix, don't let the cursor move out of it until the button is
15065         released, which is the behavior on windows. Changed 'colours' by
15066         'colors' to use the same word consistently.
15067
15068 2006-06-21  Chris Toshok  <toshok@ximian.com>
15069
15070         * DataGrid.cs: add in some basic navigation stuff (navigating to a
15071         child relation and back, using a stack).  Also, remove
15072         GetDataSource and the code that calls it - it's not needed.  Also,
15073         track CurrencyManager.ListName's removal.
15074
15075 2006-06-21  Chris Toshok  <toshok@ximian.com>
15076
15077         * CurrencyManager.cs: push some of the original type checking from
15078         BindingContext.CreateBindingManager to here, and remove some of
15079         the finalType stuff.  Need more tests to make sure I've got the
15080         ListName part right, and we might need more in SetDataSource.
15081
15082         * PropertyManager.cs: add a ctor that takes just the datasource,
15083         and no property name.  Make SetDataSource work with a null
15084         property_name, and make Current return the data_source if the
15085         property descriptor is null.  this makes 'string foo = "hi";
15086         BindingContext[foo].Current' return "hi" as it should.
15087
15088         * RelatedCurrencyManager.cs: make this code more generic - there's
15089         no reason the parent manager has to be CurrencyManager, and
15090         there's no reason to pass the DataRelation.  It suffices to use a
15091         BindingManagerBase and PropetyDescriptor.
15092
15093         * RelatedPropertyManager.cs: make a similar change here.
15094         
15095         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
15096         flower I knew it could be.
15097
15098 2006-06-20  Chris Toshok  <toshok@ximian.com>
15099
15100         * PropertyManager.cs: the PropertyChangedHandler is invoked when
15101         data in the source has changed and we need to update the control,
15102         so s/PullData/PushData.
15103
15104         * CurrencyManager.cs: Refresh is meant to update the control from
15105         data in the datasource.  So, s/PullData/PushData.
15106
15107         * BindingContext.cs: add more ugliness (we weren't handling the
15108         case where data_source = DataTable and data_member = column_name).
15109
15110         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
15111         from the perspective of the datasource.  PullData pulls from the
15112         control, PushData pushes to the control.
15113
15114 2006-06-20  Chris Toshok  <toshok@ximian.com>
15115
15116         * BindingContext.cs: rewrite the CreateBindingManager code to
15117         handle navigation paths more or less properly.  This could
15118         definitely stand some more work, in particular to push the
15119         recursion up to the toplevel.  But that relies on fixes in other
15120         places (System.Data comes to mind).
15121
15122         Also, move to a flat hashtable (and encode the twolevel nature of
15123         the dictionary into the hash key).  This lets us implement the
15124         IEnumerable.GetEnumerator method.
15125
15126         * RelatedCurrencyManager.cs: new class.  Update our view based on
15127         our relation and our parent CurrencyManager's position.
15128
15129         * CurrencyManager.cs: split out some logic from the ctor into
15130         SetView, so it can be called from the new RelatedCurrencyManager
15131         subclass.
15132
15133         * RelatedPropertyManager.cs: new class.  Update our datasource
15134         based on the position of our parent CurrencyManager.
15135
15136         * PropertyManager.cs: split out some logic from the ctor into
15137         SetDataSource, so it can be called from the new RelatedDataSource
15138         subclass.  Also, make the Current getter return the value
15139         of the PropertyDescriptor, not the data_source.
15140
15141         * Binding.cs: no need to duplicate the string splitting code here.
15142
15143 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
15144
15145         * Control.cs:
15146           - set_Enabled: OnEnabledChanged is not called if the inherited state 
15147             of the control is not altered, even though  we might be changing the
15148             internal state of the control (#78458)
15149           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
15150             OnEnabledChanged, to allow easy altering of any child window state
15151           - OnEnabledChanged: Added code to enable/disable driver window state
15152           - OnParentEnabledChanged: Instead of firing the event, call 
15153             OnEnabledChanged, which will fire the event and also a) set driver
15154             window state and pass the enabled state to any grandchildren (#78458)
15155
15156 2006-06-19  Jackson Harper  <jackson@ximian.com>
15157
15158         * InternalWindowManager.cs: We don't set the cursor explicitly
15159         thats done via the response to NCHITTESTs.
15160         - Don't need to adjust for titlebar heights anymore, the
15161         coordinates are coming in the correct coordinates now (see peters
15162         last patch).
15163
15164
15165 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
15166
15167         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
15168           being translated relative to whole window, instead of client window.
15169           That caused broken offsets on mouseclick (and caused gas for our
15170           InternalWindowManager)
15171
15172 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
15173
15174         * TextControl.cs:
15175           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
15176           - Undo(): Added replay of cursor move on DeleteChars action; added
15177             calling Undo() again if a recorded cursor move is invalid (to
15178             ensure that some action is performed on Undo)
15179         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
15180
15181 2006-06-16  Jackson Harper  <jackson@ximian.com>
15182
15183         * MdiClient.cs: Instead of just sizing maximized windows when
15184         there is a resize we also have to adjust the Y of minimized
15185         windows, so they stay pinned to the bottom of the mdi container.
15186         - Eliminate separate tracking of the active control, we can just
15187         get this from the controls collection.
15188         - Paint the decorations for the newly activated titlebar so we get
15189         a pretty blue bar.
15190         * InternalWindowManager.cs:
15191         * ThemeWin32Classic.cs: Minimized windows get all three buttons
15192         even if they are a tool window.
15193         
15194 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
15195
15196         * TextControl.cs (Undo): Handle non-existent cursor locations in the
15197           undo buffer, these can happen when text was deleted and the cursor
15198           was recorded first. Since we will also have a recorded cursor
15199           after the delete this is not an issue. (Fixes #78651)
15200
15201 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
15202
15203         * AccessibleObject.cs: Remove dependence on Control.is_selected;
15204           instead properly track control states internally (allows us to
15205           remove is_selected from Control)
15206
15207 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15208
15209         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
15210         whose width is not a multiple of 8.
15211
15212 2006-06-13  Jackson Harper  <jackson@ximian.com>
15213
15214         * MdiClient.cs:  Only maximize the next child if the current one
15215         is maximized.
15216
15217 2006-06-13  Chris Toshok  <toshok@ximian.com>
15218
15219         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
15220         modified.  Also, guard against grid or grid_drawing being null in
15221         Invalidate.
15222
15223         * DataGrid.cs: Reformat tons of getters/setters.  In the
15224         DataMember setter, just call SetNewDataSource instead of
15225         duplicating some of its functionality.  In SetNewDataSource, don't
15226         check ListManager for null, since the property getter creates the
15227         object if needed.
15228
15229         * DataGridTableStyle.cs: don't set TableStyle or call
15230         SetDataGridInternal on the column here, it's done in
15231         GridColumnStylesCollection.Add.
15232
15233         * GridColumnStylesCollection.cs: fix all the explicit interface
15234         implementations to just call our methods.  Nuke AddInternal() and
15235         move the body of it to Add().  Also, add a call to
15236         column.SetDataGridInternal to Add().
15237
15238         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
15239         base()+duplicate code.  Also, use the Format property instead of
15240         format to generate an Invalidate ala MS.  Lastly, create the
15241         textbox here, unconditionally.
15242         (set_Format): call Invalidate.
15243         (get_TextBox): no need to call EnsureTextBox.
15244         (Commit): remove the message box.
15245         (Edit) remove the call to EnsureTextBox.
15246         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
15247         (EnterNullValue): no need to check textbox for null.
15248         (HideEditBox): no need to check textbox for null.
15249         (SetDataGridInColumn): add the textbox to the grid's controls.
15250         (EnsureTextBox): nuke.
15251         
15252 2006-06-13  Jackson Harper  <jackson@ximian.com>
15253
15254         * MdiWindowManager.cs: Hook up to the maximized menus paint event
15255         and redraw the buttons when needed. Unhook when the window is
15256         unmaximized.
15257         * MainMenu.cs: Add an internal Paint event, the mdi window manager
15258         needs this so that it can redraw its buttons when the menu is
15259         repainted.
15260         * InternalWindowManager.cs:
15261         * Form.cs: The method order has changed for DrawMaximizedButtons,
15262         so that it can be a PaintEventHandler.
15263         
15264 2006-06-13  Jackson Harper  <jackson@ximian.com>
15265
15266         * MdiClient.cs: When we close a maximized mdi window, the next mdi
15267         window is activated and maximized, even if it wasn't before.
15268         - When  a new window is activated repaint the decorations of the
15269         old one, so that it no longer has the Active "look" (the blue
15270         titlebar).
15271         * InternalWindowManager.cs: Open up CreateButtons to base classes
15272         so they can recreate the buttons on state changes.
15273         - If a window is maximized give it all three buttons
15274         * MdiWindowManager.cs: Create the titlebar buttons when the state
15275         is changed, this is needed because a toolwindow will not have all
15276         three buttons until it is maximized.
15277
15278 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
15279
15280         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
15281           Fixed bug #78609.
15282
15283 2006-06-12  Jackson Harper  <jackson@ximian.com>
15284
15285         * KeysConverter.cs: Make sure we handle the Ctrl special case
15286         if its the only key.
15287         
15288 2006-06-12  Jackson Harper  <jackson@ximian.com>
15289
15290         * Theme.cs: Add a method to get the size of a managed window
15291         toolbar button.
15292         * InternalWindowManager.cs: Remove the ButtonSize property, this
15293         should be retrieved from the theme.
15294         * MdiWindowManager.cs: Get the button size from the theme
15295         * ThemeWin32Classic.cs: Make the method to get the managed window
15296         titlebar button size public.
15297         - Handle the different button sizes of maximized toolwindows
15298         (should match any maximized window).
15299         - Get the titlebar height from the theme, not the WM (which gets
15300         it from the theme).
15301
15302 2006-06-12  Jackson Harper  <jackson@ximian.com>
15303
15304         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
15305         event down to the mdi window manager.
15306         - Expose some extra stuff to base classes
15307         - Make sure to end the Capture on an NC Mouse up, so that we can
15308         get double clicks properly, and the sizing doens't stick.
15309         - When doing PointToClient contain it in the workable desktop
15310         area, this prevents windows from changing size when the cursor is
15311         pulled outside of the working area while sizing.
15312         * MdiWindowManager.cs: When we get a double click maximize the
15313         window.
15314         - Reset the cursor after handling mode changes.
15315
15316 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
15317
15318         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
15319           current desktop, instead of just assuming a 0, 0 origin. This
15320           is needed for our internal window manager, to know the top
15321           margin of the desktop
15322
15323 2006-06-12  Chris Toshok  <toshok@ximian.com>
15324
15325         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
15326         we need this to get rid of the selected background in the bool
15327         column.
15328         (CancelEditing): move the ConcedeFocus call to above the Abort
15329         call.  Also, set is_changing to false and invalidate the row
15330         header if we were changing before.
15331         (ProcessKeyPreviewInternal): remove, since noone outside this
15332         class calls it anymore.  Roll the code into ProcessKeyPreview.
15333         (EndEdit): remove the internal version.
15334         (InvalidateCurrentRowHeader): make private.
15335
15336         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
15337         Keys.Escape handling (and with it the last call to
15338         DataGrid.EndEdit from outside the class.)
15339
15340
15341 2006-06-12  Chris Toshok  <toshok@ximian.com>
15342
15343         * DataGridTextBox.cs (.ctor): isedit defaults to false.
15344         (OnKeyPress): set isedit to true.
15345         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
15346         already handled by the grid.
15347
15348         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
15349         right.  ugh.
15350         (set_DataSource): SetDataSource always returns true, so stop
15351         putting it in an if statement.
15352         (EndEdit): get rid of some {}'s
15353         (ProcessGridKey): return true in case Keys.Escape.
15354         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
15355         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
15356         PositionChanged, stopped connecting to CurrentChanged.
15357         (GetDataSource): simplify this a bunch.
15358         (SetDataSource): change return type from bool to void.
15359         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
15360         to this, and make sure we don't set ListManager.Position inside
15361         set_CurrentCell.
15362         (OnListManagerItemChanged): if we're passed an actual index,
15363         redraw that row.
15364
15365         * CurrencyManager.cs (set_Position): don't call PullData here.
15366
15367 2006-06-09  Jackson Harper  <jackson@ximian.com>
15368
15369         * TreeNode.cs:  Recalculate the visible order before doing the
15370         Expand/Collapse Below calls, because those calls generate an
15371         expose.
15372         - Reduce calls to the TreeView property, which is mildly expensive
15373         by using a local var.
15374         * Form.cs: Layout the MDI child windows when creating the parent
15375         form.
15376         - Don't use the internal constructor anymore
15377         * MdiClient.cs: use the parent form width/height (if available)
15378         when laying out the child windows, we do this because the
15379         mdiclient isn't docked yet when the initial layout is done.
15380         - Don't need an internal constructor anymore.
15381
15382 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15383
15384         * FileDialog.cs: handle access errors when trying to create a folder
15385         or changing to a directory. No need to initialize out parameters.
15386
15387 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15388
15389         * FileDialog.cs: Append a number when creating a new folder if the
15390           folder already exists (use parenthesis instead of square brackets)
15391
15392 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15393
15394         * FileDialog.cs:
15395           - Disabled registry support for windows and added better registry
15396             error checking for other systems (need to investigate why it
15397             works perfectly on my system)
15398           - If a folder already exist show an error MessageBox instead of
15399             trying to create an indexed name.
15400           - Fixed a non intentional typo.
15401
15402 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15403
15404         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
15405
15406 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15407
15408         * FileDialog.cs: When creating a new folder don't crash if the
15409           folder already exists.
15410
15411 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15412
15413         * FileDialog.cs: Allmost a complete rewrite.
15414           - added a "virtual" file system that handles the differences
15415             between unix and windows file systems (especially the directory
15416             structure). Moved most of the directory and file handling code
15417             into the vfs.
15418             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
15419             UnixFileSystem and FSEntry.
15420           - Recently used folder/directory, size, location and used file names
15421             (file name ComboBox) are now stored in the registry and get read
15422             before the dialog shows up (fixes part 6 of bug #78446).
15423           - Creation of new folders/directories is now possible (context menu
15424             or ToolBar). Added TextEntryDialog for this that fills in the gap
15425             until ListView.LabelEdit works.
15426           - Fixed cursor handling (bug #78527) and focus handling for
15427             PopupButtonPanel
15428           - Various "Search in" ComboBox enhancements. The content of the
15429             dropdown listbox now almost matches ms.
15430           - Changed the behaviour when the user switches to SpecialFolder
15431             Recent to show the ListView in View.Details.
15432           - Beside using the ToolBar to change the View property of the
15433             file ListView it is now possible to use the context menu too.
15434
15435 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
15436
15437         * ComboBox.cs: Don't create a new ObjectCollection when an item
15438           gets inserted. Just insert the item in the existing object_items
15439           ArrayList.
15440
15441 2006-06-08  Jackson Harper  <jackson@ximian.com>
15442
15443         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
15444         that the treeview and root node checks are done also, this fixes a
15445         regression i caused in the unit tests.
15446
15447 2006-06-07  Wade Berrier <wberrier@novell.com> 
15448
15449         * RichTextBox.cs: More ISO8859-1 -> unicode
15450
15451 2006-06-07  Mike Kestner  <mkestner@novell.com>
15452
15453         * ComboBox.cs : use items to hold highlight/selection so that
15454         collection insertions don't require synchronization.
15455
15456 2006-06-07  Jackson Harper  <jackson@ximian.com>
15457
15458         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
15459         routine.  We now always keep the sized edge at the cursor instead
15460         of computing movement and adjusting rects.  There is one buglet
15461         with this method though when the cursor is moved over area that
15462         the window can not expand too (such as the toolbars on the desktop).
15463
15464 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15465
15466         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
15467         here. Fixes crash on startup in AlbumSurfer.
15468
15469 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
15470
15471         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
15472           values
15473
15474 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15475
15476         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
15477         statement to avoid calling XNextEvent which will block if another thread
15478         took the event that we were expecting. Fixes bug #78605.
15479
15480 2006-06-07  Mike Kestner  <mkestner@novell.com>
15481
15482         * ListView.cs : isolated checkbox clicking from the selection logic.
15483         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
15484
15485 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15486
15487         * Form.cs: Check that the value passed to Form.DialogResult
15488         is a valid enum value.
15489
15490 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15491
15492         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
15493         Computer'. Clicking it in the network view goes to 'My Computer'.
15494         Added CIFS filesystem type. Display the mount point of filesystems.
15495         Avoid duplicate mount points (happens for me with CIFS);
15496
15497 2006-06-06  Jackson Harper  <jackson@ximian.com>
15498
15499         * InternalWindowManager.cs: Draw the maximized windows buttons
15500         when resizing.
15501
15502 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15503
15504         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
15505         all other dialogs. Fixes bug #78585.
15506
15507 2006-06-06  Mike Kestner  <mkestner@novell.com>
15508
15509         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
15510         Only invalidate checkbox on checkstate changes to avoid flicker.
15511         * ListBox.cs : avoid unselect/select when clicking selected item.
15512         avoid reselection flicker for already multiselected items.
15513         Fixes #78382.
15514
15515 2006-06-06  Jackson Harper  <jackson@ximian.com>
15516
15517         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
15518         the parent form so that the menu is removed if needed.
15519
15520 2006-06-06  Mike Kestner  <mkestner@novell.com>
15521
15522         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
15523         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
15524
15525 2006-06-06  Mike Kestner  <mkestner@novell.com>
15526
15527         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
15528
15529
15530 2006-06-06  Jackson Harper  <jackson@ximian.com>
15531
15532         * Control.cs: Use the property (instead of the field) to get the
15533         default cursor so it is instantiated correctly.
15534         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
15535         resizes so we need to manually repaint the window decorations here.
15536         - Set the titlebar button locations as soon as they are created,
15537         otherwise they are not set correctly on win32.
15538         
15539 2006-06-06  Chris Toshok  <toshok@ximian.com>
15540
15541         * CurrencyManager.cs (set_Position): call PullData before
15542         OnCurrentChanged.
15543         (AddNew): after calling IBindingList.AddNew, update our
15544         listposition, and call OnCurrentChanged/OnPositionChanged (without
15545         calling PullData).
15546         (OnCurrentChanged): remove the call to PullData from here.
15547         (OnItemChanged): remove the call to PushData from here.
15548         (OnPositionChanged): change the test from == null to != null to
15549         match the other methods.
15550         (ListChangedHandler): the grossest part of the patch.  Implement
15551         this such that it passes the unit tests in CurrencyManagerTest and
15552         the output more or less matches that of MS's implementation.
15553  
15554 2006-06-06  Mike Kestner  <mkestner@novell.com>
15555
15556         * ListView.cs : only update check state on single click.
15557         * ThemeWin32Classic.cs : fix focus drawing for details view without
15558         fullrowselect.  Fixes #78454.
15559         * XplatUIX11.cs : fix for double click emission.
15560
15561 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
15562
15563         * PropertyGridView.cs : Applied Atsushi's patch to fix
15564         font dialog bug  (#78197).
15565
15566 2006-06-05  Jackson Harper  <jackson@ximian.com>
15567
15568         * TreeNode.cs: Compute the next node for expanding/collapsing
15569         correctly. We now factor in nodes without a NextNode
15570         correctly. (Fixes somes cases in nunit-gui).
15571         * InternalWindowManager.cs: Set the bounds when updating the
15572         virtual position of a tool window.
15573         
15574 2006-06-05  Chris Toshok  <toshok@ximian.com>
15575
15576         * DataGrid.cs: rename cached_currencymgr to list_manager.
15577         (set_CurrentCell): move SetCurrentCell code here, and clean it up
15578         some.
15579         (CurrentRow, CurrentColumn): single accessors so we can make the
15580         cursor movement code a lot easier to understand.
15581         (CurrentRowIndex): implement this in terms of CurrentRow.
15582         (BeginEdit): clean this up a bit.
15583         (CancelEditing): sort out the is_editing/is_changing/is_adding
15584         stuff a little.
15585         (EndEdit): minor changes.
15586         (OnKeyDown): add a comment about a (most likely) unnecessary
15587         check.
15588         (OnMouseDown): cancel editing when we click on a row header.  And
15589         use the CurrentRow setter, not CurrentCell.
15590         (ProcessDialogKey): directly call ProcessGridKey.
15591         (UpdateSelectionAfterCursorMove): factor out this common block of
15592         code (it's used everywhere that we move the cursor by updating row
15593         or column).
15594         (ProcessGridKey): pretty substantial overhaul.  Use the
15595         CurrentRow/CurrentColumn properties to make the code a lot more
15596         readable.  Only use the CurrentCell property when we have to
15597         modify both row and column at once.  Tab behavior is still broken,
15598         and Delete is untested.
15599         (Select): if we have no selected rows, set selection_start to
15600         @row.
15601         (EditCurrentCell): rename EditCell this.  It was only ever invoked
15602         with CurrentCell as the arg, so drop the arg and rename it.
15603
15604         * DataGridColumnStyle.cs: clean up the constructors a little, and
15605         drop CommonConstructor().
15606
15607         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
15608         actually get notified when the user hits it.
15609         (ProcessKeyMessage): *substantially* simplify this method.
15610         There's no reason (that I can see) for the textbox to be making
15611         calls into the datagrid at all.  Remove all of them but the ones
15612         for Enter handling.  those will take some more work.
15613
15614         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
15615         calling HideEditBox.
15616         (HideEditBox): if we have an active textbox, render it invisible
15617         without causing a re-layout of the datagrid.
15618
15619 2006-06-05  Mike Kestner  <mkestner@novell.com>
15620
15621         * ListView.cs : fix NRE crasher when focuseditem is cleared by
15622         collection changes by resetting it to Items[0].  Fixes #78587.
15623
15624 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15625
15626         * MessageBox.cs: if the height of the text is larger than the icon_size,
15627         use that. Fixes bug #78575.
15628
15629 2006-06-05  Jackson Harper  <jackson@ximian.com>
15630
15631         * TreeView.cs: Fix line drawing when scrolling.  To do this each
15632         node is basically responsible for drawing its entire horizontal
15633         area.  When drawing a node it draws its parent node lines if
15634         needed.
15635         - Adjust the clip area to the viewport rectangle
15636         - Fix Left/Right key handling to match MS. (It expand/collapses
15637         and moves to parents/first child but does not move selection to
15638         sibling nodes).
15639         - Fix SetTop to work with new bound calculation code
15640         - When scrollbars are no longer needed we need to reset scrolling
15641         vars and recalculate the visible order so the redraw is correct
15642         * TreeNode.cs: We can't expand/collapse nodes with no children.
15643
15644 2006-06-03  John Luke  <john.luke@gmail.com> 
15645
15646         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
15647         so the colors work without dev packages
15648         
15649 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
15650
15651         * Control.cs 
15652           - Select: Implemented to just use activate. Seems to match MS 
15653             behaviour closest. Documented to only do actual control walking 
15654             based on it's parameters if in a container control so I moved 
15655             the code there.
15656           - Removed selection check logic from our internal Select() method
15657         * ContainerControl.cs:
15658           - Select: Moved selection logic from Control here, since MS documents
15659             that containers obey the bool arguments. No longer calling base
15660
15661 2006-06-02  Jackson Harper  <jackson@ximian.com>
15662
15663         * TreeView.cs: If the selected node isn't changed when we get
15664         focus update the previously selected node so that we see the
15665         selection box.
15666
15667 2006-06-02  Mike Kestner  <mkestner@novell.com>
15668
15669         * ComboBox.cs: restructure grab and general mouse event handling.
15670         Make the composite control raise mouse events like it was a single
15671         control for leaves/enters/motion/up/down events.  fix dropdown list
15672         coordinate mangling and refactor it into the scrollbar subclass to
15673         reduce code duplication.  Fixes #78282 #78361 and #78457.
15674
15675 2006-06-02  Mike Kestner  <mkestner@novell.com>
15676
15677         * ScrollBar.cs: remove Capture setting/clearing, as it happens
15678         automatically in the Control.WndProc.
15679
15680 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15681
15682         * FileDialog.cs: fix crash when running SharpChess, which sets the
15683         FilterIndex to 2 with only one Filter.
15684
15685 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15686
15687         * ToolBar.cs: add SizeSpecified property.
15688         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
15689         try to figure out our real size, otherwise fallback to what the
15690         container says.
15691
15692 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
15693
15694         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
15695         * Control.cs (WndProc): MS always calls the DefWndProc to pass
15696           up the event
15697
15698 2006-06-01  Mike Kestner  <mkestner@novell.com>
15699
15700         * ListView.cs: revamp the focus management in ListView.  It still
15701         causes churn of LostFocus/GotFocus emissions on clicks, but it's
15702         better than not handling focus at all.  Will revisit when pdb feels
15703         the general focus handling is solid.  Fixes #78526.
15704
15705 2006-06-01  Jackson Harper  <jackson@ximian.com>
15706
15707         * TreeView.cs: Set the default border style in the constructor.
15708         - Move painting to use OnPaintInternal instead of capturing
15709         WM_PAINT, this is the correct way of doing things
15710         - UpdateBelow shouldn't invalidate the scrollbar area
15711         - Cap the top on update below in case the node was above the top
15712         of the viewport rectangle.
15713         - ExpandBelow and Collapse below need to obey Begin/End Update.
15714         * TreeNode.cs: Make is_expanded internal so the treenode
15715         collection can change it without firing the whole event chain.
15716         * TreeNodeCollection.cs: When clearing all the child nodes make
15717         sure to recalc the visible order.
15718         - Improve algo for remove the top node
15719
15720 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
15721
15722         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
15723           SendMessage directly calling window procedures, which in turn might
15724           call SetFocus()
15725
15726 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
15727
15728         * Control.cs: Don't handle WM_SETFOCUS if the same window already
15729           has focus (works around X11 sending a FocusIn after our SetFocus)
15730         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
15731
15732 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
15733
15734         * Mime.cs: Fix for the NET_2_0 build.
15735           NameValueCollection needs StringComparer now.
15736
15737 2006-05-31  Chris Toshok  <toshok@ximian.com>
15738
15739         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
15740         return (via an out parameter) the starting X of the column.
15741         (UpdateVisibleColumn): track change to FromPixelToColumn.
15742         (HitTest): add a ColumnResize case here.
15743         (DrawResizeLine): new function, probably poorly named.
15744
15745         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
15746         only need to keep one reference.
15747         (set_ListManager): same.
15748         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
15749         Also, add support for HitTestType.ColumnResize.
15750         (OnMouseMove): add column resize behavior here, and change the
15751         cursor to the correct one as we move around the datagrid.
15752         (OnMouseUp): terminate the column resize if we're resizing.
15753         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
15754         for the current cell.
15755         (ConnectListManagerEvents): use cached_currencymgr.
15756         (DisconnectListManagerEvents): fill this in, using
15757         cached_currencymgr.
15758         (SetCurrentCell): remove cached_currencymgr_events handling.
15759         (SetDataMember): only call DisconnectListManagerEvents if
15760         cached_currencymgr is != null.
15761         (SetDataSource): same.
15762         (OnListManagerCurrentChanged): cached_currencymgr_events ->
15763         cached_currencymgr.
15764
15765 2006-05-31  Jackson Harper  <jackson@ximian.com>
15766
15767         * BindingManagerBase.cs: Remove somedebug code that creeped into
15768         SVN.
15769         * TreeNode.cs: We get the indent level dynamically right now, so
15770         don't track it as a member.
15771         * TreeNodeCollection.cs: Make sure all nodes added to the list
15772         have parents, treeviews/topnodes setup properly.
15773         - Don't attempt to track indent level.
15774
15775 2006-05-30  Jackson Harper  <jackson@ximian.com>
15776
15777         * BindingContext.cs: Create the currency manager tables here.
15778         This allows us to more easily create null tables (when bad data
15779         members are used), and more easily create related currency
15780         managers.
15781         * CurrencyManager.cs: All the table creation stuff is done by the
15782         binding context now.
15783         - Current should throw an exception if listposition is -1.
15784         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
15785         been bound yet.
15786
15787 2006-05-30  Mike Kestner  <mkestner@novell.com>
15788
15789         * ListView.cs: allow reexpansion of zero-width column headers.
15790         Fixes #78528.
15791
15792 2006-05-28  Chris Toshok  <toshok@ximian.com>
15793
15794         * CurrencyManager.cs (get_Current): after the late binding
15795         listposition = -1 fix, we need to guard against it here and return
15796         null, otherwise we raise an exception (which is swallowed
15797         elsewhere, and breaks datagrid databinding.)
15798
15799 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
15800
15801         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
15802           than WM_SYSKEY, don't throw if get something unexpected (#78507)
15803
15804 2006-05-26  Jackson Harper  <jackson@ximian.com>
15805
15806         * ControlPaint.cs:
15807         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
15808         values, it's faster and it's all we care about (we don't care if
15809         the names aren't equal).
15810         * KeyboardLayouts.cs: Eliminate some dead code.
15811         - Lazy init things
15812         * X11Keyboard.cs: Lazy init keyboard detection.
15813         - Cleanup access modifiers a little.
15814
15815 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
15816
15817         * XplatUIX11.cs: Once again, attempting to get layout just right.
15818
15819 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
15820
15821         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
15822           the sizes of each link section, that will result in sizes that
15823           match DrawString's layout (Fixes #78391)
15824
15825 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
15826
15827         * FileDialog.cs: If AddExtension property is true autocomplete the
15828           extensions in SaveFileDialog correctly. Fixes bug #78453.
15829           Set MyNetwork and MyComputer to "C:\" for windows. This should
15830           fix part 8 of bug #78446 for now.
15831
15832 2006-05-26  Chris Toshok  <toshok@ximian.com>
15833
15834         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
15835         invalidate the current row header if we need to, but presumably
15836         we'll invalidate the row corrsponding to the bounds or
15837         editingControl.
15838         (GridHScrolled): switch back to this method, as it's part of the
15839         public api.  *sigh*.
15840         (GridVScrolled): same.
15841         (OnMouseWheel): hack up something that more or less works.  Call
15842         GridHScrolled/GridVScrolled directly, instead of duplicating much
15843         of their code here.
15844         (EnsureCellVisibility): reinstate a bunch of this code, since we
15845         can't just set the scrollbar Value and expect to do all the work
15846         in the ValueChanged handler.  Also, Call Update() after scrolling
15847         in one direction so the other XplatX11.ScrollWindow call has the
15848         proper stuff in the proper places.
15849         (EditCell): set is_editing to true before calling .Edit.
15850
15851         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
15852         don't bother comparing first.
15853         (OnKeyPress): call grid.ColumnStartedEditing before calling
15854         base.OnKeyPress.  this will set is_changing and invalidate the row
15855         header if necessary.
15856         (ProcessKeyMessage): for WM_CHAR messages, call
15857         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
15858         and WM_KEYDOWN.
15859         
15860         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
15861         it's done in the DataGrid.
15862         (NextState): call grid.ColumnStartedEditing, which takes care of
15863         invalidating the row header (and setting is_changing).
15864
15865         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
15866         here.  it's done in the DataGrid.
15867
15868 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15869
15870         * Control.cs: allow changing the cursor when the mouse position is
15871         out of bounds but Capture is set.
15872         * LinkLabel.cs: handle the case when the mouse button is pressed on the
15873         linklabel but released somewhere else.
15874
15875 2006-05-25  Jackson Harper  <jackson@ximian.com>
15876
15877         * TreeView.cs: When we get focus if there is no selected node make
15878         it the top node
15879         - Remove some uneeded setup code from Draw.
15880         * TreeNodeCollection.cs: If the tree doesn't have a top node when
15881         a new node is inserted make the new node the top.
15882         * XplatUIX11.cs:
15883         * Timer.cs: Use Utc time so that no local time zone stuff needs to
15884         be used (should be faster).
15885         
15886 2006-05-25  Chris Toshok  <toshok@ximian.com>
15887
15888         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
15889         problem with the last commit.
15890
15891 2006-05-25  Chris Toshok  <toshok@ximian.com>
15892
15893         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
15894         need the invalidate call here, while scrolling right-to-left via
15895         the left arrow key (i.e. moving the editing cell while scrolling).
15896
15897         * DataGrid.cs (.ctor): remove the initialization of
15898         ctrl_pressed/shift_pressed.  We no longer track them using key
15899         up/down handlers, but by using Control.ModifierKeys.  Also, switch
15900         to using ValueChanged handlers on the scrollbars instead of
15901         Scrolled event handlers.  This simplifies a bunch of the scrolling
15902         code.
15903         (GridHValueChanged): rename from GridHScrolled, and change it to
15904         work with the new event args.
15905         (GridVValueChanged): same.
15906         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
15907         (OnMouseWheel): actually scroll the datagrid.  Don't change the
15908         selected cell.
15909         (ProcessGridKey): correct all the keyboard navigation stuff I
15910         could find.  Ctrl up/down/left/right/home/end work now.
15911         (EnsureCellVisibility): correct method name spelling.  Also,
15912         simplify this a touch by not explicitly calling the
15913         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
15914         scrollbar value.
15915         (OnKeyUpDG): no need for this method now.
15916         
15917 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15918
15919         * LinkLabel.cs: display the OverrideCursor when hovering the label.
15920         Fixes bug #78392.
15921
15922 2006-05-25  Chris Toshok  <toshok@ximian.com>
15923
15924         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
15925         r61019.
15926
15927 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
15928
15929         * Application.cs: Moved setting of is_modal and closing to before
15930           we create the control, to allow the event handlers called as a
15931           result of creation affect closing. Also removed Gonzalo's previous
15932           change to setting DialogResult, the behaviour has been moved to 
15933           Form.ShowDialog()
15934         * Form.cs: 
15935           - ShowDialog(): Removed explicit creation of the form, let RunLoop
15936             handle it instead
15937           - ShowDialog(): If no dialog result is set, we need to return Cancel
15938           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
15939             the close is cancelled
15940
15941 2006-05-25  Jackson Harper  <jackson@ximian.com>
15942
15943         * StatusBar.cs: We only need to update the sizes of the other
15944         panels when we have auto size contents.  Also we are only updating
15945         the contents of the panel, not the borders, so compensate for the
15946         border width (TODO: get this width from the theme somehow).
15947         * TreeView.cs: Scrollable is true by default
15948         - Use invalidate instead of refresh where needed
15949         - Factor the scrollable value into scrollbar updating
15950         - Update the scrollbars if the Scrollable property is altered
15951         - Update the selected node if its ImageIndex is changed
15952         - Handle null nodes in UpdateNode (mainly so we don't have to
15953         check if selected is null when updating it
15954         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
15955         are factored into the visible count
15956         - Use VisibleCount for clarity in the code
15957         - When the font is changed we need to recurse through all the
15958         nodes and invalidate their sizes
15959         
15960 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15961
15962         * Application.cs: set the DialogResult to fixed when the main form is
15963         hidden or destroyed while being modal.
15964
15965 2006-05-25  Miguel de Icaza  <miguel@novell.com>
15966
15967         * Theme.cs: Use Tangoified messagebox icons. 
15968
15969         (GetSizedResourceImage): Also cope with width = 0 and do not
15970         trigger a warning in that case (0 means "give me your icon from
15971         the resouce, no special size needed).
15972
15973 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
15974
15975         * Application.cs: Leave runloop if the the main modal form is 
15976           hidden (fixes #78484)
15977
15978 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
15979
15980         * BindingContext.cs : reject null datasource in Contains() and
15981           Item[].
15982         * CurrencyManager.cs : check data_member validity when data_source
15983           is dataset. When it is late binding, the initial position is -1.
15984
15985 2006-05-24  Jackson Harper  <jackson@ximian.com>
15986
15987         * TreeNodeCollection.cs: Dont't recalculate the visible order on
15988         inserted nodes that aren't visible.  This changes the
15989         max_visible_order which confuses scrollbar settings.
15990         - Use the enumerator to get the prev node instead of duplicating
15991         code.
15992         * TreeView.cs: Use new method for setting scrollbar values
15993         - Don't set the bounds every time the scrollbar is updated
15994         - When updating below the root node use an invalidate instead of a
15995         refresh to prevent the child controls (scrollbars) from being
15996         refreshed. (UpdateBelow still needs to be reworked anyways).
15997         - Reenable SetBottom now that visible orders are set correctly,
15998         added some debug code incase we ever get bad values there again.
15999         - Set the scrollbar max to 2 less then the max value, this
16000         compensates for the max value being one above the node count, and
16001         for scrollbars adding one extra "notch".
16002         - When drawing image nodes if there is an imagelist we draw the
16003         first image in the list if the supplied image index is out of the
16004         image list's bounds.
16005         
16006 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
16007
16008         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
16009           we receive a size change from the WM (Fixes #78503)
16010
16011 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
16012
16013         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
16014           rectangle (Fixes #78501)
16015
16016 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
16017
16018         * ButtonBase.cs: 
16019           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
16020             as a bitfield.
16021           - Fixed MouseMove to no longer switch pressed state unless the left
16022             mouse button is pressed. Atsushi provided the original patch (#78485)
16023           
16024 2006-05-24  Jackson Harper  <jackson@ximian.com>
16025
16026         * ScrollBar.cs: New internal methods that allow us to change a
16027         couple values on the scrollbar (the most common case is maximum
16028         and large change) without getting multiple invalidates.
16029
16030 2006-05-24  Chris Toshok  <toshok@ximian.com>
16031
16032         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
16033         (Edit): save off the original state in oldState, and set
16034         grid.is_editing to true.
16035         (OnKeyDown): abort editing if escape is pressed.  also, call
16036         NextState if space is pressed.
16037         (OnMouseDown): call NextState.
16038         (NextState): factor out shared code from OnKeyDown and OnMouseDown
16039         here.  Also, only invalidate the row header once (on the initial
16040         is_changing switch) to save on redraws.
16041
16042 2006-05-24  Chris Toshok  <toshok@ximian.com>
16043
16044         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
16045         if the value in the cell is different than it was before.  This
16046         keeps us from triggering a layout when we move around a datarid
16047         with a highlighted cell.
16048         (Edit): suspend layout when creating/positining the text box, and
16049         resume passing false so we don't ever actually re-layout.
16050         (ReleaseHostedControl): same.
16051         (EnsureTextBox): reformat slightly, and set WordWrap to false.
16052
16053         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
16054         control-key sequences should go to the datagrid - remove that
16055         lock.  Also, modify the conditions under which we move between
16056         cells when moving the cursor within a cell, and remove the "this"
16057         and "base" from field accesses.  We weren't even consistent, given
16058         they all were in the base class.
16059
16060 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
16061
16062         * Binding.cs : (.ctor)
16063           An obvious NRE fix for BindingTest.CtorNullTest().
16064
16065 2006-05-23  Chris Toshok  <toshok@ximian.com>
16066
16067         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
16068         them between lines.  This fixes some quirks editing cells in the
16069         datagrid.
16070
16071 2006-05-23  Jackson Harper  <jackson@ximian.com>
16072
16073         * TreeView.cs: Use begin/end update when doing expand/collapse all
16074         so that we don't get flicker on the scrollbar.
16075
16076 2006-05-23  Jackson Harper  <jackson@ximian.com>
16077
16078         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
16079         treenode calculations to be independant of the painting code. To
16080         do this nodes track a visible order which is calculated by the
16081         treeview.
16082         - Call new methods for expanding/collapsing nodes.  These methods
16083         use scrollwindow so we don't have to update everything below the
16084         node.
16085         * TreeView.cs: Refactored drawing and scrolling code.  We don't
16086         need to update nodes when drawing anymore or calculate scrollbar
16087         stuff.
16088         - Added new methods for expanding/collapsing nodes. These methods
16089         use ScrollWindow so as to not have to redraw all the nodes below.
16090         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
16091         we add/remove nodes or sort.
16092         - Handle removing the selected and the top node properly.
16093
16094 2006-05-23  Chris Toshok  <toshok@ximian.com>
16095
16096         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
16097         maybe this should actually happen in the datagrid code?
16098         (EndEdit): no need to invalidate anything, given that
16099         ReleaseHostedControl causes the datagrid to relayout, which
16100         invalidates everything anyway.
16101
16102         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
16103         in SetCurrentCell).
16104         (set_SelectionBackColor): call InvalidateSelection instead of
16105         Refresh.
16106         (set_SelectionForeColor): same.
16107         (BeginEdit): Flesh this out a bit.
16108         (CancelEditing): only do any of this if we're editing/adding.
16109         (EndEdit): same.
16110         (OnMouseDown): there's no need to cancel editing here, it's done
16111         in SetCurrentCell.
16112         (SetCurrentCell): only invalidate the current row header if it's a
16113         different row than the new one.
16114         (ShiftSelection): fix this to work like MS does.
16115         (ResetSelection): factor out the invalidation of selected_rows to
16116         InvalidateSelection.
16117         (SetDataSource): cancel any editing that's going on.
16118
16119         * DataGridColumnStyle.cs
16120         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
16121         call the non-interface version.
16122
16123         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
16124         header rectangle with the clip rectangle so we don't redraw the
16125         entire header for just a small area.  Gets rid of the last flicker
16126         when horizontally scrolling.
16127         (DataGridPaintRow): same.
16128
16129 2006-05-23  Mike Kestner  <mkestner@novell.com>
16130
16131         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
16132         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
16133         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
16134         Critical bug report.
16135
16136 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
16137
16138         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
16139           and this fixes #78493
16140
16141 2006-05-23  Miguel de Icaza  <miguel@novell.com>
16142
16143         * Theme.cs (GetSizedResourceImage): Scale images if the proper
16144         size is not found.  
16145         
16146         * FileDialog.cs: Do not change the background for the side bar as
16147         it wont work nicely with the theme, and also reduces the artifacts
16148         in rendering the icons (which I want to fix too).
16149
16150         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
16151         resources, not resgen resources. 
16152
16153         (PlatformDefaultHandler): Pull images using the new API.
16154
16155 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
16156
16157         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
16158           a reference to the hwnd and will not remove it unless there are
16159           no pending exposures (fixes #78341)
16160         * XplatUI.cs: Improved debug
16161
16162 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
16163
16164         * MenuAPI.cs : don't handle OnClick event when it was not the left
16165           button. Fixed bug #78487.
16166
16167 2006-05-23  Mike Kestner  <mkestner@novell.com>
16168
16169         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
16170         prefer submenus to the top menu for item lookup, to avoid popping down
16171         top-row items.
16172
16173 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
16174
16175         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
16176           Graphics.FillRectangle as the visual results are really bad (even
16177           on win). We now draw perfect arrows (and perfect shadows when the
16178           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
16179           Pen.DashPattern to draw the dots of each line.
16180
16181 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
16182
16183         * FileDialog.cs: Update the filename combobox when navigating through
16184           the ListView with the cursor keys. Fixes part 7 of bug #78446.
16185
16186 2006-05-22  Mike Kestner  <mkestner@novell.com>
16187
16188         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
16189         Fixes #78463.
16190
16191 2006-05-22  Mike Kestner  <mkestner@novell.com>
16192
16193         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
16194         requests. Fix a misspelled parameter and a copy paste exception error
16195         in Select.
16196
16197 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
16198
16199         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
16200           to get the same width/height (5/13) on X11 as the default font has on
16201           win32. This means that our DefaultFont emSize is smaller than the 
16202           the MS SWF equivalent (even thought the width/height stays the same)
16203
16204 2006-05-20  Jackson Harper  <jackson@ximian.com>
16205
16206         * MdiClient.cs:
16207         * MdiWindowManager.cs:
16208         * InternalWindowManager.cs: Make sure to use the border width from
16209         the theme.
16210
16211 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
16212
16213         * PrintDialog.cs: Implements printer details
16214
16215 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
16216
16217         * FileDialog.cs: Added focus handling for PopupButtonPanel.
16218           Fixes part 1 and 2 of bug #78446
16219
16220 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
16221
16222         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
16223           instead of sticking to the first ever calculated value
16224
16225 2006-05-19  Mike Kestner  <mkestner@novell.com>
16226
16227         * ComboBox.cs: fix mouse motion selection to use MousePosition and
16228         PointToClient, since Capture is set. Fixes #78344.
16229
16230 2006-05-19  Mike Kestner  <mkestner@novell.com>
16231
16232         * ListView.cs: match MS behavior in Details view where items are not
16233         drawn if Columns.Count == 0. 
16234         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
16235         Use a separate pen to draw the check, since changing the width affects
16236         the box as well.  Fixes #78454.
16237
16238 2006-05-18  Miguel de Icaza  <miguel@novell.com>
16239
16240         * ListView.cs: ArgumentOutOfRangeException, single versions of the
16241         exception should throw the name of the invalid argument.
16242
16243         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
16244         there are no files listed. 
16245
16246 2006-05-18  Jackson Harper  <jackson@ximian.com>
16247
16248         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
16249         up.
16250
16251 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
16252
16253         * Control.cs: Brought back our old UpdateZOrder method as a private
16254           function and switched our calls from UpdateZOrder to the new one.
16255           This fixes the Paint.Net canvas disappearing bug.
16256
16257 2006-05-18  Jackson Harper  <jackson@ximian.com>
16258
16259         * Theme.cs:
16260         * ThemeWin32Classic.cs:
16261         * InternalWindowManager.cs: Move the drawing into the theme,
16262         expose everything the theme should need from the window manager.
16263
16264 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
16265
16266         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
16267           from the call to NativeWindow to avoid walking up the parent chain
16268           further than needed (speeds up setting cursors and avoids setting
16269           the wrong cursor if a parent has another cursor defined)
16270         * Cursor.cs: When loading an icon as cursor, MS uses the center of
16271           the icon as hotspot, not what's contained as hotspot in the icon
16272           file. This fixes the perceived drawing offset seen with Paint.Net
16273         
16274 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
16275
16276         * XplatUIX11.cs: 
16277           - Store the calculated rectangle in Hwnd object and use it when 
16278             setting the client size
16279           - Force Toolwindows to always be type Dock, to ensure they're on top
16280
16281 2006-05-18  Mike Kestner  <mkestner@novell.com>
16282
16283         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
16284         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
16285         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
16286         Substantial refactoring to remove confusing nested classes. Coding
16287         standard and Get+Set->property refactorings.  Shift to index based
16288         highlighting in ComboListBox instead of constantly using IndexOf and
16289         Items[]. Add invalidations on resize for DropDownList to fix ugliness
16290         in FileDialog growth.  Draw borders manually since Simple mode needs
16291         to look like two independent controls.  Make listbox border
16292         conditional to DropDownStyle.  Improved OwnerDraw support.
16293
16294 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
16295
16296         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
16297         Don't set the disposed graphics to null, so we can throw the "right"
16298         exception if the graphics is reused later (added a flag to avoid 
16299         double disposing). Some behaviours are different under 2.0 and are
16300         filled under bug #78448.
16301
16302 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
16303
16304         * Control.cs: When double-buffering is enabled, we need to reset
16305           our graphics context between paint calls. Otherwise, any 
16306           transformations and other alterations on the context will 
16307           become cumulative (#77734)
16308
16309 2006-05-18  Mike Kestner  <mkestner@novell.com>
16310
16311         * ListView.cs: do focused item selection like MS on clicks. 
16312         Rework focus handling for ItemControl so LostFocus invalidates as
16313         well.
16314         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
16315         the ListView ItemControl has focus.
16316
16317 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
16318
16319         * XplatUIX11.cs: If client_window ends up being width or height zero
16320           due to border settings, move it off window inside whole_window (#78433)
16321
16322 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
16323
16324         * Mime.cs: Shrink the mime file cache correctly.
16325
16326 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
16327
16328         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
16329
16330 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
16331
16332         * XplatUIX11.cs (AddExpose): More sanity checks
16333
16334 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
16335
16336         * XplatUIX11.cs:
16337           - AddExpose: Don't add expose ranges outside the size of our
16338             window
16339           - Cast opacity values to Int32 to avoid crashes with certain
16340             values
16341           - Added disabled code paths that protect against illegal cross-
16342             thread painting (Developers.exe)
16343
16344 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
16345
16346         * ProgressBar.cs: Invalidate the control when it's resized
16347           since block size is based on control size. (#78388)
16348
16349 2006-05-16  Miguel de Icaza  <miguel@novell.com>
16350
16351         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
16352         of setting the incoming argument to the "reset" value, we set the
16353         this.datamember to string.empty (before we were invalidating the
16354         incoming data).   
16355
16356         Fixes 78420
16357
16358 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
16359
16360         * Form.cs: Only apply transparency settings after the form
16361           is created. (Fixes #77800)
16362
16363 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
16364
16365         * ApplicationContext.cs: Grab the HandleDestroyed event so
16366           we know when to fire OnMainFormClosed 
16367
16368 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
16369
16370         * Application.cs: Introduced sub-class to allow tracking of
16371           threads and centralized triggering of the event mess for
16372           ThreadExit, AppExit, etc..  (#76156)
16373
16374 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
16375
16376         * MimeIcon.cs:
16377           - Do not return a null icon index value for a mime subclass.
16378             Instead try the main mime type class too.
16379           - Seems that some newer distributions don't have a link to some
16380             gnome default icons anymore. So check the default gnome dir too.
16381           
16382
16383 2006-05-16  Jackson Harper  <jackson@ximian.com>
16384
16385         * MdiClient.cs: Don't paint the parent background image if we have
16386         our own background image.
16387
16388 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
16389
16390         * Control.cs:
16391           - PerformLayout: Do not shrink space filled by DockStyle.Fill
16392             controls, all filled controls are supposed to overlap (#78080)
16393           - UpdateZOrder is supposed to update the control's z-order in the
16394             parent's z-order chain. Fixed to behave like that
16395           - BringToFront: Removed obsolete code
16396           - SendToBack: Simplyfied
16397           - SetChildIndex: Trigger layout calculations when Z-order changes
16398             since layout is done by z-order
16399
16400 2006-05-16  Chris Toshok  <toshok@ximian.com>
16401
16402         [ fixes bug #78410 ]
16403         * DataGrid.cs (set_AlternatingBackColor): use
16404         grid_drawing.InvalidateCells instead of Refresh().
16405         (set_BackColor): call grid_drawing.InvalidateCells.
16406         (set_BackgroundColor): use Invalidate instead of Refresh.
16407
16408         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
16409         invalidate the cell area.
16410
16411 2006-05-15  Chris Toshok  <toshok@ximian.com>
16412
16413         [ fixes bug #78011 ]
16414         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
16415         on to DataGridPaintRow.
16416         (DataGridPaintRow): take a clip argument, and only draw the cells
16417         which intersect it.  same with the not_usedarea.
16418
16419         * Theme.cs (DataGridPaintRow) add @clip parameter.
16420
16421         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
16422         XplatUI.ScrollWindow.
16423         (ScrollToRow): same.
16424
16425         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
16426         with last column which was causing a gray swath to appear with the
16427         XplatUI.ScrollWindow code.
16428
16429 2006-05-15  Chris Toshok  <toshok@ximian.com>
16430
16431         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
16432         use XplatUI.ScrollWindow.
16433         (VerticalScrollEvent): use XplatUI.ScrollWindow.
16434
16435 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
16436
16437         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
16438
16439 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
16440
16441         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
16442           file since there are no equivalent X11 cursors
16443
16444 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
16445
16446         * MonthCalendar.cs : DateTimePicker should reflect selected date
16447           on mouse*up*, not mouse*down*. Fixed originally reported part of
16448           bug #76474.
16449
16450 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
16451
16452         * TabControl.cs : When argument index is equal or more than tab
16453           count, just ignore. Fixed bug #78395.
16454
16455 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
16456
16457         * Control.cs: Dispose all child controls when control is diposed (#78394)
16458
16459 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
16460
16461         * ColorDialog.cs: Finally it is possible to select the color with
16462           the text boxes
16463
16464 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
16465
16466         * PrintDialog.cs: Fix typo
16467
16468 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
16469
16470         * PrintDialog.cs: PrintDialog is not resizable
16471         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
16472           color. Made some ToolBar drawing methods protected virtual.
16473
16474 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
16475
16476         * PrintDialog.cs: Implementation of the PrintDialog
16477
16478 2006-05-12  Chris Toshok  <toshok@ximian.com>
16479
16480         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
16481         thumb, instead use MoveThumb.  This has the side effect of making
16482         most of the other thumb moving machinery use MoveThumb as well.
16483         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
16484         need to actually invalidate the rectangle where the new thumb will
16485         go.
16486         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
16487         We force an Update() after, so it's not as fast as it could be,
16488         but at least there's zero flicker and no droppings.
16489         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
16490         (UpdateThumbPos): add another argument (dirty), which says whether
16491         or not to calculate/add dirty regions which we later invalidate.
16492         For cases where we know we're going to use MoveThumb, we pass
16493         false for this.  Otherwise, pass true.
16494
16495 2006-05-12  Jackson Harper  <jackson@ximian.com>
16496
16497         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
16498         the status bar.
16499         
16500 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
16501
16502         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
16503           and GetClipRegion methods and UserClipWontExposeParent property.
16504         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
16505           overriding UserClipWontExposeParent property, setting to false, since
16506           Win32 handles the required expose messages to draw our clipped parent
16507           areas internally
16508         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
16509           PaintEventStart to set the user clip region if set.
16510         * Control.cs: 
16511           - Now internally tracking the Region for the control since we need to
16512             store it if the handle is not yet created and only set it when it
16513             becomes created. Before setting the region forced handle creation
16514           - Added code to draw the parents underneath a user-clipped region
16515         * Hwnd.cs: Added UserClip property
16516
16517 2006-05-12  Chris Toshok  <toshok@ximian.com>
16518
16519         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
16520         (set_Maximum): same.
16521         (set_Minimum): same.
16522         (set_SmallChange): same.
16523         (OnMouseUpSB): remove the call to refresh when releasing the
16524         thumb.  We shouldn't need it.
16525         
16526 2006-05-12  Miguel de Icaza  <miguel@novell.com>
16527
16528         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
16529         AutoSize set to None, we do not need to relayout everything, we
16530         just need to invalidate the current region.
16531
16532         (Draw): Do not draw the entire ClientArea, just redraw the
16533         clip area being passed.
16534
16535         * MdiClient.cs: Make MdiClient constructor with the Form argument
16536         internal. 
16537
16538 2006-05-12  Jackson Harper  <jackson@ximian.com>
16539
16540         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
16541         parents background image,  but strangely not their own.
16542         - (DrawStatusBarPanel): Take into account horizontal alignment
16543         when drawing the strings and icons.
16544
16545 2006-05-12  Mike Kestner  <mkestner@novell.com>
16546
16547         * ListBox.cs: avoid invalidations for focus when the collection is
16548         empty. 
16549
16550 2006-05-12  Chris Toshok  <toshok@ximian.com>
16551
16552         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
16553         invalidate the entire thumb area.  Call InvalidateDirty which
16554         limits the redraw to the thumb itself and surrounding pixels.
16555
16556         * XplatUIX11.cs (ScrollWindow): optimize copying.
16557         
16558 2006-05-12  Chris Toshok  <toshok@ximian.com>
16559
16560         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
16561         Figure out the positioning/layout in a single pass instead of
16562         multiple recursive invocations.  Speeds up the initial display of
16563         the data grid.  Also, make many things private that were
16564         originally public but unused outside this class.
16565
16566 2006-05-11  Jackson Harper  <jackson@ximian.com>
16567
16568         * MdiClient.cs: Improved layout code.
16569
16570 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
16571
16572         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
16573           not SelectedObject.
16574
16575 2006-05-11  Chris Toshok  <toshok@ximian.com>
16576
16577         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
16578         union of that will always be {0,0,width,height}.
16579
16580 2006-05-11  Jackson Harper  <jackson@ximian.com>
16581
16582         * Form.cs: Match MS's DefaultSize for forms (they must have
16583         changed the size in sp2).
16584
16585 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
16586
16587         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
16588
16589 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
16590
16591         * TextControl.cs : Fixed bug #78109. This incorrect position
16592           comparison caused crash on automatic line split.
16593         * TextBoxBase.cs : reduce duplicate code.
16594
16595 2006-05-10  Jackson Harper  <jackson@ximian.com>
16596
16597         * MdiClient.cs: Active form is only sent to the back when using
16598         the Next form functionality, when a form is clicked the current
16599         active shouldn't be sent to the back.
16600         - Layout the mdi windows when the container is first made visible.
16601         * Form.cs: Give the MdiClient a ref to the containing form when we
16602         create it.
16603         
16604 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
16605
16606         * LinkLabel.cs : link_font could be uninitialized, so populate one
16607           before actual use. Fixed bug #78340.
16608
16609 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
16610
16611         * XplatUIX11.cs : clipboard format native value is IntPtr.
16612           Fixed bug #78283.
16613
16614 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
16615
16616         * Control.cs: 
16617           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
16618             which is passed up the parent chain by DefWndProc
16619           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
16620             to DefWndProc (#77956)
16621         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
16622
16623 2006-05-10  Jackson Harper  <jackson@ximian.com>
16624
16625         * MdiClient.cs: We need to remove the controls from the mdi
16626         collection, when we close the window.
16627         * MdiWindowManager.cs: Special handling of closing mdi windows.
16628         * InternalWindowManager.cs: Make the close method virtual so the
16629         mdi window manager can handle it specially.
16630
16631 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
16632
16633         * DataGrid.cs:
16634           - Recalculate grid when the data source has changed
16635           - Matches styles provided by user from all data sources types
16636         * DataGridTableStyle.cs: For columns that provided by the user set the
16637         with the preferred value is there was unassigned.
16638         * CurrencyManager.cs: throw OnItemChanged event
16639
16640 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
16641
16642         * PictureBox.cs: Don't animate until handle is created. Start animation
16643           when handle is created.
16644
16645 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
16646
16647         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
16648           current codebase.
16649         * XEventQueue.cs: We don't need to provide the extra info
16650
16651 2006-05-10  Jackson Harper  <jackson@ximian.com>
16652
16653         * MdiClient.cs: If the mdi clients parent form has a background
16654         image set, we draw that background image for the mdi area's
16655         background.
16656
16657 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
16658
16659         * TextBoxBase.cs: Set IBeam cursor (#78347)
16660
16661 2006-05-10  Mike Kestner  <mkestner@novell.com>
16662
16663         * ToolBar.cs: fix some text padding issues with ButtonSize
16664         calculation. Update the default size to match MS documentation.
16665         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
16666         button size. Fixes #78296.
16667
16668 2006-05-10  Mike Kestner  <mkestner@novell.com>
16669
16670         * ListBox.cs: use is_visible for scrollbar positioning in case the
16671         control isn't on screen yet.  Fix off by one with Right vs Width
16672         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
16673         
16674 2006-05-10  Jackson Harper  <jackson@ximian.com>
16675
16676         * X11Dnd.cs: Drop to a control with another control on top of it.
16677         * ToolBar.cs: Work on a copy of the buttons list, so that it can
16678         be modified in click handlers. TODO: Look for similar problems in
16679         other controls.
16680
16681 2006-05-09  Jackson Harper  <jackson@ximian.com>
16682
16683         * Form.cs: Window managers need the old window state when setting
16684         window state now.
16685         * InternalWindowManager.cs: Allow the base mdi window manager to
16686         handle more of the MDI only stuff (like maximize buttons).
16687         * MdiWindowManager.cs: Fix some snafus in changing the window
16688         state.  Add all the menu functionality, for both popup and
16689         maximized menus.
16690         * MdiClient.cs: When a new form is selected the currently
16691         activated form is sent to the back, this matches MS.
16692         - Implement a new method to activate the next mdi child window.
16693
16694 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
16695
16696         * Control.cs: 
16697           - Added new InternalCapture method to allow controls to prevent
16698             the capture behaviour on the click handlers
16699           - Switched to use InternalCapture
16700         * ComboBox.cs:
16701           - Using InternalCapture to prevent mouse captures from being released
16702             on mouse button release (Fixes #78100)
16703         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
16704           returns Form borders if a caption is present. (Fixes #78310)
16705
16706 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
16707
16708         * TreeNode.cs: Changed serialization .ctor to not require every field
16709           to be present. (#78265)
16710         * OwnerDrawPropertyBag.cs: Added serialization .ctor
16711
16712 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
16713
16714         * MimeIcon.cs: for is faster than foreach for strings.
16715
16716 2006-05-05  Mike Kestner  <mkestner@novell.com>
16717
16718         * CheckedListBox.cs: update check handling code to not use selected.
16719         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
16720         behavior for visual feedback, motion response, shift/ctrl handling,
16721         and properly deal with all 4 selection modes. Updates to bounds
16722         handling logic.  Add scroll wheel support. [Fixes #77842]
16723
16724 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
16725
16726         * ListView.cs:
16727           - Moved adding of Implicit controls into .ctor. That way, subsequent
16728             creation of the controls will not cause them to think they are 
16729             toplevel windows (fixes #78200 header problem)
16730           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
16731           - Switched visibility setting of header control to use internal field
16732             to avoid triggering handle creation
16733           - Now checking if handle is created before causing a refresh when items
16734             are added (This makes us now match handle creation time with MS)
16735         * Splitter.cs: Removed loading of private splitter cursor, switched to
16736           Cursors version now that that is loading the right ones
16737         * Cursors.cs: Load proper splitter cursors from resources
16738         * Cursor.cs: Added second method of loading resource cursors for the 
16739           VS.Net users amongst us
16740
16741 2006-05-05  Mike Kestner  <mkestner@novell.com>
16742
16743         * ListView.cs: give header_control a minimum size based on the
16744         ListView size.
16745
16746 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
16747
16748         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
16749           window seems to do that with metacity, so set that type. (#78120)
16750
16751 2006-05-05  Mike Kestner  <mkestner@novell.com>
16752
16753         * ListViewItem.cs: fix Details mode checkbox layout bug.
16754         * ThemeWin32Classic.cs: draw a ListView column header for unused space
16755         at the end of the header, if it exists. [Fixes for #78200]
16756
16757 2006-05-04  Jackson Harper  <jackson@ximian.com>
16758
16759         * MdiClient.cs: Add a helper property to get the container form.
16760         * MdiWindowManager.cs: We have to make sure to use the menu origin
16761         when drawing the icons and buttons, this fixes maximized window
16762         icons/buttons on win32.
16763         * InternalWindowManager.cs: Reset the restore captions when a
16764         window goes from Maximized to Minimized and vice versa. Move the
16765         DrawMaximizedButtons into the MdiWindowManager source, tool
16766         windows can't be maximized. NOTE: This could use a little
16767         refactoring if time ever permits.
16768         
16769 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
16770
16771         * TextBox.cs: Add MWFCategoryAttributes
16772         * TextBoxBase.cs: Add MWFCategoryAttributes
16773         * Form.cs: Add MWFCategoryAttributes
16774
16775 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
16776
16777         * Control.cs: Add MWFCategoryAttributes
16778         * ScrollableControl.cs: Add MWFCategoryAttributes
16779
16780 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
16781
16782         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
16783           Divider is true. Fix a little glitch in PropertyToolBar
16784           drawing code
16785
16786 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
16787
16788         * Control.cs:
16789           - Dispose: Call base.Dispose, this causes the disposed event
16790             to be fired (and probably other, more important stuff)
16791           - SetVisibleCore: Set is_visible to true after creating the
16792             window so that the window still gets created invisible (if
16793             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
16794             to generate a WM_ACTIVE message
16795         * Form.cs: Call Dispose when we want to destroy the window, instead of
16796           just destroying the handle (Dispose will do that for us)
16797         * XplatUIX11.cs:
16798           - RootWindow also needs a queue, so we can properly process the
16799             property change events from RootWindow (like Activate)
16800           - Generatic synthetic WM_ACTIVE message when the active window is
16801             being destroyed
16802
16803 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
16804
16805         * LinkLabel.cs: Trigger a recalc of our label dimensions when
16806           bounds are changed
16807
16808 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
16809
16810         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
16811           for determining width and height (image might not be assigned if
16812           we're drawing an imagelist)
16813
16814 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
16815
16816         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
16817         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
16818           height from system
16819         * Theme.cs: No longer returns hardcoded menu height, instead calls
16820           new driver method
16821         * Form.cs (OnLoad): Scaling happens before triggering Load events 
16822           on MS (# 78257)
16823
16824 2006-05-01  Mike Kestner  <mkestner@novell.com>
16825
16826         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
16827
16828 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
16829
16830         * TextBoxBase.cs: Removed Fixme
16831         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
16832
16833 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
16834
16835         * XplatUIX11.cs:
16836           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
16837             the rectangle relative to the parent, considering borders. We
16838             don't really want that.
16839           - ScrollWindow: Fixed warning to be more understandable
16840         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
16841           scrollbars and scroll only the visible area
16842         * RichTextBox.cs: Removed debug output
16843
16844 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
16845
16846         * NumericUpDown.cs (Text): Just use base
16847         * UpDownBase.cs: Ensure txtView is created before using it
16848
16849 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
16850
16851         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
16852           casting to IntPtr to avoid 64bit overflow errors
16853
16854 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
16855
16856         * Control.cs:
16857           - AllowDrop: Don't force handle creation.
16858           - CreateHandle: Added call to tell driver if we're allowed to drop
16859
16860 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
16861
16862         * FileDialog.cs: Remember the last directory not only for the
16863           current instance but also for new FileDialog instances.
16864
16865 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
16866         
16867         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
16868           broke sending async messages
16869
16870 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
16871
16872         * XplatUIX11.cs:
16873           - ScrollWindow: Fixed method. We finally generate expose events again
16874             for scrolled areas. This was causing 'garbage' when scrolling
16875             textbox and other controls that used ScrollWindow
16876           - Switched from using the regular queue for paint events to the MS 
16877             model of 'generating' paint events when the queue is empty.
16878             We use the new XQueueEvent.Paint subclass to store which windows
16879             need painting.
16880           - AddExpose now takes the x/y/width/height of the exposed area
16881             and inserts the window into the paint queue if not already there
16882           - InvalidateWholeWindow: Switched to use new AddExpose method
16883           - UpdateMessageQueue: Added which queue to monitor for paint events
16884           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
16885             the unlikely case nothing above handles it. We reset the expose
16886             pending states to get them off the queue.
16887           - GetMessage: Now pulls a paint event if no other events are in the
16888             queue
16889           - Invalidate: Switched to new AddExpose method
16890           - PeekMessage: Updated to understand pending paint events
16891           - UpdateWindow: Fixed logic bug. We were only updating if the window
16892             didn't need updating. Also switched to sending WM_PAINT directly,
16893             like MS does.
16894         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
16895           and random access Remove(). The random access is needed to handle
16896           UpdateWindow() where a WM_PAINT is sent directly without accessing
16897           the queue.
16898         * ScrollBar.cs: Added Update() calls to cause immediate updates to
16899           allow for better feedback when scrolling. Scrollbars are small and
16900           the immediate update should make it 'feel' more responsive without
16901           slowing things down. ScrollBar still needs it's invaliate logic
16902           updated to not always invalidate the whole bar on certain changes.
16903
16904 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16905
16906         * Control.cs:
16907         (BackColor): if the control does not support a transparent background,
16908         return the default backcolor when the parent backcolor is transparent.
16909
16910 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
16911
16912         * Application.cs: Updated to new StartLoop/GetMessage API
16913         * RichTextBox.cs: Provide some output on RTF parsing errors
16914         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
16915           new queue_id argument to GetMessage and PeekMessage to allow faster
16916           handling of per-thread queues in drivers.
16917         * Hwnd.cs: Added Queue tracking and property
16918         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
16919         * XEventQueue.cs: Added thread trackingA
16920         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
16921         * XplatUIX11.cs:
16922           - Implemented new per-thread queue
16923           - GetMessage: Fixed return/break behaviour on several cases. We were
16924             returning stale messages in some cases, instead of just processing
16925             the next message
16926
16927 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
16928
16929         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
16930
16931 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
16932
16933         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
16934           fixed off-by-one comparisons between Width/Height and Right/Bottom.
16935
16936 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
16937
16938         * PropertyGridView.cs: Fix drop down width.
16939
16940 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
16941
16942         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
16943           a mess in DrawToolBar, so I removed one of them.
16944
16945 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
16946
16947         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
16948           needed (clip). Otherwise we get artifacts.
16949
16950 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
16951
16952         * FixedSizeTextBox.cs: Added constructor to allow specifying which
16953           dimension is fixed
16954         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
16955           and switched FixedSizeTextBox to only be fixed vertical (#78116)
16956         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
16957           if it matches the scale base font (avoids unneeded scaling)
16958
16959 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
16960
16961         * X11DesktopColors.cs: One gtk_init_check should be enough
16962
16963 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
16964
16965         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
16966           match MS behaviour
16967
16968 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
16969
16970         * TextBoxBase.cs: 
16971           - Generate OnTextChanged for Backspace even if we're only deleting
16972             the current selection
16973           - When setting the Text property, only select all text if the
16974             control does not have focus when it is being set. Otherwise
16975             just place the cursor at the beginning of the control
16976
16977 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
16978
16979         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
16980           Added a little helper to draw PropertyGrid ToolBar with a different
16981           border and a different BackColor.
16982         * PropertyGrid.cs: Some background parts didn't get painted with the
16983           correct background color. Added a class that helps us to draw the
16984           correct border for PropertyGridView and a class that helps us to
16985           draw ToolBars with a different backcolor
16986         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
16987
16988 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
16989
16990         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
16991         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
16992
16993 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
16994
16995         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
16996           into the palette entries. Also, since we're working on a copy
16997           we needed to copy the palette back onto the bitmap.
16998         * Cursor.cs: Same fix as XplatUIWin32.cs.
16999
17000 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
17001
17002         * ImageListStreamer.cs: Need to read the var (or we're off)
17003
17004 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
17005
17006         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
17007           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
17008           TextBoxBase.cs: Unused var fixes
17009         * AxHost.cs: Small 2.0 fix
17010         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
17011           as it seems that is what at least Metacity expects. This will make
17012           icons show up on 64bit platforms. We still have some 64bit size
17013           issues, though, since the startup app window size still won't match.
17014
17015 2006-04-25  Mike Kestner  <mkestner@novell.com>
17016
17017         * *.cs: cleanup newly reported exception var unused warnings.
17018
17019 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
17020
17021         * ThemeWin32Classic.cs: Button image alignment now matches exactly
17022           ms
17023
17024 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
17025
17026         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
17027           image. The image position is always the same, no matter if the
17028           button is pressed or not.
17029
17030 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
17031
17032         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
17033           selection and set the correct filename for SaveFileDialog.
17034           Patch by Emery Conrad.
17035
17036 2006-04-24  Mike Kestner  <mkestner@novell.com>
17037
17038         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
17039         check for item.X outside the ClientRect instead of item.Y. Fixes
17040         #78151.
17041
17042 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17043
17044         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
17045         trust that value blindly and do some sanity check. Fixes bug #77814.
17046
17047 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17048
17049         * ImageListStreamer.cs: save the mask as a 1bpp image.
17050
17051 2006-04-21  Mike Kestner  <mkestner@novell.com>
17052
17053         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
17054         pass Checked and Indeterminate to the Theme Engine. Improve
17055         encapsulation with ListBox.
17056         * ListBox.cs: Keep a StringFormat instead of calculating it every item
17057         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
17058         nested types.  Move all CheckState functionality to CheckedListBox.
17059         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
17060         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
17061         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
17062         single base list. Fix scrollbar sizing and placement to mirror MS.
17063         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
17064         used.
17065         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
17066         for CheckedListBox by using new DrawItemState info.  Center the
17067         checkboxes on the items. Use new StringFormat property.
17068
17069 2006-04-18  Jackson Harper  <jackson@ximian.com>
17070
17071         * Form.cs: MdiChildren don't do default locations the same way as
17072         regular forms.  This prevents a crash when trying to position the
17073         mdi windows.
17074
17075 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
17076
17077         * PropertyGridTextBox.cs: Formatting, copyright
17078         * PropertiesTab.cs: Formatting
17079         * PropertyGrid.cs: Formatting
17080         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
17081           click toggling of values
17082           
17083 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
17084
17085         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
17086         * Control.cs (.ctor): verify_thread_handle is static, don't reset
17087           every time a control is created
17088         * Application.cs: Removed obsolete EnableRTLMirroring method
17089
17090 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
17091
17092         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
17093         SelectedIndex to -1. Fixes bug #78121.
17094
17095 2006-04-17  Jackson Harper  <jackson@ximian.com>
17096
17097         * Binding.cs: Handle null values for Current and BindingContext.
17098         This occurs when binding is a little delayed.
17099         * CurrencyManager.cs: return null for Current when there are no
17100         items in the list.
17101         - Hookup to the listchanged event on the DataView and update
17102         bindings when the list is changed.  This fixes late binding of
17103         controls.
17104
17105 2006-04-17  Jackson Harper  <jackson@ximian.com>
17106
17107         * X11Dnd.cs:
17108         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
17109         Ringenbach.
17110
17111 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
17112
17113         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
17114           place
17115         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
17116           with the correct ButtonState
17117
17118 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
17119
17120         * XplatUIX11.cs: Improved distinguishing between window types to
17121           tell the WM a type closer to what the app wants (Fixes #78107)
17122
17123 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
17124
17125         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
17126           GrabHandle
17127
17128 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
17129
17130         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
17131           drawing code to reflect the size grip changes
17132
17133 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17134
17135         * ImageListStreamer.cs: fix handling of the mask that follows the main
17136         bitmap when deserializing and serialize it properly. The generated mask
17137         should better be a 1bpp image, but I'll do that later.
17138
17139 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
17140
17141         * FileDialog.cs: Show something in the DirComboBox on *nix if the
17142           path doesn't fit into some of our Current.Places
17143
17144 2006-04-13  Jackson Harper  <jackson@ximian.com>
17145
17146         * ComboBox.cs: Use borders instead of drawing our own decorations,
17147         try to obey correct rules for heights.
17148         * Theme.cs:
17149         * ThemeNice.cs:
17150         * ThemeClearLooks.cs:
17151         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
17152         this is now handled by borders.
17153         - Remove unused DrawListBoxDecorationSize method.
17154         
17155 2006-04-13  Mike Kestner  <mkestner@novell.com>
17156
17157         * MenuAPI.cs: null guarding for the disbled click check fixes crash
17158         reported by Alex.
17159
17160 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
17161
17162         * ThemeWin32Classic.cs: 
17163           - Fixed CPDrawStringDisabled
17164           - Corrected drawing of disabled menu items
17165           - Fixed drawing of disabled radio buttons (bug #78095)
17166           - Draw check in a disabled CheckBox with color ControlDark 
17167
17168 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
17169
17170         * Form.cs: Use the provided width when calculating the menu size;
17171           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
17172           and ClientSize.Width won't be updated yet
17173         * Application.cs: Use Visible instead of Show() to make form visible,
17174           this way we create the handle later and menusize is considered
17175
17176 2006-04-12  Mike Kestner  <mkestner@novell.com>
17177
17178         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
17179         reporting.
17180
17181 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
17182
17183         * TextBox.cs: Implemented context menu
17184
17185 2006-04-12  Mike Kestner  <mkestner@novell.com>
17186
17187         * ListView.cs: implement box selection. fixes #77838.
17188         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
17189
17190 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
17191
17192         * XplatUIX11.cs: Added setting of window type when transient window
17193           is created (metacity would move it otherwise)
17194         * X11Structs.cs: Added WINDOW_TYPE atoms
17195         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
17196           background (the control is Opaque but still wants transparent
17197           backgrounds)
17198
17199 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
17200
17201         * Control.cs: Added OnPaintBackgroundInternal to allow controls
17202           that set Opaque but don't mean it (like all ButtonBase-derived
17203           controls) to still draw their background
17204         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
17205           the background
17206
17207 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
17208
17209         * Control.cs (PaintControlBackground): Set the graphics object
17210           on our PaintEvent to null to prevent it from being disposed
17211           when the PaintEvent gets disposed
17212
17213 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
17214
17215         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
17216         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
17217
17218 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
17219
17220         * Control.cs: 
17221           - Added transparency check to BackColor property. Transparent
17222             backgrounds are only allowed if the control styles permit it
17223           - Added recursive painting of parent control background and
17224             foreground if a control with a transparent backcolor is drawn
17225             (Thanks to Tim Ringenback for providing his 'hack' as a base
17226              for this patch) Fixes #77985 and #78026.
17227           - Added Opaque style check before calling OnPaintBackground, no
17228             need to draw the background if the control is opaque
17229           - Removed ControlAccessibleObject owner variable (inherited from
17230             base, no need to define again)
17231           - Added some documentation links explaining the drawing events
17232             and styles
17233
17234 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
17235
17236         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
17237           that the affected control is the located at the left border of our
17238           parent (Fixes #77936)
17239
17240 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
17241
17242         * TextBoxBase.cs: When rendering disabled or readonly controls,
17243           draw the background with 'Control' instead of 'Window' color as
17244           long as the user hasn't specifically set a color
17245
17246 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
17247
17248         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
17249           since that won't be updated if the user types text (only if it's
17250           programatically set)
17251
17252 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
17253
17254         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
17255           layout changes do to app-triggered resizes will have the proper
17256           display rectangle for layout
17257
17258 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
17259
17260         * ThemeWin32Classic.cs:
17261           - Make use of the SystemBrushes and SystemPens wherever possible
17262           - Corrected some highlight colors
17263           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
17264             drawing
17265         * Theme.cs: Added Empty field to CPColor struct
17266
17267 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
17268
17269         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
17270           is displayed when calculating the display rectangle. Thanks to Mike
17271           for teaching me the err of my ways.
17272
17273 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
17274
17275         * ScrollableControl.cs:
17276           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
17277             (instead of 0,0) and we now return the real width/height instead of
17278             just the clientrectangle, adjusted for padding. The rectangle is
17279             now cached and created by the new CalculateDisplayRectangle method.
17280           - Created new CalculateDisplayRectange method, which basically does
17281             what get_DisplayRectangle() did originally, but now using the 
17282             right edge instead of DisplayRectangle to determine the size of
17283             our scrollbars
17284           - get_Canvas(): Fixed it to properly calculate canvas for 
17285             right/bottom controls which seem to be placed to the right/bottom
17286             of any controls that have a fixed location
17287           - Removed TODO that's taken care of
17288           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
17289             and SetDisplayRectLocation according to new MSDN2 docs
17290           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
17291             event when that is called, this is added for compatibility
17292           - ScrollControlIntoView(): Implemented.
17293           - Switched scrollbars to be implicit, they shouldn't be selectable
17294         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
17295           call it when the active control is set/changed
17296         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
17297         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
17298           implicit_control variable (used for native Win32 message generation)
17299         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
17300           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
17301         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
17302         * XplatUIStructs.cs: Added ScrollBarCommands enum
17303
17304 2006-04-10  Jackson Harper  <jackson@ximian.com>
17305
17306         * ButtonBase.cs:
17307         * CheckedListBox.cs:
17308         * ComboBox.cs:
17309         * DataGrid.cs:
17310         * DataGridView.cs:
17311         * Form.cs:
17312         * GroupBox.cs:
17313         * ListBox.cs:
17314         * PrintPreviewControl.cs:
17315         * ProgressBar.cs:
17316         * PropertyGrid.cs:
17317         * Splitter.cs:
17318         * StatusBar.cs:
17319         * TrackBar.cs:
17320         * UpDownBase.cs: Fixup base event overrides.
17321         
17322 2006-04-06  Mike Kestner  <mkestner@novell.com>
17323
17324         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
17325         all user-initiated value changes to min <= value <= max-thumbsz+1.
17326         (set_Value): check for vert/horiz when calculating new thumb position.
17327         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
17328         like MS does.
17329         (OnMouseMoveSB): refactor the thumb dragging code and refine
17330         invalidation logic to reduce flicker.
17331         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
17332         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
17333         (UpdateThumbPosition): small code readability cleanup
17334
17335 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
17336
17337         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
17338           different
17339
17340 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
17341
17342         * ThemeNice.cs: Use a better graphics effect when a button is pressed
17343
17344 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
17345
17346         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
17347         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
17348           This dramatically reduces the number of Pen.Dispose calls. 
17349           Where possible call ResPool methods only once instead of calling it
17350           over and over again (for example for the same color).
17351
17352 2006-04-06  Mike Kestner  <mkestner@novell.com>
17353
17354         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
17355         Also remove an unused private field on the collection. Fixes #77972.
17356
17357 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
17358
17359         * ThemeNice.cs: Added ToolBar drawing code
17360
17361 2006-04-06  Mike Kestner  <mkestner@novell.com>
17362
17363         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
17364         I'm assuming that means we need to look up the toplevel for the
17365         provided control. Fixes the crash trace in #77911 but exposes another
17366         crash in some strange reflection usage in NDocGui.
17367
17368 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
17369
17370         * ThemeNice.cs: Gave it a little silver touch and added Images
17371           method
17372         * FontDialog.cs: FontDialog is not resizable
17373         * FileDialg.cs: Added SizeGripStyle.Show
17374
17375 2006-04-05  Jackson Harper  <jackson@ximian.com>
17376
17377         * KeyboardLayouts.cs: Remove warning.
17378
17379 2006-04-05  Jackson Harper  <jackson@ximian.com>
17380
17381         * Control.cs: Enable OnPaintInternal so we can use it for drawing
17382         all of our controls instead of Paint +=.
17383         * ListBox.cs:
17384         * ListView.cs:
17385         * MenuAPI.cs:
17386         * MessageBox.cs:
17387         * NotifyIcon.cs:
17388         * ProgressBar.cs:
17389         * ScrollBar.cs:
17390         * Splitter.cs:
17391         * StatusBar.cs:
17392         * TabControl.cs:
17393         * TextBoxBase.cs:
17394         * ToolBar.cs:
17395         * TrackBar.cs:
17396         * UpDownBase.cs:
17397         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
17398         use OnPaintInternal. Remove Width/Height and Visible checks in
17399         paint handler, this is done at a higher level now.
17400         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
17401         * PaintEventArgs.cs: Add a handled flag so controls that don't
17402         want anymore painting after OnPaintInternal can make sure OnPaint
17403         isn't called.
17404
17405 2006-04-05  Mike Kestner  <mkestner@novell.com>
17406
17407         * Form.cs: fix the menu WndProc hacks to respect the native enabled
17408         state of the form, so that we don't process events when Modal dialogs
17409         are up. Fixes #77922.
17410
17411 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
17412
17413         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
17414           checking is done.
17415
17416 2006-04-05  Mike Kestner  <mkestner@novell.com>
17417
17418         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
17419
17420 2006-04-05  Mike Kestner  <mkestner@novell.com>
17421
17422         * ListView.cs (HeaderMouseMove): null guarding for the over column
17423         when setting up the drag_to_index.  Fixes #78015.
17424
17425 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
17426
17427         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
17428           in the taskbar. Transient windows seem to accomplish that.
17429
17430 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
17431
17432         * Form.cs:
17433           - Re-enabled CreateParams.X/Y code for FormStartPosition
17434           - Added code for manual placement when creating the Control
17435           - Incomplete patch to treat MDI forms differently when
17436             setting the ClientSizeCore. (Still need to figure out handling
17437             x/y coords there)
17438         * XplatUIX11.cs:
17439           - When we're explicitly setting the X/Y position of a non-Child
17440             window, let the WM know. Metacity really wants this.
17441
17442 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
17443
17444         * ThemeNice.cs: Added CPDrawButton
17445
17446 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
17447
17448         * ThemeNice.cs: Changed the color for focused buttons and activated
17449           the arrows for small scroll buttons.
17450
17451 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
17452
17453         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
17454           anymore. Changed some method modifiers to protected (virtual)
17455         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
17456           changes
17457         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
17458           Updated drawing of menus, buttons and progressbars; added
17459           CPDrawBorder3D 
17460
17461 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17462
17463         * ImageListStreamer.cs: implemented serialization/deserialization
17464         of the images.
17465
17466 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
17467
17468         * ThemeWin32Classic.cs:
17469           - Removed all the DrawFrameControl stuff; CPDrawButton,
17470             CPDrawCheckBox and CPDrawRadioButton are now handled directly
17471             inside the methods
17472           - Updated and corrected the drawing code of CPDrawButton,
17473             CPDrawCheckBox and CPDrawRadioButton to better match ms
17474           - Updated theme checkbox and radiobutton code to use the CP*
17475             methods
17476
17477 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
17478
17479         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
17480           bug is fixed
17481
17482 2006-03-31  Jackson Harper  <jackson@ximian.com>
17483
17484         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
17485         sometimes.
17486         * UpDownBase.cs: Don't CreateGraphics manually, use a
17487         Refresh. Ideally we would invalidate the correct areas here.
17488
17489 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
17490
17491         * XplatUIX11.cs: 
17492           - We now track the mapping state of windows. If a window (or 
17493             one of it's parents) is not mapped we no longer permit
17494             WM_PAINT messages to be generated since we'd otherwise get 
17495             lots of BadMatch X errors. Jackson did all the work figuring
17496             out the problem.
17497           - Destroying the caret if the window it's contained in is 
17498             destroyed. Can't use regular DestroyCaret method since it
17499             might fall into a drawing function (trying to remove the
17500             caret) and with that generate new BadMatch errors. Again,
17501             Jackson tracked this down.
17502           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
17503             make sure we send the messages to all windows. (The old code
17504             would send the WM_DESTROY to the window, and then all child
17505             windows would be 'gone' because the WM_DESTROY handle lookup
17506             would no longer find the destroyed window)
17507         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
17508         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
17509
17510 2006-03-31  Jackson Harper  <jackson@ximian.com>
17511
17512         * ScrollableControl.cs: Dont recalc if we are not visible.
17513
17514 2006-03-31  Mike Kestner  <mkestner@novell.com>
17515
17516         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
17517         the visibility branch.
17518
17519 2006-03-31  Jackson Harper  <jackson@ximian.com>
17520
17521         * ScrollBar.cs: Cap values when incrementing/decrementing.
17522
17523 2006-03-31  Mike Kestner  <mkestner@novell.com>
17524
17525         * MenuAPI.cs: setup menu.tracker for popup/context menus.
17526         * ToolTip.cs: guard against timer expirations with no active control.
17527         Not sure why it happened.
17528
17529 2006-03-31  Mike Kestner  <mkestner@novell.com>
17530
17531         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
17532         text.
17533         * ToolTip.cs: Position the tooltip based on where the cursor is at
17534         popup time, not at MouseEnter time.  Add a Down state so that we don't
17535         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
17536         positioning offset. Lookup DisplaySize at positioning time, since it
17537         can theoretically change during invocation.
17538         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
17539         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
17540
17541 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
17542
17543         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
17544           Fixes behaviour when the Text property of the box is String.Empty
17545
17546 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
17547
17548         * XplatUIX11.cs: Only send mouseleave for our client windows, not
17549           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
17550           a window)
17551
17552 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
17553
17554         * FileDialog.cs: Visual enhancement for the popup buttons in 
17555           PopupButtonPanel
17556
17557 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
17558
17559         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
17560           code
17561
17562 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
17563
17564         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
17565           highlighted menu items to match ms
17566
17567 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
17568
17569         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
17570
17571 2006-03-30  Mike Kestner  <mkestner@novell.com>
17572
17573         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
17574         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
17575         go active to account for HotLight to Selected transition.
17576         * MenuItem.cs: add internal Selected prop. Fill out the Status
17577         property by calculating it from item info. Add HotLight,
17578         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
17579
17580 2006-03-30  Mike Kestner  <mkestner@novell.com>
17581
17582         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
17583
17584 2006-03-29  Jackson Harper  <jackson@ximian.com>
17585
17586         * Form.cs: Implement TODO.
17587
17588 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
17589
17590         * PrintPreviewDialog.cs: Implemented missing methods and events; still
17591           missing proper dialog setup in the constructor
17592
17593 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
17594
17595         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
17596         * Control.cs:
17597           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
17598           - Fixed ResetBindings and removed TODO
17599           - Added check for cross-thread calls to get_Handle()
17600           - Added Marshaller attribute for set_Font to satisfy class status
17601         * FontDialog.cs: Removed TODOs that seemed implemented
17602         * UpDownBase.cs: Removed unneeded TODO and Fixme
17603         * MessageBox.cs: Implemented support for Default button and removed TODO
17604         * FileDialog.cs: Removed obsolete TODO
17605         * DomainUpDown.cs: Removed obsolete TODO
17606         * ButtonBase.cs: Removed obsolete TODO
17607         * XplatUIWin32.cs: Removed obsolete TODO
17608         * Form.cs:
17609           - Removed obsolete TODO
17610           - Calling CheckAcceptButton when the acceptbutton is changed to allow
17611             internal status updates
17612           - Making sure the active control is selected when the control is created
17613         * CurrencyManager.cs: Removed obsolete TODO
17614
17615 2006-03-29  Mike Kestner  <mkestner@novell.com>
17616
17617         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
17618         of PrintPreviewDialog and RichTextBox.
17619
17620 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
17621
17622         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
17623           DarkDark, Light and LightLight colors for a specific color
17624         * ThemeWin32Classic.cs:
17625           - Use Button drawing code to draw RadioButtons and CheckBoxes with
17626             Appearance = Button 
17627           - Make use of the new ResPool helper CPColor
17628           - Draw ProgressBar and StatusBar with correct 3D borders
17629
17630 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
17631
17632         * ColorDialog.cs: Return selected color. Fixes bug #77940.
17633
17634 2006-03-28  Mike Kestner  <mkestner@novell.com>
17635
17636         * ListView.cs: fix Icon layout to plan for scrollbar widths when
17637         calculating col/row counts.
17638
17639 2006-03-28  Mike Kestner  <mkestner@novell.com>
17640
17641         * ColumnHeader.cs:
17642         * ListView.cs:
17643         * ListViewItem.cs:
17644         * Menu.cs: 
17645         switch to explicit interface method implementation for some methods
17646         corcompare identifies as inconsistent with MS.
17647
17648 2006-03-28  Mike Kestner  <mkestner@novell.com>
17649
17650         * MainMenu.cs: 
17651         * Menu.cs:
17652         add a few missing methods from the class status output.
17653
17654 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
17655
17656         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
17657           correct.
17658
17659 2006-03-28  Mike Kestner  <mkestner@novell.com>
17660
17661         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
17662
17663 2006-03-27  Mike Kestner  <mkestner@novell.com>
17664
17665         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
17666         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
17667
17668 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
17669
17670         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
17671
17672 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
17673
17674         * ThemeWin32Classic.cs:
17675           - GroupBox: Inserted a little gap between the text and the lines
17676             on the right side
17677           - Made the code in CPDrawBorder3D more readable
17678           - Corrected the drawing location of the up and down arrows in 
17679             CPDrawScrollButton
17680
17681 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
17682
17683         * ControlPaint.cs: Corrected line widths in DrawBorder for
17684           ButtonBorderStyle Inset and Outset
17685
17686 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
17687
17688         * ThemeWin32Classic.cs:
17689           - Rewrote the totally broken CPDrawBorder3D method. That was
17690             one of the main problems for the terrific ThemeWin32Classic
17691             look
17692           - Updated and corrected Button drawing
17693           - Correct the dimensions of the SizeGrip to match ms ones
17694           - Removed a small drawing glitch in DrawComboBoxEditDecorations
17695         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
17696           Border3DStyle.Sunken to match ms.
17697
17698 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
17699
17700         * ThemeWin32Classic.cs: First small part of the "de-uglify
17701           ThemeWin32Classic" effort, SizeGrip
17702
17703 2006-03-24  Jackson Harper  <jackson@ximian.com>
17704
17705         * XplatUIX11.cs: Give a max idle time of one second, this matches
17706         MS and forces an Idle event every second when there are no other
17707         events in the queue.
17708
17709 2006-03-24  Mike Kestner  <mkestner@novell.com>
17710
17711         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
17712         * ListView.Item.cs: fix layout issues with null image lists and images
17713         smaller than checkbox size.
17714         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
17715         mode like MS does.  It's weird, but consistent.  ;-)
17716         Fixes #77890.
17717
17718 2006-03-24  Mike Kestner  <mkestner@novell.com>
17719
17720         * ListView.cs: Scroll wheel support for the item control.  Fixes
17721         #77839.
17722
17723 2006-03-23  Jackson Harper  <jackson@ximian.com>
17724
17725         * ScrollableControl.cs: Special case negative sized areas, not
17726         zero.
17727         * MonthCalendar.cs: Save the rect of the clicked date so we can
17728         use it for invalidation.
17729         - Try to cut down on the number of invalidates
17730         - Invalidate the rect the mouse is over and was over when moving
17731         the mouse, so we get the focus box following the cursor.
17732
17733 2006-03-23  Mike Kestner  <mkestner@novell.com>
17734
17735         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
17736         focus rectangle drawing. Fixes #77835.
17737
17738 2006-03-23  Mike Kestner  <mkestner@novell.com>
17739
17740         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
17741         the if and else if and reverting back to the original == check on the
17742         None conditional.
17743
17744 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
17745
17746         * FontDialog.cs: Update the example panel if the selected index of
17747           the fontListBox changes.
17748
17749 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
17750
17751         * FileDialog.cs: Make FileDialog remember which directory it was in
17752           last in the same execution.
17753
17754 2006-03-22  Mike Kestner  <mkestner@novell.com>
17755
17756         * FileDialog.cs: make the DropDownMenu on the toolbar display
17757         RadioChecks since they are mutually exclusive and that's what MS does.
17758
17759 2006-03-22  Mike Kestner  <mkestner@novell.com>
17760
17761         * Theme.cs: add Color param to CPDrawMenuGlyph.
17762         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
17763         checks and radio marks and arrows are visible on highlighted items.
17764         * ControlPaint.cs: update to use new Theme signature.
17765
17766 2006-03-22  Mike Kestner  <mkestner@novell.com>
17767
17768         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
17769         is active. Fixes #77870.
17770
17771 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
17772
17773         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
17774           to be focused/selected after startup
17775
17776 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
17777
17778         * ColorDialog.cs: 
17779           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
17780             CustomColors and ShowHelp properties
17781           - Some internal rewrites to get better results when using the
17782             ColorMatrix
17783
17784 2006-03-22  Mike Kestner  <mkestner@novell.com>
17785
17786         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
17787         HoverSelection.  Fixes #77836.
17788
17789 2006-03-22  Mike Kestner  <mkestner@novell.com>
17790
17791         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
17792         ToggleButtons.  (De)Sensitize the Back button around a stack count of
17793         1, not 0.  Update ButtonSize based on a pixel count of the win32
17794         control.  Adjust the toolbar size/location for new button size.
17795
17796 2006-03-22  Jackson Harper  <jackson@ximian.com>
17797
17798         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
17799         true.
17800         * ScrollBar.cs: When doing increments and decrements we need to
17801         set the Value property so that ValueChanged gets raised. A
17802         possible optimization here would be to make an internal SetValue
17803         that doesn't invalidate immediately.
17804         * ToolTip.cs: Tooltips get added to their container (when
17805         supplied) so they get disposed when the container is disposed.
17806         - Don't create tooltips for String.Empty. This prevents all these
17807         little 2-3 pixel windows from showing up when running nunit-gui
17808         and driving me mad.
17809         * Form.cs: Don't set topmost when setting the owner if the handles
17810         haven't been created yet.  The topmost set will happen when the
17811         handles are created.
17812
17813 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
17814
17815         * XplatUIX11.cs:
17816           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
17817           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
17818             visible (to allow them to recalculate their sizes)
17819
17820 2006-03-21  Mike Kestner  <mkestner@novell.com>
17821
17822         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
17823         methods. Removed a ton of redundant code.  Still not really happy with
17824         the border rendering, but I think that's mainly because of the
17825         ControlDarkDark being black instead of a dark grey. Depending on how 
17826         close we want to be, we might want to revisit those color choices.
17827         Among the new features added during the refactor were DropDownArrow
17828         pressed rendering, Disabled image rendering.  Proper flat appearance
17829         boundary rendering.  Removed the Divider and Wrapping dividers since I
17830         can't figure out any combination of themes and conditions to make the
17831         MS control draw a horizontal line on a toolbar despite what the
17832         Divider property docs indicate.
17833         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
17834         conditions and incorrect layout.  Updated to coding standard.
17835         * ToolBarButton.cs: refactored layout and positioning code from
17836         ToolBar to here.  Invalidate wherever possible instead of forcing
17837         redraws of the whole toolbar. 
17838         (Known remaining issues: explicit ButtonSize smaller than provided
17839         images.)
17840
17841 2006-03-21  Mike Kestner  <mkestner@novell.com>
17842
17843         * ContextMenu.cs (Show): use the position parameter instead of just
17844         showing at the MousePosition.
17845
17846 2006-03-21  Jackson Harper  <jackson@ximian.com>
17847
17848         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
17849         control handle this.
17850         * TreeNodeCollection.cs: If we are clearing the root node we need
17851         to reset top_node so calcs can still happen.
17852         * ThemeWin32Classic.cs: This is a Flags so we need to check
17853         properly.
17854         
17855 2006-03-21  Jackson Harper  <jackson@ximian.com>
17856
17857         * DataGrid.cs: Create columns when the binding context has been
17858         changed.
17859         * X11Structs.cs: Keysyms are uints.
17860         - Add size to fix build.
17861
17862 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
17863
17864         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
17865           XplatUIOSX.cs: 
17866           - Added ResetMouseHover method to allow controls to retrigger
17867             hovering if they need it more than once
17868           - Implemented MouseHoverTime and MouseHoverSize properties
17869         * Timer.cs: Start() must reset the interval
17870         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
17871           properties
17872
17873 2006-03-21  Jackson Harper  <jackson@ximian.com>
17874
17875         * X11Keyboard.cs: improved layout detection. Move the nonchar
17876         tables into this file.
17877         * KeyboardLayouts.cs: Move the tables into resource files.
17878
17879 2006-03-21  Mike Kestner  <mkestner@novell.com>
17880
17881         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
17882
17883 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
17884
17885         * Mime.cs: Various speed optimizations. Looking up mime types
17886           is now 2 times faster than before
17887
17888 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
17889
17890         * CreateParams.cs: Added internal menu field
17891         * Control.cs: 
17892           - Switched call order for UpdateBounds; now we always call
17893             the one that also takes ClientSize, and we're calculating the 
17894             client size via driver method in the others. The previous
17895             method of tracking client size by difference wasn't working
17896             for forms where even the starting client size wouldn't match
17897             the overall form size (due to borders) (Part of fix for #77729)
17898           - CreateParams(): Do not use parent.Handle unless the handle is
17899             already created. Causes havoc with Nexxia and throws off our
17900             creation of controls
17901         * XplatUIX11.cs:
17902           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
17903           - Switched handling of ConfigureNotify over to new PerformNCCalc 
17904             method (consolidates code)
17905           - Changed RequestNCRecalc to use new PerformNCCalc method
17906           - Added calls to RequestNCRecalc when menus and borders are changed
17907             to allow app to set NC size. (Part of fix for #77729) This matches
17908             when MS send a WM_NCRECALC on Win32 windows.
17909           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
17910             (Part of fix for #77729). This matches what MS does, they also
17911             send that message when the form is made visible.
17912           - XException.GetMessage: Improved usability of X errors by including
17913             a translation of the window into Hwnd and Control class
17914           - Improved debug info for window creation, reparenting and destruction
17915           - Created helper method WindowIsMapped() [Currently not used]
17916         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
17917         * Form.cs:
17918           - CreateParams: Now setting our menu on the new internal menu field
17919           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
17920             avoid calculating the same property twice
17921         * Hwnd.cs:
17922           - Improved usability of ToString() for debugging purposes
17923           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
17924             determine the height of the menu, instead of just the font. This
17925             required to also create a graphics context and to keep a bmp 
17926             around (for performance reasons)
17927
17928 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
17929
17930         * MenuAPI.cs: Added OnMouseUp method
17931         * Form.cs:
17932           - Now remembering the requested client size, avoids size errors
17933           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
17934             instead of base if the menu is active. This is required due to
17935             control now capturing and releasing on down/up and it would
17936             prematurely release our menu capture
17937
17938 2006-03-17  Jackson Harper  <jackson@ximian.com>
17939
17940         * KeyboardLayouts.cs: Add the czech layouts.
17941
17942 2006-03-16  Jackson Harper  <jackson@ximian.com>
17943
17944         * Control.cs: Use the viewport space when sizing not the controls
17945         client size, so things like ScrollableControl that effect the
17946         viewport size (when scrollbars are added) are computed correctly.
17947         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
17948         of ManagerEntrys.
17949         - Handle creating BindingManagers for null data sources.
17950         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
17951         source, otherwise when rows are added they are added to the 'fake'
17952         datasource and we will crash when trying to set the position in
17953         those rows.
17954         - Use Implicit scrollbars on the datagrid so they arent
17955         selectable.
17956         
17957 2006-03-16  Jackson Harper  <jackson@ximian.com>
17958
17959         * Binding.cs:
17960         * InternalWindowManager.cs:
17961         * MdiWindowManager.cs:
17962         * X11Keyboard.cs: I really want Mike to love me again (fix
17963         compiler warnings).
17964
17965 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
17966
17967         * DataGrid.cs:
17968           - OnMouseDown: Switch to editing mode when clicking on the cell
17969                          even if we're clicking on the cell that's currently 
17970                          selected
17971           - ProcessGridKey: Left/Right now wrap like MS.Net does
17972           - ProcessGridKey: Tab now knows to add a new row when tab is
17973                             pressed in the cell of the last column of the 
17974                             last row
17975           - ProcessGridKey: Enter now adds another row  if pressed in the last
17976                             row and selectes the new row, same column cell
17977           - ProcessGridKey: Home/End navigate columns, not rows, like 
17978                             originally implemented
17979           - Broke ProcessKeyPreview code out into an extra Internal method
17980             so it can be called from the edit code
17981         * DataGridTextBox.cs (ProcessKeyMessage):
17982           - Switched to accept Tab keypresses
17983           - Added F2 handling to allow jumping to the end of the edited cell
17984           - Added logic to allow moving caret left/right inside edited cell
17985             and making the edited cell jump when the caret hits cell borders
17986           - Tab and Enter are now passed to the datagrid after being handled
17987         * TextBoxBase.cs:
17988           - Removed capture code now that Control handles it
17989           - set_SelectionStart now ensures caret is visible
17990
17991 2006-03-16  Jackson Harper  <jackson@ximian.com>
17992
17993         * TrackBar.cs: Debackwards the increment/decrement for handling
17994         mouse clicks on the bar with vertical trackbars.
17995         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
17996         bottom to match MS.
17997
17998 2006-03-16  Mike Kestner  <mkestner@novell.com>
17999
18000         * ListView.cs: make shift/ctrl keyboard and mouse selection 
18001         consistent with the MS control. Fix a bug in
18002         SelectedListViewItemCollection.Clear that was pissing me off for the
18003         better part of a day because the collection was being altered
18004         underneath us as we walked the list.
18005
18006 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
18007
18008         * Control.cs: Not sure how we could miss this so long, but it seems
18009           that MS.Net has Capture set all the way from before calling 
18010           OnMouseDown through sending the mouse events until after
18011           OnMouseUp. This will fix DataGrid's selection being set to end
18012           at the location of the MouseUp.
18013
18014 2006-03-15  Jackson Harper  <jackson@ximian.com>
18015
18016         * BindingContext.cs: Check the binding after its added so that it
18017           can initialize the binding managers and hookup to events.
18018         * Binding.cs: Data members seem to sometimes include rows/cols in
18019           the format Row.Column we now take this into account.
18020           - Hookup to the position changed event so we can update the
18021           control when the position has changed in the data set.
18022         * CurrencyManager.cs: Take into account the row/col naming
18023           convention when creating dataset tables.
18024         * BindingContext.cs: Using a newer better way of storing
18025           datasource/datamember pairs.  Hopefully this better matches MS for
18026           looking up binding managers.
18027
18028
18029 2006-03-15  Jackson Harper  <jackson@ximian.com>
18030
18031         * BindingContext.cs: The currency manager needs the data member
18032         name, if the member is a data set we use the name to find the
18033         correct table.
18034         * CurrencyManager.cs: When creating the list prefer an IList over
18035         an IListSource.
18036         - Attempt to create a DataTable from a DataSet (TODO: might need
18037         some better error checking here, although MS doesn't seem to have much)
18038         - If we have a DataTable create a view and use it as our list.
18039
18040 2006-03-15  Mike Kestner  <mkestner@novell.com>
18041
18042         * ListView.cs: keep a matrix of the icon mode layout to facilitate
18043         keyboard navigation. Support Up/Down/Left/Right selection correctly
18044         for all 4 View modes.
18045         * ListViewItem.cs: add internal row/col fields for icon layouts.
18046
18047 2006-03-15  Jackson Harper  <jackson@ximian.com>
18048
18049         * TabControl.cs: Redraw the tabs when we resize so their newly
18050         calculated sizes are drawn on screen.
18051         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
18052         composite characters.
18053         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
18054         - filter events so that composite characters can be created
18055         patches by peter
18056         * X11Structs.cs: Add XIMProperties enum.
18057
18058 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
18059
18060         * Control.cs (BringToFront, SendToBack): Don't use window or handle
18061           unless it's created
18062
18063 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
18064
18065         * Control.cs (PerformLayout): We don't need to consider visiblity
18066           for anchoring, only for docking. This fixes 'whacky' alignment
18067           in listbox and other controls that use implicit scrollbars after
18068           the previous PerformLayout patch
18069         * ListBox.cs: Switched to use implicit scrollbars
18070           
18071 2006-03-14  Mike Kestner  <mkestner@novell.com>
18072
18073         * ToolBar.cs: 
18074         * VScrollBar.cs:
18075         - chain up the "new event" overrides to base and use
18076         OnEvent to raise them.  Part of fix for bug #76509.
18077
18078 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
18079
18080         * FileDialog.cs: Do not select an item in the parent directory
18081           on backspace
18082
18083 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
18084
18085         * Control.cs (PerformLayout): It would seem that we considered
18086           invisible windows for our layout. Not quite the right thing
18087           to do. Now we don't any longer, thereby fixing bug #76889.
18088
18089 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
18090
18091         * Control.cs (CanFocus): I goofed. A control can have focus 
18092           even though it's not selectable. Made it match MS docs.
18093
18094 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
18095
18096         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
18097           center by default (fixes #76895)
18098         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
18099           all uses of Border3DSides.All with the explicit ORd together
18100           Left|Right|Top|Bottom because I assume that nobody was aware 
18101           that All also implies a center fill. Most places I checked had
18102           a fill right above.
18103         * ProgressBarStyle.cs: Added
18104
18105 2006-03-13  Mike Kestner  <mkestner@novell.com>
18106
18107         * ListView.cs: fix breakage in drag shadow header positioning 
18108         from Peter's csc compilation fix.
18109
18110 2006-03-13  Mike Kestner  <mkestner@novell.com>
18111
18112         * ListView.cs: fix NRE produced by backspacing twice in a focused
18113         FileDialog.
18114
18115 2006-03-13  Mike Kestner  <mkestner@novell.com>
18116
18117         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
18118
18119 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
18120
18121         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
18122           be changed
18123         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
18124           the allowed size before making programmatic size changes
18125
18126 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
18127
18128         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
18129           set, metacity is broken and will still use the emty sizes in 
18130           the struct. (Fix for #77089)
18131
18132 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
18133
18134         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
18135           WindowExStyles and marked both enums as Flags
18136         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
18137           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
18138           to match WindowStyles split
18139         * XplatUIX11.cs:
18140           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
18141           - Updated to match WindowStyles split
18142         * XplatUIWin32.cs:
18143           - Fixed FosterParent creation, was using ExStyle on the Style field
18144             (This should help with Popup focus issues)
18145           - Updated to match WindowStyles split
18146
18147 2006-03-13  Jackson Harper  <jackson@ximian.com>
18148
18149         * MdiWindowManager.cs: Use the system menu height. Fixes some
18150         strange sizing issues.
18151
18152 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
18153
18154         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
18155         * TextBoxBase.cs:
18156           - Scroll to caret after inserting text (#77672)
18157           - Make scroll range one pixel higher, fixes off-by-one error (and
18158             makes underlines visible on the last line)
18159
18160 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
18161
18162         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
18163           the keyboard state from being stuck with keys in 'pressed' state when
18164           focus is switched away via keyboard
18165         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
18166           reset the keyboard if no X11 KeyUp events are expected to come
18167         * X11Structs.cs: Switched type of Visible to bool to match driver
18168
18169 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
18170
18171         * TextControl.cs:
18172           - Switched caret to be just 1 pixel wide, matches MS and looks less
18173             clunky
18174           - Moved caret display 1 pixel down from the top of the control
18175             to improve view
18176           - InsertCharAtCharet: Update the selection start if moving the caret
18177             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
18178           - No longer always creating the caret when the caret methods are
18179             called. Only the actual ShowCaret/HideCaret will do that now
18180           - Only setting caret visible if the owner control has focus
18181           - UpdateView: Added invalidation-shortcut logic for center and right 
18182             aligned text. Previously we'd update all according to the left
18183             logic which caused drawing errors. Also fixed height of invalidated
18184             areas, now properly invalidating the whole area (was off-by-one)
18185           - owner_HandleCreated: Always generate the document when the
18186             handle is created; this ensures that 
18187         * TextBoxBase.cs:
18188           - Fixed situation where caret would disappear under the right
18189             window border, also improved scrolling behaviour on left-
18190             aligned textboxes
18191           - Fixed right-aligned textboxes to have a border to the
18192             right instead of the caret being under the right border
18193         * XplatUIX11.cs:
18194           - Switched from 'nested' to simple visible/not visible tracking 
18195             for caret (part of fix for #77671)
18196           - No longer passing through translated FocusIn/FocusOut messages
18197             since we were notifying too often and the wrong windows. Instead
18198             we just notify our focussed window of receiving or loosing focus
18199         * XplatUIWin32.cs: Switched from 'nested' show/hide 
18200           counting for caret to simple visible yes/no behaviour (part of 
18201           fix for #77671)
18202
18203 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
18204
18205         * Mime.cs: Remove debug code...
18206
18207 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
18208
18209         * MimeGenerated.cs: Removed
18210         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
18211           and subclasses) from /usr/(local/)share/mime and
18212           $HOME/.local/share/mime.
18213
18214 2006-03-10  Jackson Harper  <jackson@ximian.com>
18215
18216         * MdiWindowManager.cs: Recalc the NC area when a window is
18217         maximized/restored so that the menu area is drawn on forms that
18218         don't have a menu.
18219
18220 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
18221
18222         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18223           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
18224           us to force a WM_NCCALCRESIZE message being sent. This is needed
18225           for MDI maximizing.
18226
18227 2006-03-10  Jackson Harper  <jackson@ximian.com>
18228
18229         * Form.cs: We need to use the ActiveMenu when calculating menu
18230         height.
18231         - Fix nullref when the window manager hasn't been created yet.
18232         * Control.cs: Fix nullref when we try to bring a control to the
18233         front that has no parent.
18234         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
18235         height.
18236         - Add a dummy item to the maximized menu so it always has the
18237         correct height. Otherwise when there are no menus we don't get our
18238         icon and buttons.
18239         
18240
18241 2006-03-10  Jackson Harper  <jackson@ximian.com>
18242
18243         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
18244         stuff.
18245         * Form.cs: Make the window_state internal so the window managers
18246         can track it.
18247         - When an MDI child is maximized let its window manager create the
18248         main menu (so it can add its icon).
18249         - Notify the window managers of state changes
18250         - Let the window manager paint its buttons and handle button
18251         clicks on the menu when it is maximized.
18252         * InternalWindowManager.cs: Move the prev_bounds into the mdi
18253         window manager, since tool windows don't use it, only mdi windows.
18254         - Tell the main form that we don't want it to handle NCPAINT
18255         itself to avoid extra painting.
18256         - Handle clicks on a maximized windows menu.
18257         - Handle window state changes
18258         - Handle minimize/maximize clicks correctly by setting the window state.
18259         * MdiWindowManager.cs: Add an icon menu that (the menu you get
18260         when clicking on the forms icon).
18261         - New method to create a forms maximized menu. This is its normal
18262         menu + an icon.
18263         - Handle window state changes.
18264         - Handle sizing of maximized windows.  Maximized windows are just
18265         drawn bigger then the parent visible area. All controls are still
18266         there, they are just outside the visible area (this matches windows).
18267         * MdiClient.cs: No scrollbars when a child window is maximized.
18268         - Let the children windows figure out how big they should be when
18269         sizing maximized windows.
18270         - Implement a version of ArrangeIconicWindows somewhat similar to
18271         Windows version.  There are some little differences, but I don't
18272         think any app will rely on the layout of minimized mdi windows.
18273
18274 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
18275
18276         * Padding.cs: Several fixes to allow compiling with csc 2.0
18277
18278 2006-03-09  Jackson Harper  <jackson@ximian.com>
18279
18280         * Menu.cs:
18281         * MenuItem.cs: Cheap hack so we can add items to the list without
18282         the events being raised.  This allows adding mdi items during
18283         drawing. TODO: Should probably find a better time to add the items.
18284
18285 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
18286
18287         * ThemeWin32Classic.cs:
18288           - CheckBox_DrawText: Added logic to not wrap if not enough space
18289             is available (Fix for bug #77727)
18290           - RadioButton_DrawText: Added logic not to wrap if not enough
18291             space is available (Fix for bug #77727). Also removed some
18292             duplicate code, DrawString always drawing the regular text
18293             before hitting the if statement.
18294
18295 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
18296
18297         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
18298
18299 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
18300
18301         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
18302         * ContainerControl.cs: Partial implementation of some 2.0 scaling
18303           methods. Moved the new 2.0 properties into alphabetical order with
18304           other properties and added MonoTODO tags
18305
18306 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
18307
18308         * AutoScaleMode.cs: Added. Fix build.
18309
18310 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
18311
18312         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
18313           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
18314           and was requiring premature handle creation for calls from above
18315         * Form.cs, Control.cs: Removed handle arguments from calls to
18316           CalculateClientRect()
18317
18318 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
18319
18320         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
18321           drag_column.column_rect is MarshalByRef and can't be used that way
18322
18323 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
18324
18325         * AxHost.cs: Added deserialization constructor for 
18326           AxHost+State (fixes 77743)
18327
18328 2006-03-09  Mike Kestner  <mkestner@novell.com>
18329
18330         * ListView.cs: 
18331         - Added column drag reordering for details view.
18332         - fixed behavior when mouse is dragged off column and
18333         AllowColumnReorder is false.
18334         * ColumnHeader.cs: clone the format too in Clone.
18335         * Theme.cs: add DrawListViewHeaderDragDetails method.
18336         * ThemeWin32Classic.cs:
18337         - impl new method for drawing drag column shadows and targets.
18338         - support column offset for details mode in DrawListViewItem.
18339
18340 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
18341
18342         * TextControl.cs: Reset the char_count when the document is cleared
18343           (Fixes bug reported on mono-winforms mailing list)
18344
18345 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
18346
18347         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
18348           of calling base we simply process the key ourselves, since both
18349           DefWindowProc and the handled method would set m.Result. 
18350           (Fixes #77732)
18351
18352 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
18353
18354         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
18355           method also moves the window; instead implemented a copy of
18356           Control.ScaleCore (Part of fix for #77456)
18357         * TextBoxBase.cs: 
18358           - Created new CreateGraphicsInternal method to allow providing
18359             a graphics context when no handle is created without triggering
18360             handle creation. (Part of fix for #77456)
18361           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
18362         * TextControl.cs: 
18363           - Switched Constructor to require TextBoxBase instead of Control (to
18364             allow uncast access to CreateGraphicsInternal)
18365           - Safeguarded use of owner.Handle property. No longer accessing it
18366             unless the handle is already created.
18367           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
18368           - Now triggering a recalc when owning control becomes visible
18369         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
18370           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
18371           premature handle creation (Part of fix for #77456)
18372         * Control.cs:
18373           - We now only destroy our double-buffering buffers when the
18374             control is resized or disposed, but not when visibility
18375             changes. (The code even re-created them twice every time)
18376           - Now requiring a redraw of the buffer on visibility changes
18377             (fixes bug 77654 part 2)
18378           - Not passing OnParentVisibleChanged up unless the control
18379             is visible
18380           - CanFocus: Fixed to match MS documentation
18381           - Focus: Fixed to return actual focus state and to check if
18382             setting focus is legal before setting it
18383
18384 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
18385
18386         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
18387           when to draw focus rectangle by looking at parent focus and
18388           selected state instead. This fixes TabPages on Linux sometimes
18389           having none or multiple focus rectangles.
18390         * XplatUIX11.cs (SetFocus): 
18391           - Don't set the focus if the same window already has focus
18392           - Use SendMessage instead of PostMessage (like it's Win32
18393             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
18394             to match MS behaviour
18395         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
18396           are not selectable.
18397
18398 2006-03-07  Jackson Harper  <jackson@ximian.com>
18399
18400         * PictureBox.cs: Revert line I accidently committed last week.
18401
18402 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
18403
18404         * Control.cs: 
18405           - Added new IsRecreating and ParentIsRecreating properties to
18406             allow testing if RecreateHandle has been called on ourselves
18407             or one of our parents
18408           - WndProc(WM_DESTROY): If our control handle is being recreated
18409             we immediately need to create the handle when receiving the
18410             destroy, that way our child windows find a valid parent handle
18411             when they themselves are being recreated upon WM_DESTROY receipt
18412             (fix for bug #77654 part 1)
18413         * XplatUIX11.cs:
18414           - DestroyWindow: WM_DESTROY must be sent to our own window before
18415             notifying any child windows. MS documents that child windows
18416             are still valid when WM_DESTROY is received. (Control now relies on
18417             this behaviour)
18418           - Added some fine-grain debug options
18419
18420 2006-03-06  Jackson Harper  <jackson@ximian.com>
18421
18422         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
18423         box and base calculations off this.
18424         * MdiChildContext.cs:
18425         * MdiWindowManager.cs: Don't need to ensure scrollbars here
18426         anymore.
18427         
18428 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
18429
18430         * Splitter.cs: In situations where the affected control is added
18431           to the parent's control list after the splitter, we would not
18432           populate affected. Now we try populating it on mousedown, if
18433           it's not already set, and force it to be re-set whenever our
18434           parent changes.
18435
18436 2006-03-03  Matt Hargett  <matt@use.net>
18437
18438         * Control.cs: implement Control.Padding
18439         * Padding.cs: -Padding.All returns -1 when constructing with the
18440         implicit default ctor
18441         -Padding.ToString() matches MS.NET
18442         * ContainerControl.cs: implement
18443         ContainerControl.AutoScaleDimensions
18444         * ListControl.cs: implement ListControl.FormattingEnabled
18445         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
18446         * ButtonBase.cs:
18447         * TabPage.cs: Implement UseVisualStyleBackColor.
18448         * PictureBox.cs: Implement PictureBox.InitialImage.
18449
18450 2006-03-03  Mike Kestner  <mkestner@novell.com>
18451
18452         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
18453         event declarations to proxy to base event.
18454         * ListViewItem.cs: update to use ItemControl.
18455         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
18456         * ThemeWin32Classic.cs: update to new ListView theme API and fix
18457         column header label rendering for 0 width columns.
18458
18459 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
18460
18461         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
18462           that causes the control to be created. Fixes #77476.
18463
18464 2006-03-02  Jackson Harper  <jackson@ximian.com>
18465
18466         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
18467         expose_pending.
18468
18469 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
18470
18471         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
18472           passed in for the EventArgs (fixes #77690)
18473
18474 2006-03-01  Jackson Harper  <jackson@ximian.com>
18475
18476         * ScrollBar.cs: Refresh afterbeing resized.
18477
18478 2006-02-28  Mike Kestner  <mkestner@novell.com>
18479
18480         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
18481         Clean up a tracker compile warning.
18482         * MenuItem.cs: add internal PerformPopup method.
18483         [Fixes #77457]
18484
18485 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
18486
18487         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
18488           implicit expose) when the text is set to null
18489
18490 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
18491
18492         * RichTextBox.cs (FlushText): When newline is true, we always
18493           need to split the line, even if no text is on it and we may
18494           never eat newlines. (Fixes #77669)
18495
18496 2006-02-28  Mike Kestner  <mkestner@novell.com>
18497
18498         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
18499         and set Selected instead.
18500         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
18501         collections.
18502
18503 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
18504
18505         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
18506
18507 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
18508
18509         * FontDialog.cs:
18510           - Got rid of the panel. All controls are now directly added to
18511             the dialog form
18512           - It is now possible to set a font with the Font property
18513           - MinSize and MaxSize property do now what they should
18514           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
18515           - Searching and selecting a font with the font textbox works now,
18516             the same applies to the style and size textbox
18517           - Draw the correct 3D border in the example panel
18518           - Fixed a little mem leak (unused fonts didn't get disposed)
18519           - Many other internal updates/rewrites...
18520           - Fix typo
18521
18522 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
18523
18524         * TextControl.cs: 
18525           - InsertRTFFromStream: Added 'number of characters inserted' argument
18526           - set_SelectedRTF: Now using the number of characters to calculate
18527             the new location for the selection and cursor (x/y cannot be used
18528             due to potentially already wrapped text)
18529
18530 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
18531
18532         * TextControl.cs: Added property and implemented means to allow 
18533           disabling recalculation of a document (can be used to speed up
18534           multiple inserts and is needed to make RTF inserts predictable, see
18535           bug #77659)
18536         * RichTextBox.cs: Using the new NoRecalc property of Document to
18537           keep x/y insert locations predictable. Also makes it faster inserting
18538           large chunks of RTF
18539
18540 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
18541
18542         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
18543           it's easier for a child control to handle the other messages without
18544           having to duplicate the special functionality
18545         * TextBoxBase.cs
18546           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
18547             code to handle processing the key ourselves, in order to get 
18548             access to the result of KeyEventArgs.Handled. We now only call 
18549             ProcessKey if they key hasn't been handled already. Fixes #77526.
18550           - set_Text: If null or empty string is given, just clear the 
18551             document. Fixes part of #77526
18552
18553 2006-02-27  Jackson Harper  <jackson@ximian.com>
18554
18555         * SizeGrip.cs: Paint the background color before painting the grip
18556         so things look right.
18557         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
18558
18559 2006-02-27  Mike Kestner  <mkestner@novell.com>
18560
18561         * ListView.cs:
18562           - Restructure layout and invalidation model to remove a ton of
18563           flicker from the control and speed up performance in general.
18564           - Add manual column resize, flickers like crazy, but I already have
18565           some ideas on how I'll fix that. (#76822)
18566           - Merge the three Icon-based views into a single layout method.
18567           - Move item selection interaction logic from the item since 
18568           interaction with the collections is more appropriate to the view.
18569           - Deselection on non-item clicks.
18570         * ListViewItem.cs:
18571           - Encapsulate most of the layout. Add some internal props to trigger
18572           layout.  Move to a model where Items invalidate themselves instead
18573           of just invalidating the whole control every time something changes.
18574           - Invalidate on Text/Caption changes.
18575           - switch to an offset based layout model to avoid having to absolute
18576           position every element on item moves.
18577           - correct checkbox layout to conform to MS layout.
18578         * ThemeWin32Classic.cs:
18579           - refactor some column header drawing code.
18580           - fix string justification for column headers (#76821)
18581           - make SmallIcon labels top justified for compat with MS impl.
18582         * ThemeClearlooks.cs:
18583           - adjust to new ListViewItem internal checkbox bounds api.
18584
18585 2006-02-27  Jackson Harper  <jackson@ximian.com>
18586
18587         * Control.cs:  Change where implicit controls fall in the zorder.
18588         They are now on top of all children.
18589         - Synced AddImplicit code with Add
18590         - Removed unused enumerator.
18591         * SizeGrip.cs: Remove the TODO as its been TODONE.
18592
18593 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
18594
18595         * TextControl.cs(Insert): Combine the last lines unless the insertion
18596           string ends with \n\n, otherwise we leave one line too many (Fixes
18597           something I noticed with the testapp for #77526; the bug itself was
18598           already fixed in the previous checkin)
18599
18600 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
18601
18602         * RichTextBox.cs:
18603           - SelectionColor and SelectionFont methods no longer set absolute
18604             styles. Instead, the keep font or color respectively (This 
18605             resolves a long-standing FIXME in the code)
18606           - When flushing RTF text, the insert code now considers text trailing
18607             behind the insertion point (Fixes the bug where when replacing
18608             the selected text via SelectedRTF the remainder of the line behind 
18609             the selection would stay on the first insertion line)
18610         * TextBoxBase.cs:
18611           - AppendText now updates the selection points after inserting text
18612           - AppendText now ensures that the last tag (sometimes 0-length) of
18613             the document is used for the style information (Fixes part of 
18614             bug #77220)
18615         * TextControl.cs:
18616           - Created new FontDefiniton class to allow describing partial style
18617             changes
18618           - StreamLine() now takes a lines argument, to allow it to decide
18619             whether an encountered zero-length tag is the last in the document
18620             (which must be kept to not loose the font/color contained in it,
18621             for later appends)
18622           - Created Combine() and Split() methods for Marker structs, to 
18623             support marker updates due to reformatted documents (soft line
18624             wraps)
18625           - Implemented Document.CaretTag setter
18626           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
18627             of the last line (Not the cause, but also exposed by bug #77220)
18628           - Added LineTag argument to InsertString method, to allow callers
18629             to force a certain tag to be used (required to force use of the
18630             trailing zero-length tag of a document)
18631           - Now updating markers in Combine(), to avoid stale tag markers
18632           - Added some method descriptions to aid maintenance
18633           - Implemented new FormatText concept, allowing additive/subtractive
18634             formatting by only specifying the components that are to be 
18635             changed. This was needed for resolving the RTB.SelectedColor/
18636             RTB.SelectedFont fixmes
18637           - Added Break() support method to allow breaking up linetags (used
18638             for partial formatting)
18639           - Added GenerateTextFormat() method. It is used for partial 
18640             formatting and allows to generate a full font/color from given
18641             attributes and an existing tag.
18642
18643 2006-02-26  Jackson Harper  <jackson@ximian.com>
18644
18645         * XplatUIX11.cs:  Use the correct caption height.
18646         - Translate hittest coordinates to screen coords to match MS.
18647         * XplatUIWin32.cs: When we create MDI windows we need to reset
18648         some of the style flags, so we get a nice blank window, and can
18649         draw all the decorations ourselves.
18650         - Set a clipping rectangle on the non client paint event, the
18651         window manager drawing code needs one.
18652         * Form.cs: The window manager needs to know when the window state
18653         has been updated.
18654         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
18655         don't need to factor in border and title sizes in these
18656         methods. TODO: Remove the args and fix the call points.
18657         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
18658         properly.
18659         - Let the driver set the cursors.
18660         - Improve active window handling
18661         - Correct sizes for title bars and buttons.
18662         - Match MS drawing better
18663         * MdiWindowManager.cs: We don't need to handle border style
18664         updates specially anymore.
18665         - Check for scrollbars when windows are done moving
18666         - Handle Active properly.
18667         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
18668         correctly. I am spewing the exception though, so we don't hide the
18669         bugs.
18670         
18671 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
18672
18673         * DataGridViewRowPostPaintEventArgs.cs,
18674           DataGridViewCellPaintingEventArgs.cs,
18675           DataGridViewRowCollection.cs,
18676           DataGridViewRowPrePaintEventArgs.cs,
18677           DataGridViewCell.cs: Clear a few warnings and implement a few
18678           exceptions that should be thrown.
18679
18680 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
18681
18682         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
18683           'inheriting' our parent's (non-default) cursor. (Part of
18684            the fix for #77479)
18685
18686 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
18687
18688         * XplatUIX11.cs: Fixed cast to make csc happy
18689
18690 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
18691
18692         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
18693           it's for the client area (part of fix for #77479 and needed
18694           for MDI window cursor handling)
18695         * XplatUIX11.cs
18696           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
18697             the appropriate default cursors and also passing the message
18698             up the parent chain 
18699           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
18700             for non-client areas
18701
18702 2006-02-15  Jackson Harper  <jackson@ximian.com>
18703
18704         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
18705         is a real MDI window
18706
18707 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
18708
18709         * X11DesktopColors.cs: Instead of checking the desktop session
18710           string for "KDE" check if it starts with "KDE"
18711
18712 2006-02-10  Jackson Harper  <jackson@ximian.com>
18713
18714         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
18715         systems).
18716
18717 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
18718
18719         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
18720           errors
18721         * ColorDialog.cs:
18722           - Got rid of the panel. All controls are now directly added to
18723             the dialog form
18724           - Changed to mono coding style
18725
18726 2006-02-10  Jackson Harper  <jackson@ximian.com>
18727
18728         * InternalWindowManager.cs: We don't need the set visibility to
18729         false hack anymore now that peter has written beautiful shutdown
18730         code.
18731
18732 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
18733
18734         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
18735           where already explicitly destroyed
18736
18737 2006-02-10  Jackson Harper  <jackson@ximian.com>
18738
18739         * MdiClient.cs: Handle the case where windows are too high or to
18740         the left and we need scrollbars.
18741
18742 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
18743
18744         * MimeIcon.cs: Added some icons
18745         * FileDialog.cs:
18746           - Fixed bug #77477
18747           - Got rid of the panel. All controls are now directly added to
18748             the dialog form
18749           - Changed to mono coding style
18750           - On Linux "My Computer" and "My Network" will now show some
18751             more usefull information. A new class, MasterMount, gathers
18752             this information from /proc/mount. Updated MWFFileView to make
18753             use of this information
18754           - Fixed a bug that caused FileDialog to crash when
18755             ".recently_used" file had a zero size
18756           - FilterIndex does now what it should
18757           - Some Refactoring
18758         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
18759             FileDialog changes
18760
18761 2006-02-09  Jackson Harper  <jackson@ximian.com>
18762
18763         * ComboBox.cs: Don't touch if null.
18764
18765 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
18766
18767         * Cursor.cs: 64bit safeness fix
18768         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
18769
18770 2006-02-09  Jackson Harper  <jackson@ximian.com>
18771
18772         * Form.cs: If a form is made into an MDI form update the styles so
18773         all the props can get set correctly.
18774         - Kill the mdi_container when we dont need it anymore.
18775         * InternalWindowManager.cs: Add missing NOT
18776
18777 2006-02-08  Jackson Harper  <jackson@ximian.com>
18778
18779         * InternalWindowManager.cs: Respek clipping when drawing MDi
18780         decorations.
18781
18782 2006-02-08  Jackson Harper  <jackson@ximian.com>
18783
18784         * Hwnd.cs: Add bits to track non client expose events.
18785         * XplatUIX11.cs: Track non client expose events on the hwnd. This
18786         gives us a proper invalid rect and will allow for some nice
18787         optimizations with NC client drawing
18788         - MDI windows are children windows, so move their style handling
18789         into the child window block.
18790         * InternalWindowManager.cs: Remove a state reset that was
18791         getting invoked at the wrong time. Fixes managed windows getting
18792         into a 'stuck' captured state.
18793
18794 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
18795
18796         * TextControl.cs (Document.ctor): Now initializing 
18797           selection_anchor. Fixes #77493
18798
18799 2006-02-07  Jackson Harper  <jackson@ximian.com>
18800
18801         * TrackBar.cs: The increment/decrements were backwards.
18802
18803 2006-02-07  Mike Kestner  <mkestner@novell.com>
18804
18805         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
18806         to the instance itself.
18807
18808 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
18809
18810         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
18811           on ulongs and pointers, the size differs between 32bit and 64bit
18812           systems. 
18813
18814 2006-02-07  Mike Kestner  <mkestner@novell.com>
18815
18816         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
18817         for 64 bit platforms to work around a metacity bug. 
18818
18819 2006-02-07  Jackson Harper  <jackson@ximian.com>
18820
18821         * TrackBar.cs: Process the input keys we need, and hookup to
18822         KeyDown instead of using WndProc, so we get key messages.
18823
18824 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
18825
18826         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
18827           machine we're on. 
18828         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
18829           we need to translate the XdndVersion atoms array before sending it
18830
18831 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
18832
18833         * XplatUIX11.cs: 
18834           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
18835             number of bits for the property, not the number of bytes. The
18836             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
18837             but would not crash since it specified 8 bits instead of 4 bits)
18838           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
18839             defined as XID -> long in the C headers)
18840           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
18841             references since those are now IntPtr to begin with
18842           - Switched all Atom.XXX 'int' casts to IntPtr casts
18843           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
18844           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
18845           - Added XChangeActivePointerGrab DllImport (for X11DnD)
18846         * X11Structs.cs:
18847           - Changed 'int' type for Atoms in XEvent structures to IntPtr
18848           - Changed atom in HoverStruct to be IntPtr
18849         * X11DnD.cs:
18850           - Removed local DllImports, switched code to use those from XplatUIX11
18851           - Removed/fixed casts related to the switch of Atom to be a IntPtr
18852
18853 2006-02-06  Mike Kestner  <mkestner@novell.com>
18854
18855         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
18856         method signatures in the import region.  There may still be some
18857         lingering struct marshaling issues, as I didn't drill down into those.
18858         Yet.
18859
18860 2006-02-06  Jackson Harper  <jackson@ximian.com>
18861
18862         * ComboBox.cs: Dont manually set the top_item, this is computed
18863         when the scrollbar position is set.
18864
18865 2006-02-06  Mike Kestner  <mkestner@novell.com>
18866
18867         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
18868         startup crashes on amd64.  There's other fixes needed.  All pinvoke
18869         usage of Atom needs to be mapped to IntPtr for example.  And there are
18870         likely other int/long issues to be addressed.
18871
18872 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
18873
18874         * FileDialog.cs: One more...
18875
18876 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
18877
18878         * FileDialog.cs: Next try
18879
18880 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
18881
18882         * FileDialog.cs: First part of fix for #77464
18883
18884 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
18885
18886         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
18887           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
18888           AcceptButton border drawing.
18889
18890 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
18891
18892         * Form.cs: Moved positioning of form after auto scaling is applied,
18893           otherwise it would possibly use wrong form size.
18894
18895 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
18896
18897         * Control.cs (RecreateHandle): No need to re-create any child
18898           controls, the child windows will get destroyed automatically by
18899           the windowing system or driver, and re-created when the handle
18900           is being accessed the first time. Fixes #77456
18901         * Form.cs: No longer setting the form to closing if the handle is 
18902           being recreated. This seems like the right thing to do, don't
18903           have a bug or testcase for this, though.
18904
18905 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
18906
18907         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
18908           controls to avoid unwanted side effects
18909
18910 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
18911
18912         * Control.cs: 
18913           - ScaleCore needs to scale the bounds, not the ClientSize of the 
18914             control. Fixes #77416.
18915           - DefaultSize is 0,0 for control
18916         * TextBoxBase.cs: 
18917           - DefaultSize is 100, 20
18918           - SetBoundsCore: Now enforcing the height, no matter if the provided
18919             height is more or less than the preferred one, as long as AutoSize
18920             is on
18921         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
18922
18923 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
18924
18925         * Control.cs:
18926           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
18927             call unless both performLayout is true *and* we have a pending
18928             layout change
18929           - ResumeLayout: MS does not completely nest Suspend and Resume,
18930             they bottom out at 0, fixed our code to match that.
18931           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
18932             SetBoundsCore, we were updating even when we shouldn't. This fixes
18933             swf-anchors mis-anchoring when resizing the app fast and lots.
18934           - UpdateDistances: Now only setting the left and top distance if 
18935             we have a parent and are not suspended, this is based on
18936             a suggestion by Don Edvaldson in bug #77355.
18937           - OnVisibleChanged: Fixed logic when to create the control. We may
18938             not create the control if we have no parent or if it's not visible;
18939             switched to using Visible property instead of is_visible field 
18940             since the property also considers parent states. This fixes a bug
18941             when starting Paint.Net
18942
18943 2006-02-02  Jackson Harper  <jackson@ximian.com>
18944
18945         * Form.cs: If the forms handle hasn't been created yet don't call
18946         into xplatui to make it top most, just set the topmost flag on the
18947         form in CreateParams
18948         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
18949
18950 2006-02-01  Jackson Harper  <jackson@ximian.com>
18951
18952         * ScrollableControl.cs: Refactored the Recalculate method a
18953         little, this wasn't handling all the variants of bottom and right
18954         bars needed to be added and added/removed based on their
18955         counterparts being added/removed (which changes the drawable
18956         size). Also we special case client widths and heights of 0 and
18957         don't add the scrollbar for those.
18958
18959 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
18960
18961         * XplatUIX11.cs: 
18962           - Added method to get AbsoluteGeometry(); currently unused, but might
18963             be used in the future, if we try again to figure out toplevel
18964             coordinates with some more crappy window managers
18965           - Added FrameExtents() method to retrieve the WM set decoration size
18966           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
18967             to deal with at least KDE, FVWM and metacity (Fixes #77092)
18968         * Hwnd.cs: 
18969           - Added whacky_wm tracking var for metacity
18970           - Added logic to have default menu height if the actual menu height
18971             has not yet been calculated (part of fix for #77426)
18972         * Form.cs: Keep track whether client size has been set and re-set 
18973           it if a menu is added/removed afterwards (Fixes #77426)
18974
18975 2006-01-31  Jackson Harper  <jackson@ximian.com>
18976
18977         * Control.cs: When a new Site is set on the component attempt to
18978         pull the AmbientProperties from it.
18979
18980 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
18981
18982         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
18983           in the background of the owning form. Fixes #77332
18984
18985 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
18986
18987         * MimeIcon.cs: Fix for #77409
18988
18989 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
18990
18991         * XplatUIX11GTK.cs: Initial import
18992
18993 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
18994
18995         * FixedSizeTextBox: fixes class signature
18996
18997 2006-01-30  Jackson Harper  <jackson@ximian.com>
18998
18999         * FixedSizeTextBox.cs: New internal class that represents a
19000         textBox that will not be scaled.
19001         * TreeView.cs:
19002         * ComboBox.cs:
19003         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
19004         standard TextBox.
19005                 
19006 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
19007
19008         * XplatUIX11.cs: Retrieve default screen number instead of
19009           assuming 0. Attempted fix for #77318
19010
19011 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
19012
19013         * XplatUIWin32.cs: 
19014           - GetWindowPos: When a window is parented by FosterParent, use 
19015             the desktop instead of FosterParent as the base to get coordinates
19016           - CreateWindow: Don't make FosterParent the parent window for Popups
19017             if we don't want a taskbar entry, Popups automatically don't get one
19018         * Hwnd.cs: Need to call remove to actually remove the key from the
19019           hash table
19020
19021 2006-01-30  Mike Kestner  <mkestner@novell.com>
19022
19023         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
19024
19025 2006-01-30  Jackson Harper  <jackson@ximian.com>
19026
19027         * TreeView.cs:
19028         * TreeNode.cs: Raise events no matter how the treenode is
19029         checked. Patch by Don Edvalson.
19030
19031 2006-01-30  Jackson Harper  <jackson@ximian.com>
19032
19033         * TreeNode.cs: Signature fix.
19034
19035 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
19036
19037         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
19038
19039 2006-01-20  Mike Kestner  <mkestner@novell.com>
19040
19041         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
19042         event forwarding when menus are active.
19043         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
19044         Most of the patch is pdb's with a little rework.
19045
19046 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
19047
19048         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
19049           Removed GetMenuDC and ReleaseMenuDC methods; replaced
19050           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
19051         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
19052         * InternalWindowManager.cs: Added use of PaintEventStart/End to
19053           handling of WM_NCPAINT message, now passing the PaintEventArgs to
19054           the PaintWindowDecorations method
19055         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
19056         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
19057         * MenuAPI.cs: Made tracker window invisible
19058         * XplatUIWin32.cs:
19059           - Removed GetMenuDC and ReleaseMenuDC methods
19060           - Implemented the client=false path for PaintEventStart and
19061             PaintEventEnd
19062
19063 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
19064
19065         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
19066         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
19067           styles
19068         * Form.cs: 
19069           - MaximizeBox, MinimizeBox: Recreate the handle when setting
19070             the style
19071           - CreateParams: Reworked the styles to match MS look'n'feel,
19072             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
19073             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
19074
19075 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
19076
19077         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
19078           window is not mapped, since otherwise every form that's being 
19079           created is considered minimized, which is wrong.
19080         * Form.cs: Catching the exception and returning our internal value
19081           instead
19082
19083 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
19084
19085         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
19086           SetWindowMinMax() to have means to tell the driver about the minimum,
19087           maximum and maximized state window sizes. (Part of the fix for #76485)
19088         * Form.cs:
19089           - Implemented tracking of minimum and maximum window size, now calling
19090             new SetWindowMinMax() driver method to tell the driver (Part of the
19091             fix for #76485)
19092           - Finished handling of WM_GETMINMAXINFO method, now setting all values
19093             (Completes fix for #76485)
19094           - Calling new SetWindowMinMax driver method when the handle for a 
19095             form is created, to make sure the driver knows about it even if
19096             the values have been set before the window was created
19097           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
19098             to avoid messing up our anchoring calculations (partial fix
19099             for #77355)
19100         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
19101         * XplatUIX11.cs:
19102           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
19103           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
19104             (and presumably other freedesktop.org compliant WMs). Left the
19105             assumption unmapped=minimized, needed for SetVisible to work.
19106           - Now setting the window state when creating windows
19107           - Fixed SetVisible to consider/set the window state when mapping
19108             a Form. We cannot set the state before it's mapped, and we cannot
19109             use Form.WindowState once it's mapped (since it would ask the
19110             driver and get 'normal'. Therefore, we grab the state before
19111             mapping, map, and then set state.
19112           - Implmemented SetWindowMinMax method; Metacity does not seem to
19113             honor the ZoomHints, though.
19114         * XplatUIWin32.cs:
19115           - Removed MINMAXINFO (moved to XplatUIStructs)
19116           - Added SetWindowMinMax stub (on Win32 the only way to set that
19117             information is in response to the WM_GETMINMAXINFO message, which
19118             is handled in Form.cs)
19119           - Added logic to SetVisible to set the proper window state when a 
19120             form is made visible (fixes #75720)
19121
19122 2006-01-26  Jackson Harper  <jackson@ximian.com>
19123
19124         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
19125         same way we handle them with Invoke.
19126
19127 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
19128
19129         * Form.cs:
19130           - Added tracking of window state so CreateParams can return
19131             the appropriate style
19132           - Moved setting of WS_CAPTION style in CreateParams to allow
19133             styles without caption
19134         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
19135           control if the TextBox property is accessed. Fixes #77345
19136         * Control.cs:
19137           - get_Created: now uses is_disposed and is_created to determine
19138             return value (suggested by Jackson)
19139           - CreateHandle: No longer exits if the handle is being recreated
19140           - RecreateHandle: If the handle is not yet created call the 
19141             appropriate method to create either control or handle. If the
19142             control is already created CreateHandle will simply exit instead
19143             of just creating the handle
19144         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
19145           now SendMessage WM_DESTROY directly to the control when DestroyWindow
19146           is called.
19147         * XplatUIX11.cs: 
19148           - When DestroyWindow is called, instead of waiting for the 
19149             DestroyNotification from X11, we directly post it to the WndProc
19150             and immediately dispose the hwnd object.
19151             Same applies to DestroyChildWindows, and this obsoletes the
19152             expose_pending tracking. Contrary to Win32 behaviour we destroy our
19153             child windows before our own, to avoid X11 errors.
19154           - Removed the direct sending of WM_PAINT on UpdateWindow
19155         * XplatUIWin32.cs:
19156           - Reworked DoEvents and GetMessage to allow access to internal queue
19157             even when trying non-blocking access to the queue.  Fixes #77335. 
19158             Based on a patch suggestion by Don Edvalson. The new private
19159             GetMessage can now also be used as a backend for a PeekMessage
19160             frontend version.
19161         * XplatUI.cs: Improved debug output for CreateWindow
19162
19163 2006-01-25  Jackson Harper  <jackson@ximian.com>
19164
19165         * Help.cs: Allow param to be null. Patch by Don Edvalson.
19166
19167 2006-01-24  Jackson Harper  <jackson@ximian.com>
19168
19169         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
19170         when we have a MaxDropItems lower then the selected index.
19171
19172 2006-01-24  Jackson Harper  <jackson@ximian.com>
19173
19174         * Control.cs: Don't allow selection of non visible controls, allow
19175         selection of controls without parents.
19176
19177 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
19178
19179         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
19180         * DataGridDrawingLogic.cs: Add editing row only when is necessary
19181
19182 2006-01-23  Jackson Harper  <jackson@ximian.com>
19183
19184         * UpDownBase.cs: Make the textbox handle all the selection and
19185         tabbing. This fixes tabing to updown controls.
19186
19187 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
19188
19189         * TextBoxBase.cs: fixes exception thown the object was null
19190
19191 2006-01-23  Jackson Harper  <jackson@ximian.com>
19192
19193         * ButtonBase.cs: Just use the base CreateParams. They set
19194         visibility and enabled correctly.
19195         * ComboBox.cs:
19196         * TrackBar.cs:
19197         * MonthCalendar.cs: Lets let the base set as much of the
19198         createparams as possible so we don't have duplicate code all over
19199         the place.
19200
19201 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
19202
19203         * ThemeGtk.cs: Added TrackBar and some experimental code to
19204           get double buffering back
19205
19206 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
19207
19208         * DataGrid.cs: Allows row number set internally higher than the last
19209         when creating a new row. Restores the editing functionality.
19210
19211 2006-01-20  Mike Kestner  <mkestner@novell.com>
19212
19213         * MimeIcon.cs: delay Image creation until the icons are accessed
19214         instead of creating 190 scaled images on GnomeHandler startup.
19215
19216 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
19217
19218         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
19219           first call base before processing the event. Fixes #77279
19220
19221 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
19222
19223         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
19224           that the stride for the GDI bitmap would match the stride of
19225           a DIB or a Cursor.
19226
19227 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
19228
19229         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
19230
19231 2006-01-19  Jackson Harper  <jackson@ximian.com>
19232
19233         * ComboBox.cs: Hookup the text controls keydown event so we get
19234         those when the text control has the focus.
19235
19236 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
19237
19238         * Label.cs: Now using the base events instead of defining new ones;
19239           this allows us to just call the base properties without having to
19240           duplicate all base property logic 
19241
19242 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
19243
19244         * Label.cs: A label by default is not a tabstop (Fixes one of our
19245           failing nunit tests)
19246
19247 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
19248
19249         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
19250         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
19251
19252 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
19253
19254         * Cursor.cs: Reimplemented creating cursor bitmaps without using
19255           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
19256           This fixes #77218
19257         * XplatUIWin32.cs: 
19258           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
19259             constructor creates images that can't be saved. Part of the fix
19260             for #76103
19261           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
19262           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
19263             bug fix for handling window state in forms properly)
19264
19265 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
19266
19267         * ThemeGtk.cs: Simplify ScrollBar drawing
19268
19269 2006-01-18  Jackson Harper  <jackson@ximian.com>
19270
19271         * Splitter.cs: Set the default dock style for the splitter control
19272         in the constructor.
19273
19274 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
19275
19276         * ThemeGtk.cs: Corrected StateType and ShadowType for
19277           gtk_paint_box
19278
19279 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
19280
19281         * Control.cs: Make use of Theme.DoubleBufferingSupported
19282         * ThemeGtk.cs:
19283           - Added drawing for flat style buttons
19284           - Added ScrollBar drawing
19285
19286 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
19287
19288         * ThemeClearlooks.cs: Removed some unneeded code.
19289         * ThemeGtk.cs: First part of ThemeGtk enhancements.
19290
19291 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
19292
19293         * LinkLabel.cs: We need to update the hover drawing when
19294           leaving the control as well.
19295
19296 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
19297
19298         * DataGrid.cs: Clicking on non empty areas in the columns
19299            area was giving an exception
19300
19301 2006-01-17  Jackson Harper  <jackson@ximian.com>
19302
19303         * ThemeWin32Classic.cs:
19304         * ListView.cs: Do not draw/clip the headers when the header style
19305         is None.
19306
19307 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
19308
19309         * DataGrid.cs: Fixes 77260
19310         
19311 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
19312
19313         * DataGrid.cs: Clicking on a column on a empty grid was giving
19314           an exception
19315
19316 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
19317
19318         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
19319           or any keypress will crash the grid.
19320
19321 2006-01-17  Mike Kestner  <mkestner@novell.com>
19322
19323         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
19324         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
19325         invisible/previously-visible items.
19326         [Fixes #76909]
19327
19328 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
19329
19330         * ThemeClearlooks.cs:
19331         - Added CL_Draw_Button method; now other theme controls that are 
19332           not derived from button or do not have a button can draw buttons
19333           too
19334         - Updated ComboBox drawing
19335         - Beautified RadioButton drawing
19336         - Corrected drawing of bottom and left tabs
19337         - Beautified DateTimePicker and MonthCalendar
19338         - Added CPDrawButton and CPDrawRadioButton
19339
19340 2006-01-16  Jackson Harper  <jackson@ximian.com>
19341
19342         * ComboBox.cs: Set the initial value of the scrollbar to the
19343         current index. Reduce the numbers of refreshs and IndexOfs called.
19344
19345 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
19346
19347         * FileDialog.cs: When the file listview is focused hitting the
19348           backspace key moves the fileview to the parent directory
19349
19350 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
19351
19352         * Form.cs: 
19353           - Added RecreateHandle call when changing taskbar visibility to 
19354             trigger reparenting in Win32 driver (Fixes #75719)
19355           - If a window has minimize or maximize buttons, it cannot have
19356             a help button
19357         * XplatUIWin32.cs:
19358           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
19359             the toplevel form with FosterParent (A toolwindow not on the
19360             taskbar) (Fixes #75719)
19361           - Made FosterParent a toolwindow
19362
19363 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
19364
19365         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
19366
19367 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
19368
19369         * ToolTip.cs: If SetToolTip is called from a control and the mouse
19370           is currently over that control, make sure that tooltip_window.Text
19371           gets updated
19372
19373 2006-01-13  Mike Kestner  <mkestner@novell.com>
19374
19375         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
19376
19377 2006-01-13  Jackson Harper  <jackson@ximian.com>
19378
19379         * TreeView.cs: On MS GetNodeAt never actually factors in the X
19380         value passed.  Also redraw the selected node when we recieve
19381         focus, so tabbing between trees works correctly.
19382
19383 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
19384
19385         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
19386           ~/.gconf/%gconf-tree.xml, so use
19387           .gconf/desktop/gnome/interface/%gconf.xml
19388
19389 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
19390
19391         * TextControl.cs: Draw text in gray if control is disabled
19392
19393 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
19394
19395         * TreeView.cs: Draw the focus rectangle outside the highlight, to
19396           make sure it's always visible. Fixes #76680.
19397
19398 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
19399
19400         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
19401
19402 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
19403
19404         * PageSetupDialog.cs: Added.
19405         * PrintDialog.cs: Attributes.
19406         * PrintPreviewControl.cs: Updates.
19407         * PrintPreviewDialog.cs: Updates.
19408         
19409 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
19410
19411         * Control.cs: Undid my selection check fix, since it's not needed
19412         * TextBoxBase.cs:
19413           - Now considering the presence of hscroll/vscroll when sizing
19414             vscroll/hscroll respectively. Fixed bug #77077
19415           - Added Left/Up/Down/Right to IsInputKey list to prevent
19416             ContainerControl from stealing them. This fixes what I broke
19417             with my last checkin.
19418
19419 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
19420
19421         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
19422           I finally understand how the property can be set without a setter :-)
19423
19424 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
19425
19426         * Application.cs:
19427           - Switched RunLoop to use static Message.Create to create a 
19428             Message object
19429           - Added PreProcessMessage call in runloop for keyboard events; this
19430             is part of the fix for #77219, I overlooked this originally in the
19431             MSDN doc for PreProcessMessage
19432         * Control.cs:
19433           - Removed call to PreProcessMessage from handling of keyboard 
19434             messages; it's supposed to be done in the message pump
19435           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
19436             per MSDN documentation.
19437           - IsInputChar: All chars are input chars by default; removed the 
19438             parent calling chain, MS does not document that
19439           - PreProcessMessage: If IsInputChar is true, we want to return false
19440             to allow dispatching of the message
19441           - When selecting the next control, now also check that we're not
19442             selecting ourselves again and therefore return a false positive.
19443         * TextBoxBase.cs:
19444           - Tried to match return values for IsInputKey and ProcessDialogKey
19445             to what MS returns; moved processing of our special keys outside
19446             ProcessDialogKey since MS does not seem to return true on those.
19447           - Moved code that previously was in ProcessDialogKey into new private
19448             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
19449           - Reworked handling of WM_CHAR to not have to duplicate code from
19450             Control.cs anymore, instead we simply call down to base.
19451            
19452 2006-01-12  Jackson Harper  <jackson@ximian.com>
19453
19454         * ComboBox.cs: We always need to refresh the text area when
19455         EndUpdate is called. Fixes the combobox in the file dialog.
19456         * Control.cs: Don't create the creator_thread until the controls
19457         handle is created.  Also in InvokeRequired we check if the
19458         creator_thread is null. This gives the effect of InvokeRequired
19459         returning true if the controls handle is not created yet, and
19460         matches MS.
19461
19462 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
19463
19464         * XplatUI.cs:
19465           - Added StartLoop() driver method. This is used to allow drivers to
19466             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
19467             loop for a particular thread
19468           - Added EndLoop() driver method. This is called once the message
19469             pump for the thread is shut down
19470           - Added SupportsTransparency method to allow the driver to indicate
19471             opacity support for windows
19472         * Form.cs:
19473           - Removed TODO attribute, completed AllowTransparency property
19474           - Added documented logic to Opacity
19475         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
19476           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
19477           versions of CompatibleTextRendering
19478         * X11Structs.cs: Added opacity atom to our atom enumeration
19479         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
19480           of a form might be set before it's reparented by the WM, and we need
19481           the opacity value without calling up to Form)
19482         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
19483           SupportsTransparency() driver methods
19484         * Application.cs: Now calling StartLoop and EndLoop driver methods
19485         * XplatUIX11.cs:
19486           - Added opacity atom registration
19487           - Added StartLoop()/EndLoop() methods. They're empty right now but
19488             will need to get implemented when we switch to a per-thread queue
19489           - Implemented SupportsTransparency() method
19490           - Implemented SetWindowTransparency() method
19491           - Added support for setting the opacity value when a window is
19492             reparented (since the opacity needs to be set on the WM frame)
19493         * XplatUIOSX.cs, XplatUIWin32.cs:
19494           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
19495
19496 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
19497
19498         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
19499
19500 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
19501
19502         * FileDialog.cs: Added ToolTip for MWFFileView
19503         * MimeIcon.cs: Rewrote GnomeHandler.
19504           - Get currently used gnome icon theme from
19505             ($HOME)/.gconf/%gconf-tree.xml
19506           - Make use of inherited icon themes
19507           - Support SVG icon themes like Tango via librsvg
19508
19509 2006-01-12  Miguel de Icaza  <miguel@novell.com>
19510
19511         Revert's Jackson's revert which broke 2.0 builds.   Fix both
19512         builds. 
19513         
19514         * Application.cs: Move the use_compatible_text_rendering outside
19515         the NET_2_0 define.  If we ever need to use the
19516         use_compatible_text_rendering on the individual controls they will
19517         access the variable from the common shared code paths.
19518
19519 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
19520
19521         * XplatUI.cs:
19522           - Added more granular debug options
19523           - Added method to print both window text and id
19524           - Switched debug output to use new Window() debug method
19525           - Added IsEnabled() driver method
19526           - Added EnableWindow() driver method
19527         * Form.cs:
19528           - Removed end_modal; no longer needed, new loop handles termination
19529             via 'closing' variable
19530           - If form is modal, setting DialogResult will now initiate loop
19531             termination via 'closing' variable
19532           - Added support for is_enabled/WS_DISABLED to CreateParams
19533           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
19534             does all the work
19535           - Removed code that's now in RunLoop from ShowDialog()
19536           - Added various documented sanity checks to ShowDialog()
19537           - Added handling of WM_DESTROY message; we set 'closing' on getting
19538             the message to indicate the message pump to terminate
19539           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
19540             send by the Application.ExitThread method. (We send the message
19541             to destroy the window after all other events have been
19542             processed through the queue, instead of destroying the handle 
19543             directly)
19544           - Moved code from Close() method to WM_CLOSE handler; added logic
19545             to only send close-related events if the form is not displayed
19546             modal
19547         * Splitter.cs (..ctor): Fixed typo in resource name
19548         * Control.cs:
19549           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
19550             brush now
19551           - set_Cursor: Now only setting calling into XplatUI if the handle for
19552             the control is already created; this avoids implict handle creation
19553             or crashes if it's not created
19554           - set_Enabled: Now setting the enabled state via the new driver method
19555             instead of just tracking it
19556           - CreateParams: Added logic to set WS_DISABLED based on enabled state
19557           - CreateControl: Reordered event firing and method calls to more
19558             closely fire events in the order MS does. Now setting the
19559             enabled state in the driver when creating the control.
19560           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
19561             match MS order
19562         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
19563           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
19564         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
19565         * Hwnd.cs:
19566           - Added tracking of window enabled state (get_Enabled/set_Enabled)
19567           - Added EnabledHwnd property to easily allow a driver to find the
19568             handle of the first enabled window in the parent chain (this is
19569             used by drivers to pass up input events of disabled windows)
19570         * XplatUIDriver.cs: Added IsEnabled() method
19571         * Application.cs:
19572           - Removed crude and obsolete exiting tracking variable
19573           - Removed internal ModalRun(); replaced by RunLoop()
19574           - Implemented private CloseForms() method to allow closing all 
19575             windows owned by a particular (or all) threads
19576           - Exit() now properly closes all windows without forcing the message
19577             pump to quit
19578           - Removed obsolete InternalExit() method
19579           - Changed Run() methods to use new RunLoop() message pump
19580           - Implemented new RunLoop() method for both modal and non-modal forms
19581         * CommonDialog.cs:
19582           - get_CreateParams: Added setting of WS_DISABLED
19583           - Simplified ShowDialog(); now all the work is done in RunLoop(),
19584             invoked via Form.ShowDialog()
19585         * NativeWindow.cs: We don't remove the window from the collection when
19586           the handle is destroyed; there might still be messages for it in the
19587           queue (mainly the resulting WM_DESTROY); instead it will be removed
19588           when Control calls InvalidateHandle in the WM_DESTROY handler
19589         * XplatUIX11.cs:
19590           - CreateWindow: Added logic to handle the WS_DISABLED window style
19591           - EnableWindow: Implemented based on Hwnd.Enabled
19592           - GetMessage: Reset PostQuitState so the method can be called again
19593           - Implemented support for disabled windows (passing messages to the
19594             first enabled parent) in handling all input messages
19595           - Added optimizations for handling Expose events
19596           - Implemeted new driver method IsEnabled()
19597           - Now always resetting paint pending tracking vars when we start paint
19598           - Re-implemented UpdateWindow via just sending a WM_PAINT message
19599         * XplatUIOSX.cs: Added IsEnabled method stub
19600         * XplatUIWin32.cs: Implemented new IsEnabled() method
19601
19602 2006-01-11  Jackson Harper  <jackson@ximian.com>
19603
19604         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
19605         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
19606         variables a little.
19607         * ColorDialog.cs: Clear out the old form before adding the new
19608         panel.  
19609
19610 2006-01-11  Jackson Harper  <jackson@ximian.com>
19611
19612         * X11Dnd.cs: Make sure to add all the text formats when adding
19613         strings to the data object.
19614         * TreeNodeCollection.cs: When adding to a sorted tree we need to
19615         do some redrawing too.  Also change the UpdateNode to an
19616         UpdateBelow so the newly added node gets painted.
19617         
19618 2006-01-11  Miguel de Icaza  <miguel@novell.com>
19619
19620         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
19621         LinkLabel.cs, PropertyGrid.cs: Implement the
19622         UseCompatibleTextRendering property for 2.x
19623
19624         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
19625
19626 2006-01-11  Jackson Harper  <jackson@ximian.com>
19627
19628         * TreeView.cs: Use the property for setting the selected node so
19629         the correct events get raised.
19630         * TreeNode.cs: Update the tree when the fore/back colours of a
19631         node are set.
19632
19633 2006-01-10  Jackson Harper  <jackson@ximian.com>
19634
19635         * TreeView.cs: Allow setting SelectedNode to null.
19636
19637 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19638
19639         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
19640
19641 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19642
19643         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
19644
19645 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19646
19647         * PrintDialog.cs: Added attributes and set default property values.
19648
19649 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19650
19651         * PrintControllerWithStatusDialog.cs: 
19652         Added PrintControllerWithStatusDialog.
19653
19654 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19655
19656         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
19657         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
19658
19659 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
19660
19661         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
19662
19663 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19664
19665         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
19666         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
19667
19668 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
19669
19670         * MimeIcon.cs: Added internal class SVGUtil.
19671
19672 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
19673
19674         * FileDialog.cs: Don't crash if there are two files with the
19675           same name but different locations.
19676
19677 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
19678
19679         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
19680         dates across multiple month grids. Used to not highlight entire 
19681         month, but does now.
19682         
19683 2006-01-06  Jackson Harper  <jackson@ximian.com>
19684
19685         * MonthCalendar.cs: Removed DoEvents call to prevent a running
19686         message loop. Change timer intervals to numbers that seem more
19687         natural.
19688
19689 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
19690
19691         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
19692           object for location info since screen object is now implemented.
19693
19694 2006-01-05  Jackson Harper  <jackson@ximian.com>
19695
19696         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
19697         * AsyncMethodResult.cs: We no longer use a WeakReference for the
19698         AsyncMethodResult, this is because we ALWAYS want the
19699         ManualResetEvent to get set.
19700         * Control.cs: When disposing use an async invoke to call shutdown
19701         code, so that thigns don't block on the finalizer thread.  Also
19702         check if we even have a message loop before trying to send
19703         messages, if we don't then don't bother sending messages.
19704         - No more weak references for async methods
19705         * XplatUIDriver.cs: No more weak references for async methods.
19706
19707 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
19708
19709         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
19710           returns two FontFamily with the same name
19711
19712 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
19713
19714         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
19715           drawing disabled text. Instead using the ColorGrayText color
19716
19717 2006-01-04  Jackson Harper  <jackson@ximian.com>
19718
19719         * TreeNode.cs: redraw the node when its image index is changed.
19720
19721 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
19722
19723         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
19724           time I checked there are no others like it.
19725
19726 2006-01-04  Jackson Harper  <jackson@ximian.com>
19727
19728         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
19729         this gives the behavoir I was looking for.
19730         * Control.cs: Special case Invoking EventHandlers, this matches MS
19731         and fixes part of bug #76326.
19732
19733 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
19734
19735         * ThemeClearlooks.cs, FileDialog.cs:
19736           - Reflect the latest Theme class changes
19737           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
19738             with DateTime
19739             
19740 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
19741
19742         * Theme.cs: Cache UI resource images and resize them if needed
19743
19744 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
19745
19746         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
19747           is called. This fixes the crash in Nexxia when setting the font
19748           attributes in the chat. [However, RTF needs a look-over to make sure
19749           that all SelectionXXX methods handle the special case that selection
19750           is empty and therefore the change must be applied to all text starting
19751           at the cursor/selection start]
19752
19753 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
19754
19755         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
19756           XplatUIOSX.cs: Added SendMessage and PostMessage methods
19757         * X11Keyboard.cs: Switched to new way of calling PostMessage
19758
19759 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
19760
19761         * Theme.cs: Added theme interface for images to allow the theme to
19762           control what images are used for things like FileDialog, MessageBox
19763           icons, etc.
19764         * MessageBox.cs: Now uses the new Theme icon/image interfaces
19765
19766 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
19767
19768         * FileDialog.cs:
19769           - Removed some dead code
19770           - Opening a recently used file does work now
19771           - Small UI enhancements
19772           - Refactoring
19773
19774 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
19775
19776         * FileDialog.cs: Forgot too add __MonoCS__
19777
19778 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
19779
19780         * FileDialog.cs: We are able to read recently used files now let's
19781           go on and write them.
19782
19783 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
19784
19785         * FileDialog.cs: Breathe some life into "last open"/"recently used"
19786           button
19787         * MimeIcon.cs: Do a check for the top level media type also
19788
19789 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
19790
19791         * ThemeClearlooks.cs:
19792           - Added CPDrawStringDisabled
19793           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
19794             some chars if the text doesn't fit into text_rect
19795           - DrawListViewItem: If View = View.LargeIcon center the image;
19796             rewrote the drawing of ListViewItem.Text if View = 
19797             View.LargeIcon
19798
19799 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
19800
19801         * MimeIcon.cs: Use default KDE icon theme if there is no
19802           "48x48" directory for the current icon theme, fixes #77114
19803         * Mime.cs: Disable not working and actually not used code. 
19804         * ThemeWin32Classic.cs:
19805           - Replace "new SolidBrush" in GetControlBackBrush and
19806             GetControlForeBrush with ResPool.GetSolidBrush
19807           - Changed DrawListViewItem from private to protected virtual
19808         * FileDialog.cs:
19809           - Added form.MaximizeBox = true
19810           - Don't throw an exception if there is a broken symbolic link
19811
19812 2005-12-23  Jackson Harper  <jackson@ximian.com>
19813
19814         * TabControl.cs: Give the panels focus, keyboard navigation is
19815         fixed so this works correctly now.
19816         - We need these key events also.
19817         * ToolBar.cs: Remove some of the poor mans double buffering.
19818         
19819 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
19820
19821         * ComboBox.cs: The internal TextBox now returns the focus.
19822
19823 2005-12-23  Jackson Harper  <jackson@ximian.com>
19824
19825         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
19826
19827 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
19828
19829         * Control.cs: Removed debug code
19830         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
19831           implicit children
19832
19833 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
19834
19835         * Control.cs: When creating the control, update the Z-order after
19836           all it's children are created, too. (Fixes nexxia not showing
19837           picturebox bug)
19838
19839 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
19840
19841         * Control.cs: Do not update the anchoring distances if layout is
19842           suspended, instead do it once layout is resumed
19843
19844 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
19845
19846         * Control.cs: 
19847           - After many hours of debugging, for both Jackson and
19848             myself, it turns out that it helps to set the parent of a control
19849             if you want to actually see it onscreen. In the spirit of that
19850             discovery, we're now setting the parent of the control and
19851             it's children when the control's handle is created. This fix
19852             will make Lutz Roeder's Reflector run happily. 
19853           - now just creating the handle instead of the whole control when
19854             getting a graphics context for the control.
19855
19856 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
19857
19858         * ScrollableControl.cs: When calculating the canvas, don't consider
19859           the scrollbar widths. Instead, predict if horizontal scrollbar
19860           will affect canvas when deciding on vertical display and vice versa.
19861
19862 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
19863
19864         * RichTextBox.cs: Set default RTF font for documents that don't
19865           have a font table (Fixes #77076)
19866
19867 2005-12-22  Jackson Harper  <jackson@ximian.com>
19868
19869         * TextBoxBase.cs: It's difficult to do, but you can have an empty
19870         clipboard. This prevents a NullRef in that case.
19871         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
19872         clipboard. PRIMARY is for the currently selected text only. (We
19873         should implement PRIMARY at some point.
19874
19875 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
19876
19877         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
19878           a Unicode function with a structure that was defined in Ansi way.
19879           This fixes #76942.
19880
19881 2005-12-21  Jackson Harper  <jackson@ximian.com>
19882
19883         * StatusBar.cs: Statusbar handles its fore/back colours on it's
19884         on. Because thats how it rolls. (and this avoids it using ambient
19885         colours).
19886         * ThemeWin32Classic.cs: Use the proper back color for filling.
19887         * Menu.cs: Use the system menu bar color for drawing menu
19888         bars. Using the window back color will bring ambient colours into
19889         the picture.
19890
19891 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
19892
19893         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
19894           Bitmaps were created and not disposed.
19895
19896 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
19897
19898         * Control.cs (CreateControl): Don't do anything if the control is
19899           already created, otherwise we'd fire the OnCreated event more than
19900           once
19901
19902 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
19903
19904         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
19905           will always match. Instead return -1. Fixes #76464.
19906
19907 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
19908
19909         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
19910           neither the beginning nor the end of the line (Fixes bug #76479)
19911
19912 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
19913
19914         * Control.cs:
19915           - ControlNativeWindow.ControlFromHandle(): Now handling situation
19916             where handle is invalid
19917           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
19918             instead of slower linear search
19919         * NativeWindow.cs: Don't remove the window from the hashtable until
19920           after the driver has destroyed it (since the driver might use
19921           Control.FromHandle to lookup the control object
19922         * Hwnd.cs: Added DestroyPending property to track if a window is 
19923           already destroyed as far as the driver is concerned and only hasn't
19924           yet notified the control
19925         * XplatUIX11.cs:
19926           - Activate(): Check if the window is still valid before using the 
19927             handle
19928           - Implemented DestroyChildWindow() method to mark child windows as
19929             destroyed when a window is destroyed. This prevents situations 
19930             where we might call an X method based on queued events for a
19931             window that already has been destroyed but we haven't yet pulled
19932             the destroy method from the queue.
19933           - Added a call to the new DestroyChildWindow() method to the drivers
19934             DestroyWindow code. Also now marking the destroyed window itself
19935             as pending
19936
19937 2005-12-20  Jackson Harper  <jackson@ximian.com>
19938
19939         * StatusBar.cs:
19940         * StatusBarPanel.cs: Don't calculate panel sizes on draw
19941         anymore. Just do them when needed, also track the rects of panels
19942         so that we can optimize refreshing more in the future.
19943
19944 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
19945
19946         * ColorDialog.cs: Fixed focus drawing in small color controls
19947
19948 2005-12-19  Jackson Harper  <jackson@ximian.com>
19949
19950         * InternalWindowManager.cs:
19951         * MdiWindowManager.cs: Cleanup some coordinate system changes so
19952         moving windows works properly.
19953
19954 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
19955
19956         * Control.cs: 
19957           - Removed call to InitLayout() from SetBoundsCore(); doc says
19958             it's only called when a control is added to a container
19959           - Split InitLayout logic, moved to separate UpdateDistances() method
19960             since we need to perform those calculations more often than just
19961             when adding the control to a container. (Needed to fix #77022)
19962           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
19963           - Reduced the OnBindingContextChanged events count, don't send them
19964             unless the control is created, we still aren't totally matching
19965             MS, but I can't quite figure out some of their rules
19966
19967 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
19968
19969         * ThemeClearlooks.cs: Corrected distance between ProgressBar
19970           stripes
19971
19972 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
19973
19974         * ThemeClearlooks.cs:
19975           - Updated ProgressBar drawing
19976           - Corrected drawing of ScrollBars and scroll buttons
19977           - Some temporary fixes for minor pixel artefacts
19978
19979 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
19980
19981         * Control.cs:
19982           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
19983             cause events to be sent in the same order as MS does.
19984           - Added ChangeParent() method to trigger various OnXXXChanged events
19985             that need to be fired when a parent changes (This is a reworking
19986             of the patch from r54254, with the X11 errors fixed)
19987           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
19988             since on MS we get OnLayoutChanged events when calling Clear()
19989           - Changed Enabled property to consider parent state as well, if a
19990             parent is not enabled, the control will not be either
19991           - Changed Parent property to simply call Controls.Add() since that
19992             now does all the work required, this way we avoid code duplication
19993           - Threw in a few OnBindingsContextChanged calls to try and match
19994             when MS sends them. We seem to send a few too many, though.
19995           - Added call to CreateControl when adding the control to a parent.
19996             We were never calling CreateControl. Still needs some work, in
19997             some places we treat HandleCreated and ControlCreated as equal, 
19998             which is wrong
19999           - Removed obsolete commented out code from UpdateZOrder()
20000
20001 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
20002
20003         * ThemeClearlooks.cs: Updated TrackBar drawing.
20004
20005 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
20006
20007         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
20008
20009 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
20010
20011         * FileDialog.cs: Add the Help button and the open readonly
20012           checkbox only if needed
20013
20014 2005-12-16  Jackson Harper  <jackson@ximian.com>
20015
20016         * Control.cs: Make sure we have an active menu before trying to
20017         process commands on it. Prevents menu-less forms from crashing
20018         when Alt is pressed.
20019         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
20020         Dieter Bremes.
20021         * RichTextBox.cs: Expand statement to help out gmcs and fix the
20022         2.0 build.
20023
20024 2005-12-16  Jackson Harper  <jackson@ximian.com>
20025
20026         * InternalWindowManager.cs: Don't translate tool windows screen
20027         coordinates. This fixes windows 'bouncing' around when being moved.
20028
20029 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
20030
20031         * TextBoxBase.cs:
20032           - MaxLength now treats 2^31-1 equal to unlimited length (this is
20033             not quite MS compatible, MS uses that number only for single line
20034             and 2^32-1 for multi-line, but I figure it won't hurt keeping
20035             the limit at 2GB)
20036           - Now enforcing the MaxLength limit when entering characters
20037           - Added argument to internal Paste() method to track if it's called
20038             from programatically or via keyboard, since keyboard driven pastes
20039             need to enforce max-length
20040           - Added logic to Paste to only paste as many chars as MaxLength 
20041             allows
20042         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
20043         * TextControl.cs:
20044           - Added Length property to return number of characters in document
20045           - Added private CharCount property which only tracks actual chars
20046             in the document (no linefeeds) and fires event when CharCount
20047             changes
20048           - Added tracking of character count to all methods that alter it
20049           - Added LengthChanged event to allow applications to subscribe
20050             to any changes to the document
20051
20052 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
20053
20054         * TextBox.cs: 
20055           - Removed local password_char field (moved to TextBoxBase)
20056           - Now setting the document's password var when password is
20057             set
20058         * TextBoxBase.cs:
20059           - Added password_char field (needed here so MultiLine can
20060             access it)
20061           - Added logic to MultiLine property setter to set the document's
20062             variable when password display is allowed
20063           - Removed debug code and made some debug code conditional
20064         * TextControl.cs:
20065           - Added RecalculatePasswordLine() method to handle special password
20066             char only lines
20067           - Added PasswordChar property, also added related tracking vars
20068           - Draw() method now uses local text var for grabbing text to draw,
20069             this var is set to line.text unless we're doing password display,
20070             then it is set to the pre-generated all-password-chars line
20071           - Added calling RecalculatePasswordLine() method for password lines
20072
20073 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
20074
20075         * Hwnd.cs: 
20076           - Added Reparented property to allow tracking of Window Manager
20077             reparenting actions (which affect X/Y calculations of toplevel 
20078             windows)
20079           - Made ToString() print window handles in hex
20080         * XplatUIX11.cs:
20081           - AddConfigureNotify(): Now uses reparented state off Hwnd to
20082             determine if X/Y needs offsetting
20083           - AddConfigureNotify(): Fixed offset calculations
20084           - Now adds ReparentNotify messages into the queue
20085           - Now processes ReparentNotify messages and causes a 
20086             WM_WINDOWPOSCHANGED message to be sent upstream if a window
20087             is reparented (as most likely it's X/Y coordinates are changed
20088             due to that)
20089
20090 2005-12-14  Jackson Harper  <jackson@ximian.com>
20091
20092         * XplatUIX11.cs: Tool windows still need to respek focus.
20093
20094 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
20095
20096         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
20097           have a working release
20098
20099 2005-12-13  Jackson Harper  <jackson@ximian.com>
20100
20101         * Form.cs: Update styles after setting the border style regardless
20102         of whether or not the window is using a window manager.
20103
20104 2005-12-13  Jackson Harper  <jackson@ximian.com>
20105
20106         * Form.cs: We now hook into an internal window manager instead of just an
20107         MDI subsystem, this is so we can have properly behaving tool windows.
20108         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
20109         * InternalWindowManager.cs: New internal class that acts as a
20110         window manager for tool windows and as a base for mdi windows.
20111         * MdiWindowManager.cs: New class that acts as a window manager for
20112         mdi windows.
20113
20114 2005-12-12  Jackson Harper  <jackson@ximian.com>
20115
20116         * Control.cs: Updates so we match behavoir for for implicit
20117         controls. Fixes explosions in MDI.
20118
20119 2005-12-12  Jackson Harper  <jackson@ximian.com>
20120
20121         * Control.cs: Implement Invalidate (Region).
20122
20123 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
20124
20125         * Control.cs: 
20126           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
20127             the same events as MS does. MS fires events for each property 
20128             except, for unknown reasons, Cursor, when the control is reparented. 
20129             I can't seem to totally match add/remove since MS also fires some 
20130             VisibleChanged events, which makes no sense. Consolidated the
20131             parenting code into a separate method so it can be called from
20132             both Add and Remove. set_Parent no longer needs any special logic
20133             as it calls the parent's add method which implicitly fires
20134             all events
20135           - Removed some obsolete code and debug output
20136           - Enabled state is inherited from parents, if this is enabled
20137
20138 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
20139
20140         * Form.cs: Removed commented out code
20141
20142 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
20143
20144         * Control.cs:
20145           - Added internal version of Invoke, with additional argument 
20146             indicating if we're calling it from a Dispose() handler. That
20147             way we can avoid BeginInvoke throwing an exception if we're
20148             calling for an already destroyed window.
20149           - Added a dispose argument to BeginInvokeInternal, and made the
20150             check if a valid window handle chain exists conditional on
20151             it not being a dispose call
20152           - Removed code in DestroyHandle to destroy our children. Since we
20153             now handle the WM_DESTROY message we will catch all our children
20154             being destroyed.
20155           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
20156         * Form.cs:
20157           - Added a field to track the application context of the form.
20158           - No need to set closing variable as response to WM_CLOSE, instead
20159             we destroy the window. We also call PostQuitMessage if the form
20160             has an application context (which makes it the main app form,
20161             which, when closed terminates the app)
20162         * XplatUI.cs:
20163           - Dropped Exit() method, it's naming was confusing
20164           - Added PostQuitMessage() which causes GetMessage to return false
20165             once the message queue is empty
20166         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
20167           PostQuitMessage()
20168         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
20169           no longer a valid XplatUI method, but left it in since it's used
20170           internally. Added empty PostQuitMessage() method.
20171         * MenuAPI.cs: Replaced call to Exit() with call to
20172           PostQuitMessage, even though this is probably no longer needed.
20173         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
20174         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
20175         * Application.cs:
20176           - Replaced call to XplatUI.Exit() with PostQuitMessage()
20177           - Removed old debug code that would call XplatUI for exception
20178             display, enabled standard exception handling (Still not enabled
20179             though, until NativeWindow's ExternalExceptionHandler define
20180             is removed
20181         * NativeWindow.cs:
20182           - Added internal method to allow control to update NativeWindow
20183             after a window has been destroyed
20184           - Added handling of already destroyed windows when calling i
20185             DestroyWindow
20186           - Added removal of handle from list on ReleaseHandle
20187         * XplatUIX11.cs:
20188           - Dropped GetMessageResult var and related code
20189           - Added PostQuitState to field to track if PostQuitMessage has been
20190             called
20191           - Dropped Exit() method
20192           - Added PostQuitMessage() method
20193           - GetMessage now will return false if PostQuitState is set and no
20194             more messages are in the queue.
20195           - Expose handler will no longer generate WM_PAINT messages if we are
20196             in PostQuitState since it's very likely any windows have already
20197             been destroyed, and since Hwnd won't get updated until we have
20198             processed the DestroyNotify we'd be causing X errors.
20199         
20200 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20201
20202         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
20203           Thanks to Mike for pointing out the err of my ways.
20204
20205 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20206
20207         * Control.cs(PreProcessMessage): Moved menu handling back, but
20208           after all other key handling, to match MS (who handles Menu in
20209           DefWndProc)
20210         * Menu.cs (WndProc): Removed my brainfart
20211
20212 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20213
20214         * Control.cs(PreProcessMessage): Removed special menu handling 
20215         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
20216
20217 2005-12-07  Mike Kestner  <mkestner@novell.com>
20218
20219         * Control.cs : special case SYSKEYUP so that we can adjust keynav
20220         state according in tracker.
20221         * Menu.cs : promote tracker field to base class and provide a tracker
20222         lookup capability.  Add/Remove shortcuts dynamically if the top menu
20223         has a tracker. Unparent items that are removed from the collection.
20224         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
20225         * Theme*.cs: add always_show_hotkeys field to support configurability
20226         of mnemonic display.  win32 doesn't show mnemonics until Alt is
20227         pressed.
20228
20229 2005-12-07  Jackson Harper  <jackson@ximian.com>
20230
20231         * MdiChildContext.cs: Use Control.ResetCursor.
20232         * Control.cs: ResetCursor needs to set the property so that the
20233         correct XplatUI call gets made.
20234
20235 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20236
20237         * Control.cs: More fixes to make our key events match MS. We
20238           were not setting the modifier state on KeyData, and we were
20239           not generating any events when Alt was pressed with a key
20240           since handling of WM_SYSxxx was missing for the OnKey methods.
20241
20242 2005-12-07  Jackson Harper  <jackson@ximian.com>
20243
20244         * MdiChildContext.cs: reenable the sizing code.
20245         - When the mouse leaves a window reset its cursor.
20246
20247 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
20248
20249         * ThemeClearlooks.cs: Reflect latest Hwnd changes
20250
20251 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
20252
20253         * Hwnd.cs: Now using the theme 3d bordersize to calculate
20254           widths of Fixed3D borders
20255
20256 2005-12-07  Jackson Harper  <jackson@ximian.com>
20257
20258         * MdiClient.cs: Fix warnings. Earn Mike's love.
20259
20260 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
20261
20262         * ThemeClearlooks.cs:
20263           - Adjusted mouse over button color
20264           - Added first parts of CheckBox drawing
20265           - Added correct color for selected text background
20266           - Fixed ComboBox drawing
20267           - Added CPDrawBorder3D and CPDrawBorder
20268
20269 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
20270
20271         * XplatUIX11.cs: Added call to XBell for AudibleAlert
20272
20273 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
20274
20275         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
20276           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
20277           alert users via sound. We could add an enum arg with different
20278           types of alerts in the future
20279
20280 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
20281
20282         * Control.cs: Fix behaviour problems pointed out by Mike
20283
20284 2005-12-05  Mike Kestner  <mkestner@novell.com>
20285
20286         * StatusBarPanel.cs: add Invalidate method and hook it into all the
20287         prop setters.  Calls parent.Refresh for now, but could be maybe be
20288         optimized with an internal method on StatusBar at some point.
20289         [Fixes #76513]
20290
20291 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
20292
20293         * RichTextBox.cs: Implemented get_SelectionColor
20294
20295 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
20296
20297         * ThemeClearlooks.cs:
20298           - Removed dead code
20299           - Draw black button border only if button is Form.AcceptButton
20300           - Draw correct button color for pressed RadioButton if the mouse 
20301             has entered the button
20302           - Updated ProgressBar drawing!
20303           - Updated CPDrawSizeGrip drawing
20304           - Updated StatusBarPanel drawing
20305
20306 2005-12-05  Mike Kestner  <mkestner@novell.com>
20307
20308         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
20309         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
20310
20311 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
20312
20313         * ThemeClearlooks.cs: Initial check-in, activate with
20314           export MONO_THEME=clearlooks
20315         * ThemeEngine.cs: Added ThemeClearlooks
20316
20317 2005-12-03  Mike Kestner  <mkestner@novell.com>
20318
20319         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
20320         [Fixes #76897]
20321
20322 2005-12-02  Jackson Harper  <jackson@ximian.com>
20323
20324         * Form.cs: If the child form has no menu the default main menu is
20325         used as the active menu.
20326
20327 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
20328
20329         * ListBox.cs: Check if any items exist before trying to resolve 
20330           coordinates into items
20331
20332 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
20333
20334         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
20335           as the second color for the background hatch
20336
20337 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
20338
20339         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
20340         * RichTextBox.cs: FormatText position arguments are 1-based, now making
20341           sure that what we pass to FormatText is always 1-based. Fixes #76885
20342
20343 2005-11-29  Miguel de Icaza  <miguel@novell.com>
20344
20345         * NumericUpDown.cs (EndInit): When we are done initializing,
20346         reflect any updates on the UI.
20347
20348 2005-12-02  Jackson Harper  <jackson@ximian.com>
20349
20350         * ImplicitHScrollBar.cs:
20351         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
20352         their container controls.
20353         * TreeView.cs: Use the new implicit scrollbars.
20354
20355 2005-12-02  Jackson Harper  <jackson@ximian.com>
20356
20357         * TreeView.cs: Make top_node internal so the TreeNodeCollections
20358         can play with it.
20359         * TreeNodeCollection.cs: If we remove the topnode we need to
20360         update topnode to the next node in line.
20361         - When clearing nodes go through the same process as removing
20362         them, so they get depareneted and checked if they are top node.
20363
20364 2005-12-01  Jackson Harper  <jackson@ximian.com>
20365
20366         * TreeView.cs: When imagelists are used the image area is
20367         selectable as well as the text.
20368         - If there are no selected nodes select the first one.
20369         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
20370         so don't do it more then we need to.
20371
20372 2005-12-01  Jackson Harper  <jackson@ximian.com>
20373
20374         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
20375         that arrows can be scaled.
20376
20377 2005-12-01  Jackson Harper  <jackson@ximian.com>
20378
20379         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
20380         fail. Patch by Dieter Bremes
20381
20382 2005-11-30  Jackson Harper  <jackson@ximian.com>
20383
20384         * Form.cs: Property is 2.0 only
20385         * PrintDialog.cs: Signature fix.
20386
20387 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
20388
20389         * TextControl.cs: 
20390           - No longer artificially moves text 2 pixels down (now that we have
20391             borders this is no longer needed)
20392           - Added calcs for left, hanging and right indent
20393
20394 2005-11-23  Mike Kestner  <mkestner@novell.com>
20395
20396         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
20397
20398 2005-11-30  Jackson Harper  <jackson@ximian.com>
20399
20400         * MdiChildContext.cs: Set the cloned menus forms, as these don't
20401         get cloned as part of CloneMenu ().
20402         * Menu.cs: Make sure the parent of the items get set correctly
20403         when they are added.  And the owners are notified of the changes.
20404         * Form.cs: Create an ActiveMenu property, so that when MDI is used
20405         we can change the menu being displayed/handled by the form without
20406         changing the menu assosciated with the form.
20407         - Don't let Mdi children draw/handle menus.
20408         
20409 2005-11-30  Jackson Harper  <jackson@ximian.com>
20410
20411         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
20412         a MenuChanged event. Just to make the API a little more
20413         consistent.
20414         * MainMenu.cs:
20415         * MenuItem.cs: Use the new OnMenuChanged
20416         * MdiChildContext.cs: Handle menu merging.
20417         * Form.cs: Implement MergedMenu.
20418         
20419 2005-11-30  Jackson Harper  <jackson@ximian.com>
20420
20421         * Menu.cs: We were misusing Add. Add goes behind the specified
20422         index according to the docs, and does not replace the specified
20423         index. So I added an Insert method.
20424
20425 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
20426
20427         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
20428           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
20429           is for Jackson
20430         * RichTextBox.cs: Added calls to base for DnD events
20431
20432 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
20433
20434         * TextControl.cs:
20435           - Fixed drag-selection related crash; style fixes
20436           - Implemented undo class
20437             o Implemented method to capture document state for specified
20438               range in document tree
20439             o Implemented method to restore captured document state
20440             o Implemented cursor tracking
20441             o Implemented basic undo stack
20442           - Added undo cursor tracking to methods altering cursor location
20443           - Added undo tracking to selection deletion (still missing
20444             other text-altering hookups)
20445         * RichTextBox.cs:
20446           - Added SelectionLength property
20447           - Implemented CanPaste()
20448           - Implemented Paste()
20449           - Added missing protected methods
20450           - Fixed RTF->Document conversion; now uses font index 0 and color 
20451             index 0 as the default font for the parsed text
20452           - Fixed RTF<->Document font size translation
20453           - Fixed RTF generation, now properly handles cross-tag boundaries
20454             for single line selection
20455           - No longer always appends blank line to generated RTF
20456           - Removed TODOs
20457           - Added missing attributes
20458           - Hooked up undo-related methods
20459         * TextBoxBase.cs:
20460           - Implemented Copy()
20461           - Implemented Paste()
20462           - Implemented Cut()
20463           - Fixed caret mis-behaviour on backspace across line-boundaries
20464
20465 2005-11-29  Jackson Harper  <jackson@ximian.com>
20466
20467         * MdiClient.cs: Add a method for activating mdi children. Very
20468         basic right now. I imagine someday it might need more girth.
20469         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
20470         children windows names are added to the menu item.
20471         * ThemeWin32Classic.cs: Draw the arrow if the item is an
20472         mdilist. This happens regardless of whether or not there are any
20473         mdi windows to see in the list, and according to my tests happens
20474         before the items are even added. Also happens if there isn't even
20475         an mdi client to get windows from.
20476
20477 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
20478
20479         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
20480         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
20481
20482 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
20483
20484         * DataGridTableStyle.cs:
20485           - Create always the styles for the missing columns even if they are
20486             provided by the user (not default table style)
20487         * DataGrid.cs:
20488           - Fixes bug 76770
20489           - Fixes SetDataBinding (always re-attach source)
20490           - Fixes SetNewDataSource (only clear styles if they are not for 
20491             this source)
20492          -  Expands OnTableStylesCollectionChanged to handle style refresh 
20493             and remove properly
20494
20495 2005-11-29  Jackson Harper  <jackson@ximian.com>
20496
20497         * FileDialog.cs: Implement missing bits, remove some dead
20498         code.
20499         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
20500         creation of the panel so that the options set on the dialog are
20501         seen when the panel is created.
20502         * TreeView.cs: raise a click when items are clicked.
20503         
20504 2005-11-29  Jackson Harper  <jackson@ximian.com>
20505
20506         * MdiClient.cs: Pass some signature methods through to base.
20507
20508 2005-11-28  Jackson Harper  <jackson@ximian.com>
20509
20510         * ListView.cs: Raise the click event when items are clicked.
20511
20512 2005-11-28  Jackson Harper  <jackson@ximian.com>
20513
20514         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
20515         a nullref.
20516
20517 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
20518
20519         * ThemeNice.cs: - Removed 1 pixel bitmaps
20520           - Use SmoothingMode.AntiAlias where it makes sense
20521             (ScrollButton arrow for example)
20522           - Enhanced Button focus drawing
20523           - Fixed ComboBox drawing (no artefacts anymore, focus
20524             rectangle is back again, reduced size of ComboButton, etc.)
20525           - Fixed RadioButton focus drawing for Appearence.Button
20526           - Slight ScrollButton redesign
20527           - Some LinearGradientBrush size fixes
20528           - GroupBoxes have now rounded edges
20529           - Fixed StatusBar drawing
20530
20531 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
20532
20533         * ThemeNice.cs: - Remove dead code
20534           - use correct background colors for menus, etc.
20535           - Fake pixel drawing with 1 pixel bitmaps
20536
20537 2005-11-24  Jackson Harper  <jackson@ximian.com>
20538
20539         * MdiClient.cs: Size the scrollbars when resizing the window.
20540         - Resize the maximized windows when the client is resized
20541         * Form.cs: Make the child context available
20542         
20543 2005-11-23  Jackson Harper  <jackson@ximian.com>
20544
20545         * MdiChildContext.cs: Don't size windows if they are maximized.
20546
20547 2005-11-23  Mike Kestner  <mkestner@novell.com>
20548
20549         * ContextMenu.cs: use MenuTracker.
20550         * Control.cs: remove menu handle usage.
20551         * Form.cs: remove menu handle usage.
20552         * Hwnd.cs: remove menu handle usage.
20553         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
20554         motion and clicks to the new Tracker handlers.
20555         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
20556         and handle usage.
20557         * MenuAPI.cs: refactored to combine popup and menubar event handling.
20558         Killed the MENU and MENUITEM data types and associated collections
20559         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
20560         MenuTracker class that exposes the leftovers from the old MenuAPI
20561         static methods. Restructured Capture handling so that only one grab is
20562         done for the entire menu hierarchy instead of handing off grabs to
20563         submenus. Tracker now has an invisible control to Capture when active.
20564         * MenuItem.cs: add sizing accessors, kill Create
20565         and handle usage.
20566         * Theme.cs: remove menu handle and MENU(ITEM) usage.
20567         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
20568         MENU(ITEM). remove menu handle usage, use Menu directly.
20569         * XplatUIDriver.cs: remove menu handle usage.
20570         * XplatUIOSX.cs: remove menu handle usage.
20571         * XplatUIWin32.cs: remove menu handle usage.
20572         * XplatUIX11.cs: remove menu handle usage.
20573
20574 2005-11-22  Jackson Harper  <jackson@ximian.com>
20575
20576         * Hwnd.cs: Don't compute the menu size for
20577         DefaultClientRectangle.
20578         - Reenable menu sizes being computed for GetClienRectangle.
20579         * Form.cs: Remove comment of trechery
20580         
20581 2005-11-22  Jackson Harper  <jackson@ximian.com>
20582
20583         * Hwnd.cs: The adjustments for the menu bar are made when it is
20584         attached to the form.
20585
20586 2005-11-19  Jackson Harper  <jackson@ximian.com>
20587
20588         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
20589         (just like on windows).
20590
20591 2005-11-19  Jackson Harper  <jackson@ximian.com>
20592
20593         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
20594         use real buttons anymore because they are in non client area. The
20595         one TODO here is that I need to somehow invalidate a section of
20596         the non client area.
20597
20598 2005-11-18  Jackson Harper  <jackson@ximian.com>
20599
20600         * Control.cs: Put the enum check back in now that MDI doesnt have
20601         to use this to set border styles.
20602         * Form.cs: Only set mdi child windows borders if the handle has
20603         been created.
20604         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
20605         this directly on to the driver.
20606         - Get the move start position before adjusting for the titlebar
20607         height, this fixes the windows "skipping" when they are first
20608         moved.
20609
20610 2005-11-18  Jackson Harper  <jackson@ximian.com>
20611
20612         * XplatUIX11.cs: Just compute the mdi borders separately as they
20613         don't totally match up with normal form borders.
20614
20615 2005-11-18  Jackson Harper  <jackson@ximian.com>
20616
20617         * Control.cs: Set WS_ styles for borders, so that the driver does
20618         not have to retrieve the control instance to figure out what kind
20619         of borders it should have.
20620         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
20621         driver can know its an mdi child easily.
20622         * XplatUIX11.cs: Get the border styles and whether the window is
20623         MDI from the Styles and ExStyles params instead of having to get a
20624         control. This prevents a chicken and egg problem.       
20625
20626 2005-11-18  Jackson Harper  <jackson@ximian.com>
20627
20628         * MdiClient.cs: Fix typo so scrollbars show up correctly.
20629
20630 2005-11-18  Jackson Harper  <jackson@ximian.com>
20631
20632         * MdiClient.cs: Calculate when to add and remove scrollbars
20633         correctly.
20634         * MdiChildContext.cs: Adjust the y position to take the titlebar
20635         into account.
20636         - No height for FormBorderStyle.None
20637
20638 2005-11-18  Jackson Harper  <jackson@ximian.com>
20639
20640         * Control.cs: Allow non enum values to be used for
20641         InternalBorderStyle.  MDI does this to set a special border style.
20642         - New utility methods for converting points to/from client coords
20643         - Add the newly created control to the Controls collection before
20644         updating its style. This way UpdateStyle can walk the control
20645         heirarchy to find the control if needed.
20646         so I don't need to create a new Point object all the time.
20647         * Form.cs: Let MDI windows handle their border styles.
20648         - Set styles on MDI windows so the correct title style is derived.
20649         * MdiChildContext.cs: Move all the painting and window handling
20650         into the non client area.
20651         - Use correct sizing and put correct buttons on frames based on
20652         the FormBorderStyle.
20653         - Notify the mdi client about scrolling
20654         - Need to handle the buttons ourselves now, because they are all
20655         in non client areas and we can't add controls there.
20656         * MdiClient.cs: Halfway to scrolling, this implementation is
20657         somewhat broken though, we need to check to make sure other
20658         windows aren't causing scrolling before removing the bars. Also
20659         the bars need to be drawn on top, maybe I can switch implicit
20660         controls to be on top.
20661         * Hwnd.cs: caption_height and tool_caption_height are now
20662         properties of an hwnd, this way they can be set by the driver
20663         based on the type of window they are.  In X11 the window manager
20664         handles the decorations so caption_height is zero unless its an
20665         MDI window.
20666         - Add 3 pixel borders for MDI windows (0xFFFF).
20667         - Get rid of some code duplication, have DefaultClientRectanle
20668         just call GetClientRectangle.
20669         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
20670         Hwnd now.
20671         - Set border styles differently for mdi windows.
20672         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
20673         Hwnd now.
20674         
20675 2005-11-15  Mike Kestner  <mkestner@novell.com>
20676
20677         * Menu.cs: when adding an item to the collection, if item is already 
20678         parented, remove it from the parent.
20679
20680 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
20681
20682         * X11DesktopColors.cs: Added KDE support
20683
20684 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
20685
20686         * XplatUIWin32.cs: 
20687           - Clipboard methods now can translate Rtf format
20688           - No longer removes clipboard contents whenever a new format is added
20689             to allow placing multiple formats on the clipboard
20690         * Clipboard.cs: Clipboard now supports getting a IDataObject and
20691           will place all formats contained in it onto the clipboard. Also
20692           now cleans the clipboard before placing a new object onto it
20693         * RichTextBox.cs:
20694           - Implemented set_Rtf
20695           - Implemented set_SelectedRtf
20696           - Created InsertRTFFromStream() method to allow single code base
20697             for all properties and methods that insert RTF into document
20698           - Removed debug output
20699         * TextControl.cs:
20700           - Fixed Delete(int) to fix up line numbers
20701           - Fixed ReplaceSelection to combine start and end line
20702           - Fixed serious DeleteChars bug that would leave the document tree
20703             broken
20704           - Improved DumpTree with several logic checks to detect broken
20705             document trees
20706           - Removed debug lines
20707           - Fixed Caret.WordForward/WordBack moving code, now always also 
20708             updates caret.tag (fixes crash when word-selecting across tag
20709             boundaries via keyboard)
20710           - Added Insert() method for inserting multiline text into documents
20711           - Fixed DeleteChars() calculation errors that would cause a broken
20712             tag chain with multiple tag lines
20713           - DeleteChars() no longer crashes on multi-tag lines if not all tags
20714           - Split() no longer moves caret if split is at caret location
20715           - ReplaceSelection() now updates the cursor and re-displays it
20716           - ReplaceSelection() now uses new Insert() method to avoid code
20717             duplication
20718           - FormatText() can now handle formatting partial lines
20719         * TextBoxBase.cs:
20720           - Append now uses new TextControl.Insert() method (this avoids 
20721             duplicate code)
20722           - Implemented Ctrl-X (Cut) (
20723           - Implemented Ctrl-C (Copy)
20724           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
20725             regeneration when pasting text; roundtripping Copy&Paste within
20726             edit control still fails due to some calculation bugs in GenerateRTF)
20727           - The Delete key will now remove the current selection if it is visible
20728         * TextBox.cs: Removed debug lines
20729         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
20730           driver to be initialized and can't therefore be done via a static ctor)
20731
20732 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
20733
20734         * TextControl.cs: Added backend code for finding char arrays and strings
20735         * TextBoxBase.cs:
20736           - Added mouse wheel scroll support
20737           - Added support for VScroll and HScroll events
20738         * RichTextBox.cs:
20739           - Implemented all seven Find() variants
20740           - Implemented GetCharFromPosition()
20741           - Implemented GetCharIndexFromPosition()
20742           - Implemented GetLineFromIndex()
20743           - Implemented GetPositionFromCharIndex();
20744           - Implemented SaveFile for PlainText and UnicodeText
20745           - Fixed set_Font, now setting a new font applies that font to
20746             the whole document
20747           - Implemented generic Document to RTF converter
20748           - Implemented SaveFile for RichText format (still missing unicode
20749             conversion for non-ansi chars)
20750           - Implemented get_Rtf
20751           - Implemented get_SelectedRtf
20752
20753 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
20754
20755         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
20756           to allow any captures to be released before triggering OnClick. This
20757           way a click handler may capture the mouse without interference.
20758         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
20759           This way we send them even though X may not allow a grab (if the window
20760           isn't visible, for example)
20761
20762 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
20763
20764         * DataGridViewRowEventArgs.cs: DataGridView implementation
20765         * DataGridViewElement.cs: DataGridView implementation
20766         * DataGridViewComboBoxCell.cs: DataGridView implementation
20767         * DataGridViewDataErrorContexts.cs: DataGridView implementation
20768         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
20769         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
20770         * ImageLayout.cs: DataGridView implementation
20771         * DataGridViewComboBoxColumn.cs: DataGridView implementation
20772         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
20773         * DataGridViewSelectionMode.cs: DataGridView implementation
20774         * IDataGridViewEditingControl.cs: DataGridView implementation
20775         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
20776         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
20777         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
20778         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
20779         * DataGridViewColumnSortMode.cs: DataGridView implementation
20780         * DataGridView.cs: DataGridView implementation
20781         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
20782         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
20783         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
20784         * Padding.cs: DataGridView implementation
20785         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
20786         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
20787         * DataGridViewRowEventHandler.cs: DataGridView implementation
20788         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
20789         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
20790         * DataGridViewButtonCell.cs: DataGridView implementation
20791         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
20792         * DataGridViewEditMode.cs: DataGridView implementation
20793         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
20794         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
20795         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
20796         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
20797         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
20798         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
20799         * DataGridViewCellEventHandler.cs: DataGridView implementation
20800         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
20801         * DataGridViewCellStyleConverter.cs: DataGridView implementation
20802         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
20803         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
20804         * DataGridViewColumnEventArgs.cs: DataGridView implementation
20805         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
20806         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
20807         * QuestionEventArgs.cs: DataGridView implementation
20808         * IDataGridViewEditingCell.cs: DataGridView implementation
20809         * DataGridViewTriState.cs: DataGridView implementation
20810         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
20811         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
20812         * DataGridViewColumnCollection.cs: DataGridView implementation
20813         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
20814         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
20815         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
20816         * DataGridViewColumn.cs: DataGridView implementation
20817         * DataGridViewCellBorderStyle.cs: DataGridView implementation
20818         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
20819         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
20820         * DataGridViewRow.cs: DataGridView implementation
20821         * DataGridViewImageCellLayout.cs: DataGridView implementation
20822         * DataGridViewImageCell.cs: DataGridView implementation
20823         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
20824         * DataGridViewCheckBoxCell.cs: DataGridView implementation
20825         * DataGridViewHeaderCell.cs: DataGridView implementation
20826         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
20827         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
20828         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
20829         * DataGridViewTextBoxColumn.cs: DataGridView implementation
20830         * QuestionEventHandler.cs: DataGridView implementation
20831         * DataGridViewCellStyleScopes.cs: DataGridView implementation
20832         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
20833         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
20834         * DataGridViewCell.cs: DataGridView implementation
20835         * DataGridViewCellEventArgs.cs: DataGridView implementation
20836         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
20837         * DataGridViewCellStyle.cs: DataGridView implementation
20838         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
20839         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
20840         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
20841         * TextFormatFlags.cs: DataGridView implementation
20842         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
20843         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
20844         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
20845         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
20846         * DataGridViewButtonColumn.cs: DataGridView implementation
20847         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
20848         * HandledMouseEventArgs.cs: DataGridView implementation
20849         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
20850         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
20851         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
20852         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
20853         * DataGridViewRowCollection.cs: DataGridView implementation
20854         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
20855         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
20856         * DataGridViewHitTestType.cs: DataGridView implementation
20857         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
20858         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
20859         * DataGridViewColumnEventHandler.cs: DataGridView implementation
20860         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
20861         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
20862         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
20863         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
20864         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
20865         * DataGridViewContentAlignment.cs: DataGridView implementation
20866         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
20867         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
20868         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
20869         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
20870         * DataGridViewPaintParts.cs: DataGridView implementation
20871         * DataGridViewCellCollection.cs: DataGridView implementation
20872         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
20873         * DataGridViewImageColumn.cs: DataGridView implementation
20874         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
20875         * DataGridViewElementStates.cs: DataGridView implementation
20876         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
20877         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
20878         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
20879         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
20880         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
20881         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
20882         * DataGridViewRowHeaderCell.cs: DataGridView implementation
20883         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
20884         * DataGridViewTextBoxCell.cs: DataGridView implementation
20885         * DataGridViewBand.cs: DataGridView implementation
20886         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
20887         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
20888         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
20889         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
20890         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
20891         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
20892         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
20893         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
20894         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
20895         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
20896         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
20897
20898 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
20899
20900         * ThemeWin32Classic.cs: 
20901           - Draw the outside focus rectangle around buttons
20902           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
20903             doesn't use end caps for every dash of a line anymore. This
20904             workaround ignores the forecolor.
20905
20906 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
20907
20908         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
20909           endian safe.
20910
20911 2005-11-07  Jackson Harper  <jackson@ximian.com>
20912
20913         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
20914
20915 2005-11-07  Jackson Harper  <jackson@ximian.com>
20916
20917         * ScrollableControl.cs: Calculate the maximum and change vars
20918         (more) correctly so that scrollbars appear as a sensible size.
20919
20920 2005-11-04  Jackson Harper  <jackson@ximian.com>
20921
20922         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
20923         collection.
20924         * TreeView.cs: When the tree is sorted null out the top_node so
20925         that it is recalculated.
20926         - Use dotted lines instead of dashed lines to match MS better.
20927
20928 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
20929
20930         * ListView.cs: 
20931           - Implements key search for items. Useful when browsing files with FileDialog
20932           - When changing view mode or when clear the items reset scrollbar positions
20933
20934 2005-11-04  Jackson Harper  <jackson@ximian.com>
20935
20936         * CurrencyManager.cs: Implement the MetaDataChanged event, the
20937         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
20938         as to what the method may do as there is no real way of creating a
20939         derived CurrencyManager and calling the method. 
20940
20941 2005-11-03  Jackson Harper  <jackson@ximian.com>
20942
20943         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
20944         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
20945         method which seems to just be used internally to refresh the tabs.
20946
20947 2005-11-03  Jackson Harper  <jackson@ximian.com>
20948
20949         * TabControl.cs: Implement the remove method. Fix some broken
20950         comments.
20951
20952 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
20953
20954         * DateTimePicker.cs:
20955           - Added missing DateTimePickerAccessibleObject class
20956           - Added missing events
20957           - Added OnFontChanged method
20958         * Form.cs: Added missing attributes
20959         * TreeView.cs: Added missing attributes
20960
20961 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
20962
20963         * GridItemCollection.cs: Fix signatures
20964
20965 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
20966
20967         * XplatUI.cs: Updated build rev/date
20968         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
20969           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
20970         * Application.cs: Trigger context-specific ExitThread events
20971
20972 2005-11-03  Jackson Harper  <jackson@ximian.com>
20973
20974         * Menu.cs:
20975         * MainMenu.cs:
20976         * GridTableStylesCollection.cs:
20977         * Timer.cs:
20978         * TabPage.cs:
20979         * HelpProvider.cs:
20980         * StatusBar.cs:
20981         * MonthCalendar.cs: Signature fixes
20982
20983 2005-11-03  Jackson Harper  <jackson@ximian.com>
20984
20985         * TreeNodeCollection.cs: Remove should not be virtual.
20986         * TreeView.cs: Implement the last of the missing methods.
20987
20988 2005-11-03  Jackson Harper  <jackson@ximian.com>
20989
20990         * TreeNodeConverter.cs: Implement to get off my class-status back.
20991
20992 2005-11-03  Jackson Harper  <jackson@ximian.com>
20993
20994         * TreeView.cs: Hookup the bits for drag and drop.
20995         * TreeNode.cs: Don't cache the tree_view or index anymore, now
20996         that nodes can be moved from tree to tree easily this just causes
20997         all sorts of problems.
20998         * TreeNodeCollection: Don't need to give treenodes an index and
20999         treeview anymore when they are added, these are computed on the
21000         fly. Also make sure to remove a node before its added.
21001
21002 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
21003
21004         * TextControl.cs:
21005           - Added CaretSelection enum
21006           - Added comparison methods to Marker struct, makes selection code
21007             more readable
21008           - Added SelectionStart and SelectionEnd as 'moveable' location for
21009             the CaretDirection enum and handler
21010           - Added selection_prev variable to track optimized invalidation for
21011             word and line selection
21012           - Added SelectionVisible property (returns true if there is a valid 
21013             selection)
21014           - Switched CaretHasFocus to only display the caret if there is no
21015             visible selection
21016           - Avoiding StringBuilder.ToString to retrieve a single char, instead
21017             using the direct character index; should be much faster
21018           - Added various conditional debug statements
21019           - Fixed invalidation calculation for selection ranges
21020           - Added ExpandSelection() method to support word and line selection
21021           - Switched SetSelectionToCaret to use new Marker compare overloads
21022           - Added central IsWordSeparator() method to determine word 
21023             separators/whitespace and FindWordSeparator() to streamline common
21024             usage of IsWordSeparator()
21025         * TextBoxBase.cs:
21026           - Removed unneeded grabbed variable, it was just mirroring
21027             Control.Capture
21028           - No longer firing OnTextChanged event when Text setter is called,
21029             since the base will fire the event for us
21030           - Added handling of Ctrl-Up/Down selection
21031           - Added handling of Shift-Cursorkey selection
21032           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
21033             words
21034           - Added handling of Shift and Ctrl-Shift-Home/End selection
21035           - Removed some debug output
21036           - Added handling for single/double/tripple-click to place caret/
21037             select word/select line respectively (Fixes bug #76031)
21038           - Added support for drag expansion of word/line selection
21039         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
21040           current selection
21041
21042 2005-11-02  Jackson Harper  <jackson@ximian.com>
21043
21044         * X11Dnd.cs: If the drag is going to and from a MWF window just
21045         copy the data instead of sending it out through the X Selection
21046         mechanism.
21047
21048 2005-11-02  Jackson Harper  <jackson@ximian.com>
21049
21050         * X11Dnd.cs:
21051         * XplatUIX11.cs: When in a drag we don't want motion notify
21052         messages to get passed on to the other controls. This prevents
21053         mouse move messages from showing up in the drag source.
21054
21055 2005-11-02  Jackson Harper  <jackson@ximian.com>
21056
21057         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
21058         the correct button is release to end a drag.
21059         * XplatUIX11.cs: Make the button state internal so the drag system
21060         can access it.  Dragging needs to know about all button releases,
21061         not just left button.
21062
21063 2005-11-02  Miguel de Icaza  <miguel@novell.com>
21064
21065         * Form.cs (Icon): If the icon is null, reset the icon to the
21066         default value. 
21067
21068         * Cursor.cs: When writing the AND-mask bitmap do not include the
21069         number of colors, but hardcode those to two (black and white),
21070         fixes the loading of color cursors (Paint Dot Net).
21071
21072         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
21073         turn off autoscaling.
21074
21075         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
21076
21077 2005-11-02  Jackson Harper  <jackson@ximian.com>
21078
21079         * X11Dnd.cs: Make sure to send a status message if the pointer
21080         enters a control that can not accept a drop, otherwise the cursor
21081         isn't updated correctly. Also tried to compress the lines of code
21082         a bit.
21083
21084 2005-11-02  Jackson Harper  <jackson@ximian.com>
21085
21086         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
21087         set actions correctly.  This isn't perfect as XDND and win32 have
21088         some differences on how you allow actions. I'll clear this up by
21089         adding a path for drag from MWF to MWF windows.
21090         * XplatUIX11.cs: Hook into the dnd system.
21091
21092 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
21093
21094         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
21095         previously shown but they are no longer need it. Very obvious when 
21096         browsing files with FileDialog.
21097
21098 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
21099
21100         * Control.cs: We always need to call OnPaintBackground. We pretty much
21101           ignore AllPaintingInWmPaint and always do the painting there, whether 
21102           it's set or not, since we always ignore the WM_ERASEBKGND message 
21103           (which we don't generate on X11). This fixes #76616.
21104         * Panel.cs: Removed unneeded background painting. This happens properly
21105           in Control.cs already
21106
21107 2005-10-31  Mike Kestner  <mkestner@novell.com>
21108
21109         * Menu.cs: Add items to collection before setting their index.
21110         * MenuItem.cs : add range checking with ArgumentException like MS.
21111         [Fixes #76510]
21112
21113 2005-10-31  Jackson Harper  <jackson@ximian.com>
21114
21115         * ListBox.cs: Invalidate if the area is visible at all not just
21116         contained in the visible rect. Fixes unselection of semi visible
21117         items.
21118
21119 2005-10-31  Jackson Harper  <jackson@ximian.com>
21120
21121         * Control.cs: Consistently name the dnd methods. Make them
21122         internal so we can override them to match some MS behavoir
21123         internally.
21124         * Win32DnD.cs: Use the new consistent names.
21125
21126 2005-10-31  Jackson Harper  <jackson@ximian.com>
21127
21128         * TreeView.cs: Don't draw the selected node when we lose focus.
21129
21130 2005-10-31  Jackson Harper  <jackson@ximian.com>
21131
21132         * X11Dnd.cs: We still need to reset the state even though a full
21133         reset isn't being done, otherwise status's still get sent all over
21134         the place.
21135
21136 2005-10-31  Jackson Harper  <jackson@ximian.com>
21137
21138         * Control.cs: Make the dnd_aware flag internal so the dnd
21139         subsystem can check it. Catch exceptions thrown in dnd handlers to
21140         match MS behavoir.
21141         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
21142         * X11Dnd.cs: Handle null data in the converters. Set the XDND
21143         version when sending a XdndEnter. Use the control/hwnd dnd_aware
21144         flags to reduce the number of dnd enters/status's sent.
21145
21146 2005-10-31  Jackson Harper  <jackson@ximian.com>
21147
21148         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
21149
21150 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
21151
21152         * PictureBox.cs: Fixes 76512
21153
21154 2005-10-28  Jackson Harper  <jackson@ximian.com>
21155
21156         * X11Dnd.cs: Early implementation to support winforms being a drag
21157         source for data on X11. Also restructured the converters so they
21158         can go both ways now.
21159         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
21160         
21161 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
21162
21163         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
21164           clipboard requests
21165
21166 2005-10-27  Jackson Harper  <jackson@ximian.com>
21167
21168         * TreeNode.cs: Implement serialization so my DnD examples will work.
21169
21170 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
21171
21172         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
21173           TreeView.cs: Don't dispose objects that are not owned.
21174           
21175 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
21176
21177         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
21178           should retrieve the current cursor and report that, but XplatUI
21179           doesn't (yet) have an interface for that (and I'm not sure I even
21180           can, on X11)
21181         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
21182           until any message loop processing is done (and the WM_SETCURSOR
21183           replaces the cursor to the proper one)
21184         * XplatUIX11.cs: 
21185           - Fixed override behaviour, we can't set the cursor globally on X11, 
21186             just for our windows.
21187           - Invalidating the System.Drawing X11 display handle when we are
21188             shutting down
21189         * Control.cs: Fix to make csc happy
21190
21191 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
21192
21193         * TextBoxBase.cs: 
21194           - get_Text: Add last line (without trailing newline) to returned
21195             value (Fixes 76212)
21196           - get_TextLength: Count last line in returned length
21197           - ToString: Call Text property instead of duplicating code
21198
21199 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
21200
21201         * ImageList.cs: Dispose ImageAttributes objects.
21202
21203 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
21204
21205         * ImageList.cs: Use attribute constructors with less arguments where
21206           possible.
21207
21208 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
21209
21210         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
21211           Use typeof instead of strings when assembly is referenced. Added
21212           some more comments.
21213
21214 2005-10-21  Jackson Harper  <jackson@ximian.com>
21215
21216         * ListView.cs: Raise a double click event. Also tried to somewhat
21217         fix when the selectedindexchanged event is raised. Its still
21218         broken though.
21219
21220 2005-10-21  Jackson Harper  <jackson@ximian.com>
21221
21222         * TreeView.cs: New method to invalidate the plus minus area of a
21223         node without invalidating the whole node (maybe this can be used
21224         in some more places).
21225         * TreeNodeCollection.cs: When adding to an empty node we need to
21226         invalidate its plus minus area so the little block shows up.
21227         
21228 2005-10-21  Jackson Harper  <jackson@ximian.com>
21229
21230         * TreeView.cs: Make sure that when we invalidate a node the bounds
21231         are big enough to cover the selected box and the focus
21232         rectangle. Use a different colour for the lines connecting nodes
21233         so they show up with all themes.
21234
21235 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
21236
21237         * NativeWindow.cs: Don't call anything that could call into the driver,
21238           we might be on a different thread.
21239
21240 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
21241
21242         * Control.cs(Dispose): Since Dispose might run on a different thread,
21243           make sure that we call methods that could call into the driver via
21244           invoke, to avoid thread issues
21245
21246 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
21247
21248         * XplatUI.cs: Removed finalizer
21249         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
21250           not allowing to be called on the finalizer thread.
21251
21252 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
21253
21254         * ImageList.cs:
21255           - Reverted r51889 and r51891.
21256           - Added ImageListItem class that stores unmodified image items and image
21257             properties required to create list images until handle is created.
21258           - Added AddItem and moved image creation logic to AddItemInternal.
21259           - Added CreateHandle method that creates images based on unmodified items.
21260           - Added DestroyHandle that changes state to store unmodified items.
21261           - Add and AddStrip methods no more create handle.
21262           - ReduceColorDepth has no return value.
21263           - Dispose destroys handle.
21264           - Modified other methods to reflect the above changes.
21265           - Implemented key support.
21266           - Added profile 2.0 members and attributes.
21267           - Added private Reset and ShouldSerialize methods that provide the same
21268             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
21269             them as they are private.
21270           - Added some more comments about implementation details.
21271
21272 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
21273
21274         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
21275
21276 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
21277
21278         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
21279
21280 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
21281
21282         * DataGridDrawingLogic.cs: Fixes column hit calcultation
21283         * DataGridColumnStyle.cs: Remove debug message
21284
21285 2005-10-20  Jackson Harper  <jackson@ximian.com>
21286
21287         * TreeView.cs: We can always get input keys regardless of whether
21288         or not editing is enabled. They are used for navigation.
21289
21290 2005-10-20  Jackson Harper  <jackson@ximian.com>
21291
21292         * TreeNode.cs: Use the viewport rect for determining if a node
21293         needs to be moved for visibility. Don't use Begin/End edit. This
21294         calls a full refresh when its done.
21295         * TreeView.cs: New SetBottom works correctly.  Make the viewport
21296         rect property internal so the treenodes can see it. When clicking
21297         on a node we need to ensure that its visible because it might just
21298         be partly visible when clicked.
21299
21300 2005-10-20  Jackson Harper  <jackson@ximian.com>
21301
21302         * TreeNodeCollection.cs: Remove debug code.
21303
21304 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
21305
21306         * Datagrid.cs: Implements column sorting in Datagrid
21307         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
21308
21309 2005-10-20  Jackson Harper  <jackson@ximian.com>
21310
21311         * TreeNodeCollection.cs: Remove items properly. Update the correct
21312         area after removing them.
21313
21314 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
21315
21316         * Datagrid.cs: Should not call base.OnPaintBackground
21317
21318 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
21319
21320         * XplatUIX11.cs (GetMessage):
21321           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
21322             window instead of client window
21323           - Now properly calculates NC_xBUTTONUP message coordinates
21324           - ScreenToMenu now properly calculates it's coordinates of whole 
21325             window, since menus are in the whole window, not in the client
21326             window
21327           - Added WholeToScreen coordinate translation method
21328
21329 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
21330
21331         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
21332           want to return a message, loop back to the beginning of the function
21333           and grab the next real message to process instead.
21334
21335 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
21336
21337         * Splitter.cs: Properly set limits if no filler control is used
21338
21339 2005-10-19  Jackson Harper  <jackson@ximian.com>
21340
21341         * ColorDialog.cs: Don't show the help button if it is not enabled
21342         instead of disabling it (this is what MS does). Don't create the
21343         panel until the dialog is run, otherwise the vars (such as
21344         ShowHelp) are not set yet.
21345
21346 2005-10-19  Jackson Harper  <jackson@ximian.com>
21347
21348         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
21349         are reduced when adding nodes.
21350         * TreeNode.cs:
21351         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
21352         tree.
21353         
21354 2005-10-19  Jackson Harper  <jackson@ximian.com>
21355
21356         * FolderBrowserDialog.cs: End editing our treeview so the window
21357         actually gets refreshed.
21358
21359 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
21360
21361         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
21362           Obsoleted handling of WM_ERASEBKGND, now always draws our background
21363           inside of WM_PAINT
21364
21365 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
21366
21367         * MenuAPI.cs: Returns after Hidding window
21368         * XplatUIX11.cs: Added TODO found while debugging menu issues
21369
21370 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
21371
21372         * XplatUIX11.cs: Do not re-map the whole window when it's size
21373           becomes non-zero unless it's supposed to be actually visible
21374
21375 2005-10-18  Jackson Harper  <jackson@ximian.com>
21376
21377         * TreeView.cs: We don't need to keep a count anymore.
21378         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
21379         use the Grow method.
21380
21381 2005-10-18  Jackson Harper  <jackson@ximian.com>
21382
21383         * TreeNodeCollection.cs: Insert is not supported on arrays, so
21384         implement it manually here.
21385
21386 2005-10-18  Jackson Harper  <jackson@ximian.com>
21387
21388         * ImageList.cs: Dont kill the list when the colour depth is
21389         changed, just change the colour depth of all the images.
21390         - Same goes for setting the image size. Just resize them all
21391         instead of killing the list softly.
21392
21393 2005-10-18  Jackson Harper  <jackson@ximian.com>
21394
21395         * Control.cs: Don't invalidate empty rectangles.
21396
21397 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
21398
21399         * ListViewItem.cs:
21400           - Adds checked item to the Checked/Item lists (where empty before)
21401           - Do not add items to the Selected lists if they are already present
21402         * ListView.cs:
21403           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
21404           - When deleting items make sure that we delete them for the Selected
21405           and Checked list also.
21406
21407 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
21408
21409         * Label.cs: Dispose objects no longer used
21410         * ThemeWin32Classic.cs: Dispose objects no longer used
21411
21412 2005-10-18  Jackson Harper  <jackson@ximian.com>
21413
21414         * TabControl.cs: Don't refresh the whole control when the tabs are
21415         scrolled, we just need to refresh the tab area.
21416
21417 2005-10-17  Jackson Harper  <jackson@ximian.com>
21418
21419         * XplatUIX11.cs: Compress code a little bit. Only calculate the
21420         after handle when we need it.
21421
21422 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
21423
21424         * Control.cs: When the parent size changes, recalculate anchor 
21425           positions. Partial fix for #76462
21426
21427 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
21428
21429         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
21430           drawn. Fixes #76462
21431
21432 2005-10-17  Jackson Harper  <jackson@ximian.com>
21433
21434         * MonthCalendar.cs: Don't create the numeric up down until our
21435         handle is created. Otherwise our handle is created in the
21436         constructor and we don't know if we are a WS_CHILD or WS_POPUP
21437         yet.
21438
21439 2005-10-17  Jackson Harper  <jackson@ximian.com>
21440
21441         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
21442         correctly.
21443
21444 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
21445         * TreeNode.cs : small logical fix (was using local var instead of field)
21446         
21447 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
21448
21449         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
21450
21451 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
21452
21453         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
21454
21455 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
21456
21457         * Control.cs: 
21458           - Re-implemented anchoring code. My first version was really broken.
21459             This fixes bug #76033. Unlike the previous implementation we will
21460             no longer have round errors since all numbers are calculated from
21461             scratch every time. Removed various anchor-related obsolete vars.
21462           - InitLayout no longer causes layout event firing and layout to be 
21463             performed
21464
21465 2005-10-16  Jackson Harper  <jackson@ximian.com>
21466
21467         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
21468         which was broken).
21469
21470 2005-10-16  Jackson Harper  <jackson@ximian.com>
21471
21472         * TabControl.cs: Remove debug code.
21473
21474 2005-10-16  Jackson Harper  <jackson@ximian.com>
21475
21476         * XEventQueue.cs: Increase the default queue size (very simple
21477         apps needed to grow the queue).
21478         * Hwnd.cs: No finalizer so we don't need to suppress
21479         finalization. Compute the invalid area manually so a new rectangle
21480         does not newto be created.
21481         * ScrollableControl.cs: Don't set any params (otherwise visibility
21482         isn't set correctly).
21483         * MdiChildContext.cs: New constructor takes the mdi parent so it
21484         doesn't have to be computed and avoids a crash on windows. Draw
21485         the window icon properly, and allow the text to be seen.
21486         * Form.cs: Use new MdiChildContext constructor. Make sure the
21487         child context isn't null in wndproc.
21488         * TabControl.cs: Don't set focus, this is muddling keyboard
21489         behavoir. Expand the tab rows when a window size increase will
21490         allow extra tabs to be seen. Don't allow tabs smaller than the
21491         width of a window to be scrolled out of view.
21492         * TreeNode.cs:
21493         * TreeView.cs: Use measure string to calculate a nodes width, the
21494         width is cached and only updated when the text or the font is
21495         changed. Don't check for expand/collapse clicks on the first level
21496         nodes if root lines are disabled.
21497         
21498 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
21499
21500         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
21501
21502 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
21503
21504         * DataGridBoolColumn.cs: fixes warning
21505
21506 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
21507
21508         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
21509         to match more to match more precisely the MS Net behavior
21510
21511 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
21512
21513         * Hwnd.cs: Added field to track if window is mapped
21514         * XplatUIX11.cs: 
21515           - Unmap windows if they become 0-size, re-map when 
21516             they are >0 again; fixes #76035
21517           - Re-set our error handler after initializing X11Desktop
21518             to override any error handlers Gtk or whatever was called
21519             may have set.
21520
21521 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
21522
21523         * CheckedListBox.cs: Removed unused vars
21524         * ListView.cs: Fixed signatures
21525         * RichTextBox.cs: Removed unused vars
21526         * TextBoxBase.cs: Removed unused vars
21527         * XplatUIWin32.cs: Removed unused vars
21528         * XplatUIX11.cs: Removed unused vars
21529         * XplatUI.cs: Updated version and date to latest published
21530
21531 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
21532
21533         * Cursor.cs: Added private .ctor to work around a bug in
21534           resourceset (Thanks to Geoff Norton for the help on this)
21535         * SplitterEventArgs.cs: Made fields accessible so we don't
21536           waste boatloads of objects and can reuse the same one
21537           in Splitter
21538         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
21539           any captions and borders when generating screen coordinates
21540         * Splitter.cs: Reimplemented control, now fully complete, uses
21541           rubberband drawing, supports and obeys all properties, has
21542           proper cursors
21543
21544 2005-10-13  Miguel de Icaza  <miguel@novell.com>
21545
21546         * Form.cs (Form): Setup default values for autoscale and
21547         autoscale_base_size;  Make these instance variables, not static
21548         variables. 
21549
21550         (OnLoad): on the first load, adjust the size of the form.
21551
21552 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
21553
21554         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
21555           width argument to DrawReversibleRectangle()
21556         * XplatUIWin32.cs, XplatUIX11.cs: 
21557           - Implemented width for DrawReversibleRectangle()
21558           - Added logic to DrawReversibleRectangle that recognizes a zero
21559             width or height and only draws a line in that situation
21560         
21561 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
21562
21563         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
21564         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
21565         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
21566           method (it uses our FosterParent window to get a graphics context)
21567
21568 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
21569
21570         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
21571           and SetWindowBackground methods
21572         * Control.cs:
21573           - Setting proper ControlStyles
21574           - We no longer call XplatUI.SetWindowBackground and XplatUI.
21575             EraseWindowBackground, instead we draw the window background
21576             ourselves in PaintControlBackground. This behaviour is
21577             required to match MS, where, when OnPaintBackground is not
21578             called, the background is not drawn.
21579           - Removed unneeded Refresh() in set_Text
21580         * Hwnd.cs: Dropped the ErasePending support. No longer needed
21581         * XplatUIX11.cs:
21582           - Created DeriveStyles method to translate from CreateParams to
21583             FormBorderStyle and TitleStyle, also handles BorderStyle (which
21584             matches FormBorderStyle enum values)
21585           - Consolidated SetHwndStyles and CalculateWindowRect border/title
21586             style calculations into single DeriveStyles method
21587           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
21588             from redrawing the whole window on any resize or expose.
21589           - Fixed CreateWindow usage of SetWindowValuemask. Before not
21590             all styles were applied to our whole/client window appropriately
21591           - Removed EraseWindowBackground() and SetWindowBackground() methods
21592           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
21593             no longer clear/redraw the background through X
21594           - Removed handling of erase_pending bit, we have no use for it (or
21595             so it seems)
21596         * XplatUIOSX.cs:
21597           - Removed generation and handling of WM_ERASEBKGND message
21598           - Removed EraseWindowBackground() and SetWindowBackground() methods
21599           - Removed handling of hwnd.ErasePending flag
21600         * XplatUIWin32.cs:
21601           - Removed EraseWindowBackground() and SetWindowBackground() methods
21602           - We no longer call EraseWindowBackground on PaintEventStart, we 
21603             ignore the fErase flag, erasing is handled in Control in the
21604             background handler
21605         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
21606           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
21607           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
21608           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
21609           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
21610           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
21611           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
21612
21613 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
21614
21615         * PropertyGrids.cs: Get sub properties
21616         * PropertyGridView.cs: Fix drawing code
21617
21618 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
21619
21620         * ListBox.cs: Fixes 76383
21621
21622 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
21623
21624         * DataGridTextBoxColumn.cs: Sets location and size before attachment
21625         * ThemeWin32Classic.cs: Fixes border drawing and calculations
21626         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
21627
21628
21629 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
21630
21631         * ComboBox.cs: Fixes border drawing
21632
21633 2005-10-10  Miguel de Icaza  <miguel@novell.com>
21634
21635         * MimeIcon.cs: Ignore errors if the file can not be read.
21636
21637 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
21638
21639         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
21640          - Fixed border calculations
21641          - Fixed horizontal scrolling in single column listboxes
21642          - Fixed drawing issues
21643
21644 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
21645
21646         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
21647           FormBorderStyle enum
21648         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
21649           code to determine FormBorderStyles from CreateParams
21650         * Form.cs:
21651           - Fixed bug where we'd set the wrong window styles if we were
21652             not creating an MDI window
21653           - Added call to XplatUI.SetBorderStyle when form borders are set
21654         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
21655         * Hwnd.cs:
21656           - Removed obsolete edge style
21657           - Switched from BorderStyle to FormBorderStyle
21658         
21659 2005-10-10  Jackson Harper  <jackson@ximian.com>
21660
21661         * Form.cs: Use the property to get the window handle instead of
21662         accessing it directly. Prevents a null reference exception.
21663
21664 2005-10-10  Jackson Harper  <jackson@ximian.com>
21665
21666         * TreeView.cs: Don't adjust the rect given to DrawString now that
21667         our libgdiplus draws correctly.
21668
21669 2005-10-08  Jackson Harper  <jackson@ximian.com>
21670
21671         * TreeView.cs: Don't try to find the clicked on node if there are
21672         no nodes in the tree.
21673
21674 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
21675
21676         * RichTextBox.cs:
21677
21678           restore
21679
21680 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
21681
21682         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
21683           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
21684           ErrorProvider.cs:
21685           Use ResPool for brushes and dispose System.Drawing objects that
21686           are not used anymore.
21687
21688 2005-10-07  Jackson Harper  <jackson@ximian.com>
21689
21690         * MdiChildContext.cs: Use the new borders instead of drawing them
21691         ourselves.
21692
21693 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
21694
21695         * Calling UpdateBounds after changing the window's BorderStyle 
21696         since the style can change the ClientSize
21697
21698 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21699
21700         * Control.cs: Made PaintControlBackground virtual
21701         * Panel.cs: Overriding PaintControlBackground instead of using paint
21702           event; paint event method was interfering with 'real' users of the
21703           event.
21704
21705 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
21706
21707         * ThemeWin32Classic.cs: remove border drawing since it is handled
21708         by the base control class now and was causing double border drawing.
21709
21710 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21711
21712         * Panel.cs: Redraw our background on paint. Not a pretty solution,
21713           but it does seem to match MS behaviour. This fixes bug #75324
21714
21715 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21716
21717         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
21718           somewhat hackish looking
21719
21720 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
21721
21722         * TextBoxBase.cs:
21723           - We now accept Enter even if AcceptEnter is false, if the containing
21724             form does not have an AcceptButton configured (fixes bug #76355)
21725           - Calculations are now fixed to no longer use Width/Height, but
21726             ClientSize.Width/Height, since we now support borders (this was
21727             a result of fixing borders and therefore bug #76166)
21728           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
21729             true (fixes bug #76354)
21730         
21731 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21732
21733         * Control.cs: 
21734           - Defaulting BorderStyle and setting it in XplatUI when our window 
21735             is created
21736           - Added enum check to InternalBorderStyle setter
21737         * XplatUIX11.cs: 
21738           - Added drawing of window borders
21739           - Now properly calculates WM decorations offset for toplevel 
21740             windows (fixes bug #74763)
21741         * XplatUIWin32.cs: 
21742           - Implemented BorderStyles for windows (we're letting win32 draw 
21743             the border for us)
21744           - Fixed the signature for SetWindowLong
21745         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
21746           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
21747           setting borders
21748         * UpDownBase.cs: Remove drawing of borders, this is handled by
21749           the driver, outside the client area
21750         * ListView.cs: Removed bogus border calculations. The control should
21751           be oblivious to borders, since those are not part of the client
21752           area. 
21753         * X11DesktopColors.cs: Commented out (currently) unneeded variables
21754         * ThemeWin32Classic.cs: Removed border calculations from ListView 
21755           drawing code
21756
21757 2005-10-06  Jackson Harper  <jackson@ximian.com>
21758
21759         * MdiChildContext.cs: Clear out the old virtual position remove
21760         all the unneeded calls to CreateGraphics.
21761
21762 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
21763
21764         * TextControl.cs: Use proper color for highlighted text; fixes #76350
21765
21766 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
21767
21768         * Form.cs: 
21769           - Added loading and setting of our new default icon
21770           - Only set icon if window is already created
21771
21772 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
21773
21774         * Label.cs:
21775           - Do not explicitly set the foreground and background colors, to
21776             allow inheriting from parents (fixes #76302)
21777           - Use Control's InternalBorderStyle property to deal with borders
21778
21779 2005-10-06  Jackson Harper  <jackson@ximian.com>
21780
21781         * MdiChildContext.cs: Use the new xplatui function to draw a
21782         reversible rect.
21783
21784 2005-10-06  Jackson Harper  <jackson@ximian.com>
21785
21786         * Form.cs: Add the parent before creating the child context cause
21787         we need the parent when setting up the child.
21788
21789 2005-10-06  Jackson Harper  <jackson@ximian.com>
21790
21791         * FolderBrowserDialog.cs: redo the tree population code so a
21792         second thread isn't used. Should be a lot faster and more stable
21793         now.
21794
21795 2005-10-05  Jackson Harper  <jackson@ximian.com>
21796
21797         * TreeView.cs: There are no expand/collapse boxes if the node has
21798         no children.
21799
21800 2005-10-05  Jackson Harper  <jackson@ximian.com>
21801
21802         * X11DesktopColors.cs: Get menu colours for the gtk theme.
21803
21804 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
21805
21806         * FileDialog.cs: Fix InitialDirectory
21807
21808 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
21809
21810         * ComboBox.cs:
21811                 - Fixes changing between styles
21812                 - Fixes simple mode
21813                 - Fixes last item crashing when navigating with keyboard
21814
21815 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
21816
21817         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
21818
21819 2005-10-05  Jackson Harper  <jackson@ximian.com>
21820
21821         * TreeView.cs: If updating the root node do a full refresh.
21822         * TreeNode.cs: The root node should be expanded by default. Also
21823         added a utility prop to tell if we are the root node.
21824         * TreeNodeCollection.cs: Only refresh if the node we are being
21825         added to is expanded. Also added a comment on a potential
21826         optimization.
21827         
21828 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
21829
21830         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
21831           in dispose method. Fixes #76330
21832
21833 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
21834
21835         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
21836
21837                 - Implements vertical and horizontal scrolling using XplatUI
21838                 - Fixes keyboard navagation
21839                 - Fixes EnsureVisible
21840                 - Drawing fixes
21841                 - Handles and draws focus properly
21842
21843
21844 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
21845
21846         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
21847           Create handle. NET_2_0: Destroy handle when value is null.
21848
21849 2005-10-03  Jackson Harper  <jackson@ximian.com>
21850
21851         * ScrollBar.cs: My last scrollbar patch was broken. This is a
21852         revert and a new patch to prevent the thumb from refreshing so
21853         much.
21854
21855 2005-10-02  Jackson Harper  <jackson@ximian.com>
21856
21857         * ScrollBar.cs: Don't update position if it hasn't actually
21858         changed. This occurs when you hold down the increment/decrement
21859         buttons and the thumb gets to the max/min.
21860
21861 2005-10-01  Jackson Harper  <jackson@ximian.com>
21862
21863         * Form.cs:
21864         * MdiChildContext.cs:
21865         * MdiClient.cs: Implement ActiveMdiChild in Form.
21866
21867 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
21868
21869         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
21870
21871 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
21872
21873         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
21874           be found
21875
21876 2005-09-30  Jackson Harper  <jackson@ximian.com>
21877
21878         * ListBox.cs: Don't do a full refresh unless some data has
21879         actually changed.
21880
21881 2005-09-30  Jackson Harper  <jackson@ximian.com>
21882
21883         * TreeView.cs: Make sure that the checkboxes size is factored in
21884         even when not visible.
21885
21886 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
21887
21888         * FileDialog.cs: Fix Jordi's build break
21889
21890 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
21891
21892         * FileDialog.cs: 
21893                 - Use standard the Windows colours for the combobox as espected
21894                 - Dispose objects that use resouces when no longer need them
21895
21896 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
21897
21898         * X11DesktopColors.cs: Initial incomplete implementation
21899         * XplatUIX11.cs: Added call to initialize X11DesktopColors
21900
21901 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
21902
21903         * Theme.cs: 
21904           - Switched Theme color names to match the names defined in 
21905             System.Drawing.KnownColors. Life's hard enough, no need to make 
21906             it harder.
21907           - Added setters to all theme color properties so themes can set
21908             their color schemes. The setters also propagate the color changes
21909             to System.Drawing.KnownColors via reflection
21910         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
21911           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
21912           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
21913           use the new, more logical theme color names
21914         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
21915           post-NT colors
21916         * ThemeWin32Classic.cs:
21917           - Removed code to set the old classic Windows colors. Instead it
21918             now relies on the colors returned by System.Drawing.KnownColors
21919             which will be either modern static colors (Unix) or colors
21920             read from the user's configuration (Win32)
21921           - Updated to use the new, more logical theme color names
21922           - Switched DataGrid drawing code to use only Theme colors instead of
21923             a mix of System.Drawing.KnownColors and Theme colors
21924           - DrawFrameControl(): Removed code that fills the button area, the
21925             fill would overwrite any previous fill done by a control. This
21926             fixes bug #75338 
21927           - Added DrawReversibleRectangle() stub
21928         * ScrollableControl.cs: Set visible state to false when scrollbars
21929           are removed (pdn fix)
21930         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
21931           DrawReversibleRectangle() method to allow drawing primitive 
21932           'rubber bands'
21933         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
21934
21935 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
21936
21937         * ImageList.cs: Add(Icon): Create handle.
21938
21939 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
21940
21941         * ListView.cs:
21942         * ThemeWin32Classic.cs:
21943                 - Fixes detail mode
21944                 - Sets clippings
21945                 - Issues with drawing
21946
21947 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
21948
21949         * ImageList.cs: Moved RecreateHandle back to ImageList as event
21950           source has to be the ImageList.
21951
21952 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
21953
21954         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
21955
21956 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
21957
21958         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
21959
21960 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
21961
21962         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
21963
21964 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
21965         * GridItem.cs: Fixed TODOs
21966         * GridItemCollection.cs: Added ICollection interface
21967
21968 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
21969
21970         * ImageList.cs: Resize icons when needed.
21971
21972 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
21973
21974         * ListViewItem.cs
21975                 - Fixes GetBounds and returns on screen rects
21976         * ListView.cs:
21977                 - Fixes vertical and horzintal scrolling of items
21978         * ThemeWin32Classic.cs:
21979                 - Fixes drawing
21980                 
21981 2005-09-29  Raja R Harinath  <harinath@gmail.com>
21982
21983         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
21984
21985 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
21986
21987         * ImageList.cs: Added comments about handle creation. Moved Handle,
21988           HandleCreated and OnRecreateHandle implementations to ImageCollection.
21989           Handle is created in Add methods.
21990
21991 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
21992          
21993         * DataGridDrawingLogic.cs: 
21994                 - Takes rows into account on Colum calculations
21995                 - Returns the column when clickig
21996         * DataGrid.cs:
21997                 - Fixes default HitTestInfo values
21998                 - Fixes HitTestInfo.ToString
21999                 - Fixes ResetBackColor          
22000         
22001 2005-09-28  Jackson Harper  <jackson@ximian.com>
22002
22003         * MdiChildContext.cs: Obey rules for fixed sized windows (no
22004         sizing or cursor changes). Also added some temp code to draw the
22005         titlebars text (Makes dev a little easier).
22006
22007 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
22008
22009         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
22010
22011 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
22012          
22013         * ListBox.cs: Fixes bug 76253
22014
22015 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
22016
22017         * ImageList.cs: Added comments about the current implementation. Added
22018           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
22019           Format32bppArgb to preserve transparency and can use Graphics.FromImage
22020           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
22021           with Bitmap.LockBits for better performance. Revised the whole file to
22022           match MS.NET behaviour and provide better performance. Non-public
22023           interface members are calling public members even when they throw
22024           NotSupportedException for better maintainability. Moved ColorDepth,
22025           ImageSize, ImageStream and TransparentColor implementations to
22026           ImageCollection for better performance as these properties are not used
22027           by ImageList.
22028         * ImageListStreamer.cs: Added a new internal constructor that takes an
22029           ImageList.ImageCollection and serializes Images based on
22030           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
22031           match ImageList property name.
22032
22033 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
22034
22035         * ListBox.cs: Fixes IndexFromPoint for last item
22036
22037 2005-09-27  Jackson Harper  <jackson@ximian.com>
22038
22039         * Form.cs: Set the position of new mdi children correctly.
22040
22041 2005-09-27  Jackson Harper  <jackson@ximian.com>
22042
22043         * MdiClient.cs: New mdi children need to be added to the back of
22044         the controls collection so the zorder is set correctly. Also add a
22045         count of all the child windows that have been created.
22046
22047 2005-09-27  Jackson Harper  <jackson@ximian.com>
22048
22049         * Form.cs (CreateParams): Setup MDI forms correctly.
22050
22051 2005-09-27  Jackson Harper  <jackson@ximian.com>
22052
22053         * MdiChildContext.cs:
22054         * MonthCalendar.cs:
22055         * UpDownBase.cs:
22056         * ListBox.cs:
22057         * ListView.cs:
22058         * TextBoxBase.cs:
22059         * TreeView.cs:
22060         * ScrollableControl.cs:
22061         * ComboBox.cs: Add implicit controls using the new implict control
22062         functionality in ControlCollection. Also try to block multiple
22063         control add in a suspend/resume layout to save some cycles.
22064         
22065 2005-09-27  Jackson Harper  <jackson@ximian.com>
22066
22067         * Control.cs: Add functionality to the controls collection to add
22068         'implicit controls' these are controls that are created by the
22069         containing control but should not be exposed to the user. Such as
22070         scrollbars in the treeview.
22071         * Form.cs: The list var of the ControlsCollection is no longer
22072         available because of the potential of implicit controls getting
22073         ignored by someone accessing the list directly.
22074
22075 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
22076
22077         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
22078           loose it's parent. (Fixed bug introduced in r49103 when we added
22079           setting the child parent to null on Remove)
22080
22081 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
22082
22083         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
22084         * Splitter.cs: Added missing attributes for BorderStyle property.
22085         * TextBoxBase.cs: Marked Calculate* methods internal.
22086         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
22087         MS.NET.
22088
22089 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
22090          
22091         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
22092
22093 2005-09-25  Jackson Harper  <jackson@ximian.com>
22094
22095         * TreeView.cs: Update the node bounds correctly regardless of
22096         whether the node is visible.
22097
22098 2005-09-25  Jackson Harper  <jackson@ximian.com>
22099
22100         * ImageList.cs: Don't dispose the image after it is added to the
22101         image list. Only reformat images that need to be resized.
22102
22103 2005-09-25  Jackson Harper  <jackson@ximian.com>
22104
22105         * ImageList.cs: Don't set the format when changing the image.
22106
22107 2005-09-25  Jackson Harper  <jackson@ximian.com>
22108
22109         * TreeView.cs: We can't just assume the node has a font. Use the
22110         treeviews font if no node font is available.
22111
22112 2005-09-25  Jackson Harper  <jackson@ximian.com>
22113
22114         * TreeView.cs: Allow the scrollbars to be reset with negative
22115         values.
22116         - Don't add scrollbars to negative sized windows.
22117
22118 2005-09-23  Jackson Harper  <jackson@ximian.com>
22119
22120         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
22121         old Mono.Posix. Also remove some stray code that shouldn't have
22122         been committed.
22123
22124 2005-09-23  Jackson Harper  <jackson@ximian.com>
22125
22126         * TreeView.cs: Attempt at proper sizing of the horizontal
22127         scrollbar. Also don't resize the scrollbars unless they are
22128         visible.
22129
22130 2005-09-23  Jackson Harper  <jackson@ximian.com>
22131
22132         * TreeView.cs: We don't need to expand the invalid area when the
22133         selection changes, as this is all drawn in the node's bounding
22134         box. The area needs to be expanded (previous typo was contracting
22135         it) when the focus rect moves.
22136
22137 2005-09-23  Jackson Harper  <jackson@ximian.com>
22138
22139         * TreeView.cs: Display the selection box under the correct
22140         circumstances. We were rendering white text with no selection box
22141         before.
22142
22143 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
22144
22145         * TextControl.cs(Split): Now updates selection start/end if it points 
22146           into a line that's being split. Fixes a FIXME and bug #75258
22147
22148 2005-09-23  Jackson Harper  <jackson@ximian.com>
22149
22150         * Binding.cs:
22151         * ListControl.cs: Don't use the path when retrieving binding
22152         managers from the binding context. My bat sense tells me that the
22153         path is only used on insertion.
22154
22155 2005-09-22  Jackson Harper  <jackson@ximian.com>
22156
22157         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
22158
22159 2005-09-22  Jackson Harper  <jackson@ximian.com>
22160
22161         * Splitter.cs: There are special cursors used for splitting.
22162         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
22163
22164 2005-09-22  Jackson Harper  <jackson@ximian.com>
22165
22166         * Splitter.cs: Change the cursor appropriately when the splitter
22167         is moused over, so the user actually knows there is a splitter
22168         there.
22169
22170 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
22171
22172        * Label.cs : Fix ToString method to give same output as MS.NET
22173
22174 2005-09-22  Jackson Harper  <jackson@ximian.com>
22175
22176         * TreeView.cs: Create the scrollbars when the handle is created
22177         and add them right away, just make them invisble. Also account for
22178         the window being shrunk vertically to the point that the vert
22179         scrollbar needs to be added.
22180         - Remove some 0.5 adjustments to get around anti aliasing issues.
22181         
22182 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
22183          
22184         * MainMenu.cs: Fixes default value
22185         * MenuItem.cs: Fixes default value
22186
22187 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
22188
22189         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
22190
22191 2005-09-21  Jackson Harper  <jackson@ximian.com>
22192
22193         * Control.cs: Don't try to set the border style on the window if
22194         it hasn't been created. When the window is created the border
22195         style will be used.
22196
22197 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
22198
22199         * Control.cs (Update): Don't call XplatUI if we don't have a
22200           window handle yet
22201
22202 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
22203
22204         * ContainerControl.cs: Instead of throwing an exception, print
22205           a one-time warning about Validate not being implemented
22206         * XplatUIWin32.cs: Removed debug output
22207
22208 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
22209
22210         * Control.cs: Only set XplatUI background if we expect the windowing
22211           system to handle the background. This stops controls that draw their
22212           own background from flickering
22213
22214         * XplatUIX11.cs: Support custom visuals and colormaps for window 
22215           creation. This allows, amongst other things, using MWF X11 windows 
22216           with OpenGL.
22217
22218 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
22219
22220         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
22221           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
22222           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
22223           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
22224           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
22225           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
22226           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
22227           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
22228           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
22229           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
22230           GridColumnStylesCollection.cs, 
22231           IDataGridColumnStyleEditingNotificationService.cs,
22232           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
22233           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
22234           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
22235           TreeNodeCollection.cs, AmbientProperties.cs, 
22236           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
22237           DataObject.cs, ErrorProvider.cs, Splitter.cs,
22238           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
22239           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
22240           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
22241           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
22242           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
22243           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
22244           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
22245           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
22246           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
22247           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
22248           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
22249           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
22250           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
22251           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
22252           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
22253           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
22254           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
22255           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
22256           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
22257           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
22258           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
22259           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
22260           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
22261           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
22262           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
22263           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
22264           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
22265           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
22266           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
22267           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
22268           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
22269           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
22270           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
22271           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
22272           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
22273
22274 2005-09-21  Jackson Harper  <jackson@ximian.com>
22275
22276         * TreeNode.cs: Call Before/After Expand not Collapse when
22277         expanding.
22278
22279 2005-09-20  Jackson Harper  <jackson@ximian.com>
22280         
22281         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
22282
22283 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
22284          
22285         * ListViewItem.cs:
22286                 - Fixes bug 76120
22287                 - Fixes proper storing of subitems
22288                 - Fixes not updated items
22289
22290 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
22291
22292         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
22293           things if our window handle isn't created yet. Also disabled 
22294           debug for TextBoxBase
22295
22296 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
22297
22298         * MenuAPI.cs: Remove filtering of events to allow menu usage
22299
22300 2005-09-20  Miguel de Icaza  <miguel@novell.com>
22301
22302         * Cursor.cs: Allow null to be passed to Cursor.Current.
22303
22304 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
22305
22306         * ThemeWin32Classic.cs:
22307           - Change some private methods/fields to protected virtual so that 
22308             they can be accessed and overriden in derived classes
22309           - First refactoring of some methods. Derived themes now don't 
22310             need to duplicate the complete code from ThemeWin32Classic
22311         * ThemeNice.cs:
22312           - Added nice StatusBar
22313           - Derive from ThemeWin32Classic and not Theme
22314           - Removed duplicate ThemeWin32Classic code
22315
22316 2005-09-20  Miguel de Icaza  <miguel@novell.com>
22317
22318         * Control.cs (ControlCollection.Add): If the value null is passed
22319         the control is ignored. 
22320
22321         Optimize this loop.
22322
22323 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
22324
22325         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
22326           PostQuitMessage state.
22327         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
22328
22329 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
22330
22331         * Application.cs: Our constructor will never get called, move 
22332           initialization to fields; fixes bug #75933
22333
22334 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
22335
22336         * FileDialog.cs :
22337                 - Allow files to be selected properly using file name
22338                 combo box.
22339                 - Add ability to change diretory (absolute / relative)
22340                 using file name combo box.
22341
22342 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
22343          
22344         * ListBox.cs: 
22345                 - Fixes Multicolumn listboxes item wrong calculations
22346                 - Allows to click when only one item is in the listbox
22347                 - Fixes crash when no items using keyboard navigation
22348
22349 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
22350
22351         * ComboBox.cs: Reverted almost everything from the latest patch which
22352           broke ComboBox
22353
22354 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
22355         
22356         * ToolTip.cs:
22357                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
22358         * ComboBox.cs:
22359                 - When DropDownStyle is Simple, it does not show scrollbar 
22360                 to the last item of the list.
22361                 - When DropDownStyle is Simple, it crashed when the list was 
22362                 scrolled down with the down cursor key.
22363                 - Fixed a bug that when DropDownStyle is DropDownList, the 
22364                 selected item was not shown.
22365                 - The position of the selected item was not preserved when 
22366                 the next dropdown happened.
22367         * ThemeWin32Classic.cs:
22368                 - Items were wrapped at the right end.
22369         * CheckedListBox.cs:
22370                 - Fixed Add method
22371         * ListBox.cs:
22372                 - Items should be fully shown.
22373                 - When resizing and vertical scrollbar disappeared, the item 
22374                 of index 0 should be on the top of the list.
22375                 - GetItemRectangle should consider the size of ver. scrollbar
22376         * StatusBar.cs:
22377                 - SizingGrip area should not be allocated when it is not 
22378                 displayed.
22379                 - Now it reflects MinWidth of the containing panel and 
22380                 fixed a crash that happens when its width becomes so small.
22381
22382 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
22383
22384         * CheckedListBox.cs: Fixes bug 76028
22385         * ListBox.cs: Fixes bug 76028
22386
22387 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
22388
22389         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
22390         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
22391
22392 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
22393
22394         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
22395
22396 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
22397
22398         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
22399
22400 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
22401
22402         * IRootGridEntry.cs: Added
22403         * PropertyGridCommands.cs: Added
22404         * PropertiesTab.cs: Added missing methods and property
22405         * PropertyGridView.cs: Made class internal
22406         * PropertyGridTextBox.cs: Made class internal
22407
22408 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
22409
22410         * MimeIcon.cs: Try to check some other environment variables
22411           if "DESKTOP_SESSION" returns "default"
22412
22413 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
22414
22415         * ThemeNice.cs: Corrected background colors (e.g. menus)
22416         * ColorDialog.cs: Use correct background colors for controls
22417
22418 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
22419
22420         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
22421
22422 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
22423
22424         * RichTextBox.cs: Added initial implementation
22425         * lang.cs: Removed. Was accidentally checked in long time ago
22426         * TODO: Removed. Contents were obsolete
22427
22428 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
22429                                                                                 
22430         * PropertiesTab.cs : Added
22431
22432 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
22433                                                                                 
22434         * PropertyGrid.cs : Update
22435         * PropertyGridView.cs : Update
22436         * System.Windows.Forms.resx : Added images and strings
22437
22438 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
22439
22440         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
22441  
22442 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
22443
22444         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
22445           a busy loop right after the Ungrab the X11 display is otherwise 
22446           blocked
22447
22448 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
22449
22450         * ThemeWin32Classic.cs: Optimise the use of clipping
22451
22452 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
22453
22454         * DataGrid.cs: fixes recursion bug
22455
22456 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
22457
22458         * ThemeNice.cs: 
22459           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
22460           - Cleanup
22461
22462 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
22463
22464         * ThemeNice.cs: Draw nice ProgressBars
22465
22466 2005-09-01  Miguel de Icaza  <miguel@novell.com>
22467
22468         * VScrollBar.cs: Another buglet found by Aaron's tool. 
22469
22470         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
22471         bug finder.
22472
22473 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
22474
22475         * ThemeNice.cs:
22476           - Added nicer menu drawing
22477           - Updated DrawTab
22478           - some refactoring
22479
22480 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
22481
22482         * CreateParams.cs (ToString): Made output match MS
22483         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
22484             handle is already created (to avoid forcing window creation)
22485         * XplatUIX11.cs: Set window text to caption after creating window,
22486           in case Text was set before window was created
22487         * Form.cs: Use this.Text instead of a static string as caption
22488
22489 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22490
22491         * NotifyIcon.cs: Don't set the window to visible; this screws
22492           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
22493           OnPaint without a bitmap)
22494         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
22495           happen very often anyway; we could add the check to the WM_PAINT 
22496           event generation code
22497
22498 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
22499
22500         * NotifyIcon.cs: Fill the icon area with a background color, to 
22501           avoid 'residue' when transparent icons are drawn
22502         * XplatUIX11.cs:
22503           - Handle whole_window == client_window when destroying windows
22504           - SystrayAdd(): Set client_window to whole_window value to
22505             get mouse and other events passed to NotifyIcon
22506
22507 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
22508
22509         * Form.cs: Set proper default for Opacity property
22510         * NotifyIcon.cs:
22511           - ShowSystray(): Don't bother creating telling the OS
22512             about the systray item if no icon is provided
22513           - Now handles WM_NCPAINT message to deal with whole/client window
22514             split
22515           - Create window as visible to not get caught by Expose optimization
22516         * Hwnd.cs: Removed debug message
22517         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
22518           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
22519             PaintEventStart/End to use new client argument
22520         * TextBoxBase.cs:
22521           - Commented out debug messages
22522           - Switched PaintEventStart/End to use new client argument
22523         * XplatUI.cs: Added client window bool to PaintEventStart()/
22524           PaintEventEnd() calls, to support drawing in non-client areas
22525         * XplatUIDriver.cs: 
22526           - Added client window bool to PaintEventStart()/PaintEventEnd() 
22527             calls, to support drawing in non-client areas
22528           - Added conditional compile to allow using MWF BeginInvoke 
22529             on MS runtime
22530         * XplatUIX11.cs:
22531           - Added some conditional debug output
22532           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
22533             whole/client window split
22534           - Implemented handling of client argument to PaintEventStart()/End()
22535         * Control.cs:
22536           - Throw exception if BeginInvoke() is called and the window handle
22537             or one of the window's parent handles is not created
22538           - Added conditional compile to allow using MWF BeginInvoke on
22539             MS runtime
22540           - get_Parent(): Only sets parent if handle is created. This avoids
22541             forcing window handle creation when parent is set.
22542           - Now fires Layout and Parent changed events in proper order
22543           - Switched to use Handle instead of window.Handle for Z-Order setting,
22544             the get_Parent() patch above causes us to possibly get null for 'window'
22545           - Implemented handling of client argument to PaintEventStart()/End()
22546           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
22547             default handling)
22548           - Now sends a Refresh() to all child windows when Refresh() is called
22549
22550 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
22551
22552         * Form.cs: Added (non-functional) Opacity property
22553         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
22554
22555 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
22556         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
22557           use export MONO_THEME=nice to activate it.
22558           Currently supported controls:
22559           - Button
22560           - ComboBox
22561           - ScrollBar
22562           - TabControl (TabAlignment.Top only, other will follow)
22563         * ThemeEngine.cs: Add theme nice
22564         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
22565           if enabled
22566
22567 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
22568
22569         * Splitter.cs: Resize docked control and its neighbor.
22570
22571 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
22572         -- Making Windows with Menus layout correctly --
22573         * Form.cs : The first leg of the fix
22574                 Menu setter - adjust Client Size as needed to make space for the menu
22575                 SetClientSizeCore - doesn't call base version to be able to pass the 
22576                         menu handle to XplatUI.CalculateWindowRect
22577         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
22578         * XplatUIX11.cs: The critical second leg of the fix
22579                 GetWindowPos needs to use a recalculated client_rect
22580                 so that resizing the window doesn't break layout of child controls. 
22581                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
22582                 Lots of \t\n killed
22583
22584 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
22585
22586         * Label.cs: Now properly recalculates width and height on Font and Text
22587           changes if AutoSize is set
22588
22589 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
22590         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
22591
22592 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
22593
22594         * ImageList.cs: Makes ToString method compatible with MS
22595
22596 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
22597
22598         * MenuAPI.cs: fixes bug 75716
22599
22600 2005-08-11 Umadevi S <sumadevi@novell.com>
22601         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
22602
22603 2005-08-11 Umadevi S <sumadevi@novell.com>
22604         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
22605
22606 2005-08-10  Umadevi S <sumadevi@novell.com>
22607         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
22608
22609 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
22610
22611         * Menu.cs: fixes bug 75700
22612         * MenuAPI.cs: fixes navigation issues
22613
22614 2005-08-09  Umadevi S <sumadevi@novell.com>
22615         * CheckedListBox.cs - simple fix for GetItemChecked.
22616
22617 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
22618
22619         * ComboBox.cs: Serveral fixes
22620         * ListBox.cs: Serveral fixes
22621
22622 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
22623
22624         * ComboBox.cs: Fixes FindString methods and GetItemHeight
22625         * ListBox.cs: Fixes FindString methods
22626
22627 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
22628
22629         * DataGrid.cs: fixes bugs exposed by new tests
22630
22631 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
22632
22633         * Mime.cs: Compile Mono assembly references only if compiling
22634           with Mono (Allows to build with VS.Net again)
22635
22636 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
22637
22638         * Control.cs (PaintControlBackground): Draw background image
22639         corrrectly.
22640         (CheckForIllegalCrossThreadCalls): Stubbed.
22641         
22642         * Form.cs (OnCreateControl): Center when should be centered.
22643         
22644         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
22645
22646 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
22647
22648         * Binding.cs: Binding to properties should be case unsensitive
22649
22650 2005-07-18 vlindos@nucleusys.com
22651
22652         * DataGrid.cs: fixes setmember order
22653
22654 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
22655
22656         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
22657         * FileDialog.cs: FileDialog is now resizable and uses the new
22658           MimeIconEngine
22659
22660 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
22661
22662         * DataGridTextBoxColumn.cs: default value
22663         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
22664         * GridTableStylesCollection.cs: fixes checking MappingName
22665         * DataGridDrawingLogic.cs: fixes drawing logic issues
22666         * DataSourceHelper.cs: rewritten to make compatible with more data sources
22667         * DataGrid.cs: fixes    
22668
22669 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
22670
22671         * MimeGenerated.cs: Use case sensitive comparer for
22672           NameValueCollections
22673
22674 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
22675
22676         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
22677         * ThemeWin32Classic.cs: bug fixes, code refactoring
22678         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
22679         * DataGrid.cs: bug fixes, code refactoring
22680         * DataGridTextBox.cs: bug fixes, code refactoring
22681         * DataGridColumnStyle.cs:  bug fixes, code refactoring
22682         * Theme.cs:  bug fixes, code refactoring
22683
22684 2005-07-01  Peter Bartok  <pbartok@novell.com> 
22685
22686         * TextControl.cs: Quick fix for the reported crash on ColorDialog
22687           and other text box usage
22688
22689 2005-07-01  Jackson Harper  <jackson@ximian.com>
22690
22691         * TabControl.cs: Make sure the bottom of the tab covers the pages
22692         border.
22693
22694 2005-06-30  Peter Bartok  <pbartok@novell.com> 
22695
22696         * Form.cs (ShowDialog): Assign owner of the dialog
22697         * TextBoxBase.cs: Always refresh caret size when deleting, caret
22698           might have been moved to a tag with different height
22699
22700 2005-06-30  Jackson Harper  <jackson@ximian.com>
22701
22702         * Form.cs: Don't create an infinite loop when setting focus
22703         * MenuItem.cs: Don't dirty the parents if we don't have any
22704
22705 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
22706
22707         * LibSupport.cs: Rename
22708
22709 2005-06-29  Peter Bartok  <pbartok@novell.com>
22710
22711         * TextBoxBase.cs: Re-align caret after deleting a character
22712         * TextControl.cs:
22713           - DeleteChars(): Ensure that tag covers the provided position
22714           - StreamLine(): Drop reference for dropped tag
22715
22716 2005-06-29  Peter Bartok  <pbartok@novell.com> 
22717
22718         * TextControl.cs: 
22719           - Selections now work properly, anchoring at the initial location
22720             and properly extending in either direction (SetSelectionToCaret(),
22721             SetSelectionStart() and SetSelectionEnd())
22722           - No longer redraws the whole control on selection change, now
22723             calculates delta between previous and new selection and only
22724             invalidates/redraws that area
22725           - Fixed FindPos() math off-by-one errors
22726           - Changed DeleteChars() to verify the provided tag covers the
22727             provided position, selections may have a tag that doesn't cover
22728             the position if the selection is at a tag border
22729           - Fixed off-by-one errors in DeleteChars()
22730           - Added missing streamlining check in DeleteChars() to remove
22731             zero-length tags
22732           - Implemented Invalidate() method, now properly calculates exposures
22733             between two given lines/positions
22734           - Implemented SetSelection()
22735           - Obsoleted and removed FixupSelection()
22736           - Improved RecalculateDocument() logic, removing code duplication
22737
22738 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22739
22740         * LibSupport.cs: changes to match different input/output arguments.
22741
22742 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22743
22744         * LibSupport.cs: added libsupport.so init routine.
22745
22746 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
22747         
22748         * ControlBindingsCollection.cs
22749                 - Throws an exception on null datasource when adding
22750                 - Checks for duplicated bindings when adding
22751
22752 2005-06-28  Jackson Harper  <jackson@ximian.com>
22753
22754         * TreeView.cs (OnKeyDown): Support left and right properly
22755         (navigates as well as expanding and collapsing.
22756         - Add support for Multiply, this expands all the selected nodes
22757         children.
22758         - Fix some tabbing.
22759
22760 2005-06-28  Jackson Harper  <jackson@ximian.com>
22761
22762         * TreeView.cs: Implement keyboard navigation, currently supports,
22763         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
22764         support for toggling checkboxes with the space bar.
22765
22766 2005-06-28  Jackson Harper  <jackson@ximian.com>
22767
22768         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
22769         tree.
22770
22771 2005-06-28  Jackson Harper  <jackson@ximian.com>
22772
22773         * TreeView.cs: Add missing event.
22774
22775 2005-06-27  Peter Bartok  <pbartok@novell.com> 
22776
22777         * TextControl.cs:
22778           - Made line ending size configurable (now allows for counting 
22779             lineendings as \n or \r\n)
22780           - Added margin to viewport to keep caret visible on right side
22781           - Fixed translation routines for line/pos to documentpos to consider
22782             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
22783           - Fixed some line-endings to be unix style
22784           - Fixed Document.FormatText to perform it's calculations 1-based
22785           - Added descriptions for a few methods that might otherwise get 
22786             used wrong
22787           - Added NOTE section with some basic conventions to remember at 
22788             the top of the file
22789           - Major fixup for RichTextBox selection drawing:
22790             * Fixed crashes when multiple tags on a single line were selected
22791             * fixed selection box drawing not overlaying text
22792             * fixed bogus offset calculation for tags not starting at index 1
22793             * Switched behaviour from using multiple Substrings of a 
22794               StringBuilder.ToString() to using multiple 
22795               StringBuilder.ToString(start, length) statements, hoping this is
22796               faster (kept original version commented out in the code, in case
22797               original version was faster)
22798         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
22799           alignment != Left
22800         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
22801           call it as well
22802
22803 2005-06-27  Jackson Harper  <jackson@ximian.com>
22804
22805         * TabControl.cs: Move to the left and right with the arrow
22806         keys. These keys don't cycle beyond first and last like
22807         tab. Refresh all the tabs when scrolling them to the left or
22808         right.
22809
22810 2005-06-27  Jackson Harper  <jackson@ximian.com>
22811
22812         * TabControl.cs:
22813           - ToString: Added method
22814           - CreateParams: Remove TODO and comment
22815           - OnKeyDown: Cycle through bounds properly.
22816           - SelectedIndex: Scroll to the right or left if we need to
22817           display the newly selected tab.
22818
22819 2005-06-23  Jackson Harper  <jackson@ximian.com>
22820
22821         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
22822         set.
22823
22824 2005-06-23  Jackson Harper  <jackson@ximian.com>
22825
22826         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
22827         CTRL-SHIFT-TAB, and HOME, END are there any others?
22828
22829 2005-06-23  Jackson Harper  <jackson@ximian.com>
22830
22831         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
22832
22833 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
22834         
22835         * DataGridTextBoxColumn.cs: fixes and enhancements
22836         * ThemeWin32Classic.cs: fixes and enhancements
22837         * DataGridBoolColumn.cs:  fixes and enhancements
22838         * DataGridDrawingLogic.cs:  fixes and enhancements
22839         * CurrencyManager.cs: fixes and enhancements
22840         * DataGrid.cs: fixes and enhancements
22841         * DataGridColumnStyle.cs:  fixes and enhancements
22842
22843 2005-06-22  Jackson Harper  <jackson@ximian.com>
22844
22845         * TabControl.cs: Add some missing methods that just call into the
22846         base. Make the TabPageCollection's IList interface behave in the
22847         same manner as the MS implementation.
22848
22849 2005-06-22  Peter Bartok  <pbartok@novell.com> 
22850
22851         * TextControl.cs: Added sanity check
22852         * TextBoxBase.cs: 
22853           - Fixed wrapping behaviour, don't set wrap on single line controls
22854             (this fixes the breakage of colordialog introduced in an earlier
22855              checkin)
22856           - Added rudimentary support for autoscrolling right-aligned controls
22857             (still needs fixing, also, center alignment scroll is missing)
22858
22859 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
22860         
22861         * ScrollBar.cs: Fixes thumbpos on Maximum values
22862
22863 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
22864         
22865         * PropertyGridView.cs: Pass context information to UITypeEditors 
22866
22867 2005-06-21  Peter Bartok  <pbartok@novell.com> 
22868
22869         * TextBoxBase.cs:
22870           - Now calling PositionCaret with absolute space coordinates
22871           - Enabled vertical scrolling
22872           - Better tracking of scrollbar changes, tied into WidthChange
22873             event
22874           - Improved cursor tracking
22875           - Removed debug output
22876         * TextControl.cs:
22877           - PositionCaret coordinates are now works in absolute space, not 
22878             the canvas
22879           - Improved tracking of document size
22880           - Added events for width and height changes
22881
22882 2005-06-21  Peter Bartok  <pbartok@novell.com>
22883
22884         * Form.cs: Set focus to active control when form is activated
22885         * TextControl.cs: 
22886           - Added word-wrap functionality to RecalculateLine() 
22887           - Added some short function descriptions for VS.Net to aid in
22888             writing dependent controls
22889           - Added Caret property, returning the current coords of the caret
22890           - Added ViewPortWidth and ViewPortHeight properties
22891           - Added Wrap property
22892           - Added CaretMoved event
22893           - Removed some old debug code
22894           - Split() can now create soft splits
22895           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
22896           - Added method to format existing text
22897           - Fixed size/alignment calculations to use viewport
22898           - RecalculateDocument now can handle changing line-numbers while
22899             calculating lines
22900
22901         * TextBox.cs:
22902           - Added some wrap logic, we don't wrap if alignment is not left
22903           - Added casts for scrollbar var, base class switched types to
22904             also support RichTextBoxA
22905           - Implemented handling of scrollbar visibility flags
22906
22907         * TextBoxBase.cs:
22908           - Switched scrollbars type to RichTextBoxScrollBars to support
22909             RichTextBox
22910           - Added tracking of canvas width/height
22911           - Switched scrollbars to be not selectable (to keep focus on text)
22912           - Added central CalculateDocument() method to handle all redraw
22913             requirements
22914           - Added ReadOnly support
22915           - Added WordWrap support
22916           - Fixed handling of Enter key (we now treat it as a DialogKey)
22917           - Fixed caret positioning when h or v scroll is not zero
22918           - Fixed placing/generation of vertical scrollbar
22919           - Added CalculateScrollBars() method to allow updating scrollbar
22920             limits and visibility
22921           - Fixed handling of horizontal scroll
22922           - Added handling of vertical scroll
22923           - Implemented auto-'jump' when caret moves to close to a left or
22924             right border and there is text to be scrolled into view (currently
22925             there's the potential for a stack overflow, until a bug in
22926             scrollbar is fixed)
22927
22928 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
22929         
22930         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
22931
22932 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
22933
22934         * Mime.cs:
22935         - added inodes.
22936         - return application/x-zerosize for files with size zero
22937           (if no extension pattern matches).
22938         - check matches collection for strings too.
22939         - return only the first mime type if the name value
22940           collection has more than one mime type.
22941
22942 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
22943         
22944         * PropertyGrid.cs: Cleaned up some TODOs
22945         * PropertyGridView.cs: Added support for UITypeEditors
22946
22947 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
22948         
22949         * DataGrid.cs: clears cached value
22950
22951 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
22952
22953         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
22954         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
22955         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
22956         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
22957         
22958 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
22959
22960         * ThemeWin32Classic.cs: fixes colour
22961
22962 2005-06-15  Peter Bartok  <pbartok@novell.com>
22963
22964         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
22965         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
22966         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
22967         * Control.cs: Added some MWFCategory and MWFDescription attributes
22968         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
22969
22970 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
22971
22972         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
22973         usage
22974
22975 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
22976
22977         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
22978         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
22979         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
22980         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
22981         * DataGrid.cs: default datagrid settings for Default Styles, fixes
22982         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
22983
22984 2005-06-13  Jackson Harper  <jackson@ximian.com>
22985
22986         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
22987         isn't printed when the user enables dropping. (X11 does accept
22988         drops).
22989         
22990 2005-06-13  Jackson Harper  <jackson@ximian.com>
22991
22992         * TreeView.cs: Remove some TODOS.
22993
22994 2005-06-13  Jackson Harper  <jackson@ximian.com>
22995
22996         * Form.cs: Hook into the mdi framework.
22997         * MdiClient.cs: Use the base control collections add method so
22998         parents get setup correctly. Set the default back colour and dock
22999         style.
23000         * MdiChildContext.cs: New class, this bad actor handles an
23001         instance of an MDI window. Right now there is only basic
23002         support. You can drag, close, and resize windows. Minimize and
23003         Maximize are partially implemented.
23004
23005 2005-06-13  Jackson Harper  <jackson@ximian.com>
23006
23007         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
23008         freaky when both vals are negative. NOTE: There are probably other
23009         places in XplatUIX11 that this needs to be done.
23010
23011 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
23012
23013         * DataGrid.cs: implement missing methods, move KeyboardNavigation
23014         * DataGridColumnStyle.cs: fixes signature
23015
23016 2005-06-12  Jackson Harper  <jackson@ximian.com>
23017
23018         * XplatUIX11.cs: Use sizing cursors similar to the ones on
23019         windows.
23020
23021 2005-06-11  Jackson Harper  <jackson@ximian.com>
23022
23023         * StatusBarPanel.cs: Signature cleanups. Implement
23024         BeginInit/EndInit.
23025
23026 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
23027
23028         * DataGridTextBoxColumn.cs: Honors aligment
23029         * GridColumnStylesCollection.cs: Contains is case unsensitive
23030         * GridTableStylesCollection.cs: several fixes
23031         * DataGridTableStyle.cs: default column creation
23032         * DataGridDrawingLogic.cs: fixes
23033         * CurrencyManager.cs: ListName property
23034         * DataGrid.cs: multiple styles support
23035         * DataGridColumnStyle.cs: fixes
23036         
23037
23038 2005-06-10  Peter Bartok  <pbartok@novell.com>
23039
23040         * Control.cs(Select): Moved SetFocus call to avoid potential
23041           loops if controls change the active control when getting focus
23042         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
23043           the up/down buttons
23044
23045 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
23046
23047         * ImageListConverter.cs: Implemented
23048
23049 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
23050
23051         * MonthCalendar.cs: Wired in NumericUpDown control for year
23052
23053 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
23054
23055         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
23056           DoubleClick events, since they are not meant to be fired.
23057
23058 2005-06-09  Peter Bartok  <pbartok@novell.com>
23059
23060         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
23061           Jonathan's standalone controls into MWF, implemented missing
23062           events, attributes and methods; added xxxAccessible classes
23063         * AccessibleObject.cs: Made fields internal so other classes
23064           can change them if needed
23065
23066 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
23067
23068         * UpDownBase.cs: Complete implementation
23069         * NumericUpDown.cs: Complete implementation
23070         * DomainUpDown.cs: Complete implementation
23071
23072 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
23073
23074         * DataGridTextBoxColumn.cs: drawing fixes
23075         * DataGridCell.cs: fixes ToString method to match MSNet
23076         * DataGridTableStyle.cs: fixes
23077         * DataGridBoolColumn.cs: fixes, drawing
23078         * DataGridDrawingLogic.cs: fixes, new methods
23079         * DataGridTextBox.cs: Keyboard and fixes
23080         * DataGrid.cs:
23081                 - Keyboard navigation
23082                 - Scrolling fixes
23083                 - Row selection (single, multiple, deletion, etc)
23084                 - Lots of fixes
23085         
23086 2005-06-07  Jackson Harper  <jackson@ximian.com>
23087
23088         * ThemeWin32Classic.cs: Clear the background area when drawing
23089         buttons.
23090
23091 2005-06-06  Peter Bartok  <pbartok@novell.com>
23092
23093         * ImageListStreamer.cs: Fixed signature for GetData
23094         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
23095         * ComboBox.cs:
23096           - Added missing ChildAccessibleObject class
23097           - Added missing OnXXXFocus overrides, switched to using those
23098             instead of the event handler
23099         * Control.cs:
23100           - Added Parent property for ControlAccessibleObject
23101           - Fixed signatures
23102           - Fixed attributes
23103           - Added ResetBindings()
23104         * ListBindingConverter.cs: Implemented some methods
23105         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
23106         * ImageList.cs: Implemented basic handle scheme, removed TODOs
23107         * ContainerControl.cs: Fixed signature, now subscribing to the
23108           ControlRemoved event instead of overriding the handler, LAMESPEC
23109         * CurrencyManager.cs: Added missing attribute
23110         * MonthCalendar.cs: Added missing properties
23111
23112 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
23113
23114         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
23115         
23116 2005-06-06  Gaurav Vaish and Ankit Jain
23117
23118         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
23119         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
23120         
23121 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
23122
23123         * Control.cs: fixes CreateParams Width / Height.
23124
23125 2005-06-05  Peter Bartok  <pbartok@novell.com>
23126
23127         * Win32DnD.cs: Removed compilation warnings
23128
23129 2005-06-05  Peter Bartok  <pbartok@novell.com>
23130
23131         * Control.cs (CreateParams): Since we don't know if one of the
23132           properties we use is overridden, lets make sure if we fail accessing
23133           we continue with a backup plan
23134
23135 2005-06-05  Peter Bartok  <pbartok@novell.com>
23136
23137         * Win32DnD.cs:
23138           - Removed debug output
23139           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
23140             struct
23141           - Plugged resource leak
23142         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
23143           MS size
23144
23145 2005-06-05  Peter Bartok  <pbartok@novell.com>
23146
23147         * XplatUIWin32.cs: Removed DnD code
23148         * Win32DnD.cs: Implemented drop source and drop target functionality
23149
23150 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23151
23152         * UpDownBase.cs: remove duplicate addition of event, enable some code
23153         that was commented out.
23154         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
23155         Validate input when a key is pressed. It works fine now for every
23156         combination of Hexadecimal. Only missing some drawing love when sharing
23157         space with other controls.
23158
23159 2005-06-04  Peter Bartok  <pbartok@novell.com>
23160
23161         * Control.cs:
23162           - We need to pass a window for DragDrop, so enable callback events
23163           - Added DnD callback events when being a DragSource
23164         * XplatUI.cs (StartDrag): Added window handle argument
23165         * XplatUIDriver.cs (StartDrag): Added window handle argument
23166         * QueryContinueDragEventArgs: Made fields internally accessible so
23167           drivers can set them
23168         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
23169           can set them
23170
23171 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
23172
23173         * DataGridTextBoxColumn.cs: column text editing
23174         * DataGridTableStyle.cs: Respect columns styles created by the user
23175         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
23176         * DataGridBoolColumn.cs: bool column editing
23177         * DataGrid.cs: fixes to scrolling, properties, etc
23178         * DataGridTextBox.cs: handle keyboard
23179         * DataGridColumnStyle.cs: fixes
23180
23181 2005-06-02  Jackson Harper  <jackson@ximian.com>
23182
23183         * ImageListStreamer.cs: Somewhat broken implementation of
23184         GetObjectData. The RLE needs some work to match MS properly.
23185
23186 2005-06-02  Jackson Harper  <jackson@ximian.com>
23187
23188         * X11Dnd.cs: Attempting to keep at least one file in MWF
23189         monostyled.
23190
23191 2005-06-02  Peter Bartok  <pbartok@novell.com>
23192
23193         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
23194           that way
23195
23196 2005-06-02  Peter Bartok  <pbartok@novell.com>
23197
23198         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
23199         * XplatUI.cs: Added DoDragDrop() method
23200         * XplatUIDriver.cs: Added DoDragDrop() method
23201
23202 2005-06-02  Jackson Harper  <jackson@ximian.com>
23203
23204         * Splitter.cs: Implement BorderStyle.
23205
23206 2005-06-02  Jackson Harper  <jackson@ximian.com>
23207
23208         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
23209         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
23210         X11 using XDND.
23211
23212 2005-06-02  Peter Bartok  <pbartok@novell.com>
23213
23214         * DataObject.cs:
23215           - Added Data setter
23216           - Fixed broken insertion code for SetData, now also
23217             overwrites any existing entry of the same format name
23218         * Hwnd.cs: Added list of pointers that automatically gets
23219           freed when the window is disposed
23220         * XplatUI.cs: Call driver initialization method when loading
23221           a driver
23222         * Control.cs:
23223           - OnDragLeave takes EventArgs, not DragEventArgs
23224           - Added setting of WS_EX_ACCEPTFILES style when dropping is
23225             supported
23226           - Forces style update when drop state changes
23227         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
23228           not perfect since we cannot (yet) call the IDataObject.GetData()
23229           method, we keep getting 0x80004005 error, dunno why)
23230
23231 2005-06-02  Peter Bartok  <pbartok@novell.com>
23232
23233         * DragEventArgs.cs: Make fields internal so we can cache the
23234           object and re-set the fields from XplatUI
23235
23236 2005-06-02  Jackson Harper  <jackson@ximian.com>
23237
23238         * Control.cs: Add some internal methods so the DnD subsystem can
23239         raise DnD events. Also call into the driver when AllowDrop is set.
23240         * XplatUI.cs:
23241         * XplatUIDriver.cs: New method for setting whether or not a window
23242         is allowed to accept drag and drop messages.
23243                 
23244 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
23245         
23246         * ScrollBar.cs: Make sure that values sent in Scroll events
23247         are always between Maximum and Minimum.
23248
23249 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
23250
23251         * Menu.cs: Call MenuChanged when menuitem visibility has been
23252         changed.
23253         * MenuItem.cs: Rebuild menu when item is (not) visible.
23254         * MainMenu.cs: MainMenu has special MenuChanged.
23255         * Theme.cs: Caption and FrameBorderSize are not fixed.
23256         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
23257         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
23258         * XplatUIX11.cs,
23259         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
23260         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
23261
23262 2005-05-30  Jackson Harper  <jackson@ximian.com>
23263
23264         * DataFormat.cs: We can't statically initialize this stuff because
23265         it calls into the xplatui and could create a loop. So we lazy init
23266         it.
23267
23268 2005-05-28  Jackson Harper  <jackson@ximian.com>
23269
23270         * Control.cs: Proper implementation of Product(Name/Version).
23271
23272 2005-05-27  Jackson Harper  <jackson@ximian.com>
23273
23274         * DataObject.cs: Dont crash if no data is found.
23275
23276 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
23277         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
23278                 as per status page, guessing it should be set to true
23279
23280 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
23281
23282         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
23283         * DataGridTableStyle.cs: set proper formatting text, def header text
23284         * ThemeWin32Classic.cs: new themable paramaters
23285         * DataGridBoolColumn.cs: paint check box, get data, fixes
23286         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
23287         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
23288         * DataGridColumnStyle.cs: fixes
23289         * Theme.cs: new themable paramaters
23290                 
23291 2005-05-26  Peter Bartok  <pbartok@novell.com>
23292
23293         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
23294
23295 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
23296         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
23297
23298 2005-05-24  Peter Bartok  <pbartok@novell.com>
23299
23300         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
23301           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
23302           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
23303           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
23304           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
23305           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
23306           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
23307           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
23308           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
23309           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
23310           missing attributes, etc
23311         * DataGridPreferredColumnWidthTypeConverter.cs: Added
23312
23313 2005-05-24  Peter Bartok  <pbartok@novell.com>
23314
23315         * Help.cs: Added, implemented trivial functions, throws up MessageBox
23316           when user tries to get help
23317         * DataObject.cs, DataFormats.cs, LinkArea.cs,
23318           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
23319           to suppress warnings
23320         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
23321           avoid unreachable code warning
23322
23323 2005-05-20  Peter Bartok  <pbartok@novell.com>
23324
23325         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
23326
23327 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
23328
23329         * DataGridTextBoxColumn.cs: Basic painting methods
23330         * DataGridTableStyle.cs: Set table style in the column
23331         * ThemeWin32Classic.cs: Use Theme for colors
23332         * DataGridDrawingLogic.cs: Implement more drawing
23333         * DataGrid.cs: drawing, theming, enhacements, fixes
23334         * DataGridColumnStyle.cs: fixes, drawing
23335         * Theme.cs: theming for Datagrid
23336
23337 2005-05-20  Peter Bartok  <pbartok@novell.com>
23338
23339         * Cursor.cs: Implemented GetObjectData() method
23340
23341 2005-05-20  Peter Bartok  <pbartok@novell.com>
23342
23343         * Cursors.cs: Added setting of cursor name
23344         * Cursor.cs:
23345           - Implemented constructors
23346           - Implemented Draw and DrawStretched
23347           - Implemented Current property
23348           - Implemented == and != operators
23349           - Implemented Dispose()
23350           - Implemented ToString
23351           - Added missing attributes
23352         * XplatUIX11.cs:
23353           - Added missing reset for OverrideCursor when DoEvents is called
23354           - Fixed creation of cursor, logic was wrong
23355         * XplatUIWin32.cs:
23356           - Added missing reset for OverrideCursor when DoEvents is called
23357           - Fixed creation of cursor, bit arrays were swapped
23358         * Clipboard.cs: Removed obsolete MonoTODO attribute
23359
23360 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
23361
23362         * ComboBox.cs: fixes OnSelectedItemChanged
23363         * ControlBindingsCollection.cs: fixes item range check
23364
23365 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
23366
23367         * UpDownBase.cs:
23368                 - Calc preferred height properly
23369                 - Implement missing properties
23370                 
23371         * NumericUpDown.cs: Implement missing events
23372
23373 2005-05-19  Jackson Harper  <jackson@ximian.com>
23374
23375         * TabControl.cs: New method that resizes the tab pages before
23376         redrawing them. This as needed as the control is double buffered
23377         and sizing will not be recalculated unless ResizeTabPages is
23378         called.
23379         * TabPage.cs: Set base.Text instead of Text in the constructor so
23380         that UpdateOwner does not get called. Use the new Redraw method of
23381         TabControl instead of Refresh so the sizing is recalculated.
23382         * ThemeWin32Classic.cs: Draw the text for button tabs.
23383
23384 2005-05-19  Jackson Harper  <jackson@ximian.com>
23385
23386         * Control.cs: Paint control background images. Fix typo where
23387         PaintControlBackground was not getting called correctly.
23388
23389 2005-05-19  Peter Bartok  <pbartok@novell.com>
23390
23391         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
23392           I can investigate, apparently I broke FileDialog
23393
23394 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
23395
23396         * AxHost.cs: Some simple properties.
23397         * Control.cs: window must be accessible after ctor.
23398         * Form.cs: Added TransparencyKey property.
23399         * TextBoxBase.cs: Implemented Clear. Text property can be null.
23400         * XplatUIWin32.cs: SetBorderStyle implemented.
23401
23402 2005-05-18  Peter Bartok  <pbartok@novell.com>
23403
23404         * DataObject.cs: Entries are not global but particular to the
23405           DataObject, now it behaves that way
23406         * XplatUIWin32.cs: Implemented Clipboard methods
23407         * Clipboard.cs: Implemented
23408         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
23409         * XplatUIOSX.cs: Updated to final clipboard prototypes
23410         * XplatUIX11.cs: Implemented Clipboard methods
23411         * XplatUIDriver.cs: Updated to final clipboard prototypes
23412         * XplatUIStructs.cs:
23413           - Added BITMAPINFOHEADER struct
23414           - Added ClipboardFormats enum
23415         * X11Structs.cs:
23416           - Added ClipboardStruct
23417           - Added Atom enum items for clipboard types
23418           - Fixed atom types for Selection event structures
23419         * DataFormats.cs:
23420           - Added internal properties and methods for drivers to enumerate
23421             all known formats
23422           - Switched initialization method to allow drivers to assign their
23423             own IDs even for the MS predefined clipboard IDs
23424         * XplatUI.cs: Updated to final clipboard interface
23425
23426 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
23427         * PropertyGridView.cs: Fixed compiler warnings.
23428
23429 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
23430         * PropertyGrid.cs: Added some event calls
23431         * PropertyGridView.cs: Change drawing code to use double buffering
23432         * PropertyGridTextBox.cs: Changed Text property name
23433         * GridItem.cs: Added Bounds property.
23434         * GridEntry.cs: Added Bounds property.
23435
23436 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
23437
23438         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
23439         since GetType() may not return the correct type if the object is
23440         a remoting proxy.
23441
23442 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
23443
23444         * TreeNodeCollection.cs: fixes get/set item ranges
23445         
23446 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
23447
23448         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
23449                 
23450 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
23451
23452         * ComboBox.cs: Fix item range comparation
23453         * ListView.cs: Fix item range comparation
23454
23455 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
23456
23457         * FontDialog.cs:
23458           - Clear example panel when OnPaint is called
23459           - Better solution for displaying the example panel text
23460           - Select default indexes in the ListBoxes
23461
23462 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
23463
23464         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
23465
23466 2005-05-11  Peter Bartok  <pbartok@novell.com>
23467
23468         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
23469         * SelectionRangeConverter.cs: Implemented
23470         * PropertyGrid.cs: Fixed attribute value
23471         * Control.cs:
23472           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
23473           - Added Sebastien Pouliot's CAS Stack Propagation fixes
23474         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
23475           that's common to all drivers. First methods to go there are
23476           Sebastien Pouliot's CAS Stack Propagation helper methods
23477         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
23478           Sebastien Pouliot for CAS Stack Propagation
23479
23480 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
23481
23482         * OSXStructs.cs:
23483           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
23484
23485 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
23486
23487         * DataGridTextBoxColumn.cs: fixed some members
23488         * GridColumnStylesCollection.cs: indexed column is case insensitive
23489         * DataGridTableStyle.cs: fixes
23490         * ThemeWin32Classic.cs: add new theme parameter
23491         * Theme.cs: add new theme parameter
23492         * DataGridDrawingLogic.cs: Datagrid's drawing logic
23493         * DataGrid.cs: fixes, new internal properties, etc.
23494         * DataGridColumnStyle.cs: allows to set grid value
23495         *
23496
23497 2005-05-10  Peter Bartok  <pbartok@novell.com>
23498
23499         * AccessibleObject.cs:
23500           - Removed MonoTODO attribute on help, method is correct
23501           - Fixed Bounds property
23502         * AxHost.cs: Moved MonoTODO
23503         * ButtonBase.cs: Now setting AccessibleObject properties
23504         * RadioButton.cs: Setting proper AccessibleObject role
23505         * CheckBox.cs: Setting proper AccessibleObject role
23506         * ControlBindingsCollection.cs: Added properties, methods and attributes
23507         * DataFormats.cs: Fixed awkward internal API, and changed to enable
23508           userdefined DataFormats.Format items as well
23509         * ListControl.cs: Removed data_member from the public eye
23510         * OpenFileDialog.cs:
23511           - Made class sealed
23512           - Added missing attributes
23513         * SaveFileDialog.cs: Added missing attributes
23514         * ImageListStreamer.cs: Fixed code that caused warnings
23515         * LinkLabel.cs: Removed unreachable code
23516         * TreeView.cs: Fixed code that caused warnings
23517         * PropertyGridView.cs: Fixed code that caused warnings
23518         * GridColumnStylesCollection.cs: Added missing attributes
23519         * GridTableStylesCollection: Added missing attribute
23520         * PropertyManager: Added .ctor
23521         * SecurityIDType: Added
23522         * DataObject.cs: Implemented class
23523         * LinkArea.cs: Added missing attribute
23524
23525 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
23526
23527         * RadioButton.cs: call base method to allow to fire OnClick event
23528         * UpDownBase.cs: OnMouseUp call base method
23529         * CheckedListBox.cs: call base method before returning
23530         * TrackBar.cs: call base method before returning
23531         
23532
23533 2005-05-10  Peter Bartok  <pbartok@novell.com>
23534
23535         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
23536           for messages
23537
23538 2005-05-10  Peter Bartok  <pbartok@novell.com>
23539
23540         * DataFormats.cs: Implemented
23541         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
23542           XplatUIX11.cs: Added Clipboard APIs
23543         * XplatUIWin32.cs: Implemented Clipboard APIs
23544         * FolderBrowserDialog.cs: Added missing event, attributes
23545
23546 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
23547
23548         * CheckBox.cs: call base method to allow to fire OnClick event
23549
23550 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
23551
23552         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
23553
23554 2005-05-06  Peter Bartok  <pbartok@novell.com>
23555
23556         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
23557         * Screen.cs: Implemented
23558         * HelpNavigator.cs: Added
23559         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
23560           property
23561         * HelpProvider.cs: Implemented all we can do until we have a CHM
23562           help library (which means that "What's This" does work now)
23563
23564 2005-05-06  Jackson Harper  <jackson@ximian.com>
23565
23566         * XplatUIX11.cs: Fix waking up the main loop.
23567                 
23568 2005-05-05  Peter Bartok  <pbartok@novell.com>
23569
23570         * XplatUI.cs: Updated revision
23571         * Form.cs: Removed enless loop
23572         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
23573         * Label.cs (OnPaint): Added call to base.OnPaint()
23574         * ToolTip.cs: Made ToolTipWindow reusable for other controls
23575         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
23576         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
23577         * AxHost.cs: Added
23578         * ButtonBase.cs: Moved base.OnPaint() call to end of method
23579         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
23580           to ToolTip.ToolTipWindow for drawing and size methods; this allows
23581           reuse of ToolTipWindow by other controls
23582         * SizeGrip.cs: Moved base.OnPaint() call to end of method
23583         * XplatUIX11.cs: Now clipping drawing area (experimental)
23584         * PictureBox.cs: Moved base.OnPaint() call to end of method
23585         * Theme.cs: Fixed ToolTip abstracts to match new format
23586         * ErrorProvider.cs: Implemented
23587
23588 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
23589
23590         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
23591         * LinkLabel.cs:
23592                 - Adds cursors
23593                 - Handles focus
23594                 - Implements LinkBehavior
23595                 - Fixes many issues
23596
23597 2005-05-03  Jackson Harper  <jackson@ximian.com>
23598
23599         * ListView.cs: Calculate the scrollbar positioning on resize and
23600         paint, so they get put in the correct place.
23601
23602 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
23603
23604         * ColorDialogs.cs: The small color panels are now handled by
23605           SmallColorControl. This fixes drawing of the focus rectangle
23606           and adds a 3D border.
23607
23608 2005-05-03  Peter Bartok  <pbartok@novell.com>
23609
23610         * Control.cs: Modified version of Jonathan Chamber's fix for
23611           double-buffering
23612
23613 2005-05-03  Jackson Harper  <jackson@ximian.com>
23614
23615         * ListView.cs: Remove redraw variable. Control now handles whether
23616         or not a redraw needs to be done, and will only raise the paint
23617         event if redrawing is needed.
23618
23619 2005-05-03  Jackson Harper  <jackson@ximian.com>
23620
23621         * Splitter.cs: No decorations for the splitter form. Cache the
23622         hatch brush.
23623
23624 2005-05-03  Jackson Harper  <jackson@ximian.com>
23625
23626         * TreeView.cs: Use dashed lines to connect nodes. Use the
23627         ControlPaint method for drawing the focus rect instead of doing
23628         that in treeview.
23629
23630 2005-05-02  Peter Bartok  <pbartok@novell.com>
23631
23632         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
23633
23634 2005-04-29  Jackson Harper  <jackson@ximian.com>
23635
23636         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
23637         entire image buffer. Just clear the clipping rectangle.
23638
23639 2005-04-29  Jackson Harper  <jackson@ximian.com>
23640
23641         * ThemeWin32Classic.cs: Don't draw list view items that are
23642         outside the clipping rectangle.
23643
23644 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
23645
23646         * ListBox.cs: added horizontal item scroll
23647
23648 2005-04-29  Jackson Harper  <jackson@ximian.com>
23649
23650         * ThemeWin32Classic.cs: Remove some old debug code that was
23651         causing flicker with the new double buffering code.
23652
23653 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
23654
23655         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
23656         behave like combobox and comboboxlist (still not sure if this is
23657         correct though).
23658
23659 2005-04-28  Jackson Harper  <jackson@ximian.com>
23660
23661         * ThemeWin32Classic.cs: Don't fill the middle of progress
23662         bars. This fills areas outside of the clip bounds that don't need
23663         to be filled.
23664
23665 2005-04-28  Jackson Harper  <jackson@ximian.com>
23666
23667         * Control.cs: Don't expose functionality to touch the image buffers.
23668         * ProgressBar.cs:
23669         * ListView.cs: We do not need to (and no longer can) manipulate
23670         the image buffers directly. All of this is handled by Control.
23671
23672 2005-04-28  Peter Bartok  <pbartok@novell.com>
23673
23674         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
23675           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
23676           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
23677
23678 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
23679
23680         * Combobox:
23681                 - Adjust control's height for non-simple comboboxes (bug fix)
23682                 - Remove dead code
23683         * MenuAPI.cs: remove unused var
23684         * ScrollBar.cs: remove unsed var
23685                  
23686         * ListBox.cs: unselect items when clearing
23687
23688 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
23689
23690         * ListControl.cs: honors OnPositionChanged and default Selected Item
23691         * ListBox.cs: unselect items when clearing
23692
23693 2005-04-27  Jackson Harper  <jackson@ximian.com>
23694
23695         * X11Keyboard.cs: Initialize a default keyboard and give a warning
23696         if a "correct" keyboard is not found. This will make us not crash,
23697         but might give some users bad keyboard layouts...seems to be the
23698         same thing rewind does.
23699
23700 2005-04-27  Jackson Harper  <jackson@ximian.com>
23701
23702         * BindingManagerBase.cs: Attach the current/position changed
23703         handlers to their respective events.
23704
23705 2005-04-27  Jackson Harper  <jackson@ximian.com>
23706
23707         * Control.cs: Make sure that the first WM_PAINT does a full draw,
23708         not just a blit.
23709         * ThemeWin32Classic.cs: Don't fill the background for picture
23710         boxes. This could overright user drawing.
23711         * ComboBox.cs: Just fill the clipping rect not the entire client
23712         rect when drawing the background. This prevents pieces of the
23713         image buffer from getting overwritten and is theoretically faster.
23714
23715 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
23716
23717         * ComboBox.cs: Databinding support fixes, fire missing events
23718         * ListControl.cs: implement missing methods and properties, fixes
23719         * ThemeWin32Classic.cs: Databiding support on Drawing
23720         * CheckedListBox.cs: Databinding support fixes, fire missing events
23721         * ListBox.cs: Databinding support fixes, fire missing events
23722         
23723 2005-04-25  Peter Bartok  <pbartok@novell.com>
23724
23725         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
23726
23727 2005-04-25  Jackson Harper  <jackson@ximian.com>
23728
23729         * TreeView.cs: Use the horizontal scrollbars height not width when
23730         determining how much of the client area is available.
23731
23732 2005-04-25  Jackson Harper  <jackson@ximian.com>
23733
23734         * Control.cs: Double buffering is handled differently now. As per
23735         the spec, the extra buffer is created in the WM_PAINT message and
23736         passed down to the control's drawing code.
23737         * GroupBox.cs:
23738         * Label.cs:
23739         * CheckBox.cs:
23740         * ProgressBar.cs:
23741         * RadioButton.cs:
23742         * ColorDialog.cs:
23743         * ComboBox.cs:
23744         * PropertyGridView.cs:
23745         * UpDownBase.cs:
23746         * MessageBox.cs:
23747         * MenuAPI.cs:
23748         * ListView.cs:
23749         * ButtonBase.cs:
23750         * SizeGrip.cs:
23751         * ScrollBar.cs:
23752         * ListBox.cs:
23753         * TrackBar.cs:
23754         * ToolBar.cs:
23755         * PictureBox.cs:
23756         * DateTimePicker.cs:
23757         * StatusBar.cs:
23758         * TreeView.cs: Update to new double buffering system.
23759         * MonthCalendar.cs: Uncomment block, as Capture is now
23760         working. Update to new double buffering
23761         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
23762         * PaintEventArgs.cs: New internal method allows us to set the
23763         graphics object. This is used for double buffering.
23764         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
23765         rectangle. The internal paint_area var has been removed from
23766         StatusBar. The clipping rect should be used instead.
23767         * Theme.cs: Give the PictureBox drawing method a clipping rect.
23768         * TabPage.cs: The RefreshTabs method was removed, so just call the
23769         tab controls Refresh method now.
23770         * TabControl.cs: Update to new double buffering. Make sure the
23771         handle is created before sizing the tab pages, otherwise we will
23772         get stuck in a loop.
23773
23774 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
23775
23776         * LinkLabel.cs: Fix typo, bug #74719; patch
23777           from Borja Sanchez Zamorano
23778
23779 2005-04-22  Jackson Harper  <jackson@ximian.com>
23780
23781         * TreeNode.cs: Implement Handle stuff.
23782         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
23783
23784 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
23785
23786         * DataGridTextBoxColumn.cs: call base constructors, fixes
23787         * GridColumnStylesCollection.cs: missing events, methods, and functionality
23788         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
23789         * DataGridTableStyle.cs: implements create default column styles
23790         * DataGridBoolColumn.cs: which types can handle
23791         * DataGrid.cs: missing methods, fixes, new functionality
23792         * DataGridColumnStyle.cs: fixes
23793
23794 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
23795         * FolderBrowserDialog.cs:
23796         - Use a thread to fill the TreeView
23797         - Adjusted some sizes
23798
23799 2005-04-19  Peter Bartok  <pbartok@novell.com>
23800
23801         * LinkLabel.cs: (Re-)create the pieces when setting the Text
23802           property. Fixes #74360.
23803
23804 2005-04-19  Jackson Harper  <jackson@ximian.com>
23805
23806         * XEventQueue.cs: Lock when getting the lockqueue size.
23807         * PictureBox.cs: Call base OnPaint
23808         
23809 2005-04-19  Peter Bartok  <pbartok@novell.com>
23810
23811         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
23812           messages were no longer being processed (this broke BeginInvoke)
23813
23814           
23815 2005-04-18  Jackson Harper  <jackson@ximian.com>
23816
23817         * TreeView.cs: buglet that caused node images to get drawn
23818         regardless of whether or not they were in the clipping rectangle.
23819
23820 2005-04-18  Jackson Harper  <jackson@ximian.com>
23821
23822         * CurrencyManager.cs: There are four rules for GetItemProperties:
23823         - If the type is an array use the element type of the array
23824         - If the type is a typed list, use the type
23825         - If the list contains an Item property that is not an object, use
23826         that property
23827         - use the first element of the list if there are any elements in
23828         the list.
23829         
23830 2005-04-17  Jackson Harper  <jackson@ximian.oom>
23831
23832         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
23833         click. This handles offsets for scrolling properly and reduces
23834         memory. Also fixed GetNode to not offset now that TopNode works
23835         properly.
23836         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
23837         
23838 2005-04-17  Jackson Harper  <jackson@ximian.com>
23839
23840         * CursorConverter.cs: Initial implementation.
23841
23842 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
23843
23844         * ListControl.cs: work towards complex data binding support on ListControl
23845         * CurrencyManager.cs: work towards complex data binding support on ListControl
23846         * ListBox.cs: work towards complex data binding support on ListControl
23847
23848
23849 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
23850
23851         * GridTableStylesCollection.cs: fixes name and constructor
23852         * DataGridTableStyle.cs: fixes
23853         * DataGridBoolColumn.cs: fixes names and constructors
23854         * DataGrid.cs: define methods and properties. Some init implementations
23855         * DataGridCell.cs: define methods and properties. Some init implementations
23856         * GridTablesFactory.cs: Define methods and properties
23857
23858 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
23859
23860         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
23861         graphics port changes.  We still want the coordinates in global screen
23862         coordinates.
23863
23864 2005-04-14  Jackson Harper  <jackson@ximian.com>
23865
23866         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
23867         check plus minus or checkbox clicks unless those features are enabled.
23868
23869 2005-04-14  Jackson Harper  <jackson@ximian.com>
23870
23871         * TreeView.cs: Add methods for setting the top and bottom visible
23872         nodes. TreeNode::EnsureVisible uses these methods.
23873         * TreeNode.cs: Implement EnsureVisible
23874
23875 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
23876
23877         * Form.cs: Pospone menu assignation if the window has not been created yet
23878         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
23879         size and position
23880
23881 2005-04-12  Jackson Harper  <jackson@ximian.com>
23882
23883         * TreeView.cs: Set the TopNode properly when scrolling
23884         occurs. This has the added benifit of reducing the amount of
23885         walking that needs to be done when drawing. Also removed an old
23886         misleading TODO.
23887         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
23888         
23889 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
23890
23891         * Timer.cs: fixes interval setting when the timer is already enabled
23892         
23893 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
23894
23895         * FolderBrowserDialog.cs: First approach
23896
23897 2005-04-09  Peter Bartok  <pbartok@novell.com>
23898
23899         * FolderBrowserDialog: Added
23900
23901 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
23902
23903         * LinkLabel.cs: move drawing code into the theme
23904         * ThemeWin32Classic.cs: drawing code and painting background bugfix
23905         * Theme.cs: define DrawLinkLabel method
23906
23907 2005-04-05  Jackson Harper  <jackson@ximian.com>
23908
23909         * BindingContext.cs: Use weak references so these bad actors don't
23910         stay alive longer then they need to.
23911
23912 2005-04-05  Jackson Harper  <jackson@ximian.com>
23913
23914         * ListControl.cs: Basic implementation of complex databinding.
23915         * ComboBox.cs:
23916         * ListBox.cs: Add calls to ListControl databinding methods.
23917
23918 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
23919
23920         * FileDialog.cs:
23921           - Don't change PopupButtonState to Normal when the
23922             PopupButton gets pressed several times.
23923           - Renamed ButtonPanel to PopupButtonPanel
23924
23925 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
23926
23927         * ColorDialog.cs: Use cached objects instead of creating them
23928         * LinkLabel.cs: Use cached objects instead of creating them
23929         * Splitter.cs: Use cached objects instead of creating them
23930         * FontDialog.cs: Use cached objects instead of creating them
23931         * PropertyGridView.cs: Use cached objects instead of creating them
23932         * MessageBox.cs: Use cached objects instead of creating them
23933         * FileDialog.cs: Use cached objects instead of creating them
23934         * ThemeWin32Classic.cs: Use cached objects instead of creating them
23935         * TreeView.cs: Use cached objects instead of creating them
23936         
23937 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
23938
23939         * Control.cs: use Equals to compare the font since no == op
23940         * ScrollBar.cs: use Equals to compare the font since no == op
23941
23942 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
23943
23944         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
23945
23946 2005-04-01  Jackson Harper  <jackson@ximian.com>
23947
23948         * Binding.cs: Implement IsBinding.
23949         * BindingManagerBase.cs:
23950         * PropertyManager.cs:
23951         * CurrencyManager.cs: Add IsSuspended property.
23952
23953 2005-04-01  Jackson Harper  <jackson@ximian.com>
23954
23955         * Binding.cs: Had some IsAssignableFrom calls backwards.
23956
23957 2005-04-01  Jackson Harper  <jackson@ximian.com>
23958
23959         * Binding.cs: Handle null data members when pulling data.
23960         * PropertyManager.cs: Handle the data member being a property that
23961         does not exist.
23962
23963 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
23964
23965         * DataGridTextBoxColumn.cs: fixes signature
23966         * DataGrid.cs: calls right constructor
23967
23968 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
23969
23970         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
23971         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
23972         * GridTableStylesCollection.cs: implements GridTableStylesCollection
23973         * DataGridTableStyle.cs: implements DataGridTableStyle
23974         * DataGridBoolColumn.cs: implements DataGridBoolColumn
23975         * DataGridTextBox.cs: implements DataGridTextBox
23976         * DataGridColumnStyle.cs: implements DataGridColumnStyle
23977
23978 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
23979
23980         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
23981
23982 2005-03-29  Peter Bartok  <pbartok@novell.com>
23983
23984         * Application.cs:
23985           - Properly implemented CompanyName property
23986           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
23987             returns a path that includes CompanyName, ProductName and
23988             Version (fixes bug #70330)
23989
23990 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
23991
23992         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
23993           fixes bug #72588.
23994
23995 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
23996
23997         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
23998         
23999           - Added ReadOnly CheckBox
24000           - Further refactoring: moved some code from Open-/SaveFileDialog
24001             to FileDialog
24002
24003 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
24004
24005         * OpenFileDialog.cs: Fixed CheckFileExists
24006         * FileDialog.cs:
24007           Moved FileView and DirComboBox outside FileDialog class.
24008           They can now be used outside FileDialog
24009
24010 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
24011
24012         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
24013         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
24014
24015 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
24016
24017         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
24018           - Added missing CreatePrompt property in SaveDialog
24019           - Overall SaveDialog handling should be better now
24020           - Added non standard ShowHiddenFiles property
24021           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
24022           - Added InitialDirectory and RestoreDirectory support
24023
24024 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
24025
24026         * FileDialog.cs: Made dirComboBox usable
24027
24028 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
24029
24030         * FileDialog.cs: Added Filter support (case sensitiv)
24031
24032 2005-03-24  Jackson Harper  <jackson@ximian.com>
24033
24034         * TabControl.cs: Need a couple more pixels for the lines.
24035
24036 2005-03-23  Jackson Harper  <jackson@ximian.com>
24037
24038         * TabControl.cs: Give the tab page focus when it is selected.
24039
24040 2005-03-23  Jackson Harper  <jackson@ximian.com>
24041
24042         * TabControl.cs: Account for the drawing of tabs borders when
24043         invalidating. If the slider was clicked dont do click detection on
24044         the tabs.
24045
24046 2005-03-23  Jackson Harper  <jackson@ximian.com>
24047
24048         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
24049
24050 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
24051
24052         * CategoryGridEntry.cs: Added
24053         * GridItem.cs: Added helper properties
24054         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
24055         * GridEntry.cs: Updated code for collection
24056         * PropertyGrid.cs: Cleaned up some formatting
24057         * PropertyGridView.cs: Added drop down functionality for enums.
24058         * GridItemCollection.cs: Added enumerator logic
24059         * PropertyGridEntry.cs: Added
24060
24061 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
24062
24063         * FileDialog.cs:
24064           - Removed unnecessary commented code
24065           - Fixed handling for entering the filename manually in the combobox
24066
24067 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
24068
24069         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
24070
24071 2005-03-18  Peter Bartok  <pbartok@novell.com>
24072
24073         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
24074           them being touching the border
24075
24076 2005-03-18  Peter Bartok  <pbartok@novell.com>
24077
24078         * TextControl.cs: Quick hack to center text better
24079
24080 2005-03-18  Peter Bartok  <pbartok@novell.com>
24081
24082         * ControlPaint.cs:
24083           - Don't throw NotImplemented exceptions, just print a notice once
24084             instead (requested by Miguel). This makes running existing SWF
24085             apps a bit easier
24086         * Control.cs:
24087           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
24088           - Added context menu trigger on right click
24089         * Panel.cs: Trigger invalidate on resize
24090         * StatusBar.cs:
24091           - Removed old double-buffer drawing
24092           - Added ResizeRedraw style to force proper update of statusbar
24093         * ListView.cs:
24094           - Removed debug output
24095         * ThemeWin32Classic.cs:
24096           - Fixed drawing of status bar, now draws Text property if there
24097             are no defined panels
24098
24099 2005-03-18  Jackson Harper  <jackson@ximian.com>
24100
24101         * ImageList.cs: When the image stream is set pull all the images
24102         from it.
24103         * ImageListStreamer.cs: Implement reading image list streams.
24104
24105 2005-03-18  Peter Bartok  <pbartok@novell.com>
24106
24107         * ThemeWin32Classic.cs (DrawPictureBox):
24108           - Fixed calculations for centered drawing
24109           - Fixed drawing for normal mode, not scaling the image on normal
24110
24111 2005-03-18  Peter Bartok  <pbartok@novell.com>
24112
24113         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
24114           textbox
24115         * FileDialog.cs:
24116           - Made Open/Save button the accept button for FileDialog
24117           - Tied the cancel button to the IButtonControl cancel button
24118           - Save/Open now properly builds the pathname
24119           - Now handles user-entered text
24120           - Preventing crash on right-click if no item is selected
24121           - Fixed Text property, now uses contents of textbox
24122           - Fixed SelectedText property, now just returns the text part that
24123             is selected in the text box
24124
24125 2005-03-18  Jackson Harper  <jackson@ximian.com>
24126
24127         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
24128         rect, make sure to de-adjust the interior rect after drawing the
24129         tab text.
24130
24131 2005-03-18  Peter Bartok  <pbartok@novell.com>
24132
24133         * MenuAPI.cs: Remove menu *before* executing selected action to
24134           prevent the menu from 'hanging around'
24135           
24136 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
24137
24138         * XplatUIOSX.cs: Implemented WorkingArea property
24139
24140 2005-03-17  Peter Bartok  <pbartok@novell.com>
24141
24142         * XplatUIX11.cs: Fixed menu coord calculations
24143         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
24144           for calculating offsets
24145
24146 2005-03-17  Peter Bartok  <pbartok@novell.com>
24147
24148         * Hwnd.cs: Do not consider menu presence for default client
24149           rectangle location/size
24150         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
24151           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
24152           translation functions
24153         * FileDialog.cs: Fixed (what I presume is a) typo
24154
24155 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
24156
24157         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
24158           X access (avoids X-Async errors)
24159
24160 2005-03-16  Jackson Harper  <jackson@ximian.com>
24161
24162         * TabControl.cs: Raise the SelectedIndexChanged event.
24163
24164 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
24165
24166         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
24167           - Removed vertical ToolBar and replaced it with a custom panel
24168             (desktop and home button already work)
24169           - Added Help button (some controls get resized or relocated then)
24170           - Draw correct text depending on Open or Save.
24171           - Fixed some typos...
24172
24173 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
24174
24175         * ScrollBar.cs:
24176           - Only change Maximum and Minimum when need it (bug fix)
24177
24178 2005-03-15  Peter Bartok  <pbartok@novell.com>
24179
24180         * Form.cs: Use Handle for icon, to trigger creation if
24181           the window does not yet exist
24182         * Control.cs:
24183           - CanSelect: Slight performance improvement
24184           - Focus(): Preventing possible recursion
24185           - Invalidate(): Removed ControlStyle based clear flag setting
24186           - WM_PAINT: fixed logic for calling OnPaintBackground
24187           - WM_ERASEBKGND: Fixed logic, added call to new driver method
24188             EraseWindowBackground if the control doesn't paint background
24189         * XplatUIWin32.cs:
24190           - Moved EraseWindowBackground() method to internal methods
24191           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
24192             is sent via SendMessage on BeginPaint call on Win32
24193         * XplatUIX11.cs:
24194           - Added EraseWindowBackground() method
24195           - No longer sends WM_ERASEBKGND on .Expose, but on call to
24196             PaintEventStart, which more closely matches Win32 behaviour
24197           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
24198           - Fixed SetFocus() to properly deal with client and whole windows
24199         * Hwnd.cs: Added ErasePending property
24200         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
24201         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
24202
24203 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
24204
24205         * XplatUIOSX.cs:
24206           - Fix hard loop when timers exist.
24207           - Fix bugs with middle and right click for 3 button mice.
24208
24209 2005-03-11  Peter Bartok  <pbartok@novell.com>
24210
24211         * XplatUIX11.cs:
24212           - get_WorkingArea: Need to call X directly, GetWindowPos only
24213             returns cached data now
24214           - Added sanity check to GetWindowPos hwnd usage
24215
24216 2005-03-11  Jackson Harper  <jackson@ximian.com>
24217
24218         * BindingManagerBase.cs: This method isn't used anymore as
24219         PullData now updates the data in the control.
24220
24221 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
24222
24223         * Form.cs: fixes menu drawing on X11
24224         * MenuAPI.cs:  fixes menu drawing on X11
24225
24226 2005-03-11  Peter Bartok  <pbartok@novell.com>
24227
24228         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
24229           from Jonathan Gilbert; should fix bug #73606
24230         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
24231           in Screen coordinates. Thanks, Jordi.
24232         * Form.cs: Added missing attribute
24233
24234 2005-03-11  Peter Bartok  <pbartok@novell.com>
24235
24236         * Form.cs:
24237           - Rudimentary Mdi support
24238           - Removed outdated FormParent code
24239           - Implemented lots of missing properties and methods, still missing
24240             transparency support
24241           - Added missing attributes
24242           - Implemented support for MaximumBounds
24243           - Added firing of various events
24244         * XplatUI.cs: Added SetIcon() method
24245         * XplatUIDriver.cs: Added SetIcon() abstract
24246         * XplatUIOSX.cs: Stubbed out SetIcon() method
24247         * XplatUIX11.cs:
24248           - Implemented SetIcon() support
24249           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
24250           - Switched to unix line endings
24251         * XplatUIWin32.cs:
24252           - Made POINT internal so for can access it as part of MINMAX
24253           - Implemented SetIcon() support
24254           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
24255             native Mdi support again, might have to go managed)
24256         * Control.cs: Now fires the StyleChanged event
24257         * MdiClient.cs: Added; still mostly empty
24258
24259 2005-03-10  Peter Bartok  <pbartok@novell.com>
24260
24261         * SaveFileDialog.cs: Added emtpy file
24262
24263 2005-03-08  Peter Bartok  <pbartok@novell.com>
24264
24265         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
24266           in turn triggers OnCreateContro) when creating a handle for the
24267           first time.
24268         * TextControl.cs: Fixed endless loop in certain cases when
24269           replacing the current selection
24270
24271 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
24272
24273         * ScrollBar.cs:
24274           - Honors NewValue changes in Scroll events allowing apps to change it
24275           - Adds First and Last Scroll events
24276           - Fixes Thumb events
24277
24278 2005-03-07  Peter Bartok  <pbartok@novell.com>
24279
24280         * Hwnd.cs: Added DefaultClientRectangle property
24281         * XplatUI.cs: Now using the X11 driver Where() method, which provides
24282           more detailed debug information
24283         * XplatUIX11.cs:
24284           - Fixed size-change feedback loop, where we would pull an old size
24285             off the queue and mistakenly change our window's size to an
24286             earlier value
24287           - Now compressing ConfigureNotify events, to reduce looping and
24288             redraw issues
24289         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
24290           is called
24291
24292 2005-03-07  Jackson Harper  <jackson@ximian.com>
24293
24294         * Binding.cs: Push data pushes from data -> property. Check if the
24295         property is readonly when attempting to set it.
24296
24297 2005-03-07  Jackson Harper  <jackson@ximian.com>
24298
24299         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
24300         instead of IsSubclassOf. Pulling data now sets the value on the
24301         control.
24302         * PropertyManager.cs:
24303         * CurrencyManager.cs: Just need to pull data when updating now,
24304         because PullData will set the value on the control.
24305
24306 2005-03-04  Jackson Harper  <jackson@ximian.com>
24307
24308         * Binding.cs: Implement data type parsing and converting on pulled
24309         data. TODO: Are there more ways the data can be converted?
24310
24311 2005-03-04  Jackson Harper  <jackson@ximian.com>
24312
24313         * Binding.cs: Support <Property>IsNull checks. Also bind to the
24314         controls Validating method so we can repull the data when the
24315         control loses focus.
24316
24317 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
24318
24319         * ColumnHeader.cs:
24320           - Fixes null string format
24321           
24322         * ListView.cs:
24323           - Adds enum type checks
24324           - Fixes redrawing and recalc need after changing some properties
24325           - Fixes on focus_item set after the event
24326           - Fixes adding columns after the control has been created
24327           
24328         * ThemeWin32Classic.cs:
24329           - Fixes CheckBox focus rectangle
24330           - Fixes ColumnHeader drawing
24331
24332
24333 2005-03-03  Jackson Harper  <jackson@ximian.com>
24334
24335         * Binding.cs: Bind to <Property>Changed events so we can detect
24336         when properties are changed and update the data.
24337
24338 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
24339
24340         * ImageList.cs:
24341           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
24342           - Fixes ImageList constructor with ImageList container
24343           - Fixes image scaling (wrong parameters at DrawImage)
24344
24345 2005-02-02  Jackson Harper  <jackson@ximian.com>
24346
24347         * Binding.cs: Make property searches case-insensitive. Eliminate
24348         some duplicated code.
24349
24350 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
24351
24352         * ComboBox.cs:
24353                 - Handle focus event
24354                 - Fix scrollbar events
24355                 - Discard highlighted item if remove it
24356                 - Fixes SelectedItem with strings
24357
24358 2005-03-01  Peter Bartok  <pbartok@novell.com>
24359
24360         * Control.cs:
24361           - Fixed Visible property, now follows (once again) parent chain
24362             to return false if any control in the chain is visible=false
24363           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
24364           - Fixed several places where is_visible instead of Visible was used
24365           - Implemented FIXME related to focus selection when setting focused
24366             control to be invisible
24367
24368         * XplatUIWin32.cs: Now using proper method to find out if window is
24369           visible. Thanks to Jordi for pointing it out
24370
24371 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
24372
24373         * ComboBox.cs: show/hide scrollbar instead of creating it
24374
24375 2005-02-27  Jackson Harper  <jackson@ximian.com>
24376
24377         * CurrencyManager.cs: Add PositionChanged stuff.
24378
24379 2005-02-27  Peter Bartok  <pbartok@novell.com>
24380
24381         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
24382         * XplatUIOSX.cs: Added GetMenuOrigin() stub
24383         * XplatUIWin32.cs: Implemented GetMenuOrigin()
24384         * XplatUIX11.cs:
24385           - Implemented GetMenuDC()
24386           - Implemented GetMenuOrigin()
24387           - Implemented ReleaseMenuDC()
24388           - Implemented generation of WM_NCPAINT message
24389           - Implemented generation and handling of WM_NCCALCSIZE message
24390         * Form.cs: Added debug helper message for Jordi's menu work
24391         * Hwnd.cs:
24392           - Modified ClientRect property; added setter, fixed getter to handle
24393             setting of ClientRect
24394           - Added MenuOrigin property
24395
24396 2005-02-26  Peter Bartok  <pbartok@novell.com>
24397
24398         * XplatUIX11.cs:
24399           - Destroys the caret if a window that's being destroyed contains it
24400           - Ignores expose events coming from the X11 queue for windows that
24401             already are destroyed
24402           - Now uses the proper variable for handling DestroyNotify, before we
24403             marked the wrong window as destroyed
24404           - Improved/added some debug output
24405
24406 2005-02-26  Peter Bartok  <pbartok@novell.com>
24407
24408         * X11Keyboard.cs: Fixes to work on 64bit systems
24409
24410 2005-02-26  Peter Bartok  <pbartok@novell.com>
24411
24412         * Control.cs:
24413           - Now calling OnHandleDestroyed from DestroyHandle()
24414             instead of Dispose()
24415           - Removed bogus call to controls.Remove() from DestroyHandle()
24416
24417 2005-02-26  Peter Bartok  <pbartok@novell.com>
24418
24419         * Control.cs: Properly destroy child windows when our handle is
24420           destroyed
24421
24422 2005-02-25  Peter Bartok  <pbartok@novell.com>
24423
24424         * XplatUI.cs:
24425           - Added 'DriverDebug' define to allow tracing XplatUI API calls
24426           - Alphabetized Static Methods and Subclasses
24427
24428         * XplatUIX11.cs:
24429           - Added XException class to allow custom handling of X11 exceptions
24430           - Created custom X11 error handler, tied into XException class
24431           - Added support for MONO_XEXCEPTIONS env var to allow the user
24432             to either throw an exception on X errors or continue running
24433             after displaying the error
24434           - Added handling of DestroyNotify message
24435           - Added handler for CreateNotify message (still disabled)
24436           - Improved (tried to at least) Where method to provide file and lineno
24437         * X11Structs.cs:
24438           - Added XErrorHandler delegate
24439           - Added XRequest enumeration (to suppor translation of errors)
24440
24441 2005-02-25  Jackson Harper  <jackson@ximian.com>
24442
24443         * PropertyManager.cs: Implement editing features
24444         * CurrencyManager.cs:
24445         * Binding.cs: First attempt at UpdateIsBinding
24446         * BindingManagerBase.cs: Call UpdateIsBinding before
24447         pushing/pulling data.
24448
24449 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
24450
24451         * MenuAPI.cs: Respect disabled items
24452         * ThemeWin32Classic.cs
24453                 - Caches ImageAttributes creation for DrawImageDisabled
24454                 - Fixes vertical menu line drawing
24455                 - Draws disabled arrows in disable menu items
24456
24457 2005-02-24  Peter Bartok  <pbartok@novell.com>
24458
24459         * Hwnd.cs:
24460           - Added UserData property to allow associating arbitrary objects
24461             with the handle
24462           - Fixed leak; now removing Hwnd references from static windows array
24463         * XplatUIWin32.cs:
24464           - Fixed Graphics leak in PaintEventEnd
24465           - Removed usage of HandleData, switched over to Hwnd class
24466         * HandleData.cs: Removed, obsoleted by Hwnd.cs
24467
24468 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
24469
24470         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
24471         * ScrollBar.cs: Fixes bug
24472         * TrackBar.cs: removes death code, clipping, mimize refreshes,
24473          keyboard navigation enhancements
24474
24475 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
24476
24477         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
24478         * GroupBox.cs: Add control styles
24479         * Label.cs: Add control styles
24480         * UpDownBase.cs: Add control styles
24481         * ListBox.cs: Add control styles
24482         * XplatUIWin32.cs: Fixes wrong parameter order
24483
24484
24485 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
24486
24487         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
24488
24489 2005-02-23  Jackson Harper  <jackson@ximian.com>
24490
24491         * PropertyManager.cs: Implement property binding. This doesn't
24492         seem to work yet though as (I think) there are some bugs in
24493         System.ComponentModel.PropertyDescriptor.
24494         * BindingContext.cs: Use new PropertyManager constructor.
24495
24496 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
24497
24498         * ProgressBar.cs: use clip region in ProgressBar
24499         * ThemeWin32Classic.cs: use clip region in ProgressBar
24500
24501 2004-02-22  Jackson Harper  <jackson@ximian.com>
24502
24503         * BindingsCollection.cs: Remove some debug code.
24504
24505 2005-02-22  Jackson Harper  <jackson@ximian.com>
24506
24507         * BindingContext.cs:
24508         * ControlBindingsCollection.cs:
24509         * CurrencyManager.cs:
24510         * Binding.cs:
24511         * BindingManagerBase.cs: Initial implementation
24512         * BindingsCollection.cs: Add an internal contains method that the
24513         BindingManagerBase uses to ensure bindings aren't added twice to
24514         the collection.
24515         * PropertyManager.cs: Stubbed out.
24516         * Control.cs:
24517         * ContainerControl.cs: Hook up databinding
24518         
24519 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
24520
24521         * XplatUIOSX.cs:
24522           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
24523           Fixed Invalidate/Update chain.
24524           Fixed tons of other minor bugs (this is almost a complete rewrite).
24525
24526 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
24527
24528         * ComboBox.cs: do subcontrol creation when the control is created
24529
24530 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
24531
24532         * Label.cs: fixes image drawing (image and imagelist)
24533         * ThemeWin32Classic.cs: cache brushes
24534         
24535 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
24536
24537         * Form.cs: Move menu drawing code to Theme class
24538         * ComboBox.cs: Move ComboBox drawing code to Theme class
24539         * MenuItem.cs: Move menu drawing code to Theme class
24540         * MenuAPI.cs: Move menu drawing code to Theme class
24541         * ThemeWin32Classic.cs: New methods
24542         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
24543         * ListBox.cs: Move Listbox drawing code to Theme class
24544         * Theme.cs: New methods
24545
24546 2005-02-20  Peter Bartok  <pbartok@novell.com>
24547
24548         * Control.cs:
24549           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
24550             only process mnemonics on those)
24551           - Fixed event sequence for key handling; first calling
24552             ProcessKeyEventArgs now
24553         * TextBoxBase.cs:
24554           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
24555             for processing non-character keys
24556           - Fixed WM_CHAR to generate proper event sequence before processing
24557         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
24558           generation
24559
24560 2005-02-19  Peter Bartok  <pbartok@novell.com>
24561
24562         * UserControl.cs: Added TextChanged event; added attributes
24563         * SizeGrip.cs: Implemented resizing and optional display of grip
24564         * Form.cs: Fixed attribute
24565         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
24566           Changed meaning of ScrollWindow bool argument; instead of the
24567           clear attribute (which will be true usually anyway), it gives the
24568           option of moving child controls as well.
24569         * XplatUIX11.cs:
24570           - Changed to match new ScrollWindow argument
24571           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
24572             now handles the implicit parent window a WM puts around us
24573         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
24574           to work)
24575         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
24576         * TreeView.cs: Adjusted to new ScrollWindow arguments
24577
24578 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
24579
24580         * Form.cs: Menu integration with non-client area
24581         * MenuItem.cs: Menu integration with non-client area
24582         * MenuAPI.cs: Menu integration with non-client area
24583
24584 2005-02-18  Peter Bartok  <pbartok@novell.com>
24585
24586         * MethodInvoker.cs: Added
24587         * MdiLayout.cs: Added
24588         * SendKeys.cs: Started implementation
24589         * ErrorIconAlignment.cs: Added
24590
24591 2005-02-18  Peter Bartok  <pbartok@novell.com>
24592
24593         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
24594         * Form.cs: Added handling for Menu-related Non-client messages
24595
24596 2005-02-17  Peter Bartok  <pbartok@novell.com>
24597
24598         * UpDownBase.cs: Fixed typo, compilation errors
24599         * DomainUpDown.cs: Fixed attribute value
24600
24601 2005-02-16  Miguel de Icaza  <miguel@novell.com>
24602
24603         * UpDownBase.cs: Attach entry events.
24604         Propagate events.
24605         Add ForeColor property, Focused, InterceptArrowKeys (interception
24606         does not work yet).
24607
24608 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
24609
24610         * Form.cs:
24611                 - Redraw non client are on Setmenu
24612                 - Calc proper menu starting point
24613
24614 2005-02-17  Peter Bartok  <pbartok@novell.com>
24615
24616         * Application.cs: Fixed message_filter check
24617
24618 2005-02-17  Peter Bartok  <pbartok@novell.com>
24619
24620         * Application.cs: Now calls registered message filters
24621         * DockStyle.cs: Fixed attribute
24622         * Form.cs: Fixed attribute
24623         * Menu.cs: Fixed attribute
24624         * ToolTip.cs: Fixed attribute
24625         * TreeNode.cs: Added missing attributes and arranged in regions
24626         * PropertyGrid.cs: Fixed signatures
24627         * TreeNodeCollection.cs: Added attributes
24628         * Splitter.cs: Added missing attributes; arranged into regions
24629         * TabPage.cs: Added missing attributes; arranged into regions
24630         * TextBoxBase.cs: Added missing attributes
24631         * TextBox.cs: Added missing attributes
24632         * ArrangeDirection.cs: Added missing attributes
24633         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
24634         * ToolBarButton.cs: Fixed attributes
24635         * AnchorStyles.cs: Fixed attribute
24636         * TrackBar.cs: Fixed attributes
24637         * TabControl.cs: Added missing attributes and arranged into regions
24638         * ToolBar.cs: Fixed attribute
24639         * StatusBar.cs: Fixed signature, organized into regions and added
24640           attributes
24641         * StatusBarPanel.cs: Fixed attributes
24642         * ContentsResizedEventArgs.cs: Implemented
24643         * ContentsResizedEventHandler.cs: Implemented
24644         * DateBoldEventArgs.cs: Implemented
24645         * DateBoldEventHandler.cs: Implemented
24646         * UpDownEventArgs.cs: Implemented
24647         * UpDownEventHandler.cs: Implemented
24648         
24649 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
24650
24651         * Form.cs: first Menu NC refactoring
24652         * MenuAPI.cs: first Menu NC refactoring
24653         
24654 2005-02-16  Peter Bartok  <pbartok@novell.com>
24655
24656         * ImeMode.cs: Added missing attributes
24657         * Menu.cs: Fixed attribute
24658         * GroupBox.cs: Fixed attribute
24659         * Label.cs: Fixed attribute
24660         * ColorDialog.cs (RunDialog): Removed TODO attribute
24661         * ComboBox.cs: Fixed attributes
24662         * ListControl.cs: Added missing attributes
24663         * PropertyGrid.cs: Fixed attributes
24664         * Control.cs: Fixed attributes
24665         * ListViewItem.cs: Added TypeConverter attribute
24666         * NotifyIcon.cs: Fixed attributes
24667         * ListView.cs: Fixed attributes
24668         * ButtonBase.cs: Fixed attribute
24669         * ImageList.cs: Added missing attributes
24670         * ContainerControl.cs: Fixed signature
24671         * CheckedListBox.cs: Fixed attribute; added missing attributes
24672         * Panel.cs: Fixed attributes
24673         * PropertyTabChangedEventArgs.cs: Added missing attribute
24674         * PropertyValueChangedEventArgs.cs: Added missing attribute
24675         * Binding.cs: Fixed attribute
24676         * ListViewItemConverter: Implemented ListViewSubItemConverter class
24677         * ListBox.cs: Fixed attribute; added missing attributes;
24678         * ScrollableControl.cs: Added missing attributes
24679         * PictureBox.cs: Added missing attributes; implemented missing property
24680         * DateTimePicker.cs: Added missing attributes
24681         * Theme.cs (ToolWindowCaptionHeight): Fixed type
24682         * MonthCalendar.cs: Fixed attributes
24683         * StatusBarPanel.cs: Added missing attributes
24684         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
24685
24686 2005-02-16  Peter Bartok  <pbartok@novell.com>
24687
24688         * TextBoxBase.cs: The previous method to enforce height yet remember
24689           the requested high was less than ideal, this is an attempt to do
24690           it better.
24691         * Control.cs: Added comment about possible problem
24692         * Copyright: Updated format
24693         * GridItemType.cs: Fixed swapped values
24694
24695 2005-02-15  Jackson Harper  <jackson@ximian.com>
24696
24697         * BaseCollection.cs: Use property so we never access an
24698         uninitialized list. Also initialize the list in the property.
24699
24700 2005-02-15  Peter Bartok  <pbartok@novell.com>
24701
24702         * GroupBox.cs (ProcessMnemonic): Implemented
24703         * Label.cs (ProcessMnemonic): Implemented
24704         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
24705           hotkeys
24706
24707 2005-02-15  Peter Bartok  <pbartok@novell.com>
24708
24709         * RadioButton.cs (ProcessMnemonic): Implemented
24710         * CheckBox.cs (ProcessMnemonic): Implemented
24711         * Control.cs:
24712           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
24713             handling
24714           - Added internal method to allow calling ProcessMnemonic from other
24715             controls
24716         * ContainerControl.cs:
24717           - Started support for handling validation chain handling
24718           - Implemented ProcessMnemonic support
24719           - Added Select() call to Active, to make sure the active control
24720             receives focus
24721         * Form.cs: Setting toplevel flag for Forms (this was lost in the
24722           FormParent rewrite)
24723         * ThemeWin32Classic.cs:
24724           - DrawCheckBox(): Fixed stringformat to show hotkeys
24725           - DrawRadioButton(): Fixed stringformat to show hotkeys
24726         * CommonDialog.cs: Removed WndProc override, not needed
24727
24728 2005-02-14  Peter Bartok  <pbartok@novell.com>
24729
24730         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
24731           missed those in the rewrite
24732
24733 2005-02-14  Miguel de Icaza  <miguel@novell.com>
24734
24735         * NumericUpDown.cs (Increment, ToString): Add.
24736         (DecimalPlaces): implement.
24737         
24738         Add attributes.
24739         
24740         * UpDownBase.cs: Add the designer attributes.
24741
24742 2005-02-13  Peter Bartok  <pbartok@novell.com>
24743
24744         * Panel.cs: Removed border_style, now in Control
24745         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
24746           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
24747
24748 2005-02-13  Peter Bartok  <pbartok@novell.com>
24749
24750         * MouseButtons.cs: Added missing attributes
24751         * XplatUIStructs.cs: Added enumeration for title styles
24752         * LeftRightAlignment.cs: Added missing attributes
24753         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
24754           it compatible with Graphics.FromHwnd()
24755         * SelectedGridItemChangedEventArgs.cs: Fixed property type
24756         * Keys.cs: Added missing attributes
24757         * SelectionRange.cs: Added missing attributes
24758         * SelectionRangeConverter.cs: Added
24759         * XplatUI.cs:
24760           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
24761             ReleaseMenuDC methods
24762           - Renamed ReleaseWindow to UngrabWindow
24763           - Added proper startup notice to allow version identification
24764         * Form.cs:
24765           - Added missing attributes
24766           - Removed FormParent concept
24767         * Label.cs: Removed border_style field, now in Control
24768         * RadioButton.cs: Now properly selects RadioButton when focus is
24769           received
24770         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
24771         * Control.cs:
24772           - Added missing attributes
24773           - Added borderstyle handling
24774           - Removed FormParent concept support
24775           - Fixed calls to XplatUI to match changed APIs
24776           - Fixed bug that would case us to use disposed Graphics objects
24777           - Removed unneeded internal methods
24778           - PerformLayout(): Fixed to handle DockStyle.Fill properly
24779           - SelectNextControl(): Fixed to properly check common parents
24780         * TextBoxBase.cs: Removed border_style field (now in Control)
24781         * MessageBox.cs:
24782           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
24783             fixed calculations for form size
24784           - Added support for localized strings and icons
24785           - Improved form size calculations, added border
24786         * ListView.cs: Removed border_style field (now in Control)
24787         * X11Structs.cs: Moved several structs from X11 driver here
24788         * X11Keyboard.cs: Changed debug message
24789         * Application.cs: Removed FormParent concept support
24790         * CommonDialog.cs:
24791           - Resetting end_modal flag
24792           - Removed FormParent concept support
24793         * NativeWindow.cs: Removed FormParent concept support
24794         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
24795           Client area and Non-Client whole window to allow support for WM_NC
24796           messages
24797         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
24798           prevent using it until it supports Hwnd as per Geoff Norton's request
24799         * ToolBar.cs: Fixed drawing, was not doing proper drawing
24800         * PictureBox.cs: Removed border_style field, now in Control
24801         * XplatUIWin32.cs: Added new driver methods
24802
24803 2005-02-12  Peter Bartok  <pbartok@novell.com>
24804
24805         * OpacityConverter.cs: Implemented
24806         * Hwnd.cs: Internal class to support drivers that need to emulate
24807           client area/non-client area window behaviour
24808
24809 2005-02-11  Peter Bartok  <pbartok@novell.com>
24810
24811         * KeysConverter.cs: Implemented
24812
24813 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
24814
24815         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
24816         * LinkLabel: Added missing attributes
24817         * MainMenu.cs: fixes ToString
24818         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
24819         * ListBox.cs: fixes event position
24820         * TrackBar.cs: adds missing attributes and events
24821         
24822 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
24823
24824         * MenuItem.cs: Use SystemInformation and bug fixes
24825         * MenuAPI.cs: Use SystemInformation and bug fixes
24826
24827 2005-02-09  Jackson Harper  <jackson@ximian.com>
24828
24829         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
24830         their keystate otherwise things like VK_MENU get stuck "on".
24831
24832 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
24833
24834         * ListBox.cs: Fixes AddRange bug
24835         
24836 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
24837
24838         * ProgressBar.cs
24839                 - Add missing attributes
24840                 - Add missing method
24841                 
24842         * CheckedListBox.cs: Added missing attributes
24843                 - Add missing attributes
24844                 - Remove extra method
24845         
24846         * ComboBox.cs: Added missing attributes
24847         * VScrollBar.cs: Added missing attributes
24848         * ScrollBar.cs:  Added missing attributes
24849         * ListBox.cs: Fixes signature, add missing consts
24850         * LinkArea.cs:   Added missing attributes
24851         
24852
24853 2005-02-08  Peter Bartok  <pbartok@novell.com>
24854
24855         * Menu.cs: Added missing attributes
24856         * MainMenu.cs: Added missing attributes
24857         * GroupBox.cs: Added missing attributes
24858         * Label.cs: Added missing attributes
24859         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
24860         * ColorDialog.cs:
24861           - Added Instance and Options properties
24862           - Added missing attributes
24863         * Cursor.cs: Made Serializable
24864         * NotifyIcon: Added missing attributes
24865         * MenuItem.cs: Added missing attributes
24866         * TextBoxBase.cs: Implemented AppendText() and Select() methods
24867         * Panel.cs: Added Missing attributes
24868         * MonthCalendar.cs: Fixed CreateParams
24869
24870 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
24871         
24872         * LinkLabel.cs:
24873                 - Fixes signature
24874                 - Fixes issues with links
24875                 - Adds the class attributes
24876
24877 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
24878         
24879         * ComboBox.cs:
24880                 - Fixes button when no items available in dropdown
24881                 - Fixes repainting problems
24882                 - Adds the class attributes
24883                 
24884 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
24885
24886         * XplatUIOSX.cs: Detect the menu bar and title bar height from
24887         the current theme.  Cache these on startup.
24888
24889 2005-02-07  Jackson Harper  <jackson@ximian.com>
24890
24891         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
24892         the scrollbar buttons when they are depressed.
24893
24894 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
24895
24896         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
24897         Get the display size from the main displayid.  We currently dont
24898         support multiple display configurations.
24899
24900 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
24901
24902         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
24903
24904 2005-02-07  Miguel de Icaza  <miguel@novell.com>
24905
24906         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
24907
24908 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
24909
24910         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
24911
24912 2005-02-04  Jackson Harper  <jackson@ximian.com>
24913
24914         * ThemeWin32Classic.cs: Respect the clipping rect when
24915         drawing. Only fill the intersection of clips and rects so there
24916         isn't a lot of large fills.
24917         * ScrollBar.cs: Pass the correct clipping rect to the theme
24918         engine. Remove some debug code.
24919
24920 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
24921         
24922         * DateTimePicker.cs:
24923                 - Fixed crash on DateTime.Parse, use Constructor instead
24924
24925 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
24926         
24927         * MenuItem.cs:
24928         * MenuAPI.cs:
24929                 - Owner draw support (MeasureItem and DrawItem)
24930
24931 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
24932         
24933         *  Menu.cs:
24934                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
24935                 - Fixes MenuItems.Add range
24936         * MenuItem.cs:
24937                 - MergeMenu and Clone and CloneMenu functions
24938
24939 2005-02-03  Jackson Harper  <jackson@ximian.com>
24940
24941         * ScrollBar.cs: Make abstract
24942         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
24943         is abstract.
24944
24945 2005-02-03  Jackson Harper  <jackson@ximian.com>
24946
24947         * ScrollBar.cs: First part of my scrollbar fixups. This removes
24948         all the unneeded refreshes and uses invalidates with properly
24949         computed rects.
24950
24951 2005-02-03  Peter Bartok  <pbartok@novell.com>
24952
24953         * ComponentModel.cs: Added
24954         * IDataGridEditingService.cs: Added
24955         * Timer.cs: Added missing attributes
24956         * ToolTip.cs: Added missing attributes
24957
24958 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
24959
24960         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
24961
24962 2005-02-03  Peter Bartok  <pbartok@novell.com>
24963
24964         * ListBox.cs: Added missing attributes
24965
24966 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
24967         
24968         * ListBox.cs:
24969                 - Fixes font height after font change
24970                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
24971                 
24972 2005-02-02  Peter Bartok  <pbartok@novell.com>
24973
24974         * HandleData.cs: Introduced static methods to allow class
24975           to be more self-contained and track it's own HandleData objects
24976         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
24977           HandleData to use new static methods
24978
24979 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
24980
24981         * Combobox.cs:
24982                 - Fixes default size and PreferredHeight
24983                 - Missing events
24984                 - ObjectCollection.Insert implementation
24985                 
24986         * ListControl.cs
24987                 - Fixes signature
24988         * ListBox.cs:
24989                 - Several fixes
24990                 - ObjectCollection.Insert implementation
24991                 - No selection after clean
24992                 - Small fixes
24993
24994 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
24995
24996         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
24997
24998 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
24999
25000         * Combobox.cs:
25001                 - Caches ItemHeight calculation for OwnerDrawVariable
25002                 - Handles dropdown properly
25003                 - Fixes several minor bugs
25004
25005 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
25006
25007         * ListBox.cs:
25008                 - Fixes 71946 and 71950
25009                 - Fixes changing Multicolumn on the fly
25010                 - Fixes keyboard navigation on Multicolumn listboxes
25011
25012 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
25013         
25014         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
25015         crash reporter log.
25016
25017 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
25018
25019         * XplatUIOSX.cs: Allow applications to actually exit.
25020
25021 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
25022
25023         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
25024         their parent at creation time rather than lazily later.  Fixes a major
25025         regression we were experiencing.
25026
25027 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
25028
25029         * ThemeWin32Classic.cs: more date time picker painting fixes
25030         * DateTimePicker.cs: more monthcalendar drop down fixes
25031         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
25032
25033 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
25034
25035         * ScrollBar.cs:
25036                 - When moving the thumb going outside the control should stop the moving
25037                 - Adds the firing of missing events
25038                 - Fixes no button show if Size is not specified
25039                 - End / Home keys for keyboard navigation
25040
25041 2005-01-30  Peter Bartok  <pbartok@novell.com>
25042
25043         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
25044           sanity check to prevent theoretical loop
25045         * XplatUIWin32.cs (SetVisible): Removed debug output
25046         * XplatUIX11.cs (SystrayChange): Added sanity check
25047         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
25048         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
25049           behaviour, valid until the X11 client window rewrite is done
25050         * TextBox.cs (ctor): Setting proper default foreground and background
25051           colors
25052
25053 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
25054
25055         * Theme: Added DrawDateTimePicker to interface
25056         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
25057         * DateTimePicker.cs: Created (still needs keys and painting code)
25058         * DateTimePickerFormat.cs: added
25059         * MonthCalendar.cs: fixed CreateParams for popup window mode
25060           
25061 2005-01-29  Peter Bartok  <pbartok@novell.com>
25062
25063         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
25064           this should also the calculations for ligher/darker
25065         * Theme.cs: Fixed defaults for ScrollBar widths/heights
25066
25067 2005-01-29  Peter Bartok  <pbartok@novell.com>
25068
25069         * ArrangeDirection.cs: Added
25070         * ArrangeStartingPositon.cs: Added
25071         * SystemInformation.cs: Implemented
25072         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25073           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
25074           used by SystemInformation class
25075         * X11Strucs.cs: Added XSizeHints structure
25076         * MenuAPI.cs:
25077           - Fixed CreateParams to make sure the menu window is always visible
25078           - TrackPopupMenu: Added check to make sure we don't draw the
25079             menu offscreen
25080
25081 2005-01-29  Peter Bartok  <pbartok@novell.com>
25082
25083         * HandleData.cs: Added method for altering invalid area
25084         * TextBoxBase.cs: Implemented TextLength
25085
25086 2005-01-28  Peter Bartok  <pbartok@novell.com>
25087
25088         * XplatUIX11.cs: Improvement over last patch, not sending
25089           the WM_PAINT directly anymore, instead we scroll any pending
25090           exposed areas and let the system pick out the WM_PAINT later
25091
25092 2005-01-28  Peter Bartok  <pbartok@novell.com>
25093
25094         * SWF.csproj: Deleted, no longer used. Instead,
25095           Managed.Windows.Forms/SWF.csproj should be used
25096         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
25097           directly, to avoid a potential race condition with the next
25098           scroll
25099
25100 2005-01-28  Peter Bartok  <pbartok@novell.com>
25101
25102         * XplatUI.cs: Made class internal
25103
25104 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
25105
25106         * CheckedListBox.cs:
25107                 - Draw focus
25108                 - Fixed Drawing
25109                 - Missing methods and events
25110
25111 2005-01-27  Peter Bartok  <pbartok@novell.com>
25112
25113         * Application.cs (Run): Don't use form if we don't have one
25114
25115 2005-01-27  Peter Bartok  <pbartok@novell.com>
25116
25117         * TextBoxBase.cs (get_Lines): Fixed index off by one error
25118
25119 2005-01-27  Peter Bartok  <pbartok@novell.com>
25120
25121         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
25122         * GridItem.cs: Added; Patch by Jonathan S. Chambers
25123         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
25124         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
25125         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
25126         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
25127         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
25128         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
25129         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
25130         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
25131         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
25132         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
25133
25134 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
25135
25136         * Combobox.cs:
25137                 - Draw focus on Simple Combobox
25138                 - Fixes drawing issues
25139                 - fixes 71834
25140
25141 2005-01-27  Peter Bartok  <pbartok@novell.com>
25142
25143         * Form.cs:
25144           - Place window in default location, instead of hardcoded 0/0
25145           - Send initial LocationChanged event
25146         * Control.cs:
25147           - UpdateBounds after creation to find out where the WM placed us
25148           - Make sure that if the ParentForm changes location the Form
25149             is notified
25150         * XplatUIX11.cs: XGetGeometry will not return the coords relative
25151             to the root, but to whatever the WM placed around us.
25152             Translate to root coordinates before returning toplevel
25153             coordinates
25154         * XplatUIWin32.cs: Removed debug output
25155         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
25156           flag to GetWindowPos, to allow translation of coordinates on X11
25157
25158 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
25159
25160         * ListBox.cs: connect LostFocus Event
25161
25162 2005-01-27  Peter Bartok  <pbartok@novell.com>
25163
25164         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
25165           XplatUIX11.cs: Extended the Systray API
25166         * Form.cs: Removed debug output
25167         * Application.cs: Fixed focus assignment, always need to call
25168           XplatUI.Activate() since Form.Activate() has rules that may
25169           prevent activation
25170         * NotifyIcon.cs: Should be complete now
25171         * ToolTip.cs: Worked around possible timer bug
25172
25173 2005-01-27  Jackson Harper  <jackson@ximian.com>
25174
25175         * TabControl.cs:
25176         - Only invalidate the effected tabs when the
25177         selected index changes. This reduces drawing and gets rid of some
25178         flicker.
25179         - Only refresh if the tabs need to be shifted, otherwise only
25180         invalidate the slider button.
25181         - On windows the tabs are not filled to right if the slider is
25182         visible.
25183         
25184 2005-01-27  Jackson Harper  <jackson@ximian.com>
25185
25186         * TabControl.cs: Only refresh on mouseup if we are showing the
25187         slider. Also only invalidate the button whose state has changed.
25188
25189 2005-01-26  Peter Bartok  <pbartok@novell.com>
25190
25191         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
25192         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
25193           and SystrayRemove() methods
25194         * XplatUIOSX.cs: Stubbed Systray methods
25195         * XplatUIX11.cs:
25196           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
25197             methods
25198           - Fixed broken XChangeProperty calls (marshalling messed up things)
25199         * X11Structs.cs: Added enums and structs required for Size hinting
25200         * NotifyIcon.cs: Added & implemented
25201
25202 2005-01-26  Jackson Harper  <jackson@ximian.com>
25203
25204         * TabControl.cs: Space vertically layed out tabs properly.
25205
25206 2005-01-26  Peter Bartok  <pbartok@novell.com>
25207
25208         * Form.cs (CreateClientParams): Always set the location to 0,0
25209           since we're a child window.
25210
25211         * Control.cs (SetVisibleCore): Always explicitly setting the location
25212           of a toplevel window, apparently X11 doesn't like to move windows
25213           while they're not mapped.
25214
25215 2005-01-26  Jackson Harper  <jackson@ximian.com>
25216
25217         * TabControl.cs: Implement FillToRight size mode with vertically
25218         rendered tabs.
25219
25220 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
25221
25222         * ControlPaint.cs, ThemeWin32Classic.cs
25223                 - Fixes DrawFocusRectangle
25224
25225 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
25226
25227         * MenuAPI.cs:
25228                 - MenuBar tracking only starts when item is first clicked
25229                 - Fixes menu hidding for multiple subitems
25230                 - Unselect item in MenuBar when item Executed
25231                 - Fixes bug 71495
25232
25233 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
25234
25235         * ListControl.cs:
25236                 - IsInputKey for ListBox
25237         * ListBox.cs:
25238                 - Focus item
25239                 - Shift and Control item selection
25240                 - Implement SelectionMode.MultiExtended
25241                 - Fixes RightToLeft
25242         * ComboBox.cs:
25243                 - IsInputKey implemented
25244                 - Do not generate OnTextChangedEdit on internal txt changes
25245                 
25246 2005-01-23  Peter Bartok  <pbartok@novell.com>
25247
25248         * AccessibleObject.cs: Partially implemented Select()
25249         * MonthCalendar.cs: Added missing attributes and events
25250         * Form.cs: Fixed CreateParams behaviour, now controls derived from
25251           form can properly override CreateParams.
25252         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25253           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
25254           Control performs Invalidate & Update
25255         * NativeWindow (CreateHandle): Added special handling for Form
25256           and Form.FormParent classes to allow overriding of From.CreateParams
25257         * Control.cs:
25258           - ControlNativeWindow: Renamed 'control' variable to more intuitive
25259             name 'owner'
25260           - ControlNativeWindow: Added Owner property
25261           - Removed usage of Refresh() on property changes, changed into
25262             Invalidate(), we need to wait until the queue is processed for
25263             updates, direct calls might cause problems if not all vars for
25264             Paint are initialized
25265           - Added call to UpdateStyles() when creating the window, to set any
25266             styles that CreateWindow might have ignored.
25267           - Added support for Form CreateParent overrides to UpdateStyles()
25268         * MessageBox.cs: Removed no longer needed FormParent override stuff,
25269           CreateParams are now properly overridable
25270         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
25271           CreateParams are now properly overridable
25272
25273 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
25274
25275         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
25276         OnTextBoxChanged.
25277
25278         Capture LostFocus and OnTextBoxChanged.  The later introduces a
25279         recursive invocation that I have not figured out yet.
25280
25281         Reset the timer when not using (it was accumulating).
25282
25283
25284         (OnTextBoxChanged): Set UserEdit to true here to track whether the
25285         user has made changes that require validation.
25286
25287         Reset changing to avoid loops.
25288
25289 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
25290
25291         * NumericUpDown.cs: Display value at startup.
25292
25293         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
25294         ValidateEditText.
25295
25296         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
25297         filled in.  Added some basic parsing of text.
25298
25299         Still missing the OnXXX method overrides, and figuring out the
25300         events that must be emitted.
25301
25302         * UpDownBase.cs: Handle UserEdit on the Text property.
25303         
25304 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
25305
25306         * ComboBox.cs:
25307           - Fixes IntegralHeight
25308           - ToString method
25309
25310 2005-01-21  Jackson Harper  <jackson@ximian.com>
25311
25312         * TabControl.cs: Set the SelectedIndex property when SelectedTab
25313         is set so that the page visibility is updated and the tabs are
25314         sized correctly.
25315
25316 2005-01-21  Jackson Harper  <jackson@ximian.com>
25317
25318         * TabControl.cs: Use cliping rectangle for blitting. Give the
25319         theme the clipping rect so we can do clipping while
25320         drawing. Remove some debug code.
25321
25322 2005-01-21  Jackson Harper  <jackson@ximian.com>
25323
25324         * TabPage.cs: Add a new method so tab pages can force the tab
25325         control to recalculate the tab page sizes.
25326         * TabControl.cs: UpdateOwner needs to make the tab control recalc
25327         sizes.
25328
25329 2005-01-20  Jackson Harper  <jackson@ximian.com>
25330
25331         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
25332
25333 2005-01-20  Jackson Harper  <jackson@ximian.com>
25334
25335         * TreeView.cs: Set the bounds for nodes properly. They were
25336         getting screwed up when checkboxes were not enabled, but images
25337         were.
25338
25339 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
25340
25341         * ListBox.cs:
25342                 - Owner draw support
25343                 - Fixes
25344                 
25345 2005-01-20  Jackson Harper  <jackson@ximian.com>
25346
25347         * XplatUIStructs.cs: More misc keys
25348         * X11Keyboard.cs: Ignore some control keys.
25349
25350 2005-01-20  Jackson Harper  <jackson@ximian.com>
25351
25352         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
25353         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
25354
25355 2005-01-19  Peter Bartok  <pbartok@novell.com>
25356
25357         * Control.cs: Un-selecting the control when it is loosing focus
25358
25359 2005-01-19  Jackson Harper  <jackson@ximian.com>
25360
25361         * TreeView.cs: Hook up to the text controls leave event so we can
25362         end editing when the users clicks outside the text box.
25363         
25364 2005-01-19  Jackson Harper  <jackson@ximian.com>
25365
25366         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
25367         get set in the conversion array.
25368
25369 2005-01-19  Peter Bartok  <pbartok@novell.com>
25370
25371         * Application.cs (ModalRun): Added a call to CreateControl to ensure
25372           focus is properly set
25373         * Button.cs:
25374           - Added missing attributes
25375           - removed styles, those are already set in the base class
25376         * ButtonBase.cs:
25377           - Added missing attributes
25378           - Added clip window styles
25379         * CheckBox.cs: Added missing attributes
25380         * CommonDialog.cs:
25381           - FormParentWindow.CreateParams: Added required clip styles
25382         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
25383           also filters modifier keys
25384         * MessageBox.cs:
25385           - Added assignment of Accept and Cancel button to enable Enter
25386             and Esc keys in MessageBox dialogs
25387           - FormParentWindow.CreateParams: Added required clip styles
25388         * RadioButton.cs: Added missing attributes
25389         * TextControl.cs: No longer draws selection if control does not
25390           have focus
25391         * TextBoxBase.cs:
25392           - Now draws simple rectangle around test area to make it obvious
25393             there's a control. This is a hack until we properly support borders
25394           - A few simple fixes to support selections better, now erases selected
25395             text when typing, and resets selection when using movement keys
25396
25397 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
25398
25399         * UpDownBase.cs: Added some new properties.
25400
25401         * DomainUpDown.cs: Implement a lot to get my test working.
25402
25403 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
25404
25405         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
25406
25407 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
25408
25409         * OSXStructs (WindowAttributes): Fixed csc complaints
25410
25411 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
25412
25413         * XplayUIOSX.cs:
25414           OSXStructs.cs: Initial refactor to move enums and consts into
25415           OSXStructs and use them in the driver for greater readability.
25416
25417 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
25418
25419         * XplatUIOSX.cs: Initial support for Standard Cursors.
25420         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
25421
25422 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
25423
25424         * ComboBox.cs: ability to change style when the ctrl is already
25425         created, missing methods and events, bug fixes, signature fixes
25426
25427 2005-01-19  Peter Bartok  <pbartok@novell.com>
25428
25429         * Cursors.cs (ctor): Added ctor to fix signature
25430
25431 2005-01-18  Peter Bartok  <pbartok@novell.com>
25432
25433         * Button.cs: Implemented DoubleClick event
25434         * ButtonBase.cs:
25435           - Fixed keyboard handling to behave like MS, where the press of
25436             Spacebar is equivalent to a mousedown, and the key release is
25437             equivalent to mouseup. Now a spacebar push will give the same
25438             visual feedback like a mouse click.
25439           - Added missing attributes
25440           - Added ImeModeChanged event
25441           - Added support for generating DoubleClick event for derived classes
25442         * CheckBox.cs:
25443           - Implemented DoubleClick event
25444           - Added missing attributes
25445         * CommonDialog.cs: Added missing attribute
25446         * ContextMenu.cs: Added missing attributes
25447         * RadioButton.cs:
25448           - AutoChecked buttons do not allow to be unselected when clicked
25449             (otherwise we might end up with no selected buttons in a group)
25450           - Added missing attributes
25451           - Implemented DoubleClickEvent
25452         * ThreadExceptionDialog.cs: Enabled TextBox code
25453
25454 2005-01-18  Peter Bartok  <pbartok@novell.com>
25455
25456         * Form.cs: Removed debug output
25457         * Button.cs: Added support for DoubleClick method
25458
25459 2005-01-18  Peter Bartok  <pbartok@novell.com>
25460
25461         * Form.cs:
25462           - Added method to parent window that allows triggering size
25463             calculations when a menu is added/removed
25464           - set_Menu: Cleaned up mess from early days of Form and Control,
25465             now properly triggers a recalc when a menu is added/removed
25466           - Added case to select form itself as focused form if no child
25467             controls exist
25468           - Added PerformLayout call when showing dialog, to ensure properly
25469             placed controls
25470         * Control.cs:
25471           - Select(): Made internal so Form can access it
25472           - Focus(): Only call Xplat layer if required (avoids loop), and sets
25473             status
25474         * Application.cs (Run): Removed hack and calls PerformLayout instead
25475           to trigger calculation when Form becomes visible
25476
25477 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
25478
25479         * ComboBox.cs: fixes for ownerdraw
25480
25481 2005-01-18  Peter Bartok  <pbartok@novell.com>
25482
25483         * TextControl.cs:
25484           - Sentinel is no longer static, each Document gets it's own, this
25485             avoids locking or alternatively overwrite problems when more
25486             than one text control is used simultaneously.
25487           - Switched to use Hilight and HilightText brushes for text selection
25488
25489         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
25490
25491 2005-01-18  Peter Bartok  <pbartok@novell.com>
25492
25493         * Control.cs:
25494           - Hooked up the following events:
25495                 o ControlAdded
25496                 o ControlRemoved
25497                 o HandleDestroyed
25498                 o ImeModeChanged
25499                 o ParentChanged
25500                 o TabStopChanged
25501                 o Invalidated
25502                 o SystemColorsChanged
25503                 o ParentFontChanged
25504                 o Move
25505           - Removed debug output
25506           - Added a call to the current theme's ResetDefaults when a color change
25507             is detected
25508         * Form.cs: Now setting the proper ImeMode
25509         * Theme.cs: Defined a method to force recreation of cached resources
25510           and rereading of system defaults (ResetDefaults())
25511         * ThemeWin32Classic.cs: Added ResetDefaults() stub
25512
25513 2005-01-17  Peter Bartok  <pbartok@novell.com>
25514
25515         * Control.cs: Added missing attributes
25516
25517 2005-01-17  Jackson Harper  <jackson@ximian.com>
25518
25519         * TreeNode.cs: Implement editing. Add missing properties selected
25520         and visible.
25521         * TreeView.cs: Implement node editing. Also some fixes to use
25522         Invalidate (invalid area) instead of Refresh when selecting.
25523
25524 2005-01-17  Peter Bartok  <pbartok@novell.com>
25525
25526         * Control.cs:
25527           - Implemented InvokeGotFocus() method
25528           - Implemented InvokeLostFocus() method
25529           - Implemented InvokePaint() method
25530           - Implemented InvokePaintBackground() method
25531           - Implemented InvokeClick() method
25532           - Implemented FindForm() method
25533           - Implemented RectangleToClient() method
25534           - Implemented ClientToRectangle() method
25535           - Implemented ResetBackColor() method
25536           - Implemented ResetCursor() method
25537           - Implemented ResetFont() method
25538           - Implemented ResteForeColor() method
25539           - Implemented ResetImeMode() method
25540           - Implemented ResetLeftToRight() method
25541           - Implemented ResetText() method
25542           - Implemented Scale() methods
25543           - Implemented ScaleCore() method
25544           - Implemented Update() method
25545           - Removed unused variables
25546           - Stubbed AccessibilityNotifyClients and
25547             ControlAccessibleObject.NotifyClients() methods (dunno what to do
25548             with those yet)
25549           - Now setting proper default for RightToLeft property
25550           - Fixed bug in SetClientSizeCore that would cause windows to get
25551             really big
25552           - Now sending Click/DoubleClick events
25553           - Now selecting controls when left mouse button is clicked on
25554             selectable control
25555         * AccessibleEvents.cs: Added
25556         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
25557         * XplatUIOSX.cs: Stubbed UpdateWindow() method
25558         * XplatUIWin32.cs: Implemented UpdateWindow() method
25559         * XplatUIX11.cs: Implemented UpdateWindow() method
25560         * Form.cs: Removed stray semicolon causing CS0162 warning
25561         * ThemeWin32Classic.cs: Fixed unused variable warnings
25562         * ScrollableControl.cs: Now calls base method for ScaleCore
25563         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
25564           style to avoid interference with internal click handler (which is
25565           different than standard Control click handling)
25566         * RadioButton.cs:
25567           - Now unchecks all sibling radio buttons when control is
25568             selected (Fixes #68756)
25569           - Removed internal tabstop variable, using the one inherited from
25570             Control
25571
25572 2005-01-17  Jackson Harper  <jackson@ximian.com>
25573
25574         * NavigateEventArgs.cs: Fix base type.
25575         * LinkLabel.cs: Sig fix
25576         
25577 2005-01-17  Jackson Harper  <jackson@ximian.com>
25578
25579         * TreeView.cs: Only invalidate the effected nodes bounds when
25580         selecting nodes.
25581
25582 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
25583
25584         * XplatUIWin32.cs: fixes Win32 marshaling
25585         * XplatUIX11.cs: fixes method signature
25586
25587 2005-01-17  Peter Bartok  <pbartok@novell.com>
25588
25589         * XplatUIX11.cs: Clean up resources when we no longer need them
25590
25591 2005-01-17  Peter Bartok  <pbartok@novell.com>
25592
25593         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
25594           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
25595           and DestroyCursor() methods.
25596         * Cursor.cs: Partially implemented, now supports standard cursors;
25597           still contains some debug code
25598         * Cursors.cs: Implemented class
25599         * Control.cs:
25600           - WndProc(): Added handling of WM_SETCURSOR message, setting the
25601             appropriate cursor
25602           - Implemented Cursor property
25603           - Replaced break; with return; more straightforwar and possibly
25604             faster
25605           - Now properly setting the result for WM_HELP
25606         * X11Structs.cs: Added CursorFontShape enum
25607         * XplatUIStructs.cs:
25608           - Added StdCursor enum (to support DefineStdCursor() method)
25609           - Added HitTest enum (to support sending WM_SETCURSOR message)
25610         * XplatUIX11.cs:
25611           - Now sends the WM_SETCURSOR message
25612           - Implemented new cursor methods
25613         * XplatUIOSX.cs: Stubbed new cursor methods
25614         * XplatUIWin32.cs:
25615           - Implemented new cursor methods
25616           - Added GetSystemMetrics function and associated enumeration
25617
25618 2005-01-15  Peter Bartok  <pbartok@novell.com>
25619
25620         * Control.cs:
25621           - WndProc(): Now handles EnableNotifyMessage
25622           - SelectNextControl(): Fixed bug where if no child or sibling
25623             controls exist we looped endlessly
25624
25625 2005-01-14  Jackson Harper  <jackson@ximian.com>
25626
25627         * TreeView.cs: Recalculate the tab pages when a new one is added
25628         so that the proper bounding rects are created.
25629
25630 2005-01-14  Jackson Harper  <jackson@ximian.com>
25631
25632         * TreeView.cs: Draw a gray box instead of a grip in the lower
25633         right hand corner when there are both horizontal and vertical
25634         scroll bars.
25635
25636 2005-01-14  Jackson Harper  <jackson@ximian.com>
25637
25638         * Control.cs: When erasing backgrounds use FromHwnd instead of
25639         FromHdc when there is a NULL wparam. This occurs on the X driver.
25640         * XplatUIX11.cs: Set the wparam to NULL.
25641
25642 2005-01-13  Jackson Harper  <jackson@ximian.com>
25643
25644         * PictureBox.cs: Implement missing methods (except ToString, need
25645         to test that on windows) and events. When visibility is changed we
25646         need to redraw the image because the buffers are killed. When size
25647         is changed refresh if the sizemode needs it.
25648
25649 2005-01-13  Peter Bartok  <pbartok@novell.com>
25650
25651         * Control.cs (SelectNextControl): Was using wrong method to select
25652           a control
25653
25654 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
25655
25656         * ComboBox.cs: fixes dropstyle
25657
25658 2005-01-13  Peter Bartok  <pbartok@novell.com>
25659
25660         * Form.cs:
25661           - Implemented Select() override
25662           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
25663           - Now sets keyboard focus on startup
25664         * Control.cs (SelectNextControl): Now properly handles directed=true
25665         * TextBoxBase.cs:
25666           - WndProc: Now passes tab key on to base if AcceptTabChar=false
25667           - Added (really bad) focus rectangle (mostly for testing)
25668         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
25669           to enforce redraw on focus changes
25670         * ContainerControl.cs:
25671           - Fixed detection of Shift-Tab key presses
25672           - Fixed traversal with arrow keys
25673         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
25674           gonna keep this or if it's complete yet
25675         
25676 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
25677
25678         * ComboBox.cs: missing properties, fixes
25679
25680 2005-01-13  Peter Bartok  <pbartok@novell.com>
25681
25682         * Panel.cs (ctor): Setting Selectable window style to off
25683         * Splitter.cs (ctor): Setting Selectable window style to off
25684         * GroupBox.cs (ctor): Setting Selectable window style to off
25685         * Label.cs (ctor): Setting Selectable window style to off
25686
25687 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
25688
25689         * UpDownBase.cs (InitTimer): If the timer has been already
25690         created, enable it.
25691
25692         Use a TextBox instead of a Label.
25693
25694 2005-01-12  Jackson Harper  <jackson@ximian.com>
25695
25696         * TreeView.cs: Refresh the tree after sorting the nodes. Always
25697         draw the connecting node lines (when ShowLines is true).
25698         * TreeNode.cs: The nodes index can now be updated. This is used
25699         when a node collection is sorted.
25700         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
25701         insert or an existing unsorted node collection can be sorted.
25702         
25703 2005-01-12  Peter Bartok  <pbartok@novell.com>
25704
25705         * ContainerControl.cs: Implemented ProcessDialogKeys()
25706
25707 2005-01-12  Peter Bartok  <pbartok@novell.com>
25708
25709         * Control.cs:
25710           - Implemented SelectNextControl() method
25711           - Several focus related bug fixes
25712           - Fixed Docking calculations to match MS documentation and
25713             behaviour
25714
25715 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
25716
25717         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
25718         bug fixes
25719
25720 2005-01-12  Peter Bartok  <pbartok@novell.com>
25721
25722         * Control.cs:
25723           - Fixed broken Contains() method
25724           - Implemented GetNextControl() method. Finally. This is the pre-
25725             requisite for focus handling.
25726
25727 2005-01-12  Peter Bartok  <pbartok@novell.com>
25728
25729         * OSXStrucs.cs: Added
25730
25731 2005-01-12  Peter Bartok  <pbartok@novell.com>
25732
25733         * XplatUIWin32.cs:
25734           - Removed PeekMessageFlags
25735           - Implemented SetWindowStyle() method
25736         * XplatUIStructs.cs: Added PeekMessageFlags
25737         * X11Structs: Added missing border_width field to XWindowChanges struct
25738         * XplatUIX11.cs:
25739           - PeekMessage: Now throws exception if flags which are not yet
25740             supported are passed
25741           - Implemented SetWindowStyle() method
25742           - Fixed SetZOrder to handle AfterHwnd properly
25743         * XplatUI.cs: Added SetWindowStyle() method
25744         * XplatUIDriver.cs: Added SetWindowStyle() abstract
25745         * Control.cs:
25746           - Implemented UpdateStyles() method
25747           - Implemented UpdateZOrder() method
25748         * XplatUIOSX.cs: Added SetWindowStyle() stub
25749
25750 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
25751
25752         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
25753         button mouse).
25754
25755
25756 2005-01-11  Jackson Harper  <jackson@ximian.com>
25757
25758         * TreeView.cs: Still need to draw lines to siblings even if out of
25759         the current node is out of the clip.
25760
25761 2005-01-11  Jackson Harper  <jackson@ximian.com>
25762
25763         * TreeView.cs: When setting the hbar/vbar/grip position use
25764         SetBounds so that perform layout is only called once. Also suspend
25765         and resume layout so layout is only done once for all controls.
25766         - Removed some debug fluff
25767         * SizeGrip.cs: Call base implmentation in overriding methods.
25768         - When visibility is changed the drawing buffers are killed so we
25769         need to redraw.
25770
25771 2005-01-11  Jackson Harper  <jackson@ximian.com>
25772
25773         * TreeView.cs: Calculate the open node count while drawing. This
25774         saves us an entire tree traversal for every paint operation. Use
25775         a member var for the open node count so less vars are passed around.
25776
25777 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
25778
25779         * MonthCalendar.cs:
25780         - fixed selection to use mousemove, not mouse polling on timer
25781         * ThemeWin32Classic.cs
25782         - removed redundant unused variable "no_more_content"
25783         
25784 2005-01-11  Peter Bartok  <pbartok@novell.com>
25785
25786         * XplatUIX11.cs (DoEvents): Needs to return when no more events
25787           are pending, so it now calls PeekMessage instead of GetMessage;
25788           implemented a incomplete version of PeekMessage
25789         
25790 2005-01-11  Peter Bartok  <pbartok@novell.com>
25791
25792         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
25793           I18n issues
25794         * TextBoxBase.cs: Added sending of TextChanged event
25795
25796 2005-01-10  Jackson Harper  <jackson@ximian.com>
25797
25798         * TreeView.cs: Try not to draw outside the clipping rectangle on
25799         each node element.
25800
25801 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
25802
25803         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
25804
25805 2005-01-10  Jackson Harper  <jackson@ximian.com>
25806
25807         * TreeView.cs:
25808         - Implement fast scrolling. Now only the newly
25809         exposed nodes are drawn and the old image is moved using the
25810         XplatUI::ScrollWindow method.
25811         - Factor in height of nodes when calculating whether or not the
25812         node is in the clipping rect.
25813
25814 2005-01-10  Jackson Harper  <jackson@ximian.com>
25815
25816         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
25817
25818 2005-01-10  Peter Bartok  <pbartok@novell.com>
25819
25820         * Application.cs: Added temporary hack to resolve all our resize
25821           required issues on startup. This will get fixed properly at
25822           some point in the future
25823
25824 2005-01-10  Jackson Harper  <jackson@ximian.com>
25825
25826         * SizeGrip.cs: New internal class that is used as a sizing
25827         grip control...hence the name.
25828
25829 2005-01-10  Peter Bartok  <pbartok@novell.com>
25830
25831         * Control.cs: Implemented proper TabIndex handling, now assigning
25832           a tabindex when a control is added to a container
25833         * GroupBox.cs (ctor): Now sets the Container style bit, required
25834           for Control.GetNextControl()
25835
25836 2005-01-09  Jackson Harper  <jackson@ximian.com>
25837
25838         * TextBoxBase.cs: Clear window when scrolling (fixes build).
25839
25840 2005-01-09  Peter Bartok <pbartok@novell.com>
25841
25842         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
25843           XplatUIX11.cs: Added ability to control ScrollWindow expose and
25844           an overload for ScrollWindow to allow only scrolling a rectangle
25845
25846 2005-01-09  Peter Bartok <pbartok@novell.com>
25847
25848         * Form.cs:
25849           - Implemented SetDesktopBounds method
25850           - Implemented SetDesktopLocation method
25851
25852 2005-01-08  Jackson Harper  <jackson@ximian.com>
25853
25854         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
25855         the node count has changed, this removes to VScroll::Refresh calls
25856         when drawing.
25857
25858 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
25859
25860         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
25861
25862 2005-01-07  Jackson Harper  <jackson@ximian.com>
25863
25864         * TreeNode.cs: Just update the single node when it is
25865         checked. Don't refresh after toggling, the Expand/Collapse already
25866         handles this.
25867         * TreeView.cs: Respect clipping a little more when drawing. Try
25868         not to redraw things that don't need to be redrawn. Just hide the
25869         scrollbars when they are no longer needed instead of removing
25870         them, so they don't have to be created again and again.
25871         
25872 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
25873
25874         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
25875         coordinates to window space to place the caret properly, FIXED.
25876         Implement GetWindowState & SetWindowState
25877
25878 2005-01-06  Peter Bartok <pbartok@novell.com>
25879
25880         * Form.cs:
25881           - Implemented ClientSize property
25882           - Implemented DesktopBounds property
25883           - Implemented DesktopLocation property
25884           - Implemented IsRestrictedWindow property
25885           - Implemented Size property
25886           - Implemented TopLevel property
25887           - Implemented FormWindowState property
25888         * Control.cs:
25889           - Implemented GetTopLevel() method
25890           - Implemented SetTopLevel() method
25891         * X11Structs.cs (Atom):
25892           - Added AnyPropertyType definition
25893           - Added MapState definiton and updated XWindowAttribute struct
25894         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
25895         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
25896         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
25897         * XplatUIWin32.cs:
25898           - Implemented GetWindowState() and SetWindowState() methods
25899           - Fixed Win32GetWindowLong return type
25900         * XplatUIX11.cs:
25901           - Introduced central function for sending NET_WM messages
25902           - Implemented GetWindowState() and SetWindowState() methods
25903         * TextBoxBase.cs (set_Lines):
25904           - Now uses Foreground color for text added via Text property (Duh!)
25905           - Added code to remember programmatically requested size (fixes
25906             behaviour when Multiline is set after Size)
25907           - Added AutoSize logic
25908
25909 2005-01-06  Jackson Harper  <jackson@ximian.com>
25910
25911         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
25912
25913 2005-01-06  Jackson Harper  <jackson@ximian.com>
25914
25915         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
25916         set to less then 0.
25917
25918 2005-01-06  Jackson Harper  <jackson@ximian.com>
25919
25920         * ScrollableControl.cs: Lazy init the scrollbars.
25921         
25922 2005-01-06  Jackson Harper  <jackson@ximian.com>
25923
25924         * Theme.cs: Speed up getting pens and solid brushes, by using
25925         their ARGB as a hash instead of tostring and not calling Contains.
25926
25927 2005-01-06  Peter Bartok <pbartok@novell.com>
25928
25929         * Form.cs:
25930           - Implemented OnActivated and OnDeactivate event trigger
25931           - Implemented Activate() method
25932           - Fixed ShowDialog() to activate the form that was active before
25933             the dialog was shown
25934         * XplatUIX11.cs:
25935           - Added global active_window var that tracks the currently active
25936             X11 window
25937           - Now always grabs Property changes from the root window to always
25938             catch changes on the active window property
25939           - Added code to PropertyNotify handler to send Active/Inactive
25940             messages when state changes. This puts X11 and Win32 en par on
25941             WM_ACTIVATE notifications (except for double notifications when
25942             the user clicks away from our modal window to another one of our
25943             windows)
25944
25945 2005-01-05  Jackson Harper  <jackson@ximian.com>
25946
25947         * ImageList.cs: Implment ctor
25948
25949 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
25950
25951         * XplatUIOSX.cs: Implement Activate/SetTopmost
25952
25953 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
25954
25955         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
25956
25957 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
25958
25959         * XplatUIOSX.cs: Implement GetActive/SetFocus.
25960
25961 2005-01-05  Peter Bartok <pbartok@novell.com>
25962
25963         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
25964           XplatUIOSX.cs: Added GetActive method to return the currently
25965           active window for the application (or null, if none is active)
25966         * Form.cs:
25967           - Implemented ActiveForm
25968           - Commented out owner assignment for modal dialogs (causes problems
25969             on Win32, since the owner will be disabled)
25970           - Reworked some Active/Focus handling (still incomplete)
25971         * CommonDialog.cs: Commented out owner assignment for modal dialogs
25972           (causes problems on Win32, since the owner will be disabled)
25973         * IWin32Window: Added ComVisible attribute
25974
25975 2005-01-05  Peter Bartok <pbartok@novell.com>
25976
25977         * ToolTip.cs (WndProc): Enable setting focus now that we have the
25978           required XplatUI functions.
25979
25980 2005-01-05  Peter Bartok <pbartok@novell.com>
25981
25982         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
25983           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
25984           to implement focus and activation handling; still incomplete and
25985           with debug output
25986
25987 2005-01-04  Peter Bartok <pbartok@novell.com>
25988
25989         * TextBoxBase.cs: Changed access level for Document property to
25990           match switch to internal for TextControl
25991
25992 2005-01-04  Peter Bartok <pbartok@novell.com>
25993
25994         * AccessibleObject: Added ComVisible attribute
25995
25996 2005-01-04  Jackson Harper  <jackson@ximian.com>
25997
25998         * X11Keyboard.cs: Remove unneeded var.
25999
26000 2005-01-04  Jackson Harper  <jackson@ximian.com>
26001
26002         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
26003         but PAINT.
26004         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
26005         ClientMessage. This makes apps exit cleanly (more often).
26006         
26007 2005-01-04  Jackson Harper  <jackson@ximian.com>
26008
26009         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
26010         handling focus, return correct colors and fonts,
26011         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
26012         handle selection, horizontal scrolling, and mouse interaction.
26013
26014 2005-01-04  Peter Bartok <pbartok@novell.com>
26015
26016         * ICommandExecutor.cs: Added
26017         * IDataGridColumnStyleEditingNotificationService.cs: Added
26018         * IFeatureSupport.cs: Added
26019         * IFileReaderService.cs: Added
26020         * IDataObject.cs: Added ComVisible attribute
26021         * AmbientProperties.cs: Added
26022         * BaseCollection.cs: Added missing attributes
26023         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
26024         * BaseCollection.cs: Added missing attributes
26025         * Binding.cs: Added TypeConverter attribute
26026         * BindingContext.cs: Added DefaultEvent attribute
26027         * BindingsCollection.cs: Added DefaultEvent attribute
26028         * Button.cs: Added DefaultValue attribute
26029         * DragEventArgs.cs: Added ComVisible attribute
26030         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
26031         * KeyEventArgs.cs: Added ComVisible attribute
26032         * KeyPressEventArgs.cs: Added ComVisible attribute
26033         * MouseEventArgs.cs: Added ComVisible attribute
26034         * NavigateEventArgs.cs: Added
26035         * NavigateEventHandler.cs: Added
26036         * FeatureSupport.cs: Added
26037         * OSFeature.cs: Added
26038         * Theme.cs: Added abstract Version property to support OSFeature
26039         * ThemeWin32Classic.cs: Added Version property to
26040           support OSFeature.Themes
26041         * ProgressBar.cs: Removed OnPaintBackground override, not required since
26042           the proper styles to avoid background drawing are set, also doesn't
26043           match MS signature
26044         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
26045         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
26046         * ScrollEventArgs.cs: Added ComVisible attribute
26047         * SplitterEventArgs.cs: Added ComVisible attribute
26048         * AccessibleSelection.cs: Added Flags attribute
26049         * Appearance.cs: Added ComVisible attribute
26050         * Border3DSide.cs: Added ComVisible attribute
26051         * Border3DStyle.cs: Added ComVisible attribute
26052         * BorderStyle.cs: Added ComVisible attribute
26053         * DragAction.cs: Added ComVisible attribute
26054         * ErrorBlinkStyle.cs: Added
26055         * ScrollEventType.cs: Added ComVisible attribute
26056         * AnchorStyles.cs: Added Editor attribute
26057         * DockStyle.cs: Added Editor attribute
26058         * HorizontalAlignment.cs: Added ComVisible attribute
26059         * HelpEventArgs.cs: Added ComVisible attribute
26060         * PaintEventArgs.cs: Added IDisposable
26061
26062 2005-01-04  Peter Bartok <pbartok@novell.com>
26063
26064         * TextControl.cs: Switched Line, LineTag and Document classes to
26065           internal
26066
26067 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
26068
26069         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
26070         Simple mode, fixes, IntegralHeight, etc.
26071
26072 2005-01-04  Peter Bartok <pbartok@novell.com>
26073
26074         * TextBoxBase.cs: Using proper font variable now
26075
26076 2005-01-04  Peter Bartok <pbartok@novell.com>
26077
26078         * Form.cs (ShowDialog): Set parent to owner, if provided
26079         * GroupBox.cs: Removed unused vars
26080         * TextControl.cs:
26081           - Added GetHashCode() for Document and LineTag classes
26082           - Removed unused variables
26083           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
26084             to allow translation between continuous char position and line/pos
26085         * CheckBox.cs: Removed vars that are provided by base class
26086         * RadioButton.cs: Removed vars that are provided by base class, added
26087           new keyword where required
26088         * LinkLabel.cs: Added new keyword where required
26089         * Control.cs (WndProc): Removed unused variable
26090         * TextBoxBase.cs:
26091           - Finished SelectionLength property
26092           - Implemented SelectionStart property
26093           - Implemented Text property
26094           - Removed unused vars
26095         * MessageBox.cs: Added new keyword where required
26096         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
26097           WndProc signature
26098         * MenuAPI.cs: Added new keyword where required
26099         * ButtonBase.cs: Removed vars that are provided by base class, added
26100           new keyword where required
26101         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
26102           argument to double, to allow compiling with csc 2.0 (Atsushi ran
26103           into this)
26104         * Application.cs (Run): Now triggers the ThreadExit event
26105         * CommonDialog.cs: Added new keyword where required; now properly sets
26106           parent (owner) for dialog
26107         * XplatUIX11.cs: Commented out unused vars
26108         * StatusBar.cs: Fixed signature for Text property
26109         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
26110
26111 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
26112
26113         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
26114         TrackBar.cs, MonthCalendar.cs: remove unused vars
26115
26116 2005-01-03  Jackson Harper  <jackson@ximian.com>
26117
26118         * ThemeWin32Classic.cs:
26119         * X11Keyboard.cs: Remove unused vars.
26120
26121 2005-01-03  Peter Bartok  <pbartok@novell.com>
26122
26123         * TextBox.cs:
26124           - set_Text: Tied into TextControl
26125           - set_TextAlignment: Tied into TextControl
26126         * TextControl.cs:
26127           - Added alignment properties and implemented alignment handling
26128             and drawing (still has a bug, not generating proper expose events)
26129           - Added new Line() constructor to allow passing the line alignment
26130           - Fixed selection setting, properly handling end<start now
26131           - Added aligment considerations to RecalculateDocument()
26132         * TextBoxBase.cs:
26133           - Now properly enforces control height for single line controls
26134           - Added support for CharacterCasing
26135           - Added IsInputKey override
26136           - Fixed Keys.Enter logic
26137           - Added SetBoundsCore override
26138           - Fixed mouse selection handling
26139
26140 2005-01-03  Jackson Harper  <jackson@ximian.com>
26141
26142         * TreeView.cs:
26143           - Collapse and uncheck all nodes when CheckBoxes is disabled.
26144           - Checkboxes are always aligned to the bottom of the node,
26145           regardless of item height.
26146           - Use the node bounds to draw the text so we can center it when
26147           the item height is greater then the font height.
26148           - Node::Bounds are only the text part of the node.
26149         * TreeNode.cs: New method to combine collapsing and unchecking all
26150           nodes recursively.
26151
26152 2005-01-02  Jackson Harper  <jackson@ximian.com>
26153
26154         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
26155         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
26156         tree when a check is changed. TODO: Only refresh the checked node.
26157
26158 2004-12-30  Jackson Harper  <jackson@ximian.com>
26159
26160         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
26161         * TreeNode.cs: When collapsing make sure to never collapse the
26162         root node.
26163
26164 2004-12-29  Jackson Harper  <jackson@ximian.com>
26165
26166         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
26167         
26168 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
26169
26170         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
26171
26172 2004-12-28  Peter Bartok  <pbartok@novell.com>
26173
26174         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
26175           not yet assigned
26176
26177 2004-12-28  Peter Bartok  <pbartok@novell.com>
26178
26179         * Control.cs (WndProc): Added WM_HELP handler, now generates
26180           HelpRequested event
26181         * Form.cs: Added HelpButton property and required support code
26182         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
26183
26184 2004-12-28  Peter Bartok  <pbartok@novell.com>
26185
26186         * CommonDialog.cs:
26187           - Made DialogForm.owner variable internal
26188           - Added check to ensure owner form is set before setting
26189             owner properties in CreateParams
26190
26191 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
26192
26193         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
26194           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
26195           GetCursorPos.  Fix major visibility issues.  Rework the windowing
26196           system to support borderless/titleless windows (implements menus).
26197           Fix GetWindowPos.  Implement initial background color support for
26198           views.
26199
26200 2004-12-28  Peter Bartok  <pbartok@novell.com>
26201
26202         * Form.cs (get_CreateParams): Make sure we have an owner before using
26203           the owner variable. Implement proper default if no owner exists
26204
26205 2004-12-28  Peter Bartok  <pbartok@novell.com>
26206
26207         * In preparation for making Managed.Windows.Forms the default build target
26208           for System.Windows.Forms, the following stubbed files were added.
26209           Dialogs are currently being implemented by contributors and are only
26210           short-term place holders.
26211         * ColorDialog.cs: Initial check-in (minmal stub)
26212         * DataGrid.cs: Initial check-in (minimal stub)
26213         * DataGridLineStyle.cs: Initial check-in (minimal stub)
26214         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
26215         * DataGridTableStyle.cs: Initial check-in (minimal stub)
26216         * FontDialog.cs: Initial check-in (minimal stub)
26217         * FileDialog.cs: Initial check-in (minimal stub)
26218         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
26219         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
26220         * OpenFileDialog: Initial check-in (minimal stub)
26221         * IComponentEditorPageSite.cs: Initial check-in
26222         * Splitter.cs: Initial check-in (for Jackson)
26223         * SplitterEventArgs.cs: Initial check-in (for Jackson)
26224         * SplitterEventHandler.cs: Initial check-in (for Jackson)
26225         * TextBox.cs: Initial check-in; still needs some wiring to
26226           TextControl backend
26227         * Form.cs: Implemented ControlBox property
26228         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
26229         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
26230         * TextControl.cs: Added selection functionality; added todo header
26231         * TextBoxBase.cs:
26232           - Implemented Lines property
26233           - Implemented TextHeight property
26234           - Implemented SelectedText property
26235           - Implemented SelectionLength property
26236           - Implemented SelectAll method
26237           - Implemented ToString method
26238           - Removed and cleaned up some debug code
26239           - Implemented (still buggy) mouse text selection
26240
26241 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
26242
26243         * ComboBox.cs: Complete DropDownList implementation, fixes.
26244
26245 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
26246
26247         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
26248         * ComboBoxStyle.cs: ComboBoxStyle enum
26249         * ComboBox.cs: Initial work on ComboBox control
26250
26251 2004-12-21  Peter Bartok  <pbartok@novell.com>
26252
26253         * Control.cs (ctor, CreateParams): Moved setting of is_visible
26254           forward so that anything that creates a window gets the default,
26255           also no longer uses Visible property in CreateParams to avoid
26256           walking up the parent chain and possibly get the wrong visible
26257           status. Fixed IsVisible to no longer walk up to the parent.
26258
26259 2004-12-21  Peter Bartok  <pbartok@novell.com>
26260
26261         * Form.cs (ShowDialog): Unset modality for the proper window
26262  
26263 2004-12-20  Peter Bartok  <pbartok@novell.com>
26264
26265         * CommonDialog.cs: Initial check-in
26266
26267 2004-12-20  Peter Bartok  <pbartok@novell.com>
26268
26269         * Control.cs (Visible): Now uses the parent window instead of the
26270           client area window for the property
26271
26272         * Form.cs
26273           - ShowDialog(): Now uses the proper window for modality
26274           - The default visibility state for the form parent is now false. This
26275             will prevent the user from seeing all the changes to the form and
26276             its controls before the application hits Application.Run()
26277           - Removed some stale commented out code
26278
26279         * NativeWindow.cs:
26280           - Added FindWindow() method to have a method to check for existence
26281             of a window handle
26282           - Added ability to override default exception handling (for example
26283             when debugging with VS.Net; to do this the ExternalExceptionHandler
26284             define must be set
26285           - Removed some useless debug output
26286
26287         * XplatUIX11.cs:
26288           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
26289             not working as expected
26290           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
26291             property to allow switching back to the modal window if focus is
26292             given to another one of our windows (Application Modal)
26293           - Now only sets override_redirect if we create a window
26294             without WS_CAPTION
26295           - Moved EventMask selection before mapping of newly created window
26296             so we can catch the map event as well
26297           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
26298           - Added various Atom related DllImports
26299           - Implemented Exit() method
26300           - .ctor() : No longer shows window if WS_VISIBLE is not defined
26301             in the CreateParams
26302
26303         * MessageBox.cs: Now properly deals with the FormParent window by
26304           providing an override the FormParent CreateParams property to
26305           set as POPUP instead of OVERLAPPED window.
26306
26307 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
26308
26309         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
26310         Minor code cleanup.
26311
26312 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
26313         
26314         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
26315
26316 2004-12-18  Peter Bartok  <pbartok@novell.com>
26317
26318         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
26319           implementing SetModal() method
26320
26321 2004-12-18  Peter Bartok  <pbartok@novell.com>
26322
26323         * X11Structs.cs (XGCValues): Fixed type of function element
26324         * XplatUI.cs: Added ScrollWindow() method
26325         * XplatUIDriver.cs: Added ScrollWindow() abstract
26326         * XplatUIWin32.cs: Implemented ScrollWindow() method
26327         * XplatUIX11.cs: Implemented ScrollWindow() method
26328         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
26329
26330 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
26331
26332         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
26333         Some more keyboard support (INCOMPLETE)
26334
26335 2004-12-17  Peter Bartok  <pbartok@novell.com>
26336
26337         * TextControl.cs:
26338         - Added color attribute to line tags.
26339         - Added color argument to all functions dealing with tags
26340         - Added color argument support to various functions
26341         - Fixed miss-calculation of baseline/shift in certain circumstances
26342
26343         * TextBoxBase.cs: Added new color option to test code
26344
26345 2004-12-17  Jackson Harper  <jackson@ximian.com>
26346
26347         * TreeNode.cs:
26348         * MonthCalendar.cs: Signature fixes
26349
26350 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
26351
26352         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
26353         keyboard event moved it.  Create a new graphics context for each paint resolves this
26354
26355 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
26356
26357         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
26358         Make caret exist and go blink blink.  Initial keyboard support.
26359         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
26360         works.
26361
26362 2004-12-17  Jackson Harper  <jackson@ximian.com>
26363
26364         * XplatUIStructs.cs: Updated set of virtual keycodes.
26365         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
26366
26367 2004-12-17  Jackson Harper  <jackson@ximian.com>
26368
26369         * XplatUIX11.cs: Prune old keyboard code.
26370
26371 2004-12-17  Jackson Harper  <jackson@ximian.com>
26372
26373         * XplatUIX11.cs: When generating mouse wparams get the modifier
26374         keys from the ModifierKeys property.
26375
26376 2004-12-17  Jackson Harper  <jackson@ximian.com>
26377
26378         * X11Keyboard.cs: Send up/down input when generating
26379         messages. Remove some unused vars.
26380
26381 2004-12-17  Jackson Harper  <jackson@ximian.com>
26382
26383         * TabControl.cs:
26384         * TreeView.cs: get rid of warnings.
26385
26386 2004-12-17  Jackson Harper  <jackson@ximian.com>
26387
26388         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
26389
26390 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
26391
26392         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
26393           CheckedListBox.cs: Implementation
26394
26395 2004-12-17  Peter Bartok  <pbartok@novell.com>
26396
26397         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
26398
26399 2004-12-16  Peter Bartok  <pbartok@novell.com>
26400
26401         * TextControl.cs:
26402           - InsertCharAtCaret(): Fixed start pos fixup
26403           - CaretLine_get: No longer derives the line from the tag, the tag
26404             could be stale if lines in the document have been added or deleted
26405           - RebalanceAfterDelete(): Fixed bug in balancing code
26406           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
26407           - Line.Streamline(): Now can also elminate leading empty tags
26408           - DumpTree(): Added a few more tests and prevented exception on
26409             uninitialized data
26410           - Added Debug section for Combining lines
26411           - Delete(): Now copies all remaining properties of a line
26412           
26413         * TextBoxBase.cs:
26414           - Left mousebutton now sets the caret (and middle button still acts
26415             as formatting tester, which must go away soon)
26416           - Added Debug section for Deleting/Combining lines
26417           - Fixed calculations for UpdateView after Combining lines
26418
26419 2004-12-16  Peter Bartok  <pbartok@novell.com>
26420
26421         * TextControl.cs: Now properly aligns text on a baseline, using the
26422           new XplatUI.GetFontMetrics() method. Simplified several calculations
26423         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
26424           defined
26425
26426 2004-12-16  Peter Bartok  <pbartok@novell.com>
26427
26428         * XplatUI.cs: Added GetFontMetrics() method
26429         * XplatUIDriver.cs: Added GetFontMetrics() abstract
26430         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
26431           into libgdiplus, our private GetFontMetrics function
26432         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
26433         * XplatUIWin32.cs: Implemented GetFontMetrics() method
26434
26435 2004-12-16  Jackson Harper  <jackson@ximain.com>
26436
26437         * XplatUIStruct.cs: Add enum for dead keys
26438         * X11Keyboard.cs: Map and unmap dead keys.
26439
26440 2004-12-16  Jackson Harper  <jackson@ximian.com>
26441
26442         * X11Keyboard.cs: Detect and use the num lock mask.
26443
26444 2004-12-16  Peter Bartok  <pbartok@novell.com>
26445
26446         * Control.cs (CreateGraphics): Added check to make sure the
26447           handle of the window exists before calling Graphics.FromHwnd()
26448
26449 2004-12-16  Peter Bartok  <pbartok@novell.com>
26450
26451         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
26452           contains a lot of code that's not supposed to be there for the
26453           real thing, but required for developing/testing the textbox
26454           backend.
26455
26456 2004-12-16  Peter Bartok  <pbartok@novell.com>
26457
26458         * TextControl.cs:
26459         - Fixed Streamline method
26460         - Added FindTag method to Line
26461         - Added DumpTree method for debugging
26462         - Added DecrementLines() method for deleting lines
26463         - Fixed UpdateView to update the cursor to end-of-line on single-line
26464           updates
26465         - Added PositionCaret() method
26466         - Fixed MoveCaret(LineDown) to move into the last line, too
26467         - Added InsertChar overload
26468         - Fixed InsertChar tag offset calculations
26469         - Added DeleteChar() method
26470         - Added Combine() method for folding lines
26471         - Fixed Delete() method, no longer allocates wasted Line object and
26472           now copies all properties when swapping nodes
26473         - Delete() method now updates document line counter
26474
26475 2004-12-15  Jackson Harper  <jackson@ximian.com>
26476
26477         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
26478         * X11Keyboard.cs: Expose the currently selected modifier keys
26479         through a property.
26480
26481 2004-12-15  Peter Bartok  <pbartok@novell.com>
26482
26483         * TextControl.cs: Initial check-in. Still incomplete
26484
26485 2004-12-15  Jackson Harper  <jackson@ximian.com>
26486
26487         * TreeNode.cs:
26488         * TreeView.cs: Fix build on csc (second time today ;-))
26489
26490 2004-12-15  Jackson Harper  <jackson@ximian.com>
26491
26492         * TreeView.cs: Store the treenodes plus/minus box bounds when it
26493         is calculated and use this for click testing.
26494         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
26495
26496 2004-12-15  Jackson Harper  <jackson@ximian.com>
26497
26498         * TreeView.cs: Pass the nodes image index to the image list when
26499         drawing that image.
26500
26501 2004-12-15  Jackson Harper  <jackson@ximian.com>
26502
26503         * X11Keyboard.cs: Set messages hwnd.
26504         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
26505         post_message calls.
26506
26507 2004-12-15  Jackson Harper  <jackson@ximian.com>
26508
26509         * X11Keyboard.cs: Fix to compile with csc.
26510         
26511 2004-12-15  Jackson Harper  <jackson@ximian.com>
26512
26513         * X11Structs.cs: Add key mask values
26514         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
26515         * X11Keyboard.cs: New file - Extrapolates and interpolates key
26516         down/up foo into WM_CHAR foo
26517         * KeyboardLayouts.cs: Common keyboard layouts
26518         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
26519         post messages into the main queue.
26520
26521 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
26522
26523         * Button.cs: implement ProcessMnemonic
26524         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
26525           brushes everytime
26526         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
26527         * ButtonBase.cs: Show HotkeyPrefix (not the &)
26528
26529 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
26530         
26531         * MonthCalendar.cs: Implemented click-hold for next/previous month
26532           and date selection
26533           
26534 2004-12-11  Peter Bartok  <pbartok@novell.com>
26535
26536         * X11Structs.cs:
26537           - Added XKeyboardState (moved from XplatUIX11.cs)
26538           - Added XCreateGC related enums and structures
26539           - Added GXFunction for XSetFunction
26540
26541         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
26542
26543         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
26544           CaretVisible() calls
26545
26546         * ToolTip.cs: Added code to prevent stealing focus from app windows
26547
26548         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
26549           DestroyCaret, SetCaretPos and CaretVisible)
26550
26551         * XplatUIX11.cs:
26552           - Added implementation for caret functions
26553           - Moved hover variables into a struct, to make it a bit easier
26554             on the eyes and to debug
26555           - Removed XKeyboardState (moved to XplatUIX11.cs)
26556           - Moved Keyboard properties into the properties region
26557
26558         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
26559           call to get a graphics context for our control
26560
26561         * XplatUIOSX.cs: Added empty overrides for the new caret functions
26562
26563         * TreeView.cs: Fixed bug. No matter what color was set it would always
26564           return SystemColors.Window
26565
26566         * XplatUIWin32.cs: Implemented caret overrides
26567
26568 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
26569
26570         * ListBox.cs: fire events, implement missing methods and properties,
26571         sorting.
26572
26573 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
26574
26575         * MonthCalendar.cs: invalidation bug fixing
26576         * ThemeWin32Classic.cs: paint fixing
26577
26578 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
26579
26580         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
26581         prepare the CGContextRef there now.
26582
26583 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
26584
26585         * MonthCalendar.cs:
26586           - optimisationL only invalidate areas that have changed
26587         * ThemeWin32Classic.cs:
26588           - only paint parts that intersect with clip_area
26589
26590 2004-12-09  Peter Bartok  <pbartok@novell.com>
26591
26592         * Application.cs: Undid changes from r37004 which cause problems
26593         on X11
26594
26595 2004-12-09  Ravindra  <rkumar@novell.com>
26596
26597         * ToolBar.cs: Added support for displaying ContextMenu
26598         attached to a button on ToolBar.
26599         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
26600         property.
26601
26602 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
26603
26604         * Label.cs: autosize works in text change and removes unnecessary
26605         invalidate
26606
26607 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
26608
26609         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
26610         remove warnings
26611
26612 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
26613
26614         * XplatUIOSX.cs: Added mouse move/click/grab support
26615         Remove some debugging WriteLines not needed anymore.
26616         Add window resizing/positioning.
26617         Fix visibility on reparenting.
26618
26619 2004-12-08  Peter Bartok  <pbartok@novell.com>
26620
26621         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
26622
26623 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
26624
26625         * XplatUIOSX.cs: Initial checkin
26626         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
26627
26628 2004-12-03  Ravindra <rkumar@novell.com>
26629
26630         * ListView.cs: Added some keybindings and fixed scrolling.
26631         ScrollBars listen to ValueChanged event instead of Scroll
26632         Event. This would let us take care of all changes being
26633         done in the scrollbars' values programmatically or manually.
26634         * ListView.cs (CanMultiselect): Added a check for shift key.
26635         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
26636         * ListViewItem.cs (Clone): Fixed. We need to make a copy
26637         of ListViewSubItemCollection as well.
26638
26639 2004-12-06  Peter Bartok <pbartok@novell.com>
26640
26641         * Control.cs (Parent): Added check and exception to prevent
26642         circular parenting
26643
26644 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
26645
26646         * ListBox.cs: implemented clipping, selection single and multiple,
26647         bug fixing
26648
26649 2004-12-03  Ravindra <rkumar@novell.com>
26650
26651         * ListView.cs (ListView_KeyDown):
26652         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
26653         when CTRL key is pressed.
26654         * ListViewItem.cs (Selected): Fixed setting the property.
26655
26656 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
26657
26658         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
26659
26660         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
26661         MinimizeBox, ShowInTaskbar, TopMost properties.
26662
26663         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
26664         will be implemented).
26665
26666 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
26667
26668         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
26669
26670         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
26671         tests.
26672         
26673         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
26674         
26675         * TreeView.cs: BackColor is Colors.Window.
26676
26677 2004-12-01  Jackson Harper  <jackson@ximian.com>
26678
26679         * TreeView.cs: When resizing the tree if the user is making it
26680         smaller we don't get expose events, so we need to handle adding
26681         the horizontal scrollbar in the size changed handler as well as
26682         the expose handler.
26683
26684 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
26685
26686         * DrawItemState.cs: fixes wrong enum values
26687
26688 2004-12-01  Jackson Harper  <jackson@ximian.com>
26689
26690         * TreeView.cs: Resize the hbar as well as the vbar on resize.
26691
26692 2004-12-01  Jackson Harper  <jackson@ximian.com>
26693
26694         * NodeLabelEditEventArgs.cs:
26695         * NodeLabelEditEventHandler.cs:
26696         * OpenTreeNodeEnumerator.cs:
26697         * TreeNode.cs:
26698         * TreeNodeCollection.cs:
26699         * TreeView.cs:
26700         * TreeViewAction.cs:
26701         * TreeViewCancelEventArgs.cs:
26702         * TreeViewCancelEventHandler.cs:
26703         * TreeViewEventArgs.cs:
26704         * TreeViewEventHandler.cs: Initial implementation.
26705
26706 2004-12-01  Ravindra <rkumar@novell.com>
26707
26708         * ListView.cs (CalculateListView): Fixed scrolling related
26709         calculations. Also, removed some debug statements from other
26710         places.
26711         * ListViewItem.cs: Changed access to 'selected' instance variable
26712         from private to internal.
26713         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
26714
26715 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
26716
26717         * ThemeWin32Classic.cs: remove cache of brush and pens for
26718         specific controls and use the global system, fixes scrollbutton
26719         bugs (for small sizes, disabled, etc)
26720         
26721         * ScrollBar.cs: does not show the thumb for very small controls
26722         (as MS) and allow smaller buttons that the regular size
26723
26724 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
26725
26726         * UpDownBase.cs: Add abstract methods for the interface.
26727         Add new virtual methods (need to be hooked up to TextEntry when it
26728         exists).
26729         Add override methods for most features.
26730         Computes the size, forces the height of the text entry.
26731
26732         * NumericUpDown.cs: Put here the current testing code.
26733
26734         * Set eol-style property on all files that do not have mixed line
26735         endings, to minimize the future problems.  There are still a few
26736         files with mixed endings, and someone should choose whether they
26737         want to move it or not.
26738
26739 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
26740
26741         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
26742         System.Colors
26743         
26744 2004-11-30  Ravindra <rkumar@novell.com>
26745
26746         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
26747         drawing and replaced use of SystemColors by theme colors.
26748         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
26749         * ListView.cs (ListViewItemCollection.Add): Throw exception when
26750         same ListViewItem is being added more than once.
26751
26752 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
26753
26754         * MonthCalendar.cs:
26755           - ControlStyles love to make the control not flicker
26756           
26757 2004-11-30  Peter Bartok  <pbartok@novell.com>
26758
26759         * CharacterCasing.cs: Added
26760
26761 2004-11-29  Peter Bartok  <pbartok@novell.com>
26762
26763         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
26764           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
26765           I am removing these files as they conflict with already completed
26766           work. While it is fantastic to get contributions to MWF, I
26767           respectfully ask that everyone please coordinate their contributions
26768           through mono-winforms-list or #mono-winforms at this time. We're
26769           explicitly avoiding stubbing and don't want controls that don't have
26770           their basic functionality implemented in svn. Please also see
26771           http://www.mono-project.com/contributing/winforms.html
26772
26773
26774 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
26775
26776         * Application.cs (ModalRun): Don't hang after exit.
26777
26778         * Theme.cs: New TreeViewDefaultSize property.
26779
26780         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
26781         with less hardcoded SystemColors constant.
26782         Implemented TreeViewDefaultSize.
26783
26784         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
26785         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
26786
26787
26788 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
26789
26790         * MonthCalendar.cs:
26791           - Fix NextMonthDate and PrevMonthDate click moving calendar
26792
26793 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
26794
26795         * MonthCalendar.cs:
26796           - Fix usage of ScrollChange Property when scrolling months
26797
26798 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
26799
26800         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
26801          - Fixes menu destroying
26802          - Support adding and removing items on already created menus
26803
26804 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
26805
26806         * MonthCalendar.cs:
26807           - Re-worked all bolded dates handling to match win32
26808         * ThemeWin32Classic.cs:
26809           - Fixed rendering with bolded dates
26810
26811 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
26812
26813         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
26814         - Horizontal scroolbar
26815         - Multicolumn
26816         - Fixes
26817
26818
26819 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
26820
26821         * MonthCalendar.cs:
26822           - Fix Usage of MaxSelectionCount from SelectionRange
26823           - Fixed Shift + Cursor Selection
26824           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
26825           - Fixed normal cursor selection to be compat with win32
26826           - Fixed Shift + Mouse Click selection
26827
26828 2004-11-24  Peter Bartok <pbartok@novell.com>
26829
26830         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
26831         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
26832         * XplatUIX11.cs:
26833           - CreatedKeyBoardMsg now updates keystate with Alt key
26834           - Added workaround for timer crash to CheckTimers, Jackson will
26835             develop a proper fix and check in later
26836           - Implemented DispatchMessage
26837           - Removed calling the native window proc from GetMessage (call
26838             now moved to DispatchMessage)
26839
26840         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
26841           the keydata (Fixes bug #69831)
26842
26843         * XplatUIWin32.cs:
26844           - (DispatchMessage): Switched to return IntPtr
26845           - Added DllImport for SetFocus
26846
26847 2004-11-24  Ravindra <rkumar@novell.com>
26848
26849         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
26850         background drawing.
26851         * ListViewItem.cs: Fixed various properties, calculations
26852         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
26853         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
26854         and some internal properties. Fixed MouseDown handler and Paint
26855         method.
26856
26857 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
26858
26859         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
26860
26861 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
26862
26863         * ContainerControl.cs: correct accidental check in of local changes
26864
26865 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
26866
26867         * ThemeWin32Classic.cs:
26868                 - Fixed Drawing Last month in grid (sometimes not showing)
26869         * MonthCalendar.cs:
26870                 - Fixed title width calculation bug (makeing title small)
26871
26872 2004-11-23  Peter Bartok <pbartok@novell.com>
26873
26874         * XplatUIX11.cs:
26875           - Added generation of WM_MOUSEHOVER event
26876           - Added missing assignment of async_method atom
26877           - Fixed WM_ERASEBKGND; now only redraws the exposed area
26878
26879 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
26880
26881         * ThemeWin32Classic.cs:
26882                 - Fixed Drawing of today circle when showtodaycircle not set
26883                 - fixed drawing of first and last month in the grid (gay dates)
26884         * MonthCalendar.cs:
26885                 - Fixed Drawing of today circle
26886                 - Fixed drawing of grady dates
26887                 - Fixed HitTest for today link when ShowToday set to false
26888                 - Fixed DefaultSize to obey ShowToday
26889
26890 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
26891
26892         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
26893         * System.Windows.Forms/Theme.cs
26894         * MonthCalendar.cs: added for MonthCalendar
26895         * SelectionRange.cs: added for MonthCalendar
26896         * Day.cs: added for MonthCalendar: added for MonthCalendar
26897         * DateRangeEventArgs.cs: added for MonthCalendar
26898         * DateRangeEventHandler.cs: added for MonthCalendar
26899
26900 2004-11-22  Ravindra <rkumar@novell.com>
26901
26902         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
26903         property.
26904
26905 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
26906
26907         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
26908         event handler.
26909         
26910         * NumericUpDown.cs: Added new implementation.
26911         * UpDownBase.cs: Added new implementation.
26912
26913         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
26914         implementations.
26915         
26916         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
26917         implementations.
26918
26919         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
26920         methods.
26921
26922 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
26923
26924         * Timer.cs  (Dispose): Should call the base dispose when
26925         overriding.
26926
26927 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
26928
26929         * ScrollBar.cs: updates thumb position when max, min or increment
26930         is changed
26931
26932 2004-11-21  Ravindra <rkumar@novell.com>
26933
26934         * ListView.cs: Implemented item selection, activation and
26935         column header style. Fixed properties to do a redraw, if
26936         required. Added support for MouseHover, DoubleClick, KeyDown
26937         and KeyUp event handling and some minor fixes.
26938         * ListViewItem.cs: Fixed constructor.
26939         * ThemeWin32Classic.cs: Improved drawing for ListView.
26940
26941 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
26942
26943         * ThemeWin32Classic.cs: initial listbox drawing code
26944         * DrawMode.cs: new enumerator
26945         * ListControl.cs: stubbed class
26946         * ListBox.cs: initial implementation
26947         * Theme.cs: new methods definitions
26948         * SelectionMode.cs: new enumerator
26949
26950 2004-11-17  Peter Bartok  <pbartok@novell.com>
26951
26952         * XplatUIWin32.cs: Added double-click events to the class style
26953         * Control.cs (WndProc):
26954           - Added handling of click-count to MouseDown/ MouseUp events.
26955           - Added handling of middle and right mouse buttons
26956           - Removed old debug code
26957
26958 2004-11-17  Jackson Harper  <jackson@ximian.com>
26959
26960         * XplatUIX11.cs: Use the new Mono.Unix namespace.
26961
26962 2004-11-17  Ravindra <rkumar@novell.com>
26963
26964         * ListView.cs: Added event handling for MouseMove/Up/Down.
26965         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
26966         * ThemeWin32Classic.cs: We need to clear the graphics context and
26967         draw column header in a proper state.
26968
26969
26970 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
26971
26972         *  Menu.cs: fixes signature
26973
26974 2004-11-16  Peter Bartok  <pbartok@novell.com>
26975
26976         * XplatUIX11.cs (GetMessage): Implemented generation of
26977           double click mouse messages
26978
26979 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
26980
26981         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
26982         not by menu
26983
26984 2004-11-11  Peter Bartok  <pbartok@novell.com>
26985
26986         * HandleData.cs: Added Visible property
26987         * XplatUIX11.cs (IsVisible): Now uses Visible property from
26988           HandleData
26989         * XplatUIX11.cs: Removed old debug leftovers
26990         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
26991         * Control.cs (WndProc): Removed old debug leftovers,
26992           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
26993           needed WM_SIZE handling
26994
26995 2004-11-11  Jackson Harper  <jackson@ximian.com>
26996
26997         * OwnerDrawPropertyBag.cs:
26998         * TreeViewImageIndexConverter.cs: Initial implementation
26999
27000 2004-11-10  Jackson Harper  <jackson@ximian.com>
27001
27002         * ThemeWin32Classic.cs:
27003         * TabControl.cs: instead of moving tabs by the slider pos just
27004         start drawing at the tab that is offset by the slider. This way
27005         scrolling always moves by exactly one tab.
27006
27007 2004-11-10  Jackson Harper  <jackson@ximian.com>
27008
27009         * TabControl.cs: You can only scroll left when the slider has
27010         already ben moved right.
27011         
27012 2004-11-10  Jackson Harper  <jackson@ximian.com>
27013
27014         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
27015         the clip area.
27016         
27017 2004-11-10  Jackson Harper  <jackson@ximian.com>
27018
27019         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
27020         clip area.
27021         
27022 2004-11-09  Jackson Harper  <jackson@ximian.com>
27023
27024         * TabControl.cs (CalcXPos): New helper method so we can determine
27025         the proper place to start drawing vertical tabs.
27026         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
27027         
27028 2004-11-09  Jackson Harper  <jackson@ximian.com>
27029
27030         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
27031         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
27032         and Bottom, left and right are illegal values for this and
27033         multiline is enabled when the alignment is set to left or right.
27034         (DrawTab): Each alignment block should draw the text itself now
27035         because Left requires special love. Also add rendering for Left
27036         aligned tabs.
27037         
27038 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
27039
27040         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
27041         does not destroy the windows, removes debugging messages
27042
27043 2004-11-09  jba  <jba-mono@optusnet.com.au>
27044
27045         * ThemeWin32Classic.cs
27046         (DrawButtonBase): Fix verticle text rect clipping in windows
27047         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
27048         rendering and incorrect text rect clipping
27049         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
27050         rendering and incorrect text rect clipping
27051         
27052 2004-11-08  Jackson Harper  <jackson@ximian.com>
27053
27054         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
27055         bottom when they are bottom aligned so the bottoms of the tabs get
27056         displayed.
27057         * TabControl.cs (DropRow): Move rows up instead of down when the
27058         tab control is bottom aligned.
27059
27060 2004-11-08 13:59  pbartok
27061
27062         * XplatUIX11.cs:
27063           - Added handling for various window styles
27064           - Added handling for popup windows
27065           - Added SetTopmost handling
27066
27067 2004-11-08 13:55  pbartok
27068
27069         * XplatUIWin32.cs:
27070           - Added argument to SetTopmost method
27071           - Fixed broken ClientToScreen function
27072
27073 2004-11-08 13:53  pbartok
27074
27075         * XplatUIStructs.cs:
27076           - Added missing WS_EX styles
27077
27078 2004-11-08 13:53  pbartok
27079
27080         * XplatUI.cs, XplatUIDriver.cs:
27081           - Added argument to SetTopmost
27082
27083 2004-11-08 13:52  pbartok
27084
27085         * X11Structs.cs:
27086           - Added XSetWindowAttributes structure
27087           - Improved XWindowAttributes structure
27088           - Added SetWindowValuemask enum
27089           - Added window creation arguments enum
27090           - Added gravity enum
27091           - Added Motif hints structure
27092           - Added various Motif flags and enums
27093           - Added PropertyMode enum for property functions
27094
27095 2004-11-08 13:50  pbartok
27096
27097         * Form.cs:
27098           - Fixed arguments for updated SetTopmost method
27099
27100 2004-11-08 13:49  pbartok
27101
27102         * ToolTip.cs:
27103           - Fixed arguments for updated SetTopmost function
27104           - Fixed usage of PointToClient
27105
27106 2004-11-08 13:44  pbartok
27107
27108         * MenuAPI.cs:
27109           - Added Clipping of children and siblings
27110
27111 2004-11-08 13:41  pbartok
27112
27113         * MainMenu.cs:
27114           - Removed SetMenuBarWindow call. We do this in Form.cs
27115
27116 2004-11-08 13:40  jackson
27117
27118         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
27119           scrolling jimmi in the correct location with bottom aligned tabs
27120
27121 2004-11-08 13:36  pbartok
27122
27123         * ContainerControl.cs:
27124           - Implemented BindingContext
27125           - Implemented ParentForm
27126
27127 2004-11-08 12:46  jackson
27128
27129         * TabControl.cs: Put bottom rendered tabs in the right location
27130
27131 2004-11-08 07:15  jordi
27132
27133         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
27134           removes dead code
27135
27136 2004-11-05 17:30  jackson
27137
27138         * TabControl.cs: When selected tabs are expanded make sure they
27139           don't go beyond the edges of the tab control
27140
27141 2004-11-05 14:57  jackson
27142
27143         * TabControl.cs: Reset show_slider so if the control is resized to
27144           a size where it is no longer needed it's not displayed anymore
27145
27146 2004-11-05 13:16  jackson
27147
27148         * TabControl.cs: Make tab pages non visible when added to the
27149           control
27150
27151 2004-11-05 12:42  jackson
27152
27153         * TabControl.cs: Implement SizeMode.FillToRight
27154
27155 2004-11-05 12:16  jackson
27156
27157         * Control.cs: Do not call CreateHandle if the handle is already
27158           created
27159
27160 2004-11-05 11:46  jackson
27161
27162         * TabControl.cs: Remove superflous call to CalcTabRows
27163
27164 2004-11-05 09:07  jackson
27165
27166         * XplatUIX11.cs: Update for Mono.Posix changes
27167
27168 2004-11-05 07:00  ravindra
27169
27170         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
27171           scrolling.
27172
27173 2004-11-04 22:47  jba
27174
27175         * ThemeWin32Classic.cs:
27176           - Fix Button rendering for FlatStyle = Flat or Popup
27177           - Fix RadioButton and CheckBox rendering when Appearance = Button
27178             (normal and flatstyle).
27179           - Correct outer rectangle color when drawing focus rectangle
27180           - Adjust button bounds to be 1 px smaller when focused
27181           - Make button not draw sunken 3d border when pushed (windows compat)
27182           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
27183           - Offset the text in RadioButton and Checkbox when being rendered as
27184           a button.
27185           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
27186           radiobuttons
27187           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
27188           - Fixed disabled text rendering for normally rendered radiobuttons
27189
27190 2004-11-04 10:26  jackson
27191
27192         * TabControl.cs: Recalculate tab rows when resizing
27193
27194 2004-11-04 07:47  jordi
27195
27196         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
27197           collection completion, drawing issues, missing features
27198
27199 2004-11-04 05:03  ravindra
27200
27201         * ScrollBar.cs:
27202                 - We need to recalculate the Thumb area when
27203                 LargeChange/maximum/minimum values are changed.
27204           - We set the 'pos' in UpdatePos() method to minimum, if it's less
27205                 than minimum. This is required to handle the case if large_change is
27206                 more than max, and use LargeChange property instead of large_change
27207                 variable.
27208           - We return max+1 when large_change is more than max, like MS does.
27209
27210 2004-11-04 04:29  ravindra
27211
27212         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
27213                 - Changed default value signatures (prefixed all with ListView).
27214                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
27215                 ListView.
27216           - Fixed calculations for ListViewItem and implemented Clone()
27217           method.
27218
27219 2004-11-04 04:26  ravindra
27220
27221         * Theme.cs, ThemeWin32Classic.cs:
27222                 - Changed default ListView values signatures (prefixed all with
27223                 ListView).
27224           - Fixed default size values for VScrollBar and HScrollBar.
27225                 - Fixed DrawListViewItem method.
27226
27227 2004-11-04 04:05  ravindra
27228
27229         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
27230
27231 2004-11-04 04:04  ravindra
27232
27233         * ImageList.cs: Implemented the missing overload for Draw method.
27234
27235 2004-11-03 19:29  jackson
27236
27237         * TabControl.cs: Handle dropping rows on selection properly
27238
27239 2004-11-03 11:59  jackson
27240
27241         * TabControl.cs: remove debug code
27242
27243 2004-11-03 11:52  jackson
27244
27245         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
27246           the scrolly widgerywoo
27247
27248 2004-11-02 13:52  jackson
27249
27250         * TabControl.cs: Resize the tab pages and tabs when the tab control
27251           is resized
27252
27253 2004-11-02 13:40  jackson
27254
27255         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
27256           selected tab to the bottom
27257
27258 2004-11-02 13:39  jackson
27259
27260         * TabPage.cs: Store the tab pages row
27261
27262 2004-11-02 12:33  jordi
27263
27264         * MenuItem.cs: fixes handle creation
27265
27266 2004-11-02 11:42  jackson
27267
27268         * TabControl.cs: signature fix
27269
27270 2004-11-02 08:56  jackson
27271
27272         * TabControl.cs: Calculate whether the tab is on an edge properly.
27273           Remove top secret debugging code
27274
27275 2004-11-01 19:57  jackson
27276
27277         * TabControl.cs: Add click handling, and proper sizing
27278
27279 2004-11-01 19:47  jackson
27280
27281         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
27282           tab controls
27283
27284 2004-11-01 19:39  jackson
27285
27286         * TabPage.cs: add internal property to store the bounds of a tab
27287           page
27288
27289 2004-10-30 04:23  ravindra
27290
27291         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
27292           values.
27293
27294 2004-10-30 04:21  ravindra
27295
27296         * ListView.cs, ListViewItem.cs: Added support for scrolling and
27297           fixed calculations.
27298
27299 2004-10-30 03:06  pbartok
27300
27301         * XplatUIX11.cs:
27302           - Removed extension of DllImported libs
27303
27304 2004-10-29 09:55  jordi
27305
27306         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
27307           navigation, itemcollection completion, menu fixes
27308
27309 2004-10-27 22:58  pbartok
27310
27311         * XplatUIX11.cs:
27312           - Now throws a nice error message when no X display could be opened
27313
27314 2004-10-26 13:51  jordi
27315
27316         * ListView.cs: removes warning
27317
27318 2004-10-26 03:55  ravindra
27319
27320         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
27321           ThemeWin32Classic.cs: Some formatting for my last checkins.
27322
27323 2004-10-26 03:36  ravindra
27324
27325         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
27326           control and default values.
27327
27328 2004-10-26 03:35  ravindra
27329
27330         * Theme.cs: Added some default values for ListView control.
27331
27332 2004-10-26 03:33  ravindra
27333
27334         * ToolBar.cs: ToolBar should use the user specified button size, if
27335           there is any. Added a size_specified flag for the same.
27336
27337 2004-10-26 03:33  ravindra
27338
27339         * ColumnHeader.cs: Added some internal members and calculations for
27340           ColumnHeader.
27341
27342 2004-10-26 03:32  ravindra
27343
27344         * ListViewItem.cs: Calculations for ListViewItem.
27345
27346 2004-10-26 03:31  ravindra
27347
27348         * ListView.cs: Added some internal members and calculations for
27349           ListView.
27350
27351 2004-10-22 13:31  jordi
27352
27353         * MenuAPI.cs: speedup menus drawing
27354
27355 2004-10-22 13:16  jackson
27356
27357         * XplatUIX11.cs: Make sure to update exposed regions when adding an
27358           expose event
27359
27360 2004-10-22 11:49  jackson
27361
27362         * Control.cs: oops
27363
27364 2004-10-22 11:41  jackson
27365
27366         * Control.cs: Check to see if the window should have its background
27367           repainted by X when drawing.
27368
27369 2004-10-22 11:31  jackson
27370
27371         * XplatUIX11.cs: When invalidating areas only use XClearArea if
27372           clear is true, this way we do not get flicker from X repainting the
27373           background
27374
27375 2004-10-22 11:28  jackson
27376
27377         * XEventQueue.cs: Queue properly
27378
27379 2004-10-21 09:38  jackson
27380
27381         * XEventQueue.cs: Fix access modifier
27382
27383 2004-10-21 09:36  jackson
27384
27385         * XEventQueue.cs: Don't loose messages
27386
27387 2004-10-21 09:22  jackson
27388
27389         * XEventQueue.cs: Don't loose messages
27390
27391 2004-10-20 04:15  jordi
27392
27393         * BootMode.cs: enum need it by SystemInfo
27394
27395 2004-10-19 21:58  pbartok
27396
27397         * XplatUIWin32.cs:
27398           - Small sanity check
27399
27400 2004-10-19 21:56  pbartok
27401
27402         * Form.cs:
27403           - Added private FormParentWindow class which acts as the container
27404             for our form and as the non-client area where menus are drawn
27405           - Added/Moved required tie-ins to Jordi's menus
27406           - Fixed/Implemented the FormStartPosition functionality
27407
27408 2004-10-19 21:52  pbartok
27409
27410         * Control.cs:
27411           - Removed unneeded locals
27412           - Added code to all size and location properties to understand and
27413             deal with the parent container of Form
27414
27415 2004-10-19 21:33  pbartok
27416
27417         * Application.cs:
27418           - Fixed to deal with new Form subclasses for menus
27419
27420 2004-10-19 17:48  jackson
27421
27422         * XEventQueue.cs: commit correct version of file
27423
27424 2004-10-19 16:50  jackson
27425
27426         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
27427
27428 2004-10-19 16:15  jordi
27429
27430         * MenuAPI.cs: MenuBarCalcSize returns the height
27431
27432 2004-10-19 08:31  pbartok
27433
27434         * Control.cs:
27435           - Added missing call to PreProcessMessage before calling OnXXXKey
27436           methods
27437
27438 2004-10-19 00:04  ravindra
27439
27440         * ToolTip.cs: Fixed constructor.
27441
27442 2004-10-18 09:31  jordi
27443
27444         * MenuAPI.cs: menuitems in menubars do not have shortcuts
27445
27446 2004-10-18 09:26  jordi
27447
27448         * MenuItem.cs: fixes MenuItem class signature
27449
27450 2004-10-18 08:56  jordi
27451
27452         * MenuAPI.cs: prevents windows from showing in the taskbar
27453
27454 2004-10-18 00:28  ravindra
27455
27456         * ToolTip.cs: Suppressed a warning message.
27457
27458 2004-10-18 00:27  ravindra
27459
27460         * Control.cs: Default value of visible property must be true.
27461
27462 2004-10-17 23:19  pbartok
27463
27464         * ToolTip.cs:
27465           - Complete implementation
27466
27467 2004-10-17 23:19  pbartok
27468
27469         * XplatUIX11.cs:
27470           - Added EnableWindow method
27471           - Added SetModal stub
27472           - Added generation of WM_ACTIVATE message (still needs testing)
27473           - Added SetTopMost stub
27474           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
27475
27476 2004-10-17 23:17  pbartok
27477
27478         * XplatUIWin32.cs:
27479           - Removed VirtualKeys to XplatUIStructs
27480           - Implemented SetTopMost method
27481           - Implemented EnableWindow method
27482           - Bugfix in ScreenToClient()
27483           - Bugfixes in ClientToScreen()
27484
27485 2004-10-17 22:51  pbartok
27486
27487         * XplatUIStructs.cs:
27488           - Added WS_EX styles to WindowStyles enumeration
27489
27490 2004-10-17 22:50  pbartok
27491
27492         * XplatUI.cs, XplatUIDriver.cs:
27493           - Added method for enabling/disabling windows
27494           - Added method for setting window modality
27495           - Added method for setting topmost window
27496
27497 2004-10-17 22:49  pbartok
27498
27499         * ThemeWin32Classic.cs:
27500           - Added ToolTip drawing code
27501
27502 2004-10-17 22:49  pbartok
27503
27504         * Theme.cs:
27505           - Added ToolTip abstracts
27506
27507 2004-10-17 22:47  pbartok
27508
27509         * Form.cs:
27510           - Fixed Form.ControlCollection to handle owner relations
27511           - Added Owner/OwnedForms handling
27512           - Implemented Z-Ordering for owned forms
27513           - Removed unneeded private overload of ShowDialog
27514           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
27515             so I hope)
27516           - Fixed Close(), had wrong default
27517           - Added firing of OnLoad event
27518           - Added some commented out debug code for Ownership handling
27519
27520 2004-10-17 22:16  pbartok
27521
27522         * Control.cs:
27523           - Fixed/implemented flat list of controls
27524
27525 2004-10-17 22:14  pbartok
27526
27527         * Application.cs:
27528           - Added code to simulate modal dialogs on Win32
27529
27530 2004-10-17 16:11  jordi
27531
27532         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
27533           mouse event
27534
27535 2004-10-17 13:39  jordi
27536
27537         * MenuAPI.cs: menu drawing fixes
27538
27539 2004-10-15 09:10  ravindra
27540
27541         * StructFormat.cs: General Enum.
27542
27543 2004-10-15 09:09  ravindra
27544
27545         * SizeGripStyle.cs: Enum for Form.
27546
27547 2004-10-15 09:08  ravindra
27548
27549         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
27550           in Theme for ListView.
27551
27552 2004-10-15 09:06  ravindra
27553
27554         * ColumnHeader.cs: Flushing some formatting changes.
27555
27556 2004-10-15 09:05  ravindra
27557
27558         * ListViewItem.cs: Implemented GetBounds method and fixed coding
27559           style.
27560
27561 2004-10-15 09:03  ravindra
27562
27563         * ListView.cs: Implemented Paint method and fixed coding style.
27564
27565 2004-10-15 07:34  jordi
27566
27567         * MenuAPI.cs: fix for X11
27568
27569 2004-10-15 07:32  ravindra
27570
27571         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
27572                 - Renamed Paint() method to Draw() for clarity. Also, moved
27573                 DrawImage() to OnPaint().
27574
27575 2004-10-15 07:25  ravindra
27576
27577         * CheckBox.cs, RadioButton.cs:
27578                 - Removed Redraw (), we get it from ButtonBase.
27579                 - Implemented Paint (), to do class specific painting.
27580
27581 2004-10-15 07:16  ravindra
27582
27583         * ButtonBase.cs:
27584                 - Redraw () is not virtual now.
27585                 - Added an internal virtual method Paint (), so that
27586                 derived classes can do their painting on their own.
27587                 - Modified OnPaint () to call Paint ().
27588
27589 2004-10-15 06:43  jordi
27590
27591         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
27592           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
27593
27594 2004-10-15 00:30  ravindra
27595
27596         * MessageBox.cs:
27597                 - MessageBox on windows does not have min/max buttons.
27598                 This change in CreateParams fixes this on Windows. We
27599                 still need to implement this windowstyle behavior in
27600                 our X11 driver.
27601
27602 2004-10-14 05:14  ravindra
27603
27604         * ToolBar.cs:
27605                 - Changed Redraw () to do a Refresh () always.
27606                 - Fixed the MouseMove event handling when mouse is pressed,
27607                 ie drag event handling.
27608                 - Replaced the usage of ToolBarButton.Pressed property to
27609                 ToolBarButton.pressed internal variable.
27610
27611 2004-10-14 05:10  ravindra
27612
27613         * ToolBarButton.cs:
27614                 - Added an internal member 'inside' to handle mouse move
27615                 with mouse pressed ie mouse drag event.
27616                 - Changed 'Pressed' property to return true only when
27617                 'inside' and 'pressed' are both true.
27618                 - Some coding style love.
27619
27620 2004-10-14 00:17  ravindra
27621
27622         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
27623           public method.
27624
27625 2004-10-14 00:15  ravindra
27626
27627         * ButtonBase.cs: Redraw () related improvements.
27628
27629 2004-10-14 00:14  ravindra
27630
27631         * MessageBox.cs: Moved InitFormSize () out of Paint method and
27632           removed unnecessary calls to Button.Show () method.
27633
27634 2004-10-13 17:50  pbartok
27635
27636         * XplatUIX11.cs:
27637           - Formatting fix
27638           - Removed destroying of window until we solve the problem of X
27639             destroying the window before us on shutdown
27640
27641 2004-10-13 16:32  pbartok
27642
27643         * ButtonBase.cs:
27644           - Now Redraws on MouseUp for FlatStyle Flat and Popup
27645
27646 2004-10-13 14:18  pbartok
27647
27648         * XplatUIX11.cs:
27649           - Added code to destroy the X window
27650
27651 2004-10-13 14:18  pbartok
27652
27653         * XplatUIWin32.cs:
27654           - Added code to destroy a window
27655
27656 2004-10-13 14:12  pbartok
27657
27658         * ButtonBase.cs:
27659           - Added the Redraw on Resize that got dropped in the last rev
27660
27661 2004-10-13 09:06  pbartok
27662
27663         * ThemeWin32Classic.cs:
27664           - Path from John BouAntoun:
27665             * Fix check rendering (centre correctly for normal style, offset
27666               correctly for FlatStyle).
27667             * Fix border color usage (use backcolor) for FlatStyle.Popup
27668             * Use checkbox.Capture instead of checkbox.is_pressed when
27669               rendering flatstyle states.
27670
27671 2004-10-12 21:48  pbartok
27672
27673         * ThemeWin32Classic.cs:
27674           - Removed all occurences of SystemColors and replaced them with the
27675             matching theme color
27676
27677 2004-10-12 21:41  pbartok
27678
27679         * ThemeWin32Classic.cs:
27680           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
27681             him using the function for flatstyle drawing
27682           - Changed functions to use the new version of CPDrawBorder3D
27683
27684 2004-10-12 21:15  pbartok
27685
27686         * ControlPaint.cs:
27687           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
27688             match MS documentation. They need to return defined colors if the
27689             passed color matches the configured control color. Thanks to John
27690             BouAntoun for pointing this out.
27691
27692 2004-10-12 20:57  pbartok
27693
27694         * Control.cs:
27695           - Fix from John BouAntoun: Raise ForeColorChanged event when text
27696             color is changed
27697
27698 2004-10-12 20:46  pbartok
27699
27700         * CheckBox.cs:
27701           - Fix from John BouAntoun: Now properly sets the Appearance property
27702
27703 2004-10-12 20:45  pbartok
27704
27705         * ThemeWin32Classic.cs:
27706           - Fixes from John BouAntoun: now handles forecolors and backcolors
27707             for flatstyle rendered controls much better; It also fixes normal
27708             checkbox rendering when pushed or disabled.
27709
27710 2004-10-08 02:50  jordi
27711
27712         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
27713           work
27714
27715 2004-10-07 08:56  jordi
27716
27717         * ThemeWin32Classic.cs: Removes deletion of cached brushes
27718
27719 2004-10-06 03:59  jordi
27720
27721         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
27722           XplatUIWin32.cs: removes warnings from compilation
27723
27724 2004-10-05 12:23  jackson
27725
27726         * RadioButton.cs: Fix ctor
27727
27728 2004-10-05 11:10  pbartok
27729
27730         * MessageBox.cs:
27731           - Partial implementation by Benjamin Dasnois
27732
27733 2004-10-05 10:15  jackson
27734
27735         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
27736           by John BouAntoun
27737
27738 2004-10-05 03:07  ravindra
27739
27740         * ToolBar.cs:
27741                 - Removed a private method, Draw ().
27742                 - Fixed the ButtonDropDown event handling.
27743                 - Fixed MouseMove event handling.
27744
27745 2004-10-05 03:04  ravindra
27746
27747         * ThemeWin32Classic.cs:
27748                 - Added DrawListView method and ListViewDefaultSize property.
27749                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
27750                 - Changed DOS style CRLF to Unix format (dos2unix).
27751
27752 2004-10-05 03:03  ravindra
27753
27754         * Theme.cs:
27755                 - Added DrawListView method and ListViewDefaultSize property.
27756
27757 2004-10-05 02:42  ravindra
27758
27759         * ToolBarButton.cs: Added an internal member dd_pressed to handle
27760           clicks on DropDown arrow.
27761
27762 2004-10-04 22:56  jackson
27763
27764         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
27765           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
27766           Control handle the buffers, derived classes should not have to
27767           CreateBuffers themselves.
27768
27769 2004-10-04 21:20  jackson
27770
27771         * StatusBar.cs: The control handles resizing the buffers now.
27772
27773 2004-10-04 21:18  jackson
27774
27775         * Control.cs: When resizing the buffers should be invalidated. This
27776           should be handled in Control not in derived classes.
27777
27778 2004-10-04 14:45  jackson
27779
27780         * TabPage.cs: oops
27781
27782 2004-10-04 02:14  pbartok
27783
27784         * LeftRightAlignment.cs:
27785           - Initial check-in
27786
27787 2004-10-04 01:09  jordi
27788
27789         * ThemeWin32Classic.cs: fixes right button position causing right
27790           button not showing on horizontal scrollbars
27791
27792 2004-10-02 13:12  pbartok
27793
27794         * XplatUIX11.cs:
27795           - Simplified the Invalidate method by using an X call instead of
27796             generating the expose ourselves
27797           - Added an expose when the window background is changed
27798           - Implemented ClientToScreen method
27799
27800 2004-10-02 13:08  pbartok
27801
27802         * XplatUIWin32.cs:
27803           - Added Win32EnableWindow method (test for implementing modal
27804           dialogs)
27805           - Added ClientToScreen method and imports
27806
27807 2004-10-02 13:07  pbartok
27808
27809         * XplatUI.cs, XplatUIDriver.cs:
27810           - Added ClientToScreen coordinate translation method
27811
27812 2004-10-02 13:06  pbartok
27813
27814         * KeyPressEventArgs.cs:
27815           - Fixed access level for constructor
27816
27817 2004-10-02 13:06  pbartok
27818
27819         * NativeWindow.cs:
27820           - Changed access level for the window_collection hash table
27821
27822 2004-10-02 13:05  pbartok
27823
27824         * Form.cs:
27825           - Added KeyPreview property
27826           - Added Menu property (still incomplete, pending Jordi's menu work)
27827           - Implemented ProcessCmdKey
27828           - Implemented ProcessDialogKey
27829           - Implemented ProcessKeyPreview
27830
27831 2004-10-02 13:02  pbartok
27832
27833         * Control.cs:
27834           - Added private method to get the Control object from the window
27835           handle
27836           - Implemented ContextMenu property
27837           - Implemented PointToScreen
27838           - Implemented PreProcessMessage
27839           - Implemented IsInputChar
27840           - Implemented IsInputKey
27841           - Implemented ProcessCmdKey
27842           - Completed ProcessKeyEventArgs
27843           - Fixed message loop to call the proper chain of functions on key
27844           events
27845           - Implemented ProcessDialogChar
27846           - Implemented ProcessDialogKey
27847           - Implemented ProcessKeyMessage
27848           - Implemented ProcessKeyPreview
27849           - Added RaiseDragEvent stub (MS internal method)
27850           - Added RaiseKeyEvent stub (MS internal method)
27851           - Added RaiseMouseEvent stub (MS Internal method)
27852           - Added RaisePaintEvent stub (MS Internal method)
27853           - Added ResetMouseEventArgs stub (MS Internal method)
27854           - Implemented RtlTranslateAlignment
27855           - Implemented RtlTranslateContent
27856           - Implemented RtlTranslateHorizontal
27857           - Implemented RtlTranslateLeftRight
27858           - Added generation of KeyPress event
27859
27860 2004-10-02 05:57  ravindra
27861
27862         * ListViewItem.cs: Added attributes.
27863
27864 2004-10-02 05:32  ravindra
27865
27866         * ListView.cs: Added attributes.
27867
27868 2004-10-01 11:53  jackson
27869
27870         * Form.cs: Implement the Close method so work on MessageBox can
27871           continue.
27872
27873 2004-09-30 14:06  pbartok
27874
27875         * XplatUIX11.cs:
27876           - Bug fixes
27877
27878 2004-09-30 11:34  jackson
27879
27880         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
27881
27882 2004-09-30 07:26  ravindra
27883
27884         * ListViewItemConverter.cs: Converter for ListViewItem.
27885
27886 2004-09-30 07:26  ravindra
27887
27888         * SortOrder.cs: Enum for ListView control.
27889
27890 2004-09-30 07:25  ravindra
27891
27892         * ColumnHeader.cs: Supporting class for ListView control.
27893
27894 2004-09-30 07:24  ravindra
27895
27896         * ListView.cs, ListViewItem.cs: Initial implementation.
27897
27898 2004-09-30 07:20  ravindra
27899
27900         * ItemActivation.cs: Enum for ListView Control.
27901
27902 2004-09-29 20:29  pbartok
27903
27904         * XplatUIX11.cs:
27905           - Added lookup of pixel value for background color; tries to get a
27906             color 'close' to the requested color, it avoids having to create a
27907             colormap.  Depending on the display this could mean the used color
27908             is slightly off the desired color. Might have to change it to a more
27909             resource intensive colormap approach, but it will work as a
27910           workaround to avoid red screens.
27911
27912 2004-09-29 14:27  jackson
27913
27914         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
27915
27916 2004-09-28 12:44  pbartok
27917
27918         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
27919           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
27920           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
27921           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
27922           TrackBar.cs, VScrollBar.cs:
27923           - Streamlined Theme interfaces:
27924             * Each DrawXXX method for a control now is passed the object for
27925               the control to be drawn in order to allow accessing any state the
27926               theme might require
27927
27928             * ControlPaint methods for the theme now have a CP prefix to avoid
27929               name clashes with the Draw methods for controls
27930
27931             * Every control now retrieves it's DefaultSize from the current
27932             theme
27933
27934 2004-09-28 12:17  jackson
27935
27936         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
27937           drawing
27938
27939 2004-09-24 14:57  jackson
27940
27941         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
27942           Gives us a nice little performance boost.
27943
27944 2004-09-24 12:02  jackson
27945
27946         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
27947           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
27948           Control and supporting classes. Initial checkin
27949
27950 2004-09-23 13:08  jackson
27951
27952         * Form.cs: Temp build fixage
27953
27954 2004-09-23 01:39  ravindra
27955
27956         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
27957           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
27958           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
27959           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
27960           EventHandlers needed by ListView Control.
27961
27962 2004-09-22 14:12  pbartok
27963
27964         * ScrollableControl.cs:
27965           - Implemented DockPadding property
27966           - Implemented AutoScroll property
27967           - Implemented AutoScrollMargin property
27968           - Implemented AutoScrollMinSize property
27969           - Implemented AutoScrollPosition property
27970           - Implemented DisplayRectangle property (still incomplete)
27971           - Implemented CreateParams property
27972           - Implemented HScroll property
27973           - Implemented VScroll property
27974           - Implemented OnVisibleChanged property
27975
27976 2004-09-22 14:09  pbartok
27977
27978         * Form.cs:
27979           - Added Form.ControllCollection class
27980           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
27981             RemoveOwnedForm (still incomplete, missing on-top and common
27982             minimize/maximize behaviour)
27983           - Added StartPosition property (still incomplete, does not use when
27984             creating the form)
27985           - Added ShowDialog() methods (still incomplete, missing forcing the
27986             dialog modal)
27987
27988 2004-09-22 14:05  pbartok
27989
27990         * Application.cs:
27991           - Added message loop for modal dialogs
27992
27993 2004-09-22 14:02  pbartok
27994
27995         * GroupBox.cs:
27996           - Fixed wrong types for events
27997
27998 2004-09-22 14:00  pbartok
27999
28000         * Shortcut.cs, FormWindowState.cs:
28001           - Fixed wrong values
28002
28003 2004-09-22 12:01  jackson
28004
28005         * Control.cs: Text is never null
28006
28007 2004-09-20 22:14  pbartok
28008
28009         * XplatUIWin32.cs:
28010           - Fixed accessibility level for Idle handler
28011
28012 2004-09-20 18:54  jackson
28013
28014         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28015           XplatUIX11.cs: New message loop that uses poll so we don't get a
28016           busy loop
28017
28018 2004-09-17 10:43  pbartok
28019
28020         * ScrollBar.cs:
28021           - Fixed behaviour of arrow buttons. Now properly behaves like
28022             Buttons (and like Microsoft's scrollbar arrow buttons)
28023
28024 2004-09-17 10:14  pbartok
28025
28026         * ScrollBar.cs:
28027           - Added missing release of keyboard/mouse capture
28028
28029 2004-09-17 06:18  jordi
28030
28031         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
28032           Theme.cs: Very early menu support
28033
28034 2004-09-16 17:45  pbartok
28035
28036         * XplatUIWin32.cs:
28037           - Fixed sending a window to the front
28038           - Added overload for SetWindowPos to avoid casting
28039
28040 2004-09-16 17:44  pbartok
28041
28042         * Control.cs:
28043           - Added SendToBack and BringToFront methods
28044
28045 2004-09-16 07:00  ravindra
28046
28047         * Copyright: Added Novell URL.
28048
28049 2004-09-16 07:00  ravindra
28050
28051         * ToolBar.cs: Invalidate should be done before redrawing.
28052
28053 2004-09-15 21:19  ravindra
28054
28055         * ColumnHeaderStyle.cs: Enum for ListView Control.
28056
28057 2004-09-15 21:18  ravindra
28058
28059         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
28060           ListView Control.
28061
28062 2004-09-13 18:26  jackson
28063
28064         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
28065           properly
28066
28067 2004-09-13 18:13  jackson
28068
28069         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
28070           a second thread and post messages into the main threads message
28071           queue. This makes timing much more consistent. Both win2K and XP
28072           have a minimum timer value of 15 milliseconds, so we now do this
28073           too.
28074
28075 2004-09-13 15:18  pbartok
28076
28077         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28078           XplatUIX11.cs:
28079           - Added Z-Ordering methods
28080
28081 2004-09-13 10:56  pbartok
28082
28083         * Form.cs:
28084           - Fixed #region names
28085           - Moved properties and methods into their proper #regions
28086
28087 2004-09-13 10:51  pbartok
28088
28089         * Form.cs:
28090           - Added Accept and CancelButton properties
28091           - Added ProcessDialogKey() method
28092
28093 2004-09-13 08:18  pbartok
28094
28095         * IWindowTarget.cs:
28096           - Initial check-in
28097
28098 2004-09-10 21:50  pbartok
28099
28100         * Control.cs:
28101           - Added DoDragDrop() [incomplete]
28102           - Properly implemented 'Visible' handling
28103           - Added SetVisibleCore()
28104           - Implemented FindChildAtPoint()
28105           - Implemented GetContainerControl()
28106           - Implemented Hide()
28107
28108 2004-09-10 19:28  pbartok
28109
28110         * Control.cs:
28111           - Moved methods into their appropriate #regions
28112           - Reordered methods within regions alphabetically
28113
28114 2004-09-10 18:57  pbartok
28115
28116         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
28117           - Added method to retrieve text from window
28118
28119 2004-09-10 18:56  pbartok
28120
28121         * Control.cs:
28122           - Moved some internal functions into the internal region
28123           - Implemented FontHeight
28124           - Implemented RenderRightToLeft
28125           - Implemented ResizeRedraw
28126           - Implemented ShowFocusCues
28127           - Implemented ShowKeyboardCues
28128           - Implemented FromChildHandle
28129           - Implemented FromHandle
28130           - Implemented IsMnemonic
28131           - Implemented ReflectMessage
28132           - All public and protected Static Methods are now complete
28133
28134 2004-09-10 16:54  pbartok
28135
28136         * Control.cs:
28137           - Implemented remaining missing public instance properties
28138           - Alphabetized some out of order properties
28139
28140 2004-09-10 05:51  ravindra
28141
28142         * PictureBox.cs: Added a check for null image.
28143
28144 2004-09-10 00:59  jordi
28145
28146         * GroupBox.cs: remove cvs tag
28147
28148 2004-09-09 05:25  ravindra
28149
28150         * ToolBar.cs: Make redraw accessible from ToolBarButton.
28151
28152 2004-09-09 05:23  ravindra
28153
28154         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
28155           parent redraw.
28156
28157 2004-09-09 02:28  pbartok
28158
28159         * ThemeWin32Classic.cs:
28160           - Improve disabled string look
28161
28162 2004-09-09 01:15  jordi
28163
28164         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
28165           args and handler
28166
28167 2004-09-08 23:56  ravindra
28168
28169         * ItemBoundsPortion.cs: It's enum, not a class!
28170
28171 2004-09-08 23:47  ravindra
28172
28173         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
28174           Enums for Form.
28175
28176 2004-09-08 21:13  ravindra
28177
28178         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
28179           ListView control.
28180
28181 2004-09-08 21:03  ravindra
28182
28183         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
28184           avoid crash.
28185
28186 2004-09-08 21:01  ravindra
28187
28188         * ScrollableControl.cs: Removed unreachable code.
28189
28190 2004-09-08 06:45  jordi
28191
28192         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
28193
28194 2004-09-08 01:00  jackson
28195
28196         * XplatUIX11.cs: Only run the timers when updating the message
28197           queue. This effectively gives X messages a higher priority then
28198           timer messages. Timers still need love though
28199
28200 2004-09-07 14:01  jackson
28201
28202         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
28203           this for us and the handle is no longer valid.
28204
28205 2004-09-07 13:59  jackson
28206
28207         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
28208           loop that manages to not crash. TODO: Add poll and cleanup timers
28209
28210 2004-09-07 11:12  jordi
28211
28212         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
28213
28214 2004-09-07 03:40  jordi
28215
28216         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
28217           fixes, methods, multiple links
28218
28219 2004-09-06 06:55  jordi
28220
28221         * Control.cs: Caches ClientRectangle rectangle value
28222
28223 2004-09-05 02:03  jordi
28224
28225         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
28226           certain situations
28227
28228 2004-09-04 11:10  jordi
28229
28230         * Label.cs: Refresh when font changed
28231
28232 2004-09-02 16:24  pbartok
28233
28234         * Control.cs:
28235           - Added sanity check to creation of double buffer bitmap
28236
28237 2004-09-02 16:24  pbartok
28238
28239         * ButtonBase.cs:
28240           - Fixed selection of text color
28241           - Fixed handling of resize event; now properly recreates double
28242             buffering bitmap
28243           - Added missing assignment of TextAlignment
28244           - Added proper default for TextAlignment
28245
28246 2004-09-02 14:26  pbartok
28247
28248         * RadioButton.cs:
28249           - Added missing RadioButton.RadioButtonAccessibleObject class
28250
28251 2004-09-02 14:26  pbartok
28252
28253         * Control.cs:
28254           - Added missing Control.ControlAccessibleObject class
28255           - Started to implement Select()ion mechanisms, still very incomplete
28256
28257 2004-09-02 14:25  pbartok
28258
28259         * AccessibleObject.cs:
28260           - Added missing methods
28261
28262 2004-09-02 14:23  pbartok
28263
28264         * AccessibleNavigation.cs, AccessibleSelection.cs:
28265           - Initial check-in
28266
28267 2004-09-02 10:32  jordi
28268
28269         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
28270           pool for pens, brushes, and hatchbruses
28271
28272 2004-09-01 15:30  jackson
28273
28274         * StatusBar.cs: Fix typo
28275
28276 2004-09-01 14:44  pbartok
28277
28278         * RadioButton.cs:
28279           - Fixed state
28280
28281 2004-09-01 14:39  pbartok
28282
28283         * Button.cs, RadioButton.cs:
28284           - Functional initial check-in
28285
28286 2004-09-01 14:01  pbartok
28287
28288         * CheckBox.cs:
28289           - Added missing default
28290           - Added missing region mark
28291
28292 2004-09-01 09:10  jordi
28293
28294         * Label.cs: fixes method signatures, new methods, events, fixes
28295           autosize
28296
28297 2004-09-01 07:19  jordi
28298
28299         * Control.cs: Init string variables with an empty object
28300
28301 2004-09-01 04:20  jordi
28302
28303         * Control.cs: fires OnFontChanged event
28304
28305 2004-08-31 20:07  pbartok
28306
28307         * ButtonBase.cs:
28308           - Enabled display of strings
28309
28310 2004-08-31 20:05  pbartok
28311
28312         * Form.cs:
28313           - Added (partial) implementation of DialogResult; rest needs to be
28314             implemented when the modal loop code is done
28315
28316 2004-08-31 19:55  pbartok
28317
28318         * CheckBox.cs:
28319           - Fixed to match the removal of the needs_redraw concept
28320
28321 2004-08-31 19:55  pbartok
28322
28323         * ButtonBase.cs:
28324           - Removed the rather odd split between 'needs redraw' and redrawing
28325           - Now handles the events that require regeneration (ambient
28326             properties and size)
28327
28328 2004-08-31 19:41  pbartok
28329
28330         * Control.cs:
28331           - Added firing of BackColorChanged event
28332           - Added TopLevelControl property
28333           - Fixed handling of WM_ERASEBKGRND message
28334
28335 2004-08-31 12:49  pbartok
28336
28337         * ButtonBase.cs:
28338           - Removed debug
28339           - Minor fixes
28340
28341 2004-08-31 12:48  pbartok
28342
28343         * CheckBox.cs:
28344           - Finished (famous last words)
28345
28346 2004-08-31 04:35  jordi
28347
28348         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
28349           scrolling bugs, adds new methods
28350
28351 2004-08-30 14:42  pbartok
28352
28353         * CheckBox.cs:
28354           - Implemented CheckBox drawing code
28355
28356 2004-08-30 14:42  pbartok
28357
28358         * ButtonBase.cs:
28359           - Made Redraw() and CheckRedraw() virtual
28360           - Improved mouse up/down/move logic to properly track buttons
28361
28362 2004-08-30 09:44  pbartok
28363
28364         * CheckBox.cs:
28365           - Updated to fix broken build. Not complete yet.
28366
28367 2004-08-30 09:28  pbartok
28368
28369         * CheckState.cs:
28370           - Initial checkin
28371
28372 2004-08-30 09:17  pbartok
28373
28374         * Appearance.cs:
28375           - Initial check-in
28376
28377 2004-08-27 16:12  ravindra
28378
28379         * ToolBarButton.cs: Added TypeConverter attribute.
28380
28381 2004-08-27 16:07  ravindra
28382
28383         * ImageIndexConverter.cs: Implemented.
28384
28385 2004-08-27 14:17  pbartok
28386
28387         * Control.cs:
28388           - Removed unneeded stack vars
28389           - First attempt to fix sizing issues when layout is suspended
28390
28391 2004-08-25 15:35  jordi
28392
28393         * ScrollBar.cs: more fixes to scrollbar
28394
28395 2004-08-25 14:04  ravindra
28396
28397         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
28398           Added the missing divider code and grip for ToolBar Control.
28399
28400 2004-08-25 13:20  pbartok
28401
28402         * Control.cs:
28403           - Control now properly passes the ambient background color to child
28404             controls
28405
28406 2004-08-25 13:20  jordi
28407
28408         * ScrollBar.cs: small bug fix regarding bar position
28409
28410 2004-08-25 12:33  pbartok
28411
28412         * Timer.cs:
28413           - Now only calls SetTimer or KillTimer if the enabled state has
28414           changed
28415
28416 2004-08-25 12:33  pbartok
28417
28418         * XplatUIWin32.cs:
28419           - Fixed timer handling, now seems to work
28420           - Improved error message for window creation
28421
28422 2004-08-25 12:32  pbartok
28423
28424         * Control.cs:
28425           - Fixed generation of MouseUp message
28426
28427 2004-08-25 12:29  jordi
28428
28429         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
28430           and fixes for progressbar
28431
28432 2004-08-24 18:43  ravindra
28433
28434         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
28435           in ToolBar control.
28436
28437 2004-08-24 17:15  pbartok
28438
28439         * Panel.cs:
28440           - Added #region
28441           - Added missing events
28442           - Alphabetized
28443
28444 2004-08-24 17:14  pbartok
28445
28446         * StatusBar.cs, PictureBox.cs:
28447           - Now uses Control's CreateParams
28448
28449 2004-08-24 16:36  pbartok
28450
28451         * XplatUIX11.cs:
28452           - Fixed background color handling
28453           - Fixed sending of enter/leave events on a grab
28454
28455 2004-08-24 16:35  pbartok
28456
28457         * X11Structs.cs:
28458           - Refined definitions for CrossingEvent
28459
28460 2004-08-24 12:37  jordi
28461
28462         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
28463           formmating, methods signature, and adds missing events
28464
28465 2004-08-24 12:24  jordi
28466
28467         * Control.cs: fire OnEnabledChanged event
28468
28469 2004-08-24 11:17  pbartok
28470
28471         * XplatUIWin32.cs:
28472           - Implemented SetTimer() and KillTimer()
28473
28474 2004-08-24 11:16  pbartok
28475
28476         * XplatUIX11.cs:
28477           - Now uses Remove instead of Add to kill the timer
28478
28479 2004-08-24 10:16  jackson
28480
28481         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
28482           picture boxes in the theme now. Draw picture box borders and obey
28483           sizing modes
28484
28485 2004-08-24 05:49  jackson
28486
28487         * Timer.cs: Remove top secret debugging code
28488
28489 2004-08-24 05:34  jackson
28490
28491         * PictureBox.cs: Temp hack to make picture boxes draw their full
28492           image
28493
28494 2004-08-24 05:29  jackson
28495
28496         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28497           XplatUIX11.cs: Move timers to the driver level. On X they are
28498           queued by the driver and checked on idle.
28499
28500 2004-08-24 01:07  jackson
28501
28502         * XplatUIX11.cs: Use a queue for async messages instead of passing
28503           them as ClientMessages since that was totally broken. Also simply
28504           check for events and return an idle message if none are found. This
28505           gives us an idle handler, and prevents deadlocking when no messages
28506           are in the queue.
28507
28508 2004-08-23 18:19  ravindra
28509
28510         * XplatUIWin32.cs: Removed the unwanted destructor.
28511
28512 2004-08-23 17:27  pbartok
28513
28514         * ButtonBase.cs:
28515           - Finishing touches. Works now, just needs some optimizations.
28516
28517 2004-08-23 16:53  jordi
28518
28519         * ScrollBar.cs: small fix
28520
28521 2004-08-23 16:45  pbartok
28522
28523         * Application.cs:
28524           - Removed debug output
28525           - Simplifications
28526
28527 2004-08-23 16:43  jordi
28528
28529         * ScrollBar.cs: [no log message]
28530
28531 2004-08-23 16:10  pbartok
28532
28533         * Form.cs:
28534           - Fixed handling of WM_CLOSE message
28535           - Removed debug output
28536
28537 2004-08-23 16:09  pbartok
28538
28539         * Application.cs:
28540           - Added handling of Idle event
28541           - Added handling of form closing
28542           - Fixed reporting of MessageLoop property
28543           - Removed some unneeded code, should provide a bit of a speedup
28544
28545 2004-08-23 15:22  pbartok
28546
28547         * Control.cs:
28548           - Added InitLayout() method
28549           - Added code to properly perform layout when Anchor or Dock property
28550             is changed
28551           - Changed 'interpretation' of ResumeLayout. MS seems to have a
28552             LAMESPEC, tried to do it in a way that makes sense
28553
28554 2004-08-23 14:10  jordi
28555
28556         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
28557           properties and methods
28558
28559 2004-08-23 13:55  pbartok
28560
28561         * Control.cs:
28562           - Properly fixed Jordi's last fix
28563           - Now uses Cursor's Position property instead of calling XplatUI
28564           directly
28565
28566 2004-08-23 13:44  jordi
28567
28568         * PaintEventHandler.cs: Adding missing attribute
28569
28570 2004-08-23 13:39  pbartok
28571
28572         * Cursor.cs:
28573           - Implemented Position property
28574
28575 2004-08-23 13:39  pbartok
28576
28577         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
28578           - Added method to move mouse cursor
28579
28580 2004-08-23 13:39  pbartok
28581
28582         * XplatUIX11.cs:
28583           - Fixed setting of background color
28584           - Added method to move mouse cursor
28585
28586 2004-08-23 13:16  jordi
28587
28588         * Control.cs: avoids null exception
28589
28590 2004-08-22 17:46  jackson
28591
28592         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
28593           PictureBox
28594
28595 2004-08-22 17:40  jackson
28596
28597         * XplatUIX11.cs: Add some missing locks
28598
28599 2004-08-22 15:10  pbartok
28600
28601         * Control.cs, Form.cs:
28602           - Removed OverlappedWindow style from Control, instead it's default
28603             now is child
28604           - Made form windows OverlappedWindow by default
28605
28606 2004-08-22 13:34  jackson
28607
28608         * ScrollBar.cs: Update the position through the Value property so
28609           the OnValueChanged event is raised.
28610
28611 2004-08-22 12:04  pbartok
28612
28613         * SWF.csproj:
28614           - Added Cursor.cs and UserControl.cs
28615
28616 2004-08-22 12:03  pbartok
28617
28618         * Cursor.cs:
28619           - Started implementation, not usable yet
28620
28621 2004-08-22 12:00  pbartok
28622
28623         * UserControl.cs:
28624           - Implemented UserControl (complete)
28625
28626 2004-08-21 19:20  ravindra
28627
28628         * ToolBar.cs: Correcting the formatting mess of VS.NET.
28629
28630 2004-08-21 18:49  ravindra
28631
28632         * ToolBar.cs: Probably this completes the missing attributes in
28633           toolbar control.
28634
28635 2004-08-21 18:03  ravindra
28636
28637         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
28638           Fixed toolbar control signatures.
28639
28640 2004-08-21 16:32  pbartok
28641
28642         * LinkLabel.cs:
28643           - Signature Fixes
28644
28645 2004-08-21 16:30  pbartok
28646
28647         * Label.cs:
28648           - Signature fixes
28649
28650 2004-08-21 16:19  pbartok
28651
28652         * Control.cs, Label.cs:
28653           - Signature fixes
28654
28655 2004-08-21 15:57  pbartok
28656
28657         * ButtonBase.cs:
28658           - Added loads of debug output for development
28659           - Fixed typo in method name
28660
28661 2004-08-21 15:52  pbartok
28662
28663         * ToolBarButtonClickEventArgs.cs:
28664           - Added missing base class
28665
28666 2004-08-21 14:53  pbartok
28667
28668         * Control.cs:
28669           - Updated to match new GrabWindow signature
28670
28671 2004-08-21 14:51  pbartok
28672
28673         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
28674           - Added method to get default display size
28675
28676 2004-08-21 14:23  pbartok
28677
28678         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
28679           - Added method to query current grab state
28680           - Added argument to allow confining a grab to a window
28681
28682 2004-08-21 14:22  pbartok
28683
28684         * Keys.cs:
28685           - Added [Flags] attribute so that modifiers can be used in bitwise
28686           ops
28687
28688 2004-08-21 14:21  pbartok
28689
28690         * TrackBar.cs, ScrollBar.cs:
28691           - Replaced direct XplatUI calls with their Control counterpart
28692
28693 2004-08-21 13:32  pbartok
28694
28695         * Control.cs:
28696           - Implemented Created property
28697
28698 2004-08-21 13:28  pbartok
28699
28700         * Control.cs:
28701           - Implemented ContainsFocus
28702
28703 2004-08-21 13:26  pbartok
28704
28705         * Control.cs:
28706           - Implemented CausesValidation
28707
28708 2004-08-21 13:21  pbartok
28709
28710         * Control.cs:
28711           - Implemented CanFocus
28712           - Implemented CanSelect
28713           - Implemented Capture
28714
28715 2004-08-21 12:35  pbartok
28716
28717         * XplatUIWin32.cs:
28718           - Fixed bug with Async message handling
28719           - Implemented getting the ModifierKeys
28720
28721 2004-08-21 12:32  jackson
28722
28723         * AsyncMethodResult.cs: Make sure we have the mutex before we
28724           release it. Fixes BeginInvoke on windows
28725
28726 2004-08-21 11:31  pbartok
28727
28728         * XplatUIWin32.cs, XplatUIX11.cs:
28729           - Drivers now return proper mouse state
28730
28731 2004-08-21 10:54  jackson
28732
28733         * Control.cs: Implement EndInvoke
28734
28735 2004-08-21 10:48  jackson
28736
28737         * Timer.cs: Remove unneeded finalizer
28738
28739 2004-08-20 19:52  ravindra
28740
28741         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
28742           in mouse event handling in the ToolBar control.
28743
28744 2004-08-20 19:50  ravindra
28745
28746         * ImageList.cs: Changed draw method to use the arguments passed in
28747           to draw the image.
28748
28749 2004-08-20 18:58  pbartok
28750
28751         * XplatUIStructs.cs:
28752           - Added private message for async communication
28753
28754 2004-08-20 17:38  ravindra
28755
28756         * Control.cs: Made RightToLeft property virtual and removed a
28757           Console.WriteLine.
28758
28759 2004-08-20 14:39  jordi
28760
28761         * ThemeGtk.cs: use style_attach
28762
28763 2004-08-20 14:39  pbartok
28764
28765         * XplatUIWin32.cs:
28766           - Added jackson's Async code from X11 to Win32
28767
28768 2004-08-20 14:09  pbartok
28769
28770         * SWF.csproj:
28771           - Added all new files
28772
28773 2004-08-20 14:09  pbartok
28774
28775         * Control.cs:
28776           - Added call to set window background color
28777
28778 2004-08-20 14:03  pbartok
28779
28780         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
28781           - Added method for setting the window background
28782
28783 2004-08-20 14:02  pbartok
28784
28785         * XplatUIWin32.cs:
28786           - Added method for setting the background color
28787           - Added handling for erasing the window background
28788
28789 2004-08-20 13:45  jordi
28790
28791         * TrackBar.cs: fixes timer, new properties and methods
28792
28793 2004-08-20 13:34  jackson
28794
28795         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
28796           correct thread
28797
28798 2004-08-20 13:22  jackson
28799
28800         * Timer.cs: Timer Tick events are now handed through Controls Async
28801           mechanism so the callbacks are executed in the same thread as X
28802
28803 2004-08-20 13:19  jackson
28804
28805         * XplatUIDriver.cs: Expose functionality to send async messages
28806           through the driver
28807
28808 2004-08-20 13:18  jackson
28809
28810         * Control.cs: Implement Begininvoke
28811
28812 2004-08-20 13:14  jackson
28813
28814         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
28815           messages through the driver
28816
28817 2004-08-20 13:12  jackson
28818
28819         * XplatUIX11.cs: Lock before all X operations. Also added Async
28820           method functionality through XSendEvent
28821
28822 2004-08-20 13:11  jackson
28823
28824         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
28825           This will screw up on 64 bit systems)
28826
28827 2004-08-20 13:10  jackson
28828
28829         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
28830           Async messages through X/Win32
28831
28832 2004-08-19 19:39  pbartok
28833
28834         * XplatUIX11.cs:
28835           - Updated code to match new HandleData.DeviceContext type
28836
28837 2004-08-19 19:38  pbartok
28838
28839         * HandleData.cs:
28840           - Made DeviceContext a generic object to allow usage from various
28841           drivers
28842           - Added support for queueing Windows messages
28843
28844 2004-08-19 19:37  pbartok
28845
28846         * XplatUIWin32.cs:
28847           - Added generation of MouseEnter, MouseLeave and MouseHover events
28848           - Added cleanup on EndPaint
28849
28850 2004-08-19 19:17  pbartok
28851
28852         * Control.cs:
28853           - Added handling of WM_MOUSEHOVER
28854           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
28855           code
28856
28857 2004-08-19 18:55  jordi
28858
28859         * ThemeGtk.cs: fixes button order
28860
28861 2004-08-19 18:12  jordi
28862
28863         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
28864
28865 2004-08-19 17:09  pbartok
28866
28867         * Control.cs:
28868           - Added Right property
28869           - Added RightToLeft property
28870
28871 2004-08-19 16:27  jordi
28872
28873         * ThemeGtk.cs: experimental GTK theme support
28874
28875 2004-08-19 16:26  jordi
28876
28877         * ITheme.cs, Theme.cs: move themes from an interface to a class
28878
28879 2004-08-19 16:25  jordi
28880
28881         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
28882           theme enhancaments
28883
28884 2004-08-19 16:04  pbartok
28885
28886         * XplatUIX11.cs:
28887           - Added colormap basics
28888           - Added a way to re-initialize with a different display handle
28889           - Fixed setting of the window background color
28890           - Added various X11 imports related to colors and colormaps
28891
28892 2004-08-19 15:51  pbartok
28893
28894         * X11Structs.cs:
28895           - Removed packing hints (Paolo suggested this a while back)
28896           - fixed colormap type
28897           - Added default Atom types
28898           - Added Screen and color structs and enums
28899
28900 2004-08-19 15:39  pbartok
28901
28902         * ImageList.cs:
28903           - Added missing Draw() method
28904           - Added missing RecreateHandle event
28905
28906 2004-08-19 15:30  pbartok
28907
28908         * Form.cs:
28909           - Added handling of WM_CLOSE
28910
28911 2004-08-18 13:16  jordi
28912
28913         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
28914           a table
28915
28916 2004-08-18 09:56  jordi
28917
28918         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
28919
28920 2004-08-17 15:31  ravindra
28921
28922         * SWF.csproj: Updated project.
28923
28924 2004-08-17 15:25  pbartok
28925
28926         * Control.cs:
28927           - Drawing improvement; don't call UpdateBounds if we are not visible
28928             (or have been minimized)
28929
28930 2004-08-17 15:24  pbartok
28931
28932         * XplatUIWin32.cs:
28933           - Finished IsVisible
28934           - Added Win32GetWindowPlacement
28935
28936 2004-08-17 15:08  jackson
28937
28938         * Panel.cs: Initial checkin of the Panel
28939
28940 2004-08-17 14:25  pbartok
28941
28942         * Control.cs:
28943           - Fixed broken handling of default window sizes
28944
28945 2004-08-17 13:29  jackson
28946
28947         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
28948           has a large startup time.
28949
28950 2004-08-17 10:25  jackson
28951
28952         * HandleData.cs: union areas properly
28953
28954 2004-08-17 10:12  jackson
28955
28956         * HandleData.cs: union areas properly
28957
28958 2004-08-16 20:00  ravindra
28959
28960         * ToolBar.cs, ToolBarButton.cs: Added attributes.
28961
28962 2004-08-16 18:48  ravindra
28963
28964         * ToolBar.cs: Added attributes.
28965
28966 2004-08-16 17:17  ravindra
28967
28968         * SWF.csproj: Updated project.
28969
28970 2004-08-16 17:16  jackson
28971
28972         * XplatUIX11.cs: Check for more expose events before sending a
28973           WM_PAINT so they can all be grouped together. This makes dragging a
28974           window across another window redraw in a sane way.
28975
28976 2004-08-16 15:47  pbartok
28977
28978         * Control.cs:
28979           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
28980             support OnMouseEnter/Leave()
28981           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
28982             exposure handling
28983
28984 2004-08-16 15:46  pbartok
28985
28986         * XplatUIStructs.cs, XplatUIX11.cs:
28987           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
28988           OnMouseEnter/Leave()
28989
28990 2004-08-16 15:34  jackson
28991
28992         * XplatUIX11.cs: Group multiple expose events in HandleData, make
28993           sure messages get the message field set to WM_NULL if they are not
28994           handled.
28995
28996 2004-08-16 15:24  jackson
28997
28998         * HandleData.cs: HandleData is used for storing message information
28999           for window handles
29000
29001 2004-08-15 17:23  ravindra
29002
29003         * ColorDepth.cs: Added attribute.
29004
29005 2004-08-15 17:23  ravindra
29006
29007         * SWF.csproj: Updated project for ToolBar Control.
29008
29009 2004-08-15 17:20  ravindra
29010
29011         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
29012           control and also dos2unix format.
29013
29014 2004-08-15 17:13  ravindra
29015
29016         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
29017           ToolBarButtonClickEventArgs.cs,
29018           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
29019           ToolBarTextAlign.cs: First Implementation of ToolBar control.
29020
29021 2004-08-15 15:31  pbartok
29022
29023         * ButtonBase.cs:
29024           - First (mostly) working version
29025
29026 2004-08-13 16:15  pbartok
29027
29028         * Control.cs:
29029           - Fixed Anchor default
29030
29031 2004-08-13 15:43  pbartok
29032
29033         * Control.cs:
29034           - Changed GetCursorPos signature
29035
29036 2004-08-13 15:42  pbartok
29037
29038         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
29039           - Changed signature for GetCursorPos
29040
29041 2004-08-13 15:25  pbartok
29042
29043         * XplatUIX11.cs:
29044           - Cleanup
29045           - Fixed resizing/exposure handling
29046
29047 2004-08-13 15:22  jordi
29048
29049         * ThemeWin32Classic.cs: removes redundant code and fixes issues
29050           with tickposition
29051
29052 2004-08-13 14:55  jordi
29053
29054         * TrackBar.cs: change from wndproc to events
29055
29056 2004-08-13 13:00  jordi
29057
29058         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
29059           XplatUIX11.cs: implements PointToClient (ScreenToClient)
29060
29061 2004-08-13 12:53  pbartok
29062
29063         * XplatUIWin32.cs:
29064           - Changed GetWindowPos to also provide client area size
29065           - Fixed broken prototypes for several win32 functions
29066
29067 2004-08-13 12:53  pbartok
29068
29069         * XplatUI.cs, XplatUIDriver.cs:
29070           - Changed GetWindowPos to also provide client area size
29071
29072 2004-08-13 12:52  pbartok
29073
29074         * XplatUIX11.cs:
29075           - Added generation of WM_POSCHANGED
29076           - Changed GetWindowPos to also provide client area size
29077
29078 2004-08-13 12:52  pbartok
29079
29080         * Control.cs:
29081           - Added Dispose() and destructor
29082           - Fixed resizing and bounds calculation
29083           - Fixed Layout
29084           - Added memory savings for invisible windows
29085
29086 2004-08-13 12:46  jordi
29087
29088         * TrackBar.cs: adds timer and grap window
29089
29090 2004-08-13 10:25  jackson
29091
29092         * Timer.cs: SWF Timer
29093
29094 2004-08-12 16:59  pbartok
29095
29096         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29097           - Implemented method to get current mouse position
29098
29099 2004-08-12 14:29  jordi
29100
29101         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
29102           enhancement, fix mouse problems, highli thumb, etc
29103
29104 2004-08-12 13:31  pbartok
29105
29106         * Control.cs:
29107           - Fixed Anchoring bugs
29108
29109 2004-08-12 13:01  jackson
29110
29111         * StatusBar.cs: Don't forget things
29112
29113 2004-08-12 12:54  jackson
29114
29115         * ThemeWin32Classic.cs: Handle owner draw status bars
29116
29117 2004-08-12 12:54  jackson
29118
29119         * StatusBar.cs: Implement missing properties, events, and methods.
29120           Handle mouse clicking
29121
29122 2004-08-12 10:19  jackson
29123
29124         * StatusBarPanelClickEventArgs.cs,
29125           StatusBarPanelClickEventHandler.cs: Classes for handling status
29126           bar panel click events
29127
29128 2004-08-12 10:10  jackson
29129
29130         * Control.cs: Add missing properties
29131
29132 2004-08-12 09:46  pbartok
29133
29134         * BindingsManagerBase.cs:
29135           - Name changed to BindingManagerBase.cs
29136
29137 2004-08-12 09:25  jordi
29138
29139         * ScrollableControl.cs: calls ctrlbase instead of exeception
29140
29141 2004-08-11 16:28  pbartok
29142
29143         * InputLanguageChangingEventArgs.cs:
29144           - Never check in before compiling. Fixes the last check-in
29145
29146 2004-08-11 16:26  pbartok
29147
29148         * InputLanguageChangingEventArgs.cs:
29149           - More signature fixes
29150
29151 2004-08-11 16:20  pbartok
29152
29153         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
29154           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
29155           ImageListStreamer.cs, InputLanguage.cs,
29156           InputLanguageChangedEventArgs.cs,
29157           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
29158           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
29159           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
29160           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29161           - Signature fixes
29162
29163 2004-08-11 16:16  pbartok
29164
29165         * Application.cs:
29166           - Fixed Signature
29167           - Added .Net 1.1 method
29168
29169 2004-08-11 15:25  pbartok
29170
29171         * SWF.csproj:
29172           - Fixed BindingManagerBase.cs filename
29173
29174 2004-08-11 15:22  pbartok
29175
29176         * BindingManagerBase.cs:
29177           - Was checked in with wrong filename
29178
29179 2004-08-11 14:50  pbartok
29180
29181         * SWF.csproj:
29182           - Updated
29183
29184 2004-08-11 13:41  jordi
29185
29186         * XplatUIWin32.cs: Fixes ClientRect
29187
29188 2004-08-11 13:19  pbartok
29189
29190         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
29191           XplatUIX11.cs:
29192           - We had SetWindowPos and MoveWindow to set window positions and
29193             size, removed MoveWindow. We have GetWindowPos, so it made sense to
29194             keep SetWindowPos as matching counterpart
29195           - Added some X11 sanity checking
29196
29197 2004-08-11 12:59  pbartok
29198
29199         * Control.cs:
29200           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
29201             (It seems that SetBounds is just a front for SetBoundsCore and
29202              SetBoundsCore updates the underlying window system and
29203              UpdateBounds is responsible for updating the variables associated
29204              with the Control and sending the events)
29205           - Major cleanup of Size handling; we now have two sizes, client_size
29206             and bounds. Bounds defines the window with decorations, client_size
29207             without them.
29208
29209 2004-08-11 12:55  pbartok
29210
29211         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29212           - Added method to calculate difference between decorated window and
29213             raw client area
29214
29215 2004-08-11 12:54  pbartok
29216
29217         * Label.cs:
29218           - Forcing redraw on resize
29219
29220 2004-08-11 11:43  pbartok
29221
29222         * ImageList.cs:
29223           - Removed disposing of the actual images when the list is disposed
29224
29225 2004-08-11 09:13  pbartok
29226
29227         * Control.cs:
29228           - Now properly reparents windows
29229
29230 2004-08-11 08:37  pbartok
29231
29232         * Control.cs:
29233           - Duh!
29234
29235 2004-08-11 07:47  pbartok
29236
29237         * Control.cs:
29238           - Rewrote the collection stuff. Might not be as fast now, not
29239             keeping the number of children around and accessible directly, but
29240             it's more straightforward
29241
29242 2004-08-11 07:44  pbartok
29243
29244         * AccessibleObject.cs:
29245           - Fixed to match ControlCollection rewrite
29246
29247 2004-08-11 07:43  pbartok
29248
29249         * ImageList.cs:
29250           - Added missing creation of the collection list
29251
29252 2004-08-10 20:08  jackson
29253
29254         * StatusBar.cs: Get the paint message from WndProc
29255
29256 2004-08-10 19:31  jackson
29257
29258         * ThemeWin32Classic.cs: Create Brushes as little as possible
29259
29260 2004-08-10 19:20  jackson
29261
29262         * UICues.cs: Add Flags attribute
29263
29264 2004-08-10 19:19  jackson
29265
29266         * StatusBarPanel.cs: Signature cleanup
29267
29268 2004-08-10 19:10  jackson
29269
29270         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
29271           Initial implementation of status bar item drawing
29272
29273 2004-08-10 17:27  jordi
29274
29275         * TrackBar.cs: add missing methods, properties, and restructure to
29276           hide extra ones
29277
29278 2004-08-10 16:24  jackson
29279
29280         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
29281           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
29282           attribute
29283
29284 2004-08-10 13:21  jordi
29285
29286         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
29287           enhancements and standarize on win colors defaults
29288
29289 2004-08-10 12:52  jackson
29290
29291         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
29292           ThemeWin32Classic.cs: Implement DrawItem functionality
29293
29294 2004-08-10 12:47  jordi
29295
29296         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
29297
29298 2004-08-10 12:32  jordi
29299
29300         * Control.cs: throw ontextchange event
29301
29302 2004-08-10 11:43  pbartok
29303
29304         * Control.cs:
29305           - Added more to the still unfinished Dock/Anchor layout code
29306
29307 2004-08-10 11:39  pbartok
29308
29309         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
29310           - Added GetWindowPos method
29311
29312 2004-08-10 11:36  pbartok
29313
29314         * XplatUIWin32.cs:
29315           - Implemented several methods
29316
29317 2004-08-10 09:47  jackson
29318
29319         * TrackBar.cs: Allow control to handle buffering
29320
29321 2004-08-10 09:41  jackson
29322
29323         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
29324
29325 2004-08-10 09:24  jackson
29326
29327         * Label.cs, LinkLabel.cs: Let Control handle buffering.
29328
29329 2004-08-10 09:09  jackson
29330
29331         * StatusBar.cs: Let Control handle all the buffering.
29332
29333 2004-08-10 09:08  jackson
29334
29335         * Control.cs: Control will now handle the buffering code, so each
29336           control does not have to implement this.
29337
29338 2004-08-10 08:34  jackson
29339
29340         * XplatUIDriver.cs: Use default colors from the theme
29341
29342 2004-08-09 17:12  pbartok
29343
29344         * ImageList.cs:
29345           - Fixed several bugs Ravindra pointed out
29346
29347 2004-08-09 16:11  pbartok
29348
29349         * Control.cs:
29350           - Added incomplete dock layout code
29351           - Added support for mouse wheel
29352
29353 2004-08-09 16:09  pbartok
29354
29355         * XplatUIX11.cs:
29356           - Added handling for middle and right mousebutton
29357           - Added handling for mouse wheel
29358           - Added handling for key state and mouse state and position
29359           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
29360           messages
29361
29362 2004-08-09 15:40  jackson
29363
29364         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
29365           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
29366           checkin
29367
29368 2004-08-09 15:37  jackson
29369
29370         * StatusBar.cs: Initial implementation of StatusBar
29371
29372 2004-08-09 15:36  jackson
29373
29374         * ITheme.cs: Add support for drawing status bar and getting status
29375           bar item sizes
29376
29377 2004-08-09 15:35  pbartok
29378
29379         * MouseButtons.cs:
29380           - Fixed values
29381
29382 2004-08-09 15:34  jackson
29383
29384         * ThemeWin32Classic.cs: Add support for drawing status bar and get
29385           status bar item sizes
29386
29387 2004-08-09 15:21  jackson
29388
29389         * ThemeWin32Classic.cs: Use known colors for default control
29390           colours
29391
29392 2004-08-09 15:12  jackson
29393
29394         * ThemeWin32Classic.cs: Make the default font static, it is static
29395           in control so this doesn't change functionality and creating fonts
29396           is sloooooow.
29397
29398 2004-08-09 14:56  pbartok
29399
29400         * X11Structs.cs:
29401           - Added GrabMode enum
29402
29403 2004-08-09 14:55  pbartok
29404
29405         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29406           - Removed Run method, was only required for initial development
29407
29408 2004-08-09 14:51  pbartok
29409
29410         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
29411           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
29412           capture
29413
29414 2004-08-09 13:48  pbartok
29415
29416         * XplatUIX11.cs:
29417           - Fixed default sizing for child windows
29418
29419 2004-08-09 12:56  pbartok
29420
29421         * XplatUIX11.cs:
29422           - Added generation of WM_DESTROY message
29423           - Added handling of window manager induced shutdown
29424
29425 2004-08-09 11:31  jackson
29426
29427         * ThemeWin32Classic.cs: New names for control properties
29428
29429 2004-08-09 11:25  jackson
29430
29431         * Control.cs: Use new color names
29432
29433 2004-08-09 11:02  jackson
29434
29435         * XplatUI.cs: Get default window properties from the theme
29436
29437 2004-08-09 11:01  jackson
29438
29439         * ITheme.cs: The theme engine now controls default window
29440           properties
29441
29442 2004-08-09 11:00  jackson
29443
29444         * ThemeWin32Classic.cs: Add default window color properties
29445
29446 2004-08-09 10:17  jackson
29447
29448         * ThemeWin32Classic.cs: Use correct default back color
29449
29450 2004-08-09 10:05  jackson
29451
29452         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
29453           the theme now.
29454
29455 2004-08-09 09:56  jackson
29456
29457         * XplatUI.cs: Remove defaults, these are handled by the theme now.
29458
29459 2004-08-09 09:54  jackson
29460
29461         * Control.cs: Get default properties from the theme.
29462
29463 2004-08-09 09:53  jackson
29464
29465         * ITheme.cs: Themes now handle default control properties
29466
29467 2004-08-09 09:53  jackson
29468
29469         * ThemeWin32Classic.cs: Themes now handle default control
29470           properties so coloring will be consistent
29471
29472 2004-08-08 16:54  jordi
29473
29474         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
29475
29476 2004-08-08 15:08  jordi
29477
29478         * XplatUIX11.cs: fixes keyboard crash
29479
29480 2004-08-08 13:47  jordi
29481
29482         * Label.cs: add cvs header info
29483
29484 2004-08-08 12:09  jackson
29485
29486         * ThemeWin32Classic.cs: Add pen_buttonface
29487
29488 2004-08-08 11:52  jordi
29489
29490         * Label.cs, LinkLabel.cs: [no log message]
29491
29492 2004-08-08 11:34  jordi
29493
29494         * ThemeWin32Classic.cs: Use Windows Standard Colours
29495
29496 2004-08-07 17:32  jordi
29497
29498         * TrackBar.cs: throw exceptions of invalid enums values
29499
29500 2004-08-07 17:31  jordi
29501
29502         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
29503           draw method name
29504
29505 2004-08-07 16:56  jackson
29506
29507         * HorizontalAlignment.cs: Initial checkin
29508
29509 2004-08-07 13:16  jordi
29510
29511         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
29512           methods
29513
29514 2004-08-07 13:05  jordi
29515
29516         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
29517           GetSysColor defines
29518
29519 2004-08-06 18:01  pbartok
29520
29521         * ThemeWin32Classic.cs:
29522           - Fixed some rounding issues with float/int
29523
29524 2004-08-06 18:00  jackson
29525
29526         * DockStyle.cs, AnchorStyles.cs:
29527
29528                   Add flags and serializable attributes.
29529
29530 2004-08-06 17:46  pbartok
29531
29532         * XplatUIX11.cs:
29533           - Implemented GetParent
29534
29535 2004-08-06 17:18  pbartok
29536
29537         * TrackBar.cs:
29538           - Fixed some rounding issues with float/int
29539
29540 2004-08-06 17:17  pbartok
29541
29542         * X11Structs.cs, XplatUIX11.cs:
29543           - Fixed Refresh and Invalidate
29544
29545 2004-08-06 15:30  pbartok
29546
29547         * Control.cs, X11Structs.cs, XplatUIX11.cs:
29548           - Fixed recursive loop when resizing
29549           - Improved/fixed redrawing on expose messages
29550
29551 2004-08-06 09:53  jordi
29552
29553         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
29554           keyboard navigation
29555
29556 2004-08-06 08:02  pbartok
29557
29558         * X11Structs.cs, XplatUIX11.cs:
29559           - Fixed reparenting
29560           - Fixed window border creation
29561
29562 2004-08-05 15:38  pbartok
29563
29564         * XplatUIX11.cs:
29565           - Attempted fix for reparenting problems
29566
29567 2004-08-04 15:14  pbartok
29568
29569         * Control.cs:
29570           - Fixed Invalidation bug (calculated wrong client area)
29571           - Added ClientSize setter
29572
29573 2004-08-04 15:13  pbartok
29574
29575         * Form.cs:
29576           - Added AutoScale properties
29577
29578 2004-08-04 15:13  pbartok
29579
29580         * SWF.csproj:
29581           - Added latest files
29582
29583 2004-08-04 14:11  pbartok
29584
29585         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
29586           XplatUIX11.cs:
29587           - Added Invalidate handling
29588
29589 2004-08-03 17:09  jordi
29590
29591         * XplatUIDriver.cs: fixes spelling mistake
29592
29593 2004-07-27 09:53  jordi
29594
29595         * TrackBar.cs: fixes trackbar events, def classname, methods
29596           signature
29597
29598 2004-07-27 09:29  jordi
29599
29600         * ScrollBar.cs: fixes scrollbar events
29601
29602 2004-07-27 04:38  jordi
29603
29604         * Control.cs: changes to be able to run winforms samples
29605
29606 2004-07-26 11:42  jordi
29607
29608         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
29609           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
29610
29611 2004-07-26 05:41  jordi
29612
29613         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
29614           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
29615           implementation
29616
29617 2004-07-22 09:22  jordi
29618
29619         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
29620           check link overlapping, implement events, and fixes
29621
29622 2004-07-21 10:28  jordi
29623
29624         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
29625
29626 2004-07-21 10:19  jordi
29627
29628         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
29629           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
29630           LinkLabelLinkClickedEventArgs.cs,
29631           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
29632           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
29633           implementation
29634
29635 2004-07-19 13:09  jordi
29636
29637         * Control.cs, Label.cs: label control re-written: added missing
29638           functionlity, events, and properties
29639
29640 2004-07-19 10:49  jordi
29641
29642         * Control.cs: fixes SetBounds logic
29643
29644 2004-07-19 01:29  jordi
29645
29646         * Control.cs: Call RefreshWindow only if the window has created
29647
29648 2004-07-15 14:05  pbartok
29649
29650         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
29651           - Implemented ImageList and ImageList.ImageCollection classes
29652           - Added ColorDepth enumeration
29653           - Updated SWF VS.Net project
29654
29655 2004-07-15 11:06  jordi
29656
29657         * XplatUIStructs.cs: added MsgButons enum
29658
29659 2004-07-15 11:03  jordi
29660
29661         * Control.cs: added basic mouse handeling events
29662
29663 2004-07-15 03:38  jordi
29664
29665         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
29666           Vertical TrackBar control implementation
29667
29668 2004-07-13 09:33  jordi
29669
29670         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
29671
29672 2004-07-13 09:31  jordi
29673
29674         * Control.cs, Form.cs: commit: new properties and fixes form size
29675           problems
29676
29677 2004-07-09 14:13  miguel
29678
29679         * ProgressBar.cs: Spelling
29680
29681 2004-07-09 11:25  pbartok
29682
29683         * ProgressBar.cs:
29684           - Removed usage of Rectangle for drawing. Miguel pointed out it's
29685           faster
29686
29687 2004-07-09 11:17  miguel
29688
29689         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
29690
29691                 * ProgressBar.cs: Fixed spelling for `block'
29692
29693                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
29694                 style guidelines.
29695
29696                 Avoid using the += on rect.X, that exposed a bug in the compiler.
29697
29698 2004-07-08 23:21  pbartok
29699
29700         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
29701           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
29702           BaseCollection.cs, Binding.cs, BindingContext.cs,
29703           BindingMemberInfo.cs, BindingsCollection.cs,
29704           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
29705           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
29706           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
29707           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
29708           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
29709           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
29710           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
29711           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
29712           FrameStyle.cs, GiveFeedbackEventArgs.cs,
29713           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
29714           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
29715           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
29716           InputLanguageChangedEventArgs.cs,
29717           InputLanguageChangedEventHandler.cs,
29718           InputLanguageChangingEventArgs.cs,
29719           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
29720           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
29721           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
29722           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
29723           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
29724           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
29725           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
29726           QueryAccessibilityHelpEventArgs.cs,
29727           QueryAccessibilityHelpEventHandler.cs,
29728           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
29729           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
29730           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
29731           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
29732           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
29733           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
29734           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
29735           XplatUIX11.cs, lang.cs:
29736           - Initial check-in
29737
29738