b811adf246b63c600f51f96809e782960b2fe99e
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * ListBox.cs: When calling Items.Clear(), call
4         SelectedIndexCollection.ClearCore instead of normal Clear method, to
5         not fire any Selected*Changed event - this is done to match .net and
6         don't have invalid values when changing the DataSourceProperty.
7         Fixes #424273.
8
9 2008-09-12  Mario Carrion  <mcarrion@novell.com>
10
11         * HelpProvider.cs: Control enabled to support accessibility.
12         * Application.cs: Updated to Initialize UIA in HelpProvider.
13         [Fixes bug #425988]
14
15 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
16
17         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
18         make the dialog TopMost as well.
19         [Fixes bug #425984]
20
21 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
22
23         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
24         clipboard data better.
25         [Fixes bug #414446]
26
27 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
28
29         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
30         TextChanged and SelectionChanged events fire in the same order as .Net.
31         [Fixes bug #425725]
32
33 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
34
35         * DataGridView.cs: When sorting a column, if it only contains numbers,
36         do a numeric sort instead of a string sort.
37         [Fixes bug #425849]
38
39 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
40
41         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
42         against NRE's when the settings have a null panel.
43         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
44         the panel gets set.
45         [Fixes bug #425647]
46
47 2008-09-11  Mario Carrion  <mcarrion@novell.com>
48
49         * ToolTip.cs: Control enabled to support accessibility.
50         * Application.cs: Updated to Initialize UIA in ToolTip.
51         [Fixes bug #425277]
52
53 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
54
55         * Control.cs: Make the custom Enumerator internal to fix build.
56
57 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
58
59         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
60         already in edit mode, begin edit mode.  Generally edit mode isn't
61         started until the second click, but CheckBoxes are special.
62
63 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
64
65         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
66         since that can be set to anything.  Always add them to the Control's
67         parent.  [Fixes bug #416058]
68
69 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
70
71         * ListView.cs: Use a custom enumerator for ListViewItemCollection
72         so items can be deleted in a foreach.
73         [Fixes bug #425342]
74
75 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
76
77         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
78         Store the user set explicit height so that the row can be AutoSized
79         and then when AutoSize is turned off, it can get its original size back.
80         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
81         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
82         rows' heights back to their explicit values.
83         [Fixes bug #415780]
84
85 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
86
87         * DateTimePicker.cs: When getting focus, select the checkbox if we are
88         already showing it. Also, don't change its value when pressing space
89         if the checkbox is not visible (ShowCheckBox as false). Finally, the
90         checkbox should remain selected as long as Checked is false, and the
91         other parts are disabled.
92         Fixes #424267.
93         
94 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
95
96         * MessageBox.cs: Handle shortcut keys to dialog buttons.
97         [Fixes bug #425425]
98
99 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
100
101         * Binding.cs: When the value retrieved from the control property is
102         null, don't return Convert.DBNull for Nullable instances, since they
103         can *actually* get a null value.
104         Fixes #424265.
105
106 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
107
108         * Control.cs: Add an internal field to force doublebuffering regardless
109         of what the public mechanisms are set to.  This is because MS's native
110         controls are doublebuffered even though their .Net bits are set to false.
111         * ProgressBar.cs: Set force_double_buffer to true.
112         [Fixes bug #406595]
113
114 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
115
116         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
117         the cell template.
118         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
119         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
120         without EditingControls, paint background selection for types without
121         EditingControls, reset the EditingCellValueChanged flag when the
122         cell's value is committed.
123         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
124         have EditingControls, remove a double call to a cell's OnContentClickInternal,
125         don't do cell changing logic in OnMouseDown if the cell didn't change.
126         [Fixes bug #420351]
127
128 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
129
130         * DateTimePicker.cs: Fix the edition of am/pm specifier.
131
132 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
133
134         * TextControl.cs: Add "&" to the list of valid characters in a URL.
135
136 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
137
138         * DateTimePicker.cs: Before incrementing or decrementing any part in
139         the textbox, end any current edit. Also when ending the current edit
140         use the editing_part_index field instead of the current selected
141         value, since they can be out of synch, and we really need to work on
142         the *real* current edit part. Finally when PartData.Selected changes,
143         always try to end any ongoing edit.
144         This should fix some small errors handling mouse navigation and
145         increase/decrease operations.
146
147 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
148
149         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
150         respectively) should handled different, since the 12 hours format
151         needs the value typed by the user to be adjusted depending on the
152         a.m/p.m value, so it is preserved, and only changed when the value
153         reaches the 12 value (when it changes from a.m to p.m).
154         Fixes part of #416555.
155
156 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
157
158         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
159         * ToolStripDropDownItem.cs: Don't fire events and such again if
160         ShowDropDown is called on an already dropped down item.
161         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
162         subitems, the user may add some in the DropDownOpening event.
163         [Fixes bug #417877]
164
165 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
166
167         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
168         [Fixes bug #424270]
169
170 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
171
172         * MdiClient.cs: When looking for menustrips on a child form to merge,
173         look inside ToolStripContainers.
174         [Fixes bug #424264]
175
176 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
177
178         * ErrorProvider.cs: Unbreak my previous commit.
179
180 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
181
182         * ErrorProvider.cs: Icon should always be 16x16.
183         [Fixes bug #424380]
184
185 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
186
187         * GridEntry.cs: Invalidate the child items cache when the property 
188         value changes.
189
190 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
191
192         * GridEntry.cs, PropertyGridView.cs: 
193            - Update the ReadOnly detection and rendering to finally hopefully 
194            match the one of MSFT.
195            - Niceify and move the debug CWLS.
196         [Fixes bug #409028]
197
198 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
199
200         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
201         since we are already calling Invalidate for the entire control when
202         needed - and call Redraw() when size changes, since we need to paint
203         there by ourselved and not anymore from the mentioned method. 
204         This should improve the layout process. Also clean some not needed calls 
205         here and there.
206
207 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
208
209         * MenuAPI.cs: Add a null check to the Alt-F4 code.
210         [Fixes bug #420309]
211
212 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
213
214         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
215         [Fixes bug #423040]
216
217 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
218
219         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
220         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
221         on item expansion. Improves performance and fixes bug #417955.
222         [Fixes bug #417955]
223
224 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
225
226         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
227         fix the build.
228
229 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
230
231         * TextControl.cs: Add "_" to the list of valid characters in a URL.
232         [Fixes bug #423408]
233
234 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
235
236         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
237         region gets set.
238         [Fixes bug #414166]
239
240 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
241
242         * FontDialog.cs: When storing our font size from the starting font,
243         use SizeInPoints instead of Size in case Size is a different unit
244         from Points.
245         [Fixes bug #416489]
246
247 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
248
249         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
250         don't use it for anything else, check if a directory is highlighted.
251         If it is, navigate into it.
252         [Fixes bug #422087]
253
254 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
255
256         * Binding.cs: When acquiring a BindingManagerBase for the first time,
257         check that the specified property actually exists in the data source,
258         and throw an ArgumentException if that's not the case - this is only
259         done for this scenario, since for later cases (such Position changes)
260         we throw different exceptions (match .Net).
261
262 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
263
264         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
265           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
266           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
267           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
268           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
269           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
270           properties.
271           [Fixes bug #418684]
272
273 2008-09-03  Neville Gao <nevillegao@gmail.com>
274
275         * StatusBar.cs: Control enabled to support accessibility.
276         [Fixes bug #419079]
277
278 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
279
280         * Binding.cs: When connecting the event handler for the "Changed"
281         event for the property, only do it for PropertyManager, and not for
282         CurrencyManager - this is exactly what does .Net, totally ignoring any
283         change in the property of the elements of a list.
284         Fixes the tests.
285
286 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
287
288         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
289         to Windows when creating a window, as we fake MDI stuffs.
290         [Fixes bug #421858]
291
292 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
293
294         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
295         change takes effect.
296
297 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
298
299         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
300         [Fixes bug #419001]
301
302 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
303
304         * DataGridView.cs: Raise CellContentClick event.
305         [Fixes part of bug #420351]
306
307 2008-08-27  Mario Carrion  <mcarrion@novell.com>
308
309         * ScrollBar.cs: Control enabled to support accessibility.
310         [Fixes bug #416759]
311
312 2008-08-27  Mario Carrion  <mcarrion@novell.com>
313
314         * ComboBox.cs: Control enabled to support accessibility.
315         [Fixes bug #416663]
316
317 2008-08-27  Mario Carrion  <mcarrion@novell.com>
318
319         * ListBox.cs: Control enabled to support accessibility.
320         [Fixes bug #416640]
321
322 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
323
324         * ComboBox.cs: Don't suppress the TextChanged event when changing
325         the SelectedIndex.
326         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
327         and re-raise it.
328         [Fixes bug #420673]
329
330 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
331
332         * ErrorProvider.cs: Fix a regression NRE when setting properties
333         for a control before it has a parent.
334         [Fixes bug #420305]
335
336 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
337
338         * Binding.cs: Use the BindingManagerBase.Current value to obtain
339         connect the property "Changed" event, instead of using the data
340         sources - this is useful when the property specifies actually a
341         multiple objects path.
342         Fixes part of #417973.
343
344 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
345
346         * RelatedPropertyManager.cs: PropertyManager instances associated to a
347         nested properties should return not the properties of the data source
348         itself, but the properties of the type of a specific property in the
349         data source - match .net.
350
351 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
352
353         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
354         AddRange overloads into AddItems method, and added missing NULL check.
355         Added extra argument check to RemoveAt for compatibility with MS. 
356         Modified IList implementation of Add, Contains, IndexOf and Remove to
357         throw an ArgumentException if item is not an int. Modified IList.Insert
358         to throw a NotSupportException instead of an Exception. Implemented
359         ICollection.
360         (ObjectCollection): To avoid duplication, use AddItems method from
361         AddRange overloads. On 1.0 profile, first perform NULL check on items
362         in AddItems.
363
364 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
365
366         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
367          #419087.
368
369 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
370
371         * X11Keyboard.cs : comment out some Console.WriteLine().
372
373 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
374
375         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
376           even if premises are not filled. Also XLookupString() was not
377           receiving correct input, which blocked precise input handling
378           on non-XIM mode.
379
380 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
381
382         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
383         type of delegate, instead of EventHandler - this was causing a type
384         cast exception in all apps handling this event.
385         Fixes #417876.
386
387 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
388
389         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
390         ShowDropDown to give the user a chance to dynamically add
391         drop down items.  [Step 1 of fixing bug #417877]
392
393 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
394
395         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
396         had any mouse motion since the call to StartDrag, to match the dnd
397         behaviour of .net.
398         Fixes part of #381876.
399
400 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
401
402         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
403         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
404         Also, if we are actually moving into a different window after
405         grabbing, generate a LeaveNotify event for the previous window, since
406         we need to fire the leave events until the grab ends, not when
407         actually moving outside of the control.
408
409 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
410
411         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
412         events only for client windows was wrong - we need to compare the
413         client window against the window receiving the EnterNotify event, not
414         against zero (since client window is never Zero, btw).
415         This prevents having unnecessary handling of EnterNotify events for
416         non-client windows when a gran begins.
417
418 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
419
420         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
421         MouseMove/MotionNotify events at all (which should only happen after
422         MouseUp/ButtonRelease, as .Net does).
423         This avoids firing an extra and unnecessary MouseMove event just after
424         every MouseDown event.
425
426 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
427
428         * LinkLabel.cs: Always clear any previous links when LinkArea
429         is set.  [Fixes bug #410709]
430
431 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
432
433         * ToolStripProfessionalRenderer.cs: Revert last change.
434         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
435         for ToolStripDropDownBackground.
436
437 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
438
439         * ToolStripProfessionalRenderer.cs: Use Window color for the 
440         background of dropdowns to match .Net when the user is not
441         using the default white.  [Fixes bug #418108]
442
443 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
444
445         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
446           it caused timer registration twice. Fixed bug #418107.
447
448 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
449
450         [Correction: This is the actual change to X11Dnd issue, not the
451         previous one, which was actually a different issue.]
452
453         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
454         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
455         when the pointer is actually in motion, but only when the pointer
456         seems to stop (as .net does).
457         Fixes part of #381876.
458
459
460 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
461
462         * ListBox.cs: Fix CopyTo implementation.
463         [Fixes bug #409169]
464
465 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
466
467         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
468         drawing a ComboBox's background.  Fixes bad disabled rendering when
469         the control is not at 0,0.
470         [Fixes bug #416063]
471
472 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
473
474         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
475         ComponentModel layer, which will properly prioritize the attributes.
476         Avoids wrong prioritization of duplicate attributes when retrieving 
477         the converter and editor.
478         [Fixes bug #417729]
479
480 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
481
482         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
483         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
484         when the pointer is actually in motion, but only when the pointer
485         seems to stop (as .net does).
486         Fixes part of #381876.
487
488 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
489
490         * GridEntry.cs: Perform stricter check for the ParentEntry's 
491         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
492         implementation.
493         [Fixes bug #417567]
494
495 2008-08-14  Geoff Norton  <gnorton@novell.com>
496
497         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
498         Fixes #396983.  Properly fix ActiveWindow trackin and do not
499         prematurely show POPUP windows.
500
501 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
502
503         * XplatUIX11.cs: Handle the obscured regions while scrolling using
504         GraphicsExpose event, processing it just after we copy the scrolled
505         area. This ensures that the next calls to ScrollWindow will copy
506         regions already updated, and the scrolling will be smooth. Also remove
507         the code that was trying to detect the obscured regions, since we are
508         not using it anymore (too slow).
509
510 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
511
512         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
513         MultiExtended mode, by separating some logic between the ctrl/shift
514         handling. Also ignore any MouseMove events generated together with
515         MouseDown events - we are only interested in the real motion event.
516         Fixes part of #414963.
517
518 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
519
520         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
521         is selected.  [Fixes bug #414143]
522
523 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
524
525         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
526         and not the parent one (the propertyowner). Fixes the behavior of 
527         GetConverter/GetEditor.
528         [Fixes bug #415452]
529
530 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
531
532         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
533         [Fixes part of bug #415452]
534
535 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
536
537         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
538         GridEntry, not the current.
539         [Fixes bug #413896]
540
541 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
542
543         * TextBoxBase.cs: De-internalize max_length field.
544         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
545         share the same logic.
546         [Fixes bug #414454]
547
548 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
549
550         * ListBox.cs: Selection changes made in the MouseDown handler should
551         use the *Core versions of selection in SelectedIndices collection,
552         since the SelectedIndexChanged/SelectedValueChanged events are fired
553         until we get a MouseUp event, and thus we need to separate the logic
554         from the events, as done in the keyboard navigation. Also, fire those
555         selection events from keyboard navigation in SelectionMode.None, even
556         if we don't have a selection, as .Net does.
557
558 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
559
560         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
561         last change introduced when an item is clicked but isn't on a toolstrip.
562
563 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
564
565         * ListBindingHelper.cs: When looking for an object's properties, check
566         if it implements ICustomTypeDescriptor, in which case we should
567         resolve the propertu based on its GetProperties method, not in its
568         actual properties. This is what .Net seems to do.
569         Fixes a UsingWebBrowser problem during initialization.
570
571 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
572
573         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
574         sitting on a MenuStrip.
575
576 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
577
578         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
579         no children with the keyboard, we need to release the keyboard capture.
580         [Fixes bug #413567]
581
582 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
583
584         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
585         no children with the keyboard, we need to release the keyboard capture.
586         [Fixes bug #413567]
587
588 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
589
590         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
591         the GTK+-based implementation of VisualStyles.
592         * ThemeWin32Classic.cs: Exposed various layout values for use in the
593         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
594         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
595         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
596         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
597         TrackBarHorizontalTrackHeight.
598
599 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
600
601         * TabControl.cs: Added hot style handling for the scroll buttons.
602         right_slider_state, left_slider_state are now of type PushButtonState to
603         allow for a hot state. Added tracking of the mouse button being held down
604         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
605         LeftScrollButtonArea.
606         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
607         TabControlGetRightScrollRect.
608
609 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
610
611         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
612         runtime errors.
613
614 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
615
616         * Form.cs: Ensure that we reset the shown_raised flag after 
617         the form is closed, so that we raise the show events the next 
618         time the form is shown.
619         [Fixes bug #413141]
620
621 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
622
623         * Form.cs: Ensure closing events are raised only once.
624         [Fixes bug #413143]
625
626 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
627
628         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
629         so that we can successfully generate the LParam in-place instead of 
630         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
631         navigation for menus.
632
633 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
634
635         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
636         'navigating'. Fixes bug #411356.
637
638 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
639
640         [Fixed remaining issues of #406773 (#1)]
641         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
642
643         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
644         MainMenu (already done) and ContextMenu creation.
645
646         * ContextMenu.cs: Create tracker on construction. 
647
648 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
649
650         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
651         possible to instantiate MenuTracker without GrabControl.
652
653 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
654
655         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
656
657         * MainMenu.cs: Set GrabControl on SetForm using current form.
658
659 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
660
661         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
662
663 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
664
665         * MenuAPI.cs: Check if menu is activated before deactivate it in 
666         ProcessShortcut.
667
668 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
669
670         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
671         ColumnStyle.cs: 
672         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
673          - One style instance can only participate in a single style collection.
674          - Styles can request their owner to layout whenever their properties 
675          change.
676          [Fixes bugs #412583 and #412582]
677
678 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
679
680         * X11Keyboard.cs: Implement the generation of the LParam for 
681         all keyboard messages.
682         [Fixes bug #378728]
683
684 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
685
686         * ListBox.cs: Don't let the user set TopIndex so high that it
687         scrolls up far enough to show empty items.
688         [Fixes bug #412728]
689
690 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
691
692         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
693         (I'm an idiot and forgot to commit the actual changes, as well as
694         specify the right file, which is this one, not ListView.cs).
695
696 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
697
698         * ListView.cs: Don't draw ListViewSubItem instances from
699         DrawListViewItem - we need to reuse the main item's drawing for the
700         first sub item in case owner draw is true, but wants the system to
701         do the default draw for the first sub item, without incurring in a
702         recursion problem.
703         Fixes #410880.
704
705 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
706
707         * ToolStripButton.cs: Update Checked for CheckOnClick before
708         raising the Click event.  [Fixes bug #412505]
709
710 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
711
712         * Form.cs: Remove some seems leftover code for non-TopLevel's 
713         CreateParams, which is breaking ClientSize sizing, because it 
714         removes the border window styles.
715
716 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
717
718         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
719         changes.
720
721 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
722
723         * WebBrowser.cs: Removed debug output.
724
725 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
726
727         * FileDialog.cs: Apply patch from Ernesto to clean up some
728         dialog messages.
729
730 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
731
732         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
733         that the change has an immediate effect.
734
735 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
736
737         * ScrollableControl.cs: Update PerformLayout calls to include 
738         provide the name of the property that changed.
739
740 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
741
742         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
743         location. Fixes drawing of border and cell borders if scrollable.
744
745 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
746
747         * ScrollableControl.cs: Perform layouting after the AutoScroll 
748         properties have changed, so that the changes have immediate 
749         effect.
750         [Fixes bug #409090]
751
752 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
753
754         * XplatUIX11.cs: Non Client area is actually Client such in the 
755         case of NotifyIcon, so double check WholeWindow == ClientWindow 
756         when adding an expose.
757         [Fixes bugs #324237 and #357022]
758
759 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
760
761         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
762         repaint the cell borders.
763
764 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
765
766         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
767         disposal to avoid unexpected ObjectDisposedExceptions.
768
769 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
770
771         * TableLayoutPanel.cs: Layout on Row/Column count change.
772
773 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
774
775         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
776         bug #409351.
777         * PictureBox.cs: When ImageLocation is set to null or an empty string,
778         only set image to null if it was previously initialized from an url
779         (or using ImageLocation). In ImageLocation, load specified image
780         asynchronously if WaitOnLoad is false. Added support for local file
781         paths to LoadAsync, and added missing argument check.
782
783 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
784
785         * DateTimePicker.cs: 
786         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
787         order to set the value as required (which means: when selection
788         changes for a part being edited, and not before that if not needed).
789         Also use an enum to describe which part are we using, and use the
790         selection as a property in PartData, in order to notify the
791         DateTimePicker owner that we need to end the current edit.
792         Fixes #383462.
793
794 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
795
796         * PropertyGridTextBox.cs: Validation should be performed only if we 
797         are focused. We can lose focus for example if the Return key is used 
798         to set the entry and there is an error. When the message box is 
799         displayed we would have validate on click in the message box.
800
801 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
802
803         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
804         in order to determine that we are expandable is wrong. There was a bug, 
805         now fixed, in TypeDescriptor that was causing the wrong converter to be 
806         returned which caused GetPropertiesSupported == false in most cases.
807         [Fixes bug #409027]
808
809 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
810
811         * ImageList.cs: Fix ICollection.CopyTo implementation for
812         ImageListCollection.  [Fixes bug #409169]
813
814 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
815
816         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
817         WorkingArea so that menus can appear on the second monitor
818         when one has dual monitors.
819
820 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
821
822         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
823         Fixes build.
824
825 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
826
827         * TextBox.cs: Implement navigation support for auto complete in
828         TextBox, as well as refactor the code to show the auto complete window
829         when receiving a WM_CHAR message, instead of TextChanged, since
830         autocomplete itself should be able to set the Text a lot of times and
831         finally only typing should show it, not changes from code.
832
833 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
834
835         * TabControl.cs: When expanding the selected tab, don't adjust the
836         width if alignment is Right, since it has a different offset than 0,
837         as opposed to the other alignments.
838         Fixes the selected tab not being painted at all with alignment = Right
839         and using FillToRight size mode.
840
841 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
842
843         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
844
845 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
846
847         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
848         values from the textbox to the boundary values.  [Fixes bug #409026]
849
850 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
851
852         * TreeNodeCollection.cs: We were copying one too many elements when
853         doing our array copy.  Fixes a crash when RemoveAt is called.
854         [Fixes bug #408999]
855
856 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
857
858         * TabControl.cs: When doing the layout and need to call FillRow -using
859         FillToRight size mode-, use the overload receiving a bool param
860         indicating whether we need to do a vertical or horizontal calculation.
861         Fixes part of #399583.
862
863 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
864
865         * TextBox.cs: When painting, use the value returned by
866         GetLastVisibleItem instead of using the cached last_item field, since
867         there could be a desynchronization between the layout and the
868         painting. Fixes a AOOR exception in auto complete mode.
869
870 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
871
872         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
873         NonClientAreaEnabled until our VisualStyles is modified to allow it.
874
875 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
876
877         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
878
879 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
880
881         * TextBox.cs: When focus is lost, if the auto complete listbox is
882         visible, hide it.
883
884 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
885
886         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
887         tracking size for tool windows.
888         * Theme.cs, ThemeWin32Classic.cs : Extracted
889         ManagedWindowSpacingAfterLastTitleButton.
890
891 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
892
893         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
894         They are bit-rotted and have always been listed as "unsupported".
895
896 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
897
898         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
899
900 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
901
902         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
903
904 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
905
906         * ListBox.cs: Make sure last_item_visible gets reset before we try
907         to do a layout due to scrollbars appearing or disappearing.
908         [Fixes bug #408139]
909
910 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
911
912         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
913         for different window themes.  [Fixes bug #339140]
914
915 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
916
917         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
918         in ManagedWindowBorderWidth.
919
920 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
921
922         * InternalWindowManager.cs: Change MouseMove to take a point, so
923         we can use the same point later on.
924         * MdiWindowManager.cs: Store point sent to MouseMove so we can
925         later reset to it.  On Windows, the Cursor.Position had already
926         changed by the time we were resetting to it.
927         [Fixes bug #363239]
928
929 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
930
931         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
932         are inactive.
933         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
934         user requested it.
935         [Fixes bug #398686]
936
937 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
938
939         * MdiWindowManager.cs: Double-clicking on the title bar should not
940         maximize a MDI form if MaximizeBox = false.
941
942 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
943
944         * ThemeVisualStyles.cs: Fixed a warning.
945
946 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
947
948         * ThemeVisualStyles.cs: Fixed warnings and formatted.
949
950 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
951
952         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
953         implementation produces a better result.
954
955 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
956
957         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
958         windows.
959
960 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
961
962         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
963         cannot be used from the ThemeEngine constructor.
964         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
965         Application.VisualStylesEnabled because it does not work on X11.
966
967 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
968
969         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
970         that we did not always check for, as well as fixes to the IList
971         implementations.  [Fixes bug #402703]
972
973 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
974
975         * IDeviceContext.cs: Added Dispose.
976
977 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
978
979         * Control.cs: Added OnSizeInitializedOrChanged.
980         * Form.cs: OnLoadInternal: Added a call to
981         Control.OnSizeInitializedOrChanged.
982         * InternalWindowManager.cs:
983          * HandleTitleBarMouseMove: No longer invalidates the parent window.
984          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
985          * TitleButton: Added Entered.
986          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
987         * MdiWindowManager.cs:
988          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
989          move over the maximized title buttons causes a change.
990          * IsActive: Can now be called before the window is added to a MDI parent.
991         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
992         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
993         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
994         * ThemeWin32Classic.cs:
995          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
996          * DrawTitleButton takes a new form parameter.
997          * Added ManagedWindowTitleButtonHasHotElementStyle,
998          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
999
1000 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
1001
1002         * ThemeEngine.cs: ThemeVisualStyles is now selected if
1003         Application.EnableVisualStyles has been called, even if the current system
1004         configuration does not support rendering with Visual Styles.
1005         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
1006         Styles should not be used.
1007
1008 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
1009
1010         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
1011         ComboBox in FormsTest.
1012
1013 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
1014
1015         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
1016         for fixed toolwindows.
1017
1018 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
1019
1020         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
1021
1022 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1023
1024         * Control.cs: CreateControl just returns if the Control is diposed 
1025         and doesn't throw ObjectDisposedException.
1026         [Fixes bug #406566]
1027
1028 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1029
1030         * Control.cs: Do not create the control if the parent isn't created 
1031         yet, e.g in the case of a parented form on which .Show is called.
1032         It will be created when the parent is made visible/created.
1033         Improves #402446.
1034
1035 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1036
1037         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
1038         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
1039         [Fixes bug #406786]
1040
1041 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1042
1043         * Form.cs: When disposed set owner to null. Improves #402446.
1044
1045 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1046
1047         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
1048         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
1049         if not.
1050         * Form.cs: Take the Padding into account for the PreferredSize.
1051         [Fixes bug #402849]
1052
1053 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1054
1055         * TabControl.cs: Since we don't support more than one direction in
1056         TabControl rows alignment (this is, the row becomes the
1057         bottom row when selected), make Direction return always 1. This way
1058         the layout doesn't get confused about a bad calculation.
1059         Fixes #399582.
1060
1061 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
1062
1063         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
1064         so that the wparam is properly set.
1065         Fixes form moving in the test case in bug 402446.
1066
1067 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
1068
1069         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
1070         the full tree instead of nothing.  [Improves bug #406584]
1071
1072 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
1073
1074         * ThemeWin32Classic.cs: Adjusted minimized window painting.
1075
1076 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
1077
1078         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
1079         children.
1080
1081 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
1082
1083         * TreeView.cs: Add a null check when using CollapseAll on an
1084         empty tree.  [Fixes bug #406449]
1085
1086 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1087
1088         * Form.cs: Make OnMenuComplete internal so we can call it.
1089         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
1090         [Fixes bug #399321]
1091
1092 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1093
1094         * TabControl.cs: Handle Up and Down keys when TabControl is in
1095         vertical alignment.
1096         [Fixes bug #399585]
1097
1098 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1099
1100         * TabControl.cs: Invalidate when we remove a tab.  Guard against
1101         an AOORE when trying to remove a tabpage that is not owned by the
1102         parent control.
1103         [Fixes bug #399927]
1104
1105 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1106
1107         * ScrollBar.cs: Change the LargeChange calculation to be correct.
1108         Ensure we are using LargeChange instead of large_change so we our
1109         calculations are correct.
1110         [Fixes bug #403122]
1111
1112 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
1113
1114         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
1115         we need to ensure the ColumnCount/RowCount gets set.
1116         [Fixes bug #404851]
1117
1118 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1119
1120         * ListBox.cs: When handling item navigation, if selection mode is
1121         None, call EnsureVisible, since scrolling is normally handled by
1122         selection, that we are not calling in this case.
1123         Fixes #398345.
1124
1125 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
1126
1127         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
1128         a null check to our focus walking code.  [Fixes bug #394332]
1129
1130 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
1131
1132         * ComboBox.cs: Case missed in bug 379596 "Support item
1133         navigation by entering text": On _close_ drop-down select
1134         the first item matching the text in the textbox.  [Fixes bug #397265]
1135
1136 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
1137
1138         * DataGridView.cs: Fix a crash when sorting by column headers, 
1139         mentioned in bug #404841.  Remove some dead switch cases.
1140
1141 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1142
1143         * ComboBox.cs:
1144         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
1145         uses the AutoComplete support in the internal TextBox. Also TextBox
1146         can store a reference to ComboBox, in case AutoCompleteSource is set
1147         to ListItems (this is, ComboBox's items, and we don't want to pass an
1148         additional collection).
1149
1150 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1151
1152         * ListViewItem.cs: Restore the initial value of bounds rect to
1153         Rectangle.Empty, and is this value for Layout detection in virtual
1154         mode. Fixes the tests.
1155
1156 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
1157
1158         * XPlatUI.cs: Remove references to "new" X11 backend.
1159
1160 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
1161
1162         * Control.cs: Add an internal virtual OnDragDropEnd method 
1163         to allow controls such as ListBox, which depend on a sequence 
1164         of MouseDown+Move+End events, to handle the lack of a MouseUp 
1165         when a DnD operation is started in MouseDown.
1166         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
1167         get a MouseUp, so reset our state whenever a DnD operation ends.
1168
1169 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
1170
1171         * PropertyGrid.cs: Clear the root griditem first thing when 
1172         new object/s is/are selected. Fixes some rare cases where 
1173         the View will get a paint request and won't know that the 
1174         grid is in the process of repopulating.
1175
1176 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1177
1178         * XplatUIX11.cs, InternalWindowManager.cs: 
1179         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
1180         doesn't automagically update the FormBorderStyle, so we must 
1181         double check the CreateParams explicitly to determine if the 
1182         window is a toolwindow.
1183         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
1184         instead of doing custom checks.
1185
1186         Fixes toolwindows for the test case in bug #402446
1187
1188 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1189
1190         * Control.cs: Visibility of the control should be false 
1191         when the handle is destroyed in WmDestroy and not immediately 
1192         in Dispose(). This is effectively where the disposing process 
1193         ends even though the control is marked as Disposed immediately 
1194         after calling Dispose().
1195         [Fixes bug #402446]
1196
1197 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1198
1199         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
1200         when the textbox gets focus.
1201         [Fixes bug #402704]
1202
1203 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
1204
1205         * PropertyGridTextBox.cs, PropertyGridView.cs: 
1206          - Alt + Down should show the drop down editor.
1207          - Focus the editor when showing it
1208         [Fixes bug #402710]
1209
1210 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
1211
1212         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
1213         that are not the first panel.
1214         * StatusBar.cs: Ensure that the X coordinate of panels is always
1215         stored.  Fix IList implementation of StatusBarPanelCollection to
1216         call the regular methods.
1217         [Fixes bug #403599, #402165]
1218
1219 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
1220
1221         * ThemeWin32Classic.cs: Fix position calculation for centered
1222         text on status bar panels.  [Fixes bug #402165]
1223
1224 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
1225
1226         * Splitter.cs: Fix Splitter to:
1227          - Work for arbitrary splitter size
1228          - Handle MinSize and MinExtra properly
1229          - Get rid of absolute positioning during drag and use relative
1230          - Multiple other fixes 
1231          [Fixes bug #338966]
1232
1233 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
1234
1235         * Cursor.cs: Show shouldn't hide the cursor.
1236
1237 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1238
1239         * ListViewItem.cs: When invalidating, add some extra space to bounds,
1240         since focus rectangle and selection can add some space and need to
1241         take into account those small offsets - specially in Details view.
1242         * ListView.cs: Instead of invalidate using item Bounds directly, call
1243         item.Invalidate, to have the code centralized.
1244         Fixes focused/selection garbage when selecting and deselecting items
1245         that are close.
1246
1247 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1248
1249         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
1250         mode we can check whether we have to force a Layout or not, and can
1251         cache based on this, instead of avoiding caching all the the time. Do
1252         this check in GetBounds and TextBounds.
1253         Fixes selection in Details view.
1254
1255 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1256
1257         * ListView.cs: Make HeaderControl internal, thus the theme engine can
1258         get its *real* height instead of trying to infere it.
1259         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
1260         get the position of them, since it's in general a bad idea in general,
1261         and because we can't do that in virtual mode. Instead get the first
1262         visible item as well as item height, and draw them.
1263         Fixes #400390.
1264
1265 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
1266
1267         * ToolStripSplitButton.cs: We can't add in extra width if
1268         the button is not AutoSize.  [Fixes bug #401279]
1269
1270 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
1271
1272         * PaddingConverter.cs: 
1273          - Implement conversion to InstanceDescriptor
1274          - Handle "All" in CreateInstance by using the supplied 
1275          ITypeDescriptorContext.
1276          [Fixes bugs #396076 and #396078]
1277
1278          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
1279          Code contributed under MIT/X11 license.
1280
1281 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
1282
1283         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
1284         ButtonBase.cs:
1285         Add Category attributes.
1286         Code is contributed under the MIT/X11 license.
1287
1288 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
1289
1290         * Form.cs: 
1291          - Fix a NRE when unparenting a form.
1292          - Do not recreate or destroy a parented form when 
1293         unparenting. 
1294
1295 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1296
1297         * TextBox.cs: Implement basic support for AutComplete with custom
1298         sources.
1299
1300 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
1301
1302         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
1303         DropDownButtonBounds should be from the origin of the button, not the
1304         ToolStrip.  [Fixes bug #401279]
1305
1306 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
1307
1308         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
1309           running gtk_init_check.  This prevents GAIL from loading
1310           unnecessarily, which was breaking UIA support.  Initial fix for bug
1311           #375987.
1312         * Application.cs: Add UIA support to Winforms.  New static constructor
1313           uses reflection to initialize UIAutomationWinforms assembly.  Added
1314           PreRun event so UIA can initialize before the mainloop starts, and
1315           FormAdded event so UIA can provide a11y support for new Forms in an
1316           Application.
1317
1318 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
1319
1320         * DataGridView.cs: When binding to a dataset, subscribe to table
1321         and column change events.  Unsubscribe to these when we clear bindings.
1322         [Fixes bug #399601]
1323
1324 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
1325
1326         [DataGrid drawing refactory]
1327
1328         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
1329
1330         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
1331         must be handle by Theme, now it call DataGridPaintColumnHeader.
1332
1333         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
1334         test cases must be also fixed because it checks for wrong size.
1335
1336         * ThemeWin32Classic.cs: 
1337                 - Draw the bottom line of grid caption.
1338                 - Prevent to draw caption text when it is empty.
1339                 - Use CPDrawBorder3D for 3D efects to simplify code.
1340                 - Uses 3D (when not flat) to paint corner shared between row and column
1341                 header.
1342                 - Fix header drawing issues on win32, now borders are drawing.
1343                 - Fix column header paint issues to mimic win32.
1344                 - Adjust header drawing for last column, like first one it must be draw
1345                 different.
1346                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
1347                 not an character.
1348                 - DataGridPaintColumnHeader created to draw column headers, it also
1349                 paint stuff right on Win32.
1350                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
1351                 class.
1352
1353         * Theme.cs: 
1354                 - DataGridPaintRowHeaderStar method added.
1355                 - DataGridPaintColumnHeader method added.
1356
1357 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
1358
1359         * Control.cs: Don't reset to Dock style layout if DockStyle is
1360         set to none.  [Fixes bug #399316]
1361
1362 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
1363
1364         * Win32DnD.cs: Fix the check for control not equal null.
1365         Fixes bug #341420 and #381886. 
1366
1367 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
1368
1369         * DataGridViewRowCollection.cs: Update the indexes of rows after
1370         one has been removed.
1371         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
1372         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
1373         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
1374         rows for the Rows collection, or deleting rows from the bound DataSet.
1375
1376 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
1377
1378         * DataGridView.cs: Listen to a DataSet's changed event even
1379         when autogeneratecolumns is false.  Refactor the changed event's
1380         add row code to use the same as the existing add row code.
1381         [Fixes bug #399601]
1382
1383 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1384
1385         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
1386         much any time the caret moves and there is text, not just when
1387         the selection changes as one would think.
1388         * RichTextBox.cs: Override RaiseSelectionChanged and fire
1389         SelectionChanged.
1390         [Fixes bug #397271]
1391
1392 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1393
1394         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
1395         instead of trying to duplicate the code.
1396         * ListBox.cs: Make method internal so we can send keyboard events.
1397         [Fixes bug #398344]
1398         
1399 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1400
1401         * TextBoxBase.cs: When pasting and checking the max length,
1402         subtract the selected text length (the text we will be replacing) from
1403         the document length.
1404         * TextControl.cs: Ensure every character insertion is reflected in
1405         charcount, so max length will work properly.
1406         [Fixes bug #398605]
1407
1408 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1409
1410         * ListBox.cs: Ensure scrollbars are updated when a single
1411         column listbox with an already set top-index is created.
1412         [Fixes bug #398342]
1413
1414 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
1415
1416         * FontDialog.cs: Typing in the font/style textboxes should search
1417         the list boxes case-insensitively.  [Fixes bug #398343]
1418
1419 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
1420
1421         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
1422         widths of icon and buttons instead of hard coded values.
1423
1424 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1425
1426         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
1427         as well as generating a SelectedIndexChanged event, just like .Net does
1428         -surprise-.
1429         Fixes #398345.
1430
1431 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1432
1433         * ListBox.cs: When navigating items visually, use FocusedItem as the
1434         reference point instead of SelectedIndex, since even in
1435         SelectionMode.None we need to support navigation, and in that case we
1436         just can't use SelectedIndex.
1437         Fixes part of #398345.
1438
1439 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
1440
1441         * Control.cs: Make a SetBoundsInternal that avoids the new
1442         SetBounds code.
1443         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
1444         SetBoundsInternal instead of SetBoundsCoreInternal.
1445
1446 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
1447
1448         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
1449         SetBounds for the scrollbars.
1450
1451 2008-06-10  Andreia Gaita <avidigal@novell.com> 
1452
1453         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
1454           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
1455           OnMouseMove, OnMouseOver, OnMouseUp
1456         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
1457           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
1458         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
1459           to the WebControl object to pass to new collection objects
1460         * HtmlHistory.cs: Implement support for individual window histories.
1461         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
1462           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
1463           GotFocus, LostFocus, OnLoad, OnUnload
1464         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
1465           ContextMenu
1466         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
1467           security level changes and context menu event support.
1468
1469 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1470
1471         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
1472         as happens with Esc, patch my Andy Hume.
1473         Fixes #396294.
1474
1475 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1476
1477         * MdiWindowManager.cs: DrawMaximizedButtons now uses
1478         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
1479         * Theme.cs: Made MenuButtonSize platform dependent. Added
1480         ManagedWindowButtonSize.
1481         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
1482         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
1483
1484 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1485
1486         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
1487         Added support for rendering with VisualStyles.
1488
1489 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1490
1491         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1492         support for rendering the border with VisualStyles.
1493
1494 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1495
1496         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
1497         the icon is not shown.
1498         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
1499         its own logic.
1500
1501 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
1502
1503         * InternalWindowManager.cs: Draw minimized windows even if they don't have
1504         borders.
1505
1506 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
1507
1508         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
1509
1510 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
1511
1512         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
1513         [Fixes bug #397943]
1514
1515 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1516
1517         * ComboBox.cs: When snaping height -because of IntegralHeight set to
1518         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
1519         if the requested height leaves the listbox area with *less* than the
1520         required are to see one item. We were setting it to PreferredHeight
1521         even for values matching the height for a single item.
1522         Fixes #396297.
1523
1524 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
1525
1526         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
1527
1528 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
1529
1530         * DataGridViewCell.cs: Use property instead of field.
1531
1532 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1533
1534         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
1535         null checks.
1536
1537 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1538
1539         * Theme.cs: Added #region around the managed window code. Made the managed
1540         window methods abstract.
1541         * ThemeWin32Classic.cs: Added #region around the managed window code.
1542
1543 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1544
1545         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
1546         if it has borders.
1547         * ThemeWin32Classic.cs: Removed HasBorders checks in
1548         DrawManagedWindowDecorations.
1549
1550 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
1551
1552         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1553         Extracted ManagedWindowGetTitleBarIconArea.
1554
1555 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
1556
1557         * DataGridViewCellStyle.cs: Don't clone the font.
1558
1559 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
1560
1561         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
1562
1563 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1564
1565         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
1566         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
1567         in 64 bit machines.
1568
1569 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
1570
1571         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
1572         Use Format/FormatProvider before trying converters.
1573         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
1574         are 'set'.  Change constructor to not use ApplyStyle since it wants
1575         everything applied.  Clone the Font.
1576         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
1577         ApplyStyle the rest.
1578
1579 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1580
1581         * ListView.cs: We need to calculate the scrollbars even if the handle
1582         hasn't been created - this is needed when methods using scrollbars
1583         info, such EnsureVisible, are called before control has been created.
1584         Fixes #397272.
1585
1586 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
1587
1588         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
1589         only if the elements are defined. 
1590
1591 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1592
1593         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
1594         section. Also, when setting bounds, snap height as well as save the
1595         requested height if Dock has any value affecting the height: Left,
1596         Right and Bottom - important if using IntegralHeight as true.
1597
1598 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1599
1600         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
1601         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
1602         instead of doing that only in our SetBoundsCore override, since the 
1603         bounds cached can be the same as saved one and we could not get the
1604         new height applied.
1605         Fixes #396297.
1606
1607 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1608
1609         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
1610         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
1611         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
1612         ToolWindowCaptionButtonSize.
1613         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
1614
1615 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1616
1617         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
1618         hard coded values.
1619         * Theme.cs: Made DoubleClickTime plaform dependent.
1620
1621 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1622
1623         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
1624         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1625         ToolWindowCaptionHeight.
1626
1627 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1628
1629         * InternalWindowManager.cs: The adjustment to ensure positive client area
1630         sizes is now platform dependent (disabled on Windows).
1631         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
1632         RequiresPositiveClientAreaSize.
1633
1634 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1635
1636         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
1637
1638 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
1639
1640         * InternalWindowManager.cs: Changed IconicSize to use
1641         SystemInformation.MinimizedWindowSize.
1642         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
1643         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
1644
1645 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1646
1647         * ComboBox.cs: If the combobox is anchored both on top and bottom,
1648         adjust height if IntegralHeight is true when calling SetBoundsCore (as
1649         likely the height was modified even if Height wasn't specified in
1650         BoundsSpecified parameter).
1651         Fixes part of #396297.
1652
1653 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
1654
1655         * InternalWindowsManager.cs: Changed minimum window size while resizing to
1656         SystemInformation.MinWindowTrackSize.
1657         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
1658         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
1659
1660 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
1661
1662         * MenuItem.cs: Fixed Dispose.
1663
1664 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
1665
1666         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
1667         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
1668         EnteredHeaderCell, PressedHeaderCell: Added.
1669         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
1670         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
1671         theme a chance to override default painting.
1672         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
1673         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
1674         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
1675         ListView and DataGridView header rendering.
1676         
1677 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
1678
1679         * RichTextBox.cs: GetPositionFromCharIndex should return the 
1680         visual position of the character relative to the viewport.
1681         [Fixes part of bug #396664]
1682
1683 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
1684
1685         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
1686         and not just for the existance of an UITypeEditor. In some cases 
1687         there is an editor associated just to do PaintValue, but which 
1688         doesn't actually support editing.
1689         [Fixes bug #396632]
1690
1691 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1692
1693         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
1694         if needed, instead of 0 - this should help us in the corner case where
1695         we have more than one item but we are only partially showing 1 item.
1696         Fixes part of #374713.
1697
1698 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1699
1700         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
1701         control, return immediately if the any parent control's handle hasn't
1702         been created or isn't visible, as well as avoiding creating the parent
1703         Form if the handle hasn't been previously created.
1704         Fixes tests.
1705
1706 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
1707
1708         * TableLayoutPanel.cs: Use border sizes when calculating the
1709         panel's preferred size.  [Fixes part of bug #396433]
1710
1711 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
1712
1713         * SplitContainer.cs:
1714          - Fix SplitterDistance to update only if needed. 
1715          - Make it force min and max validation.
1716          - Handle properly mouse moves outside the resizeable area.
1717          [Fixes bug #396232]
1718
1719 2008-06-02  Andreia Gaita <avidigal@novell.com> 
1720
1721         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
1722           (which also suppresses all popup dialogs). Throw NotSupported
1723           exceptions for activex getters/setters.
1724         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
1725           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
1726           StatusText, Version, GoSearch
1727         * HtmlDocument.cs: Add DocType support
1728
1729 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
1730
1731         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
1732         [Fixes bug 396124]
1733
1734 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
1735
1736         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
1737
1738 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
1739
1740         * TableLayoutPanel.cs: When calculating preferred size, use the
1741         actual number of columns and rows, not what the user set them to.
1742         [Fixes bug #396141]
1743
1744 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
1745
1746         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
1747         394311.
1748
1749 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1750
1751         * XplatUIX11.cs: When detecting areas obscured in a control by other
1752         toplevel windows while scrolling, return if the control hasn't a 
1753         container form.
1754         Fixes some tests.
1755
1756 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1757
1758         * XplatUIX11.cs: Properly detect the visible area of a control being
1759         scrolled (obscured by other winforms controls and any X toplevel
1760         windows), to mark as invalid the requested area to be scrolled that
1761         isn't visible and thus can't be copied.
1762         Fixes #324513.
1763
1764 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1765
1766         * ListBox.cs: Compute the precise amount to vertically scroll when
1767         using DrawMode.OwnerDrawVariable.
1768         Patch by jkeymer (j.keymer@gmx.net).
1769
1770 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1771
1772         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
1773         to avoid setting an invalid value for the verticall scrollbar 
1774         when navigating items. And, duh, also remove my silly debug messages
1775         from previous commits.
1776         Fixes #374713.
1777
1778 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
1779
1780         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
1781         make it MS compatible.
1782
1783 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
1784
1785         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
1786          - Allow the editing of entries even if their parent is read-only.
1787          - Do not render expandable properties read-only.
1788          - Refactor expansion checks form PropertyGrid into PropertyGrid.
1789
1790 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
1791
1792         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1793         support for the hover style.
1794
1795 2008-05-29  Andreia Gaita <avidigal@novell.com> 
1796
1797         * ContainerControl.cs: Check for null dead-end when traversing the tree
1798           of parent controls.
1799         
1800           [Fixes #394332, patch by Ernesto Carrea]
1801
1802 2008-05-29  Geoff Norton  <gnorton@novell.com>
1803
1804         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
1805         constant that it is.  Fixes #393981
1806
1807 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
1808
1809         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
1810         that the user probably doesn't want to set this.
1811
1812 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
1813
1814         * ThemeWin32Classic.cs: Don't let the text size be bigger than
1815         the control size for CheckBox/RadioBox.
1816         [Fixes part of bug #394645]
1817
1818 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
1819
1820         * PropertyGrid.cs: Update the state of the sorting buttons in 
1821         the toolbar if PropertySort is set programatically.
1822
1823 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
1824
1825         * GridItemCollection.cs: Add multiple items with conflicting names 
1826         support and also preserve name ordering.
1827         [Fixes #395345]
1828
1829 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
1830
1831         * GridItemCollection.cs: Revert my multiple items with same 
1832         name patch.
1833
1834 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1835
1836         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
1837         or middle ones.
1838         Fixes part of #393908.
1839
1840 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
1841
1842         * ToolStripDrowDown.cs: When using the Show () methods that have a
1843         Control parameter, set the menu owner to that Control.
1844         [Fixes bug #394345]
1845
1846 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
1847
1848         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
1849         [Fixes bug #362756]
1850
1851 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
1852
1853         * GridItemCollection.cs: Refactor to support multiple items with the 
1854         same name.
1855         [Fixes bug #394314]
1856
1857 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
1858
1859         * Control.cs: The 2.0 check for illegal cross thread calls in 
1860         Control.Handle were throwing an exception when we were getting
1861         the Handle in order to invoke correctly.  Created a private
1862         version that does not contain this check.
1863         [Fixes bug #394531]
1864
1865 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
1866
1867         * PropertyGrid.cs: Respect DefaultTabType.
1868
1869 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
1870
1871         * ListView.cs: SPACE selects an item.
1872         [Fixes bug #393023]
1873
1874 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
1875
1876         * ListView.cs: Reset the search string whenever the items are 
1877         modified.
1878         [Fixes bug #393020]
1879
1880 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1881
1882         * ListControl.cs: For the first added item PositionChanged is fired
1883         _before_ ItemChanged, which leave us in a temporary invalid state - so
1884         we need to set the selected index from ItemChanged handler *if* we
1885         know that the first item has just been added *and* the items have been
1886         actually added to the ListControl.
1887         Fixes #369048.
1888
1889 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1890
1891         * TabControl.cs: Only clicks with the left button should be
1892         handled.
1893         Fixes #393908.
1894
1895 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1896
1897         * ComboBox.cs: 
1898         * FIleDialog.cs:
1899         * TextBox.cs: Expose an internal method in TextBox to restore the
1900         original context menu, and call it from ComboBox to re-use it in the
1901         combobox containing the file name in FileDialog.cs.
1902         Fixes part of #393775.
1903
1904 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
1905
1906         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
1907         style.
1908
1909 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
1910
1911         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
1912         down button style.
1913
1914 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1915
1916         * ComboBox.cs: Minor correction to previous patch: PageDown should
1917         also *try* to move by one item if the computed offset is negative,
1918         just like the PageUp case.
1919
1920 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1921
1922         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
1923         should be done for at least 1 item, and not stay at the same item.
1924         Fixes part of #374713.
1925
1926 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
1927
1928         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
1929         directories.  [Fixes bug #393931]
1930
1931 2008-05-22  Andreia Gaita <avidigal@novell.com> 
1932
1933         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
1934           Don't fire events until the initial about:blank page has finished
1935           loading. Clean up events.
1936
1937 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1938
1939         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
1940           FocusIn() too. This should fix the issue on switching
1941           scim keyboards.
1942
1943 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1944
1945         * X11Keyboard.cs : set XIM font size to somewhat reasonable
1946           number (ideally the input textbox size, but that could be
1947           too messy).
1948
1949 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
1950
1951         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
1952         the ToolStripItem's TextChanged.  [Fixes bug #393597]
1953
1954 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1955
1956         * TabControl.cs: When invalidating in SelectedIndex and we need to
1957         inflate to take into account the border of the tabs, make sure that
1958         the invalidated rect doesn't overflow the control bounds, since that
1959         would avoid updating at all.
1960
1961 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1962
1963         * TabControl.cs: Don't substract scroller width from the row width,
1964         since we need to take into account the total width of the control when
1965         calculating the position of the tabs. This avoids showing scroller
1966         when it is actually not needed.
1967         Fixes part of #322325.
1968
1969 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1970
1971         * ThemeVisualStyles.cs: Added support for TextBoxBase.
1972
1973 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1974
1975         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1976         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
1977
1978 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1979
1980         * DataGridView.cs: Only paint the top left header cell if there
1981         are columns.
1982
1983 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1984
1985         * DataGridView.cs: When binding to a BindingSource, get the underlying
1986         list to bind to.  [Fixes bug #345483]
1987
1988 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1989
1990         * DataGridView.cs: Do not bind to collection properties.
1991         [Fixes bug #337470]
1992
1993 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1994
1995         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
1996
1997 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1998
1999         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
2000         thumb style.
2001
2002 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2003
2004         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
2005
2006 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2007
2008         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
2009         background.
2010
2011 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2012
2013         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
2014
2015 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2016
2017         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
2018         checked styles.
2019
2020 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2021
2022         * TabControl.cs: Extended to handle the hot style.
2023
2024 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
2025
2026         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
2027         Extended UpDownBase code to handle hot and disabled styles.
2028
2029 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2030
2031         * DataGridView.cs: Handle databinding to generic list type things.
2032         [Fixes bug #325239]
2033
2034 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2035
2036         * DataGridViewCellCollection.cs: Add a method to find the cell
2037         with the given DataPropertyName.
2038         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
2039         * DataGridViewColumnCollection.cs: Add a method to clear all
2040         autogenerated columns.
2041         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
2042         columns.
2043         [Fixes bug #348082]
2044
2045 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2046
2047         * DataGridView.cs: Don't try to update the RowTemplate with
2048         a null CellTemplate.
2049
2050 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2051
2052         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
2053         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
2054         * DataGridView.cs: Lots of fixes/enhancements to databinding to
2055         a DataSet.
2056
2057 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
2058
2059         * Control.cs: Remove invalidating implicit child controls when
2060         control is invalidated.  It was causing too many redraws on
2061         controls with implicit scrollbars.
2062         * ListView.cs: Listen to the Invalidated event and invalidate
2063         child controls.
2064
2065 2008-05-20  Andreia Gaita <avidigal@novell.com> 
2066
2067         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
2068         * HtmlDocument.cs: Check for nulls
2069
2070 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2071
2072         * Control.cs: In ControlCollection.RemoveInternal, remove the
2073         internal control before calling PerformLayout and OnControlRemoved,
2074         which was leaving us in an invalid state and causing a X error (bad
2075         match). Observe that Remove () call has the same order.
2076         Fixes an X error changing ComboBoxStyle.DropDownStyle.
2077
2078 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2079
2080         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
2081         being fired if ControlStyles.UserPaint style is activated.
2082         Fixes #371905.
2083
2084 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2085
2086         * GridEntry.cs: Don't be so strict when setting the value - 
2087         do not check if what we set is what we get.
2088         [Fixes bug #389245]
2089
2090 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2091
2092         * XplatUIX11.cs: If there are no timers timeout should be 0
2093         [Fixes bug #363522]
2094
2095 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
2096
2097         * Control.cs: As a followup to invalidating implicit children when
2098         a control is invalidated, only invalidate them if they are in the
2099         clip rectangle.
2100
2101 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2102
2103         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
2104
2105 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2106
2107         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
2108
2109 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2110
2111         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
2112         * XplatUIWin32.cs: Made Win32DeleteObject public.
2113
2114 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
2115
2116         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
2117         PropertyDescriptor.ShouldSerializeValue.
2118         [Fixes bug #391924]
2119
2120 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2121
2122         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
2123         in the classic theme.
2124
2125 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2126
2127         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
2128         ThumbPressed.
2129         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
2130         ScrollBarHasPressedThumbStyle.
2131
2132 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2133
2134         * TextRenderer.cs: Included some methods in the 1.1 profile.
2135
2136 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
2137
2138         * Control.cs: When we make a control visible, it may have been
2139         previously visible and while it wasn't visible, the z-order of
2140         things may have been shuffled, so the control needs to have its
2141         z-order updated just in case.  [Fixes bug #391518]
2142
2143 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2144
2145         * ThemeVisualStyles.cs: Added support for GroupBox.
2146
2147 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
2148
2149         * GroupBoxRenderer.cs: Included in the 1.1 profile.
2150
2151 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
2152
2153         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
2154           bug #389996; XSelectInput() behaved as mouse handler robber,
2155           so remove extra call to it.
2156
2157 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2158
2159         * Control.cs: Simplify ControlCollection.Contains method.
2160
2161 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2162
2163         * DataGridViewRow.cs: Implement GetPreferredSize.
2164
2165 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2166
2167         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
2168
2169 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
2170
2171         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
2172         painting and edit control fixes.
2173
2174 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2175
2176         * DataGridView.cs, DataGridViewCell.cs: Work around some external
2177         checks to make sure we are in an actual row/col for top left header cell.
2178         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
2179
2180 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2181
2182         * Control.cs: Use long instead of int when handling WParam from
2183         mousewheel scrolling.  Int was overflowing on Win64.
2184
2185 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2186
2187         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
2188         flow panel without scrolling first, and then calculate the 
2189         scrolling based on the new layout.  [Fixes bug #390149]
2190
2191 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
2192
2193         * ListBox.cs: Invalidate after scrolling up when selected index
2194         changes.  [Fixes bug #390151]
2195
2196 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2197
2198         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
2199         set, default height to 150. I tried first with DefaultSize, but this
2200         is not generating a SetBoundsCore call before handle creation time, so
2201         we can take it into account. This is just what .net does.
2202
2203 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
2204
2205         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
2206         as it broke some stuff.  Calberto is filing a bug for eno to
2207         work with.
2208
2209 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2210
2211         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
2212         to 0 is the current value is -1, and if style is not Simple, just
2213         return, like .net does.
2214         Fixes part of #374713.
2215
2216 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
2217
2218         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
2219         progress bar stuffs, use doubles instead of ints to prevent
2220         overflow.  [Fixes bug #389798]
2221
2222 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
2223
2224         * XplatUIX11.cs, X11Keyboard.cs :
2225           Significant refactoring on XIM support. Now IM engine UI
2226           should show up, at mostly-correct preedit position.
2227           - Eliminated use of FocusWindow, as it is never mapped
2228             and hence blocks correct preedit position. XIC is now
2229             created per window, and it must be destroyed too when
2230             the window is destroyed.
2231           - WM_QUIT messages should not be filtered even when hwnd
2232             is zombie. Filtering it could cause endless loop.
2233           - Preedit position must move only when the window is alive.
2234           - Make it IDisposable and make sure to release XIM/XICs.
2235
2236 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
2237
2238         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
2239           XplatUIX11.cs, XplatUIWin32.cs :
2240           fix for bug #325033 and #387693;
2241           - WM_QUIT should not be sent when no running application
2242             exists.
2243           - SetTimer/KillTimer (especially on win32) should be
2244             invoked for the window that the timer is/will_be attached.
2245           - There could be unattached timers to a window when it's
2246             started. For those timers, hold pending timers and when
2247             a window is mapped, attach them to it.
2248           - WaitForHwndMessage() could run into loop when
2249             WM_SHOWWINDOW is handled before this method is called.
2250             So, strictly check wm_showwindow state.
2251           - Tick handler should not be invoked while one Tick handler
2252             call is still running (introduced Busy state).
2253
2254 2008-05-13  Andreia Gaita <avidigal@novell.com> 
2255
2256         * WebBrowserBase.cs: Override Internal alternative methods for
2257           SetBoundsCore and OnResize instead of the protected ones.
2258         * Control.cs: Move SetBoundsCore and OnResize implementations to
2259           SetBoundsCoreInternal and OnResizeInternal, so they can be
2260           overriden internally (WebBrowserBase needs to catch them but can't
2261           override the protected methods without api compat problems)
2262
2263 2008-05-13  Andreia Gaita <avidigal@novell.com> 
2264
2265         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
2266
2267 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2268
2269         * Binding.cs:
2270         * ListView.cs: Remove debug messages.
2271
2272 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2273
2274         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
2275         area is empty. Also calculate scrollbars in Simple mode based in area
2276         height and total number of items, not in MaxDropDownItems.
2277         Fixes part of #371991.
2278
2279 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2280
2281         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
2282
2283 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2284
2285         * BindingSource.cs: GetListSortDescription is not public.
2286
2287 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2288
2289         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
2290
2291 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2292
2293         * HtmlElement.cs: Fix parameter names to match MS.
2294         * HtmlWindowCollection.cs: Should not be sealed.
2295
2296 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2297
2298         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
2299         button, because the thumb button will not get drawn if the scrollbar
2300         is disabled.  [Fixes bug #389262]
2301
2302 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2303
2304         * ListBox.cs: Handle End key for multi-column listboxen.
2305         [Fixes bug #389266]
2306
2307 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2308
2309         * ListBox.cs: Fix algorithm to determine which column our item is in.
2310         [Fixes bug #389265]
2311
2312 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2313
2314         * ListBox.cs: Invalidate when the listbox is resized.
2315         [Fixes bug #389256]
2316
2317 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2318
2319         * ListBox.cs: There is always at least one row in the ListBox (if
2320         we are doing these calculations.)  [Fixes bug #389253]
2321
2322 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
2323
2324         * ListBox.cs: There is always at least one column in the ListBox.
2325         [Fixes bug #389250]
2326
2327 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2328
2329         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
2330         ensure in Simple mode that the height is exactly the requested one.
2331         Also add the ComboBoxListControl to the controls collection in Simple
2332         mode even if handle hasn't been created.
2333         Fixes part of #371991.
2334
2335 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2336
2337         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
2338         our ComboBox owner instead of giving it back to the previous control (
2339         as done in other controls). Also remove the empty override of Select
2340         method, since we want to be selected *and* give focus to our owner.
2341         This should let the user do keys-navigation in Simple mode. 
2342
2343 2008-05-10  Geoff Norton  <gnorton@novell.com>
2344
2345         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
2346         problems with rapid scrolling of treeviews. Fixes #381084
2347
2348 2008-05-10  Geoff Norton  <gnorton@novell.com>
2349
2350         * XplatUICarbon.cs: Deactivate the active window before
2351         activating the desired window.  Completes fixing #386504
2352
2353 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2354
2355         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
2356         SmallChange to the item size width plus the padding, to match .net.
2357
2358 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2359
2360         * FileDialog.cs: Apply the custom filter typed by the user in the file
2361         name combobox as much as possible while navigating in the file dialog.
2362         Fixes #385261.
2363
2364 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2365
2366         * Binding.cs: Actually use NullValue if the retrieved value of
2367         data source is null or DBNull. Makes a test pass.
2368
2369 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
2370
2371         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
2372         * MimeIcon.cs: Provide a way to get icons from resources.
2373
2374 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2375
2376         * Binding.cs: When the value retrieved from the control to be assigned
2377         to the data source is null, actually use the 2.0 DataSourceNullValue
2378         value. Make pass a data binding test.
2379
2380 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2381
2382         * Control.cs: We need to invalidate implicit children even when
2383         invalidate is called with invalidatechildren = false.  (Implicit
2384         children are really part of the parent.)
2385         * ListView.cs: Double-buffer internal child controls for less
2386         flicker.
2387         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
2388         owner ListView subitems for greatly increased performance.
2389         [Fixes bug #388477]
2390
2391 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
2392
2393         * FileDialog.cs: When the user types a wildcard character in the
2394         filename combobox, update the contents of the folder using the text as
2395         a filter.
2396         Fixes part of #385261.
2397
2398 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2399
2400         * ListBox.cs: Various fixes for MultiColumn listboxen.
2401         [Fixes bug #388114]
2402
2403 2008-05-08  Andreia Gaita <avidigal@novell.com> 
2404
2405         * HtmlElement.cs: Implement Style property
2406
2407 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
2408
2409         * ListBox.cs: Respect checkboxes when measuring item size.
2410         * ThemeWin32Classis.cs: When drawing list items, don't draw
2411         text outside of the item's bounds to prevent overlapping.
2412         (.Net actually overlaps, but that's just silly.)
2413         [Fixes bug #388117]
2414
2415 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
2416
2417         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
2418         Gert Driesen. Fixes bug #324830. 
2419
2420 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
2421
2422         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
2423         method implemented.
2424
2425 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2426
2427         * BindingSource.cs: When calling IsSynchronized, return the value of
2428         the related IList list.
2429
2430 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2431
2432         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
2433         make a test pass.
2434
2435 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
2436
2437         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
2438         navigation to scroll the grid if the current cell is not visible.
2439
2440 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2441
2442         * HtmlElement.cs: Implement TabIndex
2443
2444 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
2445
2446         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
2447         properties, even when there are no items.
2448         [Fixes bug #387611]
2449
2450 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
2451
2452         * NativeWindow.cs: Add support for multiple handles per window.
2453         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
2454         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
2455         directly - use FromHandle instead.
2456         [Fixes bug #374660]
2457
2458 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2459
2460         * HtmlElement.cs: Implement InnerHTML setter
2461
2462 2008-05-07  Andreia Gaita <avidigal@novell.com> 
2463
2464         * HtmlDocument.cs: Implement Focused
2465
2466 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2467
2468         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
2469         methods, as well as add messages to the exceptions.
2470
2471 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2472
2473         * BindingSource.cs: Setting DataSource should only reset DataMember if
2474         the previous value was null (make pass a not working test).
2475
2476 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2477
2478         * BindingSource.cs: When EndInit call is postponed and is called until
2479         DataSource.EndInit is called, remove the handler for data source.
2480
2481 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2482
2483         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2484
2485 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2486
2487         * ToolStripManager.cs: Store references to toolstrips as
2488         weak references so they do not prevent forms from getting collected.
2489         [Fixes bug #386483]
2490
2491 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2492
2493         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
2494         on .Net.  So do the same thing in WndProc.
2495
2496 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2497
2498         * TrackBar.cs: Commit patch from Andy Hume that corrects
2499         the clickable areas to better match .Net.
2500         [Fixes bug #387074]
2501
2502 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2503
2504         * TrackBar.cs: Commit patch from Andy Hume that adds the
2505         ResizeRedraw control flag so the track bar repaints itself
2506         when it is resized.  [Fixes bug #387072]
2507
2508 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
2509
2510         * TrackBar.cs: Commit patch from Andy Hume that adds better
2511         support for keyboard navigation when the TrackBar is vertical.
2512         [Fixes bug #387071]
2513
2514 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2515
2516         * BindingSource.cs: Implement ISupportInitializeNotification support.
2517
2518 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
2519
2520         * ThemeVisualStyles.cs: Added support for ToolBar.
2521
2522 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
2523
2524         * ToolBar.cs: Made the Vertical property internal.
2525
2526 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2527
2528         * ThemeVisualStyles.cs: Added support for TrackBar.
2529
2530 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2531
2532         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
2533         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
2534         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
2535         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
2536         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
2537         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
2538
2539 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2540
2541         * ThemeVisualStyles.cs: Added support for UpDownBase.
2542
2543 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
2544
2545         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
2546         Extracted Theme.UpDownBaseDrawButton.
2547
2548 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
2549
2550         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
2551         removed from the static toolstrips collection in ToolStripManager
2552         when they are disposed.  Provides a workaround for bug #386483.
2553
2554 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
2555
2556         * GridEntry.cs: Read-only properties with Editor with 
2557         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
2558         [Fixes bug #384184]
2559
2560 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
2561
2562         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
2563         the menu key and there are no items on the menu.
2564         [Fixes bug #386644]
2565
2566 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
2567
2568         * Control.cs: Avoid calling ToString on a string.
2569         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
2570         * GroupBox.cs: In FlatStyle property throw, not just create, the 
2571         exception. Avoid calling ToString on a string.
2572         * ProgressBar.cs: Avoid calling ToString on a string. 
2573         * ScrollBar.cs: Avoid calling ToString on a string. 
2574         [All issues were found using Gendarme]
2575
2576 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
2577
2578         * NotifyIcon.cs: Prevent click events to be trigger after double click 
2579         events. Fixes remaining issues of bug #324832.
2580
2581 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
2582
2583         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
2584         to mimic win32 behavior. Partially fixes bug #324832.
2585
2586 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2587
2588         * BindingSource.cs: Implement Find methods.
2589
2590 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2591
2592         * BindingSource.cs: Implement Sort, ApplySort overloads, and
2593         RemoveSort methods.
2594
2595 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2596
2597         * ListBindingHelper.cs: When calling GetListItemProperties and the
2598         passed object is ITypedList, return the result of
2599         ITypedList.GetItemProperties instead.
2600
2601 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
2602
2603         * LinkLabel.cs: Set default value of name on constructor of Link class
2604         only for 2.0 profile.
2605
2606 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
2607
2608         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
2609         Fixes remaining issues of bug #346154.
2610
2611 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
2612
2613         * LinkLabel.cs: Set a default value for name on internal contructor of
2614         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
2615
2616 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
2617
2618         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
2619         and refer all instances to owner.links. Partially fixes #346154.
2620
2621 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2622
2623         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
2624         length equal zero. Also called CreateLinkPieces in constructor. It fixes
2625         the LinkLabel test 'TestLinkArea'.
2626
2627 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2628
2629         * Form.cs: Remove menu before close form to prevent form to be not gaced.
2630         [Fixes #386460]
2631
2632 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2633
2634         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
2635         [Fixes #386463]
2636
2637 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2638
2639         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
2640         [Fixed bug #357004]
2641
2642 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2643
2644         * MenuAPI.cs: Remove unused ProcessCmdKey method.
2645
2646 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2647
2648         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
2649         [Fixes bug #375398]
2650
2651 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2652
2653         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
2654         of bug #367492.
2655
2656 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
2657
2658         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
2659         sometimes we open a conext menu on mouse down of some controls and the mouse
2660         up is dispatched to menu and dont need to. It fix remaining issues of 
2661         #363711 and other problems related to menu mouse click events.
2662
2663 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
2664
2665         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
2666         some var names to better fit changes, now we have month_menu and today_menu
2667         vars. Fixes bug #363711.
2668
2669 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
2670
2671         * MonthCalendar.cs: Handle every right mouse click to open context menu,
2672         right now the default month menu but it will be change to have "Go to today"
2673         menu.
2674
2675 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2676
2677         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
2678
2679 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
2680
2681         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
2682
2683 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2684
2685         * ThemeVisualStyles.cs: Added support for TreeView.
2686
2687 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2688
2689         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
2690         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
2691
2692 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2693
2694         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
2695
2696 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2697
2698         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
2699         Implement 2.0 SP1 stuffs.
2700
2701 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2702
2703         * FileDialog.cs: Implement 2.0 SP1 stuffs.
2704
2705 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2706
2707         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
2708         Implement CanEnableIme property. (2.0 SP1)
2709
2710 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2711
2712         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
2713         from the 2.0 API.
2714
2715 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2716
2717         * Control.cs: Provide an internal way for a control to override
2718         the setting of Height.
2719         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
2720         set height using new method.
2721
2722 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2723
2724         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
2725
2726 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2727
2728         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2729         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
2730
2731 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2732
2733         * ThemeVisualStyles.cs: Added support for StatusBar.
2734
2735 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2736
2737         * DataObject.cs: Add the other IDataObject interface.
2738
2739 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
2740
2741         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
2742         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
2743
2744 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2745
2746         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
2747         * ListView.cs: Hide non-public API.
2748         * MaskedTextBox.cs: Remove extra attribute.
2749
2750 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
2751
2752         * DataGridViewImageCell.cs: Use formatted value instead of value
2753         to calculate preferred size.
2754
2755 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
2756
2757         * ListBox.cs: Move some initialization around so that selected_indices
2758         is not accessed before it is created.
2759
2760 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
2761
2762         * InputLanguageCollection.cs: Implement the collection better.
2763         [Fixes bug #385506]
2764
2765 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
2766
2767         * ToolStripDropDownItem.cs: Get the correct event object for
2768         DropDownItemClicked.
2769         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
2770         [Fixes bug #385475]
2771
2772 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
2773
2774         * DataGridViewRowCollection.cs: We don't currently support shared 
2775         rows.  Should fix test failures caused by previous commit.
2776
2777 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
2778
2779         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
2780         datagridview gets set.  Only paint cells in visible columns.
2781         * DataGridViewCell.cs: Draw border after cell content.
2782         * DataGridView.cs: Invalidate after setting some properties.  Only
2783         use visible columns.  Fit hit test bug with areas in the col/row header
2784         area but not in a row or col.  Implement UpdateCell/Row methods.
2785
2786 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
2787
2788         * DataGridViewElement.cs: Don't throw NIEX.
2789         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
2790         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
2791         * DataGridViewCheckBoxColumn.cs: Implement ToString.
2792         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
2793         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
2794         if the user filled in the formatting Value, use it.
2795
2796 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
2797
2798         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
2799         to a string.
2800
2801 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2802
2803         * BindingSource.cs: Some corrections to Filter property, as well as
2804         setting it for our list when resetting it.
2805
2806 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
2807
2808         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
2809         than the maximum.  Fixes reopened bug #384182.
2810
2811 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2812
2813         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
2814         Fixes remaining issues of #367490.
2815
2816 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2817
2818         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
2819         SystemInformation.WorkingArea to get max_screen value.
2820
2821 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2822
2823         * BindingSource.cs: Implement Filter and RemoveFilter.
2824
2825 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2826
2827         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
2828
2829 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2830
2831         * X11Dnd.cs: When trying to convert data and we know we started the
2832         dnd loop, don't try to use the cached data if the loop is not running,
2833         which means that the data has been resetted.
2834         Fixes #378191.
2835
2836 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2837
2838         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
2839         win32 behavior.
2840
2841 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2842
2843         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
2844         it to drawn off screen edge. Fixes bug #367490.
2845
2846 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2847
2848         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
2849         menu position to have only one assignment of Location var.
2850
2851 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
2852
2853         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
2854         for this patch. Fixes bug #384115.
2855
2856 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
2857
2858         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
2859         the same.  If LargeChange is zero, set a minimum size for the scroll
2860         thumb grip.  [Fixes bug #384182]
2861
2862 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
2863
2864         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
2865         [Fixes bug #384181]
2866
2867 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
2868
2869         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
2870
2871 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
2872
2873         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
2874         patch from Ernesto).
2875
2876 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
2877
2878         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
2879
2880 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
2881
2882         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
2883
2884 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
2885
2886         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
2887
2888 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
2889
2890         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
2891
2892 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
2893
2894         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
2895
2896 2008-04-27  Andreia Gaita <avidigal@novell.com> 
2897
2898         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
2899           supposed to return a reference to an mshtml interface, which we
2900           don't support).
2901         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
2902           reference to an mshtml interface, which we don't support). Code
2903           formatting cleanup.
2904         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
2905           DomDocument getter (it's supposed to return a reference to an
2906           mshtml interface, which we don't support). Code formatting cleanup.
2907
2908 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2909
2910         * ListView.cs: Ouch, forgot to commit.
2911
2912 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2913
2914         * ListView.cs: 
2915         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
2916
2917 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2918
2919         * ListView.cs: When calculating box selection for virtual mode, don't
2920         look for intersection with item's text, but item bounds, since that
2921         would mean read ListViewItem's text for _every_ item, and that's
2922         something we just can't do in virtual mode (items are only requested
2923         when drawn).
2924
2925 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
2926
2927         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
2928         partial support for managed windows (based on the patch from Ernesto).
2929
2930 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2931
2932         * ListView.cs: When doing a key search use FindItemWithText method
2933         instead of doing the search by ourselves, this way we avoid
2934         duplicating the code and also we handle the special case for virtual
2935         mode. To achieve that make our private overload of FindItemWithText
2936         internal and also have a 'roundtrip' parameter.
2937
2938 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2939
2940         * ListView.cs: When doing the layout don't request the
2941         ListViewItem instance if we are in virtual mode (since we can't request it
2942         until the item is actully drawn).
2943
2944 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2945
2946         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
2947         from Ernesto).
2948
2949 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2950
2951         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
2952         the patch from Ernesto).
2953
2954 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2955
2956         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
2957         * ThemeVisualStyles.cs: Added.
2958
2959 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2960
2961         * IDeviceContext.cs: Added a missing using.
2962
2963 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2964
2965         * ButtonBase.cs: Made IsDefault protected internal.
2966         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
2967
2968 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2969
2970         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
2971         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
2972         RadioButtonRenderer.cs: Included in the 1.1 profile.
2973         * IDeviceContext.cs: Added.
2974         * TextRenderer.cs: Included a member in the 1.1 profile.
2975
2976 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2977
2978         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2979
2980 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2981
2982         * ErrorProvider.cs: Make the error icons come after the control
2983         they refer to.  It isn't the way the MS does it, but its better
2984         than what we were doing.  See bug #368587.
2985
2986 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2987
2988         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
2989         from Eric Albright that lazy loads the input language as ensures
2990         everything gets properly initialized.  Fixes bug #373871.
2991
2992 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2993
2994         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
2995         implicit mnemonics.  [Fixes bug #383000]
2996
2997 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2998
2999         * X11Dnd.cs: When canceling the operation, automatically restore the
3000         default cursor - normally the default cursor is restored when the
3001         mouse buttons are released, but we should be able to restore it even
3002         if the buttons are still pressed (for example, when pressing ESC to
3003         cancel).
3004         Fixes #381894.
3005
3006 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3007
3008         * X11Dnd.cs: When starting a new drad and drop operation, set control
3009         field to null, just as the other fields, to avoid calling any
3010         operation on a previous control. Also, when calling DndLeave on a
3011         control, set it to null, thus we don't fire that event multiple times
3012         for that control.
3013         Fixes #209264.
3014
3015 2008-04-23  Geoff Norton  <gnorton@novell.com>
3016
3017         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
3018         the whole_window object.  Fixes #377084.
3019
3020 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3021
3022         * HtmlElement.cs: Implement RaiseEvent (event injection into the
3023           embedded browser)
3024
3025 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
3026
3027         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
3028
3029 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3030
3031         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
3032           invocation
3033
3034 2008-04-23  Andreia Gaita <avidigal@novell.com> 
3035
3036         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
3037           attaching/detaching
3038
3039 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3040
3041         * X11Dnd.cs: When the drop was cancelled, or could just not be
3042         performed, return DragDropEffect.None always (match .net).
3043
3044 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3045
3046         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
3047
3048 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3049
3050         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
3051
3052 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
3053
3054         * DataGridView.cs: Add support for error icon tool tips.
3055         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
3056         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
3057
3058 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
3059
3060         * X11Structs.cs: Add mouse button masks enum.
3061         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
3062         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
3063         form resize/move operation instead of for each step of it.
3064         [Fixes bug #346529 for the x11 backend]
3065
3066 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3067
3068         * DataGridView*: Implement support for drawing error icons.
3069
3070 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3071
3072         * TreeView.cs: Make vbar and hbar internal.
3073         * TreeNode.cs: If collapsing the node removes one of the TreeView's
3074         scrollbars, invalidate the whole thing.
3075         [Fixes bug #382001]
3076
3077 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3078
3079         * TreeView.cs: Calling Sort() sets Sorted = true.
3080         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
3081         if the nodes need to be sorted.
3082         [Fixes bug #382028]
3083
3084 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
3085
3086         * Form.cs: Fire SizeChanged for both when the form is minimized and 
3087         restored.
3088         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
3089         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
3090
3091 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
3092
3093         * ComboBox.cs: If the combobox is disabled, draw a disabled
3094         background before painting anything else.
3095         [Fixes bug #381729]
3096
3097 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3098
3099         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
3100         forget to send a Leave event to the target window - just as .net does
3101         when cancelling dnd operations.
3102
3103 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3104
3105         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
3106         soon as possible - this happens when we send the drop message to the
3107         target window. This way we avoid firing any DragOver _after_ drop finished.
3108         Fixes #378179.
3109
3110 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3111
3112         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
3113         * Form.cs: Handle form minimization as a special state, where size doesn't 
3114         change, but we have to fire SizeChanged.
3115         [Fixes bug #325122 for the win32 and x11 backends]
3116
3117 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3118
3119         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
3120         if the handle is disabled.
3121         [Fixes bug #371751]
3122
3123 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3124
3125         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
3126         for forms with FormBorderStyle.None.
3127         [Fixes bug #349571]
3128
3129 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
3130
3131         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
3132         WM_EXITSIZEMOVE.
3133         [Fixes bug #346529 for the X11 backend]
3134
3135 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3136
3137         * XplatUIX11.cs: 
3138           - Send a mouse Enter message after say dragging the mouse with a 
3139           button down and then release it in another client.
3140           - Reset the cursor to prevent X11 from remembering it and setting it 
3141           before the control gets WM_SETCURSOR.
3142           - Qeueue a mouse move after a mouse enter like win32.
3143           [Fixes bug #323234]
3144
3145 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3146
3147         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
3148         It's sent when the form gets moved, resized, closed.
3149         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
3150         [Fixes bug #359193 for X11]
3151
3152 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3153
3154         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
3155         the build.
3156
3157 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
3158
3159         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
3160         group. Fixes the 1.1 build.
3161
3162 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3163
3164         * ListView.cs: Use display indexes for selection in Details view, as
3165         well as do the proper layout based on display indexes for that view
3166         too.
3167
3168 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3169
3170         * ListView.cs: Focused item information is now stored as a display
3171         index, and display indexes are used all over the place for selection,
3172         instead of ListViewItem.Index values, which doesn't give us enough
3173         information to modify the selection in groups mode, and was broken.
3174
3175 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
3176
3177         * Control.cs: Do not fire MouseDown if validation of the control has 
3178         failed.
3179         * Form.cs: Validate the form before closing.
3180         [Fixes bugs #330501 and #353310]
3181
3182 2008-04-18  Andreia Gaita <avidigal@novell.com> 
3183
3184         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
3185           CreateWebBrowserSiteBase implementations
3186         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
3187           Style and TabIndex setters
3188
3189 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3190
3191         * ListViewGroup.cs: When returning the actual item count, return the
3192         proper count for default group.
3193         Fix the tests.
3194
3195 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3196
3197         * ListView.cs:
3198         * ListViewGroup.cs: When calculating groups layout, get the actual
3199         number of items per group, since groups added to the group BUT not
3200         added to the ListView are just ignored, and can cause some nasty
3201         exceptions because of the lack of synchronization. Also for
3202         ListViewGroup don't use lazy initialization for items, since we 
3203         the common scenario is to use it always - and it helps us to  refactor
3204         and clean the .ctor overloads.
3205
3206 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3207
3208         * ListView.cs: When adding an item to a ListViewItemCollection
3209         belonging to a group (ListViewGroup.Items), don't generate a redraw if
3210         the added item hasn't beeen previously added to the ListView instance
3211         refered by the group, since it will be ignored. This should avoid some 
3212         really nasty flickering.
3213
3214 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3215
3216         * ListView.cs: When accessing an item in a specific display
3217         position, use the helper method GetItemAtDisplayIndex, instead of
3218         direct access to the reordered_items_indices array. When doing layout
3219         for groups set the correct Items index for the display position (since
3220         in groups mode items don't have the same position as in Items
3221         collection).
3222         * ListViewGroup.cs: Add a field to store the starting item number,
3223         which is later used when calculating the layout.
3224
3225         Fixes #360805.
3226
3227 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
3228
3229         * Application.cs: Fixed ProductVersion to fallback to the assembly
3230         version. Fixes regression for bug #325413.
3231
3232 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3233
3234         * ListView.cs: New helper method to retrieve an item in a _specific
3235         display_ position (the items can be displayed in a different order
3236         than one of Items collection).
3237         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
3238         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
3239         specific display position (again remember that items can be sorted
3240         different than Items).
3241
3242 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3243
3244         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
3245         list and update it when the collection changes.  We were recreating
3246         this several times per row paint and for every pixel the mouse moved
3247         across the grid.
3248         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
3249         changes.
3250
3251 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3252
3253         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
3254         list to use generics.
3255         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
3256         and remove unneccessay casts.
3257
3258 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
3259
3260         * DataGridViewBand.cs: Add internal way to set displayed variable.
3261         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
3262         * DataGridView.cs: Make sure we always keep track of Displayed
3263         rows and columns, and only draw things that are displayed.
3264
3265 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
3266
3267         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
3268           whether the key events are filtered or not. Introduced
3269           PreFilter() process for this purpose. This fixes atokx3/iiimx
3270           shift state issue.
3271
3272 2008-04-16  Andreia Gaita <avidigal@novell.com> 
3273
3274         * HtmlHistory.cs: Implement Length property
3275
3276 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
3277
3278         * DataGridView.cs: Call EndEdit when a sort is performed so we take
3279         away the edit textbox.  Refactor to reuse column sort code.
3280
3281 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
3282
3283         * MenuAPI.cs: Remove the code that save and restore capture status of 
3284         grab_control, this fixes some Menu and Context menu bugs but maybe it can
3285         cause some others, I cant figure the possible problems of this patch but
3286         right now remove the code looks to be better than keep it. This patch fixes
3287         bugs #357638, #378721 and #379570.
3288
3289 2008-04-12  Andreia Gaita <avidigal@novell.com> 
3290
3291         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
3292         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
3293         add missing properties and event handlers.
3294         
3295 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
3296
3297         * ListBox.cs: Make sure the LargeChange we are setting is at least
3298         zero, to prevent an IOORE.  [Fixes bug #379531]
3299
3300 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
3301
3302         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
3303         in DropDownList mode, for each key-press select the next item 
3304         starting with that letter.
3305         For other modes, when no item selected, on arrow-up/-down and open 
3306         drop-down select the first item matching the text in the textbox.
3307
3308 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
3309
3310         * X11Keyboard.cs : Control.FromHandle() could return null
3311           in MoveCurrentCaretPos().
3312
3313 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3314
3315         * ListView.cs: When changing the size in VirtualMode, also Reset the
3316         selection.
3317         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
3318         changing selection info for VirtualMode.
3319         Fixes #372618.
3320
3321 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3322
3323         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
3324         view, don't use LineLimit for the first item - use NoWrap *always*
3325         instead, since ListView.LabelWrap is not used for this view.
3326         Fixes #378054.
3327
3328 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3329
3330         * Binding.cs: Call UpdateIsBinding when setting control - probably
3331         Binding is already usable and we don't need to wait to check the
3332         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
3333         Created, just like 2.0 does.
3334         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
3335
3336 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3337
3338         * Binding.cs: Just realized we don't need to have a handler for
3339         BindingContextChanged, since this info should be now consumed directly
3340         in the BindingManagerBase. And also, the manager.IsBindingSuspended
3341         state info is checked directly, instead of caching it.
3342
3343         * CurrencyManager.cs: IsSuspended should return always false if Count
3344         == 0.
3345
3346 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3347
3348         * Binding.cs: When calling PushData, return if manager.Count == 0,
3349         since we just don't have data to be read. Also, when setting the
3350         Control for binding, hook up some events to refresh the IsBinding
3351         state when BindingContext change or control gets created; use
3352         Control.IsHandleCreated instead of Control.Created check to set
3353         IsBinding state - we *actually* need to modify IsBinding when control
3354         is created, but we don't have any Created event, only HandleCreated.
3355         Fixes part of #349364.
3356
3357 2008-04-11  Geoff Norton  <gnorton@novell.com>
3358
3359         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
3360         warping a null Caret.
3361
3362 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3363
3364         * DataGridView.cs: Implement row/column autosizing methods. Implement
3365         autosorting.
3366         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
3367         * DataGridViewRowCollection.cs: Add an internal sorting method.
3368
3369 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3370
3371         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
3372         value in ListView drawing code.
3373
3374 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
3375
3376         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
3377         is clicked.  Respect the user setting Cancel in FileOk.
3378
3379 2008-04-11  Geoff Norton  <gnorton@novell.com>
3380
3381         * ListView.cs: Avoid setting and resetting control Width/Heights and
3382         calculate the final value and set it once.  Prevents a feedback loop
3383         on the mac.
3384
3385 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3386
3387         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
3388         [Fixes bug #378869]
3389
3390 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
3391
3392         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
3393           Add some on-the-spot code, but it seems we don't need it.
3394
3395 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3396
3397         * Form.cs: Add method for DataGridView to trigger focus cues
3398         even when it handles the tab keypress.
3399
3400 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
3401
3402         * DataGridView.cs: More keyboard handling, tab, esc.
3403         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
3404         when at the beginning or end of the text in the text box.
3405
3406 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3407
3408         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
3409
3410 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3411
3412         * DataGridView.cs: Some fixups for showing and adding the edit control.
3413         * DataGridViewButtonColumn.cs: Implement ToString.
3414         * DataGridViewCell.cs: Size and position the control simultaneously.
3415         * DataGridViewTextBoxCell.cs: Use base to position control.
3416
3417 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3418
3419         * DataGridViewCell.cs: Fix up some formatting and painting code.
3420         * DataGridViewImageCell.cs: Implement some NIEX methods.
3421
3422 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3423
3424         * ToolStripItemCollection.cs: What moving an item from one owner
3425         to another, remove from source owner before adding to destination.
3426         [Fixes bug #378109]
3427
3428 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
3429
3430         * PictureBox.cs: Call Load when ImageLocation is set.
3431         [Fixes bug #378308]
3432
3433 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
3434
3435         * X11Keyboard.cs, XplatUIX11.cs :
3436           Implement over-the-spot mode (with some odd offsets).
3437           - set preedit position when caret is set.
3438           - Wrap XMoveResizeWindow() to move preedit position.
3439
3440 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3441
3442         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
3443         array lenght.
3444
3445 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3446
3447         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
3448         and ScanTableIndex public, it fix compilations errors when compiling
3449         WinForms to generate keyboard layout resources.
3450
3451 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
3452
3453         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
3454         different element count than scan table. It prevents some errors in non
3455         standard keyboards.
3456
3457 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
3458
3459         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
3460
3461 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
3462
3463         * DataGridView.cs: Call OnContentClick.
3464         * DataGridViewCell.cs: Do a null check on ValueType instead
3465         of valueType.
3466         * DataGridViewCheckBoxCell.cs: Implement.
3467
3468 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3469
3470         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
3471
3472 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3473
3474         * X11Keyboard.cs : Check XGetIMValues() return value in
3475           case it does not return input styles in some environment.
3476
3477 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
3478
3479         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
3480
3481 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3482
3483         * BindingContext.cs: Stub UpdateBinding method.
3484
3485 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
3486
3487         * X11Structs.cs : added couple of structs for XIM support.
3488         * X11Keyboard.cs :
3489           Release XIM in case it failed to create XIC. 
3490           Use consts for XNblah string.
3491           Add support for IM style customization and XIC creation
3492           for preedit-position and preedit-callback.
3493           Right now use MONO_WINFORMS_XIM_STYLE environment variable
3494           (list of: over-the-spot | on-the-spot | root). Only root
3495           mode works so far.
3496
3497           (redoing r99172 with fix.)
3498
3499 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3500
3501         * TreeView.cs: Center the checkbox a little better.
3502
3503 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3504
3505         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
3506         Apply very nice patch from Ernesto Carrea that simplifies our
3507         scrollbar drawing.  [From bug #376146]
3508
3509 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
3510
3511         * TreeView.cs: Correct the location of the root node checkbox when
3512         ShowRootLines = false.  Don't draw the root lines for the root node
3513         when ShowRootLines = false.  [Fixes bug #377535]
3514
3515 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
3516
3517         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
3518         Fixed line endings.
3519         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
3520         line endings.
3521         * MaskedTextBox.cs: Added missing attribute. Code formatting.
3522         * PageSetupDialog.cs: Added missing attribute. Code formatting.
3523         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
3524         * ImeMode.cs: Added missing field.
3525         * HtmlWindow.cs: Code formatting. Fixed line endings.
3526         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
3527         warnings.
3528         * HtmlHistory.cs: Code formatting. Fixed line endings.
3529         * HtmlDocument.cs: Code formatting. Fixed line endings.
3530         * ToolStripPanel.cs: Added missing IList implementation.
3531         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
3532
3533 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
3534
3535         * BindingContext.cs: Changed argument names to fix corcompare errors.
3536         * DataGridView.cs: Removed extra explicit interface implementation
3537         of IDropTarget. Code formatting.
3538         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
3539         * ComboBox.cs: Changed argument names to fix corcompare errors.
3540         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
3541         errors.
3542         * GridColumnStylesCollection.cs: Changed argument names to fix
3543         corcompare errors. Removed extra tabs.
3544         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
3545         errors.
3546         * Control.cs: Changed argument names to fix corcompare errors. Code
3547         formatting. Removed extra explicit IList implementation.
3548         * TextBox.cs: Changed argument names to fix corcompare errors. Code
3549         formatting. Use string.Empty instead of "".
3550         * GridItemCollection.cs: Changed argument names to fix corcompare
3551         errors. Code formatting.
3552         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
3553         corcompare errors. Code formatting.
3554         * ImageList.cs: Changed argument names to fix corcompare errors.
3555         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
3556         * DataGridViewRowCollection.cs: Changed argument names to fix
3557         corcompare errors. Code formatting.
3558         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
3559         * DataGridViewSelectedCellCollection.cs: Changed argument names to
3560         fix corcompare errors. Code formatting.
3561         * DataGridViewComboBoxCell.cs: Changed argument names to fix
3562         corcompare errors. Code formatting.
3563         * LinkLabel.cs: Changed argument names to fix corcompare errors.
3564         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
3565         formatting.
3566         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
3567         Code formatting.
3568         * BindingSource.cs: Changed argument names to fix corcompare errors.
3569         Removed extra explicit interface implementations.
3570         * DataGridViewSelectedRowCollection.cs: Changed argument names to
3571         fix corcompare errors. Code formatting.
3572         * ToolStripItemCollection.cs: Removed extra explicit interface
3573         implementation of IList.ReadOnly.
3574         * DataGridViewColumnCollection.cs: Changed argument names to fix
3575         corcompare errors. Code formatting.
3576         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
3577         * ListView.cs:  Changed argument names to fix corcompare errors.
3578         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
3579         errors.
3580         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
3581         errors.
3582         * ListBindingHelper.cs: Changed argument names to fix corcompare
3583         errors.
3584         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
3585         fix corcompare errors. Code formatting.
3586         * ToolStripPanel.cs: Removed extra explicit implementation of
3587         IDropTarget interface.
3588         * ListBox.cs: Changed argument names to fix corcompare errors. Code
3589         formatting. Removed extra tabs and spaces.
3590         * DataGridViewCellCollection.cs: Changed argument names to fix
3591         corcompare errors.
3592         * Help.cs: Changed argument names to fix corcompare errors. Code
3593         formatting.
3594         * TabControl.cs: Changed argument names to fix corcompare errors.
3595         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
3596         errors.
3597         * TableLayoutSettings.cs: Changed argument names to fix corcompare
3598         errors.
3599
3600 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3601
3602         * ListBindingHelper.cs: When returning properties, only return those
3603         that are browsable. Also, don't do a linear search of the properties,
3604         but use the indexer of the PropertyDescriptorCollection class.
3605
3606 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3607
3608         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
3609         Dictionary containing the related (child) currency managers. Also,
3610         when setting DataSource, add datasource to our List if it is not a list.
3611
3612 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
3613
3614         * PropertyGridTextBox.cs: Fix background color of the buttons.
3615         * PropertyGridView.cs: Make the entry less jumpy.
3616
3617 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
3618
3619         * PropertyGrid.cs: Fix unused variable warnings.
3620
3621 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
3622
3623         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
3624         double-click. It expanded it once in the mouse down and then 
3625         again in the double-click handler.
3626
3627 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
3628         
3629         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
3630         TypeConverter and UITypeEditors.
3631
3632 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
3633
3634         * Control.cs: Visibility should be set synchronously, 
3635         so we must also redraw once it is and not rely on layouting or 
3636         other code to repaint.
3637         [Fixes bug #339898]
3638
3639 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
3640
3641         * DataGridViewCell.cs: Respect DataGridView.GridColor.
3642
3643 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
3644
3645         * Control.cs: Invalidate when the alpha channel is less than 255,
3646         not only when control is transparent.
3647
3648 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
3649
3650         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
3651         Implement some painting convenience methods that threw NIEX.
3652
3653 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
3654
3655         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
3656         * DataGridViewLinkCell.cs: Implement.
3657
3658 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
3659
3660         * GridEntry.cs: Report the conversion exception error description.
3661         [Fixes bug #375792]
3662
3663 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
3664
3665         * PropertyGridView.cs: Do not scroll to item on resize.
3666         [Fixes bug #375789]
3667
3668 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3669
3670         * BindingContext.cs: When retrieving a BindingManagerBase, if the
3671         dataSource parameter is ICurrencyManagerProvider, then return
3672         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
3673         instead of creating a new one.
3674
3675 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3676
3677         * BindingSource.cs: Implement support for Type instances as
3678         DataSource.
3679
3680 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
3681
3682         * DataGridView.cs: Minor cleanups and call CellMouseUp.
3683         * DataGridViewCell.cs: Make some painting routines internally virtual.
3684         * DataGridViewButtonCell.cs: Implement.
3685
3686 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
3687
3688         * Control.cs: We always need to invalidate our children with
3689         transparent backgrounds when we are invalidated.
3690         [Fixes bug #376081]
3691
3692 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3693
3694         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
3695         and CancelCurrentEdit on CurrencyManager respectively. Implement
3696         support for ICancelAddNew too.
3697
3698 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3699
3700         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
3701         call EndNew/CancelNew if list is ICancelAddNew.
3702
3703 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
3704
3705         * DataGridView.cs: Guard against an exception while painting
3706         if there are no rows.
3707
3708 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
3709
3710         * DataGridView.cs: Implement a bunch of keyboard commands.
3711
3712 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
3713
3714         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
3715         isn't set, don't call OnPaint.  [Fixes bug #375300]
3716
3717 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3718
3719         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
3720         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
3721         hookup the remaining events related to CurrencyManager, and fire
3722         OnListChanged also for the Clear () method.
3723
3724 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3725
3726         * BindingSource.cs: Use Current and Position implementations in
3727         CurrencyManager instead of using our own routines, since we need 
3728         to be in synch with it. Count should NEVER return a -1 value, and 
3729         also report ListChanged events for both simple IList data 
3730         sources (manually) as well for IBindingList ones (by hooking up an
3731         event handler for it).
3732
3733 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3734
3735         * BindingSource.cs: Make one .ctor call the another, to avoid
3736         duplicate code. Add the CurrencyManager property, and also for AddNew
3737         throw the proper exceptions and show better error messages.
3738
3739 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
3740
3741         * ComboBox.cs: Only adjust selectedindex if Handle has been
3742         created.  Fixes failing test.
3743
3744 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
3745
3746         * ComboBox.cs: Adjust selectedindex if we insert a new item
3747         above the current selectedindex in a sorted ComboBox.
3748         [Fixes bug #374654]
3749
3750 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
3751
3752         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
3753         [Fixes bug #374712]
3754
3755 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
3756
3757         * DataGridViewTextBoxCell.cs: Implement stuffs.
3758
3759 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3760
3761         * TreeView.cs: Create the scrollbars even earlier to be
3762         double dog certain they are created before they are accessed.
3763
3764 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3765
3766         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
3767
3768 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3769
3770         * ScrollBar.cs: Create an internal safe Value setter so we
3771         won't crash if we try to set a value outside the min and max.
3772         * TextBoxBase.cs: Use safe value setter to guard against a
3773         potential NRE that is being reported by Reflector.
3774
3775 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3776
3777         * TreeView.cs: Create the scrollbars earlier in the constructor
3778         to attempt to guard against an NRE in SetTop in Reflector.
3779
3780 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
3781
3782         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
3783         DataGridViewRowCollection.cs: Do not scroll column and row headers,
3784         show messagebox on data format error, use column display index
3785         correctly, make sure HitTest supports new layout stuff,
3786         make sure scrollbars support new layout stuff.
3787
3788 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
3789
3790         * XplatUIX11.cs : Patch by Doug Rintoul.
3791           For some IM engines, keypress events need to delay call
3792           to XPending() and XNextEvent() in the loop so that it
3793           does not mess the orders in XIM commit callback.
3794           Some KeyRelease events such as shift keys need to be
3795           processed both in the IM engine and winforms driver
3796           itself since winforms holds its own state check.
3797
3798           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
3799
3800 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
3801
3802         * X11Keyboard.cs, XplatUIX11.cs :
3803           add primitive support for XIM input support (preedit-
3804           nothing and status-nothing). It requires precise event
3805           capturing (XSelectInput/"filterEvents") and different
3806           call to XFilterEvent against root window.
3807           Get composed string and send dummy WM_IME_COMPOSITION.
3808           Free XIM and XIC instances in finalizer.
3809
3810           (This first patch does not include suggested changes
3811            by Doug Rintoul. It will follow.)
3812
3813 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
3814
3815         * DataGridView.cs: When binding to a property, if the property
3816         doesn't have a setter, set the column to readonly.
3817         [Fixes bug #343965]
3818
3819 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
3820
3821         * ComboBox.cs: Guard against NRE if an arrow key is hit while
3822         we aren't dropped down.  Support Home/End in DropDownList mode.
3823         [Fixes bug #371990]
3824
3825 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
3826
3827         * TreeNodeCollection.cs: Don't increment count until we've
3828         saved our index to return.
3829         [Fixes bug #373603]
3830
3831 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
3832
3833         * Label.cs: Add padding to the label's AutoSize calculation.
3834         [Fixes bug #373792]
3835
3836 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3837
3838         * ListBindingHelper.cs: Actually implement GetListName method.
3839
3840 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3841
3842         * BindingSource.cs: Throw the propert expceptions for some methods, as
3843         well as detect the list item type for Add method if DataSource is null.
3844
3845 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
3846
3847         * DataGridViewCell.cs: I don't know why I commented this out,
3848         putting it back for now.
3849
3850 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
3851
3852         * DataGridViewCell.cs: Remove storage for owning column, just
3853         use column index.
3854         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
3855         * DataGridViewColumnHeaderCell.cs: If the header text has been
3856         explicitly set, return it.
3857         [Fixes bug #325979]
3858
3859 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
3860
3861         * DataGridViewRowCollection.cs: Disable row sharing when
3862         using data binding.  Its a great feature, but lets work on
3863         getting DGV usable first before we worry about optimizations.
3864
3865 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3866
3867         * BindingSource.cs: When resetting our internal list, compute list
3868         item type information to be used for indirect list access. Also
3869         implement/tune some properties and methods related to the list access
3870         too.
3871         * ListBindingHelper.cs: Add a stub for GetListName method, used from
3872         BindingSource.
3873
3874 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3875
3876         * DataGridView.cs: If RowCount is increased while ColumnCount
3877         is zero, add a column.  [Fixes bug #331649]
3878
3879 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3880
3881         * DataGridViewRowCollection.cs: When adding new rows for
3882         databinding, make sure they are place before the add row.
3883         [Fixes bug #343961]
3884
3885 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3886
3887         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
3888         instead of Index order.
3889
3890 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3891
3892         * DataGridView.cs: If columns are added by increasing ColumnCount,
3893         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
3894         [Fixes bug #325588]
3895
3896 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3897
3898         * DataGridView.cs: Turn off and on the "new row" when 
3899         AllowUserToAddRows is toggled.  When the handle is created,
3900         set current cell and selected cell/row/col.
3901
3902 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3903
3904         * ComboBox.cs: When navigating the drop down by keyboard, we
3905         need to scroll the list box if our selection moves out of the
3906         currently shown items.  [Fixes bug #371990]
3907
3908 2008-03-24  Luke Page <luke.a.page@gmail.com>
3909
3910         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
3911         on the control. Also now handles unicode compatibility characters and
3912         stores the unicode compatibility length on the stack. Fixes Bugs
3913         #355198 and #366436.
3914
3915 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3916
3917         * BindingSource..cs: Take into account DataMember when re-creating the
3918         List property, and also create a specific kind of list as needed.
3919
3920 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3921
3922         * ListBindingHelper.cs: Add a new case for GetList () method - when we
3923         get an empty IEnumerable, try to detect whether the datamember is
3924         valid or not for that type, if true, return null, and throw exception
3925         otherwise.
3926
3927 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
3928
3929         * ComboBox.cs: Alt-Down should drop down the list, Esc should
3930         retract it.  [Fixes bug #371989]
3931
3932 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
3933
3934         * PropertyGrid.cs: Initialize the sorting button as pushed.
3935
3936 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
3937
3938         * PropertyGrid.cs: 
3939          - Visually select the PropertyTab.
3940          - Filter Properties by Attributes properly.
3941
3942 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
3943
3944         * MenuItem.cs: Remove menu item from parent when disposed.
3945         [Fixes bug #372845]
3946
3947 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
3948
3949         * ToolBar.cs: Don't reset layout_type if Dock = None.
3950
3951 2008-03-21  Andreia Gaita <avidigal@novell.com> 
3952
3953         * UserControl.cs: Select the first available control when we get focus.
3954           Fixes #372616
3955
3956 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
3957
3958         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
3959         the content if we are in edit mode.  [Fixes bug #343964]
3960
3961 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
3962
3963         * DataGridViewCell.cs: Fix border painting for column headers.
3964
3965 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3966
3967         * BindingSource.cs: When setting or resetting data source,
3968         use ListBindingHelper.GetList () method, since it will get the list in
3969         case datasource is IListSource.
3970
3971 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
3972
3973         * DataGridViewCell.cs: Implement lots more stuffs.
3974
3975 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
3976
3977         * PropertyGridView.cs, GridEntry.cs: Implement support for 
3978         UITypeEditor.IsDropDownResizable.
3979
3980 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
3981
3982         * DataGridViewCell.cs: Remove unused variables, improve how
3983         several of the property getters work.
3984         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
3985         get its size from the parent row/col.
3986
3987 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
3988
3989         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
3990         user alters manually the PropertyTabs collection via the 
3991         PropertyTabs property.
3992
3993 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3994
3995         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
3996         new tests for them to be sure to be compatible with .net.
3997
3998 2008-03-20  Andreia Gaita <avidigal@novell.com> 
3999
4000         * WebBrowserBase.cs: Fix attributes, add events
4001         * WebBrowser.cs: Fix Padding signature
4002
4003 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
4004
4005         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
4006
4007 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
4008
4009         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
4010         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
4011         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
4012         passes the new suite of tests for it.
4013
4014 2008-03-18  Andreia Gaita <avidigal@novell.com> 
4015
4016         * WebBrowser.cs: Add missing attributes, missing Padding and
4017           DefaultSize properties, remove extraneous getters
4018
4019 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4020
4021         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
4022         method overloads.
4023
4024 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4025
4026         * ComboBox.cs: Move resetting the selected index to keypress
4027         instead of textchanged.  Changing the text programmatically
4028         should not trigger resetting the selected index.  Fixes test.
4029
4030 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4031
4032         * ComboBox.cs: When the user types into the textbox, reset
4033         the selected index to -1.  [Fixes bug #371672]
4034
4035 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
4036
4037         * FileDialog.cs: Support Control-A for selecting everything
4038         in an OpenFileDialog.  [Fixes bug #371564]
4039
4040 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
4041
4042         * DataGridView.cs: When row/column visible/height properties
4043         change, invalidate.  Take the NIEX out of InvalidateRow/Column
4044         etc.  We don't support them yet, but we can just invalidate
4045         everything until we do support them.  (Added MonoTODO).  Set
4046         proper control styles.
4047         * DataGridViewRow.cs: Don't call PaintHeader if row headers
4048         are turned off. 
4049
4050 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4051
4052         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
4053
4054 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
4055
4056         * DataGridViewRow.cs: Only paint the white background in
4057         cell bounds, the row bounds extends past the cells if the 
4058         grid width isn't as wide as the DGV.
4059
4060 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
4061
4062         * DataGridView*: Completely revamp the drawing to match the
4063         public API.  Our grids now look better, and call all the
4064         appropriate methods and event to allow users to override
4065         the painting and do their own.
4066
4067 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4068
4069         * ListBindingHelper.cs: Implement 2.0 GetList methods.
4070
4071 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4072
4073         * DataGridView.cs: Implement BorderStyle.
4074
4075 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4076
4077         * FileDialog.cs: Apply patch from Andy Hume: Any time we
4078         are comparing attributes, make sure we only look at the
4079         one we are interested.  These calls were failing if there
4080         were more than one attribute.
4081         [Fixes bug #370385]
4082
4083 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
4084
4085         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
4086
4087 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4088
4089         * PageSetupDialog.cs: Stub EnableMetric.
4090         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
4091         * PrintPreviewDialog.cs: Add ProcessDialogKey,
4092         ProcessTabKey.
4093
4094 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4095
4096         * MonthCalendar.cs: Remove unused variable.
4097
4098 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
4099
4100         * DataGridView*.cs: corcompare stuffs.
4101
4102 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4103
4104         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
4105         The savings aren't worth the extra code to fix the optimization.
4106         [Fixes bug #368585]
4107
4108 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4109
4110         * ToolBar.cs: Always call base.Dock in the Dock override so that
4111         Control's layout_type gets reset correctly.
4112         [Fixes bug #368882]
4113
4114 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
4115
4116         * X11Dnd.cs: End DnD operation also for the middle mouse button.
4117
4118 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4119
4120         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
4121         at the same time we do explicit ones, because we have to give all
4122         other controls on the container a chance to handle explicit ones
4123         first.  If no one has an explicit mnemonic, then we can let the
4124         MenuStrip have a shot at implicit mnemonics.
4125         * MenuStrip.cs: Create an implicit mnemonic function.
4126         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
4127         mnemonics for MenuStrips.
4128         [Fixes bug #368493]
4129
4130 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
4131
4132         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
4133         DataGridColumnStyle.cs: corcompare stuffs.
4134
4135 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4136
4137         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
4138         Details - This is needed after we added the bits to use any available
4139         column also for List and SmallIcon view. 
4140
4141 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4142
4143         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
4144         at the proper place, not only when changing SelectedIndex and changing
4145         the selection using keys/mouse, as .net does.
4146
4147 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4148
4149         * ControlBindingsCollection.cs: Implement last 2.0
4150         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
4151         in the new 2.0 Add methods.
4152
4153 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4154
4155         * ListBox.cs: When calling SelectedIndexCollection.Clear,
4156         return if no items are previously selected - this is done to avoid 
4157         firing OnSelectedIndexChanged without need to do so. Also,
4158         when creating handle ensure that the focused item is visible (as
4159         .net does).
4160
4161 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4162
4163         * ListBox.cs: Rewrote/refactored most of selection code. We require
4164         the following things in selection: a) keep selection sorted (both
4165         indices and items), b) SelectedIndices automatically detect the
4166         selection mode, c) SelectedIndex should be the first selected item
4167         index, d) Need to Focus/adjust scroll bar when selecting a new item,
4168         not only for SelectedIndex, which is specially important in Multi*
4169         selection modes. To achieve this we are moving the selection core to
4170         SelectedIndexCollection and make depend all selection modifications on
4171         it.
4172         Fixes #366438.
4173
4174 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4175
4176         * ToolStrip.cs: Enable implicit mnemonics for drop down
4177         menu strips.  [Fixes part of bug #367692]
4178
4179 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4180
4181         corcompare - fix parameter names [stragglers].
4182         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
4183         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
4184         TabControl.cs.
4185
4186 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4187
4188         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
4189         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
4190         mnemonic, let the ToolStripManager have it even if it doesn't
4191         have a matching mnemonic.
4192         [Fixes bug #367499]
4193
4194 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4195
4196         corcompare - fix warning about implicit implementation
4197         * ToolStrip.cs: Add IToolStripData interface.
4198         * IToolStripData.cs: Add.
4199
4200 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
4201
4202         corcompare - fix warning about implicit implementation
4203         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
4204         * IBounds.cs: Add.
4205
4206 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4207
4208         corcompare - fix parameter names [N-Z].
4209         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
4210         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
4211         PropertyManager.cs, RichTextBox.cs,
4212         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
4213         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
4214         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
4215         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
4216         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
4217         ToolStripContentPanel.cs, ToolStripDropDown.cs,
4218         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4219         ToolStripPanel.cs, ToolStripSeparator.cs,
4220         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
4221         UICuesEventHandler.cs, UpDownBase.cs.
4222
4223 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4224
4225         corcompare - fix parameter names [G-M].
4226         GridColumnStylesCollection.cs, GridItemCollection.cs,
4227         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
4228         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
4229         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
4230         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
4231         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
4232
4233 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
4234
4235         corcompare - fix parameter names [A-F].
4236         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
4237         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
4238         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
4239         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
4240         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
4241         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
4242         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
4243
4244 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
4245
4246         * GridEntry.cs: Do not convert not only if the types match, 
4247         but also if the property type is assigneable from the value's
4248         type.
4249         [Fixes bug #366566]
4250
4251 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
4252
4253         * PropertyGridView.cs: 
4254          - Subscribe to the listbox only once and not everytime.
4255          - Update the textbox even if SetValue fails.
4256          - Close the listbox before calling TrySetValue just in case.
4257          [Fixes bug #366569]
4258
4259 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
4260
4261         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
4262
4263 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4264
4265         * ListView.cs: Implement support for custom column width based on
4266         Columns collection (we were previously using this collection only
4267         with Details view).
4268         Fixes #364484.
4269
4270 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4271
4272         * ListViewItem.cs: For Tile view, always set bounds for the first
4273         subitem (which is the main one), and also don't let Width be larger
4274         than ListView.TileSize.Width. Improve code readibility also.
4275         * ThemeWin32Classic.cs: When painting the ListViewItem instances
4276         in Tile view, _always_ use the NoWrap flag.
4277         Fixes #360798.
4278
4279 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
4280
4281         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
4282         in case.
4283         * GridEntry.cs: For MS compitability make all child properties 
4284         readonly if the parent is readonly. Ugh.
4285         [Fixes bug #365945 and #365944]
4286
4287 2008-02-29  Andreia Gaita <avidigal@novell.com> 
4288
4289         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
4290           relative to the history
4291
4292 2008-02-29  Andreia Gaita <avidigal@novell.com>
4293
4294         * HtmlElement.cs: More handlers for mouse and key events
4295
4296 2008-02-28  Andreia Gaita <avidigal@novell.com>
4297
4298         * WebBrowserBase.cs: MouseClick sig changed.
4299         * HtmlHistory.cs: Implement history navigation
4300         * HtmlElement.cs: Add event handlers, and connect them.
4301
4302 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
4303
4304         * GridEntry.cs: 
4305          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
4306            so that DisplayNameAttribute doesn't get ignored.
4307          - Check for ParenthesizeNameAttribute and parenthesize the Label.
4308          - Add support for PasswordPropertyTextAttribute
4309         * PropertyGridView.cs: Check if an entry is a password.
4310         [Fixes bugs #365589, #365586, #365588]
4311
4312 2008-02-28  Andreia Gaita <avidigal@novell.com>
4313
4314         * PropertyGridView.cs: Revert the message filtering change, as we
4315         need it to block after all. Remove block parameter, unnecessary.
4316
4317 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
4318
4319         * UserControl.cs: Better implementation of GetPreferredSize.
4320         First step to fixing bug #361441.
4321
4322 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4323
4324         * Binding.cs: Actually implement data binding support for 
4325         classes implementing IBindableComponent.
4326         * ControlBindingsCollection.cs: Likewise.
4327
4328 2008-02-26  Andreia Gaita  <avidigal@novell.com>
4329
4330         * PropertyGridView.cs: Use a message filter to check when to 
4331         close the dropdown
4332
4333 2008-02-26  Andreia Gaita  <avidigal@novell.com>
4334
4335         * Application.cs: Change the message_filters loop so a filter 
4336         can be removed while looping.
4337
4338 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
4339
4340         * GridEntry.cs: Optimization in ToggleValue so that it caches
4341         the current value.
4342         * PropertyGridView.cs: An optimization so that the property isn't 
4343         re-read twice for each StandardValue added to the drop-down menu.
4344         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
4345         license.
4346         [Fixes bug #362755]
4347
4348 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
4349
4350         * Application.cs: Apply patch from Justin Cherniak to match
4351         MS better for ProductName, ProductVersion, and CompanyName.
4352         [Fixes bug #361709]
4353
4354 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4355
4356         * Binding.cs: Actually implement 2.0 NullValue property. Also
4357         when changing the formatting related properties, only update the state
4358         if formatting_enabled is true (we don't mind otherwise).
4359
4360 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
4361
4362         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
4363         [Fixes bug #364486]
4364
4365 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
4366
4367         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
4368         of GetType on the current value as it uses reflection to 
4369         determine the type. This fixes the case where the new value is 
4370         null. 
4371
4372 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
4373
4374         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
4375         past the view.
4376
4377 2008-02-24  Luke Page  <luke.a.page@gmail.com>
4378
4379         * Line.cs, TextControl.cs: Implement offset x and y so that a
4380         document doesn't have to begin  at (0,0) on the viewpoint.
4381         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
4382         bars and switches the text alignment (and therefore is now
4383         implemented for textbox). Fixes #321383.
4384
4385 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4386
4387         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
4388         properties. Also when changing FormattingEnabled update the control
4389         property -as .Net does-.
4390
4391 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
4392
4393         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
4394         * Binding.cs: Add stubs for the overloads of the Add method in
4395         CBCollection.
4396
4397 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4398
4399         * Binding.cs: PullData () returns a false value if we got an exception.
4400         Also when validating the control and we get an error, instead of
4401         setting the value of the previous one, cancel the event (tested in 1.1
4402         and 2.0).
4403
4404 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
4405
4406         * TreeView.cs: Make selected_node and highlighted_node internal.
4407         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
4408         to null when Nodes.Clear is called.
4409         [Fixes bug #363884]
4410
4411 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4412
4413         * FontDialog.cs: Ensure that when the Font is set in code,
4414         all the gui pieces are updated accordingly.
4415         [Fixes bug #361020]
4416
4417 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4418
4419         * TextRenderer.cs: Respect proposed size for MeasureString.
4420         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
4421         autosize, use a proposed width to force wrapping for long text.
4422         [Fixes bug #360981]
4423
4424 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4425
4426         * TreeView.cs: Factor in checkboxes = false and state images in
4427         to HitTest.  [Fixes bug #363360]
4428
4429 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4430
4431         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
4432         when drawing the selected range.
4433         [Fixes bug #363648]
4434
4435 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
4436
4437         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
4438         ResizeRedraw control styles.
4439         [Fixes bug #363555]
4440
4441 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4442
4443         * TreeView.cs: StateImages are basically custom checkboxes, so
4444         factor their size the same as real checkboxes when determining
4445         what got clicked.
4446         [Fixes bug #363367]
4447
4448 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4449
4450         * MessageBox.cs: Make the message box wider if the form caption
4451         is longer than the text in the form.
4452         [Fixes bug #361137]
4453
4454 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
4455
4456         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
4457
4458 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4459
4460         * TreeNode.cs: Guard against an NRE when the parent's
4461         StateImageList hasn't been set.
4462         [Fixes bug #363353]
4463
4464 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4465
4466         * SplitContainer.cs: Add SupportsTransparentBackColor and
4467         OptimizedDoubleBuffering control styles.
4468         [Fixes bug #363303]
4469
4470 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4471
4472         * Application.cs: For the app data paths and the registry key paths,
4473         ensure they are created before returning them to the user.
4474         [Fixes bug #361709]
4475
4476 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4477
4478         * Application.cs: Guard against an NRE in CompanyName and
4479         ProductName.
4480
4481 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
4482
4483         * Application.cs: For CompanyName, ProductName, and ProductVersion,
4484         make sure we handle all three cases correctly: attribute is present,
4485         attribute is present but is an empty string, and attribute is not
4486         present.
4487
4488 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
4489
4490         * PropertyGridView.cs: 
4491          - Fix a NRE that caused a test failure
4492          - Another performance improvement - cache the standard values
4493          listbox.
4494
4495 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4496
4497         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
4498         code paths.
4499
4500 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
4501
4502         * PropertyGridView.cs: Fix a big performance bug.
4503
4504 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4505
4506         * SelectionRange.cs: Apply patch from Andy Hume to make
4507         constructor behavior more accurate.  [Fixes bug #362117]
4508
4509 2008-02-19  Andreia Gaita <avidigal@novell.com> 
4510
4511         * Control.cs: Added a new flag is_disposing to track if the
4512         window is currently in the process of being disposed of.
4513         This is used so that, when firing visibility changes triggered
4514         by unparenting controls during Dispose, the control doesn't
4515         get created again.      
4516
4517 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
4518
4519         * ComboBox.cs: Set height to preferred height when the handle
4520         is created.  [Fixes bug #360862]
4521
4522 2008-02-18  Andreia Gaita <avidigal@novell.com>
4523
4524         * XplatUIX11.cs: Create FosterParent with border width at 0.
4525         With the previous value of 4, everytime a control got reparented
4526         from parent = null, it's location would be shifted right and 
4527         down by 4, since these coordinates would be offset by the 
4528         FosterParent's border width.
4529
4530 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
4531
4532         * Control.cs: During diposing firstly remove ourselfes from
4533         the parent and *then* destroy our handle, because removing
4534         ourselfes from the parent controls collection causes 
4535         VisibilityChange, etc events, which require a handle and end
4536         up recreating the control.
4537
4538 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
4539
4540         * GridEntry.cs: Set expanded state before notifying that the
4541         expansion has taken place.
4542         * PropertyGridView.cs:
4543          - Set the propertygridtextbox text to the selected 
4544          StandardValue before proceeding to setting it.
4545          - Scrolling bugfixes.
4546
4547 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
4548
4549         * GridEntry.cs:
4550          - Fix ValueText to not return null.
4551          - Fix conversion error reporting to actually happen.
4552         * PropertyGridView.cs: Set entry only if the text has changed.
4553         [Fixes bug #362116]
4554
4555 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
4556
4557         * GridEntry.cs: 
4558          - Fix handling of a null current value.
4559          - Swallow editor exceptions.
4560         [Fixes bug #362114]
4561
4562 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
4563
4564         * PropertyGrid.cs: Clear current items first thing before 
4565         repopulating subitems.
4566         * GridEntry.cs: 
4567          - Handle null StandardValuesCollection.
4568          - Mark as not editable if there is no PropertyDescriptor and
4569          if the Converter cannot convert from string.
4570         [Part of fix for bugs #360666 and #358332]
4571
4572 2008-02-15  Luke Page  <luke.a.page@gmail.com>
4573         * MaskedTextBox.cs: Now skips non editable characters after a
4574         character has been entered and we are progressing to the next
4575         position in the MaskedTextBox.
4576
4577 2008-02-15  Luke Page  <luke.a.page@gmail.com>
4578         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
4579         that it changes the selection rather than just repositioning the
4580         cursor. Fixes Bug #360873.
4581
4582 2008-02-15  Luke Page  <luke.a.page@gmail.com>
4583         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
4584         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
4585         correctly. See #359330
4586
4587 2008-02-15  Andreia Gaita <avidigal@novell.com>
4588
4589         * XplatUIX11.cs: If the handle is null when posting a message, use the
4590         current thread queue to post instead. Fixes #332409
4591
4592         * SendKeys.cs: Slight optimization
4593
4594 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
4595
4596         * PropertyGrid.cs, PropertyGridView.cs:
4597         Fix multiple scrolling and sizing issues.
4598         [Fixes bug #359199]
4599
4600 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
4601
4602         * PropertyGridView.cs: Ensure that drop down editors are shown
4603         in the WorkingArea of the screen.
4604         [Fixes bug #359807]
4605
4606 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
4607
4608         * GridEntry.cs: Fail silently when UITypeEditor is missing.
4609         [Fixes bug #360666]
4610
4611 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4612
4613         * Binding.cs: Implement 2.0 DataSourceNullValue property.
4614
4615 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
4616
4617         * PropertyGridView.cs:
4618          - Clear the controls in the drop down form after it is hidden.
4619          - Fix Width sizing of the dropdown editors to match MSFT.
4620
4621 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
4622
4623         * PropertyGridView.cs: 
4624          - Fix height for drawing the grid entry
4625          text value, so that it clips multiline text properly.
4626          - Fix unfocusing to match MSFT.
4627
4628 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
4629
4630         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
4631         Fixes a bug where on repopulation after value changed items become
4632         expandable.
4633
4634 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4635
4636         * Binding.cs: For the 2.0 profile, look for a 
4637         'PropertyChanged' event in the target control, and add checks for
4638         DataSourceUpdateMode property to change -or not- the data source
4639         from validation/control property change.
4640
4641 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
4642
4643         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
4644           not compare struct with null in 2.0).
4645
4646 2008-02-10  Luke Page <luke.a.page@gmail.com>
4647
4648         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
4649         updates the provider and if not using a provider, uses the internal document
4650         class implementation of password char. Also when showing text, uses display string
4651         from the provider, instead of the actual text.
4652
4653 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4654
4655         * Binding.cs: Ooooops, forgot to take into account the data_source
4656         and binding_member_info null case (it was breaking the Binding tests).
4657
4658 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4659
4660         * Binding.cs: Implement support for data source changes exposed by
4661         'PropertyNameChanged' events, and update the control property as
4662         needed.
4663
4664 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4665
4666         * Binding.cs: Implement 2.0 WriteValue method.
4667
4668 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
4669
4670         Commit patch from James Purcell for better AutoScale implementation:
4671
4672         * ScaleControl should call GetScaledBounds with the control's total size rather
4673         than client size.  GetScaledBounds should handle ignoring the borders in its
4674         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
4675         (for the most part they just call the base code now since that is fixed).
4676         * Added ScaleChildrenInternal to allow controls to disable scaling of children
4677         without having to override ScaleChildren (since none of .NET's controls do). 
4678         This is required for most controls in Mono that have scrollbars to prevent the
4679         scrollbars from being moved/resized.
4680         * Nested ContainerControls can have a different scale mode than their parent. 
4681         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
4682         designer produce different results both of which look incorrect).
4683         * Default AutoScaleMode for ContainerControl should be Inherit.
4684         * Simplified workaround for ComboBox scaling issue.
4685         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
4686         1.0 style auto scaling should scale the whole control's size instead of
4687         ignoring the borders (except for Form) and the rounding is done differently to
4688         preserve control alignment.
4689         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
4690         GetAutoScaleSize.
4691         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
4692         * CurrentAutoScaleDimensions should round the estimated character width instead
4693         of truncating.
4694         * ListBox's GetScaledBounds should always use the height it was set to instead
4695         of the height that was passed in.  This prevents rounding errors from
4696         accumulating quickly with IntegralHeight.
4697         [Bug #359098]
4698
4699 2008-02-08  Andreia Gaita <avidigal@novell.com>
4700
4701         * Form.cs: Add a null check (darn it). 
4702
4703 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
4704
4705         * MdiClient.cs: Make sure the requesting form actually owns the
4706         control menu items before removing them.  Also, use
4707         Suspend/ResumeLayout when adding or removing items so we only
4708         layout once.
4709         [Fixes bug #359887]
4710
4711 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
4712
4713         * Control.cs: Guard against an NRE in ShowFocusCues.
4714         [Fixes bug #359830]
4715
4716 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4717
4718         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
4719         property, as well as stubbing DataSourceUpdateMode.
4720
4721 2008-02-08  Andreia Gaita <avidigal@novell.com>
4722
4723         * Form.cs: When closing forms, get focus back to the active control of the
4724         active form. [Fixes #341314, corner case]
4725         
4726 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4727
4728         * MdiClient.cs: After we move the scrollbars, invalidate the NC
4729         area, so any old scrollbar artifacts are cleaned up.
4730         [Fixes bug #336305]
4731
4732 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4733
4734         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
4735         for our menus, display that control box menu instead of the 1.1
4736         menu one.
4737
4738 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4739
4740         * MdiControlStrip.cs: Add property to access the mdi form tied to
4741         each toolstripitem.
4742         * MdiClient.cs: Be smarter about removing and adding toolstripitems
4743         to the implicitly merged menu.  Every time we clicked the form, items
4744         were getting removed and the re-added, causing the form to jump around
4745         as the menu resized.
4746
4747 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4748
4749         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
4750         was being reset by the implicit menu merge for menustrips.
4751         [Fixes bug #336296]
4752
4753 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4754
4755         * Form.cs: Don't do the previous change when WindowState = Normal,
4756         or it messes up where the window is placed.  Fixes test failure.
4757
4758 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
4759
4760         * Form.cs: When becoming visible, if we are an MDI child, call
4761         SetWindowState with a dummy old_state so that changes will actually
4762         be made.
4763         [Fixes the 2nd part of bug #325473]
4764
4765 2008-02-07  Andreia Gaita <avidigal@novell.com>
4766
4767         * Control.cs: Reset properties to their pre parent-change values in case
4768         the new parent == null (in which case we're basically removing the control, 
4769         and don't want any events fired due to fake property changes)
4770         [Fixes #355850]
4771
4772 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
4773
4774         * PropertyGridView.cs: 
4775          - Refactor SetValue to allow setting the value
4776         when a custom editor is used, but the entry is not editable.
4777          - Remove the custom editor control on CloseDropDown.
4778         [Fixes #359196]
4779
4780 2008-02-06  Andreia Gaita <avidigal@novell.com>
4781
4782         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
4783         reflection only on 1.1, this property is public on system.drawing on 2.0.
4784         Fixed #359247
4785
4786 2008-02-06  Andreia Gaita  <avidigal@novell.com>
4787         
4788         * WebBrowser.cs: Do a normal page refresh by default.
4789
4790 2008-02-05  Andreia Gaita  <avidigal@novell.com>
4791
4792         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
4793         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
4794         platforms. Fixes #359036
4795         
4796         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
4797         platform-specific flags.
4798
4799 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4800
4801         * Binding.cs: Add 2.0 BindableComponent property - just return control
4802         by now.
4803
4804 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
4805
4806         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
4807         Jonathan for this patch. Fixes #358442.
4808
4809 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
4810
4811         * Form.cs: If we change the active MDI child form, let the others
4812         know they need to repaint their title bar so it will appear inactive.
4813         [Fixes part 1 of bug #325473]
4814
4815 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
4816
4817          * PropertyGridView.cs: Do not trucate custom editors' width
4818          and align them to the left.
4819          [Fixes #358353 and #358349]
4820
4821 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4822
4823         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
4824         Also fix the arguments passed to CollectionChangeEventArgs in the
4825         related methods.
4826
4827 2008-02-04  Geoff Norton  <gnorton@novell.com>
4828
4829         * Hwnd.cs: The conversion to Quartz coordinates happens in
4830         System.Drawing.  Removing this translation from here.
4831
4832 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
4833
4834          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
4835          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
4836          GridItemCollection.cs:
4837          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
4838
4839 2008-02-04  Geoff Norton  <gnorton@novell.com>
4840
4841         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
4842         SYSKEYUP if any other key has been pressed in the mean time.
4843         Fixes #324404
4844
4845 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4846
4847         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
4848         when the item in current position is different than 0. Also, save the
4849         item index in the beginning of the operation, instead of getting the
4850         index of the item when the event is actually performed. Lastly clean
4851         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
4852         triggered.
4853         [Fixes #357873]
4854
4855 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
4856
4857         * Form.cs: Alt-Minus for MDI children system menu should work
4858         with both the minus keys on the keyboard.
4859         [Fixes bug #336295]
4860
4861 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
4862
4863         * Control.cs: Don't invalidate on region change.  The WM should
4864         take care of this automagically.  Keeps us out of an infinite
4865         paint loop if someone changes the Region in the OnPaint.
4866         [Fixes bug #358327]
4867
4868 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
4869
4870          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
4871
4872 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
4873
4874         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
4875         down the MonthCalendar only on F4, not Alt+F4.
4876         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
4877         [Fixes bug #358340]
4878
4879 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
4880
4881         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
4882         if its part of a DateTimePicker, else, use the back color.
4883         [Fixes bug #358339]
4884
4885 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
4886
4887         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
4888         [Fixes bug #358342]
4889
4890 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4891
4892         * CurrencyManager.cs: When we get a ListChanged event from our source,
4893         always fire our own ListChanged event, as .Net does.
4894
4895 2008-02-03  Luke Page  <luke.a.page@gmail.com>
4896
4897         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
4898         #358379.
4899
4900 2008-02-03  Luke Page  <luke.a.page@gmail.com>
4901
4902         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
4903         property. Removed if for richtext property that was always true.
4904         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
4905
4906 2008-02-03  Luke Page  <luke.a.page@gmail.com>
4907
4908         * TextBoxBase.cs - commited patch from James Purcell that
4909         correctly sets the FixedHeight control style when the MultiLine
4910         property is changed on a TextBox control. Fixes bug 358229.
4911
4912 2008-02-02  Luke Page  <luke.a.page@gmail.com>
4913
4914         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
4915         Fixes bug 351938 - caret is positioned correctly when drawn
4916         and when calculating textual position of caret, no longer
4917         has a NRE in certain situations.
4918         
4919 2008-02-01  Geoff Norton  <gnorton@novell.com>
4920
4921         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
4922         get that region removed from the paint event.
4923         * XplatUICarbon.cs: Remove the window mapping after disposing of 
4924         window.  Prevents a crash with handle reuse.  Optimize exposes
4925         only onto visible windows (rare; but possible).
4926
4927 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4928
4929         * UpDownBase.cs: Make sure the internal textbox calls the base's
4930         OnMouseDown and OnMouseUp so the textbox will function correctly.
4931         There were notes saying it doesn't chain up, but its an internal
4932         class, so our implementation may differ.
4933         [Fixes bug #357482]
4934
4935 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4936
4937         * ListBox.cs: Fix a logic error and don't process MouseDown
4938         for mouse buttons other than Left.
4939
4940 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4941
4942         * Control.cs: Remove HeightInternal.
4943         * ListBox.cs: Commit patch from James Purcell that correctly
4944         calculates heights for ListBoxen.
4945         [Fixes bug #357152]
4946
4947 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4948
4949         * Label.cs: Apply patch from James Purcell that corrects the 
4950         signature of the AutoSize property.
4951         [Fixes bug #357605]
4952
4953 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4954
4955         * ListBox.cs: Don't throw [Mouse]Click events for buttons
4956         other than the left mouse button.
4957
4958 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
4959
4960         * Control.cs: Remove my awesome optimization as it caused some
4961         regressions with control ordering.  :(
4962         [Fixes bug #357467]
4963
4964 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
4965
4966          * PropertyGridView.cs: Fix a NRE on double click when there is no
4967          selected object.
4968
4969 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4970
4971         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
4972
4973 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
4974
4975         * ListBox.cs: Call MouseClick and MouseDoubleClick.
4976         [Fixes bug #357146]
4977
4978 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4979
4980         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
4981         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
4982         instead of Hwnd.bmp_g.
4983
4984 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4985
4986         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
4987         Use the Hwnd one instead.
4988
4989 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4990
4991         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
4992
4993 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4994
4995         * Form.cs: corcompare for RestoreBounds.
4996
4997 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4998
4999         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
5000
5001 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
5002
5003         * Form.cs: Handle Alt-Minus for MDI children forms.
5004         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
5005         Add mnemonics to the control menu.
5006         [Fixes bug #336295]
5007
5008 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5009
5010         * Binding.cs: Initial implementation bits of FormattingEnabled
5011         property and BindingComplete event (2.0). 
5012         * BindingCompleteEventArgs.cs: Internal methods for setting error text
5013         and exception.
5014
5015 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
5016
5017         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
5018         table.Location.  [Fixes bug #354672]
5019
5020 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
5021
5022         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
5023         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
5024
5025 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5026
5027         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
5028         of doing all the re-bound work, just invalidate and call SetControlText 
5029         to set the updated text of selected item to our textbox.
5030         Fixes #333750.
5031
5032 2008-01-28  Andreia Gaita <avidigal@novell.com>
5033
5034         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
5035         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
5036         missing properties and methods. Add Load, Unload, Error, GotFocus, 
5037         LostFocus, Resize, Scroll events (only load and unload are connected)
5038
5039 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
5040
5041         * AccessibleObject.cs: Modified argument names to match MS.
5042         * Button.cs: Modified argument names to match MS.
5043         * BindingContext.cs: Modified argument names to match MS.
5044         * BindingMemberInfo.cs: Modified argument names to match MS.
5045         * ButtonBase.cs: Modified argument names to match MS.
5046         * ComboBox.cs: Modified argument names to match MS.
5047         * Control.cs: Modified argument names to match MS.
5048         * CheckedListBox.cs: Modified argument names to match MS.
5049         * CommonDialog.cs: Modified argument names to match MS.
5050         * DataGrid.cs: Modified argument names to match MS.
5051         * CursorConverter.cs: Modified argument names to match MS.
5052         * ControlPaint.cs: Modified argument names to match MS.
5053         * CheckBox.cs: Modified argument names to match MS.
5054         * ControlBindingsCollection.cs: Modified argument names to match MS.
5055         * BindingSource.cs: Modified argument names to match MS.
5056         * DataFormats.cs: Modified argument names to match MS.
5057         * ContainerControl.cs: Modified argument names to match MS.
5058         * CurrencyManager.cs: Modified argument names to match MS.
5059         * Application.cs: Modified argument names to match MS.
5060         * ContextMenuStrip.cs: Modified argument names to match MS.
5061         * ContextMenu.cs: Modified argument names to match MS.
5062         * BindingManagerBase.cs: Modified argument names to match MS.
5063         * WindowsFormsSection.cs: Fixed line ending.    
5064
5065 2008-01-27  Andreia Gaita <avidigal@novell.com>
5066
5067         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
5068         detecting that the dropdown toolwindow is hidden. EndLoop outside the
5069         while.
5070
5071 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
5072
5073         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
5074         MS. Code formatting.
5075
5076 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5077
5078         * Binding.cs: Don't avoid the Format event if the control 
5079         property type is object. Also, if the value retrieved by 
5080         the data source is null _and_ the control proeprty type 
5081         is object, return Convert.DBNull (match .Net).
5082         Fixes part of #324286.
5083
5084 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5085
5086         * ListControl.cs: Since we are getting two BinginContextChanged events
5087         for the same binding context instance (when the control is added to
5088         form, and when the form is actually shown), take it into account only the
5089         first time for a given binding context instance.
5090         Fixes part of #324286.
5091
5092 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
5093
5094          * PropertryGridView.cs: Ops.
5095
5096 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
5097
5098          * PropertyGridView.cs: Close dropdown form if the owner form is
5099          moved or minimized.
5100          [Fixes bug #322446]
5101
5102 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
5103
5104          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
5105          RootGridEntry.cs, CategoryGridEntry.cs:
5106          PropertyGrid rewrite.
5107          - Rewrite all of the control logic in PropertyGrid.
5108          - Rewrite all of the ComponentModel logic in GridEntry.
5109          - Rewrite all UI work in PropertyGridView.
5110          - Many bugfixes, etc.
5111
5112 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
5113
5114         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
5115         when all contained controls are autosize or dock-fill.  Also take into
5116         account when the total percentage of column/row sizes is not 100%.
5117         [Fixes bug #354672]
5118
5119 2008-01-24  Andreia Gaita <avidigal@novell.com>
5120
5121         * HtmlDocument.cs:
5122         - Save a reference to the IDocument in the instance and
5123           use that one instead of going to WebHost.Document; the document that the 
5124           WebHost returns might not be the right one (in case of frames).
5125         - Use the hashcode returned from the IDocument interface.
5126         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
5127           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
5128           LinkColor, Url, VisitedColor, Window
5129
5130         * HtmlElement.cs: 
5131         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
5132           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
5133           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
5134           SetAttribute, Equals, equality operators.
5135         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
5136           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
5137         
5138         * HtmlElementCollection.cs: Change implementation to use a generic
5139         collection. Implemented Enumerator and CopyTo
5140
5141         * HtmlHistory.cs: Add constructor, no implementation yet.
5142
5143         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
5144         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
5145         Equals, equality operators.
5146
5147         * HtmlWindowCollection.cs: Implemented. 
5148
5149         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
5150         has been deprecated).
5151
5152         * WebBrowserBase.cs: Use Completed event to track document loading
5153         (Navigated has been deprecated)
5154
5155 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
5156
5157         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
5158         level MenuItems do not respect tabs.
5159         [Fixes bug #355196]
5160
5161 2008-01-23  Geoff Norton  <gnorton@novell.com>
5162
5163         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
5164         FormWindowState.  Finished fixing Fullscreen windows on Carbon
5165
5166 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5167
5168         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
5169         be used as grab_control. Also save status of capture before show ContextMenu
5170         and restore it after close.
5171
5172 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5173
5174         * Control.cs: Internal FindRootParent method added to return high control
5175         in parent tree.
5176
5177 2008-01-23  Geoff Norton  <gnorton@novell.com>
5178
5179         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
5180         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
5181         it work again.  Handle HITTEST events.
5182
5183 2008-01-23  Geoff Norton  <gnorton@novell.com>
5184
5185         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
5186         a crash in certain cases.  Support for fullscreen windows in certain cases.
5187
5188 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
5189
5190         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
5191         [Fixes bug #355703]
5192
5193 2008-01-23  Geoff Norton  <gnorton@novell.com>
5194         
5195         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
5196
5197 2008-01-23  Geoff Norton  <gnorton@novell.com>
5198
5199         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
5200
5201 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5202
5203         * SplitContainer.cs: Remove unused declarations.
5204         * Binding.cs: Remove unused declarations.
5205
5206 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5207
5208         * Form.cs: Remove unused declaration of 'active' in Activate method.
5209         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
5210         prevent compilation warnings.
5211         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
5212         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
5213         * Bindings.cs: Remove unused formatting_enabled declaration.
5214         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
5215         warnings.
5216         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
5217         warnings.
5218         * PropertyGridView.cs: Remove usused 'ex' declaration.
5219         * DataGridView.cs: Remove unused declarations.
5220
5221 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5222
5223         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
5224         
5225         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
5226         to Control class, it makes possible to grab menu to controls that can't 
5227         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
5228         WmMouseMove removed since it was used only to track menu events.
5229
5230         * Control.cs:
5231         - Moved all active_tracker stuff from Form.
5232         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
5233         can call this method instead of reimplement all necessary code handle for
5234         menu tracker.
5235         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
5236         and WmMouseMove).
5237         
5238         * MenuAPI.cs: 
5239         - Remove special handle to ToolStripOverflow, now we can grab menu to 
5240         controls that can't reach Form using parent tree.
5241         - Change type of grab_control from Form to Control.
5242
5243 2008-01-22  Geoff Norton  <gnorton@novell.com>
5244
5245         * TextBoxBase.cs: Split up the sizing of controls and placing of 
5246         controls.  Fixes a bug where scrollbars in Reflector could be sized
5247         wrong and have non-working thumbers.
5248
5249 2008-01-23  Geoff Norton  <gnorton@novell.com>
5250
5251         * XplatUI.cs: Refactor environment variables to default support to the
5252         Carbon driver on the Mac.
5253
5254 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
5255
5256         * Label.cs: Uses new LabelPainter for drawing operations.
5257         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
5258         * Theme.cs: DrawLabel and LabelDefaultSize removed.
5259
5260 2008-01-22  Geoff Norton  <gnorton@novell.com>
5261
5262         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
5263
5264 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5265
5266         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
5267         through the normal flat button code and don't draw the checkbox glyph.
5268         * Theme.cs: Button->ButtonBase signature change.
5269         [Fixes bug #324755]
5270
5271 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
5272
5273         * LinkLabel.cs: Uses new class LinkLabelPainter.
5274
5275 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
5276
5277         * MessageBox.cs: Adjust right border space, we don't need to add 
5278         "space_border*2" two times.
5279
5280 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5281
5282         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
5283         becomes a wrapper around Padding.
5284         [Fixes a part of bug #354676]
5285
5286 2008-01-22 Geoff Norton  <gnorton@novell.com>
5287
5288         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
5289         acquired.  Also ensure the buffer is large enough to grab the header
5290         we need on linux boxes.
5291
5292 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
5293
5294         * Control.cs: Implement a custom enumerator so people can delete
5295         from the Controls collection while in a foreach.
5296         [Fixes bug #355074]
5297
5298 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5299
5300          * PropertyGridView.cs: Fix focusing behavior:
5301          - Tab should focus the grid text box.
5302          - Clicking on the labels shouldn't focus the grid text box.
5303
5304 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5305
5306          * PropertyGridView.cs: IsValueTypeGridItem should return true 
5307          for Arrays as well.
5308
5309 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
5310
5311          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
5312           - Renamed GridEntry.SelectedObjects to TargetObjects to better
5313           reflect the property name role.
5314           - PropertyGrid.GetTarget is not required as the target is known
5315           (TargetObjects).
5316           - Setting values will handle value types as a special case now and
5317           populate them up in the chain.
5318           [Fixes #354990]
5319
5320 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
5321
5322         * Hwnd.cs: Create a public property for the Graphics we keep around.
5323
5324 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
5325
5326          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
5327          when the current object selection changes. 
5328          Fixes failing test SelectedObject_Null2.B5.
5329
5330 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
5331
5332          * PropertyGrid.cs: Process Browsable properties with 
5333          DesignerSerializationVisibilityAttribute.Content as being expandable.
5334          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
5335          will not be expandable. We should be nested components-friendly now.
5336
5337 2008-01-21  Andreia Gaita <avidigal@novell.com>
5338
5339         * WebBrowserBase.cs: Check if control was loaded properly, 
5340         don't bind if it wasn't.
5341
5342         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
5343         GetElementFromPoint, equality operators, OpenNew, Write.
5344         Remove extra set_Body
5345
5346 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
5347
5348         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
5349         that makes our AutoScale* stuff more tolerant to different orders
5350         of being set.  [Fixes bug #354669]
5351
5352 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
5353
5354          * PropertyGridView.cs, PropertyGridTextBox.cs: 
5355          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
5356          [Fixes #339005 and #348209]
5357
5358 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
5359
5360          * PropertyGridView.cs: Hide the grid text box before adjusting it
5361          for the newly selected GridItem.
5362          [Fixes #338999]
5363
5364 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
5365
5366         * Form.cs: Give MDI children the opportunity to cancel the parent form
5367         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
5368         properly for both the parent and child.
5369         * Application.cs: Signature of internal method changed, pass the previous
5370         default of false.
5371         [Fixes bug #354286]
5372
5373 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
5374
5375         * PropertyGridView.cs: Set the property value only if it has changed.
5376         [Fixes bug #338997]
5377
5378 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
5379
5380         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
5381         If the mouse hasn't actually moved, ignore these messages so the currently
5382         highlighted menuitem isn't reset to the one under the mouse.
5383         [Fixes bug #333668]
5384
5385 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
5386
5387         * PropertyGridView.cs: When the property changes Invalidate the GridItem
5388         in order for the properties with UITypeEditor.GetPaintValueSupported == true
5389         to reflect the change visually.
5390         [Fixes bug #338998]
5391
5392 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
5393
5394         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
5395         to 2.0 button drawing.
5396         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
5397         the button text is tall enough for one line.  LineLimit says it will
5398         always draw at least one line, but it is a lie.
5399         [Fixes bug #324941]
5400
5401 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
5402
5403         * XplatUIStructs.cs, X11Keyboard.cs :
5404           added some more VK_* keys to be handled.
5405
5406 2008-01-16  Andreia Gaita <avidigal@novell.com>
5407
5408         * Control.cs: Check if there is a container before setting or getting
5409         the validation flag.
5410
5411 2008-01-16  Andreia Gaita <avidigal@novell.com>
5412
5413         * ContainerControl.cs: Add flag to track if a control cancels validation, 
5414         so we don't fire click events.
5415
5416         * Control.cs: 
5417         - (HandleClick) Check if validation was cancelled before  firing the click
5418         events (doubleclicks are fired, but not clicks)
5419         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
5420         ContainerControl.set_ActiveControl, but in the case of non-selectable
5421         controls, like a Label, activecontrol is not set. 
5422
5423         * ButtonBase.cs: Only fire clicks if validation passes.
5424         
5425         Fixes #353310
5426
5427 2008-01-16  Geoff Norton  <gnorton@novell.com>
5428
5429         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
5430         trunk
5431
5432 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
5433
5434         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
5435         SelectedPath, just display the default dialog instead of crashing.
5436         [Fixes bug #348989]
5437
5438 2008-01-16  Geoff Norton  <gnorton@novell.com>
5439
5440         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
5441         AddExpose instead of trusting apples compositing manager which doesn't
5442         work for our use case.  Remove some dead code causing warnings and 
5443         redecorate some other code to prevent warnings.
5444
5445 2008-01-16  Geoff Norton  <gnorton@novell.com>
5446
5447         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
5448         carbon signals us to redraw.  Fixes another portion of the flickering bug
5449
5450 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5451
5452         * Form.cs: Prevent the MdiParent property to be set when value is the same
5453         as value already set. Fixes bug #328019.
5454
5455 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5456
5457         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
5458         it prevents NRE when closing mdi child windows. Fixes bug #325211.
5459
5460 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5461
5462         * InternalWindowManager.cs: Invalidade close button after mouse up when 
5463         mdi form is prevented to close.
5464
5465 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
5466
5467         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
5468         thanks to Andy Hume. Fixes bug #325433.
5469
5470 2008-01-16  Andreia Gaita <avidigal@novell.com>
5471
5472         * LinkLabel.cs: Reset focused_index when resellecting the control.
5473         Fixes #323190
5474
5475 2008-01-15  Geoff Norton  <gnorton@novell.com>
5476
5477         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
5478         messages.
5479
5480 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
5481
5482         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
5483         of truncate.
5484
5485 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
5486
5487         * ContainerControl.cs: Setting AutoScaleMode to anything should set
5488         Form.AutoScale to false.
5489         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
5490         AutoScaleBaseSize should be changed on Font change unless it has been
5491         explicitly set.
5492         [Fixes bug #353827]
5493
5494 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
5495
5496         * MenuAPI.cs: On instance of MenuTracker check if source control is
5497         ToolStripOverflow and use properly method to find form.
5498         [Fixes bug #338511]
5499
5500 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
5501
5502         [Fixes bug #323241 Transparent toolbar support]
5503
5504         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
5505         is flat.
5506
5507         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
5508         defined in control style to mimic win32 behavior.
5509
5510         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
5511         it will be transparent.
5512
5513 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
5514
5515         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
5516         CreateParams for ToolBar controls.
5517
5518 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5519
5520         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
5521         FixedToolWindow, SizeableToolWindow, or None for border styles have
5522         different minimum sizes than regular forms.  Implemented to fix
5523         regression in PDN with toolbox being too wide.
5524
5525 2008-01-14  Andreia Gaita <avidigal@novell.com>
5526
5527         * HtmlElementCollection.cs: Implemented
5528
5529         * HtmlElement.cs: Implemented:
5530           - All
5531           - InnerHtml
5532           - InnerText
5533           - Id
5534           - Name
5535           - FirstChild
5536
5537         * HtmlDocument.cs: Implemented GetElementsByTagName.
5538
5539 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5540
5541         * Screen.cs: Stub BitsPerPixel to always return 32.
5542
5543 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5544
5545         * Form.cs: Implement RestoreBounds.
5546
5547 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
5548
5549         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
5550         Sebastien and his fabulous magical problem-finding machine:
5551         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
5552         respect the value set.
5553
5554 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
5555
5556         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
5557         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
5558
5559 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5560
5561         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
5562         messages (to match .Net), we need to remove the capture ourselves.
5563
5564 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
5565
5566         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
5567         will process the message and close our window.
5568         [Fixes bug #324328]
5569
5570 2008-01-10  Geoff Norton  <gnorton@novell.com>
5571
5572         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
5573         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
5574         window manager.
5575
5576 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
5577
5578         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
5579         failing test.
5580
5581 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
5582
5583         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
5584         Linux doesn't care, having a minimum matches MS and keeps the window
5585         from becoming too small to use window decorations.
5586         [Fixes bug #338996]
5587
5588 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
5589
5590         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
5591         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
5592         control.  [Fixes bug #325419]
5593
5594 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
5595
5596         * ComboBox.cs: Guard against an NRE if the user open a new form from a
5597         SelectedIndexChanged event.  This closes the combobox dropdown, and we
5598         were trying to dispose it.  [Fixes bug #352830]
5599
5600 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
5601
5602         * Control.cs, Form.cs: Implement the necessary semantics for
5603         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
5604         to determine if a focus rectangle should be drawn.
5605         * PropertyGrid.cs: Fix property visibility to match override.
5606         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
5607
5608 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
5609
5610         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
5611         [Fixes bug #323552]
5612
5613 2008-01-09  Geoff Norton  <gnorton@novell.com>
5614         
5615         * XplatUICarbon.cs: Scroll windows in the correct direction.
5616
5617 2008-01-09  Geoff Norton  <gnorton@novell.com>
5618
5619         * XplatUICarbon.cs: Track all created utility windows so we can hide them
5620         when the app is deactivated or spaces is enabled.
5621
5622 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5623
5624         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
5625         extra separation pixel for the label rect origin if SmallImageList is
5626         null, and thus we don't need that separation between icon and label
5627         rects.
5628         Patch by Ernesto Carrea.
5629         Fixes # 340195.
5630
5631 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
5632
5633         * StatusStrip.cs: Invalidate after completing a layout.  The base
5634         OnLayout does this, but we don't call the base.
5635         * ToolStripItem.cs: Revert the previous change to invalidate after
5636         the item moves.
5637         [Fixes bug #351341 better.]
5638
5639 2008-01-07  Geoff Norton  <gnorton@novell.com>
5640
5641         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
5642         not a notification to exit the application.  Listen for WM_QUIT
5643         instead.
5644
5645 2008-01-07  Andreia Gaita <avidigal@novell.com>
5646
5647         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
5648
5649 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
5650
5651         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
5652         so it can repaint at the correct location.
5653         [Fixes bug #351341]
5654
5655 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5656
5657         * ListControl.cs: SelectedValue should return a null value if
5658         SelectedIndex is -1. Also, when setting it, it should throw an
5659         ArgumentNullException if the value is null, as well as taking
5660         into account the String.Empty value, instead of ignoring it (we have
5661         tests for that now).
5662         Fixes part of #324286.
5663
5664 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
5665
5666         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
5667         SelectionStart is updated after pressing enter.  Fixes bug #351918.
5668
5669 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5670
5671         * TextControl.cs: Revert a piece r92316 that prevented the fix
5672         from working when there were multiple tags in the text box.
5673         Fixes bug #351881.
5674
5675 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5676
5677         * TextControl.cs: Apply patch from Luke Page that prevents an
5678         NRE when determining the beginning of a paragraph.
5679         Fixes bug #351886.
5680
5681 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5682
5683         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
5684         caret gets moved with clicking away from a selected block of
5685         text.  Fixes bug #351885.
5686
5687 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5688
5689         * TextControl.cs: Apply patch from Luke Page that takes line
5690         alignment into account for mouse selection, so that center and
5691         right aligned text can be selected.
5692         Fixes bug #351881.
5693
5694 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5695
5696         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
5697         issues after loading an RTF file by using the correct line feeds.
5698         Fixes bug #351841.
5699
5700 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
5701
5702         * TextControl.cs: When deleting multiple line selections, we need
5703         to invalidate every line beginning at the first line of the selection.
5704         Patch from Luke Page fixes bug #351791.
5705
5706 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5707
5708         * ListControl.cs: When getting a CurrencyManager.PositionChanged
5709         event, don't set SelectedIndex if the number of items is 1. This is
5710         because, for the first item, PositionChanged is fired _before_
5711         ItemChanged (the place where we actually populate the items), and
5712         leave us in a temporary invalid state (since items collection is
5713         empty).
5714         Fixes #349655.
5715
5716 2008-01-04  Geoff Norton  <gnorton@novell.com>
5717
5718         * XplatUICarbon.cs:  Create native toolwindows instead of
5719         the managed drawing ones.
5720
5721 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
5722
5723         * LineTag.cs: If the line doesn't have any characters, return
5724         0 for GetCharIndex.  Fixes an AOORE exception after certain
5725         caret movements.  Fixes bug #351683.  Patch by Luke Page.
5726
5727 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
5728
5729         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
5730         is hit when there is selected text, only the selected text gets
5731         deleted, not the character in front of the selection as well.
5732         Fixes bug #351578.
5733
5734 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5735
5736         * ComboBox.cs: When the values are displayed, calculate the
5737         ComboListBox scrollbar's LargeChange based on the visible area's
5738         height and  the actuall ItemHeight, instead of calculating it
5739         based on MaxDropItems value, since it's not used by our _current_ 
5740         2.0 profile.
5741         Fixes #332366.
5742
5743 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
5744
5745         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5746         Patch from Luke Page that fixes issues with font colors and styles
5747         not showing up in a readonly RichTextBox.  Fixes bug #324354.
5748
5749 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
5750
5751         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
5752         from Luke Page.  This one fixes bug #349926.
5753
5754 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5755
5756         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
5757         an item in the IBindingList source changes with
5758         ListChangedType.ItemAdded. Ignore for now firing the event for other
5759         changes, since we want to have tests for those cases as well.
5760
5761 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
5762
5763         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
5764         created.
5765
5766 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
5767
5768         * TextBoxTextRenderer.cs: Implement a cache for measuring each
5769         character.  This is effective because the typical usage of a
5770         TextBox is with a limited amount of fonts and characters, and
5771         the current implementation of TextBox measures everything one
5772         character at a time.  Another second or two speedup for bug #347238.
5773
5774 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
5775
5776         * Control.cs: Rewrite the Font getter to only query the parent's
5777         Font property once instead of twice.  Since this operation is
5778         recursive, the queries were growing exponentially as the control
5779         tree got deeper.  Another second or two speedup for bug #347238.
5780
5781 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
5782
5783         * Control.cs: Avoid setting a parent (and more importantly, updating
5784         the zorder of all its children) if the parent is already correct in
5785         WmShowWindow.  Decreases the startup time of the test case on bug
5786         #347238 from 35 seconds to 11 seconds.
5787
5788 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5789
5790         * X11Dnd.cs: When the dnd operation has started and we are 
5791         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
5792         This is done to match .Net, which doesn't send those messages after
5793         dnd operation was completed/cancelled.
5794         Fixes #349922.
5795
5796 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
5797
5798         * ToolStrip.cs: Previous change should be != null, not == null.
5799         Thanks Gert!
5800
5801 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
5802
5803         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
5804         user may have moved the mouse off the current item during the event.
5805
5806 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5807
5808         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
5809         calling GetItemAt for every MouseMove event by also taking into
5810         account whether any mouse button is pressed (probably dragging); 
5811         if so, we can call GetItemAt, and if not, try to not call it 
5812         (GetItemAt can be quite expensive when used with a large number of items).
5813
5814 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5815
5816         * ListView.cs: Implement -finally- support for dnd, by calling
5817         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
5818         authors list ;-).
5819         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
5820         simple calculation of distances for all the items in the owner
5821         listview.
5822
5823 2007-12-21  Geoff Norton  <gnorton@novell.com>
5824
5825         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
5826         for windows that are originally created as invisible.  Fixes missing
5827         main window in paint-mono.
5828
5829 2007-12-21  Geoff Norton  <gnorton@novell.com>
5830
5831         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
5832         subclass handler for com.novell.mwfview subclassing HIView.  Implement
5833         Pasteboard and Dnd methods.
5834
5835 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5836
5837         * ListBox.cs: When we got focus, give focus to first item if there
5838         wasn't any pervious focused item. Also update navigation to depend on
5839         SelectedIndex rather than FocusedItem, just as .Net does.
5840         Fixes #349174.
5841
5842 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5843
5844         * ListBox.cs: Both FindString and FindStringExact methods must do an
5845         case insensitive search, should allow the last valid index to be
5846         passed in the overload taking an initial index, and should also
5847         continue searching from the top back to the specified index when it
5848         reaches the bottom.
5849
5850 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
5851
5852         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
5853         redraw issue, and allows RichTextBox to draw colored text even while
5854         disabled or readonly.
5855
5856 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
5857
5858         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
5859         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
5860         and doesn't grey text in a disabled RichTextBox.
5861
5862 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
5863
5864         * RichTextBox.cs: Apply patch from Luke Page that adds better support
5865         for many RTF commands: quad alignment, separate formatting for blocks
5866         inside groups, and ParDef support.  Makes the test case from bug #324589
5867         look much better.
5868
5869 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
5870
5871         * LineTag.cs: Fix an error in the new Draw method that caused
5872         a crash when rendering the document on bug #324589.
5873
5874 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
5875
5876         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
5877         TextControl.cs: Apply patch from Luke Page that adds support
5878         for URL links in RichTextBox.
5879         [Fixes enhancement #342516]
5880
5881 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
5882
5883         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
5884         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
5885
5886 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5887
5888         * ListBox.cs: When a key gets pressed, try to find a string
5889         if the key is a character or a digit.
5890         Fixes #343971.
5891
5892 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
5893
5894         * TableLayoutPanel.cs: Remove some unused variables.
5895
5896 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
5897
5898         * DateTimePicker.cs: Commit patch from Luke Page that ensures
5899         we don't end up at an invalid date when we click the up/down
5900         spinner to change the month or year.  Fixes bug #348682.
5901
5902 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
5903
5904         * Application.cs: Calling Exit in 2.0 should chain to the
5905         Exit (CancelEventArgs) version so it can be cancelled.
5906         * Form.cs: Create a flag to allow raising the Closing
5907         events to be skipped.  We raise them once in Application.Exit
5908         and don't want to raise them again when the Form is actually
5909         closed.  [Fixes bug #349073]
5910
5911 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
5912
5913         * ToolStripDropDown.cs: Guard against an NRE when there
5914         hasn't been a mainform set in the application context.
5915         [Fixes bug #349108]
5916
5917 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5918
5919         * ListBox.cs: When SetBoundsCore gets called, besides
5920         calling UpdateScrollBars, update the value of
5921         last_visible_index, since we could need to show more items
5922         than before, and we need to let the paint routines know that.
5923         Fixes #344445.
5924
5925 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5926
5927         * ListView.cs: Add DesignerSerializationVisibility attribute to
5928         InsertionMark property.
5929         * ListViewItem.cs: Add same attribute to Position property.
5930
5931 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5932
5933         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
5934         is 2.0 only.
5935
5936 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
5937
5938         * ThemeWin32Classic.cs: Don't draw the background on a
5939         flat button if there is a background image.
5940         [Fixes bug #348649]
5941
5942 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5943
5944         * ListBox.cs: If we remove the item currently selected,
5945         remove it not only from SelectedItems, but also
5946         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
5947         the items count decreased and focused_item has bigger value than that.
5948
5949 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
5950
5951         * Control.cs: Perform our layout after we resize ourselves
5952         if we had to adjust our AutoSize.  Missed commit for bug
5953         #346246.
5954
5955 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
5956
5957         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
5958         we can provide an implementation of AutoSize.
5959         [Fixes bug #346246]
5960
5961 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5962
5963         * ListBox.cs: Add the internal overload Sort (bool paint),
5964         to indicate whether we actually need a paint or we will
5965         call Refresh ourselves. This way we don't request a paint
5966         _before_ having an updated and valid layout.
5967         Fixes #347233.
5968
5969 2007-12-12  Andreia Gaita <avidigal@novell.com>
5970
5971         * XPlatUIX11.cs: Send paint messages when updating a systray icon
5972         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
5973         properly invalidated. 
5974         Fixes #324237
5975
5976 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5977
5978         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
5979         don't simply assign it to our internal group field, but instead 
5980         use our Group property, which should do all the neccessary work
5981         required to support groups. Fixes an issue reported to me (mail) by a 
5982         guy using this new feature.
5983
5984 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
5985
5986         * Control.cs: Use Scale instead of ScaleControl to ensure the
5987         whole hierarchy gets scaled.
5988         [Fixes bug #347282]
5989
5990 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
5991
5992         * DateTimePicker.cs: Don't set the internal MonthCalendar's
5993         Parent property.  Doing this causes the control to be hosted by
5994         the Form instead of being a popup window.
5995         [Fixes bug #347665]
5996
5997 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
5998
5999         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
6000         at an index higher than Count, just use Add instead of Insert.
6001         [Fixes bug #347669]
6002
6003 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
6004
6005         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
6006         DrawPictureBox, this is handled by Control.PaintBackground.
6007         [Fixes bug #347276]
6008
6009 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
6010
6011         * MenuAPI.cs: When process menu keys return true by default only if menu is
6012         active. Fixes bug #342892.
6013
6014 2007-12-09  Andreia Gaita <avidigal@novell.com>
6015
6016         * Control.cs: check if windows are actually mapped before
6017         trying to zorder. Fixes #342509, #346955
6018
6019 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6020
6021         * ListView.cs:
6022         * ListViewInsertionMark.cs:
6023         * ThemeWin32Classic.cs: Implement the drawing side of the
6024         new 2.0 ListView.InsertionMark property.
6025
6026 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
6027
6028         * CurrencyManager.cs: Silence some debug spew.
6029
6030 2007-12-07  Geoff Norton  <gnorton@novell.com>
6031         
6032         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
6033         masks for our children as well as siblings to avoid having to query
6034         Quartz for this information.
6035         * XplatUICarbon.cs: Implement a delegate based system to pass
6036         information to System.Drawing.  Implement Async methods.  Remove
6037         the hack for the resize thumb and imlpement a transparent Grow Box.
6038         Rework the messaging system to proplery create window's and messages,
6039         fixes TabControl.
6040
6041 2007-12-06  Andreia Gaita <avidigal@novell.com>
6042
6043         * X11Keyboard.cs: Use Xutf8LookupString to support international 
6044         characters under alternate codepages. Patch from #340878
6045
6046 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6047
6048         * ListView.cs: When doing layout computations, set position in the
6049         ListView instances (we cache the position just as .Net does).
6050         * ListViewItem.cs: New internal setter method for Position. Also set
6051         position field as also available in 1.1, since we are going to use it
6052         now in the common case.
6053
6054 2007-12-06  Andreia Gaita <avidigal@novell.com>
6055
6056         * Control.cs: When removing controls, get the actual container
6057         to notify about active control changes. Fixes 341314.
6058
6059 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6060
6061         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
6062
6063 2007-12-05  Andreia Gaita <avidigal@novell.com>
6064
6065         * Control.cs: When updating the zorder, ignore windows that are not
6066         mapped. Fixes #342509
6067
6068 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6069
6070         * ListViewItem.cs: Actually implement serialization on this class.
6071
6072 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
6073
6074         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
6075         LinkCollection. Spaces to tabs, and removed extra tabs.
6076
6077 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6078
6079         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
6080           tests to fail (hopefully).
6081
6082 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6083
6084         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
6085         the image margin so custom renderers can correctly place it.
6086
6087 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6088
6089         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
6090         so custom renderers can correctly place it.
6091
6092 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
6093
6094         * Application.cs: Let WM_CHAR messages flow through to controls
6095         hosted in Strips.  [Fixes bug #343972]
6096
6097 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
6098
6099         * ToolStripManager.cs: Guard against an NRE I ran into.
6100
6101 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
6102
6103         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
6104         a Link is manually added to the Links collection, we need to set
6105         its owner, so it can invalidate properly.
6106         [Fixes bug #344012]
6107
6108 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6109
6110         * ListView.cs: When changing ListViewItem.Position (which calls
6111         ListView.ChangeItemLocation), invalidate not only the area
6112         corresponding to the main item, but also to the area occupied
6113         by the items being moved.
6114
6115 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6116
6117         * ListView.cs: When changing the position of a given item,
6118         don't use item bounds, but item areas (which includes the item spacing
6119         between them). Also, use first/last position if the requested
6120         position is outside bounds (as .Net does). Invalidate the previous and
6121         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
6122         in a specific position, instead of directly accessing Items collection
6123         (this is done to get the right item - remember an Item can have a
6124         different position in the grid than in the Items collection).
6125
6126 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6127
6128         * MessageBox.cs: Calculate text area instead of just top left, this rect 
6129         area will be used in DrawString. Fixes bug #343364.
6130
6131 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6132
6133         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
6134         screen width. Partially fixes bug #343364.
6135
6136 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
6137
6138         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
6139         code inside recalculate, it makes code more simple.
6140
6141 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
6142
6143         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
6144         between update or add icon. Fixes bug #324344.
6145
6146 2007-11-21  Andreia Gaita <avidigal@novell.com>
6147
6148         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
6149         window manager, since that stretches the drawing area to include
6150         the window decorations, and they get hidden. Reverts r84444 and fixes
6151         #335849 and #342790 (mdi and pdn3 regression)
6152
6153 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6154
6155         * ListView.cs: When setting focused item, try to give focus to the
6156         previous one _only_ if the previous one remains valid. 
6157         Fixes #342504.
6158
6159 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
6160
6161         * Application.cs: Revert r89650, as it broke a common case to fix
6162         an obscure case.  Fixes bug #342606.
6163
6164 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
6165
6166         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
6167
6168 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
6169
6170         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
6171         alignment. [Fixes #324228]
6172
6173 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
6174
6175         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
6176         [Fixes bug #342123]
6177
6178 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
6179
6180         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
6181         it prevent problems when empty captions. [Fixes #342141]
6182
6183 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
6184
6185         * Label.cs: Use Size instead of None.  Fixes bug #342077.
6186
6187 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6188
6189         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
6190
6191 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
6192
6193         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
6194         but there isn't a MdiContainer.
6195         [Fixes bug #342358]
6196
6197 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
6198
6199         * TextControl.cs: Don't recalculate document if the recalc_start and
6200         recalc_end hasn't changed.
6201         [Fixes bug #342505]
6202
6203 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
6204
6205         * DataGridViewTextBoxCell.cs: Removed CWL.
6206
6207 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6208
6209         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
6210
6211 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
6212
6213         * TextControl.cs: Missed some code for bug 341534 to trigger a
6214         recalculation when the font changes.
6215
6216 2007-11-16  Andreia Gaita <avidigal@novell.com>
6217
6218         * Control.cs: When updating the zorder, check if the child to update is
6219         the same control that is set to always be on top (i.e., scrollbars), and 
6220         just put it on top directly. Fixes BadMatch error on pdn3
6221
6222 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6223
6224         * ListView.cs: Throw the needed exceptions for FindNearestItem.
6225
6226 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
6227
6228         * Control.cs: Don't perform a new layout when a label changes its text,
6229         cause label handles its own autosizing.
6230         [Fixes bug #342077]
6231
6232 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6233
6234         * ListView.cs: Implement 2.0 FindNearestItem methods.
6235
6236 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
6237
6238         * ToolStripPanel.cs: Make Join at least add the control to the panel,
6239         even if the rest of what Join does isn't supported.  Add some more
6240         support for vertical toolbars.
6241         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
6242         [Fixes the application breaking parts of bug #341998]
6243
6244 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
6245
6246         * ToolStripItem.cs: When determining if we have a check/image margin,
6247         we need to look at ShowCheckMargin as well as ShowImageMargin.
6248
6249 2007-11-15  Geoff Norton  <gnorton@novell.com>
6250
6251         * XplatUIOSX.cs: Rename to...
6252         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
6253         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
6254
6255 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
6256
6257         * KeysConverter.cs: The default values should be an array of Keys, not
6258         strings.  Also, the array has more values for 2.0.
6259         [Fixes bug #341851]
6260
6261 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6262
6263         * Application.cs: Change ExecutablePath to use 
6264         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
6265         [Fixes bug #323552]
6266
6267 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6268
6269         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
6270         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
6271         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
6272         be ignored.  Create a new GetLineEnding that can specify which types of
6273         line endings to look for.  On Insert, only create new lines for \n and \r\n.
6274         [Fixes bug #324274]
6275
6276 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
6277
6278         * TextBoxBase.cs: As we loop through each line changing the font, tell
6279         the document that the line needs to be recalculated.  Fixes bug #341534.
6280
6281 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
6282         [Another round of refactoring]
6283         * Line.cs: Add DeleteCharacters.
6284         * LineTag.cs: Add Delete.
6285         * TextBoxBase.cs: Update to use new methods.
6286         * TextControl.cs: Refactor the Delete* methods.
6287
6288 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
6289
6290         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
6291         the patch. [Fixes #324856]
6292
6293 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6294
6295         * ListView.cs:
6296         * ListViewItem.cs: Add an initial implementation of
6297         2.0 ListViewItem.Position getter.
6298
6299 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6300
6301         * ListView.cs: Add a reordered_items_indices array, to allow us
6302         to have a different sorting than that of Items (the sorting in Items
6303         could not match the actual sorting in screen). This is needed to
6304         implement a pair of 2.0 features.
6305         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
6306         actual position in the ListView grid, since it could have a position
6307         different than its Index (position in ListViewItemCollection). 
6308
6309 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
6310
6311         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
6312         not draw partial lines.
6313         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
6314         LineLimit flag from the base is preserved.
6315         Fixes the windows part of bug #338965.
6316
6317 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
6318
6319         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
6320         so that it can be canceled in KeyPress.
6321         Fixes bug #340078.
6322
6323 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6324
6325         * ListView.cs: In ItemControl, reset mouse-handling related
6326         fields even if we dont' have items (we still should reset them when
6327         we had items but then called Items.Clear). Partially based in a patch
6328         by George Giolfan.
6329         Fixes #338399.
6330
6331 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
6332
6333         * Application.cs: In ProductVersion first try AssemblyFileVersion
6334         before falling back to assembly version. Fixes bug #339787.
6335
6336 2007-11-08  Andreia Gaita <avidigal@novell.com>
6337
6338         * HtmlElement.cs: Implement InnerText setter.
6339         * WebBrowserBase.cs: Implement Navigated event support.
6340         Add flag to track when the browser "document" is ready to be retrieved.
6341         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
6342         Make sure browser document is ready before retrieving it.
6343         Clean up cached objects (document) when moving to a new page through
6344         any of the navigation methods.
6345         Use the new Mono.WebBrowser.INavigation interface to control navigation.
6346         Implement OnNavigated event.
6347
6348 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
6349
6350         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
6351         DrawLinkLabel, this is handled by OnPaintBackground.
6352         Fixes bug #339565, part II.
6353
6354 2007-11-07  Andreia Gaita <avidigal@novell.com>
6355
6356         * Control.cs: Revert r88915. Selecting text on a textbox depends on
6357         getting a Select call on click, so this call needs to be here for now.
6358         Unfixes #325809
6359
6360 2007-11-07  Geoff Norton  <gnorton@novell.com>
6361
6362         * OSXStructs.cs: Add the kEventClassApplication constants.
6363         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
6364         application is deactivated otherwise Menu overlays linger on top of
6365         other application windows.
6366
6367 2007-11-07  Geoff Norton  <gnorton@novell.com>
6368
6369         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
6370         dont support cursors yet anyways.  This allows Reflector to run.
6371
6372 2007-11-07  Geoff Norton  <gnorton@novell.com>
6373
6374         * XplatUIOSX.cs: Implement DragSize.
6375
6376 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6377
6378         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
6379         ItemControl, request the focus, as .Net does. This is needed after 
6380         Control does not request focus anymore when it receives a
6381         WM_LBUTTONDOWN.
6382
6383 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
6384
6385         * Label.cs: Make DrawImage internal so it can be called from Theme code.
6386         Remove the DrawImage call from OnPaint.
6387         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
6388         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
6389         but before we draw the text for DrawLabel and DrawLinkLabel.
6390         Fixes bug #339565.
6391
6392 2007-11-05  Andreia Gaita <avidigal@novell.com>
6393
6394         * Control.cs: Remove select call on click. Fixes #325809
6395
6396 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6397
6398         * ListViewItem.cs: Add 2.0 Position property getter.
6399
6400 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6401
6402         * ListView.cs: Add 2.0 BackgroundImageTiled property.
6403         Also, to make it work properly, change item's BackColor and
6404         BackgroundImageLayout as needed.
6405         * ThemeWin32Classic.cs: Don't fill any background rectangle 
6406         in ListView.ItemControl when drawing items; just let the Control
6407         base implementation fill it.
6408
6409 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6410
6411         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
6412         as well as adding a custom 'dummy' Converter, as .net does.
6413
6414 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6415
6416         * PropertyGridView.cs: When clicking drop-down button,
6417         select an index in the listbox only if our standard values collection 
6418         has one or more items.
6419
6420 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6421
6422         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
6423         property.
6424
6425 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6426
6427         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
6428         the value is not changed. This ensure a pushed button remains in that
6429         state when clicked again. When switching the value of PropertySort
6430         between Categorized and CategorizedAlphabetical, do not update the
6431         grid items and do not fire a PropertyChangedEvent. When clicking the
6432         sorting buttons, do not modify the PropertySort value when switching
6433         between Categorized and CategorizedAlphabetical but only update the
6434         button state.
6435
6436 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6437
6438         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
6439         formatting.
6440         * PropertyGrid.cs: Also put Categorized button in pushed state when
6441         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
6442         for help description label.
6443
6444 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6445
6446         * ListView.cs: When calculating the biggest item for a given column,
6447         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
6448         the item's width.
6449
6450 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
6451
6452         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
6453         value for PropertySort on 1.0 profile. PropertySortChanged event
6454         should only be fired on 2.0 profile. Fixed NullReferenceException
6455         in UpdateSortLayout when PropertyGrid contains no items.
6456
6457 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
6458
6459         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
6460         [Fixes bug #338554]
6461
6462 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6463
6464         * ListViewItem.cs: Implement 2.0 IndentCount property.
6465
6466 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6467
6468         * X11Dnd.cs: When sending status in a dnd operation, compare current
6469         effect with the 'allowed' field instead of 'drag_data.Allowed', since
6470         the later is only created when a Winforms application is both the
6471         source and the target, but not when we are the target only.
6472         Fixes part of #324251.
6473
6474 2007-11-01  Geoff Norton  <gnorton@novell.com>
6475
6476         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
6477         order of Z-Order.
6478         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
6479         children out of the drawing view on mac.
6480         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
6481         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
6482         
6483 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
6484
6485         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
6486         on the non-hosted-control part of it shouldn't do anything.
6487         Fixes part of bug #327498.
6488
6489 2007-11-01  Andreia Gaita <avidigal@novell.com>
6490
6491         * WebBrowserBase.cs: revert previous change, resize can be called anytime
6492
6493 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
6494
6495         * Application.cs: When a toolstrip has the keyboard input loop, let messages
6496         it does not use flow through to controls that are hosted in menus.
6497         Same with mouse clicks.
6498         * Form.cs: Don't close all menus on click if the click is on a
6499         control hosted in a menu.
6500         Fixes part of bug #327498, and part of bug #325969.
6501
6502 2007-10-31  Andreia Gaita <avidigal@novell.com>
6503
6504         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
6505
6506 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
6507
6508         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
6509         Addresses an issue raised in bug #336218.
6510
6511 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
6512
6513         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
6514         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
6515
6516 2007-10-30  Andreia Gaita <avidigal@novell.com>
6517
6518         * ContainerControl.cs: Check if the active control is a
6519         child of a removed control and update active_control accordingly.
6520         Fixes #329718
6521
6522 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6523
6524         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
6525         or the MaxDate.  Fixed bug #337693.
6526
6527 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6528
6529         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
6530         after calling SetWindowLong for a form, to force an immediate NC refresh.
6531         Fixes first part of bug #325150.
6532
6533 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6534
6535         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
6536         simple.  Fixes the last part of bug #322668.
6537
6538 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
6539
6540         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
6541         needs to be TopMost as well, or else the MessageBox is under the form.
6542         Patch by George fixes bug #325300.
6543
6544 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6545
6546         * X11Dnd.cs: When starting a new drag operation, reset the static
6547         'dropped' field to false (previously the implementation didn't reset
6548         it and got confused after the first drag).
6549         Fixes #325071.
6550
6551 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6552
6553         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
6554         items instead of re-creating them all. For this purpose we now cache
6555         both CategoryGridEntry items and the GridEntries for the main object's
6556         properties.
6557         * GridItem.cs: Make SetParent method abstract.
6558         * GridEntry.cs: Override the SetParent method (already there, but now
6559         we override it).
6560         Fixes #324866.
6561
6562 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6563
6564         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
6565         depending on its depth (as .Net does). Update the needed values in
6566         MouseDown handler. Also draw the plus/minus rect after the label,
6567         so we don't draw on top of it.
6568
6569 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
6570
6571         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
6572         processed by forms or controls when menu is active. [Fixes #333548]
6573
6574 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
6575
6576         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
6577         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
6578         focus on mouse over.
6579
6580 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
6581
6582         * TextControl.cs: Code cleaning, simplifying.
6583
6584 2007-10-24  Geoff Norton  <gnorton@novell.com>
6585
6586         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
6587         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
6588
6589 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
6590
6591         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
6592         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
6593
6594 2007-10-24  Andreia Gaita <avidigal@novell.com>
6595
6596         * SendKeys.cs: apply jpobst's patch to bug #332409
6597
6598 2007-10-23  Andreia Gaita <avidigal@novell.com>
6599
6600         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
6601         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
6602         for some reason
6603
6604 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6605
6606         * PropertyGridView.cs: If a property has an UIEditor available,
6607         make the drop-down/editor button available only if the property
6608         is _not_ read only.
6609
6610 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6611
6612         * PropertyGridView.cs: Don't make the grid item textbox 
6613         editable when a drop-down control is available, but 
6614         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
6615         true. The same bur the color of the grid item value's label.
6616
6617 2007-10-22  Geoff Norton  <gnorton@novell.com>
6618
6619         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
6620         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
6621         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
6622         driver.  Padd the bottom of all real windows so the resize thumb doesn't
6623         obscure scroll/status bars.
6624
6625 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
6626
6627         * WindowsFormsSection.cs: Implement.
6628
6629 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
6630
6631         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
6632         closed see #325434 patch.
6633
6634 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
6635
6636         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
6637         see #325434 patch.
6638
6639 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6640
6641         * PropertyGridView.cs: When showing the textbox for a grid item,
6642         have two local variables to store the read-only and non-editable
6643         status of a grid item (we were previously using just one variable
6644         to do this, when actually they are slightly different).
6645         Fixes part of #325023.
6646
6647 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6648
6649         * PropertyGridView.cs: When showing a drop-down list, try to get the
6650         values using TypeConverter.ConvertTo (to convert to a string). Fixes
6651         part of #325023.
6652
6653 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6654
6655         * PropertyGrid.cs: When updating a property and populating sub grid
6656         items, remove the previous ones, and invalidate the specific area.
6657         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
6658         area behind a grid item.
6659         * GridItemCollection.cs: Add an internal Clear method, to allow us to
6660         clean the items if needed (specially for controls implementing 
6661         ICustomTypeDescriptor and returning a variable number of properties).
6662         Fixes #324865.
6663
6664 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
6665
6666         * TextControl.cs: Clean up and document the Insert function.
6667
6668 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
6669
6670         * TextControl.cs: Make sure we know our start point for updating the view
6671         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
6672         update the view.
6673
6674 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
6675
6676         * ListView: Couple of corcompare fixes.
6677
6678 2007-10-17  Geoff Norton  <gnorton@novell.com>
6679
6680         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
6681         the title caption of real window.
6682
6683 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
6684
6685         * ErrorProvider.cs: Add the error provider's internal window to a 
6686         containercontrol when the parent changes.  [Fixes bug #329714]
6687
6688 2007-10-17  Geoff Norton  <gnorton@novell.com>
6689
6690         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
6691         When we make a new window; restore the old active window - fixes dialogs.
6692
6693 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6694
6695         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
6696         when modifying a property, and if found then invalidate as
6697         requested.
6698         Fixes part of #324865.
6699
6700 2007-10-17  Geoff Norton  <gnorton@novell.com>
6701
6702         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
6703         highly experimental.  Fixed coordinate translation.  Fixed window locations.
6704         Initial support for clipping. Implemented NC areas and menus.  Support for
6705         launching from command line from Will Johansson (wjohansson@atacomm.com).
6706         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
6707         wjohansson@atacomm.com)
6708         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
6709         Hwnds now track the existence of all of their children for Mac clipping.
6710     * XplatUI.cs: Re-enabled the native driver on the Mac.
6711
6712 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
6713
6714         * Line.cs: Move the InsertString function to here.
6715         * TextControl.cs: Cleanup some duplicate code, move some InsertString
6716         functionality to Line.
6717
6718 2007-10-17  Geoff Norton  <gnorton@novell.com>
6719
6720         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
6721
6722 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
6723
6724         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
6725         always setting value to true.
6726         * Form.cs: When changing AcceptButton, notify new and original button.
6727
6728 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
6729
6730         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
6731         a custom control that implements IButtonControl instead of an actual
6732         button.  [Fixes bug #334244]
6733
6734 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
6735
6736         * Form.cs: Change SelectActiveControl to internal, we need to call it in
6737         MdiWindowManager.
6738         
6739         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
6740         active control when activate a new mdi window.
6741         
6742         [Fixes bug #330495]
6743
6744 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
6745
6746         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
6747         is already added.
6748         [Fixes bug #333617]
6749
6750 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
6751
6752         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
6753         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
6754         so we always recalculate the whole document instead of just the new part.
6755         [Fixes bug #325082]
6756
6757 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
6758
6759         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
6760         when the mouse was to the left of the first character in the line.
6761
6762 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
6763
6764         * TextBox.cs, TextBoxBase.cs: When setting the document's password
6765         character, use the property instead of the variable so that the
6766         UseSystemPasswordChar property is taken into account.
6767         [Fixes bug #333748]
6768
6769 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6770
6771         * FolderBrowserDialog.cs: When a node is right clicked and the "New
6772         folder" contex menu appears, actually add the new folder to it, even
6773         if the node is not currently selected. Still use SelectedNode in case 
6774         there wasn't found a node under the pointer.
6775         Fixes #325452.
6776
6777 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6778
6779         * ListViewItem.cs: When retrieving the focused state, the index check
6780         should be done only when ListView is in virtualmode, as it is an
6781         expensive check for normal mode.
6782
6783 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6784
6785         * ListViewItem.cs: Make the focus state information be stored
6786         in the ListView, not in the items. This is done to match the MS
6787         behaviour for items that are not yet part of a ListView control;
6788         besides that, since just one item can be focused at the same time,
6789         we save a little space in our items.
6790         Fixes part of #331643.
6791
6792 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
6793
6794         * ComboBox.cs: When focus is lost, deselect the text. When setting
6795         text of control, select all text. Do not hide selection when control
6796         does not have focus. Fixes bug #333663.
6797
6798 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
6799
6800         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
6801         instead of ArgumentException when SelectionLength is set to negative
6802         value. Added same check to SelectionStart. Code formatting.
6803
6804 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
6805
6806         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
6807         or SelectionStart. Code formatting.
6808
6809 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6810
6811         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
6812         indicating that there was not a previous drag-and-drop operation going
6813         on.
6814         Fixes part of #325071.
6815
6816 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6817
6818         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
6819         AllowedEffect, don't let the drop operation happen. 
6820         Fixes #32580.
6821
6822 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
6823
6824         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
6825
6826 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
6827
6828         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
6829         is called.
6830
6831 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
6832
6833         * Line.cs: Add a method that finds the tag that contains an x-coord.
6834         * LineTag.cs: Add a method that finds the character at an x-coord using
6835         a binary search, the old way was a linear search.
6836         * TextControl.cs: Change FindCursor to use the above new methods.
6837
6838 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6839
6840         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
6841         value different than AllowedEffect). This should be possible to
6842         indicate that dragging is not possible in some control/area.
6843
6844 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
6845
6846         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
6847         descent internally when font changes instead of outside code being responsible
6848         for setting it.
6849         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
6850         instead of accessing internal variables.
6851
6852 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
6853
6854         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
6855         remove special treatment for ArrangeIcons since it is already arranged.
6856
6857 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
6858
6859         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
6860         the Win32 backend uses Color.
6861         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6862         Refactor to store a Color instead of a Brush for Color.
6863
6864 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
6865
6866         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
6867         away.  I didn't realize I needed this when I refactored these earlier.
6868
6869 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
6870
6871         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
6872         store a Color structure and use the ResPool for back color instead of
6873         holding onto brushes.
6874
6875 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
6876
6877         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
6878         [Fixes bug #325592]
6879
6880 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6881
6882         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
6883         to recalculate its size.  Fixes a part of bug #331052.
6884
6885 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6886
6887         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
6888         button.  Fixes a part of bug #331052.
6889
6890 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6891
6892         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
6893         the CreateParams.
6894         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
6895         decorations.
6896         [Fixes bug #330986]
6897
6898 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6899
6900         * TextBoxTextRenderer.cs: Don't make this a static class, as static
6901         doesn't exist in 1.1.  (Thanks jb!)
6902
6903 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
6906         class to allow us to use different backends on different platforms.
6907         Linux uses the current [Draw|Measure]String backend.  Windows uses
6908         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
6909         of GDI+.  This leads to better looking text and more accurate measurements
6910         on Windows, fixing many of the reported issues.
6911         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
6912
6913 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6914
6915         * FolderBrowserDialog.cs: When running on Windows,
6916         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
6917         since we must match both "C:" and "C:\" forms. A little hackish, but
6918         works.
6919         Fixes #325247.
6920
6921 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6922
6923         * ListView.cs: When calling EndEdit (after editing an item),
6924         create a new instance of LabelEditEventArgs to keep clean the fields
6925         in case we get a new call to BeginEdit; also do Application.DoEvents
6926         to have focus in synch. This is a fix similar to TreeView's #325244.
6927
6928 2007-10-07  Andreia Gaita <avidigal@novell.com>
6929
6930         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
6931         * WebBrowserBase.cs: Added dialog support, calling the
6932           WebBrowserDialogs classes for each specific dialog type.
6933
6934 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6935
6936         * ListView.cs: When the last item is focused and is removed,
6937         move the focus to the previous item (in Items order). This is what MS
6938         does.
6939         Fixes #330415.
6940
6941 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6942
6943         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
6944         instead of the opposite (RemoveAt call Remove). This is a better
6945         approach since we don't need to to a pair of traversals when using
6946         RemoveAt.
6947
6948 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6949
6950         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
6951         check that the node actually has nodes, and if not, move to the
6952         parent node instead. 
6953         Fixes #325265.
6954
6955 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6956
6957         * TreeView.cs: Move the previous change to the general case (to
6958         call Application.DoEvents in cases where the method was called by
6959         different places).
6960
6961 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6962
6963         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
6964         call Application.DoEvents. This is neccessary when we get a call to
6965         BeginEdit from an AfterLabelEdit handler, because the focus always
6966         goes to the TreeView, even if we try to give it to our
6967         LabelEditTextBox. The call do Application.DoEvents seems to
6968         synchronize the focus, basically.
6969         Fixes #325244.
6970
6971 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6972
6973         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
6974         should be false. This also removes some nasty recursive paths. Fixes
6975         part of #325244.
6976
6977 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
6978
6979         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
6980         state to normal. Also resize window when cascading. Fixes #325433. 
6981
6982 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
6983
6984         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
6985         DefaultForeColor, as drawing empty colored lines isn't very useful.
6986         [Fixes the not drawn lines part of bug #324358]
6987
6988 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
6989
6990         * TextControl.cs: Move Line and LineTag classes into separate files to
6991         make things easier to find.
6992         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
6993         * RichTextBox.cs: Capitalize LineTag.Length property access.
6994         - This is purely an organizational/formatting change, no logic changed. -
6995
6996 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6997
6998         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
6999         text is empty.
7000
7001 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7002
7003         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
7004         text is empty.
7005
7006 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7007
7008         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
7009         prevent calling of OnBackColorChanged. Fixes #325321.
7010
7011 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
7012
7013         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
7014         because control can be disabled because owner is disabled.
7015
7016 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
7017
7018         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
7019         string.Empty, test failed from previous change.
7020
7021 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
7022
7023         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
7024         is null, not String.Empty.  See bug #323038.
7025
7026 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
7027
7028         * TextControl.cs: Change the margins to match MS a little better.
7029         Still not perfect for X11 due to some DrawString differences, but
7030         is still an improvement over the old stuff.
7031         Partially fixes #324467.
7032
7033 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7034
7035         * FolderBrowserDialog.cs: When using MyComputer as 
7036         RootFolder, let absolute paths be considered as valid ones. Also, use
7037         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
7038         for Windows compatibility.
7039         Partially fixes #325247.
7040
7041 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7042
7043         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
7044         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
7045         method, since it causes the dialog to not select folders directly
7046         under the root path (when setting SelectedPath property).
7047
7048 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7049
7050         * TreeNode.cs: When calling Expand/Collapse and need to call 
7051         ExpandBelow/CollapseBelow respectively, take into account
7052         partially visible nodes (previously Expanding/Collapsing
7053         a partially visible node in the bottom was not updating its +- sign).
7054
7055 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7056
7057         * TreeView.cs: When calling Expand on a TreeNode, and we need to
7058         expand nodes below (ExpandBelow), scroll the entire Viewport
7059         area if the node is above it and not visible (instead of scrolling
7060         the area from node's Bottom, which applies only when the node is
7061         visible).
7062         Fixes #325266.
7063
7064 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7065
7066         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
7067         node in the bottom area (as .Net does). This is done to preserve the
7068         scroll position when ExpandAll is called before handle is created for
7069         the 1.1 profile (bottom area, as opposed to top area in 2.0).
7070         Fixes #324103.
7071
7072 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7073
7074         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
7075         bottom area if we are in fact not using the vertical scroll bar.
7076         Fixes #324824.
7077
7078 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
7079
7080         * Control.cs: Comment out a double buffering optimization that doesn't
7081         take into account invalidates created in OnPaint, causing the control
7082         to never be redrawn.  It would take quite a bit of work to work around
7083         this, but I left it commented with an explanation for later possible
7084         optimization.
7085         [Fixes bug #328681]
7086
7087 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
7088
7089         * Control.cs: Ask parent to perform a layout if control is AutoSize and
7090         the text changes.
7091         * RadioButton.cs: Implement GetPreferredSizeCore.
7092         [Fixes bug #328672]
7093
7094 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
7095
7096         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
7097         corcompare stuffs.
7098
7099 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
7100
7101         * Application.cs: Move the sync context stuff to Run instead of RunLoop
7102         so that it doesn't get uninstalled on modal forms.
7103         * Control.cs: Install a sync context when a control is created.
7104         * WindowsFormsSyncronizationContext.cs: Create a private static control
7105         to invoke on.  This is easier than trying to find a created control we
7106         can use.
7107         [Fixes bug #327608]
7108
7109 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
7110
7111         * Application.cs: Install a WindowsFormsSynchronizationContext in the
7112         run loop, and uninstall it when done.
7113         * WindowsFormsSynchronizationContext.cs: Implement.
7114         [Fixes the common case in bug #327608]
7115
7116 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
7117
7118         * DataGridViewCellCollection.cs: Added argument checks for indexers.
7119         Use case-insensitive lookup of column name in indexer. Code
7120         formatting.
7121
7122 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7123
7124         * TreeNode.cs: When collapsing or expanding a node, check whether its
7125         change will affect the visible area (we were previously doing a
7126         IsVisible check, but that check is not enough since children nodes
7127         could be still visible). Fixes part of #325266.
7128
7129 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
7130
7131         * TreeView.cs: Always select the first node when the TreeView gets
7132         focus if there is no currently selected node.
7133         [Fixes bug #324279]
7134
7135 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
7136
7137         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
7138         node being selected is null.
7139         [Patch from Yves Bastide fixes bug #326858]
7140
7141 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7142
7143         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
7144         whether all the parent nodes are expanded.
7145         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
7146         call RecalculateVisibleOrder if all previous nodes are expanded.
7147         Before that we were doing a IsVisible check, but sometimes the node
7148         is not in the visible area, but _should_already be ready, because of
7149         all previous nodes are expanded. Fixes #325259.
7150
7151 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7152
7153         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
7154         portion of the item is clicked.
7155
7156 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7157
7158         * TextControl.cs: Do not tell the system to move the cursor if the
7159         textbox isn't focused.  Fixes part of bug #322668.
7160
7161 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7162
7163         * ComboBox.cs: When there are no items, do not show the dropdown if
7164         the down arrow is clicked.  Fixes part of bug #322668.
7165
7166 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
7167
7168         * ToolStripComboBox.cs: Manually set the size of this control in the
7169         constructor, as it doesn't seem to be the same as DefaultSize.
7170         Fixes a failing monobuild test.
7171
7172 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
7173
7174         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
7175         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
7176
7177 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
7178
7179         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
7180         Desktop.  This lets it work for people who have moved their desktops
7181         from the default location on windows.  For people who have not, both
7182         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
7183
7184 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7185
7186         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
7187         but when the base constructor sets this, the control is null.  Set it
7188         again in the constructor.  Fixes a failing monobuild test.
7189
7190 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7191
7192         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
7193         get called.
7194         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
7195         called.
7196
7197 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7198
7199         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
7200         will handle it themselves.
7201         * ToolStripItem.cs: When deciding what the text of a tooltip should
7202         be, use the Text property instead of the text field.
7203         * ToolStripTextBox.cs: Handle tooltips.
7204         [Fixes bugs #325417 and #325973]
7205
7206 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7207
7208         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
7209         left click.  Fixes the easy part of bug #325969.
7210
7211 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
7212
7213         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
7214         bug #325406, but set a minimum for StatusStrip to 22 to keep
7215         bug #325390 fixed.  I think this minimum would have been figured
7216         up automatically if the grip was actually a ToolStripItem, but it
7217         currently is not.
7218
7219 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7220
7221         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
7222         as this is apparently the actual value used by .Net. Also apply
7223         ItemPadding in Details view only, and decrease the general width padding,
7224         to have only the needed. This should fix #324340 in Windows too.
7225
7226 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7227
7228         * ListViewItem.cs: Don't Invalidate item if parent is inside
7229         a BeginUpdate/EndUpdate block. This prevents to have differences
7230         between the ListView and items state, as well as avoid some exceptions
7231         there.
7232         * ListView.cs: Make 'updating' field internal.
7233
7234 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7235
7236         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
7237         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
7238         size if appropriate.
7239         Fixes reopened bug #325414.
7240
7241 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7242
7243         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
7244         * ToolStripItem.cs: Invalidate before and after our new autosize when
7245         text changes.
7246         Fixes reopened bug #325390.
7247
7248 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7249
7250         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
7251         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
7252         #325044.
7253
7254 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
7255
7256         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
7257
7258 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7259
7260         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
7261         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
7262         #82734.
7263
7264 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
7265
7266         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
7267         item to select when the ToolStrip is selected.
7268         * ToolStripControlHost: Realign the control when the bounds or visibility
7269         change.
7270         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
7271         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
7272         preferred height.
7273         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
7274         base.OnPaint.  Was causing text not to be drawn.
7275
7276 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
7277
7278         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
7279
7280 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7281
7282         * TreeView.cs: When creating the label edit text box,
7283         set is initially to Visible = false. This is done to
7284         prevent a confusion in the layout which makes it to lose
7285         focus when shown the first time. Fixes part of #82592.
7286
7287 2007-09-13 Andreia Gaita <avidigal@novell.com>
7288
7289         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
7290
7291 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7292
7293         * ToolStrip.cs: Take Margin into account when calculating preferred
7294         size.  Also, allow preferred size to get smaller than the explicit
7295         size.
7296         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
7297         First step towards fixing bug #82747.
7298
7299 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7300
7301         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
7302         full row select background over the plus/minus glyph.  Also, turn
7303         off the focus rectangle for full row select since MS doesn't seem
7304         to ever paint it.  [Fixes bug #81839]
7305
7306 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7307
7308         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
7309         This was causing keyboard opened dropdowns to lose focus.
7310         [Fixes bug #82803]
7311
7312 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7313
7314         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
7315         ClientRectangle instead.  [Fixes bug #82838]
7316
7317 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
7318
7319         * SplitContainer.cs: We can't reset Visible on every layout because
7320         someone may have set Visible = false explicitly on a SplitterPanel.
7321         Make sure when we switch orientation the SplitterDistance does not
7322         change.  Fixes two failing tests.
7323
7324 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7325
7326         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
7327         TextRenderer, since the latter is only available in 2.0.
7328
7329 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
7330
7331         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
7332         * SplitContainer.cs: Implement FixedPanel layouting.
7333
7334 2007-09-12  Andreia Gaita  <avidigal@novell.com>
7335
7336         * WebBrowserBase.cs: setup shutdown routine
7337
7338 2007-09-12  Andreia Gaita  <avidigal@novell.com>
7339
7340         * Application.cs: Let keyboard events that are targetted 
7341                 to non-mwf windows hosted inside mwf (as in, webbrowser),
7342                 propagate properly. Fixes keyboard handling on the webbrowser.
7343
7344 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7345
7346         * ListView.cs: When handling MouseUp event and we are 
7347         highligting a node with the mouse right button, don't trigger
7348         Before/AfterSelecting event, since we are not actually selecting
7349         the node.
7350
7351 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7352
7353         * TreeView.cs: When editing a node, modify the edit text box
7354         depending on the text length (as you are typing), like MS does.
7355
7356 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
7357
7358         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
7359         Override GetPreferredSizeCore to perform calculations.  Remove custom
7360         autosize logic.  [Fixes bug #82739]
7361
7362 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
7363
7364         * TextBoxBase.cs: Modified should default to false.
7365
7366 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7367
7368         * Control.cs: Update the anchoring distances even when layout is supspended.
7369         Patch provided by George fixes bug #82805.
7370
7371 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7372
7373         * Control.cs: Provide a setter for ExplicitHeight.
7374         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
7375         remove the hacks in here for requested_height.
7376         [Fixes bug #82749]
7377
7378 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7379
7380         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
7381         Maximum to lower that its current Value caused an ArgumentException by setting
7382         the Value to the new Maximum.
7383
7384 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7385
7386         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
7387         handle moves to the closest tick when it is being dragged.
7388         [Fixes bug #82751]
7389
7390 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
7391
7392         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
7393         can't let them count as real items when calculating where to merge in the
7394         user's items.  [Fixed bug #82786]
7395
7396 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7397
7398         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
7399         who want to add a menu item directly onto a toolstrip.
7400         [Fixes bug #82775, part II]
7401
7402 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7403
7404         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
7405         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
7406         don't set it to available.
7407         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
7408         [Fixes bug #82727, part II]
7409
7410 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7411
7412         * StatusStrip.cs: Change item placement to None if not visible.
7413         * ToolStripItem.cs: Invalidate when InternalVisible changes.
7414         These should have been committed to fix 82723, but I missed them.
7415
7416 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
7417
7418         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
7419         Click, and that it is only called once.
7420         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
7421         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
7422         dropped down.
7423         [Fixes bug #82775]
7424
7425 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7426
7427         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
7428         to match .Net.
7429         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
7430         instead of 8, just like above. Partially fixes #82734.
7431
7432 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7433
7434         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
7435         fixes #82734.
7436
7437         * ListView.cs: Remove extra space between rows in Details view (match
7438         .Net). 
7439         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
7440         the DefaultFont.
7441
7442 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
7443
7444         * Application.cs: Modified ProductVersion to return value of
7445         AssemblyInformationVersion if available, and fallback to assembly
7446         version. Fixes bug #82746. Code formatting.
7447         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
7448         instead.
7449
7450 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7451
7452         * Control.cs: When updating ZOrder for a child control,
7453         take into account the implicit ones (we need it in our controls
7454         using them). Fixes #82642.
7455
7456 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
7457
7458         * ToolStripItem.cs: Add support for animated images.
7459         [Fixes bug #82726]
7460
7461 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
7462
7463         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
7464         visible.  [Fixes bug #82727]
7465
7466 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7467
7468         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
7469         so we repaint using the new size.  [Fixes bug #82723]
7470
7471 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7472
7473         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
7474         option.  [Fixes bug #81779]
7475
7476 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7477
7478         * TreeView.cs: Override HandleClick because the StandardClick style is
7479         set to false.  According to MSDN (and testing), the click events should
7480         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
7481
7482 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7483
7484         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
7485         the border will disappear.  Fixes reopened #82653.
7486
7487 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7488
7489         * Control.cs: If the control is autosize, and its preferred size changes
7490         when it lays out its children, tell its parent so it can be re-layed out.
7491         Fixing some of the fallout from r85433.
7492
7493 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7494
7495         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
7496         and CheckBox share some code.
7497
7498 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7499
7500         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
7501         the TrackBar, not every mouse move.  [Fixed bug #82718]
7502
7503 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7504
7505         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
7506         under 2.0 rendering.  [Fixes bug #82657]
7507
7508 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7509
7510         * TreeView.cs: If we found a TreeNode to display a context menu, but
7511         it doesn't have one to show, let the TreeView display its menu
7512         instead.  [Fixes bug #82680]
7513
7514 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
7515
7516         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
7517         OnPaintInternal instead.  Give the internal TextBox a Border property
7518         so it can draw itself more correctly.  [Fixes bug #82653]
7519
7520 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
7521
7522         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
7523
7524 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7525
7526         * ComboBox.cs: Adjust combobox button state to reflect current state when
7527         back to enabled = true. Fixes first issue of #82654.
7528
7529 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7530
7531         * Control.cs: Fix last patch regression, prevent forms to update zorder when
7532         setting visible property.
7533
7534 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
7535
7536         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
7537         fix zorder for controls initially created as non visible. Fixes #82667.
7538
7539 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
7540
7541         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
7542         mimic win32 look. Fixes #82656.
7543
7544 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
7545
7546         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
7547         Stubs for new net 3.5 classes.
7548
7549 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7550
7551         * ListViewItem.cs: In ListViewItemCollection operations calculate
7552         Layout for owner as well as invalidate it. Fixes part of #82642.
7553
7554 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
7555
7556         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
7557         when returning Enabled.  [Fixes bug #82651]
7558
7559 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
7560
7561         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
7562
7563 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7564
7565         * ListView.cs: Put item padding info in a single place
7566         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
7567         columns again.
7568         * ThemeWin32Classic.cs:
7569         * Theme.cs: Likewise.
7570
7571 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7572
7573         * ListView.cs: When a ListViewSubItem instance is invalidated,
7574         invoke Invalidate on parent ListViewItem, not parent ListView.
7575         Fixes #81570.
7576
7577 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
7578
7579         * ListView.cs, ListViewItem.cs: corcompare stuffs.
7580
7581 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
7582
7583         * BindingMemberInfo.cs: Implement == and != operators.
7584
7585 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
7586
7587         * HtmlElementEventArgs.cs: Implement properties.
7588
7589 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
7590
7591         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
7592
7593 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
7594
7595         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
7596         Add (string,string,string) to implement the imagekey.  It turns out, we
7597         use the requested imagekey whereas .Net does not.  So I broke ours to match
7598         theirs.  :(
7599
7600 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
7601
7602         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
7603
7604 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
7605
7606         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
7607
7608 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
7609
7610         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
7611         up-to-date. Fixes bug #82618.
7612
7613 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
7614
7615         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
7616         reflect document changes. Fixes #82367.
7617
7618 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7619
7620         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
7621         as well as add new ones. This should make work the BackgroundImage
7622         property for ListView again.
7623
7624 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
7625
7626         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
7627         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
7628         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
7629
7630 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
7631
7632         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
7633         IsKeyLocked.
7634
7635 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
7636
7637         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
7638         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
7639
7640 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
7641
7642         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
7643         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
7644
7645 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
7646
7647         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
7648
7649 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
7650
7651         * GridEntry.cs: Implement GetService.
7652
7653 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
7654
7655         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
7656         for label editting, make sure we focus back on the TreeView.
7657         [Fixes bug #82590]
7658
7659 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7660
7661         * ListView.cs: Add some 2.0 overrides.
7662
7663 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
7664
7665         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
7666         because getter dont returns right value before handle creation. Thanks 
7667         to George. Fixes #82569.  
7668
7669 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
7670
7671         * Theme.cs: Revert last patch, it causes error under win32. 
7672
7673 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
7674
7675         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
7676         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
7677         logical Desktop rather than the physical file system location. Fixes #82603. 
7678
7679 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
7680
7681         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
7682         for the patch. Fixes #82568.
7683
7684 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7685
7686         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
7687         methods.
7688
7689 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7690
7691         * ListViewInsertionMark.cs: New stubbed class.
7692
7693 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
7694
7695         * FolderBrowserDialog.cs: When adding folder, immediately create the
7696         directory with temporary name and rename the directory when editing
7697         finishes. This matches MS. Ensure the node for the new folder is 
7698         selected and LabelEdit is disabled, when editing is either finished
7699         or cancelled.
7700
7701 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
7702
7703         * TreeView.cs: When editing label of node, ensure node is visible.
7704
7705 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
7706
7707         * PropertyGridView.cs: Set the value only if it has changed.
7708
7709 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7710
7711         * ListView.cs: Some more code refactoring to add support sorting
7712         with groups (now for Details view). Remove unused code also.
7713
7714 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
7715
7716         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
7717         Not a big fan of reacting immediately to a field in an EventArg, but that's
7718         the way it's done.  (This is part of the previous commit that got left out.)
7719
7720 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
7721
7722         * FolderBrowserDialog.cs: Removed need for separate description field.
7723         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
7724         has focus when dialog box is displayed again, regardless of what
7725         button was pressed the previous time. Set RootFolder and SelectedPath
7726         each time dialog box is displayed. This ensures the treeview is
7727         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
7728         when it does not have focus. Added support for more special folders.
7729
7730 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
7731
7732         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
7733         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
7734         it resets the edit_args.
7735         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
7736         [Fixes bug #82577]
7737
7738 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
7739
7740         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
7741         button to match MS. Provide more meaningful exception message for
7742         invalid RootFolder value. Use zero-length string when SelectedPath
7743         is set to null. Allow non-rooted paths in SelectedPath, but ignore
7744         them in FolderBrowserTreeView. Allow folders to be created in
7745         RootFolder. Fixes bug #82576.
7746
7747 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7748
7749         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
7750         since we need to take into account the group headers and the margin
7751         between them.
7752         * ListViewGroup.cs: Add a rows field to store the number of rows per
7753         group.
7754
7755 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7756
7757         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
7758           Anyways, let's just follow the lead.
7759
7760 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
7761
7762         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
7763         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
7764         controls in GetPreferredSizeCore.
7765         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
7766         [Fixes bug #82488]
7767
7768 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
7769
7770         * PrintDialog.cs: Need to instantiate the form variable here too.
7771
7772 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7773
7774         * ListView.cs: Do some reorganization to support sorting in groups,
7775         by doing the layout sequentially in ListView.Items. Also add support
7776         for the Default Group, which should be available for items with no
7777         group assigned.
7778         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
7779         for storing layout info also.
7780         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
7781         collection, as well as providing internal members to do a traversal
7782         including the default group (needed when doing layout/drawing).
7783         * ThemeWin32Classic.cs: When drawing group headers use internal
7784         ListViewGroupCollection members to take into account the default
7785         group.
7786
7787 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
7788
7789         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
7790
7791 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7792
7793         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
7794         been created.  If handle is created, we want arror keys.  If we are editing
7795         a node, we want things like enter, esc, home, end, page up, page down.
7796         Allows Esc to work for FolderBrowserDialog.
7797
7798 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7799
7800         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
7801         they close when ESC is pressed.  Thanks Andy!
7802
7803 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7804
7805         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
7806         This way we can tell if this is a CommonDialog provided with mono, or one
7807         that is being implemented outside by a developer.  If it is an external one,
7808         the developer is responsible for showing their own form.  We were showing
7809         our blank form after the developer showed his.
7810         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
7811         PageSetupDialog.cs: Instantiate form variable in our constructor.
7812         [Fixes bug #82531]
7813
7814 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7815
7816         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
7817         and always return true.  [Fixes bug #81616]
7818
7819 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
7820
7821         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
7822         TextBox.  [Fixes bug #82549]
7823
7824 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
7825
7826         * FileDialog.cs: When Save/Open is clicked and no filename is selected
7827         or entered then do not close the dialog. Fixes bug #82539. Removed
7828         CWLs.
7829
7830 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
7831
7832         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
7833         code to this method. It is calling every time filter changes. This method
7834         will help to fix the bug #80887.
7835
7836 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
7837
7838         * CheckBox.cs: Implement AutoSize calculation.
7839
7840 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
7841
7842         * CheckBox.cs: Use new 2.0 rendering for 2.0.
7843         * Theme.cs: Method declarations for 2.0 rendering path.
7844         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
7845
7846 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7847
7848         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
7849
7850 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7851
7852         * ListViewGroupCollection.cs: Implement AddRange the right way, to
7853         only call Redraw on the parent one time.
7854
7855 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7856
7857         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
7858           GetClipboardContent.
7859         * DataGridViewCell.cs: Implemented GetClipboardContent,
7860           GetEditedFormattedValue, GetFormattedValue.
7861         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
7862
7863 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
7864
7865         * TableLayoutStyleCollection.cs: corcompare fix.
7866
7867 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7868
7869         * DataObject.cs: Implemented retrieval of convertible / not convertible
7870           objects.
7871
7872 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
7873
7874         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
7875         ourselves.  This ensures the entire old bounds are repainted, in case our new
7876         size is smaller.  [Fixes bug #82518]
7877
7878 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
7879
7880         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
7881         flag to make fast handle of mouse events, without this the mouse move is
7882         handled in some manner, whether it is a mouse move or not. Fixes #81588.
7883
7884 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7885
7886         * ListView.cs: When doing layout calculations don't use a ref
7887         param to keep the current item; instead use its Index value (this 
7888         is specially important when doing the layout with Groups
7889         and Items being sparse). Also don't take into account items added to
7890         the Group but not yet added to the main ListView.Items collection.
7891
7892 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7893
7894         * ListViewGroupCollection.cs: Forgot to mimic an issue
7895         in the indexer (don't assign the ListView owner for new values).
7896
7897 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7898
7899         * ListViewGroupCollection.cs: Make the string indexer use
7900         the int based indexer to re-use code, instead of duplicate the code.
7901         Also Redraw as needed and take into account null values.
7902
7903 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
7904
7905         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
7906         [Fixes bug #82481]
7907
7908 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
7909
7910         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
7911         when other buttons are clicked or navigated to.
7912
7913 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7914
7915         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
7916           it's XplatUIX11 that attaches them.
7917
7918 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7919
7920         * DataGridView.cs: If a column has been added, recreate the editing row.
7921           Fixes #82226.
7922
7923 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7924
7925         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
7926           of the tag to draw. Makes disappearing text show up again.
7927
7928 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7929
7930         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
7931           Contents. Fixes #82487.
7932
7933 2007-08-19  Andreia Gaita  <avidigal@novell.com>
7934
7935         * Added HtmlElement.cs, HtmlElementCollection.cs, 
7936           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
7937           
7938 2007-08-19  Andreia Gaita  <avidigal@novell.com>
7939
7940         * BindingSource.cs: Implement this, dispose and getenumerator.
7941         * DataGridViewRowCollection.cs: Move the InvalidOperationException
7942         out of AddInternal, throw it only on public Add calls. The 
7943         UsingWebBrowser sample was blowing up with this when setting the
7944         DataSource after adding DataBindings, so it's likely that .net
7945         only throws this exception when Add is called directly. 
7946         
7947         * ToolStripControlHost.cs: Return the hosted control's text
7948         property, and not the ToolStripItem one (it would always return
7949         the initial value).
7950         
7951         * HtmlDocument.cs: Implement GetElementById and All
7952         * WebBrowser.cs: Remove exception on set_DocumentStream.        
7953
7954 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7955
7956         * Form.cs: Fix the max and min value for opacity (0~1).
7957
7958 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7959
7960         [Fixes #80118]
7961         * DataGridTableStyle.cs: Default header font is now null, on getter it 
7962         returns datagrid font when is null. On setter permits null.
7963
7964         * DataGrid.cs:
7965         - When ResetHeaderFont set header font to null.
7966         - On EndInit set grid_style.DataGrid.
7967
7968 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7969
7970         * TabControl.cs: Fix regression in default padding x.
7971
7972 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7973
7974         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
7975
7976 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7977
7978         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
7979         not 2. Fixes #82229.
7980
7981 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7982
7983         * TabControl.cs: Fix tab size when image height is less than text height.
7984         Partially fixes #81837.
7985
7986 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7987
7988         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
7989         "alt + tab". It works only for Win32, for X11 theres no way to remove window
7990         from taskbar and keep it on "alt_tab". Fixes #81722.
7991
7992 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7993
7994         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
7995         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
7996         Fixes #80877 and #79418.
7997
7998 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7999
8000         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
8001         between position and one of the screen borders. Fixes #82349.
8002
8003 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8004
8005         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
8006         the MessageBox in the taskbar. Fixes #82457.
8007
8008 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
8009
8010         * MessageBox.cs: Fix form size when icon is set and text height is bigger
8011         than icon. Fixes #82468.
8012
8013 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8014
8015         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
8016         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
8017           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
8018           Refactored HandleNCCalcSize somewhat to avoid code duplication.
8019         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
8020           FormBorderStyle to decide if we're calculating a new size from the
8021           client size or not. CreateParams: Don't fake tool windows, only the X11
8022           backend manages toolwindows manually.
8023
8024 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8025
8026         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
8027         ObjectDisposedException.
8028
8029 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8030
8031         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
8032         in OnLoad should not have any effect.  [Fixes bug #82470]
8033
8034 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8035
8036         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
8037         paint for controls that create their own ToolTipWindow instead of
8038         going through ToolTip.
8039
8040 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8041
8042         * ToolTip.cs: Make Hide internal instead of public to match MS API.
8043
8044 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8045
8046         * ListViewGroupCollection.cs: Use generic List instead of an
8047         ArrayList, since this collection is 2.0 only.
8048
8049 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
8050
8051         * ToolTip.cs (Hide): Made public to make the build work (should
8052         this not be public?).
8053
8054 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8055
8056         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
8057         ToolTipWindow.
8058         * ToolTip.cs: Add an internal Visible property to facilitate transition.
8059
8060 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
8061
8062         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
8063         PopupEventHandler.cs: Make these internal for 1.1.
8064         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
8065         use ToolTipWindow internals.
8066         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
8067         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
8068
8069 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8070
8071         * X11Dnd.cs: Add a null check.
8072
8073 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8074
8075         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
8076           nothing else succeeds. Fixes #82453.
8077
8078 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8079
8080         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
8081           rectangle if we're painting to another window than the one the paint
8082           message was generated on. Simplify the code somewhat, which makes
8083           PaintEventEnd also simpler.
8084
8085 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8086
8087         * Control.cs: When changing parent of a form, let the form decide whether
8088           XplatUI.SetParent should be called or not.
8089         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
8090           recreating the handle. If the new parent's handle isn't created, don't
8091           recreate our handle, just destroy it. CreateParams: Check if the
8092           parent's handle is created before fetching it.
8093
8094 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8095
8096         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
8097           Update calls to PaintEventStart/End to take a Message argument.
8098         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
8099           take a Message argument.
8100         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
8101           Message argument, and handle the case where we don't paint to the window
8102           for which the paint message was generated.
8103
8104 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8105
8106         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
8107           Marshal.GetLastWin32Error. Plug nasty memory leak in
8108           PaintEventStart/End, we were creating a DC we weren't releasing.
8109
8110 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8111
8112         * ListView.cs: Add Groups support in Details view. Also have a small
8113         method to do the layout of the group header. Don't use a separate
8114         method to do the groups calculation in Icons view, since our methods
8115         are now a little simpler.
8116         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
8117         `Bounds'.
8118         * ThemeWin32Classic.cs: Likewise.
8119
8120 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
8121
8122         * Application.cs: Add FilterMessage method and rework our message loop
8123         logic to use it.
8124
8125 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
8126
8127         * Application.cs: Add some methods and stub a few methods that are
8128         pretty much never used.
8129
8130 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
8131
8132         * TreeNode.cs: Add some serialization methods.
8133
8134 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8135
8136         * ListView.cs: In ListViewItemCollection have a 
8137         'is_main_collection' field to not modify ListViewItem.ListView
8138         when using it as ListViewGroup.Items (and not ListView.Items)
8139         and also don't modify selection state (.Net behaviour). 
8140         Instead, set group for items contained in a ListViewGroup.Items collection.
8141         * ListViewItem.cs: Simplify some code in Group setter.
8142         * ListViewGroup.cs: use the new .ctor to pass the current instance
8143         to the ItemsCollection.
8144         * ListViewGroup.cs: Set the ListView property for ListViewGroup
8145         instances when adding/removing. Also make Remove use RemoveAt, which
8146         should perform better.
8147
8148 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8149
8150         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
8151         that crept into the 1.1 profile.
8152
8153 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8154
8155         * ToolBarButton.cs: Implement ImageKey.
8156
8157 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
8158
8159         * ToolBar.cs: Implement ScaleControl/ScaleCore.
8160
8161 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8162
8163         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
8164           created, it might have gotten destroyed since we last checked. Fixes
8165           #82405.
8166
8167 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
8168
8169         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
8170         tooltip will hide when mouse is moved off the control.
8171         [Fixes bug #82407]
8172
8173 2007-08-11 Andreia Gaita <avidigal@novell.com>
8174
8175         * WebBrowserBase.cs, WebBrowser.cs: add implementation
8176         using Mono.Mozilla for loading and navigating webcontrol
8177         with xulrunner.
8178         The initial implementation was done on 
8179         /trunk/mozembed/tests/browser , and copied here.
8180
8181 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
8182
8183         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
8184         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
8185
8186 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8187
8188         * DataGridView.cs: Add support for an editing row. Fixes #82226.
8189           RowTemplateFull: throw an exception if a column doesn't have a template.
8190         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
8191           add the row just before it.
8192         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
8193           selected.
8194         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
8195           DataGridView field to be able to reach the grid's editing row.
8196
8197 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8198
8199         * ToolTip.cs: If the control's handle hasn't been created when it has a
8200         tooltip set on it, don't check to see if we need to show the tooltip.  This
8201         check was causing the control's handle to be created.
8202         [Fixes bug #82399]
8203
8204 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8205
8206         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
8207                                         1.1             2.0
8208         Handle Not Created      -1              0
8209         Handle Created          0               0
8210         [Fixes bug #82371]
8211
8212 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
8213
8214         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
8215         [Fixes bug #82348]
8216
8217 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
8218
8219         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
8220         * ToolTip.cs: Implement some properties and owner draw.
8221
8222 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8223
8224         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
8225           show them again, since setting visibility causes a paint, causing an
8226           endless loop (instead use a temporary and set it all when it's known if
8227           they should be shown or not). Fixes #79265.
8228
8229 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8230
8231         * DataGridView.cs: Only do a full column/row selection if a header was
8232           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
8233           isn't pressed, deselect everything before selecting something.
8234
8235 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8236
8237         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
8238           behaviour according to bug #81075 - they are returned in the order they
8239           are selected. Fix HitTest to check if the point is within any of the
8240           headers. Allow for row/column selection when in ColumnHeader or
8241           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
8242           the row and column to call when their selected state changes, and
8243           updated selected_[rows|columns] whenever SetSelected* is called.
8244         * DataGridViewBand.cs: Initialize isRow correctly. Call
8245           SetSelected[Row|Column]CoreInternal when the selected state changes, and
8246           add a SelectedInternal to avoid StackOverflows.
8247         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
8248           ReadOnly no matter what.
8249         * DataGridViewSelectedColumnCollection.cs,
8250           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
8251           the items in reverse order (just as MS does...)
8252
8253 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
8254
8255         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
8256         itself, not part of a mnemonic.  [Fixes bug #82378]
8257
8258 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8259
8260         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
8261         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
8262           the DGV, the column, the row, or the cell itself is readonly.
8263
8264 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
8265
8266         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
8267         OSVersion.Platform.
8268         * FileDialog.cs: Same.
8269         * TextRendered.cs: Same.
8270         * FolderBrowserDialog.cs: Same.
8271         * TextBoxBase.cs: Same.
8272         * Application.cs: Same.
8273         * Cursors.cs: Same.
8274         * ThemeClearLooks.cs: Same.
8275
8276 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
8277
8278         * XplatUI.cs: Added RunningOnUnix property to be used by controls
8279         instead of duplicating these checks everywhere.
8280         * FileDialog.cs: Use case-insensitive comparison for populating the
8281         DirComboBox when not running on unix. Fixes bug #82385.
8282         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
8283         "Look in".
8284
8285 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8286
8287         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
8288           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
8289           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
8290           cell and column selection with ctrl and shift pressed. Call the correct
8291           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
8292           the corresponding virtual method (PaintBackground to paint background,
8293           etc).
8294         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
8295           either the column, row or the cell itself is selected.
8296         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
8297           OnRowsAdded.
8298         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
8299           here. When the row is selected, don't select all cells. Each cell now
8300           queries the row to see if the row is selected.
8301
8302 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8303
8304         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
8305           SelectionMode.
8306
8307 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8308
8309         * ListView.cs: In ListViewItemsCollection check that owner is
8310         not null before trying to access it (this happens quite often
8311         using Groups). Also don't duplicate calls by calling CollectionChanged
8312         method.
8313
8314 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8315
8316         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
8317         when we are dismissed to clear keyboard mnemonics.
8318         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
8319         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
8320         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
8321         was activated by keyboard or the OS tells us to always draw them.
8322         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
8323         [Fixes bugs #82376, #82377]
8324
8325 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8326
8327         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
8328         shot at having it because Alt was pressed.
8329         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
8330         the first real menu item.
8331         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
8332         a mnemonic if Text is null.
8333         [Fixes bug #82374]
8334
8335 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8336
8337         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
8338         search do check whether the item is already contained in the
8339         collection or not; instead check if the owner of the item is the same
8340         as ours. Also, remove a redundant check in the same method. 
8341
8342 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
8343
8344         * Control.cs: Allow the clip region to be set back to null.
8345         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
8346         [Fixes button still showing up in bug #82370 when Show Through is turned off]
8347
8348 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8349
8350         * GridEntry.cs: Add a null check.
8351         * PropertyGrid.cs: When checking for existing grid entries, ignore category
8352           entries. Fixes #82297.
8353
8354 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
8355
8356         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
8357         for 2.0.
8358
8359 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
8360
8361         * ListBox.cs: Implement ScaleControl.
8362
8363 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8364
8365         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
8366           have a menu strip.
8367         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
8368           parent has a menu strip. Fixes #81689.
8369
8370 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8371
8372         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
8373           moments, so apply some fuzzy logic to determine if the mouse is still
8374           inside a control or not. Fixes #82288 (for the third time).
8375
8376 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8377
8378         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
8379           Don't create the child if it has been disposed already (may happen if
8380           the user closes the form the Load event).
8381
8382 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8383
8384         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
8385           #82288.
8386
8387 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8388
8389         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
8390           might call us after we've been destroyed, in which case our own private
8391           parent field is null. Fixes #82326.
8392
8393 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
8394
8395         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
8396         check for setting the dropdown's owner.
8397
8398 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
8399
8400         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
8401         before removing system menu items.
8402
8403 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
8404
8405         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
8406         folding.
8407         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
8408         folding.
8409         * ToolStrip.cs: Add a null check to mnemonics.
8410         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
8411         no ConnectedArea.
8412         [Fixes most of bug #81689]
8413
8414 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8415
8416         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
8417
8418 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8419
8420         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
8421
8422 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8423
8424         * DataGridViewCell.cs: EditType: returns
8425           DataGridViewTextBoxEditingControl always.
8426
8427 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
8428
8429         * TextRenderer.cs: Remove the LineLimit string format flag from the
8430         DrawString fallback method so that things like buttons that aren't
8431         tall enough to draw a full line will still draw part of the text.
8432         [Fixes part of bug #82272]
8433
8434 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8435
8436         * DataGridView.cs: Implemented AutoResizeColumn(s).
8437         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
8438           according to the Alignment.
8439         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
8440           Implement alignment and padding when painting.
8441         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
8442           exists.
8443         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
8444           way.
8445         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
8446           a column is added.
8447
8448 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8449
8450         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
8451         which is internal.
8452
8453 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8454
8455         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
8456         hide GetPreferredSize from public API.
8457         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
8458         * ToolStripItem.cs: Stub out drag and drop methods and events.
8459         * ToolStripManager.cs: Stub out Save/LoadSettings.
8460         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
8461         * ToolStripPanel.cs: Fix corcompare error.
8462         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
8463         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
8464         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
8465
8466 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
8467
8468         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
8469         bounds height instead of PreferredHeight.  Puts things back the way 
8470         they were for height while still fixing the width.  Fixes broken unit
8471         tests.
8472
8473 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8474
8475         * Binding.cs: Implement 2.0 constructors and add a null check.
8476
8477 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8478
8479         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
8480           and fix row index (off by one).
8481
8482 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8483
8484         * PropertyGridView.cs: Remove debug output.
8485
8486 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8487
8488         * Control.cs: We need to reset the is_created flags when the handle is
8489           destroyed. Fixes #82187.
8490         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
8491           client coordinates if the window doesn't have a parent.
8492           Win32GetParent returns the parent or the owner, and for top-level
8493           windows with no parent (but with an owner) we were calculating the
8494           location from the location of the owner.
8495         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
8496           form has been disposed.
8497         * MdiClient.cs: Add a null-check.
8498
8499 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
8500
8501         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
8502         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
8503         so we can provide an implementation that returns the current width
8504         and preferred height.  Allows anchor = right to work with TextBox 2.0.
8505         [Fixes bug #82233]
8506
8507 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8508
8509         * ListView.cs: Add support for navigating items in Groups mode, by
8510         creating a big matrix containing all rows and cols of all groups. When
8511         are in other mode than Details, pressing Up should have a similar
8512         behaviour as that one of Down (moving to the next available column if
8513         current one doesn't have an item in the requested row). Also, don't
8514         proceed to use groups if ShowGroups is false.
8515         * ListViewGroup.cs: Add an internal int field to store the starting
8516         row of the group (used by the big matrix used for navigating the
8517         ListView).
8518         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
8519         false.
8520
8521 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
8522
8523         * ToolStripDropDown.cs: When we do Show, start with the 
8524         DefaultDropDownDirection, but if our popup menu is going to off-screen,
8525         modify the direction to keep it on screen.  [Fixes bug #82210]
8526
8527 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
8528
8529         * FileDialog.cs: Accept any FilterIndex value, and store it
8530         unmodified. When FilterIndex is less than 1, or greater than number
8531         of filters, then default to first filter. Only add filter extension to
8532         file if user did not specifiy an extension. When type of dialog is
8533         OpenFileDialog and DefaultExt is set, then only use filter extension
8534         if: CheckFileExists is true and no file wih the default extension
8535         exists, or CheckFileExists is false, and user specified file does not
8536         exist. When CheckFileExists is true, then add first extension of 
8537         selected filter that matches existing file. Perform checks for
8538         existing file, overwrite and create after extension has been added to
8539         file name. When CheckFileExists is true and type is SaveFileDialog,
8540         then only consider first filter extension if DefaultExt is set.
8541         When CheckFileExists is true, then ignore DefaultExt if file with that
8542         extension does not exist. Also perform check for existing file when
8543         type is SaveFileDialog. Changed some field to constants.
8544
8545 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8546
8547         * ListView.cs: Take into account the region used by header
8548         control when doing the vertical scroll (this way we invalidate
8549         the precise area, and don't get any dirty one).
8550
8551 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
8552
8553         * FileDialog.cs: Check for valid filterIndex on button open/save. 
8554         Fixes #82184.
8555
8556 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8557
8558         * ListView.cs: Update some layout calculations in details view
8559         and clean the code in a pair of assignations.
8560
8561 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
8562
8563         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
8564         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
8565         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
8566         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
8567
8568 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
8569
8570         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
8571         performance of thread-safe Graphic methods.  (Thanks rolf!)
8572
8573 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8574
8575         * ListView.cs: When doing the layout calculations, don't calculate
8576         scroll bars before handle is created. This is unnecessary and also
8577         calculating them before handle creation item causes a number of random
8578         bugs (which begin to appear after Chris' big patch for handle creation
8579         fixes). 
8580
8581 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
8582
8583         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
8584         for things that don't have a Graphics object.  Currently, things just use
8585         the static Hwnd.bmp_g which is not thread safe.
8586
8587 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8588
8589         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
8590           dialog. Fixes #82187.
8591
8592 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8593
8594         * DataGridViewElement.cs: Initialize state.
8595         * DataGridView.cs: Forward a few Mouse events to cells. Add
8596           GetRowInternal and GetCellInternal that doesn't unshare rows.
8597           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
8598           don't use the index, but look it up. Add
8599           DataGridViewControlCollection.RemoveInternal to remove controls
8600           that Remove won't remove (scrollbars, edit control).
8601         * DataGridViewColumn.cs: Initialize State correctly.
8602         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
8603           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
8604           implementing this.
8605         * DataGridViewRowCollection.cs: Implemented shared rows.
8606         * DataGridViewRow.cs: Throw exceptions as MS do.
8607         * DataGridViewCell.cs: A few properties are implemented by a
8608           Get<Property> method, so move implementation there and remove the
8609           NIEX in the method. Add a bunch of OnXInternal that DataGridView
8610           calls when necessary.
8611         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
8612           complicates matters.
8613         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
8614           unshare any rows.
8615
8616 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
8617
8618         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
8619         the children controls.  Instead, we will just set up the proper docking for the
8620         children controls so we don't have to worry about it.  [Fixes bug #82188]
8621
8622 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
8623
8624         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
8625         canceling and correct Before/AfterLabelEdit properties as layed out in bug
8626         81847.  [Fixes bug #81847]
8627
8628 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
8629
8630         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
8631         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
8632         an explicit size based on the design-time size of the text.  Since our fonts
8633         may not match this explicit size, we tend to cut off the ends of people's labels.
8634
8635 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
8636
8637         * Menu.cs: Add some missing methods to MenuItemCollection.
8638
8639 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8640
8641         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
8642         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
8643         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
8644         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
8645         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
8646         * DataGridViewElement.cs: State defaults to Visible.
8647         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
8648         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
8649
8650 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8651
8652         * Control.cs: Minor 1.1 corcompare fix.
8653
8654 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
8655
8656         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
8657         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
8658
8659 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8660
8661         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
8662           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
8663           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
8664           DataGridViewSelectedColumnCollection.cs,
8665           DataGridViewSelectedRowCollection.cs: Corcompare work.
8666
8667 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
8668
8669         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
8670         it is autoset by VS2005 designer and the effect is barely noticeable.
8671
8672 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
8673
8674         * TreeView.cs: Implement HitTest.
8675
8676 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8677
8678         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
8679           manually adding and removing the control from the Controls
8680           collecftion.
8681         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
8682           EditingControlInternal property that tracks the editing control.
8683           Always keeping the scrollbars in the Controls collection, as MS
8684           testing confirms is the right behaviour.
8685
8686 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8687
8688         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
8689           according to MSDN and new test.
8690
8691 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
8692
8693         * TreeNode.cs: Implement ToolTipText.
8694         * TreeView.cs: Implement tooltips, NodeMouse* events.
8695
8696 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
8697
8698         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
8699
8700 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
8701
8702         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
8703         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
8704
8705 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
8706
8707         * Control.cs, Form.cs, ContainerControl.cs,
8708         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
8709         for misc properties.
8710
8711 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
8712
8713         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
8714         * TreeView.cs: Implement StateImageList.
8715
8716 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8717
8718         * Form.cs: Don't check if the current form is the active form before
8719           activating it. Fixes #81904.
8720
8721 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8722
8723         * Form.cs: Don't check if the current form is the active form before
8724           activating it. Fixes #81904.
8725
8726 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8727
8728         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
8729
8730 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8731
8732         * Form.cs: Don't try to position the form after loading if the form was
8733           disposed. Fixes #81969.
8734
8735 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8736
8737         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
8738           properties. Had to change ToolBar into ToolStrip, which required a
8739           few #ifs.
8740
8741 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8742
8743         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
8744           resized, fixes part of #79829 (vertical lines in toolbar).
8745           PropertyGrid: Refactored Populate* to something that's easier to
8746           follow at least for me, as well as splitting it up into several new
8747           methods, required to update only subitems when something has
8748           changed by a popup editor or listbox. Don't use events to check
8749           when any values are changed, since the events are unreliable (we're
8750           changing the objects the events are registered with, and if the
8751           event handling requires the objects to be immutable (objects stored
8752           in hashtables for instance), the events will never be raised).
8753         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
8754           everytime we change a value, since events are unreliable.
8755           DropDownButtonClicked: For the same reason don't compare objects to
8756           check if it has changed or not, it would require all objects to
8757           derive Equals. Fix dialog location on windows, MS is doing weird
8758           things when creating parented forms.
8759         * GridEntry.cs: Add a SelectedObject setter.
8760
8761 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
8762
8763         * TreeNode.cs: Add some corcompare attributes.
8764         * TreeNodeCollection.cs: Implement 2.0 stuffs.
8765         * TreeView.cs: Implement some 2.0 stuffs.
8766
8767 2007-07-18  Andreia Gaita  <avidigal@novell.com>
8768
8769         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
8770         for moma.
8771
8772 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
8773
8774         * ListBox.cs: Implement custom tab offsets.
8775
8776 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8777
8778         * ToolStripContentPanel.cs: Support System renderer.
8779         * ToolStripControlHost.cs: Set RightToLeft to default to No.
8780
8781 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8782
8783         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
8784
8785 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8786
8787         * CheckBox.cs: Chain TextAlign to base implementation instead of
8788         maintaining another one.
8789
8790 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8791
8792         * ButtonBase.cs: Fix an incorrect string constant.
8793
8794 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8795
8796         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
8797         of creating one for measuring strings.
8798
8799 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
8800
8801         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
8802         Implement MaxItemSize.
8803
8804 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
8805
8806         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
8807         for DeviceContext.  Instead, use the static one available in Hwnd.
8808         Informal tests show this saves about 500k on formtest.exe.
8809
8810 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
8811
8812         * ContainerControl.cs: Implement 2.0 AutoScaling.
8813
8814 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8815
8816         * ComboBox.cs: Work around bug #82120 (bug in mcs).
8817
8818 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
8819
8820         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
8821         Darken the focus color.
8822
8823 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
8824
8825         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
8826         for the checkbox.
8827         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
8828         X, Y instead of a rect for drawing text.
8829         - For ControlPaint.DrawCheckBox, center the check a little better when the
8830         checkbox is odd width.  When drawing a flat checkbox, use a white background
8831         when state != inactive.
8832         [Fixes bugs #82097, 82100]
8833
8834 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
8835
8836         * ListControl.cs: When changing CurrencyManager, disconnect event
8837         handlers from previous one. Fixes bug #81771. Code formatting.
8838
8839 2007-07-15  Andreia Gaita <avidigal@novell.com>
8840
8841         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
8842         full preview invalidation from layout invalidation, and only invalidate
8843         the layout when setting zoom or other properties. Invalidation should
8844         always be done even when resetting properties with the same values as
8845         what is there. Fixes #81744 and #79830.
8846
8847 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8848
8849         * ListView.cs: Implement initial support for Groups. Split some of the
8850         LayoutIcons code to render a partial list of the items (needed by
8851         items contained in ListViewGroup instances). Let the
8852         ListViewItemsCollection.ListView property be modifiable (needed when
8853         using Groups, too).
8854         * ListViewGroup.cs: Use a Bounds property rather than a Location
8855         one. Also invalidate the bounds when they get changed.
8856         * ThemeWin32Classic.cs: When drawing items, also draw the group header
8857         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
8858         method as well.
8859
8860 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8861
8862         * ListView.cs: When space gets pressed and CheckBoxes is true, 
8863         don't invoke the Begin and EndUpdate methods. We are generating 
8864         a redraw of the entire control without need to do so.
8865
8866 2007-07-13  William Holmes <billholmes54@gmail.com> 
8867
8868         * Control.cs: Changing logic in FindFlatForward and 
8869           FindFlatBackward to handle multiple Controls with 
8870           the same TabIndex.  
8871           This fixes bug 81687.
8872
8873 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
8874
8875         * OSFeature.cs: Enable IsPresent.
8876
8877 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8878
8879         * Control.cs: Don't do anything in WmShowWindow if the control has been
8880           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
8881           control is created, put on a form, the control is disposed (the
8882           form is never shown), and then we get a MapNotify, triggering a
8883           WM_SHOWWINDOW.
8884         * Form.cs: Exclude the current form when sending Deactivate to all
8885           MdiChildren.
8886         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
8887           there was a race condition because assigning the handle raises
8888           events, we can get more messages, therefore trying to assign the
8889           handle again, which would fail if any of those event handlers
8890           closed/disposed the control.
8891
8892 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8893
8894         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
8895
8896 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
8897
8898         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
8899         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
8900
8901 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8902
8903         * DateTimePicker.cs: If there's no part format specifier, return an
8904           empty string.
8905
8906 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
8907
8908         * FlatButtonAppearance.cs: Throw NotSupportedException for a
8909         Transparent BorderColor.
8910
8911 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8912
8913         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
8914           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
8915           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
8916           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
8917           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
8918           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
8919           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
8920           Remove warnings.
8921         * X11Structs.cs: Remove warnings, add ToString implementations.
8922
8923 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8924
8925         * XplatUIX11.cs: Translate min/max size according to the actual min/max
8926           size, and not the current size. Fixes #81798.
8927
8928 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8929
8930         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
8931           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
8932           to the control yet).
8933
8934 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8935
8936         * PropertyGridTextBox.cs: Add a method that sends any forwarded
8937           mousedowns to the contained textbox.
8938         * X11Structs.cs: More ToString implementation.
8939         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
8940           #81791.
8941
8942 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8943
8944         * PropertyGridView.cs: Add a null-check, fixes a few tests.
8945
8946 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
8947
8948         * TableLayoutPanelCellPosition.cs: TypeConverter.
8949
8950 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8951
8952         [ Fixes #79761]
8953         
8954         * PropertyGridTextBox.cs: Propagate any color changes to all contained
8955           controls.
8956         * PropertyGridView.cs: A few color fixes.
8957
8958 2007-07-10  Jackson Harper  <jackson@ximian.com>
8959
8960         * TextControl.cs: Remove some old unused text formatting stuff.
8961
8962 2007-07-10  Jackson Harper  <jackson@ximian.com>
8963
8964         * TreeView.cs: Update full row select invalidation to match the
8965         newer DrawSelection... method.
8966         - Make sure to invalidate the entire width when selecting a new
8967         node, if we have full row selection enabled.
8968
8969 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8970
8971         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
8972           display of properties again.
8973
8974 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
8975
8976         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
8977         to existing collections.
8978
8979 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8980
8981         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
8982         that changed between 1.1 and 2.0.
8983
8984 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8985
8986         * PowerStatus.cs: Added.  This is just a data class, it is filled
8987         in by SystemInformation.
8988
8989 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8990
8991         * Message.cs: Add op_Equality and op_Inequality.
8992
8993 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8994
8995         * MenuStrip.cs: Finish corcompare work.
8996
8997 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8998
8999         * LinkArea.cs: Add op_Equality and op_Inequality.
9000
9001 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9002
9003         * Application.cs: Add MessageLoopCallback delegate.
9004
9005 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9006
9007         * ListBox.cs: First set of 2.0 stuffs.
9008
9009 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
9010
9011         * Control.cs: Make an internal Height property we can override
9012         without messing up the public API.
9013         * ListBox.cs: Override HeightInternal to always return the size
9014         the user set.  [Fixes bug #80466]
9015
9016 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
9017
9018         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
9019         paint cell borders if we haven't calculated where they go yet.
9020         [Fixes bugs #82040 and #82041]
9021
9022 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9023
9024         * ListView.cs: In Details view, set the location of item_control
9025         in the (0,0) position (and the header_control is thus on the
9026         item_control). This way the Bounds of the Items are relative to the
9027         ListView control (before this, they had a Bounds value without the
9028         header_control offset, which wasn't matching .Net). Fixes #82004.
9029
9030 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9031
9032         * ListControl.cs: When DataSource is set to null, pass an empty
9033         array of object to SetItemsCore. This is done to clean the items
9034         in the ListContol children. Fixes #81788.
9035
9036 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9037
9038         * ListControl.cs: Add 2.0 stuffs.
9039
9040 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9041
9042         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
9043         Refresh is overkill for just about every repaint request.
9044
9045 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9046
9047         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
9048         so remove my custom Get method and fix the property getter.
9049
9050 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9051
9052         * Label.cs: DefaultMargin for 2.0.
9053
9054 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9055
9056         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
9057         reported issue where other controls with mnemonics would steal strokes
9058         from a selected ComboBox.
9059
9060 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
9061
9062         * ScrollOrientation.cs: Make internal for 1.1.
9063         * ScrollEventArgs.cs: Add 2.0 stuffs.
9064
9065 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
9066
9067         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9068         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
9069         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
9070
9071 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9072
9073         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
9074
9075 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9076
9077         * ListView.cs: Implement the so-incredibly broken 2.0 
9078         VirtualItemsSelectionRangeChanged event.
9079
9080 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9081
9082         * ListView.cs: When enter is pressed and selection is non empty,
9083         an OnItemActivate event must be fired.
9084
9085 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9086
9087         * ListView.cs: Store the FocusedItem information as an
9088         int instead of a ListViewItem (needed by VirtualMode).
9089         Update the calls to SetFocusedItem to pass an index instead of
9090         an item.
9091         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
9092         the Focused state from the owner ListView. 
9093
9094 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9095
9096         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
9097         property. Also, invalidate previous focused item in the mentioned
9098         property (match .Net).
9099
9100 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9101
9102         * ListView.cs: Implement 2.0 FocusedItem property setter.
9103
9104 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9105
9106         * ListView.cs: Implement 2.0 TopItem property setter.
9107
9108 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
9109
9110         * StatusStrip.cs: The default renderer is System.
9111         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
9112         if the user specifies it.
9113         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
9114         if we are ManagerRenderMode.
9115         * ToolStripMenuItem.cs: Calculate our text color better.
9116         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
9117         from Professional to the base class based off working with the System renderer.
9118         * ToolStripSystemRenderer.cs: Added.
9119
9120 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9121
9122         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
9123
9124 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
9125
9126         * ToolTip.cs: Implement 2.0 Tag property.
9127
9128 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9129
9130         * ListView.cs: Implement 2.0 HitTest methods.
9131
9132 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9133
9134         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
9135         item is under the pointer or not (sugar). Also remove the TODO
9136         regarding to the cursor changes in OneClick activation.
9137         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
9138         the subitems use the parent's HotFont if UseItemStyleForSubItems is
9139         true; otherwise don't show the underline style.
9140
9141 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9142
9143         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
9144         the code to retrieve the item at position only one time. Also
9145         change cursor when Activation is ItemActivation.OneClick as well
9146         as invalidate the item if HotTracking is true (to show/hide the
9147         underline style). Add an internal HotItemIndex property to retrieve
9148         the current hot item's index.
9149         * ListViewItem.cs: Add an internal HotFont property to cache the
9150         font used when HotTracking is true and the pointer moves within the
9151         item's borders.
9152         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
9153         HotFont depending on the hot state of the item.
9154
9155 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9156
9157         * ListView.cs: Implement 2.0 HotTracking property.
9158
9159 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9160
9161         * ToolStripControlHost.cs: If our hosted control never got created,
9162         don't try to dispose it.  [Fixes bug #81909]
9163
9164 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9165
9166         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
9167
9168 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
9169
9170         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
9171
9172 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9173
9174         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
9175         Details view.
9176         * DrawListViewColumnHeaderEventArgs.cs:
9177         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
9178         using the DrawText () methods.
9179
9180 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
9181
9182         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
9183         background which got erased in my changes yesterday.
9184
9185 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9186
9187         * ListViewItem.cs: Actually set bounds for subitems in Details view
9188         (2.0 feature).
9189         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
9190         can invoke from the owner draw routines if we need it. Also, add
9191         support for Owner draw in Details view.
9192
9193 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9194
9195         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
9196         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
9197         ShowImageMargin setting, properly align text in a ToolStripLabel
9198         hosted on a ToolStripDropDown.
9199
9200 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9201
9202         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
9203         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
9204
9205 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9206
9207         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
9208
9209 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
9210
9211         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
9212         location to match ToolStripMenuItems.
9213
9214 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9215
9216         * DrawListViewColumnHeaderEventArgs.cs:
9217         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
9218         column headers in ListView. 
9219
9220 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
9221
9222         * UserControl.cs: Implement AutoSize.
9223
9224 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9225
9226         * DrawListViewItemEventArgs.cs:
9227         * ListView.cs:
9228         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
9229         ListView.
9230
9231 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
9232
9233         * ToolStripDropDownItemAccessibleObject.cs: Added.
9234         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
9235         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
9236         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
9237         ToolStripTextBox.cs: corcompare work.
9238
9239 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
9240
9241         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
9242         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
9243         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
9244                 corcompare.
9245
9246 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
9247
9248         * OSFeature.cs: Add IsPresent.
9249         * PrintPreviewControl.cs: Add RightToLeft.
9250         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
9251         * SplitterPanel.cs: Add AutoSizeMode.
9252
9253 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9254
9255         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
9256         * MdiClient.cs: Add 2.0 ScaleControl.
9257         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
9258         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
9259
9260 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9261
9262         * Form.cs: Implement some scaling methods, stub some RTL methods,
9263         corcompare work.
9264
9265 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9266
9267         * Control.cs: corcompare work.
9268         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
9269
9270 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
9271
9272         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
9273         ControlPaint 2.0 stuffs.
9274
9275 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9276
9277         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
9278
9279 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9280
9281         * UpDownBase.cs: Add 2.0 stuffs.
9282
9283 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9284
9285         * NumericUpDown.cs: Add 2.0 stuffs.
9286
9287 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9288
9289         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
9290
9291 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9292
9293         * ErrorProvider.cs: Implement 2.0 stuffs.
9294
9295 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9296
9297         * DomainUpDown.cs: Implement 2.0 stuffs.
9298
9299 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9300
9301         * CheckedListBox.cs: Fix RefreshItems signature.
9302
9303 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
9304
9305         * PictureBox.cs: Implement 2.0 stuffs.
9306
9307 2007-06-12  Andreia Gaita  <avidigal@novell.com>
9308         
9309         * TabControl.cs: Check if there are tabpages before checking
9310         the selected index - fix #81802 (font changes raise a ResizeTabs
9311         call on controls.add, which blew up nicely with no tabpages)
9312
9313 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9314
9315         * ListView.cs:
9316         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
9317
9318 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9319
9320         * ListView.cs:
9321         * ListViewItem.cs: In VirtualMode the selection information
9322         resides in the ListView, rather than in the Items. Also, throw
9323         InvalidOperationExceptions when VirtualMode is being used and
9324         CheckedItemCollection is accessed.
9325
9326 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9327
9328         * ComboBox.cs: Add ScaleControl.
9329
9330 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9331
9332         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
9333
9334 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9335
9336         * GroupBox.cs: Add 2.0 stuffs.
9337
9338 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
9339
9340         * Panel.cs: Add autosize properties/event.
9341
9342 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
9343
9344         * Control.cs:
9345         - When we remove a control, remove it from the collection before performing the layout.
9346         - Setup an internal property for explicit_bounds.
9347         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
9348         - Perform a layout when we set a new AutoSizeMode.
9349
9350 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
9351
9352         * ScrollableControl.cs: Add 2.0 stuffs.
9353
9354 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9355
9356         * ScrollBar.cs: Add 2.0 stuffs.
9357
9358 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9359
9360         * Splitter.cs: Add 2.0 stuffs.
9361
9362 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9363
9364         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
9365         to have BindingContext simply use base implementation.
9366
9367 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9368
9369         * ColumnHeader.cs: corcompare fix.
9370
9371 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9372
9373         * Button.cs: corcompare fixes.
9374         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
9375
9376 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
9377
9378         * Button.cs: Override GetPreferredSizeCore.
9379         * ButtonBase.cs: PerformLayout after changing properties that can affect
9380         AutoSize.  Simplify some mouse/keyboard code.
9381         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
9382         * MouseEventArgs.cs: Make Location internal for 1.1.
9383         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
9384         * Theme.cs: Add CalculateButtonAutoSize.
9385         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
9386
9387 2007-06-05  Miguel de Icaza  <miguel@novell.com>
9388
9389         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
9390
9391 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9392
9393         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
9394         since we can get different item instances every time we retrieve it.
9395
9396 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9397
9398         * ListView.cs: Work around for #81602, since an unkown an pretty
9399         infrequent condition appears only in some systems (old linux boxes, it
9400         seems).
9401
9402 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9403
9404         * Button.cs: Completely reformat and a little refactor to bring
9405         this closer to Mono circa 2007.
9406
9407 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9408
9409         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
9410         to be ButtonBase.Invalidate.
9411
9412 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9413
9414         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
9415
9416 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
9417
9418         * ButtonBase.cs: Completely reformat and a little refactor to bring
9419         this closer to Mono circa 2007.
9420
9421 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
9422
9423         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
9424         values for autosize. Fixes #80137.
9425
9426 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9427
9428         * Control.cs: Don't perform layout when AutoSize changes.
9429         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
9430         directly when autosizing, use SetBounds with BoundsSpecified.None.
9431         Fixes unit tests my last commit broke.
9432
9433 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9434
9435         * Control.cs: Perform layout when AutoSize changes.
9436         * Form.cs: Implement AutoSizing.
9437
9438 2007-06-01  Chris Toshok  <toshok@ximian.com>
9439
9440         * DataGrid.cs: remove the XXX'ed check at the top of
9441         ProcessGridKey.  fixes #80464.
9442
9443 2007-06-01  Chris Toshok  <toshok@ximian.com>
9444
9445         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
9446         adding idempotent (add/remove in Edit()), and also make sure we
9447         don't add it until after we set the text, so it's not tripped in
9448         Edit().  Fixes unit test regression.
9449
9450 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
9451
9452         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
9453         change is user explicit, not when the layout engine moves stuff.  Fixes
9454         anchoring to bottom and right.  [Fixes bug #81790]
9455
9456 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9457
9458         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
9459
9460 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9461
9462         * ContainerControl.cs: 
9463         Fire enter event for common ancestor if it is not a ContainerControl.
9464         Send focus to the active_control and not the 'value', the active 
9465         control might have been changed in one of the events fired.     
9466         Definitely fixes #80159.
9467
9468 2007-06-01  Andreia Gaita  <avidigal@novell.com>
9469
9470         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
9471
9472 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9473
9474         * PropertyGrid.cs: Anchor the help description to the bottom of the
9475           help panel and refactor SelectGridItem into a
9476           SelectGridItemInternal that can be set to null (and update it to
9477           clear the help texts when it is set to null). Set root item to null
9478           when there's no SelectedObject. Fixes #80438.
9479         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
9480           when we're recalculating after a resize (only).
9481
9482 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9483
9484         * ListView.cs: Implement 2.0 RedrawItems method.
9485
9486 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9487
9488         * ListControl.cs: Disconnect PositionChanged and ItemChanged
9489         handlers from previous data manager when DataSource is set to
9490         null. Fixes #81771.
9491
9492 2007-05-31  Jackson Harper  <jackson@ximian.com>
9493
9494         * TextBoxBase.cs: These seem to be the correct values.
9495
9496 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
9497
9498         * FileDialog.cs: When close dialog with ok set filterindex using combobox
9499         value. Fixes #81784.
9500
9501 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
9502
9503         * Control.cs: Implement 2.0 scaling methods.
9504
9505 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9506
9507         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
9508           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
9509           corcompare issues.
9510
9511 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9512
9513         * ProgressBar.cs: Implemented missing 2.0 members.
9514
9515 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9516
9517         * Control.cs: Corcompare issues.
9518         * MessageBox.cs: Implemented missing 2.0 functions.
9519
9520 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9521
9522         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9523           Implemented more 2.0 members.
9524
9525 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9526
9527         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
9528           null (strange, but it seems to happen when running unit tests).
9529
9530 2007-05-30  Andreia Gaita  <avidigal@novell.com>
9531
9532         * ContainerControl.cs: Set active_control even earlier, before 
9533         firing any events, and undo it if validation returns false.
9534
9535 2007-05-30  Andreia Gaita  <avidigal@novell.com>
9536
9537         * ContainerControl.cs: Raise Validation and Enter/Leave events
9538         even if there is no Form and set active_control earlier, just
9539         before firing Enter events (toshok's patches). Fixes #80647.
9540
9541 2007-05-30  Jackson Harper  <jackson@ximian.com>
9542
9543         * TextControl.cs: Redid the pageup/pagedown a little to simplify
9544         things and fix bug #81311.
9545
9546 2007-05-30  Jackson Harper  <jackson@ximian.com>
9547
9548         * X11Dnd.cs: Now that we have our own event loop, we need to
9549         cancel when we get a mouseup but it won't be accepted.
9550
9551 2007-05-30  Chris Toshok  <toshok@ximian.com>
9552
9553         * DataGrid.cs (set_CurrentCell): guard against negative
9554         column/row.
9555
9556         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
9557         array index syntax instead of looping over the property names.
9558
9559         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
9560         and set IsInEditOrNavigateMode to false there.
9561
9562 2007-05-30  Jackson Harper  <jackson@ximian.com>
9563
9564         * TreeView.cs: Make sure we don't get a bad visible order when
9565         setting to the top node.  Fixes some misc crashing in
9566         ControlInspector.
9567
9568 2007-05-30  Andreia Gaita  <avidigal@novell.com>
9569
9570         * UserControl.cs: Add 2.0 AutoSizeMode
9571
9572 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
9573
9574         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
9575
9576 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
9577
9578         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
9579         lines. Fixes #80285. 
9580
9581 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
9582
9583         * DataGridColumnStyle.cs: Add char trimming column header text format. 
9584
9585 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
9586
9587         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
9588         Fixes #80147.
9589
9590 2007-05-29  Jackson Harper  <jackson@ximian.com>
9591
9592         * TreeNode.cs: Fix off by one on calculating whether or not a node
9593         is visible.
9594
9595 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
9596
9597         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
9598         * ScrollableControl.cs: Force an UpdateDistances when we move the
9599         scrollbars.
9600         [Fixes bug #80605]
9601
9602 2007-05-29  Andreia Gaita  <avidigal@novell.com>
9603
9604         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
9605         update the page setup screen.
9606
9607 2007-05-29  Andreia Gaita  <avidigal@novell.com>
9608
9609         * PageSetupDialog.cs: Fix landscape mode.
9610
9611 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9612
9613         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
9614         IconSizeHorizontalSpacing.
9615
9616 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9617
9618         * ListView.cs: The declaration of prev_tooltip_item should be inside
9619         a NET_2_0 conditional (avoid a warning).
9620
9621 2007-05-28  Andreia Gaita  <avidigal@novell.com>
9622
9623         * PageSetupDialog.cs: Implement PrintPreview control to display
9624         the preview thumbnail. Change unit conversion to use 
9625         PrinterUnitConvert methods.
9626         
9627         Note: there is a huge bug in ms.net where the default margins are 
9628         interpreted as centimeters (?), when in fact they are set in inches. When 
9629         loading the page setup dialog initially (ms.net), the default margins 
9630         are set to 1 inch, and the dialog shows them with value 10, when in fact 
9631         it should be 25 (properly converted). Our dialog doesn't have this bug.
9632         
9633         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
9634         RectangleF.
9635         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
9636
9637 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9638
9639         * ListView.cs:
9640         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
9641         items.
9642
9643 2007-05-28  Andreia Gaita  <avidigal@novell.com>
9644
9645         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
9646         an IntPtr on csc (it builds fine on mcs, could it be a compiler
9647         bug?), convert the ptr to Int32 first.
9648
9649 2007-05-28  Jackson Harper  <jackson@ximian.com>
9650
9651         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
9652         recieved, we will exit the dnd tracking loop.
9653
9654 2007-05-28  Jackson Harper  <jackson@ximian.com>
9655
9656         * X11Dnd.cs: Keep tracking until the xdnd finished event is
9657         recieved. TODO: I should probably stick a timer on the dropped
9658         event, and finish the drag if the XDND Finished event never shows
9659         (because some apps don't seem to send it).
9660
9661 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
9662
9663         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
9664         #81733.
9665
9666 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9667
9668         * MonthCalendar.cs: Only mark the keypresses we actually handle as
9669           handled.
9670
9671 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9672
9673         * MonthCalendar.cs: Set the size after initializing all the relevant
9674           variables. Fixes #81742.
9675
9676 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9677
9678         * KeyEventArgs.cs: Fix typo.
9679
9680 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
9681
9682         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
9683         to match MS. Fixed MinDate to only accept value less than or equal
9684         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
9685         Removed TODO's that are now verified by unit tests.
9686
9687 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
9688
9689         * TreeNodeCollection.cs: Minor corrections to exceptions to match
9690         MS.
9691
9692 2007-05-25  Jackson Harper  <jackson@ximian.com>
9693
9694         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
9695         it's own message loop.
9696         * XplatUIX11.cs: Remove some of the dnd hooks
9697
9698 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
9699
9700         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
9701         instead of MinimizedWindowSize.
9702
9703 2007-05-25  Jackson Harper  <jackson@ximian.com>
9704
9705         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
9706
9707 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9708
9709         * KeyEventArgs.cs: Added SuppressKeyPress.
9710         * Control.cs: Added support for SuppressKeyPress.
9711
9712 2007-05-24  Andreia Gaita  <avidigal@novell.com>
9713
9714         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
9715         problems with PieChart. suppress_validation should not be a counter,
9716         if there are several BeginInit calls, the first EndInit will 
9717         activate validation. Fix exceptions thrown by set_Value.
9718         * UpDownBase.cs: ValidateText only if it's the user editing it.
9719
9720 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9721
9722         * ListControl.cs: FilterItemOnProperty should return the filtered
9723         item proeprty even if DataSource is null. The same applies for
9724         GetItemText. Fixes #80427.
9725
9726 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
9727
9728         * Control.cs: If a control doesn't have a parent when it's Dock is
9729         set, but it has children, it needs to do a layout.  Fixes some nested
9730         controls issues.  [Fixes bug #81199]
9731
9732 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9733
9734         * ComboBox.cs: If there are few items in the drop down list, make it
9735           the exact size the items need, no bigger. Fixes #81612.
9736
9737 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
9738
9739         * Application.cs: When we have captured the keyboard for a menu,
9740         check for mouse down events in case we need to close the menu.
9741         * Control.cs, Form.cs: Remove mouse down checks for menus.
9742
9743 2007-05-24  Jackson Harper  <jackson@ximian.com>
9744
9745         * TextControl.cs: Handle tabs in non multiline mode a little
9746         differently.
9747
9748 2007-05-24  Jackson Harper  <jackson@ximian.com>
9749
9750         * TextControl.cs: We need to manually break apart tabbed text and
9751         move the tabs, since the system.drawing tabbing mechanism relies
9752         on tab stops.
9753         * TextBoxBase.cs: Move the caret properly when the user enters a
9754         tab.
9755
9756 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
9757
9758         * ContainerControl.cs: Don't check CanSelect before calling
9759         ProcessMnemonic.
9760         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
9761         release a KeyboardActive on click if it's not ours.
9762
9763 2007-05-23  Andreia Gaita  <avidigal@novell.com>
9764
9765         * ColumnHeader.cs: Add TypeConverter
9766
9767 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9768
9769         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
9770
9771 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9772
9773         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
9774
9775 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9776
9777         * LinkLabel.cs: Implement public Padding property.
9778
9779 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9780
9781         * LinkLabel.cs: Implement public FlatStyle.
9782
9783 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
9784
9785         * Control.cs: Apply patch from George to call parent.PerformLayout
9786         when Visible is changed.  [Fixes bugs #81118, 81718]
9787
9788 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9789
9790         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
9791
9792 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9793
9794         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
9795
9796 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
9797
9798         * ContextMenu.cs: Implement Collapse.
9799
9800 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
9801
9802         * ToolBarButton.cs: Implement Name.
9803
9804 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
9805
9806         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
9807         use current_item, it prevents some NRE. Fixes #81675.  
9808
9809 2007-05-22  Andreia Gaita  <avidigal@novell.com>
9810
9811         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
9812         without updating the text.
9813
9814 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
9815
9816         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
9817         without calling DeleteObject.  [Should fix bug #81709]
9818
9819 2007-05-22  Jackson Harper  <jackson@ximian.com>
9820
9821         * RichTextBox.cs: Set the line endings correctly, when flushing
9822         RTF text.
9823
9824 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
9825
9826         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
9827          {Width=0,Height=0}.
9828
9829 2007-05-22  Jackson Harper  <jackson@ximian.com>
9830
9831         * TreeView.cs: Setting top with a null node should set to the very
9832         top.
9833
9834 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9835
9836         * Form.cs: ShowDialog: destroy the handle when message loop is
9837           finished, matches MS behaviour. Refactor parts of WmClose into
9838           RaiseCloseEvents, that only raises events if they haven't already
9839           been raised. Fixes #81688 and #81521.
9840         * Application.cs: Don't call close on the form when exiting a modal
9841           loop, it will raise all the (Form)Closed/Closing events again if
9842           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
9843           which doesn'r raise any events it they have been raised before.
9844
9845 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
9846
9847         * Control.cs: Add OnPrint.
9848         * ToolStrip.cs: Add GetChildAtPoint.
9849         * ToolStripContainer.cs: Add OnRightToLeftChanged.
9850         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
9851
9852 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
9853
9854         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
9855
9856 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9857
9858         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
9859           isn't visible anymore. Fixes #81651.
9860
9861 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9862
9863         * Control.cs: WmShowWindow: Update children's z-order after setting
9864           their parent. SetParent may show the window, thereby corrupting
9865           z-order, since the window will be shown on top.
9866         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
9867           multiple (and redundant) WM_SHOWWINDOW messages.
9868         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
9869           event has already been raised.
9870         * Form.cs: Change is_changing_visible_state to a counter, since
9871           SetVisibleCore can be called recursively. CreateHandle: when
9872           creating mdi children, send (De)Activated events.
9873         * MdiClient.cs: Update use of is_changing_visible_state.
9874         * Application.cs: OnThreadException: Surround exception handling with
9875           try/finally to ensure we always reset the error-handling state
9876           before leaving.
9877
9878 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9879
9880         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
9881           (#81704).
9882
9883 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9884
9885         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
9886         SmallIcon views, now that we have a standarized horizontal spacing.
9887
9888         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
9889         4, just like the other views (Match .Net).
9890
9891 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
9892
9893         * Control.cs: Delay calculating anchor distances until we actually layout.
9894         Always query the WM for the actual size and location it put us at instead of
9895         only when we send negative values.
9896         [Fixes bugs #81694, 81695]
9897
9898 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9899
9900         * Application.cs: Avoid a possible stack overflow when trying to exit
9901           the application.
9902
9903 2007-05-19  Marek Safar  <marek.safar@gmail.com>
9904
9905         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
9906         enum value.
9907
9908 2007-05-19  Andreia Gaita  <avidigal@novell.com>
9909
9910         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
9911         * NumericUpDownAcceleration.cs, 
9912           NumericUpDownAccelerationCollection.cs: Added 2.0
9913           implementation.
9914
9915 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
9916
9917         * RichTextBox.cs: Recalculate the document after the ScrollBars
9918         property is changed. Fixes bug #81681.
9919
9920 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
9921
9922         * DataObject.cs: Implement 2.0 methods.
9923
9924 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9925
9926         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
9927         in the center of the checkbox, not in the left-top corner. 
9928         Fixes #80037.
9929
9930 2007-05-18  Jackson Harper  <jackson@ximian.com>
9931
9932         * RichTextBox.cs: Recalculate the document after the scrollbars
9933         property is changed.
9934         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
9935         81486.
9936
9937 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9938
9939         * CreateParams.cs: Make HasWindowManager marginally faster.
9940         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
9941           into Hwnd so that other drivers can use it as well.
9942         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
9943           the default location from Hwnd. Fixes MDI client windows always
9944           showing up at (0,0) in Windows (Win32 won't set the default
9945           location since the window styles aren't correct).
9946
9947 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
9948
9949         * TreeView.cs: Modified DoubleBuffered to just use the base
9950         implementation.
9951
9952 2007-05-18  Jackson Harper  <jackson@ximian.com>
9953
9954         * TreeView.cs: Set the top node to the last child node when
9955         expanding all
9956         - When we get focus, if there is no selected node, use the top
9957         node.
9958
9959 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
9960
9961         * KeysConverter.cs: Add CanConvertTo.
9962         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
9963         * LinkConverter.cs: Added.
9964
9965 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9966
9967         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
9968         it prevents error when file dont have write access. Fixes #81669 and #81667.  
9969
9970 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9971
9972         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
9973         button text. Fixes #79640.  
9974
9975 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9976
9977         * Control.cs: According to MSDN controls created in the designer theres 
9978         keyboard accelerators visible by default. So included check for design
9979         in ShowKeyboardCuesInternal.  
9980
9981 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9982
9983         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
9984         text. Fixes #81621.  
9985
9986 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9987
9988         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
9989         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
9990
9991 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
9992
9993         * Control.cs: Finish implementation of UI State using WmChangeUIState
9994         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
9995         in some controls to check for show_keyboard_cues to draw accell keys "_".  
9996
9997 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9998
9999         * ListBox.cs: When calculating the horizontal scrollbar
10000         in single column mode, don't use values less than 0 for
10001         Maximum. Fixes #81474.
10002
10003 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10004
10005         * ListBox.cs: Throw the some missing exceptions in
10006         ListBox.ObjectCollection methods.
10007
10008 2007-05-17  Jackson Harper  <jackson@ximian.com>
10009
10010         * TextBoxBase.cs: Recalculate the document when the word wrap
10011         value has changed. This fixes 81488.
10012
10013 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10014
10015         * Clipboard.cs: Implement missing GetText overload.
10016
10017 2007-05-17  Chris Toshok  <toshok@ximian.com>
10018
10019         * Control.cs (CheckDataBindings): remove the binding_context arg
10020         to binding.Check.
10021
10022         * CurrencyManager.cs (OnItemChanged): fix this now that
10023         BindingManagerBase is fixed. also remove the comment telling where
10024         the fix should go.  We set transfering_data to true/false around
10025         the call to PushData to keep UpdateIsBinding from being called.
10026         (ListChangedHandler): remove the extra OnMetaDataChanged call for
10027         PropertyDescriptorAdded in the 1.1 case.  The extra call is
10028         actually generated by System.Data generating 2 metadata changed
10029         events of its own per column add.  The fix should go there.  Add a
10030         comment to that affect in our test's Assert.Ignore.
10031
10032         * BindingManagerBase.cs: Rework PullData and PushData slightly.
10033         we keep a boolean flag (transfering_data) that keeps us from
10034         calling UpdateIsBinding multiple times if we re-enter either of
10035         them.
10036
10037         * ControlBindingsCollection.cs (AddCore): remove the
10038         binding_context arg to binding.Check.
10039
10040         * Binding.cs (IsBinding): don't check if we're binding here, just
10041         return our cached value.  we update it in UpdateIsBinding.
10042         (Check): don't take the binding_context arg, we'll just use our
10043         control's.  Also, for some reason MS doesn't use the data member
10044         field when getting the bindingmanager for this binding.  it just
10045         uses the datasource.  Make this method callable multiple times,
10046         and only do the is_null_desc stuff if manager.Position != -1 (so
10047         we don't get an exception accessing manager.Current).
10048         (UpdateIsBinding): move the code from IsBinding here.
10049         (PositionChangedHandler): call Check here to we can initialize
10050         things that require a non- -1 position.
10051
10052 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
10053
10054         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
10055         control.
10056
10057 2007-05-17  Andreia Gaita  <avidigal@novell.com>
10058
10059         * TabControl.cs: Add 2.0 methods and events, including
10060         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
10061         * TabPage.cs: Add 2.0 methods
10062
10063 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
10064
10065         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
10066         keyboard_cues is properly handled by message method.  
10067
10068 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10069
10070         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
10071
10072 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
10073
10074         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
10075
10076 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
10077
10078         * Control.cs: 
10079         - WmUpdateUIState added to handle state changes, it make call to
10080         OnChangeUICues event.
10081         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
10082         SystemInformation.
10083
10084 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
10085
10086         * ImageKeyConverter.cs: Added.
10087         * TreeViewImageKeyConverter.cs: Added.
10088
10089 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10090         
10091         * ToolTips.cs: Update Text if SetToolTip is called for a control
10092         already showing the tooltip, as well as restarting its timer; show
10093         tooltip if we are inside the control bounds by the time of calling
10094         SetToolTip. Inside ShowTooltip remove the check to not show the 
10095         tooltip again for the active control (it is allowed by .Net to 
10096         show the tooltip on the same control multiple times).
10097
10098 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10099
10100         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10101
10102 2007-05-16  Andreia Gaita <avidigal@novell.com> 
10103
10104         * ContainerControl.cs: only process tab key if there are no 
10105         modifier keys present, otherwise the control does the 
10106         tab processing, if it needs to. Fixes #81622
10107         * TabControl.cs: Fixes calculation for which tab to select on
10108         shift+ctrl+tab.
10109
10110 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10111
10112         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10113
10114 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
10115
10116         * Control.cs: Make IsInputCharInternal to allow controls to
10117         override it and still match MS API.
10118         * TextBoxBase.cs: Override IsInputCharInternal and always
10119         return true.
10120         [Fixes bug #81616]
10121
10122 2007-05-15  Jackson Harper  <jackson@ximian.com>
10123
10124         * TextBox.cs: Disable some of the menu options when using a
10125         readonly textbox.
10126
10127 2007-05-15  Jackson Harper  <jackson@ximian.com>
10128
10129         * TextBox.cs:
10130         * TextBoxBase.cs:
10131         * RichTextBox.cs: Some new 2.0 methods
10132
10133 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
10134
10135         * FileDialog.cs: On 1.0 profile, do not support multidotted 
10136         extensions.
10137
10138 2007-05-14  Jackson Harper  <jackson@ximian.com>
10139
10140         * TextBoxBase.cs: Implement some of the new 2.0 methods.
10141         * RichTextBox.cs: We need to override these methods on 2.0.
10142         * MaskedTextBox.cs: These are implemented now
10143         * TextControl.cs: This was off by one.
10144
10145 2007-05-14  Jackson Harper  <jackson@ximian.com>
10146
10147         * TextControl.cs: Because the line endings are including in the
10148         text, we don't need to add them in anymore.
10149
10150 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10151
10152         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
10153         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
10154
10155 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10156
10157         * ToolBar.cs: Adjust size to default size when button theres no text and
10158         image, it fixes remaining issues from #81524.
10159
10160 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10161
10162         * ToolBar.cs: 
10163         - When not flat call redraw to recalculate sizes on creare handle to match
10164         win32 behavior.
10165         - Revert 77220 because it causes some regressions in toobar
10166         button.
10167
10168 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10169
10170         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
10171           now actually enters a usable state.
10172
10173 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10174
10175         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
10176         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
10177         3 buttons.
10178
10179 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10180
10181         * ToolBar.cs: Save default_size on create handle to use later for buttons
10182         without text, needed to mimic win32 behavior.
10183
10184 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
10185
10186         * ToolBar.cs: Fix button layour to best fit width or height according to
10187         vertical or not. Fixes #81524.
10188
10189 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
10190
10191         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
10192         toolbar size info because different styles theres different sizes.
10193         Fixes #81522.
10194
10195 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10196
10197         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
10198         if we are using checkboxes, checked is true, and we have less
10199         than two images in StateImageList; for the 1.1 in the same scenario
10200         draw the first image if we have at least one image in StateImageList.
10201         Fixes part of #81191.
10202
10203 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10204
10205         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
10206         the owner's Items collection on merge.
10207
10208 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10209
10210         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
10211         * ToolStripItemCollection.cs: Lots of fixes to when events get called
10212         and parent/owner gets changed based on gert's unit tests.
10213
10214 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10215
10216         * MaskedTextBox.cs: Started implementing parts of it.
10217
10218 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10219
10220         * ListView.cs: When clicking the checkbox on the items
10221         take into account the double clicks even if we have only
10222         one image in StateImageList (only for 1.0/1.1). Also 
10223         generate an extra change of checked state when we receive
10224         the second click on checkbox (match .Net behaviour). 
10225         Fixes part of #81191.
10226
10227 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
10228
10229         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
10230
10231 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
10232
10233         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
10234         even if OnLoad is overriden and base.OnLoad is not called.
10235         [Fixes bug #81582]
10236
10237 2007-05-10  Andreia Gaita  <avidigal@novell.com>
10238
10239         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
10240         shame. (I blame my ever-persisting and annoying cold)
10241
10242 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10243
10244         * ListView.cs: Don't eat navigation keys.  Let them flow through to
10245         KeyDown/KeyPress routines.  [Fixes bug #81569]
10246
10247 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10248
10249         * ListView.cs: When handling keys for selecting the item based off
10250         keyboard input, do not consider keys pressed with Alt or Control.  Also,
10251         correctly handle keys when the Shift key is down. [Fixes bug #81578]
10252
10253 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10254
10255         * Control.cs: When using UseWaitCursor, we have to store the requested
10256         Cursor to use when UseWaitCursor is turned off.
10257
10258 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
10259
10260         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
10261         to false.
10262         * Application.cs: Use PreProcessControlMessage instead of
10263         PreProcessMessage.
10264         * PreProcessControlMessage.cs: Make internal for 1.1.
10265
10266 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10267
10268         * Control.cs: Add InternalContains focus property, which hast the same
10269         functionality of ContainsFocus, but also including implicit controls.
10270         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
10271         since we need to know if the focus is contained in our implicit
10272         ItemControl when calculating Layout. Fixes part of #80888.
10273
10274 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
10275
10276         * ToolTip.cs: Remove center form string alignment as it must be align to
10277         left.
10278
10279 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
10280
10281         * ToolStripItemCollection.cs: Set the new item's parent and owner
10282         in Insert like we do in Add.  [Fixes bug #81568]
10283
10284 2007-05-08  Jackson Harper  <jackson@ximian.com>
10285
10286         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
10287         - Off by one error in SetTop
10288         - Disable DoubeBuffering
10289         
10290 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10291
10292         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
10293           control as much as necessary in order to make it entirely visible,
10294           instead of centering the control in the container (matches MS
10295           behaviour). CalculateCanvasSize: we need to take the current scroll
10296           position into account when calculating the maximum canvas,
10297           otherwise the following scenario will fail: resize so that the
10298           scrollbars appear, use the scrollbars to scroll, resize again
10299           smaller, and now the canvas size is too small. Recalculate: when
10300           showing scrollbars make sure they start off at 0, and try to scroll
10301           the active control into view. Fixes #79540. HandleScrollBar: don't
10302           scroll anywhere if the scrollbar isn't visible.
10303
10304 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10305
10306         * ListView.cs: When focus changed, call Layout/Invalidate
10307         in the focused item to update the selected state (should show
10308         entire label when ListView is focused, and a part of it if is not).
10309         * ListViewItem.cs: When doing layout for LargeIcon, take into account
10310         for displaying the entire label not only the Focused state of the
10311         item, but also the Focused state of the ListView (match .Net
10312         behaviour).
10313
10314 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10315
10316         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
10317         Implement UseWaitCursor. 
10318
10319 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10320         Applying contributed patch from Sergey Volk.
10321
10322         * Clipboard.cs: Implement SetDataObject retry logic and new overload
10323         of SetDataObject.
10324         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
10325
10326 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10327
10328         * Control.cs: Implement DrawToBitmap.
10329
10330 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10331         Applying contributed patch from Stefan Noack.
10332         
10333         * Control.cs: Add [Get|Set]AutoSizeMode.
10334
10335 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10336
10337         * MdiClient.cs: Unmerge menus when the last child is closed.
10338
10339 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
10340
10341         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
10342         * ToolStripManager.cs: Call Merge on DropDowns.
10343         [Fixes bug #81477]
10344
10345 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10346
10347         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
10348           uints.
10349         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
10350           visibility. We can't create forms visible, since we have to set the
10351           owner before making the form visible (otherwise Win32 will do
10352           strange things with task bar icons). The problem is that we set the
10353           internal is_visible to true before creating the control, so
10354           is_changing_visible_state is the only way of determining if we're
10355           in the process of creating the form due to setting Visible=true -
10356           this works because SetVisibleCore explicitly makes the form
10357           visibile afterwards anyways. Fixes #80775.
10358
10359 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10360
10361         * ThemeWin32Classic.cs: When drawing ListViewItems,
10362         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
10363         or LargeIcon _and_ item is not focused (match .Net behaviour).
10364
10365 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
10366
10367         * Control.cs, Form.cs: Fix some obsolete method warnings.
10368
10369 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
10370
10371         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
10372         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
10373
10374 2007-05-04  Andreia Gaita  <avidigal@novell.com>
10375
10376         * ContainerControl.cs: Fix active_control attribution when going
10377         up the parent chain so that the first parent container gets the control
10378         and the rest of the parent containers get the child containers (skips
10379         non-containers). Fixes #80729
10380
10381 2007-05-04  Randolph Chung  <tausq@debian.org>
10382
10383         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
10384         [Fixes bug #81499]
10385
10386 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10387
10388         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
10389           takes a size parameter, since the CreateParam's size isn't true for
10390           minimized forms. Fixes #81518,
10391
10392 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10393
10394         * Form.cs: Add OnDeactivateInternal.
10395         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
10396
10397 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10398
10399         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
10400           accessing the parent. Fixes #81508.
10401
10402 2007-05-03  Chris Toshok  <toshok@ximian.com>
10403
10404         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
10405         2.0 block, pass listposition + 1 to ChangeRecordState when a row
10406         was added before the current listposition.  Fixes the
10407         TestInsertRowBeforeCurrent unit test.
10408
10409 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
10410
10411         * Application.cs: Add RaiseIdle.
10412         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10413         XplatUIX11.cs: Implement RaiseIdle.
10414
10415 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
10416         corcompare work: N - Z
10417         * NotifyIcon.cs
10418         * ProgressBar.cs
10419         * RadionButton.cs
10420         * ScrollableControl.cs
10421         * SplitContainer.cs
10422         * SplitterPanel.cs
10423         * StatusBar.cs
10424         * SystemInformation.cs
10425         * TabControl.cs
10426         * TableLayoutControlCollection.cs
10427         * TableLayoutPanel.cs
10428         * TabPage.cs
10429         * ToolBar.cs
10430         * ToolBarButton.cs
10431         * ToolStrip.cs
10432         * ToolStripComboBox.cs
10433         * ToolStripContainer.cs
10434         * ToolStripContentPanel.cs
10435         * ToolStripDropDown.cs
10436         * ToolStripDropDownItem.cs
10437         * ToolStripDropDownMenu.cs
10438         * ToolStripItem.cs
10439         * ToolStripItemCollection.cs
10440         * ToolStripMenuItem.cs
10441         * ToolStripPanel.cs
10442         * ToolStripSplitButton.cs
10443         * ToolTip.cs
10444         * TreeNode.cs
10445         * TreeNodeCollection.cs
10446         * TreeNodeMouseHoverEventArgs.cs
10447         * TreeView.cs
10448
10449 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
10450
10451         * ContextMenu.cs: Add public method Show with alignment property to 2.0
10452         stuff. Thanks aatdark for the patch. 
10453
10454 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10455
10456         * GridItem.cs: Implement 2.0 Tag property.
10457
10458 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
10459
10460         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
10461         count instead of Nodes.Length.  [Fixes bug #81448]
10462
10463 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10464
10465         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
10466         [Fixes bug #81506]
10467
10468 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10469         corcompare work: A - M
10470         * BindingNavigator.cs
10471         * Button.cs
10472         * ButtonBase.cs
10473         * CheckBox.cs
10474         * Control.cs
10475         * FlowLayoutPanel.cs
10476         * Form.cs
10477         * Label.cs
10478         * LinkLabel.cs
10479         * ListView.cs
10480
10481 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
10482
10483         * Application.cs: Give toolstrips a chance to process mnemonics.
10484         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
10485         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
10486         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
10487
10488 2007-05-01  Jackson Harper  <jackson@ximian.com>
10489
10490         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
10491         wider area too.
10492         - Don't set the BoundsSpecified
10493
10494 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10495
10496         * Application.cs: When using the toolstrip shortcut mechanism, allow the
10497         message to pass through to a regular control if it hosted by a toolstrip.
10498         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10499         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
10500
10501 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10502
10503         * TextRenderer.cs: Use the flags argument when using the MeasureString
10504         fallback algorithm.
10505
10506 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
10507
10508         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
10509         the MDI menu item.  [Fixes bug #81483]
10510
10511 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
10512
10513         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
10514         string. When setting Name to null, use zero-length string instead.
10515
10516 2007-04-29  Andreia Gaita  <avidigal@novell.com>
10517
10518         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
10519         DeselectTab). Implement missing 2.0 TabPageCollection methods
10520         (Add, ContainsKey, RemoveByKey, IndexOfKey)
10521
10522 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
10523
10524         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
10525
10526 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
10527
10528         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
10529         Fixes bug #81479. Include details of exception when LoadFile fails.
10530
10531 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
10532
10533         * DrawListViewSubItemEventArgs.cs: Added missing setter
10534
10535 2007-04-27  Andreia Gaita  <avidigal@novell.com>
10536
10537         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
10538         Hide methods (not complete). Implement missing 2.0 OnPopup event.
10539
10540 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10541
10542         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
10543         removed in ly last commit (it was breaking the Label edit feature).
10544
10545         * ThemeWin32Classic.cs: When drawing a ListViewItem use
10546         StringAlignment.Near for LineAlignment (match .Net).
10547
10548 2007-04-27  Andreia Gaita  <avidigal@novell.com>
10549
10550         * TabControl.cs: Change SetTab so it adds the tabpage to the list
10551         of controls if it isn't already there - was blowing up when doing
10552         tabcontrol.TabPages[i]=new TabPage(). 
10553         SetTab now does a replace by removing the page at the index. 
10554         Add a new InsertTab method that inserts a page in a given index 
10555         instead of replacing. 
10556         Implements TabPageCollection.Insert(int, TabPage).
10557
10558 2007-04-27  Chris Toshok  <toshok@ximian.com>
10559
10560         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
10561         internal handler that can be invoked from our subclasses.)  Also,
10562         add a comment to PushData about how we need to fix it.
10563
10564         * CurrencyManager.cs: tons of changes here.  trying to get things
10565         matching the behavior of .net wrt event orders (ItemChanged,
10566         CurrentChanged, PositionChanged.)  I've implemented a private .net
10567         symbol (ChangeRecordState) that appears in stack traces because
10568         it's actually easier to do this than to effective inline all its
10569         various behaviors at every call site.
10570
10571         * RelatedPropertyManager.cs: guard against an exception here by
10572         not using parent.Current if the position is set to -1 (if the
10573         parent datasource is cleared, for instance).
10574
10575         * Binding.cs: don't parse data in PushData (this might be wrong,
10576         but it jives with MS's behavior.)  Also, don't call PushData when
10577         we get a CurrentChanged event.
10578
10579 2007-04-27  Andreia Gaita  <avidigal@novell.com>
10580
10581         * WebBrowser.cs,
10582           WebBrowserBase.cs,
10583           WebBrowserSiteBase.cs,
10584           HtmlDocument.cs: Added stubbed out classes, no real implementations 
10585           yet.
10586
10587 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
10588
10589         * MainMenu.cs: In draw method without parameters call draw method with 
10590         PaintEvent, another one (just rect) adjust rectangle and we dont need it
10591         as Rect property is already adjusted. Fixes #80694.
10592
10593 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
10594
10595         * Application.cs: Need to handle keyboard menu deselection here.
10596         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
10597         navigation, allowing keyboard to work on X11.
10598         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
10599
10600 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
10601
10602         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
10603         menu bar. It fixes some drawing issues in menu bar.
10604
10605 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
10606
10607         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
10608         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
10609         when <alt> key is pressed.
10610
10611 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
10612
10613         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
10614         example just set visible to false and make this prevent from other problems.
10615         In SystrayAdd always remove pending expose. Fixes #81072.
10616
10617 2007-04-26  Marek Safar  <marek.safar@gmail.com>
10618
10619         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
10620         value is set.
10621
10622 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
10623
10624         * ListView.cs: Added three missing 2.0 events and corresponding
10625         EventHandlers. Added the OwnerDraw property.
10626         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
10627
10628 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
10629
10630         * DrawListViewItemEventArgs.cs
10631         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
10632
10633 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
10634
10635         * TextControl.cs: Fixed typo in constructor
10636
10637 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
10638
10639         * Application.cs: Create a shortcut path so that currently selected
10640         MenuStrips can intercept keyboard events without having focus.
10641         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
10642         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
10643         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
10644         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
10645         generate WM_SYSCOMMAND message in X11 for other platforms.
10646         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
10647         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
10648         * ToolStripSplitButton.cs: Add DefaultItem property.
10649         
10650 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
10651
10652         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
10653         fixes some menu draw problem on Windows with border diferent from default
10654         it also fixes #81403.
10655
10656 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10657
10658         * Form.cs: Refactor WndProc into separate methods, just like Control is
10659           doing it.
10660
10661 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10662
10663         * Control.cs: set_Text: move the call to the driver into a seperate
10664           virtual method so that Form can override it.
10665         * MaskedTextBox.cs: Corcompare fixes.
10666         * Form.cs: Override UpdateWindowText and only update the styles if the
10667           form has been shown (fixes #81405).
10668
10669 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
10670
10671         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
10672         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
10673         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
10674         the form lost focus or another control was clicked.
10675
10676 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
10677
10678         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
10679         fixed.
10680
10681 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10682
10683         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
10684           DrawListViewItemEventHandler.cs,
10685           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
10686           Added.
10687         * X11Structs.cs: More ToString implementation.
10688
10689 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
10690
10691         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
10692         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
10693
10694 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10695
10696         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
10697           handle.
10698         * FormCollection.cs: Don't add a form if it's already in the
10699           collection.
10700         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
10701           according to behaviour and MSDN. The ownerWin32 is the active
10702           window at the moment when we call ShowDialog, not the context's
10703           main form (the context's main form may open another form that opens
10704           a form with ShowDialog, the win32 owner is the second form). Add
10705           and remove forms to the Application.OpenForms in other places to
10706           better match MS behaviour. Add an IsActive property that raises
10707           On(de)Activated only if the active state has changed (we were
10708           raising OnDeactivated before OnActivated while creating forms).
10709         * Application.cs: Refactor Enabling/Disabling of windows for modal
10710           dialog loops out to separate methods, and restore the thread
10711           context when we quit the method. Fixes #81407.
10712
10713 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10714
10715         * ListView.cs: In ItemControl.HandleClicks, also fire 
10716         2.0 MouseClick or MouseDoubleClick events on the parent,
10717         not only the Click/DoubleClick events.
10718
10719 2007-04-24  Andreia Gaita  <avidigal@novell.com>
10720
10721         * TableLayoutSettings.cs: 
10722         - Added a GetControls method and a support structure to help the 
10723         TypeConverter to enumerate the controls for     serialization. 
10724         - Added a new serialization constructor. 
10725         - Added a isSerialized flag initialized to true on the 
10726         serialization constructor so that the TableLayoutPanel.LayoutSettings 
10727         setter does not throw the designed NotSupportedOperation exception
10728         when the object is built through deserialization.
10729         - Implemented GetObjectData
10730         
10731         * TableLayoutPanel.cs: Added check on LayoutSettings.
10732
10733 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10734
10735         * ListView.cs: Report Click and DoubleClick events to the parent
10736         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
10737         from breaking the click count state when using dialog forms (Control
10738         reports the clicks in a similar fashion). In the previous behaviour
10739         the last WM_LBUTTONUP message in a  double click was sent to the
10740         ListView's form, instead of the ListView, which was breaking the click
10741         count for it. Fixes #80387.
10742
10743 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
10744
10745         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
10746
10747 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
10748
10749         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
10750         us from created dropdowns for menu items that do not have subitems.
10751         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
10752         Check HasDropDownItems before calling DropDown so a dropdown will not be
10753         created if it isn't needed.
10754
10755 2007-04-24  Jackson Harper  <jackson@ximian.com>
10756
10757         * TreeView.cs: Set the first node to the selected node when we get
10758         focus if there is no selected node.
10759
10760 2007-04-24  Andreia Gaita  <avidigal@novell.com>
10761
10762         * MimeIcon.cs: remove using blocks so that image streams are
10763         not disposed of. Fixes #80151
10764
10765 2007-04-24  Jackson Harper  <jackson@ximian.com>
10766
10767         * TextBoxBase.cs: Fixup the height of textboxes when the control
10768         is created.
10769
10770 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
10771
10772         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
10773         for each ToolStripItem when the parent's RightToLeftChanged is called.
10774
10775 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10776
10777         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
10778           Fixes #80163.
10779         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
10780           property, so that the setter can be overriden too.
10781         * TextBox.cs: Change GetContextMenuInternal() to use
10782           ContextMenuInternal.
10783
10784 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10785
10786         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10787           #81406.
10788
10789 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10790
10791         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
10792           #81406.
10793
10794 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10795
10796         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
10797           avoid duplicate work. Mostily skeleton code, it's not working at
10798           all yet.
10799
10800 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
10801
10802         * NotifyIcon.cs : stub for MouseClick event
10803         * Application.cs: stub for SetUnhandledExceptionMode
10804
10805 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
10806
10807         * BindingNavigator.cs : Initial (partial) implementation
10808
10809 2007-04-23  Jackson Harper  <jackson@ximian.com>
10810
10811         * TreeView.cs: Do not create the treeview's handle when setting
10812         the scroll position.
10813         - ExpandAll needs to compute the scrollbars so it knows which
10814         position to set the bar too.
10815         * TreeNode.cs: 
10816         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
10817
10818 2007-04-23  Jackson Harper  <jackson@ximian.com>
10819
10820         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
10821         key. Fixes #81408.
10822
10823 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
10824
10825         * ToolStripItem.cs: Make GetImageSize internal.
10826         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
10827         need to draw an item.  Fixes a reported issue where images on menus
10828         that were not 16x16 were drawing incorrectly.
10829
10830 2007-04-21  Miguel de Icaza  <miguel@novell.com>
10831
10832         * Padding.cs: Use the converter, fixes the resgen2 issue with
10833         XMLNotePad. 
10834
10835 2007-04-21  Jackson Harper  <jackson@ximian.com>
10836
10837         * TreeView.cs: Dont try to unhighlight the selected node if there
10838         isn't a selected node.
10839
10840 2007-04-21  Jackson Harper  <jackson@ximian.com>
10841
10842         * UpDownBase.cs:
10843         * TextBoxBase.cs:
10844         * ListView.cs:
10845         * ListBox.cs:
10846         * TreeView.cs: Use the InternalBorderStyle property to set the
10847         initial border style, this forces the client rectangle to be sized
10848         correctly.
10849
10850 2007-04-20  Jackson Harper  <jackson@ximian.com>
10851
10852         * TreeView.cs: Simplify scrolling to the last node after expanding
10853         all.
10854         - Fix some off by ones with setting the bottom.
10855
10856 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
10857
10858         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
10859         that.  We were incorrectly doing it the other way around.  Also,
10860         update ClientSize if we change the BorderStyle before the control
10861         is created.
10862
10863 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
10864
10865         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
10866         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
10867         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
10868         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
10869         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
10870         Caption to CaptionHeight.
10871         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
10872         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
10873         and FixedFrameBorderSize to return value from current XplatUI driver.
10874         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
10875         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
10876         and FixedFrameBorderSize using win32 API. Renamed Caption to
10877         CaptionHeight.
10878         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
10879         * SystemInformation.cs: Fixed typo in BorderSize.
10880
10881 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
10882
10883         * XplatUI.cs: Added MenuAccessKeysUnderlined.
10884         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
10885         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
10886         returning false.
10887         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
10888         value from XplatUI driver.
10889         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
10890         SystemParametersInfo.
10891         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
10892         override.
10893         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
10894         returning false.
10895
10896 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10897
10898         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
10899
10900 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10901
10902         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
10903
10904 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
10905
10906         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
10907         MenuStrips that contain ToolStripSeparators.
10908
10909 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10910
10911         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
10912           DefineStdCursorBitmap.
10913         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
10914           has been created off a standard cursor. This is used to get a
10915           bitmap of the standard cursor when Draw or DrawStretched is called
10916           in order to draw the cursor.
10917         * X11Structs.cs: Added XcursorImage and XcursorImages.
10918         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
10919           DefineStdCursorBitmap.
10920         * Cursors.cs: Update all relevant creations of Cursor to use the new
10921           internal constructor.
10922
10923 2007-04-19  Jackson Harper  <jackson@ximian.com>
10924
10925         * TextBox.cs: Move the has_been_focused into the base control, so
10926         some of the text adding methods can manipulate it (probably time
10927         for a better name for this flag too).
10928         - Call a new version of selectall that doesn't scroll
10929         * TextBoxBase.cs: When we append text, if the document is empty,
10930         don't scroll.  If the document has text already, we scroll to the
10931         end of the appended text.
10932         - When the text is changed, we reset the has_been_focused, so the
10933         next time the control gets focused, all the text is selected.
10934
10935 2007-04-19  Jackson Harper  <jackson@ximian.com>
10936
10937         * TextControl.cs: Move the margins to the document, add a method
10938         so the margin sizes can be updated.
10939         * TextBoxBase.cs: When the border style is changed, update the
10940         border sizes.
10941
10942 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
10943
10944         * Control.cs: Respect DefaultPadding.
10945         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
10946         padding into account.
10947         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
10948
10949 2007-04-19  Jackson Harper  <jackson@ximian.com>
10950
10951         * TextControl.cs: Oops, we need to use the ClientRect not the
10952         bounds here.
10953
10954 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10955
10956         * ListView.cs: In ItemControl.ItemsMouseDown, take into
10957         account the double clicks when CheckBoxes are used and
10958         the pointer is inside the checkbox. Fixes part of #81191.
10959
10960 2007-04-18  Jackson Harper  <jackson@ximian.com>
10961
10962         * TextControl.cs: Pressing the end key shouldn't move the caret
10963         past the line ending.
10964         * TextBoxBase.cs: We can still delete if we are in the line
10965         ending and the combine will just kill the existing line ending.
10966
10967 2007-04-18  Jackson Harper  <jackson@ximian.com>
10968
10969         * TextControl.cs: We can't move lines, then invalidate their
10970         bounds, we need to get the old bounds and combine that with the
10971         new bounds.
10972         * TextBoxBase.cs: Before combining two lines for a delete, we need
10973         to invalidate the area of the old line, since that will be moved
10974         in the combine operation.
10975
10976 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
10977
10978         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
10979         with transparent background. Fixes #80482.
10980
10981 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
10982
10983         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
10984         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
10985         [Fixes bug #81391]
10986
10987 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10988
10989         * CreateParams.cs: Add a couple of helper methods and do a less string
10990           concatenation in ToString.
10991         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
10992           overload that takes a Control parameter, since this method may be
10993           called before a control is assigned to the hwnd (from
10994           CreateWindow), and update CreateWindow to use the new overload. In
10995           GetMenuOrigin subtract the title bar from the y position if the
10996           form has a window manager (since we're painting it and not X).
10997         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
10998           CreateParams to calculate the origin (since border sizes may vary).
10999           In ScreenToMenu only subtract the title height if we actually have
11000           a title.
11001         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
11002           mdi children never have menus of themselves.
11003         * InternalWindowManager.cs: Implement menu handling like form does.
11004           Added GetMenuOrigin to calculate the menu origin, can't use the
11005           CreateParams from the form like normally since it's lying.
11006         * Hwnd.cs: Implement GetBorderSize better (in the sense more
11007           windows-like) and add Inflate and comparison operators to the
11008           Borders type. When calculating MenuOrigin and it's a form with a
11009           window manager, use the window manager to calculate it.
11010
11011 2007-04-17  Chris Toshok  <toshok@ximian.com>
11012
11013         * Control.cs (CreateControl): turns out in 2.0 we don't need this
11014         OnBindingContextChanged thing here.  It's only generated from
11015         ContainerControl.OnCreateControl.  Fixes a newly written unit test
11016         - BindingTest.BindingContextChangedTest4.
11017         
11018 2007-04-17  Jackson Harper  <jackson@ximian.com>
11019
11020         * ScrollBar.cs: When setting values, make sure the current
11021         position stays within the new values range.
11022
11023 2007-04-17  Chris Toshok  <toshok@ximian.com>
11024
11025         * Control.cs (CreateControl): talk about a bizarre corner case.
11026         Don't emit OnBindingContextChanged here if we're a parentless
11027         control (i.e. if we're a form.).  Fixes
11028         BindingTest.BindingContextChangedTest2.
11029
11030 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
11031
11032         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
11033         from win32. Fixes #81255.
11034
11035 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
11036
11037         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
11038         already present in CalculateButtonTextAndImageLayout.
11039
11040 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11041
11042         * XplatUIX11.cs: When setting min/max size for a window we need to
11043           translate the coordinates to x coordinates. Create an overload of
11044           SetWindowMinMax that takes a CreateParams handling this, and change
11045           SetWMStyles to call this function (can't use Control.FromHandle in
11046           the SetWindowMinMax to get the control/CreateParams from the handle
11047           because the handle might not have been assigned to the control
11048           yet). Fixes #81371.
11049
11050 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11051
11052         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
11053         if StateImageList is non-null and it has less than two items (match MS
11054         behaviour). Also, in HandleNavKeys handle the Space key, calling
11055         the new ToggleItemsCheckState method, which tries to change the
11056         checked state of the selected items. Fixes part of #81191.
11057
11058 2007-04-16  Jackson Harper  <jackson@ximian.com>
11059
11060         * RichTextBox.cs: namespace cleanup.
11061
11062 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
11063
11064         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
11065
11066 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
11067
11068         [Fixes #79447]
11069         * Control.cs: Call invalidate in set_Region.
11070
11071         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
11072         it dont works here.
11073
11074 2007-04-16  Jackson Harper  <jackson@ximian.com>
11075
11076         * TextBoxBase.cs: When enter is pressed, we need to update all
11077         lines below the current.
11078
11079 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
11080
11081         * MdiClient.cs: Implement implicit menu merging for MDI
11082         children.  When a child form is active, if it has a menustrip
11083         and the parent form has a MainMenuStrip, automatically merge
11084         the menus.
11085
11086 2007-04-15  Andreia Gaita  <avidigal@novell.com>
11087
11088         * TabControl.cs: Refactored sizing methods to not repeat
11089         code all over the place. Tab bounds are now calculated
11090         as if alignment is top and single line, and only when 
11091         setting the bounds are the positions adjusted according
11092         to alignment. Replaced hardcoded positions, spacings and
11093         paddings by getting the values the ThemeEngine. 
11094         Fixes #79619.
11095         
11096         * Theme.cs: Change TabControl properties and methods so
11097         that all start with TabControl*. Added more properties
11098         to help remove hardcoded values on tabcontrol.
11099         Add CPDrawBorder3D declaration so the Theming classes
11100         can access it.
11101         
11102         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
11103
11104         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
11105         on the Theming namespace, and call the appropriate methods here.
11106         Change CPDrawBorder3D to public.
11107
11108 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11109
11110         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
11111         the control after firing the OnMouseUp event, instead of sending
11112         the message before the mentioned event. This is so we can match the
11113         MS behaviour. Fixes part of #80385.
11114
11115 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
11116
11117         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
11118         RightToLeft property.
11119
11120 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
11121
11122         * ToolStrip.cs: Add properties and internal methods to support merging.
11123         * ToolStripItem.cs: Add MergeAction and MergeIndex.
11124         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
11125         not trigger reparenting or layouts.
11126         * ToolStripManager.cs: Add Merge and RevertMerge methods.
11127         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
11128         is hosting the overflow menu.
11129
11130 2007-04-13  Jackson Harper  <jackson@ximian.com>
11131
11132         * TextControl.cs: Set the line ending correctly for the first
11133         inserted line.
11134
11135 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
11136
11137         * Theme.cs: Update GetMethod to get the new definition for 
11138         KnownColors.Update (and fix theme color updates).
11139
11140 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
11141
11142         * MessageBox.cs: Fix some test and button position.
11143
11144 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11145
11146         * Form.cs: Consider the implicit controls in
11147         GetRealChildAtPoint. We need it since this method
11148         is called on Form when handling the some messages in
11149         WndProc, and need to consider those implicit ones too.
11150         Fixes #80385.
11151
11152 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
11153
11154         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
11155         if there are no ShortcutKeys set.
11156         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
11157         set, use it when painting.
11158
11159 2007-04-12  Jackson Harper  <jackson@ximian.com>
11160
11161         * TextControl.cs: Fix some off-by-one issues in line duplication
11162         and insertion in the undo manager. Also, overwrite the first tag
11163         of a line on insert, if it is just a zero lengthed tag. This
11164         prevents us from getting an extra stranded tag at the beginning of
11165         the first line.
11166
11167 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
11168
11169         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
11170         to calculated proper size including when handle was not created yet.
11171
11172 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11173
11174         * MdiWindowManager.cs: When moving a form, allow the form to be moved
11175           when the mouse is outside of it's parent's client rectangle. Fixes
11176           #79982 (take 3, part 2).
11177
11178 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11179
11180         * X11Structs.cs: Add a few ToString() overrides.
11181         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
11182           the window location in a window-manager independent way. Reworked
11183           FrameExtents, it now actually works. Reworked AddConfigureNotify
11184           and ReparentNotify handling to use GetTopLevelWindowLocation
11185           instead of the earlier, more hacky solution. Reworked SetWMStyles,
11186           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
11187           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
11188           for all other windows (fixes #81281 part 1), a toolwindow is hidden
11189           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
11190           and generally refactored to do as few calculations as possible
11191           inside the lock.
11192
11193 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
11194
11195         * Theme.cs: Change "reflective-contract" between MWF and SD to 
11196         minimize # of calls, avoid Color serialization and avoid updating 
11197         every "known colors" each time a single one is updated.
11198
11199 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
11200
11201         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
11202         when not readonly and the text is explicitly set. Code style updates.
11203         * DataGridTableStyle.cs: Removed extra line.
11204         * DataGrid.cs: Code style updates. Removed extra whitespace.
11205         * DataGridColumnStyle.cs: Code style updates. Removed extra 
11206         whitespace.
11207
11208 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11209
11210         * XplatUIX11.cs: Added comment that "fixes" #80021.
11211
11212 2007-04-09  Jackson Harper  <jackson@ximian.com>
11213
11214         * TextControl.cs: We don't need this -1 on the line count anymore.
11215
11216 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
11217
11218         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
11219         entered value to underlying type, and convert it back to a string to
11220         apply formatting. Modified GetFormattedValue to use TypeConverter
11221         if available.
11222
11223 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
11224
11225         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
11226         Use SubItems property when we want to ensure there's at least one
11227         subitem. Modified SubItems property to ensure there's always at least
11228         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
11229         the NRE's reported by MS.
11230
11231 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
11232
11233         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
11234         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
11235         Spaces to tabs. Removed extra tabs.
11236
11237 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
11238
11239         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11240         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
11241
11242 2007-04-06  Jackson Harper  <jackson@ximian.com>
11243
11244         * TextBoxBase.cs: When a delete removes a line, recalculate all
11245         lines below that line (they need to get offsets setup correctly)
11246         and invalidate.
11247
11248 2007-04-05  Jackson Harper  <jackson@ximian.com>
11249
11250         * TextControl.cs: We need to invalidate across the width of the
11251         document when we are invalidating multiple lines.
11252         * TextBoxBase.cs: Don't delete into the line ending.
11253
11254 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11255
11256         * ListView.cs: Restore the check for the MouseHover event
11257         in ListView. It looks like the ListView fires more than one MouseHover
11258         event when HoverSelection is true  _only_ in weird-corner scenarios, but
11259         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
11260         event.
11261
11262 2007-04-05  Mike Kestner  <mkestner@novell.com>
11263
11264         * ListView.cs : raise MouseDown before updating selection.
11265         [Fixes #80373 tab 1&3]
11266
11267 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
11268
11269         * ToolStripRenderer.cs: Add static method to mirror image.
11270         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
11271         and RightToLeftAutoMirrorImage.
11272         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
11273
11274 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
11275
11276         * ToolStripSplitStackLayout.cs: Support Alignment property.
11277         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
11278
11279 2007-04-05  Jackson Harper  <jackson@ximian.com>
11280
11281         * TextControl.cs: Move around the line endings when crossing line
11282         boundaries.
11283         - When combining lines, strip the ending text off the first line.
11284
11285 2007-04-05  Jackson Harper  <jackson@ximian.com>
11286
11287         * TextControl.cs:
11288         * TextBoxBase.cs: Try to never move the cursor into the line
11289         ending.
11290         
11291 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11292
11293         * ToolStripItem.cs: Make sure we aren't firing mouse events when
11294         the item is disabled.  Also add a few missing methods.
11295
11296 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11297
11298         * ListView.cs: We don't need the MouseEnter/MouseLeave check
11299         to fire just one MouseHover event when HoverSelection is true, since
11300         .Net does fire more than one MouseHover event in that scenario. Also,
11301         fix the selection in HoverSelection, by invoking UpdateMultiSelect
11302         if MultiSelect is true, instead of only setting ListViewItem.Selected.
11303         Finally, we need to reset the Hover logic in MouseMove, even when we
11304         don't have a selected item.
11305
11306 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11307
11308         * ToolStrip.cs: Add several missing methods, properties, and events.
11309
11310 2007-04-04  Chris Toshok  <toshok@ximian.com>
11311
11312         * DataGridTextBoxColumn.cs: set the bounds of the text box to
11313         (0,0,0,0) in Commit, as MS does.
11314
11315         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
11316         make sure we set CurrentRow on a row header click *before* calling
11317         Select.  This moves the current cell (and the textbox) to the new
11318         row.  The call to Select then hides the textbox, giving us the
11319         correct behavior.  Fixes #80362.
11320
11321         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
11322         (ListChangedHandler): reorder the position/current changed events,
11323         and call UpdateIsBinding in the ItemAdded case.
11324
11325         * GridColumnStylesCollection.cs: add some columns events, one of
11326         which raises the CollectionChanged event.
11327
11328 2007-04-04  Jackson Harper  <jackson@ximian.com>
11329
11330         * TextControl.cs: When we delete multiple selection lines
11331         invalidate the selection area, don't need to do that for single
11332         lines because the final update view will handle it.
11333
11334 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
11335
11336         * Control.cs: When we CreateControl, we need to also create all of the
11337         control's children.  The child's OnLoad must also fire before the parent's
11338         OnLoad.  Fixes the toolbox size in PDN.
11339
11340 2007-04-04  Jackson Harper  <jackson@ximian.com>
11341
11342         * TextBoxBase.cs: When the user presses enter, insert a line
11343         ending into the text. (Maybe this would be a good spot for
11344         Environment.NewLine).
11345         * TextControl.cs: Remove undo manager hack, line endings get
11346         inserted properly now.
11347         
11348 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
11349
11350         * MenuAPI.cs: 
11351         - Remove unneeded parameters in UpdateCursor.
11352         - Fix UpdateCursor to check if menu is active.
11353         - Call UpdateCursor when menu deactivate my click.
11354         [Fixes remaining issues from #80410]
11355
11356 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
11357
11358         * Control.cs: GetRealChildAtPoint method added, it make an
11359         recursive child control search for the point. 
11360
11361         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
11362         menu.
11363
11364         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
11365
11366 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
11367
11368         * Form.cs: Fix mouse position when send back mouse event after closes
11369         menu.
11370
11371 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
11372
11373         * Form.cs: Simplify the BUTTONDOWN for active tracker.
11374
11375 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
11376
11377         * Control.cs: Fix an issue where if a user resized a control inside
11378         a sizing method like OnResize, we would overwrite their explicit
11379         value.  Also, only call DefaultSize once in the constructor instead
11380         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
11381         nothing actually changed.
11382
11383 2007-04-03  Jackson Harper  <jackson@ximian.com>
11384
11385         * TextControl.cs: Don't attempt to copy text for lines with no
11386         text in them (technically this shouldn't happen, but we aren't
11387         always inserting line endings when we should be).
11388
11389 2007-04-03  Jackson Harper  <jackson@ximian.com>
11390
11391         * TextBoxBase.cs: Calculate the scrollbars before calculating the
11392         document, because this sets some of the document size properties
11393         that are needed.
11394
11395 2007-04-03  Jackson Harper  <jackson@ximian.com>
11396
11397         * TextBoxBase.cs: We need to calculate maximums even if this is
11398         not a multiline control, because the maxs are used for scrolling.
11399         - Display the caret after doing a page up/down, we need to
11400         manually display it because a proper CaretMoved event isn't
11401         triggered (this is because of the way the math is done to
11402         determine how far to scroll).
11403
11404 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
11405
11406         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
11407         (ToolBar was relying on SetBoundsCore to default the values sent 
11408         base off of BoundsSpecified.)
11409
11410 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11411
11412         * DateTimePicker.cs: Change Text so that when a null value or empty
11413           string is assigned to the test we always raise ValueChanged and
11414           TextChanged (earlier implementation would only raise ValueChanged
11415           if the current date value was different from DateTime.Now).
11416
11417 2007-04-03  Andreia Gaita <avidigal@novell.com> 
11418
11419         * ButtonBase: Call update after invalidation, fixes #80194
11420
11421 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11422
11423         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
11424           #79335.
11425
11426 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11427
11428         * XplatUIX11.cs: SetWMStyles: If the control is a form with
11429           FormBorderStyle = None, don't give the window any decorations.
11430           Fixes #81276.
11431
11432 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11433
11434         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11435         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
11436           to check for is a mix of several styles (such as WS_CAPTION for
11437           instance).
11438         * Control.cs: Don't paint an area bigger than the client area when
11439           painting the background colour. Add an internal GetCreateParams.
11440           Update calls to XplatUI.CalculateWindowRect due to API change.
11441         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
11442           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
11443           the size if it hasn't been handled by any windows. When creating
11444           and moving windows, X wants the location of the entire window, but
11445           the size of the client window, so add
11446           TranslateClientRectangleToXClientRectangle,
11447           TranslateWindowSizeToXWindowSIze and
11448           TranslatedXWindowSizeToWindowSize to cope with this, and call them
11449           before every window creation and move. Update CalculateWIndowRect
11450           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
11451           In AddConfigureNotify don't do anything if the hwnd is a zombie
11452           (fixes the BadWindow we were getting while running the tests),
11453           always calculate the offsets when it's a parentless window, not
11454           only when reparented, and translate the window size, since we're
11455           getting the client size of the whole window, excluding entire
11456           window.
11457         * Theme.cs: Added BorderSizableSize.
11458         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11459           anymore. Update calls to XplatUI.CalculateWindowRect due to API
11460           chang
11461         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
11462           change. Fake the window styles here instead of in XplatUIWin32 so
11463           that all back-ends get the same window styles (and it's Form that's
11464           deciding when to use wm, not the Win32 backend anyways)
11465         * Hwnd.cs: Completely reworked GetWindowRectangle and
11466           GetClientRectangle - they are now passed a CreateParams and they
11467           only use Style and ExStyle to determine the rectangles (they should
11468           now work just like Win32AdjustWindowRectEx - though quite a few
11469           special cases are probably missing). They should also be 100%
11470           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
11471           == rect), and all numbers (borders, menu sizes) are taken from the
11472           current theme. Added a GetBorders helper function that will return
11473           the borders for any given CreateParams (including captions and
11474           menus), and GetBorderSize that returns the given border size only.
11475         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11476           Hwnd.GetClientRectangle.
11477
11478 2007-04-02  Chris Toshok  <toshok@ximian.com>
11479
11480         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
11481         logic between the values we present to the user and the values
11482         which are stored in the column's property.  Also, don't call
11483         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
11484
11485 2007-04-02  Jackson Harper  <jackson@ximian.com>
11486
11487         * TextBoxBase.cs: Scroll faster!
11488
11489 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
11490
11491         * StatusStrip.cs: Layout fixes for PDN.
11492         * ToolStrip.cs: Set item's available to true, and placement to main when
11493         added.
11494         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
11495         changing in setter before doing any work, add InternalVisible.
11496         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
11497         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11498         infinite loop.
11499
11500 2007-04-02  Jackson Harper  <jackson@ximian.com>
11501
11502         * TextBox.cs: LBUTTON does not make the textbox select all of it's
11503         text on focus.
11504
11505 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11506
11507         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
11508           Makes ToolStripComboBoxes show up again.
11509
11510 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11511
11512         * ListView.cs: Add a hover_pending field in ListView
11513         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
11514         cycle (we are resetting the MouseHover logic in XplatUI
11515         to handle HoverSelection). Fixes #80429.
11516
11517 2007-04-02  Jackson Harper  <jackson@ximian.com>
11518
11519         * TextControl.cs: Make sure the attributes get set on the last
11520         tag.
11521         - Still have to do the end tag if we have stepped all the ways to
11522         the end.
11523
11524 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
11525
11526         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
11527         on an internal libgdiplus call when the information is already 
11528         available via the public API.
11529
11530 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11531
11532         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
11533           control is removed from a control collecftion.
11534         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
11535           Fixes FormPropertyTest (failed on rare occasions).
11536         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
11537           of Win32SetParent (when changing from no parent to a parent it
11538           might add the new parent's location in screen coordinates to this
11539           window's location).
11540         * Form.cs: Rework ChangingParent once again, now the handle is
11541           recreated whenever a FormWindowManager is added or removed (that is
11542           whenever a normal form is parented or abandoned). Also change
11543           CreateParams so that all non-toplevel windows always get the
11544           specified sice (StartupPosition is never considered for
11545           non-TopLevel forms).
11546         * ContainerControl.cs: Add ChildControlRemoved, the container control
11547           needs to be notified when a control is removed from it's
11548           collection, in the case the removed control is the active control.
11549
11550 2007-04-02  Jackson Harper  <jackson@ximian.com>
11551
11552         * RichTextBox.cs: Use the new methods for setting the font and
11553         color, these methods set the specified attribute without
11554         overriding the other attributes.
11555
11556 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
11557
11558         * ToolStripPanel.cs: Fixes for better layouts in PDN.
11559
11560 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
11561
11562         * TextBox.cs: Added internal ChangeBackColor method to special-case
11563         Color.Empty. Added check for invalid ScrollBars value.
11564         * TextBoxBase.cs: Added internal ChangeBackColor method.
11565         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
11566         internal ChangeBackColor method to special-case Color.Empty. Added
11567         check for invalid ScrollBars value.
11568
11569 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
11570
11571         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
11572
11573 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
11574
11575         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
11576         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
11577         [Based on submitted patch from Olivier Duff.]
11578
11579 2007-03-30  Jackson Harper  <jackson@ximian.com>
11580
11581         * TextBox.cs: Only select all on initial focus if the user has not
11582         specified a selection area.
11583
11584 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
11585
11586         * UserControl.cs: Override CreateParams.
11587
11588 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11589
11590         [ Fixes #80995 ]
11591
11592         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11593         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
11594           check for is a mix of several styles (such as WS_CAPTION for instance).
11595         * Control.cs: Don't paint an area bigger than the client area when painting
11596           the background colour. Add an internal GetCreateParams. Update calls to
11597           XplatUI.CalculateWindowRect due to API change.
11598         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
11599           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
11600           hasn't been handled by any windows. When creating and moving windows, X
11601           wants the location of the entire window, but the size of the client
11602           window, so add TranslateClientRectangleToXClientRectangle,
11603           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
11604           to cope with this, and call them before every window creation and move.
11605           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
11606           removing DeriveStyles). In AddConfigureNotify don't do anything if the
11607           hwnd is a zombie (fixes the BadWindow we were getting while running the
11608           tests), always calculate the offsets when it's a parentless window, not
11609           only when reparented, and translate the window size, since we're getting
11610           the client size of the whole window, excluding entire window.
11611         * Theme.cs: Added BorderSizableSize.
11612         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11613           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
11614         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
11615           Fake the window styles here instead of in XplatUIWin32 so that all
11616           back-ends get the same window styles (and it's Form that's deciding when
11617           to use wm, not the Win32 backend anyways)
11618         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
11619           they are now passed a CreateParams and they only use Style and ExStyle
11620           to determine the rectangles (they should now work just like
11621           Win32AdjustWindowRectEx - though quite a few special cases are probably
11622           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
11623           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
11624           sizes) are taken from the current theme. Added a GetBorders helper
11625           function that will return the borders for any given CreateParams
11626           (including captions and menus), and GetBorderSize that returns the given
11627           border size only.
11628         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11629           Hwnd.GetClientRectangle.
11630
11631 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11632
11633         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
11634           layout of the mdi children is handled by CreateParams. Fixes
11635           #79964,
11636
11637 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
11638
11639         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
11640         processed.
11641
11642         * Form.cs: When active tracker mouse down is not processed, send event 
11643         back to control inside mouse position. [Fixes #81227]
11644
11645 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
11646
11647         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
11648         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
11649         stealing focus from the active form on Windows.  (Control will be made
11650         visible in ShowWindow.)
11651
11652 2007-03-29  Mike Kestner  <mkestner@novell.com>
11653
11654         * ImageList.cs : add internal Changed event.
11655         * ListView.cs : hook up to StateImageList.Changed to perform
11656         invalidations when the the state icon list changes. [Fixes #81191]
11657
11658 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
11659
11660         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
11661         to prevent tooltips from stealing focus from the active form on Windows.
11662
11663 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
11664
11665         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
11666
11667         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
11668
11669 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
11670
11671         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
11672         balloons.
11673
11674 2007-03-29  Jackson Harper  <jackson@ximian.com>
11675
11676         * TextControl.cs: When deleting text from non multiline textboxes,
11677         we need to update the entire document, because line offsets will
11678         be shifting.
11679
11680 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
11681
11682         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
11683         added to theme, now we can create themes that uses diferent notify engines
11684         like notification-daemon from galago project or growl for Mac OS.
11685
11686 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
11687
11688         * NotifyIcon.cs: Prevent Balloon to show in task bar.
11689
11690 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
11691
11692         * XplatUIX11.cs: Prevent system to open more than one balloon.
11693
11694         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
11695         some compiler warning messages.
11696
11697 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
11698
11699         [Fixes #79149]
11700
11701         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
11702
11703         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
11704         implemented, this methods is used by NotifyIcon.BalloonWindow class.
11705
11706         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
11707         systems.
11708
11709 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11710
11711         * ListViewItem.cs: Forgot to make Invalidate internal.
11712
11713 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11714
11715         * ListView.cs: Add a InvalidateSelection method to
11716         invalidate methods which are currently selected, and call
11717         it when setting FullRowSelect and HideSelection, instead of
11718         calling Redraw.
11719
11720 2007-03-28  Chris Toshok  <toshok@ximian.com>
11721
11722         * XplatUIX11.cs (UnmapWindow): reindent this block.
11723
11724         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
11725         the selection_start if we're moving the selection (that is, not
11726         extending it). Fixes bug #80461.
11727
11728 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
11729
11730         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
11731         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
11732         create private ControlCollection.
11733
11734 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
11735
11736         * Control.cs: We need to call OnVisibleChanged for our implicit
11737         children as well as our normal children.  Fixes scrollbars in
11738         comboboxes not showing up.
11739
11740 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
11741
11742         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
11743         the check for IsHandleCreated first.  The check in CreateHandle is not
11744         good enough because CreateHandle can be overriden, and the override 
11745         should not be called if the handle is already created.
11746
11747 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
11748
11749         * ToolStrip.cs: Remove MonoTODO for tooltips.
11750         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
11751         * ToolStripContainer.cs: Add custom ControlCollection class.
11752         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
11753         * ToolStripDropDown.cs: Add some missing properties/methods.
11754         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
11755         * ToolStripItem.cs: Remove MonoTODO for tooltips.
11756         * ToolStripManager.cs: Add IsShortcutDefined.
11757         * ToolStripOverflow.cs: Override LayoutEngine.
11758         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
11759         * ToolStripSeparator.cs: Add ImageKey.
11760
11761 2007-03-28  Jackson Harper  <jackson@ximian.com>
11762
11763         * TextControl.cs: If a char delete removes a line ending, we need
11764         to update the ending style.
11765         - Make sure the line ending calcs get called.
11766
11767 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11768
11769         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
11770           it was making the new code not work. Fixed a typo in the new code
11771           as well. Fixes #79826.
11772
11773 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11774
11775         * XplatUIWin32.cs:
11776         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
11777         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
11778         - SystrayBalloon method implemented.
11779         [Add support for notifyicon balloon on win32, #79149]
11780
11781 2007-03-27  Mike Kestner  <mkestner@novell.com>
11782
11783         * ThemeWin32Classic.cs : update StateImageList selection to mirror
11784         the ms behavior when only one image is added to the list.
11785         [Fixes #81191]
11786
11787 2007-03-27  Jackson Harper  <jackson@ximian.com>
11788
11789         * TextControl.cs: Improvements to non multiline line ending
11790         drawing/measuing.
11791
11792 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11793
11794         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
11795
11796 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11797
11798         * NotifyIcon.cs: 
11799         - Balloon message handling added.
11800         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
11801
11802         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
11803         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
11804         to SystrayBalloon to me like other Systray method, also a
11805         handle parameter added.
11806
11807 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11808
11809         * ListView.cs: Show scrollbars even when items.Count == 0
11810         but the columns Width is bigger than the ListView.Width.
11811         Also, when columns.Count == 0 set layout_wd and layout_ht
11812         to the ClientRectangle values, so we don't show any scrollbar
11813         in that case.
11814
11815 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11816
11817         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
11818
11819 2007-03-27  Jackson Harper  <jackson@ximian.com>
11820
11821         * RichTextBox.cs: The RTF library decodes the text properly for us
11822         now.
11823
11824 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11825
11826         * ListView.cs: Display HeaderControl even when columns.Count == 0.
11827         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
11828         ListView header (HeaderControl), instead of Control.BackColor.
11829
11830 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
11831
11832         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
11833         Fixes tab control issues where controls would not show up because they
11834         never received their OnVisibleChanged call.
11835
11836 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
11837
11838         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
11839         BalloonTipShown).
11840
11841 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
11842
11843         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
11844         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
11845         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
11846         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
11847         the handle.  Fix WindowState by using the internal variable until we are 
11848         sure that we've been shown.
11849         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
11850         max or min.
11851         [Fixes bug #81198]
11852
11853 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11854
11855         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
11856           (at least borders). Fixes #79386 on Linux (with a small difference
11857           in behaviour: when trying to resize a caption-less window metacity
11858           shows the sysmenu. Resizing is still possible though).
11859         * XplatUIWin32.cs: When setting window styles send request an extra
11860           WM_NCCALCSIZE when it's a form without title (due to no text and no
11861           caption), since Win32 seems to calculate it wrong the first time we
11862           get the message, though the second time things work as they should.
11863         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
11864           newly reparented window might show up unparented. Update
11865           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
11866           there's no title text. Fixes #79386.
11867
11868 2007-03-27  Mike Kestner  <mkestner@novell.com>
11869
11870         * ListBox.cs : don't perform invalidations if the handle hasn't been
11871         created.  [Fixes #80753]
11872
11873 2007-03-27  Mike Kestner  <mkestner@novell.com>
11874
11875         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
11876         [Fixes #80428]
11877
11878 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
11879
11880         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
11881         needed to implement Balloon.
11882
11883 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11884
11885         * ListViewItem.cs: In the constructors that take
11886         an array of strings, don't use ListViewSubItemCollection.AddRange
11887         method to add items, since we need to have a different behaviour (in
11888         the constructors we add an item for each null string, opposed to
11889         the behaviour of AddRange, which adds nothing).
11890
11891 2007-03-26  Andreia Gaita  <avidigal@novell.com>
11892
11893         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
11894
11895 2007-03-26  Jackson Harper  <jackson@ximian.com>
11896
11897         * TextControl.cs: Draw and measure line endings when in non
11898         multiline mode.
11899         - When searching the text, count the end of the last line as a
11900         word boundary.
11901
11902 2007-03-26  Jackson Harper  <jackson@ximian.com>
11903
11904         * RichTextBox.cs: The selection_start and selection_end don't
11905         really track the correct tags for the selection. So we'll manually
11906         compute the correct tag here.
11907
11908 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11909
11910         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
11911           and Continuous styles. Fixes #79469.
11912
11913 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
11914
11915         * ToolStrip.cs: Implement Tooltips.
11916         * ToolStripItem.cs: Create internal method for determining tooltip.
11917
11918 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
11919
11920         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
11921
11922 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
11923
11924         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
11925         it prevents a problem thak keeps icon visible after application 
11926         closes on win32.
11927
11928 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
11929
11930         * NotifyIcon.cs: Balloon properties and methods created.
11931
11932         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
11933         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
11934
11935 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
11936
11937         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
11938
11939 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
11940
11941         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
11942         parameter indicates which aspects were explicit/user-set.
11943         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
11944
11945 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
11946
11947         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
11948         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
11949         SmallChange, and Value (2.0).
11950         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
11951
11952 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11953
11954         * ListView.cs: Always set item_control.Width in LayoutDetails
11955         if View is Details. Setting it later in CalculateScrollBars
11956         in a not-so-corner scenario (the sum of columns width is
11957         not bigger than the ListView width when handle is created, and then
11958         that sum gets bigger by increasing the width of the columns)
11959         causes a very weird recursion path (which shouldn't be happening,
11960         since header_control sets it in CalculateScrollBars too). This bug
11961         appeared after Chris' fixes for handle created issues, so probably
11962         it's related to some handle-creation time.
11963
11964 2007-03-23  Chris Toshok  <toshok@ximian.com>
11965
11966         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
11967         case where there's an add row, just so we don't end up in a case
11968         where it's not displayed (this happens when the row is partially
11969         obscured).  Fixes bug #79574.
11970
11971 2007-03-23  Jackson Harper  <jackson@ximian.com>
11972
11973         * TextControl.cs:
11974         * TextBoxBase.cs:
11975         * RichTextBox.cs: Preserve line endings in the lines text buffer,
11976         also added an enum that represents the line ending type. 
11977
11978 2007-03-23  Andreia Gaita  <avidigal@novell.com>
11979
11980         * NumericUpDown.cs: Fix logic so Text and Value properties are not
11981         messed with in every method call, but only from DownButton, 
11982         UpButton, UpdateEditText() and ValidateText. Fixes #80346
11983
11984 2007-03-23  Chris Toshok  <toshok@ximian.com>
11985
11986         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
11987         format objects if the format spec is "".  Fixes bug #80889.
11988
11989 2007-03-22  Miguel de Icaza  <miguel@novell.com>
11990
11991         * ToolStripPanel.cs (Join): added stubs to build PDN3
11992
11993         * Control.cs (AutoScrollOffset): Add.
11994
11995         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
11996         property, its only implemented for Win32, on X11 it defaults to
11997         some hardcoded value.
11998
11999         * ToolStripItem.cs (AllowDrop): Add property
12000
12001 2007-03-22  Mike Kestner  <mkestner@novell.com>
12002
12003         * ListView.cs : in FullRowSelect Details mode, only enable box
12004         selection if the user clicks over the "item" column outside of the
12005         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
12006
12007 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12008
12009         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
12010           handle is not created yet.
12011         * Form.cs: Select: Don't call CreateHandle if the handle is already
12012           created, avoids a stack overflow on Windows when we are recreating
12013           controls.
12014         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
12015           they are made visible, and override AfterTopMostControl to keep
12016           them on top when other controls are brought to front.
12017           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
12018           or force_*scroll_visible is true (old implementation always shows
12019           scrollbars when needed, no matter what auto_scroll was set to).
12020         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
12021           IsHandleCreated check.
12022
12023 2007-03-22  Andreia Gaita  <avidigal@novell.com>
12024
12025         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
12026         row or col separator.
12027         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
12028
12029 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12030
12031         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
12032
12033 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12034
12035         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
12036         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
12037         every time. Fixes #80410.
12038
12039 2007-03-22  Chris Toshok  <toshok@ximian.com>
12040
12041         * BindingSource.cs (AddNew): partially implement.
12042
12043         remove a couple of NotImplementedException's
12044         to get bug #81148 closed.
12045
12046 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
12047
12048         [Fixes #80380]
12049         
12050         * Control.cs:
12051         - UpdateCursor method added to update the screen cursor.
12052         - GetAvailableCursor method added to return cursor for enabled tree,
12053         it searches for cursor on control and it's parent's for enabled control.
12054         - Call UpdateCursor method on setter of Cursor property.
12055         - On setter of Enabled call UpdateCursor when it is false, we need to
12056         change cursor to normal (or to this parent cursor) because cursor 
12057         setting theres no effect to disabled controls.
12058         - Some minor source changes to follow the coding style guidelines.
12059
12060         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
12061         controls.
12062
12063 2007-03-22  Chris Toshok  <toshok@ximian.com>
12064
12065         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
12066         generates.
12067
12068 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12069
12070         * XplatUIX11.cs: Implement default locations for forms.
12071         * Form.cs: Completely rework startup location for forms. Fixes #79964.
12072         * Hwnd.cs: Add previous_child_startup_location (to track the current
12073           startup location for any child forms of the current form) and
12074           previous_main_startup_location (to track the startup location for
12075           the current toplevel form).
12076
12077 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12078
12079         * Control.cs: Don't trigger a layout if an implicit control is added
12080         that isn't visible.  Also, don't notify the owner when an implicit control
12081         is added.  (Owners shouldn't even know about their implicit controls.)
12082
12083 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12084
12085         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
12086         to save some re-layouts.
12087
12088 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
12089
12090         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
12091         [Fixes #81203]
12092
12093 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
12094
12095         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
12096         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
12097
12098 2007-03-21  Mike Kestner  <mkestner@novell.com>
12099
12100         * ListView.cs : disable selection update for non-left button clicks
12101         with mods and over selected items.  [Fixes #80524]
12102
12103 2007-03-20  Jackson Harper  <jackson@ximian.com>
12104
12105         * TextControl.cs:
12106         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
12107         \r\r\n, \n.
12108
12109 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12110
12111         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
12112           very probably a more complicated calculation there. Update the
12113           textbox' ForeColor and BackColor when the ComboBox' colors are
12114           changed. Change the border change in LayoutComboBox to only affect
12115           the textbox, not all the calculations there. Seems to fix most of
12116           #79436.
12117
12118 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12119
12120         * ComboBox.cs: Handle Home and End keys as well as all combinations of
12121           modifiers + navigation keys as input keys, enables advanced text
12122           selection in the combobox (like Shift+Left Arrow for instance).
12123           ComboTextBox now overrides Focused and returns whatever
12124           ComboBox.Focused returns, since it really should be focused
12125           whenever the ComboBox is. Fixes #80795. Also make the border around
12126           the text box one pixel bigger, as mentioned in #79436.
12127
12128 2007-03-20  Jackson Harper  <jackson@ximian.com>
12129
12130         * TreeView.cs: Don't offset the images, this was causing some
12131         artifacts when expanding/collapsing with images that were the
12132         exact height of the treenode.
12133
12134 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12135
12136         * TrackBar.cs: Query the theme for the correct value when the mouse
12137           moves and the thumb is pressed. 
12138         * Theme.cs: Added TrackBarValueFromMousePosition
12139         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
12140           implementation was updating the trackbar value when drawing, now
12141           the drawing methods only draw. Fixes #80900. Refactored the
12142           calculations out to TrackBarValueFromMousePosition and
12143           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
12144           according to the mouse position whenever it wants to. Changed the
12145           light coloured pen when drawing the thumb from ControlLight to
12146           ControlLightLight, because the ControlLight is the same colour as
12147           the background so the 3D effect is lost. 
12148
12149 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12150
12151         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
12152         defined. Fixes #80784.
12153
12154 2007-03-20  Marek Habersack  <mhabersack@novell.com>
12155
12156         * ContextMenuStrip.cs: align with the change introduced in
12157         revision 74664.
12158
12159 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12160
12161         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
12162         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
12163         in SetTopmost.
12164
12165 2007-03-19  Chris Toshok  <toshok@ximian.com>
12166
12167         * Control.cs (WmPaint): don't make use of the Handle property
12168         after an event is emitted, as the user could have closed the
12169         form/destroyed the control.  Store the Handle in a local variable
12170         and make use of that.  Fixes bug #80768.
12171
12172 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12173
12174         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
12175         behavior in X11 environments.
12176
12177 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12178
12179         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
12180         because on setter of topmost we dont call SetTopmost when handle is not
12181         created.
12182
12183 2007-03-20  Jackson Harper  <jackson@ximian.com>
12184
12185         * TextControl.cs: Need to use SelectionLength () not
12186         selection_length, since that var is reset to -1.
12187         - Draw the caret when we don't have focus.
12188         * TextBox.cs: The selectall actually doesn't occur until the first
12189         focus.
12190         * TextBoxBase.cs: Need to update the caret position after a
12191         selectall.
12192         
12193 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12194
12195         * ListView.cs: Enable scrolling when using Tile view.
12196
12197 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
12198
12199         [Fixes #80902]
12200
12201         * XplatUIDriver.cs: Abstract SetOwner method created.
12202
12203         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
12204         must be implemented and was masked as todo.
12205
12206         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
12207         GWL_HWNDPARENT.
12208
12209         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
12210         cheking for null owner to remove transient. The SetTopmost will be change
12211         on a decond step.
12212
12213         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
12214         SetTopmost. Now owned forms will work properly in win32 and X11.
12215
12216 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12217
12218         * MdiWindowManager.cs: Update function name.
12219         * Form.cs: After closing a form MdiParent is always null.
12220         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
12221           better what it should do: necessary book-keeping when the form is
12222           closed, it should not close the form itself.
12223
12224 2007-03-19  Andreia Gaita  <avidigal@novell.com>
12225
12226         * ListViewItem.cs: Fix back and fore color. The subitems only
12227         use their own colors if they are set, otherwise use the listview's
12228         colors. Don't set default colors on constructor for subitem.
12229         Fixes #79315.
12230
12231 2007-03-19  Mike Kestner  <mkestner@novell.com>
12232
12233         * ListView.cs : make box selection for Details views with 
12234         FullRowSelect conform to MS behavior when clicking in the "item" 
12235         column and clicking outside the defined columns.
12236         [Fixes case 5-6 of #80374]
12237
12238 2007-03-19  Chris Toshok  <toshok@ximian.com>
12239
12240         * ScrollableControl.cs: create the controls from within the ctor,
12241         but don't actually add them until our handle is created.  this
12242         fixes a NRE possibility jpobst found (if you override OnLayout in
12243         a subclass, it's called before your ctor).  Also, add a
12244         IsHandleCreated guard to UpdateSizeGripVisibility as well.
12245
12246 2007-03-19  Jackson Harper  <jackson@ximian.com>
12247
12248         * TextBox.cs: Reduce the amount of invalidation we do.
12249         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
12250         some of them are true by default on MS.
12251         - Add some functions to reduce the amount of invalidates we do.
12252         * TextControl.cs: Less invalidation.
12253
12254 2007-03-19  Chris Toshok  <toshok@ximian.com>
12255
12256         [ Fixes #81773, and *seems* to fix #81553 as well ]
12257
12258         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
12259         AccumulateDestroyedHandles.  We need to do it *after* we send
12260         WM_DESTROY, as the user's code can access Control.Handle in
12261         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
12262         move the WM_DESTROY/zombie handling to before the call to
12263         XDestroyWindow.  For some reason without this ordering
12264         FormTest.RecreateHandle hangs.  This ordering is semantically
12265         equivalent, however, as XDestroyWindow is async anyway.
12266
12267 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
12268
12269         * RichTextBox.cs: Reset backcolor_set after setting default.
12270
12271 2007-03-19  Chris Toshok  <toshok@ximian.com>
12272
12273         * ScrollableControl.cs: the scroll position should not effect the
12274         canvas size.  commit patch from georgegiolfan@yahoo.com, which
12275         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
12276         
12277 2007-03-19  Chris Toshok  <toshok@ximian.com>
12278
12279         * ScrollableControl.cs: clean this up a bit.  create the
12280         scrollbars in the ctor and just show/hide them as needed.  Also,
12281         make hscroll_visible/vscroll_visible internal to Recalculate, and
12282         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
12283         everywhere else.  This seems to fix the scrollbars appearing
12284         beneath the content for me (i have *no* idea why that is,
12285         however.)
12286
12287 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
12288
12289         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
12290         some redundacy for stuff in Anchor and Dock that base will take care of.
12291         [Fixes #80762]
12292
12293 2007-03-19  Mike Kestner  <mkestner@novell.com>
12294
12295         * ListView.cs : make box selection for Details views without 
12296         FullRowSelect dependent on the text bounds, not item bounds.
12297         * ListViewItem.cs : add an internal property to obtain the TextBounds
12298         in Details view.  [Fixes case 1-4 of #80374]
12299
12300 2007-03-19  Andreia Gaita  <avidigal@novell.com>
12301
12302         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
12303         we're < 2.0. #78448 && #80316
12304
12305 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
12306
12307         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
12308         have the same style available as the previously selected one.  Also,
12309         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
12310
12311 2007-03-19  Jackson Harper  <jackson@ximian.com>
12312
12313         * TextControl.cs: Add an alignment property that all new lines
12314         will be given.
12315         - Make sure to use the align shift when calculating the line's X
12316         position.
12317         * TextBox.cs: Set the alignment on the document as well as on all
12318         the document lines.
12319
12320 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12321
12322         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
12323           throw if setting the parent of an mdichild that already has an
12324           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
12325           AssemblyProductAttribute in the assembly, use the type's namespace (as
12326           MS seems to do). CreateControl: don't create the handle if the control
12327           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
12328           create handle if the control is not a form. Change FocusInternal to
12329           virtual so that it can be overriden by Form.
12330         * TextBox.cs: Update call to FocusInternal.
12331         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
12332           form is not a toplevel form when it's a mdi child, so update is_toplevel
12333           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
12334           hasn't been created. Show (IWin32Window): Don't allow this overload for
12335           toplevel windows. CenterToParent/CenterToScreen/Select: create the
12336           handle as MS does. SetVisibleCore: if called on a MdiChild and the
12337           parent isn't visible yet, save the visibility and restore it when the
12338           parent is made visible.
12339         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
12340           methods, since the visibility of the scrollbars can be changed from
12341           several places, not only from AutoScroll.
12342           [Fixes #81179]
12343
12344 2007-03-19  Jackson Harper  <jackson@ximian.com>
12345
12346         * RichTextBox.cs: Enable shortcuts by default.
12347         * TextBoxBase.cs: Add conditional shortcuts.  
12348
12349 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
12350
12351         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
12352
12353 2007-03-19  Chris Toshok  <toshok@ximian.com>
12354
12355         [ Fixes bug #80604]
12356         
12357         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
12358         swallow the message we're waiting on, instead of delivering it, as
12359         this is only used for the WM_SHOWWINDOW raised from
12360         MapWindow/UnmapWindow, and the message needs to be generated
12361         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
12362         before doing the Map/Unmap.  Also make sure that the Hwnd is still
12363         alive after the message has been handled.
12364
12365         *before* the window is shown.
12366
12367         * Control.cs (CreateControl): guard a few more things inside the
12368         if (!is_created) block, as we might end up being called again -
12369         yay .net.
12370         (WmShowWindow): call CreateControl if we're showing the control.
12371
12372 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12373
12374         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
12375           controls without a handle if they have any parent with a handle. In
12376           Dispose add a check whether the handle is created or not before
12377           calling BeginInvoke, this removes the need of the extra disposing
12378           parameter (which was bogus anyway since it didn't prevent the
12379           invoke from happening, it only skipped the check for an existing
12380           handle, meaning that the invoke would call on an inexistent
12381           handle).
12382
12383 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
12384
12385         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
12386         appears in taskbar.
12387
12388 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
12389
12390         * MessageBox.cs:
12391         - Fixed a problem that dont show help button for messages with 3 buttons.
12392         - Refactory button size and position calculations, now dont use fixed 
12393         values, also fixed button sizes (#80043) and form's border space.
12394         - AddButton method created, now all other AddButton methods call this one.
12395         - Some other source code cosmetic changes.
12396
12397 2007-03-18  Jackson Harper  <jackson@ximian.com>
12398
12399         * RichTextBox.cs: Don't do this all fonts must match check if
12400         there is only one char selected.
12401
12402 2007-03-18  Jackson Harper  <jackson@ximian.com>
12403
12404         * TreeView.cs: ScrollWindow works properly now, so we don't need
12405         to screw around with the scroll area.  This fixes some artifacts
12406         when expanding and collapsing.
12407
12408 2007-03-18  Jackson Harper  <jackson@ximian.com>
12409
12410         * TextBoxBase.cs: Allow updating the selection position when the
12411         cursor is outside the textarea, but we have a capture.
12412         * TextControl.cs: A special case for when the cursor is outside
12413         the bounds of the TB.
12414         
12415 2007-03-18  Jackson Harper  <jackson@ximian.com>
12416
12417         * TextBoxBase.cs: Remove image pasting code for now.  There is no
12418         way to get an image on the clipboard right now anyways.
12419         * TextControl.cs:
12420         * RichTextBox.cs: Use the new RTF Picture class for pictures.
12421
12422 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
12423
12424         * MessageBox.cs:
12425         - Set window properties in constructor intead of on CreateParams.
12426         - Remove topmost from Window ExStyle.
12427         - Set ShowInTaskbar to false.
12428         - Set form border to FixedDialog.
12429         - Some cosmetic changes and remove unneeded comments.
12430         - It fixes itens 2,3 and 4 of bug #80043.
12431
12432 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
12433
12434         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
12435         none was explicitly set. Fixes part of bug #79949.
12436
12437 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
12438
12439         * ToolStripComboBox.cs: Add AutoComplete*.
12440
12441 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
12442
12443         * ToolStripComboBox.cs: Add FlatStyle.
12444
12445 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
12446
12447         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
12448         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
12449
12450 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12451
12452         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
12453           CheckBox.cs, RadioButton.cs, BindingSource.cs,
12454           DataGridColumnStyle.cs: Remove warnings.
12455
12456 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12457
12458         * Menu.cs: MergeMenu: Check menu argument for null before looping over
12459           it.
12460         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
12461           visibility of mdi child forms. FormSizeChangedHandler: update the
12462           maximized size if size has changed while maximized.
12463         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
12464           creating the handle.
12465         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
12466           avoid creating the handle if not created.
12467         * XplatUI.cs: Update debug output.
12468         * XplatUIStructs.cs: Added ToString's for a couple of structs.
12469
12470 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
12471
12472         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
12473         ProcessCmdKey().
12474         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
12475         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
12476         Implement keyboard shortcuts.
12477
12478 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
12479
12480         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
12481         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
12482         ColorDialog and all derived classes.
12483
12484 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
12485
12486         [ Fixes bug #79828 ]
12487
12488         * ToolBar.cs:
12489         - Rename ToolBarButtonInfor to ToolBarItem.
12490         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
12491         - Maintain an array of ToolBarItem, used instead of ToolBarButton
12492         collection to be able add same button more than one time on a toolbar.
12493         - Refactory all properties and methods to use ToolBarItem. 
12494
12495         * ToolBarButton.cs: 
12496         - Remove all propeties and methods that is now in ToolBarItem.
12497         - Rectangle propery now gets the rectangle from first ToolBarItem to
12498         mimic win32 behavior.
12499         - Size calculation and layout methods also removed.
12500
12501         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
12502         ToolBarItem instead of ToolBarButton to right drawing buttons when
12503         same button/separator was added more than one time to ToolBar.
12504
12505         * ThemeNice.cs: Same as above. 
12506
12507 2007-03-15  Andreia Gaita  <avidigal@novell.com>
12508
12509         * XplatUIX11.cs: Fire extra MouseMove events right after
12510         MouseDown and MouseUp, emulating win32's <censored> behaviour
12511         for apps that rely on it.
12512
12513 2007-03-15  Jackson Harper  <jackson@ximian.com>
12514
12515         * TextControl.cs:
12516         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
12517         it is drawn on the controls client window and there is no NC
12518         area.
12519         - Set the background color to gray on 2.0 when we are readonly.
12520
12521 2007-03-15  Chris Toshok  <toshok@ximian.com>
12522
12523         [ Fixes bug #81144 ]
12524         
12525         * XplatUIX11.cs: implement VirtualScreen independently of
12526         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
12527         property.
12528
12529 2007-03-15  Chris Toshok  <toshok@ximian.com>
12530
12531         * Hwnd.cs: add an internal field for the cached_window_state.
12532
12533         * XplatUIX11.cs: cache the window state, invalidating the cache
12534         (and thus re-querying the X server) only when we see an update to
12535         the _NET_WM_STATE property.
12536
12537 2007-03-15  Chris Toshok  <toshok@ximian.com>
12538
12539         * BindingSource.cs: get a lot of the unit tests working.
12540
12541 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
12542
12543         * Control.cs: Modify UpdateStyles to store distances when bounds >=
12544         0 instead of just bounds > 0.  [Fixes bug #80912]
12545
12546 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
12547
12548         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
12549         and methods.
12550
12551 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
12552         
12553         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
12554         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
12555         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
12556         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
12557
12558 2007-03-15  Chris Toshok  <toshok@ximian.com>
12559
12560         [ Fixes #81101 ]
12561         
12562         * Control.cs: add Ivan's fix for 81101, with a slight modification
12563         - you can set control.Target to null.
12564
12565 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
12566
12567         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
12568         HideDropDown, use Hide instead to prevent an NRE.
12569         [Fixes bug #81147]
12570
12571 2007-03-14  Jackson Harper  <jackson@ximian.com>
12572
12573         * TextBoxBase.cs: Mess with the creation stuff a little. We need
12574         to calculate the document before the handle is created, in some
12575         cases. (Actually just one case).
12576
12577 2007-03-14  Jackson Harper  <jackson@ximian.com>
12578
12579         * TextBoxBase.cs: Need to display the caret after letting the base
12580         wndproc handle the focus methods, because the caret display
12581         methods check the focus state.
12582         - Try to display the caret after updating it's position with SelectWord.
12583         - Don't need to do an immediate update on this recalc, since there
12584         will be an invalidate anyways.
12585
12586 2007-03-14  Jackson Harper  <jackson@ximian.com>
12587
12588         * TreeView.cs: Some workarounds so that we can match event order a
12589         little better.
12590
12591 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
12592
12593         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
12594         #80803. Avoid NullReferenceException when Control does not have
12595         parent. Fixed different blinkstyle issues. Only subscribe to Tick
12596         event a single time. Only draw error icon when control is created and
12597         visible. Fixes failing unit tests.
12598
12599 2007-03-14  Andreia Gaita  <avidigal@novell.com>
12600
12601         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
12602         Selecting events. Fire Leave and Enter events when changing tabs.
12603
12604 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
12605
12606         * TreeView.cs: Add TreeViewNodeSorter.
12607         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
12608
12609 2007-03-14  Chris Toshok  <toshok@ximian.com>
12610
12611         * Form.cs: go ahead and remove the RecreateHandles that jpobst
12612         removed earlier and I had him add back it.  It turns out metacity
12613         *does* in fact handle the MOTIF_WM_HINTS property changing, it
12614         just doesn't redraw the window titlebar until you resize the
12615         window.  This also means we aren't recreating the entire window
12616         hierarchy on X when you change this property.  And it looks better
12617         on windows, too.
12618
12619 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12620
12621         * ListViewItem.cs:
12622         * ListView.cs: Collecting selection information
12623         is now done in SelectedIndexCollection rather than in
12624         SelectedListViewItemCollection. This is done so we can
12625         have the selection information code in one single place
12626         (virtual mode selection information entirely depends on
12627         SelectedIndexCollection).
12628
12629 2007-03-13  Miguel de Icaza  <miguel@novell.com>
12630
12631         * ErrorProvider.cs: Add stubs for ISupportInitialize
12632
12633 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12634
12635         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
12636         in the right order with the right values, from the Checked property, 
12637         just as MS does (instead of triggering them from ListView).
12638
12639         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
12640
12641 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12642
12643         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
12644         the correct handler in OnItemCheck method (ItemCheckEventHandler 
12645         instead of EventHandler). This used to throw an InvalidCastException.
12646
12647 2007-03-13  Jackson Harper  <jackson@ximian.com>
12648
12649         * TextBoxBase.cs: Calculate the document before the handle is
12650         created, so there isn't an extra invalidate called.
12651
12652 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
12653
12654         * Form.cs: Don't set owner in ShowDialog until we are sure
12655         that we aren't going to throw an exception.  [Fixes bug #80773]
12656
12657 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
12658
12659         * TreeView.cs: Make it compile.
12660
12661 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12662
12663         * Control.cs: Another place we don't call SizeFromClientSize.
12664         * Form.cs: Another place we don't call SizeFromClientSize.
12665         [Fixes bug #81125]
12666
12667 2007-03-12  Jackson Harper  <jackson@ximian.com>
12668
12669         * TreeView.cs: Basically emulating some strangness here with
12670         exanding nodes and setting node positions when windows aren't
12671         created.
12672         - Also attempting to walk the node tree less than previously, and
12673         just use visible order calculations for determining offsets.
12674         - oops made scrolling backwards.
12675         * TreeNode.cs: We need to start nodes with a zero visible order,
12676         because the order calcs are based on the first nodes order.
12677
12678 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12679
12680         * Form.cs: Don't exit the program if RecreateHandle is called on
12681         the main form.
12682
12683 2007-03-12  Chris Toshok  <toshok@ximian.com>
12684
12685         * XEventQueue.cs: remove the use of PostQuitState.
12686
12687         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
12688         WM_QUIT message in GetMessage, return false (and if we're in the
12689         nested WaitForHwndMessage, repost the WM_QUIT message).
12690
12691 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12692
12693         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
12694         or the MaximizeBox properties.  [Part of bug #80640]
12695
12696 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
12697
12698         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
12699         no links.
12700
12701 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12702
12703         * ToolStripItem.cs: Fix some tests I broke by checking Visible
12704         instead of visible.
12705
12706 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
12707
12708         * FileDialog.cs: Use text of File name combobox to determine what
12709         files the user selected. Added tokenizer to parse the file names.
12710         Fixes bug #81123.
12711
12712 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
12713
12714         * Control.cs: We can't call SizeFromClientSize in the constructor,
12715         but we still need to do the same work, so make an internal version.
12716         [Fixes bug #80621]
12717
12718 2007-03-12  Jackson Harper  <jackson@ximian.com>
12719
12720         * TreeView.cs:
12721         * TreeNode.cs:
12722         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
12723         IsExpanded.
12724
12725 2007-03-12  Jackson Harper  <jackson@ximian.com>
12726
12727         * TextBoxBase.cs: Now that the handles are being created a little
12728         later, we need to make sure that the document is recalculated when
12729         the handle is created.
12730
12731 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
12732
12733         * Theme.cs: GetLinkFont abstract method added.
12734         
12735         * LinkLabel.cs: 
12736         - Remove CalcTrimRectangle, no longer needed.
12737         - Factor also remove, position issues must be fixed in libgdiplus.
12738         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
12739         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
12740         care about font used to draw links.
12741         - Set TabStop to true when control is "Selectable", control is selectable
12742         when have one or more links. Fixes #80501 (test case is also added).
12743         - Set the LinkArea values after links change, LinkArea values must be
12744         based in first link position and size, a test case was created.
12745         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
12746         the attribute must be true LinkArea.Length > 0. The same was applied to
12747         TabStop.
12748         
12749         * ThemeWin32Classic.cs: 
12750         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
12751         in draw method.
12752         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
12753         color change.
12754         - Draw focus rectangle for every parts focused, including parts that 
12755         is on another line, its because regions returns various rectangles
12756         and not only one. Needed to mimic W32 look.
12757         - Uses Graphics.Clip to delimite region painted, it mean that now 
12758         complete text is passed to DrawString, with this we solve layout
12759         issues without create another text renderer.
12760         - Uses Region.Intersect to fix some flickers problems, now only needed
12761         parts will redrawed.
12762         - This changes fixes #79614 and some other unreported issues, on Linux 
12763         some layout problems still remain, the problem is under 
12764         MeasureCharacterRanges but it is an libgdiplus bug.
12765
12766 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
12767
12768         * TextBox.cs: Set for foreground color.
12769         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
12770         this is already done in Control.
12771
12772 2007-03-10  Jackson Harper  <jackson@ximian.com>
12773
12774         * TextBox.cs: Set the background color, but reset the
12775         backcolor_set flag which is just for the user setting the
12776         background color.
12777
12778 2007-03-09  Chris Toshok  <toshok@ximian.com>
12779
12780         * Control.cs: really remove the call to XplatUI.SetVisible from
12781         CreateHandle(), like I said I did when I merged the branch.
12782
12783         * BindingSource.cs: implement some more of this stuff.
12784
12785 2007-03-09  Jackson Harper  <jackson@ximian.com>
12786
12787         * TextBox.cs: Don't explicitly set our background colors.
12788         * TextControl.cs:
12789         * TextBoxBase.cs: Draw readonly text.
12790         - Need to invalidate when backcolor or readonly are changed.
12791         
12792 2007-03-09  Jackson Harper  <jackson@ximian.com>
12793
12794         * TextBoxBase.cs: Don't set the forecolor until the handle is
12795         created.
12796         - Do not raise OnPaint, and removed some old debug code.
12797
12798 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
12799
12800         * ScrollableControl.cs: Fix mouse wheel scrolling.
12801
12802 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
12803
12804         * Control.cs: Wire up MouseDoubleClick event.
12805
12806 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
12807
12808         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
12809         top or bottom.
12810         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
12811         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
12812         item is added.  This logic was moved to ToolStrip.OnItemAdded.
12813         [Fixes bug #81090]
12814
12815 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12816
12817         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
12818
12819 2007-03-08  Jackson Harper  <jackson@ximian.com>
12820
12821         * TreeView.cs: Show the correct image for selected node (this used
12822         to work, not sure how the code got deleted). Also implemented 2.0 feature
12823         SelectedImageKey.
12824
12825 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12826
12827         * ListView.cs:
12828         * ListViewItem.cs: Cache index in items when retrieving them
12829         in VirtualMode.
12830
12831 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
12832
12833         * ToolStripItem.cs: Don't return the explicit_size if we are using 
12834         AutoSize.  Fixes invalidation issue when user has explicitly set a
12835         size and has AutoSize = true.
12836
12837 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
12838
12839         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
12840
12841 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12842
12843         * DataGridView.cs: Remove event handler from DataView when a
12844         DataTable is used as DataSource.
12845
12846 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
12847
12848         * Control.cs: Create internal setter for client_size to allow it to be
12849         set without triggering resizing code.
12850         * Form.cs: Calculate client_size in constructor, only change client_size
12851         in FormBorderStyle property if Handle has been created.
12852         [Fixes #80574, #80791]
12853
12854 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
12855
12856         * SystemInformation.cs: Add TerminalServerSession.
12857
12858 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
12859
12860         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
12861         TreeView code.
12862
12863 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
12864
12865         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
12866         Handle before we were supposed to.  Now checks ActivateOnShow property
12867         in Control.
12868         * Control.cs: Add internal ActivateOnShow property.
12869         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
12870         for ActivateOnShow.
12871         * Hwnd.cs Remove no longer needed no_activate field.
12872
12873 2007-03-07  Jackson Harper  <jackson@ximian.com>
12874
12875         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
12876         2.0 properties
12877         * DrawTreeNodeEventHandler.cs: Add
12878         * DrawTreeNodeEventArgs.cs: Correct default value.
12879         
12880 2007-03-07  Chris Toshok  <toshok@ximian.com>
12881
12882         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
12883         to be called before NativeWindow.WndProc.  Put the HwndCreating
12884         magic there to hook up our Hwnd's to handles.
12885
12886 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
12887
12888         * DataGridView.cs: Comment out debug code.
12889
12890 2007-03-07  Chris Toshok  <toshok@ximian.com>
12891
12892         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
12893         to make the rest of the world happy]
12894
12895         * Control.cs (CreateHandle): there's no need to call
12896         XplatUI.SetVisible here, it's effectively done by
12897         XplatUI.CreateWindow on X now, and always was on windows.
12898
12899         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
12900         shortcircuit out of the loop if we have a message loop running on
12901         this thread.
12902
12903         [Changelog from merge]
12904
12905         2007-03-05  Chris Toshok  <toshok@ximian.com>
12906
12907                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
12908                 causes handle creation.
12909
12910         2007-02-28  Chris Toshok  <toshok@ximian.com>
12911
12912                 * ApplicationContext.cs: Add a flag to make sure we only raise the
12913                 ThreadExit event once (ExitThreadCore can be indirectly called
12914                 from a few places.)  I don't like the additional flag, but it
12915                 makes the event ordering/count correct.
12916
12917                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
12918                 without locking the collection.  An enumerator doesn't give us any
12919                 protection from modification anyway.  Lock the thread hash and
12920                 replace the complicated enumerator loop with a foreach.
12921                 (Application.CloseForms): make internal so it can be called from
12922                 ApplicationContext.  This should probably be moved to MWFThread.
12923                 (Application.ExitThread): don't call MWFThread.Current.Exit()
12924                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
12925                 when the runloop exits (in response to WM_QUIT.)
12926                 (Application.RunLoop): add a comment (and check) for
12927                 context.MainForm being null after setting context.MainForm.Visible
12928                 = true.  This is because you're perfectly free to dispose of a
12929                 form in VisibilityChanged.  Chalk this up to another case where we
12930                 need to synchronously generate WM_ACTIVATE from Control.Show.
12931                 Also, add handling for WM_QUIT here so we'll exit the loop.
12932                 
12933                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
12934                 fact that we don't wait if we're only unmapping the whole_window
12935                 makes me a bit nervous, but it doesn't seem to cause any problems
12936                 yet.
12937
12938                 also, add a comment about the stupid, broken and wrong resetting
12939                 of PostQuitState to false in GetMessage().
12940
12941                 In PostQuitMessage, we need to add a WM_QUIT message to the
12942                 thread's queue.  We use the FosterParent to get the right
12943                 handle/hwnd/queue.
12944
12945                 Lastly, in SetVisible, we need to unmap both windows, since the
12946                 waiting only happens when we're unmapping the client window.  So
12947                 now, the *only* time we unmap just the whole_window is in the hack
12948                 for resizing a control to 0,0.
12949                 
12950         2007-02-21  Chris Toshok  <toshok@ximian.com>
12951
12952                 * Application.cs (CloseForms): rewrite this so that we don't
12953                 modify the list while we're traversing it.
12954
12955         2007-02-20  Chris Toshok  <toshok@ximian.com>
12956
12957                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
12958                 of OnHandleCreated.
12959                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
12960                 handle is created.  otherwise we'll create it here.
12961                 (VerticalScrollEvent): same here.
12962
12963                 * Application.cs (CloseForms): call Form.Dispose, don't post
12964                 WM_CLOSE_INTERNAL.
12965
12966                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
12967                 here. Application should Dispose() of the Form's.
12968
12969                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
12970                 WM_DESTROY as well.
12971                 (MapWindow,UnmapWindow): only actually do the waiting for
12972                 SHOWWINDOW if the control we're dealing with is a Form.
12973                 (CreateWindow): if the control isn't a form, SendMessage
12974                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
12975
12976                 * Control.cs (SetVisibleCore): always use is_visible here, not
12977                 value.  If we use value, we can end up re-setting something
12978                 visible if, for instance, you do Control.Hide() in a delegate
12979                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
12980
12981         2007-02-20  Chris Toshok  <toshok@ximian.com>
12982
12983                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
12984                 the message we need.  PeekMessage returning false should not be a
12985                 condition under which we exit the loop.
12986
12987         2007-02-15  Chris Toshok  <toshok@ximian.com>
12988
12989                 * Control.cs (Refresh): only refresh if we've got a handle and are
12990                 visible.
12991                 (CreateAccessibilityInstance): CreateControl() here.
12992                 (UpdateChildrenZOrder): complicate the code loop even more by
12993                 taking into account controls that haven't had their handle
12994                 created, and those that aren't visible.  But on the flip side,
12995                 simplify the code by splitting it into two loops.  one which
12996                 builds up the list of child controls we're interested in, and the
12997                 other that sets the z order of those children.
12998
12999         2007-02-14  Chris Toshok  <toshok@ximian.com>
13000
13001                 * Control.cs: Control.AccessibilityObject causes the control to be
13002                 created, not just the handle.
13003
13004         2007-02-14  Chris Toshok  <toshok@ximian.com>
13005
13006                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
13007                 problem on X where a window might have its handle created (and be
13008                 visible) while the window is unmapped.  calling XConfigureWindow
13009                 on an unmapped window is bad, and generates X errors.
13010
13011         2007-02-13  Chris Toshok  <toshok@ximian.com>
13012
13013                 * Control.cs (CreateHandle): don't loop over our children setting
13014                 their parent here.  do it when in WndProc when we're shown.
13015                 (UpdateChildrenZOrder): make this internal so we can call it from
13016                 ScrollableControl.
13017                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
13018                 creating its handle.  Also, remove the calls to PerformLayout from
13019                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
13020                 OnVisibleChanged only seems to be called directly here for the
13021                 toplevel control.  It's propagated down the window hierarchy by
13022                 calls to child.OnParentVisibleChanged.
13023                 (OnVisibleChanged): don't do layout here - it's done (oddly
13024                 enough, according to a glance at stack traces on ms.net..) in
13025                 ScrollableControl.
13026                 
13027                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
13028                 z order of our children before calling PerformLayout.
13029
13030         2007-02-12  Chris Toshok  <toshok@ximian.com>
13031
13032                 [big change, fixes #80020]
13033                 
13034                 * AccessibleObject.cs: we need to make owner internal again to fix
13035                 some of ControlAccessibleObject.
13036
13037                 * Control.cs: lots of changes here.  add support for WM_CREATE,
13038                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
13039                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
13040                 we create child controls.  leave the MonoTODO's for the
13041                 accessibility calls, but fix the exceptions so the tests pass.
13042
13043                 Add the InvalidOperationExceptions to Invoke methods, and remove a
13044                 couple of InvokeInternal methods we aren't using.
13045                 
13046                 Also, add a couple of CreateHandle calls in places where we know
13047                 the handles are being created but our code doesn't reference
13048                 .Handle.
13049
13050                 Make SetVisibleCore call OnVisibleChange if the handle isn't
13051                 created.  If the handle is created, we rely on XplatUI.SetVisible
13052                 generating the event synchronously.
13053                 
13054                 Lastly, make sure we don't use this.Handle inside CreateHandle,
13055                 because we can call back into client (and that code can dispose of
13056                 the control).
13057
13058                 * XplatUIStructs.cs: misc/cleanup.
13059
13060                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
13061                 although we don't populate the wParam properly.
13062                 (CreateWindow): generate WM_CREATE.
13063                 (MapWindow,UnmapWindow): make these calls synchronous, at great
13064                 performance expense (particularly in the unmap case), to match
13065                 win32 behavior.
13066
13067                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
13068                 to call it.
13069                 (set_MdiParent): don't recreate the handle unless it's been
13070                 created already.
13071                 
13072                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
13073                 it's created.
13074
13075                 * NativeWindow.cs: this is probably the weirdest part of the
13076                 patch.  We need a way to link up the window being created to the
13077                 WM_CREATE message.  Since we can only be creating one window at a
13078                 time on a given thread, we keep track of a per-thread reference so
13079                 we can dispatch it properly.  We also need to keep track of the
13080                 Hwnd currently being created so that the win32 backend doesn't
13081                 have problems.
13082                 
13083                 * XplatUIWin32.cs: a similar change to the one we made in
13084                 NativeWindow.cs.
13085
13086 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13087
13088         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
13089         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
13090         to draw the menu shortcut string.
13091
13092 2007-03-07  Jackson Harper  <jackson@ximian.com>
13093
13094         * TreeNode.cs: Add the 2.0 collapse method.
13095
13096 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13097
13098         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
13099
13100 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13101
13102         * DataGridView.cs: Change DataSource will clear column and row
13103         lists. Call Invalidate() to reflect DataSource change.
13104
13105 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13106
13107         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
13108         and a new row is added to it.
13109
13110 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13111
13112         * DataGridView.cs: Add columns when DataSource is en empty list but
13113         is a System.Data.DataView (from a System.Data.DataTable).
13114
13115 2007-03-06  Andreia Gaita  <avidigal@novell.com>
13116
13117         * Label.cs: Implement AutoEllipsis (2.0)
13118
13119 2007-03-06  Jackson Harper  <jackson@ximian.com>
13120
13121         * TreeView.cs: Implement 2.0 TopNode setter property.
13122         - Use a local var instead of the skipped_nodes field for computing
13123         how many nodes to skip.  Otherwise we won't scroll because the
13124         valuechanged handler checks if skipped_nodes is equal to the new
13125         value.
13126         - Implement 2.0 Sort method.
13127         - Add useless 2.0 DoubleBuffer property
13128         - Implement 2.0 LineColors property.  Lets you change the color of
13129         the lines in the tree. Terribly useful for creating non cohesive
13130         desktops.
13131         - Implement 2.0 image key feature.
13132
13133 2007-03-06  Jackson Harper  <jackson@ximian.com>
13134
13135         * TreeView.cs: We can't get the bounds of the nodes before raising
13136         the AfterSelect event, because that event could change the node's
13137         bounds (scrolling, font change, etc).
13138
13139 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13140
13141         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
13142         * Form.cs: Don't recreate handle when creating FormWindowManager, just
13143           update window styles. In CreateParams us VisibleInternal instead of
13144           VIsible to get the actual visible flag set for this form.
13145         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
13146           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
13147           handle the case when the form is already maximized, in which case
13148           it should be restored. Fixes #81043.
13149
13150 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13151
13152         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
13153
13154 2007-03-05  Jackson Harper  <jackson@ximian.com>
13155
13156         * TreeViewHitTestInfo.cs: implement.
13157
13158 2007-03-05  Jackson Harper  <jackson@ximian.com>
13159
13160         * InternalWindowManager.cs: class status fix.
13161
13162 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13163
13164         * InternalWindowManager.cs: All windows that have a parent
13165         are confined to their parent when they're being moved.
13166         Fixes #80822.
13167
13168 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
13169
13170         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
13171         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
13172
13173 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13174
13175         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
13176           buttons invisible before deciding which ones should be visible
13177           (fixes minimize/maximize buttons showing up in toolwindows). Remove
13178           an unused variable.
13179         * InternalWindowManager.cs: Remove warning.
13180
13181 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13182
13183         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
13184         to throw an InvalidOperationException is virtual mode is being used.
13185
13186 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
13187
13188         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
13189         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
13190         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
13191         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13192         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
13193         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
13194
13195 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13196
13197         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
13198           driver.KeyboardDelay from XplatUI.KeyboardDelay 
13199         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
13200           (patch by Sergey Volk)
13201
13202 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13203
13204         * ToolWindowManager.cs: Added, contains logic for
13205           tool windows.
13206         * CreateParams.cs: Add a few helper methods and an
13207           internal variable to know which control the CreateParams belongs
13208           to.
13209         * Control.cs: Call Form.ChangingParent when the
13210           parent is about to be changed.
13211         * XplatUIX11.cs: DeriveStyles (): Set
13212           caption_height for all windows that have captions and are children.
13213           Update to use ToolWindowManager instead of InternalWindowManager
13214           for ToolWindows.
13215         * XplatUIWin32.cs: Set fake window styles for all
13216           windows that have window managers.
13217         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
13218           now duplicated for mdi windows when they are
13219           maximized, first for the buttons the window itself has, then for
13220           the buttons that appear in the menu bar. Makes things a little
13221           easier). Updated UpdateWindowDecorations, SetWindowState and the
13222           mouse eventhandlers accordingly.
13223         * Form.cs: Add ChangingParent (), contains the
13224           logic of what should happen when the parent changes. In MdiParent
13225           don't set things that ChangingParent () is doing. When handling
13226           WM_CLOSE, we can close the form if there are any other modal forms
13227           and the current form is a descendent of the modal form.
13228         * InternalWindowManager.cs: A lot of refactoring,
13229           the title buttons are now extracted to a separate container class
13230           that takes care of all button code (clicks, tooltips, etc). Moved
13231           Iconic|Maximized|Normal Bounds properties to this class from
13232           MdiWindowManager, so that the window state logic can succeed for
13233           other than mdi wm's. Implemented general window state change logic.
13234           Moved CreateButtons to ThemeWin32Classic, since the theme might
13235           override which buttons are available when as well as the exact
13236           location.
13237         * FormWindowManager.cs: Added, contains logic for
13238           normal forms.
13239         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
13240           which buttons go where (and if they are at all visible). 
13241           Removed special handling of maximized windows, since they aren't special. 
13242           In DrawManagedWindowDecorations don't try to draw the text if it is
13243           empty.
13244         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
13245           use whatever the wm gives us.
13246
13247 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
13248
13249         * ButtonBase.cs: Add 2.0 properties.
13250         * Button.cs: Override Draw for 2.0.
13251         * Control.cs: Add Entered and Selected properties.
13252         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
13253         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
13254         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
13255         buttons.
13256         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
13257
13258 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
13259
13260         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
13261
13262 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
13263
13264         * XplatUIWin32.cs: Register a new class with Windows each time we get
13265         a new ClassStyle.  [Fixes bugs #79432, #80817]
13266         * Controls.cs: Set the correct ClassStyle in CreateParams.
13267         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
13268
13269 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
13270
13271         * ListView.cs: Add fireEvent argument to ReorderColumn since the
13272         ColumnReordered event must not be signaled when modifying DisplayIndex
13273         of a ColumnHeader. Added internal ReorderColumns method which takes
13274         care of drawing, and updating the internal DisplayIndex of the
13275         ColumnHeader. Added AddColumn method which is invoked from
13276         ColumnHeaderCollection when adding or inserting columns, and which
13277         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
13278         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
13279         Recalculated dispay indices after removing a ColumnHeader.
13280         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
13281         match MS. Allows last display index to be returned after ListView
13282         is disposed. Update actual location of ColumnHeader when DisplayIndex
13283         is modified.
13284
13285 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
13286
13287         * LinkLabel.cs: Improve CalcTrimRectangle.
13288         
13289         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
13290
13291 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
13292
13293         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
13294         get rectangle as a result value.
13295
13296 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
13297
13298         * LinkLabel.cs: Theres some diferences between rectangle return from 
13299         MeasureCharacterRanges and the area used for DrawString to fix this 
13300         CalcMeasurementFactor method was created, it calcules the diferences
13301         to be use later to adjust rectangle in draw operations. Fixes #80473.
13302         
13303         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
13304         to adjust draw rectangle.
13305
13306 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
13307
13308         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
13309         text and some other changes to reduce and optimize source code.
13310
13311 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
13312
13313         * RadioButton.cs: Implement 2.0 event.
13314         * RelatedImageListAttribute.cs: Implement new class.
13315
13316 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
13317
13318         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
13319
13320 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
13321
13322         * CheckBox.cs: Implement 2.0 functionality.
13323
13324 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13325
13326         * ListView.cs: Refactor Add and AddRange methods of
13327         ListViewItemCollection, to not update the ListView
13328         everytime an item is added in AddRange. Also move the update
13329         code to a new CollectionChanged method, and call it
13330         from other methods that need it as well (this should also fix some
13331         bugs when Sorting is used).
13332
13333 2007-02-27  Jackson Harper  <jackson@ximian.com>
13334
13335         * TextControl.cs: Try to never let the caret stay in a non-text
13336         tag.
13337         * TextBoxBase.cs: Update the caret.
13338
13339 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
13340
13341         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
13342         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
13343         delete POINT structure, duplicate of one in XplatUIStructs.
13344         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
13345
13346 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
13347
13348         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
13349         edit box since otherwise the Label would immediately be set (even if
13350         the user did not modify the label). In OnKeyDown set Handled to true
13351         if Return or Escape was pressed. In ColumnHeaderCollection unlink
13352         columns that are to be removed. In ListViewItemCollection unlink items
13353         that are to be removed.
13354
13355 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
13356
13357         * TextRenderer.cs: If we set a GDI clip region, we need to clear
13358         it when we are done.  [Fixes bug #80949]
13359
13360 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13361
13362         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
13363
13364 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13365
13366         * ListView.cs: I forgot to commit the changes for ListView 
13367         in my previous patch.
13368
13369 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13370
13371         * Clipboard.cs: Partially implement an overload of SetDataObject.
13372         * Form.cs: Implement ShowWithoutActivation.
13373         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
13374
13375 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13376
13377         This is a first set of changes to make the Virtual mode works,
13378         by avoiding the retrieval of ListViewItem instances until
13379         draw time.
13380
13381         * ListView.cs: Store item position in the ListView instead of the
13382         ListViewItem, this way we don't request the Bounds property of
13383         ListViewItem inside the ListView calculations, as well as cache the item
13384         size in item_size field. Store indexes instead of ListViewItem
13385         instances in the matrix used by icon view. Add a ItemMatrixLocation
13386         struct to hold the row and col info of the matrix info.
13387
13388         * ListViewItem.cs: Don't store the location anymore, and only cache
13389         the rectangles for GetBounds. Use the ListView.GetItemLocation
13390         method to retrieve the actual location.
13391
13392 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13393
13394         * TextRenderer.cs: Add clipping support, thanks to George.
13395         [Fixes bug #80949]
13396
13397 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13398
13399         * ListViewItem.cs: Cancel label edit when item is removed from 
13400         ListView.
13401         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
13402         event before the edit textbox is displayed.  Added CancelEdit method
13403         which is used end to editing while ignoring the value set by the
13404         user. In EndEdit, set focus to ListView to avoid losing focus to
13405         other controls. In ListViewItemCollection.Clear, cancel editing of
13406         any of the items.  In Remove, cancel editing of item being removed.
13407         Avoid udplicate code by modifing RemoveAt to invoke Remove.
13408
13409 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13410
13411         * FileDialog.cs: Update FSEntry when move is successful. Fixes
13412         bug #80948.  
13413
13414 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13415
13416         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
13417         compatible with non X11 systems. Fixes #80901.
13418
13419 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
13420
13421         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
13422         whether the item should be unselected and reselect. We do no want this
13423         when we're starting to edit the label. Do not fire the 
13424         SelectedIndexChanged event from ListView when its already been fired
13425         by modifying ListViewItem.Selected. Fixes bug #80943.
13426
13427 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13428
13429         * TextRenderer.cs: Previos commit logic was backwards.
13430
13431 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
13432
13433         * TextRenderer.cs: Don't add padding on MeasureText if we were
13434         sent the NoPadding flag.
13435
13436 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13437
13438         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
13439         after DrawButton. To prevent image overlaps button borders SetClip and 
13440         ResetClip added before and after draw image. Fixes #79129.
13441
13442 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
13443
13444         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
13445         window size, it fix problem when you run under win32 that theres
13446         Size diferent than ClientSize. Also fix controls size and positions
13447         to mimic Win32. Fixes #80837.
13448
13449 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
13450
13451         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
13452         menu area to fix some problems for non X11 systems. Fixes #80613.
13453
13454 2007-02-22  Jackson Harper  <jackson@ximian.com>
13455
13456         * TreeNode.cs: When a node is expanded, set its is_expanded flag
13457         even if it doesn't have any children.
13458
13459 2007-02-22  Jackson Harper  <jackson@ximian.com>
13460
13461         * TreeView.cs: Calculate the top node 'on the fly', this
13462         eliminates issues where you need to click on the tree before
13463         scrolling it to get the top node computed correctly.
13464         * TreeNodeCollection.cs: We don't need to mess with the top node
13465         anymore.
13466
13467 2007-02-22  Jackson Harper  <jackson@ximian.com>
13468
13469         * DataGridViewRow.cs: Fix typo so height can actually be set.
13470         Patch by Peter Grimm.
13471
13472 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13473
13474         * FileDialog.cs: Fixed support for renaming files and directories.
13475         * ListView.cs: Do not lose focus when edit is canceled. Process
13476         Escape as regular key (to prevent closing of dialogs).
13477
13478 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13479
13480         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
13481         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
13482
13483 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
13484
13485         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
13486         did not modify label.
13487         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
13488         modified the text. Reset Label when user presses Escape in edit mode.
13489         Move focus to ListView after having cancelled or finished editing the
13490         label.
13491
13492 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
13493
13494         * ComboBox.cs: Removed unnecessary initializations. Marked items field
13495         private. Clear textbox when Text is set to null and SelectedIndex is
13496         already -1.
13497         * FileDialog.cs: Removed unnecessary initializations. Removed 
13498         workarounds for ComboBox bugs that are now fixed. Modified
13499         DefaultExt, InitialDirectory and Title property to change null to
13500         zero-length string in getters. Avoid directly accessing fields.
13501
13502 2007-02-20  Jackson Harper  <jackson@ximian.com>
13503
13504         * TextControl.cs: Remove RecalAlignments call, that was some
13505         debugging leftovers.
13506         - Don't use the line indent when we shouldn't.
13507         * RichTextBox.cs: Add support for paragraph left indents.
13508
13509 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13510
13511         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
13512         Seems like the class status pages doesn't catch params differences.
13513
13514 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
13515
13516         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
13517
13518 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
13519
13520         * ComboBox.cs: Setting Text should have no effect if item text of
13521         selected item exactly matches value. First lookup text using
13522         case-sensitive comparison, and fallback to case-insensitive comparison.
13523         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
13524         allow startIndex to be last index. Changed ArgumentOutOfRangeException
13525         paramname to match MS. Restart from first item if string is not found
13526         after startIndex. Fixed paramname of ArgumentNullException that is
13527         thrown for null value in ObjectCollection.Contains.
13528
13529 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
13530
13531         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
13532
13533 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13534
13535         * ListControl.cs: In SelectedValue use value.Equals to compare for
13536         equality instead of ==, otherwise it will fail for strings.
13537         Fixes #80794.
13538
13539 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13540         
13541         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
13542         since the caret won't show up unless ShowSelection is true. 
13543         Fixes #80795.
13544
13545 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13546
13547         * Application.cs: When disabling all forms but the main form, do not
13548           disable any descendants of the main form (such as mdi children or
13549           other parented forms). Fixes #80822 on Windows.
13550         * Form.cs: If we have a parent, set the WS_CHILD style.
13551         * Control.cs: Update the window styles if the control whose parent has
13552           changed is a form (the WS_CHILD style has to be switched).
13553
13554 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
13555
13556         * XplatUIStructs.cs: MsgUIState structure added.
13557
13558 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
13559
13560         * FileDialog.cs: Removed need for separate fileName field. On 2.0
13561         profile, do not check filename(s) for illegal character if filename(s)
13562         were set non-interactively but always check on 1.0 profile. Fixed NRE
13563          in DefaultExt and only strip off first leading dot. Improve exception
13564         message when invalid Filter is set. Do not ignore InitialDirectory if
13565         it does no exist. Store specified Title, and if empty use default
13566         title (depending on type of dialog). Added an internal DialogTitle 
13567         property for retrieving dialog title. Fixed logic of displayed dir to
13568         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
13569         string as its buggy.
13570         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
13571         FileName is a zero-length string (it can never be null). Override 
13572         DialogTitle property to set default title of dialog box.
13573         * SaveFileDialog.cs: Override DialogTitle property to set default
13574         title of dialog box.
13575
13576 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
13577
13578         * FileDialog.cs: Modify default text of filename and filetype labels
13579         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
13580         after we've updated the SelectedIndex. Fixes part of bug #80887.
13581         * SaveFileDialog.cs: Set text of filetype label.
13582
13583 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13584
13585         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
13586         label field. Needed by latest Jackson's fixes for ListView.
13587
13588 2007-02-16  Andreia Gaita  <avidigal@novell.com>
13589
13590         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
13591         print preview images.
13592
13593 2007-02-16  Jackson Harper  <jackson@ximian.com>
13594
13595         * ListView.cs: Make AfterLabelEdit work correctly.
13596         * FileDialog.cs: After changing the name of the folder, we have to
13597         make sure that it is created, or that we pop up an error because
13598         it already exists.
13599
13600 2007-02-16  Jackson Harper  <jackson@ximian.com>
13601
13602         * X11Dnd.cs: Implement aliases on mime handlers, so things like
13603         System.String are mapped to text.
13604         - Handle dataobjects, getting all the possible formats out of them
13605         - We dont need the drag event args before we give feedback. This
13606         allows feedback cursors to be immediate before selections have
13607         been converted.
13608
13609 2007-02-16  Jackson Harper  <jackson@ximian.com>
13610
13611         * TextBoxBase.cs: Modified the method for inserting images to
13612         taking a line and position instead of tag and position.
13613         * RichTextBox.cs: Handle PngBlip data by inserting the png image
13614         into the RTF file.
13615         * TextControl.cs: Allow images to be inserted as the first tag of
13616         a line.
13617         - Fix some off by one issues when we assume the first tag is a
13618         text tag, not an image tag.
13619
13620 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13621
13622         * ListView.cs: Set focus to ListView when ItemControl gets a
13623         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
13624         Fixes part of #80467.
13625
13626 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13627
13628         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
13629           validate Text input (if null or empty string reset Value to default
13630           value). Fixes #80830.
13631
13632 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13633
13634         * ListView.cs: Set owner as null for columns and items when
13635         Dispose is invoked. Fixes #80607.
13636
13637 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
13638
13639         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
13640         showing DropDowns, don't show a Grip when doing Flow layout.
13641         [This fixes the toolbox in PDN 2.72.]
13642         * ToolStripItem.cs: Add Anchor property and some internal properties to
13643         reduces needed changes to FlowLayout.
13644         * ToolStripOverflow.cs: Remove unused variable.
13645         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
13646         use it in the layout calculations.
13647
13648 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
13649
13650         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
13651         reported in #79640.
13652         
13653         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
13654         size calculation.
13655
13656 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
13657
13658         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
13659         MeasureString format, it can make button very large in some cases, it is
13660         strange but is what win32 do.
13661
13662 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
13663
13664         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
13665         size calculation.
13666
13667         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
13668         rendering, the value is based on MenuAccessKeysUnderlined.
13669
13670 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
13671
13672         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
13673         for most themes.
13674         
13675         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
13676         
13677         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
13678         and use MenuAccessKeysUnderlined instead.
13679
13680 2007-02-13  Andreia Gaita  <avidigal@novell.com>
13681
13682         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
13683         A selected control would not get a Focus call if:
13684                 - the default active control of the container is the same as
13685                   the one that was selected
13686                 - we are switching from one container to another
13687         Under these conditions, the container being selected already has
13688         an active_control, which is the same as the one being activated, 
13689         so set_ActiveControl would always return and not send the Focus
13690         call. Fix to check if the currently active control of the container
13691         is actually focused.
13692
13693 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
13694
13695         * StatusStrip.cs: Implement the spring layout.
13696         * ToolStripControlHost.cs: Make sure the hosted control's visibility
13697         always matches the host.
13698         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
13699         and TextAfterImage.
13700
13701 2007-02-13  Andreia Gaita  <avidigal@novell.com>
13702
13703         * Control.cs: Code reorganization only.
13704           - Reorganize the WndProc cases so that each case has it's own handling method, 
13705           to help with the no-line-numbering stack traces.
13706           - Formatting changes (it's vstudio's fault, really :p)
13707
13708 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13709
13710         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
13711           Thread.CurrentUICulture to match DateTimePicker's (and MS)
13712           behaviour.
13713
13714 2007-02-12  Jackson Harper  <jackson@ximian.com>
13715
13716         * RichTextBox.cs:
13717         * TextBox.cs: By default we have a non multiline document
13718         - use the multiline property instead of the internal variable
13719         * TextBoxBase.cs: Treat multiline and non multiline the same in
13720         most places.
13721         - Use the documents multiline flag instead of tracking it ourself
13722         * TextControl.cs: Attempt at getting multiline to match MS
13723         behavior.  Lines now track an offset, which is either their X or Y
13724         offset depending on whether or not we are in multiline mode.
13725         - Update all the methods to understand that lines have an X value.
13726         - Fix crash in Undo::Duplicate when empty lines are deleted.
13727
13728 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
13729
13730         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
13731         code moved to properties PreferredHeight and PreferredWidth. It solve the
13732         all problems when preferred sizes must be recalculated. Fixes #80801.
13733
13734 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
13735
13736         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
13737         font height when compatible_text_rendering is false. Partially fix #80801.
13738
13739 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
13740
13741         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
13742
13743 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
13744
13745         * Form.cs: Improved exception messages in ShowDialog.
13746
13747 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
13748
13749         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
13750         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
13751         if not set. Fixes bug #80764. Avoid accessing current_settings field
13752         directly.
13753
13754 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
13755
13756         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
13757         false.
13758
13759         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
13760         public in 2.0 and for easy maintenance and dont break compatibility it is 
13761         internal in 1.1.
13762         
13763 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
13764
13765         * ToolStripItem.cs: Implement using images from ImageList.
13766
13767 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13768
13769         * DateTimePicker.cs: Change default date-formatting culture from
13770           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
13771           seems to be the way MS does it.
13772
13773 2007-02-08  Andreia Gaita  <avidigal@novell.com>
13774
13775         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
13776         (the 6 was cut off on the right side)
13777
13778 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
13779
13780         * Form.cs: Tell MenuStrips to close when the form is clicked.
13781         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
13782         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
13783         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
13784         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
13785         support for Overflow, where items that do not fit are automatically
13786         reparented to a drop down menu.
13787         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
13788         Also: fixes bug #80747.
13789
13790 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13791
13792         * ComboBox.cs: Remove warning (unused code).
13793         * ScrollableControl.cs: Remove warning for 1.1 profile.
13794
13795 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13796
13797         * Form.cs: Remove a warning.
13798
13799 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13800
13801         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
13802           'g' specifier, not documented anywhere, but seems to always show up
13803           as a single space (might have something to do with the DateTime 'g'
13804           specifier, which is the era format, but since DateTimePicker can't
13805           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
13806           won't crash if the format has an unmatched quote. Now shows
13807           single-character formats correctly. Fixes #80744.
13808
13809 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
13810
13811         * StatusStrip.cs: Stretch property needs to call base.Stretch,
13812         not this.Stretch to fix stack overflow. [Fixes bug #80760]
13813
13814 2007-02-07  Chris Toshok  <toshok@ximian.com>
13815
13816         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
13817         background color.  it overwrites the background image we've
13818         already painted.  Fixes #80599.
13819
13820 2007-02-07  Chris Toshok  <toshok@ximian.com>
13821
13822         * DataGrid.cs: return immediately from Edit() when there are no
13823         columns.  Fixes #80662.
13824
13825 2007-02-07  Chris Toshok  <toshok@ximian.com>
13826
13827         * MessageBox.cs: fix #80625.  don't always show the Help button in
13828         2.0.  use the displayHelpButton parameter to determine if we
13829         should show it. Also, make the internal show_help field private.
13830
13831 2007-02-07  Chris Toshok  <toshok@ximian.com>
13832
13833         * Control.cs (SetVisibleCore): check in the proposed patch for
13834         80604, and set is_visible before calling CreateControl.
13835
13836 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
13837
13838         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
13839         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
13840         on it.
13841
13842 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
13843
13844         * MenuAPI.cs: hotkey_active internal field added, it is required because
13845         we need to know when hotkeys must be draw, before this change a keystate
13846         Navigating was used but we can have menu in navigating state without
13847         hotkeys. Fixes #80694.
13848         
13849         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
13850
13851 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13852
13853         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
13854           corresponding events and methods to be internal for 1.1 profile and
13855           public for 2.0 profile (required by SizeGrip).
13856         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
13857           implicit control list). Don't set the size nor the location of the
13858           SizeGrip anymore as it's not needed.
13859         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
13860           draw directly on the captured control (fixes #80656). Removed
13861           ShowGrip (it wasn't used anywhere), redraw (always true), added
13862           GetDefaultSize and GetDefaultRectangle to calculate defaults.
13863         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
13864           be called from SizeGrip.
13865
13866 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13867
13868         * Timer.cs: Throw ArgumentException if Interval <= 0.
13869
13870 2007-02-05  Jackson Harper  <jackson@ximian.com>
13871
13872         * TreeView.cs: We need to check scrollbar visibility when window
13873         visibility is updated, because non visible trees don't ever add
13874         scrollbars.
13875         * Cursor.cs: We want the override cursor to be reset to NULL when
13876         we set current cursor to the default cursor.
13877
13878 2007-02-05  Jackson Harper  <jackson@ximian.com>
13879
13880         * TextControl.cs: Don't have crlfs when we are non multiline.
13881         - Consolidate the line position.
13882
13883 2007-02-05  Jackson Harper  <jackson@ximian.com>
13884
13885         * X11Keyboard.cs: BACK+CTRL gets a special char code.
13886
13887 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13888
13889         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
13890           handling LeaveNotify->NotifyUngrab in order to send
13891           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
13892           after calling XUngrabPointer, so we call WindowUngrabbed directly
13893           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
13894         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
13895           MouseCaptureChanged correctly. Also create handles if changing
13896           Capture (matches MS behaviour).
13897
13898 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13899
13900         * SizeGrip.cs: Make the last change 2.0 only.
13901
13902 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13903
13904         * SizeGrip.cs: If resizing and the capture is lost, revert any size
13905           changes to initial size (fixes #80597).
13906
13907 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13908
13909         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
13910
13911 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13912
13913         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
13914           background) and only allow dragging if enabled. This way the
13915           sizegrip can be used to fill the open square that otherwise would
13916           have been shown in the bottom right corner of ScrollableControl
13917           when ScrollableControl is not suppose to support sizing.
13918         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
13919           sizegrip is shown and enabled, and hook up with necessary events.
13920
13921 2007-02-01  Chris Toshok  <toshok@ximian.com>
13922
13923         * DataGridTextBoxColumn.cs: clean up the
13924         GetFormattedString/GetColumnValueAtRow combination of functions.
13925         Also fix UpdateUI, and the initial state of
13926         IsInEditOrNavigateMode.
13927
13928         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
13929         aren't supposed to scroll the textbox here, we're supposed to
13930         scroll the datagrid.
13931
13932 2007-02-01  Chris Toshok  <toshok@ximian.com>
13933
13934         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
13935         setting the position.
13936
13937 2007-02-01  Chris Toshok  <toshok@ximian.com>
13938
13939         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
13940         here, since the most recent focus fixes keep us from generating
13941         the Leave event when our textbox gets focus.
13942         (Edit): we should be passing null for the column style's
13943         instantText parameter.
13944         
13945 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
13946
13947         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
13948         raised.  Fixes menu text/icons not showing up in PDN.
13949
13950 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13951
13952         * Control.cs: Remove code in constructor that makes every
13953         control with WS_CHILD set have initial location -1, -1.
13954
13955 2007-01-31  Jackson Harper  <jackson@ximian.com>
13956
13957         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
13958         XplatUIX11.
13959         * XplatUIX11.cs: Give teh keyboard to teh dnd.
13960
13961 2007-01-31  Jackson Harper  <jackson@ximian.com>
13962
13963         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
13964         - Remove some debug code.
13965
13966 2007-01-31  Jackson Harper  <jackson@ximian.com>
13967
13968         * XplatUIX11.cs: If you set the override cursor during a grab, it
13969         should actually override the grab cursor.  This comes into play
13970         when you are setting custom cursors in a DND feedback method.
13971
13972 2007-01-31  Jackson Harper  <jackson@ximian.com>
13973
13974         * X11Dnd.cs: Add support for handling the QueryContinue and
13975         GiveFeedback events.
13976         - Cancel drag and drop actions when the escape key is clicked.
13977         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
13978         can handle the ESCAPE key.
13979         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
13980         done when dnd events are continued after the button is released.
13981         - Add a new helper method so that dnd can translate key events.
13982
13983 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
13984
13985         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
13986         make it more obvious what is happening.
13987
13988 2007-01-30  Jackson Harper  <jackson@ximian.com>
13989
13990         * XplatUIX11.cs: Don't break when handling button release in drag
13991         and drop operations. We need that BUTTONUP message to get through
13992         so capture is released.
13993         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
13994         this is handled automatically when the mouse is down.
13995
13996 2007-01-30  Jackson Harper  <jackson@ximian.com>
13997
13998         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
13999         is closed, so we need to make sure that we aren't changing the
14000         dialog result when the OK (Open or Save) button has been clicked
14001         and we are closing the window ourselves.  Note we don't need to
14002         worry about the cache being written in this case, because it was
14003         already done in the previous FilOk call.
14004
14005 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14006         
14007         * DateTimePicker.cs: Remove a warning.
14008         * ComboBox.cs: Remove a couple of warnings.
14009
14010 2007-01-29  Chris Toshok  <toshok@ximian.com>
14011
14012         * XplatUIX11.cs: don't crash, and remove the icon if the user has
14013         set one, if SetIcon is passed a null icon.
14014
14015 2007-01-29  Andreia Gaita  <avidigal@novell.com>
14016
14017         * TextBox.cs: Redraw when the password characters changes
14018         * TextControl.cs: Check if textbox has a password char and draw 
14019         a line of password chars instead of the text in the line. LineTag gets 
14020         an extra Draw() method which allows document.Draw to override the text 
14021         that will be drawn. Removes 1024 char limitation on length of passworded 
14022         lines.
14023
14024 2007-01-29  Jackson Harper  <jackson@ximian.com>
14025
14026         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
14027         single chars is not.
14028
14029 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
14030
14031         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
14032         one pixel.  Fix a StackOverflowException caused by an overload wrongly
14033         calling itself.
14034
14035 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
14036
14037         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
14038         also remove ProcessArrowKey and put the code inside ProcessKeys.
14039
14040 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
14041
14042         * PaddingConverter.cs: Added.
14043
14044 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14045         
14046         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
14047         ShowPanels is false (fixes #80600). Only draw up to 127 characters
14048         of text (fixes #80601). For panels clip the text to draw to the
14049         panel (fixes #80603).
14050
14051 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14052
14053         * ComboBox.cs: Fixed implementation of ResetText.
14054
14055 2007-01-25  Jackson Harper  <jackson@ximian.com>
14056
14057         * TextControl.cs: For the last char of a line we need to use the
14058         line size, not that chars width, since it won't actually be
14059         computed since the right side of a char is based on the start of
14060         the left side of the next char, and the next char does not exist.
14061
14062 2007-01-25  Chris Toshok  <toshok@ximian.com>
14063
14064         * Splitter.cs: fix the new unit tests, and reindent some switch
14065         statements.
14066
14067 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14068
14069         * ComboBox.cs: Implemented 2.0 methods and events.
14070         * TextBoxBase.cs: Added OnTextUpdate, so that
14071         ComboBox.ComboTextBox can inform ComboBox of it.
14072
14073 2007-01-25  Jackson Harper  <jackson@ximian.com>
14074
14075         * TextControl.cs: Respect ShowSelection when deciding whether or
14076         not to display the caret, this allows comboboxes to have carets
14077         when the combotextbox does not have focus.
14078
14079 2007-01-25  Jackson Harper  <jackson@ximian.com>
14080
14081         * TextControl.cs: Add a Suspend/Resume for updating, basically the
14082         same as the Suspend/Resume for recalc, except this will do actual
14083         Invalidates.
14084         - New Undo manager, works much like the MS version.
14085         - Implemented Redo
14086         * TextBoxBase.cs: The Cut operation is undoable.
14087
14088 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14089         
14090         * TextBoxBase.cs: Don't antialias text. Makes it look way better
14091         on Windows (no difference on Linux).    
14092
14093 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14094
14095         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
14096         we don't want to activate any windows. Fixes #79433.
14097
14098 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
14099
14100         - ButtonBase.cs: Fix capitalization of parameter: disposing.
14101         [Fixes bug #80609]
14102
14103 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
14104
14105         * FileDialog.cs:
14106         - Move to using System.ComponentModel.EventHandlerList
14107         - Replace Refresh with Invalidate
14108         - Clear the mime filecache on closing
14109         - Some other memory reducing work. After beeing closed FD now uses
14110           only about 300 KB for the fdo mime stuff plus the memory of the
14111           cached icons.
14112         * Mime.cs: Changed coding style and removed unnecessary commented
14113         code. Some more memory memory reducing work.
14114
14115 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14116
14117         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
14118         a few other missing 2.0 properties.
14119         * Theme.cs: Added DrawFlatStyleComboBox.
14120         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
14121
14122 2007-01-24  Chris Toshok  <toshok@ximian.com>
14123
14124         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
14125         wake_waiting flag, not just when there's data to be read.  if we
14126         don't, then future wakeup's won't reach us and we'll be doomed to
14127         wait for the entire 1 second timeout forever (unless there are X
14128         events to be had).
14129
14130 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
14131
14132         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
14133         until you pass Items.Count, not Items.Count - 1 like 1.1.
14134
14135 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
14136
14137         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
14138
14139 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
14140
14141         * ToolStripContainer.cs: The recent Dock fix exposed that I was
14142         adding the panels in the wrong order.
14143
14144 2007-01-24  Jackson Harper  <jackson@ximian.com>
14145
14146         * TextBoxBase.cs: When we move the caret we also need to move the
14147         selection, this fixes some random crashing after doing select
14148         text, unselect, delete a char, paste.
14149
14150 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14151
14152         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
14153
14154 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14155
14156         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
14157         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
14158         * ToolBar.cs: Force redraw in BackgroundImageChanged.
14159
14160 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14161
14162         * ToolBar.cs:
14163         - Implement support for vertical toolbars. Fixes #80539;
14164         - Call LayoutToolBar when resize, it fix some other problems in layout.
14165         - Rename requested_height to requested_size, as we can have width on it
14166         when toolbar is vertical.
14167         - Create a private property "Vertical" that uses Dock to verify when 
14168         toolbar is vertical or not.
14169         - Set ControlStyles when change Dock property.
14170         - Refactory in LayoutToolBar to have better variables names and to support
14171         vertical toolbars.
14172         - Fixes default value for ButtonSize when button count is equal zero, size
14173         must be (39, 36) test case writed.
14174
14175 2007-01-23  Chris Toshok  <toshok@ximian.com>
14176
14177         * Control.cs: fix the checks so that they work correctly for mdi
14178         parents/children.
14179
14180 2007-01-23  Chris Toshok  <toshok@ximian.com>
14181
14182         * Control.cs: ControlCollection seems to have super-secret
14183         abstraction breaking knowledge of Mdi containers.  allow MdiClient
14184         to add toplevel controls.
14185
14186 2007-01-23  Chris Toshok  <toshok@ximian.com>
14187
14188         * Control.cs: throw an ArgumentException if a toplevel control is
14189         added to our control collection from ControlCollection.Add, as
14190         well as from ControlCollection.IList.Add.  This fixes the
14191         ControlSetTopLevelTest.TestTopLevelAdd unit test.
14192
14193         Also, in ControlCollection.IList.Add, don't through an
14194         ArgumentNullException, throw an ArgumentException, when value ==
14195         null.  This matches MS.
14196
14197 2007-01-23  Chris Toshok  <toshok@ximian.com>
14198
14199         * BindingSource.cs: initial, incomplete, implementation of
14200         BindingSource.
14201
14202 2007-01-23  Jackson Harper  <jackson@ximian.com>
14203
14204         * TextControl.cs:
14205         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
14206         that I can fix a broken unit test (TextBoxTest::ClearUndo)
14207         
14208 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
14209
14210         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
14211
14212 2007-01-23  Andreia Gaita  <avidigal@novell.com>
14213
14214         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
14215         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
14216         IndexOfKey() for 2.0
14217
14218 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14219
14220         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
14221         to prevent it from changing z-order.
14222         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
14223         leave UI updates in MdiWindowManager.
14224         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
14225         1 sized (NC handling goes weird on Linux otherwise).
14226         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
14227         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
14228         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
14229         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
14230         and SetWindowState(s) to allow for changing the size of an activated child
14231         before activating it (reduces a lot of flicker).
14232
14233 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
14234
14235         * Form.cs: Changing FormBorderStyle has different semantics based
14236         on whether the Form is visible or not.  If not visible, don't change
14237         the Size.  But InvalidateNC needs to be called to force the window
14238         to pick up the changes and redraw itself.  [Fixes bug #80574]
14239
14240 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
14241
14242         [Moma work]
14243         * ContainerControl.cs: ProcessCmdKey.
14244         * ErrorProvider.cs: new constructor.
14245         * Form.cs: fix AutoValidateEvent compiler warning.
14246         * Label.cs: fix OnAutoSizeChanged compiler warning.
14247         * MenuStrip.cs: fix CanOverflow compiler warning.
14248         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
14249         * TextBox.cs: Dispose.
14250         * ToolStrip.cs: CanOverflow, re-enable double buffering.
14251         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
14252         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
14253         * ToolStripItem.cs: Overflow, RightToLeft properties.
14254
14255 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14256
14257         * Form.cs: Move the layout of the main form to MdiWindowManager.
14258         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
14259         do a layout of the main window to update MdiClient's client area to
14260         the right area. Fixes #80533. Remove the calculation of nc size, 
14261         it was just wrong and the correct one is the same as for 
14262         InternalWindowManager. 
14263
14264 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
14265
14266         * Control.cs: Setting Anchor or Dock needs to reset the other
14267         to its default.  [Fixes bug #80556]
14268
14269 2007-01-20  Chris Toshok  <toshok@ximian.com>
14270
14271         * CheckedListBox.cs: class status changes.
14272
14273         * ScrollableControl.cs: same.
14274
14275         * RichTextBox.cs: same.
14276
14277         * ContainerControl.cs: same.
14278
14279         * ListView.cs: same.
14280
14281         * NotifyIcon.cs: same.
14282
14283         * MenuStrip.cs: same.
14284
14285         * RadioButton.cs: same.
14286
14287         * CheckBox.cs: same.
14288
14289         * PrintPreviewDialog.cs: same.
14290
14291         * Form.cs: same.
14292
14293 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
14294
14295         * TreeNode.cs: Apply Alan's patch for Name property.
14296
14297 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14298         
14299         * Form.cs: Implemented SizeGripStyle.
14300         * SizeGrip.cs: Check for minimum and maximum size for the
14301         control being resized and only resize if size has actually
14302         changed.
14303
14304 2007-01-19  Chris Toshok  <toshok@ximian.com>
14305
14306         * DataGridColumnStyle.cs: stop setting _readonly in the
14307         PropertyDescriptor setter.  fixes a unit test failure.
14308
14309         also, rename ParentReadOnly to TableStyleReadOnly, and have it
14310         just consult our table style (if we have one).  We don't need to
14311         consult the datagrid readonly attribute because that's passed in
14312         as the _ro arg to Edit.  this simplifies things a little.
14313         
14314         * DataGrid.cs: use CurrentColumn instead of
14315         current_cell.ColumnNumber just to simplify some of the code.
14316
14317         switch the order of some things in the CurrentCell setter to keep
14318         the previous cell from getting a textbox again -
14319         EnsureCellVisibility causes scrolling to happen, which calls Edit.
14320         So we need to set the new cell before calling it.
14321         
14322         call Edit in OnEnter, as does Microsoft.
14323         
14324         also, make sure the current table style isn't the one we create
14325         initially when checking to see if it's different than the one
14326         we're setting it to in BindColumns (this fixes #80421).
14327
14328         * GridTableStylesCollection.cs: table styles can have "" for a
14329         mapping name.  part of the fix for #80421.
14330
14331         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
14332         Edit significantly.
14333
14334 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14335
14336         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
14337         and less GDI object leaky-er.
14338
14339 2007-01-18  Andreia Gaita  <avidigal@novell.com>
14340
14341         * LinkLabel.cs: Add opaque control style
14342
14343 2007-01-18  Jackson Harper  <jackson@ximian.com>
14344
14345         * TextControl.cs: Calculate width properly.
14346         - Don't store the tag's X offset, this can be figured out very
14347         easily.
14348         - When getting the caret tag make sure to get the last empty tag.
14349
14350 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14351
14352         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
14353         [Fixes bug #79959]
14354
14355         * Control.cs: Color.Empty shouldn't count for previous transparent
14356         redraw changes.
14357
14358 2007-01-18  Jackson Harper  <jackson@ximian.com>
14359
14360         * TextBox.cs:
14361         * RichTextBox.cs:
14362         * TextControl.cs: Starting to merge in some pieces of my older
14363         undo work.  Basically just some slight cleanup of the undo API.
14364
14365 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14366
14367         * TrackBar.cs: Fix signature of RightToLeftLayout.
14368         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
14369         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
14370         * Application.cs: Implemented UseWaitCursor.
14371
14372 2007-01-18  Jackson Harper  <jackson@ximian.com>
14373
14374         * TextControl.cs: We can't skip tags if any part of the tag is
14375         visible.
14376
14377 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14378
14379         * ContainerControl.cs: Override OnLayout.
14380
14381 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14382
14383         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
14384
14385         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
14386         everything else.
14387
14388 2007-01-18  Chris Toshok  <toshok@ximian.com>
14389
14390         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
14391         (leftover from the container_selected days, I'd wager).  fixes bug
14392         #80546.
14393
14394 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14395
14396         * Control.cs: Apply patch from George to fix the new testcase on
14397         bug #80451.  We can't just check for Color.Transparent, we need 
14398         to check if the back color's alpha channel is < 255.
14399
14400 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
14401
14402         * Form.cs: Move setting show_icon = true to before the constructor
14403         so that the base constructor has that information when it calculates
14404         the form's size.  Was causing forms to be (6, 6) bigger than they
14405         were supposed to be.  Thanks for catching this Rolf!
14406
14407 2007-01-18  Jackson Harper  <jackson@ximian.com>
14408
14409         * TextControl.cs: When replacing a selection we need to invalidate
14410         from the initial selection start, because selection start is moved
14411         to the end of the replacement.
14412
14413 2007-01-18  Andreia Gaita  <avidigal@novell.com>
14414
14415         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
14416
14417 2007-01-18  Chris Toshok  <toshok@ximian.com>
14418
14419         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
14420         I just added.
14421
14422 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
14423
14424         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
14425         layout methods and properties from ToolBarButton must be available
14426         into ToolBarButtonInfo.
14427
14428 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14429
14430         * Control.cs: If the control has a transparent background, we
14431         need to refresh it when it moves and when it's parent's background
14432         image changes.  [Fixes bug #80451]
14433
14434 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14435
14436         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
14437
14438 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
14439
14440         * XplatUIWin32.cs: Implement proper double buffering for Windows.
14441         [Fixes bug #80447, and probably speeds up things as well]
14442
14443 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14444
14445         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
14446         * XplatUIWin32.cs: We need to recalculate NC size after changing 
14447         window style to toolwindow (otherwise the client rectangle will be
14448         3 pixels to small for some reason).
14449         * MdiWindowManager.cs: Revert NC size calculations to match how
14450         they are calculated only based on window styles (to match
14451         Win32AdjustWindowRectEx, since otherwise when setting size or 
14452         location, Control will call Win32AdjustWindowRectEx to update client 
14453         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
14454         calculate a different value of client size causing another paint 
14455         (and flickering))
14456         * InternalWindowManager.cs: When moving or resizing a window only
14457         update size or location if they actually changed.
14458         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
14459         (seems to match Windows behaviour better). Cleaned up 
14460         ManagedWindowDecorations to draw what's needed and nothing else
14461         (was drawing borders and lines where they shouldn't be)
14462         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
14463         (style = 0xFFFF) and takes into account caption height when 
14464         calculating window rectangle.   
14465
14466 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
14467
14468         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
14469         can be added to toolbar multiple times, we need to maintain a list of 
14470         button information for each positions.
14471
14472 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
14473
14474         * ToolBar.cs: Some small stetic changes.
14475
14476 2007-01-16  Jackson Harper  <jackson@ximian.com>
14477
14478         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
14479         that allow us to have nested recalc = false blocks.
14480         - Add paste support for images in the RichTextBox
14481         * RichTextBox.cs: flush the text after the color is changed, so
14482         the change takes effect.
14483         - Use SuspendRecalc
14484         - Some extra debugging info
14485         * TextControl.cs: Tags no longer track their length, it is just
14486         computed from the next tags length, this makes things a little
14487         simpler and reduces places that we have to track length changes.
14488         - Refactored the linetag class a little so we could make it
14489         a base class for different kinds of tags
14490         - Created a image tag, a tag that can have a single image inserted
14491         into it
14492         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
14493         that we can call suspend multiple times.
14494         - Add some debugging methods
14495
14496 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14497
14498         * MdiClient.cs: Add ActivatePreviousChild for 
14499         mdi child window navigation.
14500         * Form.cs: Use MdiClient.ActivateNextChild/
14501         ActivatePreviousChild instead of Form.SelectNextControl
14502         to select the next/previous child since 
14503         SelectNextControl doesn't do it in the same order
14504         as mdi children should do it.
14505
14506 2007-01-16  Chris Toshok  <toshok@ximian.com>
14507
14508         * Control.cs: remove container_selected field.
14509
14510 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14511
14512         * MdiClient.cs: Update main form's ActiveChild when
14513         updating keyboard focus for the mdi child.
14514
14515 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
14516
14517         * Control.cs: PreferredSize fix.
14518
14519         * Form.cs: Add several 2.0 events, properties, and methods.
14520
14521 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
14522
14523         * Form.cs: Provide meaningful message when MdiParent is assigned a
14524         Form that is not an MdiContainer.
14525
14526 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14527
14528         * MdiClient.cs: Update main form's ActiveChild when
14529         activating a mdi child.
14530
14531 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14532
14533         * MdiWindowManager.cs: Fix NRE when merging menus and main form
14534         doesn't have a menu.
14535
14536         * Form.cs: Request NCRecalc after creating a mdi child window.
14537         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
14538         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
14539         
14540         * MdiClient.cs: Add new method SendFocusToActiveChild that either
14541         sends keyboard focus to the active child, or to the MdiClient
14542         if there are no child forms.
14543         
14544 2007-01-15  Chris Toshok  <toshok@ximian.com>
14545
14546         * ListView.cs: drop the *Internal overrides, just do our work in
14547         ItemControl's WndProc instead.
14548
14549         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
14550         of the various controls, and forward the events properly (in the
14551         same manner as MS) from the textbox to the UpDown.  Also the
14552         ActiveControl of the UpDownBase gets set properly now.  Finally,
14553         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
14554
14555         * NumericUpDown.cs: set Text in the ctor.
14556
14557         * DomainUpDown.cs: call UpdateEditText in the ctor.
14558         
14559         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
14560         so even a Selectable = false textbox can be focused if you click
14561         in it.  Go figure.
14562
14563         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
14564         just add their handling in their respective WndProc's.  Also add
14565         an explicit FocusInternal method that doesn't consult CanFocus
14566         before calling Select(this).
14567
14568         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
14569         do our work in WndProc instead.
14570
14571         * TabControl.cs: same.
14572
14573         * ComboBox.cs: same.
14574
14575 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
14576
14577         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
14578         Fixes #80006.
14579
14580 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14581
14582         * ListViewItem.cs:
14583         * ThemeWin32Classic.cs: Don't draw the item text outside
14584         item bounds in Details view, as well as use trimming.
14585         Fixes bug #80376.
14586
14587 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
14588
14589         * Form.cs: Implement Form.ShowIcon.
14590         
14591         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
14592         null, which when combined with the DlgModalFrame window style removes
14593         the icon from the title bar.
14594
14595 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
14596
14597         * Control.cs: Call OnMouseClick after OnClick. (2.0)
14598
14599 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
14600
14601         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
14602         menu when mdi child windows theres a menu, uses insert to get icon
14603         at first position. Partially fix #80006.
14604
14605 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
14606
14607         * Clipboard.cs: Implement 2.0 methods.
14608
14609 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
14610
14611         * Menu.cs: Implement Insert method of MenuItemCollection class
14612         to fix MenuMerge.
14613
14614 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14615
14616         * ListView.cs: Implement 2.0 FindItemWithText method.
14617
14618 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
14619
14620         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
14621         to calculate menu bar size. Fixes #80290.
14622
14623 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
14624
14625         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
14626
14627 2007-01-11  Chris Toshok  <toshok@ximian.com>
14628
14629         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
14630         initial form.
14631
14632 2007-01-11  Chris Toshok  <toshok@ximian.com>
14633
14634         * LinkLabel.cs: make sure to call base.Select in our Select method
14635         if it turns out we're going to be selected (i.e. if we have a link
14636         that is going to receive focus).  That way our container's
14637         ActiveControl is updated properly.
14638
14639 2007-01-11  Chris Toshok  <toshok@ximian.com>
14640
14641         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
14642         they have 1 or more links.  this fixes the crash gert reported.
14643
14644 2007-01-11  Andreia Gaita  <avidigal@novell.com>
14645
14646         * ContainerControl.cs: Remove ContainerSelected flag, not needed
14647         anymore.
14648
14649         * Control.cs (Controls.Add): Check if control to be added to the collection
14650         is a top level control, and throw an ArgumentException if it is.
14651         Remove ContainerSelectedFlag, not needed anymore.
14652
14653         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
14654         top most control doesn't activate the form. This fixes a problem in the
14655         MessageBox, where the default button wouldn't get focus because the form
14656         was activated before being Loaded - when the Owner is set, SetTopMost is
14657         called, and it would activate it.
14658
14659 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
14660
14661         * Button.cs: When clicked and setting the parent form's DialogResult,
14662         use FindForm instead of Parent, since parent could be a container
14663         control and not the Form.  Fixes bug #80495.
14664
14665 2007-01-10  Chris Toshok  <toshok@ximian.com>
14666
14667         * Form.cs: move the call to SendControlFocus into the same
14668         is_loaded check.
14669
14670 2007-01-10  Chris Toshok  <toshok@ximian.com>
14671
14672         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
14673         It breaks in the face of the new ActiveControl stuff, and should
14674         be unnecessary.
14675
14676         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
14677         activecontrol's focus if it's not already set, after we set
14678         ActiveControl, but before we call OnActivated.  Re-fixes #79667
14679         after the previous focus/active control fixes regressed it.
14680
14681         * Control.cs: reindent some code.
14682         
14683 2007-01-10  Chris Toshok  <toshok@ximian.com>
14684
14685         * Splitter.cs: clearing some outstanding changes from my tree.
14686         Replace all accesses (not writes) to the internal dock_style field
14687         with the Dock property.
14688
14689 2007-01-10  Chris Toshok  <toshok@ximian.com>
14690
14691         * Control.cs: make FireEnter, FireLeave, FireValidating, and
14692         FireValidated virtual.
14693
14694         * Form.cs: override and don't chain up calls to FireEnter and
14695         FireLeave.
14696
14697 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14698
14699         * ListView.cs: Add more text padding space when using
14700         auto resize for columns (the previous value didn't work fine).
14701
14702         * ThemeWin32Classic.cs: Update text position inside columns,
14703         to match the appeareance of .Net.
14704
14705         * ColumnHeader.cs: When using auto resize, only the Width should
14706         depend on the sub items, not the Height. Also, set width after
14707         auto resizing (the value of Width should never remain as -1 or -2).
14708
14709 2007-01-10  Chris Toshok  <toshok@ximian.com>
14710
14711         * Application.cs: fix compilation errors when debug is enabled.
14712
14713 2007-01-10  Chris Toshok  <toshok@ximian.com>
14714
14715         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
14716         add some nice ascii art pictures and explanation of the process).
14717         (GetMostDeeplyNestedActiveControl): new utility function we need
14718         because our ActiveControl can refer to a child container with its
14719         own ActiveControl.
14720
14721         * Form.cs (OnActivated): remove the call to SelectActiveControl
14722         from here, since you can override this method and not chain up,
14723         and winforms still sets the active control.
14724         (OnCreateControl): also remove the unnecessary SelectActiveControl
14725         call from here.
14726         (WndProc): it's actually called from the WM_ACTIVATE block, just
14727         before calling OnActivated.
14728
14729         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
14730         inside the else.  the ActiveControl setter will end up setting
14731         focus on @control.  This keeps us from setting it again (and
14732         generating an extra LostFocus/GotFocus pair).
14733         (Select (bool, bool)): reindent.
14734
14735 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
14736
14737         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
14738         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
14739         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
14740         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14741         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
14742         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
14743         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
14744         ToolStripTextBox.cs: Another wave of corcompare work.
14745
14746 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14747
14748         * ColumnHeader.cs: Implement 2.0 AutoResize method using
14749         the Width property.
14750
14751         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
14752         methods by callling Column.AutoResize method on columns.
14753
14754 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
14755
14756         * Control.cs: Provide proper implementations of PreferredSize
14757         and GetPreferredSize (2.0).
14758
14759 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
14760
14761         * Form.cs: Remove one character (!) to make my previous OnClosing
14762         stuff work for modal windows like MessageBox.
14763
14764 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14765
14766         * ListView.cs:
14767         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
14768         ListView.Columns to get the last displayed column. Fixes #80452.
14769
14770 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
14771
14772         * Label.cs, LinkLabel.cs: Source code identation fixes.
14773
14774 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
14775
14776         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
14777         we dont need to invalidate only borders because when we invalidate four
14778         border lines the invalidate's generates a complete redraw of button, 
14779         because it now invalidate a complete rect some other redraws operations
14780         are fixed. Fixes #80196.
14781         
14782         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
14783         Remove ToolBarInvalidateEntireButton as it is not used.
14784
14785 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
14786         
14787         * Form.cs: Make sure that both OnClosing and OnFormClosing are
14788         called for 2.0 profile.
14789         * CloseReason.cs: Make class internal for 1.1.
14790
14791 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
14792
14793         * ToolStripManager.cs: Implement FindToolStrip functionality.
14794         * ToolStrip.cs: Register and unregister with ToolStripManager.
14795
14796 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
14797
14798         * Control.cs: This was messy.  2.0 moves much of ControlCollection
14799         to ArrangedElementCollection.  Implemented this with as few #if's as 
14800         possible (which is still too many).
14801
14802 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
14803
14804         * Control.cs: Implement SizeFromClientSize() [2.0].
14805
14806 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
14807
14808         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
14809         use Theme.BorderSize to calculate area instead of static value 1, 
14810         by the way use new BorderStaticSize instead     Border3DSize when 
14811         border_static is true. Fixes #79537.
14812         
14813         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
14814         
14815         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
14816         it is not needed.
14817
14818 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
14819
14820         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
14821
14822 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
14823
14824         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
14825         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
14826         
14827         * Hwnd.cs: 
14828         - border_static field added, it will used to define when a control 
14829         theres 3D border but it must be static (thin).
14830         - In GetWindowRectangle use Theme.BorderSize to calculate area 
14831         instead of static value 1, by the way use new BorderStaticSize instead
14832         Border3DSize when border_static is true.
14833
14834         * XplatUIX11.cs, XplatUIOSX.cs: 
14835         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
14836         
14837         * Theme.cs: BorderStaticSize field added.
14838
14839 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
14840
14841         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
14842
14843 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
14844
14845         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
14846         mimic same behavior than win32 that set border only in CreateParams,
14847         it fix problems under CreateParams overrides. Fix #79442 and partial
14848         fix #79537.
14849         
14850         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
14851         of thi control you must call recreate handle. 
14852         
14853         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
14854         need to do anything as RecreateHangle will take care about borders.
14855
14856 2007-01-05  Mike Kestner  <mkestner@novell.com>
14857
14858         * ListView.cs: hack to eliminate Lost/Got focus notifications on
14859         cycles between the ItemControl and parent.  Fixes #80388.
14860
14861 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
14862
14863         * Control.cs: Lazy init layout engine. Do not directly use 
14864         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
14865
14866 2007-01-05  Chris Toshok  <toshok@ximian.com>
14867
14868         * DataGrid.cs: don't forceably rebind columns in SetDataSource
14869         unless our list manager has changed (i.e. unless we have reason to
14870         believe our columns have changed).  Fixes #80422.
14871         
14872         also, disable the call do BindColumns in
14873         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
14874         1.1 the event isn't raised in response to a column addition on a
14875         table.)
14876
14877 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
14878
14879         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
14880         that inheritors can not call it if they choose.  Fixes bug #80456.
14881
14882 2007-01-05  Andreia Gaita  <avidigal@novell.com>
14883
14884         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
14885         doesn't blow up with a null exception on marshalling.
14886         
14887 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
14888
14889         * Control.cs: Implement several 2.0 protected properties and methods.
14890         Ensure that all necessary events are being called when properties
14891         are set.
14892
14893 2007-01-05  Mike Kestner  <mkestner@novell.com>
14894
14895         * ListView.cs: implement PgUp/PgDn for Details view.  Also
14896         fixes First/LastVisibleIndex to use the item_control.ClientRect 
14897         instead of the parent control.  Fixes #80378.
14898
14899 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
14900
14901         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
14902           determine whether to use yard-pound or not (bug #78399).
14903
14904 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
14905
14906         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
14907         problems. So it is time to bring back the old popupbutton colors.
14908
14909 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14910
14911         * ColumnHeader.cs:
14912         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
14913         property by using the internal information of the
14914         columns order in ListView.
14915
14916 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
14917
14918         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
14919         Add 2.0 Tag properties.
14920
14921         * LinkArea.cs: Add 2.0 ToString method.
14922
14923 2007-01-03  Chris Toshok  <toshok@ximian.com>
14924
14925         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
14926         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
14927         when we're editing, which fixes #80047.
14928
14929 2007-01-03  Chris Toshok  <toshok@ximian.com>
14930
14931         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
14932         #80404.
14933
14934 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
14935
14936         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
14937         property and implementation.
14938
14939         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
14940         for MdiWindowListItem property.
14941
14942         * ToolStripDropDown.cs: Don't consider hidden menu items while
14943         laying out the menu.
14944
14945 2007-01-03  Andreia Gaita  <avidigal@novell.com>
14946
14947         * SendKeys.cs: window handle is not needed in win32, so just
14948         get the active window for X after parsing keys and don't use
14949         it when building the message; it is passed by parameter to the 
14950         Xplat method and used there to build the message instead. Also,
14951         wait for events to be processed on SendWait, as opposed to Send,
14952         which doesn't wait :) Playing with threads and Send() completely 
14953         hangs on ms.net, only SendWait() works.
14954         
14955         XplatUIX11.cs
14956         X11Display.cs: Check for valid window handle.
14957
14958 2007-01-03  Jackson Harper  <jackson@ximian.com>
14959
14960         * TextControl.cs: Need to prevent wrap calculations when replacing
14961         text (this was there before i removed it accidently).
14962         - Don't update the cursor during the positioning, just set it to
14963         selection_start at the end of the operaion.
14964
14965 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14966
14967         * Control.cs:
14968         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
14969         
14970 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14971
14972         * MonthCalendar.cs: Added Click and DoubleClick events again,
14973         but this time they only hide Control's Click and DoubleClick.
14974         
14975 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
14976
14977         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
14978         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
14979
14980 2007-01-02  Jackson Harper  <jackson@ximian.com>
14981
14982         * TextBoxBase.cs: We move the caret with the split now, so we
14983         don't need to explicitly move the caret after splitting.  This
14984         fixes the caret bumping down an extra line on Enter.
14985
14986 2007-01-02  Miguel de Icaza  <miguel@novell.com>
14987
14988         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
14989         2.72). 
14990
14991         * ScrollableControl.cs: Add Scroll event.
14992
14993 2007-01-02  Mike Kestner  <mkestner@novell.com>
14994
14995         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
14996         to fix all hdr height padding codepaths.  Fixes #80207.
14997
14998 2007-01-02  Chris Toshok  <toshok@ximian.com>
14999
15000         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
15001         setting it to the Control defaults anyway, and it being after the
15002         Dock set was screwing up layout.
15003         (set_Dock): don't short circuit out of setting base.Dock.  Also,
15004         no need to call UpdateStatusBar here, as it'll be re-layed out if
15005         it needs to be.
15006
15007 2007-01-02  Mike Kestner  <mkestner@novell.com>
15008
15009         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
15010         to header height for width == -1. Fixes the rest of #80207.
15011
15012 2007-01-02  Mike Kestner  <mkestner@novell.com>
15013
15014         * ListView.cs: rework the mouse event forwarding everaldo added
15015         to translate the coordinates to the parent control not
15016         raise the parent events until after we've done our work. Hover
15017         needs more work, in the case where HoverSelection is on, because
15018         the item control receives more than one MouseHover per Enter
15019         event, so we need to ensure only the "first" hover gets forwarded.
15020         Opening a minor bug for that.
15021
15022 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
15023
15024         * CheckedListBox.cs: Fixed SelectionMode to match MS.
15025         * ListControl.cs: Implemented AllowSelection property. Removed extra
15026         tabs.
15027         * ListBox.cs: Implemented AllowSelection property.
15028
15029 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15030
15031         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
15032         SelectedItem, it prevent for errors when you must disable item
15033         before perform click. Fixes #80409.
15034
15035 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15036
15037         * MenuAPI.cs: Prevent second level and beyond submenus to close
15038         until first level when move out side of popup.
15039         
15040 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15041
15042         * MenuAPI.cs:
15043         - Down submenu positin in three pixels.
15044         - Closes sub menu when mouse leaves from menu. Fixes #80402.
15045
15046 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
15047
15048         * ThemeWin32Classic.cs:
15049         - Fix popup menu size adding one pixel on the top.
15050         - Down menu item border from two to one to mimic Win32.
15051         - Some source identation fixes. 
15052
15053 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
15054
15055         * ThemeWin32Classic.cs: Use float numbers to calculate size and
15056         position of menu arrows, it fix wrong arrow size.
15057
15058 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
15059
15060         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
15061         instead of line, it simplify draw operation and fix it using 3D
15062         borders to mimic Win32.
15063
15064 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
15065
15066         * StatusStrip.cs: Add implementation of the sizing grip.
15067
15068         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
15069         StatusStrip rendering.
15070
15071 2006-12-31  Chris Toshok  <toshok@ximian.com>
15072
15073         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
15074         override the layout style (anchor/dock) of the control.  assign to
15075         Dock instead.  Fixes bug #80416.
15076
15077         * ToolStrip.cs: same.
15078
15079 2006-12-31  Andreia Gaita  <avidigal@novell.com>
15080
15081         * ContainerControl.cs: Use ContainerSelected flag to check if 
15082         a Container is directly selected, or if Select is called on a 
15083         non-container. If a container is directly selected, focus events 
15084         should not be raised.
15085         Apply #80411 patch to throw exception on set_ActiveControl if 
15086         control is the same as the current one.
15087         
15088         * Control.cs: Use ContainerSelected flag (see above).
15089         Add invalidation check to raise event but not invalidate if 
15090         dimensions are 0.       
15091         Apply #80411 patch.
15092         
15093
15094 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
15095
15096         * MenuAPI.cs: After click, dont close popup menu when menu is
15097         ContextMenu. Fixes #80399.
15098
15099 2006-12-30  Chris Toshok  <toshok@ximian.com>
15100
15101         * ContainerControl.cs: make sure we throw the exception if the
15102         container control doesn't contain the control we're setting
15103         ActiveControl to.
15104
15105 2006-12-30  Chris Toshok  <toshok@ximian.com>
15106
15107         * Control.cs (SetTopLevel): fix the exception raised by
15108         SetTopLevel for child controls.
15109         (set_Anchor): call UpdateDistances when setting the anchor type.
15110         This fixes bug #80336.
15111
15112 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15113
15114         * Theme.cs: For now, revert back to 8pt font.
15115
15116 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
15117
15118         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
15119         Fixes #80395.
15120
15121 2006-12-29  Chris Toshok  <toshok@ximian.com>
15122
15123         * Control.cs: reorder the code in OnResize to give the same event
15124         ordering as MS.
15125
15126 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15127
15128         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
15129         TileHorizontally and TileVertically.
15130         
15131 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
15132
15133         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
15134         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
15135         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
15136         Corrected copyright and email adress.
15137
15138 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15139
15140         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
15141         of Exception in FullPath property if no TreeView is associated with
15142         the TreeNode.
15143
15144 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
15145
15146         * Theme.cs: Marked default_font as private, and initialize it in ctor
15147         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
15148         on 2.0 profile.
15149         * ThemeGtk.cs: Removed default_font intialization.
15150         * ThemeWin32Classic.cs: Removed default_font initialization.
15151
15152 2006-12-28  Chris Toshok  <toshok@ximian.com>
15153
15154         * Control.cs: fix a couple of place where we were creating handles
15155         more aggressively than we should be.  Fixes ControlRefresh unit
15156         tests.
15157
15158 2006-12-28  Chris Toshok  <toshok@ximian.com>
15159
15160         * Control.cs: contrary to what the comment said, Control.Dock does
15161         not supercede Control.Anchor - the last one you assign to decides
15162         the layout behavior.  so we need to keep track of which was the
15163         last set.  Also, fix some of the affected property arguments in
15164         PerformLayout calls, and remove an redundant parent.PerformLayout
15165         call in OnResized.
15166
15167         Add a VisibleInternal property, which returns is_visible.  We
15168         can/should get rid of all the usage of this field elsewhere.
15169
15170 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15171         
15172         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
15173         control style, not DoubleBuffer. Added UseDoubleBuffering property
15174         that indicates whether doublebuffering is enabled and supported.
15175         (comment from and code based on Gert Driesen's patch in #80324).
15176         Fixes #80324.
15177
15178 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15179         
15180         * Control.cs: Fixed a NRE.
15181
15182 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15183
15184         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
15185         for 2.0.
15186
15187 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15188
15189         * Control.cs: Rewrote double buffering, now a seperate
15190         class handles all the buffering, no Graphics is disposed of
15191         until the painting is finished (earlier implementation 
15192         would crash if the control was resized in the OnPaint, 
15193         since it would cause the double buffer to be recreated
15194         and the old one disposed), a separate Graphics is 
15195         created for every paint (MS behaviour and anyways the state
15196         of the Graphics would have to be saved and restored otherwise)
15197         
15198         * XplatUIDriver.cs: 
15199         * XplatUIX11.cs:
15200         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
15201         so that we can get the graphics for the back buffer without
15202         having to create a new one and remove the offscreen_dc parameter
15203         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
15204         
15205 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15206
15207         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
15208         Also make virtual all the key-related methods.
15209
15210         * ListViewItem.cs: Make virtual the key related methods for
15211         ListViewSubItemCollection.
15212
15213 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15214
15215         * ListView.cs:
15216         * ListViewItem.cs:
15217         * ThemeWin32Classic.cs:
15218         * Theme.cs: Initial support for Tile view in ListView,
15219         as well as the implementation of the required bits for it (Item
15220         and Subitem).
15221
15222 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15223
15224         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
15225         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
15226         Provide useful exception messages.
15227
15228 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15229
15230         * TrackBar.cs: Remove a warning.
15231         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
15232         when used by DateTimePicker, fixes #80287. This also requires that 
15233         MonthCalendar implements it's own drawing for the yearly updown control,
15234         otherwise the Capture tracking would be too complicated. Removed the Click 
15235         and DoubleClick events (according to comments they were hiding the base class
15236         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
15237         raise these events, not that they cannot be raised. It is possible to raise 
15238         them by calling OnClick and OnDoubleClick). Added two internal fields in 
15239         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
15240         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
15241         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
15242         event, no longer needed.
15243         
15244 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15245
15246         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
15247         true if new value differs from current value.
15248
15249 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15250
15251         * Control.cs: ControlCollection.Count must be public. Fixed build of
15252         unit tests.
15253
15254 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15255
15256         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
15257
15258 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
15259
15260         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
15261
15262 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
15263
15264         * Control.cs: Invalidates control including when Width and Height is 
15265         equal zero or is not visible, only Paint event must be care about 
15266         this. Fixes #79913.
15267
15268 2006-12-26  Chris Toshok  <toshok@ximian.com>
15269
15270         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
15271         more corcompare work.
15272
15273         * DataGridView.cs: fix compiler warning.
15274
15275         * ColumnHeader.cs: some corcompare work, and also take the
15276         opportunity to make the internal fields private.
15277
15278         * ListView.cs: fix the fallout from the above field change.
15279
15280 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
15281
15282         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
15283         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
15284         ToolStripTextBox.cs: Fixes to events and corcompare.
15285
15286 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
15287
15288         * ListView.cs: Call owner.OnMousexx event to propagate events from
15289         item to ListView. Fixes #80367.
15290
15291 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15292
15293         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
15294         if value is less than one. ItemHeight should not be set to a value
15295         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
15296         Removed extra tabs.
15297
15298 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
15299
15300         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
15301         * ToolStripStatusLabel.cs: Add Spring for Moma.
15302
15303 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15304
15305         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
15306         Fixed code formatting. Removed debug code.
15307         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
15308
15309 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
15310
15311         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
15312         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
15313         ArgumentOutOfRangeException if ColumnCount is negative. In 
15314         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
15315         less than 4 or higher than 32768.
15316         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
15317         Fixed FormatProvider to return CurrentCulture unless explicitly set.
15318         Fixed IsFormatProviderDefault to return true if FormatProvider has
15319         not been explicitly set.
15320
15321 2006-12-25  Chris Toshok  <toshok@ximian.com>
15322
15323         * Application.cs: add a couple of 2.0 events.
15324
15325 2006-12-25  Chris Toshok  <toshok@ximian.com>
15326
15327         * Control.cs: fix compiler warning.
15328
15329         * AxHost.cs: corcompare fixes.
15330
15331         * ApplicationContext.cs: corcompare fixes.
15332
15333 2006-12-25  Chris Toshok  <toshok@ximian.com>
15334
15335         * Control.cs: only update dist_right/dist_bottom if the
15336         width/height is > 0.  this fixes anchored controls being resized
15337         smaller until they disappear and then resized larger again.
15338
15339 2006-12-25  Chris Toshok  <toshok@ximian.com>
15340
15341         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
15342         since they're nothing more than X/Left and Y/Top, respectively.
15343
15344         Also, move back to a per-control Bitmap/Graphics for
15345         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
15346         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
15347         Height.
15348
15349 2006-12-25  Miguel de Icaza  <miguel@novell.com>
15350
15351         * MessageBox.cs: Implemented overload that takes a new "bool
15352         displayHelpButton" by adding a new internal field "show_help".
15353         When clicked this will raise the HelpRequested on the owner or the
15354         main form. 
15355
15356         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
15357         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
15358
15359         * ListView.cs: Add support ColumnWidthChanged and
15360         ColumnWidthChanging. 
15361
15362         Add support for ColumnReordered event.
15363         (ReorderColumn): Add NET_2_0 specific support for cancelling the
15364         reorder.
15365
15366         Very nice codebase!
15367
15368         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
15369
15370         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
15371
15372 2006-12-24  Chris Toshok  <toshok@ximian.com>
15373
15374         * GridTablesFactory.cs: 2.0 corcompare work.
15375
15376         * ToolStripContainer.cs: add "override" to
15377         ContextMenuStripChanged, and remove the local event object.
15378
15379         * ToolStripDropDown.cs: same with a couple properties.
15380
15381         * ToolStripPanel.cs: same with AutoSizeChanged event.
15382
15383         * TextBoxBase.cs: add "override" to AutoSizeChanged.
15384
15385         * Form.cs: add the remaining 2.0 events, and do some corcompare
15386         attribute work.
15387
15388         * DateTimePicker.cs: add "new" to padding.
15389
15390         * ButtonBase.cs: use Control's use_compatible_text_rendering.
15391
15392         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
15393
15394         * DataGridView.cs: PaddingChanged is overridden.
15395
15396 2006-12-24  Chris Toshok  <toshok@ximian.com>
15397
15398         * Control.cs: corecompare work here too.
15399
15400         * DataGridViewElement.cs, DataGridView.cs,
15401         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
15402         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
15403         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
15404         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
15405         work.
15406
15407 2006-12-24  Miguel de Icaza  <miguel@novell.com>
15408
15409         * Control.cs: Switched the error message on the console for a
15410         todo.  A review of the code will have to cope with this anyways
15411         (since its a large feature, it is in our radar) and it was
15412         producing too much output when running PDN.
15413
15414         * ToolStripComboBox.cs: Set the text when the SelectedIndex
15415         changes.  Applications depend on this (PDN 2.72)
15416
15417 2006-12-23  Chris Toshok  <toshok@ximian.com>
15418
15419         * TableLayoutSettings.cs: finish up the corcompare work for this
15420         class.
15421
15422 2006-12-23  Chris Toshok  <toshok@ximian.com>
15423
15424         * Control.cs: make SetImplicitBounds internal, do some futzing
15425         with LayoutEngine so that it's available in 1.1, and remove the
15426         entire duplicated code mess from PerformLayout.  Use
15427         System.Windows.Forms.Layout.DefaultLayout instead.
15428
15429         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
15430
15431 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
15432
15433         * Form.cs: Add MainMenuStrip property.
15434
15435 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
15436
15437         * Control.cs: Add ContextMenuStrip property and implementation.
15438         Fix ContextMenu implementation to show menu centered on control when
15439         activated using the keyboard instead of showing at screen (0,0).
15440
15441         * ToolStripDropDown.cs: Fix needed overload of Show ().
15442
15443 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15444
15445         * Menu.cs: Name property added for 2.0 profile.
15446         
15447 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15448
15449         * Menu.cs: Update information about FindMenuItem, method to be
15450         implemented soon.
15451
15452 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15453
15454         * MenuAPI.cs: When deselect items deselect also selected subitems.
15455         
15456 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
15457
15458         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
15459         FindSubItemByCoord to found itens that is not active, also an
15460         cheking added to FindSubItemByCoord to search for items only 
15461         in visible popup windows. Fixes #80274.
15462
15463 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
15464
15465         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15466         internal property, it be care about change ExStyle. 
15467
15468 2006-12-22  Andreia Gaita  <avidigal@novell.com>
15469
15470         * ContainerControl.cs: set activeControl for parent forms up the 
15471         tree when the new activecontrol is a container.
15472         When validating the active control, if it is a container, also
15473         raise up the validation for it's active control. Fixes #80280
15474         
15475         * Control.cs: Add internal property flag and check to prevent
15476         Focus events from getting raised when Select() is called for
15477         a ContainerControl. There are still too many focus events being
15478         raised at the moment though.
15479         Cleaned up the code a bit.
15480
15481 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15482
15483         * Control.cs: Added all missing 2.0 events.and
15484         fixed a couple of corcompare issues.
15485         * TrackBar.cs: Implemented missing 2.0 bits.
15486         * MonthCalendar.cs, 
15487         * DateTimePicker.cs, 
15488         * MdiClient.cs: Fixed some corcompare issues.
15489
15490 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15491
15492         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
15493         SplitterPanel.cs: corecompare work.
15494
15495 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15496
15497         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
15498         Clean up warnings for BackgroundImageChanged and PaddingChanged
15499         events now that they are implemented in Control.cs.
15500
15501 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
15502
15503         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
15504         
15505         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
15506         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
15507         of TableLayoutPanel and supporting cast.
15508
15509 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15510
15511         * XplatUIWin32.cs: 
15512         - GrabWindow now confines the mouse pointer to the confine window.
15513         - Added Win32ClipCursor and Win32GetClipCursor.
15514
15515         * Control.cs: 
15516         - Added CaptureWithConfine to be able to capture and confine 
15517         mouse pointer.
15518         
15519         * InternalWindowManager.cs: 
15520         - Call CaptureWithConfine instead of Capture if we're an
15521         MdiChild (fixes #79982).
15522
15523 2006-12-21  Chris Toshok  <toshok@ximian.com>
15524
15525         * DataGrid.cs: guard against the initial state of selection, where
15526         selection_start == -1.  make sure we only select from index >= 0.
15527         Fixes bug #80291.
15528
15529 2006-12-21  Chris Toshok  <toshok@ximian.com>
15530
15531         * Control.cs: we don't need to be so draconian with
15532         UpdateDistances, and we thusly don't need to call it before
15533         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
15534
15535 2006-12-21  Daniel Nauck  <dna@mono-project.de>
15536
15537         * ComboBox.cs,
15538         TextBox.cs: Implemented AutoComplete properties.
15539
15540 2006-12-20  Chris Toshok  <toshok@ximian.com>
15541
15542         * DataGridView*.cs: some corecompare work.
15543
15544 2006-12-20  Jackson Harper  <jackson@ximian.com>
15545
15546         * XplatUIX11.cs: We need to hide the caret when deleting it,
15547         otherwise you get carets left lying around everywhere.
15548         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
15549         prevents getting some weird half drawn caret tracers when
15550         scrolling.
15551         * TextControl.cs: Attempt to reduce the number of times we need to
15552         recreate the caret.
15553
15554 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
15555
15556         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
15557
15558 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15559
15560         * DateTimePicker.cs:
15561         - Implemented missing 2.0 bits.
15562         - Changed some default values to match MS.
15563         
15564 2006-12-20  Jackson Harper  <jackson@ximian.com>
15565
15566         * TextBoxBase.cs: When changing the font across the document we
15567         can't recalculate after changing each line, since that will cahnge
15568         the line count.
15569         - PreferredHeight is a little different than i thought.
15570         - When backspacing, move the caret before we do the actual char
15571         delete, because when that delete crosses a wrap boundary the
15572         positional information will change.
15573
15574 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15575
15576         * Control.cs: Added some missing 2.0 bits: 
15577         BackgroundImageLayout, BackgroundImageLayoutChanged, 
15578         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
15579         add IBindableComponent and IDropTarget implementation.
15580         
15581         * MonthCalendar.cs: 
15582         - Added all missing 2.0 features:
15583         BackgroundImageLayout, RightToLeftLayout, 
15584         OnHandleDestroyed, RightToLeftLayoutChanged, 
15585         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
15586         PaddingChanged.
15587         - Rewrote all the BoldDate code, it was completely broken.
15588         - Fixed all the tests (the tests can now be re-enabled, the
15589         problems were not with the tests, but with the control, it was
15590         mostly broken).
15591         
15592         * DateTimePicker.cs: Changed the location where the 
15593         MonthCalendar is shown.
15594         
15595 2006-12-19  Chris Toshok  <toshok@ximian.com>
15596
15597         * DataGridView.cs: add IDropTarget implementation.
15598
15599         * ToolStripPanel.cs: add IDropTarget implementation.
15600
15601 2006-12-19  Jackson Harper  <jackson@ximian.com>
15602
15603         * TextControl.cs: soft now means something different than what it
15604         used to mean, we want to move the caret regardless of whether or
15605         not this break was soft (would we really have wanted the caret
15606         to not move with the break in the old context?)
15607         * TreeView.cs: Make sure we factor in the vert scrollbar when
15608         calculating the horizontal scrollbar's maximum.
15609
15610 2006-12-19  Andreia Gaita  <avidigal@novell.org>
15611
15612         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
15613         check for keywords in alternate casing, close bug #80049.
15614
15615 2006-12-19  Chris Toshok  <toshok@ximian.com>
15616
15617         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
15618         methods (which all do nothing).
15619
15620         * IDropTarget.cs: add the 4 missing methods.
15621
15622 2006-12-19  Chris Toshok  <toshok@ximian.com>
15623
15624         * TableLayoutRowStyleCollection.cs: corcompare work.
15625         
15626         * TableLayoutSettings.cs: same.
15627
15628         * TableLayoutStyle.cs: same.
15629
15630         * TableLayoutColumnStyleCollection.cs: same.
15631
15632 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
15633
15634         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
15635         TableLayoutPanel I've had in my local tree for way too long.
15636
15637 2006-12-19  Miguel de Icaza  <miguel@novell.com>
15638
15639         * TableLayoutSettings.cs: Finish the public API (still needs all
15640         the logic to update on changes). 
15641
15642         * TableLayoutPanelCellPosition.cs: new file.
15643         
15644         * TableLayoutRowStyleCollection.cs,
15645         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
15646         TableLayoutSettings.cs: Track the final 2.0 table api.
15647
15648 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15649
15650         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
15651         and Image List 2.0 members for ColummnHeader.
15652         * ListView.cs: Add key-related 2.0 methods for
15653         ColumnHeaderCollection.
15654
15655 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
15656
15657         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
15658         ArgumentNullException if items argument is null. Ignore null item in
15659         arrays. Removed extra tabs.
15660
15661 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
15662
15663         * MonthCalendar.cs: Fixed InvalidCastException.
15664
15665 2006-12-19  Jackson Harper  <jackson@ximian.com>
15666
15667         * TextControl.cs: Don't increment the position here.
15668         - When calculating char positions only add in the line break size
15669         for hard line breaks.
15670
15671 2006-12-19  Andreia Gaita  <avidigal@novell.org>
15672
15673         * SendKeys.cs: Changed some things to match ms.net behaviour
15674         when parsing shifted capital letters.
15675         
15676         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
15677         Add window handle as parameter to SendInput. X11 needs the 
15678         window handle, and the handle being passed      to it in the keys 
15679         queue is the active control handle (which windows needs), not 
15680         the window handle.
15681         
15682         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
15683         to support SendKeys on X.       
15684         
15685         * X11Keyboard: Implement helper method to lookup a linux keycode
15686         given the virtual keycode. Added table of keycode-2-virtualkey
15687         values to support this.
15688
15689 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15690
15691         * ListView.cs: Add support for SelectedIndexCollection
15692         and SelectedItemCollection 2.0 methods. Implement support
15693         for ImageKey too.
15694         * ListViewItem.cs: Add support for ListViewSubItemCollection
15695         2.0 methods. Also, fix an incorrect behavior of AddRange method
15696         (it shouldn't call Clear).
15697         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
15698
15699 2006-12-19  Jackson Harper  <jackson@ximian.com>
15700
15701         * RichTextBox.cs: 
15702         * TextBoxBase.cs: New args for FormatText
15703         * TextControl.cs: Rewrote the main drawing method, this version
15704         feels a little easier to understand and debug to me.  Hopefully it
15705         does to others also
15706         - Fix FormatText to OR in the new formating values.  Added
15707         FormatSpecified param, basically this works in the same way as
15708         BoundsSpecified in Control.
15709         - Set the caret properties when the caret is positioned.
15710         - When wrapping text make sure that we calculate the width of the
15711         last character
15712         - when calculating alignments we might have wrapped down to the
15713         next line, so don't search for an individual tag, search for the
15714         end of the line
15715         - We need to invalidate the selection area when we replace the
15716         selection.
15717         
15718 2006-12-19  Daniel Nauck  <dna@mono-project.de>
15719
15720         * Application.cs: add Restart () 2.0 support
15721
15722 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
15723
15724         * MenuItem.cs: Invalidate menu item rectangle after change Enable
15725         property. Fixes #80268.
15726         
15727 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
15728
15729         * MenuAPI.cs: Dont trigger select event when closes top menu
15730         item. Fixes #80270.
15731
15732 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
15733
15734         * MenuAPI.cs: When you click on menuitem only trigger onselect
15735         event for top menu itens. Fixes #80271.
15736         
15737 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15738
15739         * MdiWindowManager.cs: Make IconicBounds depend on
15740         the bottom of MdiClient, not the top (fixes #80267)
15741         
15742 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15743
15744         * MdiClient.cs: Added missing 2.0 attribute
15745
15746 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15747
15748         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
15749         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
15750
15751 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
15752
15753         * MenuAPI.cs: Fix click when menuitem is not popup,
15754         this regression was caused by last commit (#80272).
15755
15756 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
15757
15758         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
15759         fire click event or close menu. Fixes #80272.
15760
15761 2006-12-17  Daniel Nauck  <dna@mono-project.de>
15762
15763         * ListViewHitTestInfo.cs: add
15764
15765 2006-12-17  Daniel Nauck  <dna@mono-project.de>
15766
15767         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
15768         * FlatButtonAppearance.cs: add
15769         * DockingAttribute.cs: add
15770
15771 2006-12-17  Chris Toshok  <toshok@ximian.com>
15772
15773         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
15774         and rebind our columns when it does - this way, if you make
15775         changes to the DataTable (or set the Table attribute on a DataView
15776         after setting it as the DataGrid's DataSource, the changes are
15777         made visible.)  Fixes bug #80107.
15778
15779 2006-12-17  Daniel Nauck  <dna@mono-project.de>
15780
15781         * ListViewGroup.cs: add internal Location property for layouting.
15782         * Theme.cs: add abstract ListViewGroupHeight function.
15783         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
15784
15785 2006-12-16  Andreia Gaita  <avidigal@novell.com>
15786
15787         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
15788         Added reset of selected index to 0 when adding first tab page.
15789         Fixes #80264
15790         
15791         * NumericUpDown.cs: Fix NET_2_0 check
15792
15793 2006-12-16  Daniel Nauck  <dna@mono-project.de>
15794
15795         * ListViewGroup.cs: fixed DefaultValueAttribute value
15796
15797 2006-12-16  Daniel Nauck  <dna@mono-project.de>
15798
15799         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
15800
15801 2006-12-15  Miguel de Icaza  <miguel@novell.com>
15802
15803         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
15804         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
15805         ScrollableControl.cs: Add a handful of methods that are
15806         overwritten in 2.0 
15807
15808 2006-12-15  Chris Toshok  <toshok@ximian.com>
15809
15810         * XplatUIWin32.cs: initial implementation of the Reversible
15811         drawing functions.  there are some problems.  DrawReversibleFrame
15812         doesn't seem to work at all for Dashed FrameStyle, and in the
15813         Thick case there are drawing errors at the corners (we probably
15814         need to bind Rectangle instead of doing moveto/lineto's.)
15815
15816 2006-12-16  Andreia Gaita  <avidigal@novell.com>
15817         
15818         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
15819         to send blocks of key messages. Send accumulates keys to send with Flush, 
15820         while SendWait sends all keys immediately.
15821                 
15822         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
15823         XplatUIX11.cs,  XplatUIX11-new.cs:
15824         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
15825         to Win32 SendInput.
15826         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
15827         
15828         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
15829         testing for ms.net on this class is very tricky, as the tests run too fast 
15830         to allow the hook to release, essentially freezing the keyboard and the 
15831         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
15832         category :p
15833
15834 2006-12-16  Daniel Nauck  <dna@mono-project.de>
15835
15836         * Padding.cs: fixed serialization compability to MS ("_var" field names),
15837                         added missing attributes.
15838  
15839 2006-12-15  Daniel Nauck  <dna@mono-project.de>
15840
15841         * ListViewGroup.cs: Added missing attributes.
15842         * ListViewGroupCollection.cs: Added missing attributes.
15843
15844 2006-12-15  Daniel Nauck  <dna@mono-project.de>
15845
15846         * ListViewItem.cs: fixed ListViewSubItem text property.
15847
15848 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15849         
15850         * Control.cs: Added missing 2.0 attributes
15851         
15852 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15853         
15854         * MdiClient.cs: Added missing 2.0 attribute.
15855         * MonthCalendar.cs: Added some missing 2.0 attributes 
15856         and properties.
15857         
15858 2006-12-15  Daniel Nauck  <dna@mono-project.de>
15859
15860         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
15861
15862 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
15863
15864         * MainMenu.cs: Add the new 2.0 constructor to help out people
15865         using the MainMenu in VS2005.
15866
15867 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15868         
15869         * MdiChildContext.cs: Removed it, no longer used.
15870         * MdiClient.cs: Added missing 2.0 attributes.
15871         
15872 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15873         
15874         * InternalWindowManager.cs: Fix a NullRef with previous 
15875         changes for toolwindows.
15876         
15877 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15878
15879         * Control.cs: 
15880         - Added AfterTopMostControl to allow for certain controls 
15881         to always stay on top when normal controls are brought to 
15882         front.
15883         
15884         * XplatUIWin32.cs: 
15885         - (DrawInversibleRectangle): Get window rectangle from Win32 
15886         in stead of from control, since Win32 doesn't calculate
15887         screen coords correctly from control's Location if it 
15888         have docked siblings.
15889         
15890         * MdiWindowManager.cs:
15891         - Correct the control menu popup location when clicked on
15892         the maximized form icon. (fixes #80223.1)
15893         - Don't show moving rectangle if mouse hasn't moved from
15894         the original clicked point.
15895         - Removed FormGotFocus handler (not used).
15896         - Calculate the control buttons location from the main
15897         window's size and not client size (fixes #79770).
15898         - Form is now closed when the form icon is double-clicked
15899         (fixes #79775). 
15900         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
15901         
15902         * InternalWindowManager.cs:
15903         - Moved some MDI-only methods to MdiWindowManager.
15904         - Removed unused properties and methods.
15905         - Unified method naming for methods handling wm messages.
15906         - Moved all message handling to seperate methods for
15907         each message.
15908         
15909         * ThemeWin32Classic.cs:
15910         - DrawManagedWindowDecorations now draws the title bar 
15911         with a gradient brush.
15912         - Add a CPDrawButtonInternal that allows us to specify
15913         light, normal and dark colors for the buttons (control 
15914         buttons for MDI children were drawn with the same light
15915         color as the background, therefore loosing the 3D effect).
15916         
15917         * SizeGrip.cs:
15918         - Add a CapturedControl property that is used to 
15919         determine the control to resize (defaults to parent). 
15920         Needed for MdiClient, since its SizeGrip's parent is
15921         MdiClient, but the control to resize is the main form.
15922         
15923         * MdiClient.cs:
15924         - Set SizeGrip's CapturedControl to the main form in order
15925         to resize the main form and not the MdiClient.
15926         - Override AfterTopMostControl to leave the scrollbars 
15927         always on top.
15928
15929 2006-12-15  Daniel Nauck  <dna@mono-project.de>
15930
15931         * ListView.cs: fixed ListViewItemCollection AddRange and
15932                         implemented ListViewItemCollection AddRange 2.0 support.
15933
15934 2006-12-15  Daniel Nauck  <dna@mono-project.de>
15935
15936         * ListViewGroup.cs: Add.
15937         * ListViewGroupCollection.cs: Add
15938         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
15939         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
15940                                 stub for ImageKey 2.0 support.
15941
15942 2006-12-14  Mike Kestner  <mkestner@novell.com>
15943
15944         * ListView.cs: add text padding to the autocalculation for columns
15945         of width -2.  Fixes #80207.
15946  
15947 2006-12-14  Mike Kestner  <mkestner@novell.com>
15948
15949         * ListView.cs: add some index guarding for partial row navigation 
15950         logic.  Fixes #80250.
15951
15952 2006-12-14  Mike Kestner  <mkestner@novell.com>
15953
15954         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
15955         are added or inserted to the collection.  Fixes #81099.
15956
15957 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
15958
15959         * MenuAPI.cs: Closes menu when right click out side of popup
15960         it fix problem in ContextMenu and MainMenu. Fixes #80252.
15961
15962 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15963
15964         * ListViewItem.cs: Fix dumb error.
15965
15966         * ListView.cs: Add Find and ContainsKey methods in 
15967         ListViewItemCollection, and also return true for IsReadOnly
15968         and IsFixedSize (changes for 2.0). 
15969
15970 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
15971
15972         * Control.cs: Allow Region to be set to null.
15973
15974 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15975
15976         * MdiWindowManager.cs: Remove unused (commented out) code.
15977         * Form.cs: When the MdiChild is maximized, the form needs 
15978         WM_NCMOUSELEAVE, so request it.
15979         * InternalWindowManager.cs: 
15980         - Added tooltips to control buttons.
15981         - Removed duplicated control button handling code.
15982         - Removed unused (commented out) code.
15983         
15984 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
15985
15986         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
15987         was used because we must set cursor without trigger ChangeCursor event
15988         and without change Cursor control property. Fixes #79963.
15989
15990 2006-12-12  Andreia Gaita  <avidigal@novell.com>
15991         
15992         * Control.cs: Check if Region setter value is null, and ignore
15993
15994 2006-12-12  Jackson Harper  <jackson@ximian.com>
15995
15996         * TextControl.cs: We were almost always drawing one more line then
15997         needed, since the GetLineByPixel will return the last line found
15998         at that pixel. In most cases though, we were invalidating up to
15999         the junction between two lines.
16000         - Improve debug code.
16001
16002 2006-12-12  Chris Toshok  <toshok@ximian.com>
16003
16004         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
16005         and FillReversibleRectangle.
16006
16007         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
16008         and FillReversibleRectangle.
16009
16010         * XplatUIWin32.cs: add stubs which do nothing for
16011         DrawReversibleFrame, DrawReversibleLine, and
16012         FillReversibleRectangle.
16013
16014         * XplatUIOSX.cs: add stubs which raise NIE for
16015         DrawReversibleFrame, DrawReversibleLine, and
16016         FillReversibleRectangle.
16017
16018         * XplatUIX11.cs: add working implementation for
16019         DrawReversibleFrame, DrawReversibleLine, and
16020         FillReversibleRectangle.
16021         
16022         * ControlPaint.cs: implement DrawReversibleFrame,
16023         DrawReversibleLine, and FillReversibleRectangle, by calling into
16024         the appropriate XplatUI method.
16025
16026 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16027
16028         * Form.cs: Make MdiClient have the focus even if it's
16029         not selectable, since it should receive WM_KEY* and WM_MOUSE 
16030         messages. Fixes #79907.
16031         
16032 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16033
16034         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
16035         queried after the window is created.
16036         
16037         * XplatUIX11.cs: Added SendParentNotify to implement 
16038         WM_PARENTNOTIFY logic. Fixes #79965.
16039         
16040         * Control.cs: Added MakeParam.
16041         
16042 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16043
16044         * MdiClient.cs: Resume Layout before setting window
16045         states (fixes #80201).
16046
16047 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16048
16049         * MenuAPI.cs: Deselect a menu item after performing
16050         the click (fixes #80197).
16051
16052 2006-12-11  Jackson Harper  <jackson@ximian.com>
16053
16054         * TextBoxBase.cs: We need to cap this value, since Maximum -
16055         ViewPortHeight can be less than zero.
16056         - Only do selection with the left mouse button.
16057         * TextBox.cs: Don't tell the world that we have a context menu.
16058         * Control.cs: New method so that we can control whether or not the
16059         context menu is visible outside MWF.
16060
16061 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
16062
16063         * ToolBarButton.cs: Fix text positon. 
16064
16065 2006-12-11  Miguel de Icaza  <miguel@novell.com>
16066
16067         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
16068
16069         * Control.cs (DoubleBuffered): Add implementation.
16070
16071         * Application.cs (OpenForms): Add.
16072
16073 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
16074
16075         * Form.cs: Use opacity instead of Opactiy to determine if we need
16076         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
16077
16078 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
16079
16080         * Control.cs: Fix NRE if Control.Site was set to null.
16081
16082 2006-12-11  Chris Toshok  <toshok@ximian.com>
16083
16084         * Control.cs: ControlCollection.Remove should return if the arg is
16085         null, and ControlCollection.SetChildIndex should raise a ANE.
16086
16087 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
16088
16089         * Control.cs: Verify value set for Dock property. Code formatting
16090         updates.
16091
16092 2006-12-11  Jackson Harper  <jackson@ximian.com>
16093
16094         * TextControl.cs: Draw the caret and the selection when a flag is
16095         set on the owner.
16096         * TextBoxBase.cs: We want to draw the caret and the selection for
16097         TextBox but not for TextBoxBase.
16098         - If the window is resized and scrolling is no longer needed (the
16099         whole doc is visible) set the scroll position to zero.
16100         - The default SelectWord (the one TextBox uses) should move the
16101         caret to the end of the word.
16102         - SelectAll moves the caret to the end of the selection.
16103         * TextBox.cs: We don't selectall on focus, we just do it when the
16104         control is created.
16105         
16106 2006-12-11  Mike Kestner  <mkestner@novell.com>
16107
16108         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
16109
16110 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16111
16112         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
16113         2.0 support.
16114         * ListViewItem.cs: Add Name 2.0 property.
16115
16116 2006-12-11  Andreia Gaita  <avidigal@novell.com>
16117
16118         * TabControl.cs: Set visibility on selected or default tab 
16119         when tabcontrol handle is created, so that it's contents
16120         actually show up (duh). Fixes #80193
16121         Don't redraw the control if there is no handle created, as
16122         the selected index might be completely invalid. Added some tests
16123         to check for this.
16124
16125 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
16126
16127         * ToolBar.cs: Uses maximun width and height of all buttons as 
16128         button rectangle when ButtonSize specified, it looks strange but
16129         is what happens in Win32. Fixes #80189.
16130
16131 2006-12-11  Jackson Harper  <jackson@ximian.com>
16132
16133         * TextControl.cs: Need to track undo levels ourself, since
16134         compound actions will mess them up.
16135
16136 2006-12-10  Andreia Gaita  <avidigal@novell.com>
16137
16138         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
16139         SelectedIndex value is changed (even if it's not valid).
16140         Reset SelectedIndex to 0 when the handle is created and if
16141         the current index is invalid.
16142         Fixes SelectdeIndex unit tests and #80128
16143
16144 2006-12-08  Chris Toshok  <toshok@ximian.com>
16145
16146         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
16147         calls EndEdit, it needs to be called before we set current_cell to
16148         its new value.  Otherwise, we end up committing the value in the
16149         textbox to the new cell as well.  Fixes bug #80160.
16150
16151 2006-12-08  Chris Toshok  <toshok@ximian.com>
16152
16153         * Form.cs (set_CancelButton): if the button's DialogResult is
16154         None, set it to Cancel.  Fixes bug 80180.
16155
16156 2006-12-08  Jackson Harper  <jackson@ximian.com>
16157
16158         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
16159         to watch ourselves when setting the canvas size and setting the
16160         scrollbar values.
16161
16162 2006-12-08  Chris Toshok  <toshok@ximian.com>
16163
16164         * DataGrid.cs: comment out the two MakeTransparent calls for the
16165         time being so people using trunk (and not 1.2.2) on windows can
16166         actually use the datagrid.  This deals with bug #80151.
16167
16168 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
16169
16170         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
16171         Graphics.DrawImage (image, int, int, int, int) overload instead
16172         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
16173         the dpi difference and was blurring images it drew.
16174         [Fixes bug #79960]
16175
16176 2006-12-08  Chris Toshok  <toshok@ximian.com>
16177
16178         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
16179         rowcnt is 0 (such as with an empty datasource), and make sure we
16180         initialize not_usedarea.Y to cells.Y, so we don't draw over the
16181         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
16182
16183 2006-12-08  Chris Toshok  <toshok@ximian.com>
16184
16185         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
16186         grid.
16187
16188 2006-12-08  Chris Toshok  <toshok@ximian.com>
16189
16190         [ Fixes bug #80167 ]
16191         
16192         * ThemeWin32Classic.cs: don't draw the image if the button's flat
16193         style is FlatStyle.System.
16194
16195         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
16196         ButtonBase.flat_style private, and switch uses of it to the public
16197         property.
16198         
16199 2006-12-08  Chris Toshok  <toshok@ximian.com>
16200
16201         [ Fixes bug #80121 ]
16202         
16203         * ThemeWin32Classic.cs: center the caption text in the datagrid
16204         when we draw it.
16205
16206         * DataGrid.cs: lessen the amount we add to the caption height from
16207         6 to 2.  6 was making it huge.
16208
16209 2006-12-08  Andreia Gaita  <avidigal@novell.com>
16210
16211         * UpDownBase: Handle MouseWheel call directly instead of capturing
16212         the inner textbox's OnMouseWheel. Fixes #80166
16213
16214 2006-12-08  Jackson Harper  <jackson@ximian.com>
16215
16216         * TextControl.cs: We need to invalidate the textbox when we empty
16217         it (how had this not been discovered before?)
16218
16219 2006-12-08  Jackson Harper  <jackson@ximian.com>
16220
16221         * TextBoxBase.cs: Reworked the mouse down code so I could get it
16222         to behave like MS, we now ignore the eventargs.Click and just
16223         track state ourself, which we were already doing anyways.
16224         - Constrain the double click handler to the double click size.
16225         
16226 2006-12-08  Chris Toshok  <toshok@ximian.com>
16227
16228         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
16229         direction if that scrollbar isn't shown.  fixes bug #80158.
16230
16231 2006-12-08  Andreia Gaita  <avidigal@novell.com>
16232
16233         * NumericUpDown.cs: Update value on getter. Fixes #79950
16234
16235 2006-12-08  Chris Toshok  <toshok@ximian.com>
16236
16237         * MenuItem.cs: add back in the event cloning code.  I didn't know
16238         how to do it in the face of the EventHandlerList work i'd done
16239         last week.  Fixes bug #80183.
16240
16241 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
16242
16243         * Control.cs: Add an invalidate to the BackgroundImage setter.
16244         [Fixes 80184]
16245
16246 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
16247
16248         * ToolStrip*: Add some small properties reported by MoMA, fix event
16249         firing and default properties based off of unit tests, and add some
16250         attributes based off of the class status page.
16251
16252 2006-12-07  Jackson Harper  <jackson@ximian.com>
16253
16254         * TextBoxBase.cs: Take HideSelection into account when determining
16255         whether or not to show the selection.
16256         * RichTextBox.cs: After inserting the RTF into the document move
16257         the cursor to the beginning of the document.
16258
16259 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
16260
16261         * Control.cs: Remove static ArrayList "controls" which maintained
16262         a reference to every control created.
16263         * Application.cs: Create a static FormCollection to maintain a reference
16264         to every form created.  Use it in places that formerly enumerated through
16265         the controls one looking for forms.
16266         * Form.cs: Add and remove self from above FormCollection.
16267
16268 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
16269
16270         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
16271           not libgdk (though it makes me wonder why I didn't have any
16272           problems)
16273
16274 2006-12-07  Chris Toshok  <toshok@ximian.com>
16275
16276         [ you had to know this was coming after that last commit...]
16277         
16278         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
16279         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
16280         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
16281         XCopyArea).
16282
16283 2006-12-07  Chris Toshok  <toshok@ximian.com>
16284
16285         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
16286         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
16287         all the behavior we need for double buffering.
16288
16289         * XplatUIDriver.cs: implement the 3 double buffer methods using a
16290         client side Bitmap, just like the old Control-based double buffer
16291         code did.  The methods are virtual, so each XplatUI driver
16292         subclass can replace the implementation to use a faster, platform
16293         specific approach.
16294
16295         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
16296         double buffer code, and clean things up a bit in the process.
16297
16298 2006-12-06  Chris Toshok  <toshok@ximian.com>
16299
16300         * Control.cs: reindent WndProc.
16301
16302 2006-12-06  Chris Toshok  <toshok@ximian.com>
16303
16304         [ I wanna be like BenM when I grow up ]
16305         
16306         * Hwnd.cs: create a single static Graphics object on the static
16307         Bitmap we create.  use this for our text measurements.
16308
16309         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
16310         This was causing us to allocate a backbuffer for every control,
16311         even when it wasn't flagged as double buffered.  Instead use the
16312         single graphics instance.  This might have implications for
16313         multithreaded applications.  If we run into problems we can switch
16314         to creating 1 Graphics per control, on the static Hwnd bitmap.
16315
16316         this change nets us a 7M savings in private dirty mappings when
16317         running FormsTest.exe.
16318
16319 2006-12-06  Chris Toshok  <toshok@ximian.com>
16320
16321         * ListView.cs: the BackgroundImage override is just to set
16322         attributes.  chain up to base.BackgroundImage.
16323
16324         * RichTextBox.cs: same.
16325
16326         * ToolBar.cs: same, but we need to also redraw the toolbar when it
16327         changes, so instead a handler for BackgroundImageChanged.
16328         
16329         * Control.cs: make background_image private.
16330
16331 2006-12-06  Chris Toshok  <toshok@ximian.com>
16332
16333         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
16334         sure we even need this assignment, but roll with it for now.
16335
16336         * Control.cs: make the cursor field private.
16337
16338 2006-12-06  Chris Toshok  <toshok@ximian.com>
16339
16340         * Form.cs: we don't need to explicitly set ImeMode to
16341         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
16342         behavior in the face of ImeMode.Inherit.
16343
16344         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
16345         change the ctor's assignment to use ImeMode instead of ime_mode.
16346
16347         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
16348         ImeModeInherit.  Only check for the parent's imemode (and return
16349         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
16350         This fixes the button unit test, which sets both ImeMode and
16351         DefaultImeMode to ImeMode.Disable.
16352
16353         also make the ime_mode field private.
16354
16355 2006-12-06  Chris Toshok  <toshok@ximian.com>
16356
16357         * Control.cs: make control_style private.
16358
16359         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
16360         setting the styles to true, then setting them to false instead of
16361         reverting to their previous values.
16362
16363         also, call SetStyle on the scrollbars instead of using
16364         control_style directly.
16365
16366 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
16367
16368         * FormCollection.cs: Implement. [2.0]
16369
16370 2006-12-06  Chris Toshok  <toshok@ximian.com>
16371
16372         * Control.cs: make tab_stop private.
16373
16374         * Label.cs: set TabStop, not tab_stop.  reformat some event
16375         add/remove methods to make them more compact.
16376
16377 2006-12-06  Chris Toshok  <toshok@ximian.com>
16378
16379         * RadioButton.cs: fix TabStop handling.
16380
16381 2006-12-06  Chris Toshok  <toshok@ximian.com>
16382
16383         * TextBox.cs: remove the explicit assignments to has_focus.
16384         Control does that.
16385
16386         * ButtonBase.cs: remove the assignment to has_focus.  Control will
16387         manage that.
16388         
16389 2006-12-06  Chris Toshok  <toshok@ximian.com>
16390
16391         * ButtonBase.cs: remove all uses of is_enabled from this code.
16392         it's always true when any of the code containing the checks is
16393         executed.
16394
16395 2006-12-06  Chris Toshok  <toshok@ximian.com>
16396
16397         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
16398         with different semantics (some are present in both 1.1 and 2.0
16399         profiles) so that we match MS's behavior in our unit tests.
16400
16401 2006-12-06  Jackson Harper  <jackson@ximian.com>
16402
16403         * TextControl.cs: Make this operation undoable.
16404         * TextBoxBase.cs: Factor the border width into the preferred
16405         height.
16406         - implement Modified as per the spec.
16407
16408 2006-12-06  Chris Toshok  <toshok@ximian.com>
16409
16410         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
16411
16412 2006-12-06  Chris Toshok  <toshok@ximian.com>
16413
16414         * Control.cs: make right_to_left and context_menu fields private.
16415
16416 2006-12-06  Chris Toshok  <toshok@ximian.com>
16417
16418         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
16419         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
16420         Control.child_controls private.  switch all uses over to
16421         Control.Controls.
16422
16423 2006-12-06  Chris Toshok  <toshok@ximian.com>
16424
16425         * System.Windows.Forms/GroupBox.cs,
16426         System.Windows.Forms/AccessibleObject.cs,
16427         System.Windows.Forms/ErrorProvider.cs,
16428         System.Windows.Forms/Control.cs,
16429         System.Windows.Forms/UpDownBase.cs,
16430         System.Windows.Forms/ScrollBar.cs,
16431         System.Windows.Forms/DateTimePicker.cs,
16432         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
16433         System.Windows.Forms/ToolTip.cs,
16434         System.Windows.Forms/RadioButton.cs,
16435         System.Windows.Forms/LinkLabel.cs,
16436         System.Windows.Forms/Splitter.cs,
16437         System.Windows.Forms/TextBoxBase.cs,
16438         System.Windows.Forms/ToolStripTextBox.cs,
16439         System.Windows.Forms/ContainerControl.cs,
16440         System.Windows.Forms/ThemeWin32Classic.cs,
16441         System.Windows.Forms/SizeGrip.cs,
16442         System.Windows.Forms/ToolStripDropDown.cs,
16443         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
16444         private.  switch all uses over to Control.Parent.
16445
16446 2006-12-06  Chris Toshok  <toshok@ximian.com>
16447
16448         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
16449         Control does this before calling emitting these events.
16450
16451         * TabControl.cs: same.
16452
16453         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
16454         Control.client_rect.
16455
16456         * ButtonBase.cs: use the ClientSize property instead of the
16457         client_size field.
16458
16459         * ScrollableControl.cs: same.
16460
16461         * Control.cs: another pass at making properties private.  also,
16462         move the initialization of tab_stop to the ctor.
16463
16464 2006-12-05  Andreia Gaita <avidigal@novell.com>
16465
16466         * TabControl.cs: Let the selected index be set freely if the 
16467         control handle is not yet created.
16468
16469 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
16470
16471         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
16472         internal until I can rewrite DefaultLayout.
16473         * ToolStrip.cs: Fix build error and some general cleaning.
16474         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
16475         Fix build errors caused by making some of Control's fields private.
16476
16477 2006-12-05  Jackson Harper  <jackson@ximian.com>
16478
16479         * TextControl.cs: Redo Insert a little so that it use IndexOf
16480         instead of Split, this prevents it from messing up on things like
16481         \n\n\n. Also more effecient since the split array doesn't need to
16482         be created.
16483         * TextBoxBase.cs: AppendText doesnt handle multiline and non
16484         multiline text differently, this is the first of many fixes that
16485         will make multiline/non-multiline the same thing as far as the
16486         TextBoxBase is concerned.
16487         - Don't split the text and insert lines, this can lose some line
16488         endings (like is the last line a soft or hard break). Instead use
16489         the new Insert.
16490         - Fix an off by one when combining all the lines in the Text
16491         getter.
16492         - Remove separate multiline handling from the Text getter/setter.
16493
16494 2006-12-05  Chris Toshok  <toshok@ximian.com>
16495
16496         * ButtonBase.cs: a few changes:
16497
16498         - don't reinitialize internal Control fields in the ctor when they
16499         have the same values as Control sets them.
16500
16501         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
16502         this before calling those methods.
16503
16504         - we don't need to call Refresh for anything.  use Invalidate
16505         instead.
16506
16507         - OnEnabledChanged doesn't need to redraw at all - Control.cs
16508         calls Refresh in its OnEnabledChanged.
16509         
16510         - several of the events we were registered for in the ctor to
16511         redraw ourselves already include calls to Invalidate in the
16512         property setters that raise the events.  remove the extra
16513         invalidation.
16514
16515         - reformat a switch statement that was 83274658 columns wide.
16516         
16517 2006-12-05  Mike Kestner  <mkestner@novell.com>
16518
16519         * ComboBox.cs: fix a unit test regression from a TextBox
16520         SelectionLength return of -1 when there's no selection.  
16521
16522 2006-12-05  Chris Toshok  <toshok@ximian.com>
16523
16524         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
16525         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
16526         cleaning up some of the internal Control fields being used by
16527         subclasses.
16528
16529 2006-12-05  Mike Kestner  <mkestner@novell.com>
16530
16531         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
16532         listbox after AddImplicit calls since it defaults to hidden. Add a 
16533         hack to preserve requested heights across DropDownStyle changes.
16534
16535 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
16536
16537         * PropertyGrid.cs: Hide FindFirstItem method from public API.
16538
16539 2006-12-05  Chris Toshok  <toshok@ximian.com>
16540
16541         * DataGridView.cs: fix compiler warnings.
16542
16543         * PrintControllerWithStatusDialog.cs: same.
16544
16545         * ToolBar.cs: same.
16546
16547         * FolderBrowserDialog.cs: same.
16548
16549         * Splitter.cs: same.
16550
16551         * DataGridViewComboBoxCell.cs: same.
16552
16553         * XplatUIWin32.cs: same.
16554
16555         * PictureBox.cs: same.
16556
16557         * Win32DnD.cs: same.
16558
16559         * PageSetupDialog.cs: same.
16560
16561         * FileDialog.cs: same.
16562
16563         * PrintDialog.cs: same.
16564
16565         * DataGridTextBoxColumn.cs: same.
16566
16567         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
16568
16569 2006-12-05  Chris Toshok  <toshok@ximian.com>
16570
16571         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
16572         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
16573         System.ComponentModel.EventHandlerList work.
16574
16575 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
16576
16577         * DrawTreeNodeEventArgs.cs: Added.
16578
16579 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16580         
16581         * InternalWindowManager.cs: Remove an unused field.
16582         
16583 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16584
16585         * InternalWindowManager.cs:
16586         - Save the point where the title bar is clicked.
16587         
16588         * MdiWindowManager.cs:
16589         - Only allow moving of the window as long as the 
16590         clicked point on the title bar does not get out of
16591         MdiClient's rectangle. Fixes #79982.
16592         
16593         * MdiClient.cs:
16594         - Added Horizontal/VerticalScrollbarVisible.
16595         - Simplified the scrollbar sizing algorithm.
16596         - Cache the difference in scrolled value in
16597         H/VBarValueChanged and move the calculation out
16598         of the for loop.
16599
16600 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16601
16602         * Control.cs: Make the Console.WriteLine in WndProc 
16603         write more info.
16604
16605 2006-12-05  Chris Toshok  <toshok@ximian.com>
16606
16607         * ToolStripManager.cs, ToolStripButton.cs,
16608         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
16609         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
16610         ToolStripSplitButton.cs, ToolStripSeparator.cs,
16611         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
16612         ToolStripProgressBar.cs, ToolStripContainer.cs,
16613         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
16614         to using System.ComponentModel.EventHandlerList.
16615
16616 2006-12-04  Chris Toshok  <toshok@ximian.com>
16617
16618         * LinkLabel.cs: fix up compiler warnings.
16619
16620         * TableLayoutSettings.cs: same.
16621
16622         * TreeView.cs: same.
16623
16624         * ToolBar.cs: same.
16625
16626         * TabControl.cs: same.
16627
16628         * RichTextBox.cs: same.
16629
16630         * ListViewItem.cs: same.
16631
16632         * PropertyGrid.cs: same.
16633
16634         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
16635
16636         * ToolTip.cs same.
16637
16638         * TextRenderer.cs: fix up compiler warnings.
16639
16640         * Label.cs: same.
16641
16642         * Form.cs: corcompare fixes.
16643
16644         * PictureBox.cs: fix up compiler warnings.
16645
16646         * ImageListStreamer.cs: same.
16647
16648         * TrackBar.cs: corcompare fix.
16649
16650         * Control.cs: fix up compiler warnings.
16651
16652         * SplitterPanel.cs: same.
16653
16654         * NumericTextBox.cs: same.
16655
16656         * ImageList.cs: same.
16657
16658         * StatusStrip.cs: same.
16659
16660         * ProgressBar.cs: corcompare fix.
16661
16662         * ToolStripButton.cs: fix up compiler warnings.
16663
16664         * ToolStripStatusLabel.cs: same.
16665
16666         * ToolStripSplitButton.cs: same.
16667
16668         * ToolStripSeparator.cs: same.
16669
16670         * ToolStripProgressBar.cs: same.
16671
16672         * ToolStripDropDownMenu.cs: same
16673
16674         * ToolStripDropDown.cs: same.
16675
16676         * ToolStripDropDownButton.cs: same.
16677
16678         * ToolStrip.cs: same.
16679
16680         * ToolStripControlHost.cs: same.
16681
16682         * ToolStripContentPanel.cs: same.
16683
16684         * ToolStripDropDown.cs: same.
16685
16686         * ToolStripContainer.cs: same.
16687
16688         * ToolStripPanel.cs: same, and add "new" where we need it to work
16689         with the new ArrangedElementCollection.
16690
16691         * ToolStripItemCollection.cs: add "new" where we need it to work
16692         with the new ArrangedElementCollection.
16693
16694 2006-12-04  Andreia Gaita <avidigal@novell.com>
16695
16696         * TabControl.cs: Fix default tab selection to after TabControl
16697         gets focus and not before. Fixes #80128
16698
16699 2006-12-04  Chris Toshok  <toshok@ximian.com>
16700
16701         * DataGridTableStyle.cs: remove the gross calling of
16702         datagrid.Refresh from here.  It's a broken idea and it doesn't
16703         work anyway.
16704
16705         * DataGrid.cs: instead, just register/unregister from the
16706         DataGridTableStyle events in CurrentTableStyle.  we play it
16707         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
16708         even though some would most likely not require it.  Fixes bug
16709         #80115 (and one portion of #80117 as a side effect).
16710
16711 2006-12-04  Chris Toshok  <toshok@ximian.com>
16712
16713         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
16714         so the textbox (if any) goes away.  Fixes bug #80117.
16715
16716 2006-12-04  Chris Toshok  <toshok@ximian.com>
16717
16718         * DataGridColumnStyle.cs: set the column's readonly property
16719         initially based on the property descriptor's IsReadOnly.  Fixes
16720         bug #80044.
16721
16722 2006-12-04  Chris Toshok  <toshok@ximian.com>
16723
16724         * ComboBox.cs: wrap the dropdown style changing work in
16725         SuspendLayout/ResumeLayout.  Fixes bug #79968.
16726
16727 2006-12-04  Jackson Harper  <jackson@ximian.com>
16728
16729         * TextBoxBase.cs: Fix off by one, since these are one-based.
16730         * TextBox.cs: Select all the text when we get focus.  The TextBox
16731         does this but the RTB does not.
16732
16733 2006-12-04  Chris Toshok  <toshok@ximian.com>
16734
16735         * DataGridTextBoxColumn.cs: remove some spew.
16736
16737         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
16738         but some part of me is saying "it shouldn't be here.."  At any
16739         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
16740         setting the value.
16741
16742 2006-12-04  Chris Toshok  <toshok@ximian.com>
16743
16744         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
16745         to reassign the propertydescriptor.
16746
16747 2006-12-04  Jackson Harper  <jackson@ximian.com>
16748
16749         * TextBoxBase.cs:
16750         * TextControl.cs: Remove some unused variables.  Maybe this will
16751         patch things up between mike and I.
16752         - don't split lines less then one char wide, if the viewport is
16753         that small text won't be visible anyways.
16754         
16755 2006-12-04  Jackson Harper  <jackson@ximian.com>
16756
16757         * TextBoxBase.cs: Default selection length is -1, need to do some
16758         more testing on windows to see when this is used for the property.
16759         - Redid the Lines [] property to that we properly remove soft line
16760         breaks
16761         - added support for preserving carriage returns
16762         -  CanUndo is not a variable like 'is undo enabled' it just returns
16763         true if there is undo operations available.
16764         - AppendText doesn't need to grab the last tag itself anymore,
16765         this happens automatically when we move the cursor.
16766         * TextControl.cs: Add CompoundActions to the undo class. This
16767         allows combining the other operations into one big option.  ie a
16768         paste will combine { delete old, insert new, move cursor }
16769         - Add InsertString undo operation
16770         - New method for deleting multiline text
16771         - Add carriage returns to lines. So we can preserve carriage
16772         returns when text is 'roundtripped'
16773
16774 2006-12-04  Chris Toshok  <toshok@ximian.com>
16775
16776         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
16777         minimum 0.  Fixes the scrollbar exception in bug #80136.
16778
16779 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16780
16781         * MdiClient.cs: 
16782         * MdiWindowManager: Removed unused fields and methods.
16783         
16784 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16785         
16786         * StatusBar.cs: Update all panels when a AutoSize=Contents
16787         panel needs updating.
16788         
16789         * StatusBarPanel.cs: Remove twidth and only use initialize.
16790         Fixes #80031.
16791                 
16792 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16793
16794         * Form.cs: When a form's MdiParent is set add it directly
16795         on top of the z-order in stead of relying on MdiClient's
16796         ActivateChild to do it. Fixes #80135.
16797         
16798         * MdiClient.cs: 
16799         - Remove original_order, mdi_child_list is already doing
16800         the same thing.
16801         - Create mdi_child_list on construction in
16802         stead of first use (avoids a few null checks).
16803
16804         * MenuItem.cs: Use an already existing list of mdi children
16805         to get the correct order of children and remove the other
16806         redundant list.
16807
16808 2006-12-04  Chris Toshok  <toshok@ximian.com>
16809
16810         * PropertyGridView.cs: cached_splitter_location is only used in
16811         !DOUBLEBUFFER code.
16812
16813         * PropertyGrid.cs: implement the ComComponentNameChanged event
16814         using Events, hoping that would fix the warning.  Looks like a
16815         compiler bug instead (#80144).
16816
16817         * PropertyManager.cs: remove unused method.
16818
16819 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
16820
16821         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
16822         include parentesis to fix expression evaluation. Fixes #79634.
16823
16824 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
16825         
16826         * MenuAPI.cs:
16827         - Changes to fix behavior in Menu control, some reported in #80097
16828         and other detected during behavior refactory like a select event
16829         problems.
16830         - Remove unneded "if's" conditions.
16831         - Created an internal to flag when popup is active in control, we need 
16832         it because in .NET you can have menu active but without popup active
16833         when you active menu using popup without visible items.
16834         - Mimic win32 behavior for Select and Popup events.  
16835         - Dont open popup menu when you dont have visible subitems.
16836         - Do nothing when click on disabled menu item.
16837         - Some small changes to follow the coding style guidelines.
16838         - Unselect menu only when another control gives focus. Fixes #80097.
16839         - Remove unused code.
16840         
16841         * MenuItem.cs: internal VisibleItems method to check if menu
16842         theres visible subitems, it will be usefull to fix some 
16843         behavior in Menu control.
16844         
16845 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
16846         
16847         * Timer.cs: Tag property for 2.0 profile.
16848         
16849 2006-12-01  Chris Toshok  <toshok@ximian.com>
16850
16851         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
16852         
16853         * Win32DnD.cs: comment out some unused fields.
16854
16855         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
16856         some unused properties/methods.
16857
16858         * XplatUIX11.cs: fix MousePosition so we override the base class's
16859         property instead of conflicting with it.
16860
16861         * PictureBox.cs: comment out some unused fields
16862
16863         * OSXStructs.cs: make some struct fields public.
16864
16865         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
16866         MousePosition so we override the base class's property instead of
16867         conflicting with it.
16868
16869         * X11Dnd.cs: comment out some unused fields
16870
16871         * X11DesktopColors.cs: fix some struct field visibility to quiet
16872         the compiler.
16873
16874         * X11Dnd.cs: remove some debug code.
16875
16876         * ThemeClearlooks.cs: comment out unused field.
16877
16878         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
16879
16880         * ThemeGtk.cs: comment out some unused pinvokes.
16881
16882         * Timer.cs: remove some unused fields.
16883
16884         * ThemeClearlooks.cs: comment out unused field.
16885
16886         * UpDownBase.cs: comment out unused field.
16887
16888         * DataObject.cs: comment out unused field.
16889
16890         * DataGridBoolColumn.cs: reomve unused field.
16891
16892         * DataGrid.cs: remove unused field.
16893
16894         * Cursor.cs: remove old ToBitmap code.
16895
16896         * ControlPaint.cs: remove unused method.
16897
16898         * ScrollBar.cs: remove unused fields.
16899
16900         * ComboBox.cs: remove unused field, and chain up to
16901         AccessibleObject ctor.
16902
16903         * ListBox.cs: remove unused field.
16904
16905         * ButtonBase.cs: wrap a couple fields in NET_2_0.
16906
16907         * GridEntry.cs: remove unused fields.
16908
16909         * Binding.cs: remove unused fields.
16910
16911         * AxHost.cs: remove unused method.
16912
16913         * ContainerControl.cs: remove unused field.
16914
16915         * ScrollableControl.cs: remove unused fields.
16916
16917 2006-12-01  Chris Toshok  <toshok@ximian.com>
16918
16919         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
16920         the Where/WhereString stuff.  it's easy enough to CWL
16921         Environment.StackTrace.
16922
16923         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
16924         unused private fields.
16925
16926 2006-12-01  Jackson Harper  <jackson@ximian.com>
16927
16928         * TextControl.cs: Do not update the view while inserting multiline
16929         text. If we update the view we might wrap lines, before entering
16930         the new lines, which causes the new line insertion calculations to
16931         be totally fubared.
16932         - Remove an old TODO
16933         - Make debug output a little nicer
16934         
16935 2006-12-01  Chris Toshok  <toshok@ximian.com>
16936
16937         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
16938
16939 2006-12-01  Chris Toshok  <toshok@ximian.com>
16940
16941         [ fix the majority of the CS0108 warnings we've been suppressing ]
16942         
16943         * TreeView.cs: mark BackgroundImageChanged as 'new'.
16944
16945         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
16946         to "LayoutToolBar" to quiet mcs.
16947         
16948         * TabControl.cs: mark our ControlCollection class as 'new'.
16949
16950         * TextBoxBase.cs: mark some events as 'new'.
16951
16952         * Splitter.cs: TabStop is 'new'.
16953
16954         * ControlBindingsCollection.cs: mark a few methods as new since
16955         they change the visibility from protected to public.
16956
16957         * RadioButton.cs: DoubleClick -> base class, and remove unused
16958         HaveDoubleClick.
16959
16960         * MonthCalendar.cs: ImeMode property -> base class, and mark many
16961         events as new.
16962
16963         * NumericUpDown.cs: TextChanged -> base class.
16964
16965         * CheckedListBox.cs: mark our ObjectCollection class as new to
16966         quiet mcs.
16967
16968         * FolderBrowserDialog.cs: make HelpRequest event new and have it
16969         muck with the base class.
16970
16971         * StatusBar.cs: fix some mcs warnings about Update being the same
16972         name as a base class method.
16973
16974         * RichTextBox.cs: mark some events as new, and make them do things
16975         to the base class impl.
16976
16977         * UserControl.cs: mark TextChanged as new, and have it manipulate
16978         base.TextChanged.
16979
16980         * UpDownBase.cs: mark some things new.
16981
16982         * CheckBox.cs: mark DoubleClick "new", and add some text about
16983         what we need to look at.
16984
16985         * Panel.cs: make the events "new", and manipulate the base
16986         version.  these are just here for attributes.
16987
16988         * AccessibleObject.cs: make owner private.
16989
16990         * Control.cs: deal with AccessibleObject.owner being private.
16991         cache our own copy if we need it.
16992
16993         * Button.cs: add "new" to the DoubleClickEvent.
16994
16995         * ListBox.cs: no need to track our own has_focus here.  let
16996         Control.has_focus do it for us.  Also some other work to clear up
16997         warnings about not overriding base class methods of the same name.
16998         
16999         * ComboBox.cs: clear up some warnings about not override base
17000         class methods of the same name.
17001
17002 2006-12-01  Chris Toshok  <toshok@ximian.com>
17003
17004         * Form.cs: flag a few things as "new" to quiet some of the mcs
17005         warnings.
17006
17007         * AxHost.cs: same.
17008
17009         * PrintPreviewDialog.cs: same.
17010
17011         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
17012         now DGV isn't so horrible on the class status page.  also, move
17013         all events to using System.ComponentModel.EventHandlerList.  my
17014         wrists hurt.
17015
17016 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17017
17018         * MdiWindowManager.cs:
17019         - Set form to active mdi child if shown,
17020         and update the active mdi child to the next 
17021         remaining child in the z-order if the form is hidden.
17022
17023         * Form.cs: 
17024         - Track if the form has been visible and if its 
17025         visibility is beeing changed, so that the MdiClient
17026         can properly decide the ActiveMdiChild. The MdiClient 
17027         cannot track this since the form can change visibility 
17028         before MdiClient is created.
17029
17030         * MdiClient.cs:
17031         - Don't activate anything of the parent form is changing
17032         its visibility.
17033         - Rework ActiveMdiChild to only return visible mdi 
17034         children and take into account several other corner 
17035         cases.
17036
17037 2006-12-01  Chris Toshok  <toshok@ximian.com>
17038
17039         * IBindableComponent.cs: new 2.0 interface.
17040
17041 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
17042
17043         * DataGrid.cs: Font for caption area is bold by default.
17044
17045 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
17046
17047         * Menu.cs: Tag property for 2.0.
17048         
17049 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
17050
17051         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
17052         
17053 2006-12-01  Chris Toshok  <toshok@ximian.com>
17054
17055         * TreeView.cs: doh, the Begin* events should be
17056         TreeViewCancelEventHandler.
17057
17058 2006-12-01  Chris Toshok  <toshok@ximian.com>
17059
17060         * Form.cs: Form.ControlCollection already stores off the
17061         form_owner field.  don't access the base class's internal "owner"
17062         field.
17063
17064         * Control.cs: make all the fields in Control.ControlCollection
17065         private.  there's no need for any internal fields here.
17066
17067 2006-12-01  Chris Toshok  <toshok@ximian.com>
17068
17069         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
17070         OnHandleCreated.  Fixes bug #80109.
17071
17072 2006-12-01  Chris Toshok  <toshok@ximian.com>
17073
17074         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
17075         SplitContainer.cs, Control.cs, StatusStrip.cs,
17076         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
17077         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
17078         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
17079         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
17080         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
17081         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
17082         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
17083         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
17084         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
17085         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
17086
17087         do most of the work to convert our code over to use
17088         System.ComponentModel.Component.Events for
17089         adding/removing/dispatching events.
17090
17091
17092 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
17093
17094         * DataGridView.cs: Fix an ArgumentNullException reported 
17095         twice today in IRC.
17096
17097 2006-11-30  Mike Kestner  <mkestner@novell.com>
17098
17099         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
17100         grabbed listbox.  Fixes #80036 and #80101.
17101
17102 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
17103
17104         * Message.cs: Changed ToString() to match MS.
17105         
17106 2006-11-30  Jackson Harper  <jackson@ximian.com>
17107
17108         * TextBoxBase.cs: You can still change the selected text on a read
17109         only textbox.
17110         * TextControl.cs: Lower magic number for wrap calculations. This
17111         lets text get closer to the right (far) edge.
17112
17113 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
17114
17115         * Control.cs: Tweak 2.0 layout properties.
17116         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
17117         * TextRenderer.cs: Add a new overload.
17118         * ToolStrip*: Huge amount of changes and new features.
17119
17120 2006-11-30  Mike Kestner  <mkestner@novell.com>
17121
17122         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
17123         scroll range correct.  Fixes #79994.
17124
17125 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
17126
17127         * MdiWindowManager.cs: Update main form's text when
17128         a form is closed. (fixes #80038)
17129         
17130 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
17131
17132         * ToolBar.cs:
17133         - Fix an regression in ButtonSize.
17134         - Get ImeMode default value change to "Disable".
17135         - Get ShowTooltips default value change to true, default value is 
17136         "false" but after make a test in .NET we get "true" result as default.
17137         
17138 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
17139
17140         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
17141
17142 2006-11-29  Chris Toshok  <toshok@ximian.com>
17143
17144         * XplatUIWin32.cs (GetWindowTransparency): check return value of
17145         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
17146         SetWindowTransparency hasn't been called.
17147
17148 2006-11-29  Chris Toshok  <toshok@ximian.com>
17149
17150         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
17151         if it's supported.
17152         (set_AllowTransparency): reorder things a little so that the
17153         WS_EX_LAYERED style is removed properly.
17154
17155 2006-11-29  Chris Toshok  <toshok@ximian.com>
17156
17157         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
17158         
17159         * Form.cs: only call the XplatUI transparency method (get/set) if
17160         SupportsTransparency says it's supported. Otherwise fallback to
17161         doing nothing (in the set case) or returning the instance field we
17162         cache (in the get case).
17163
17164         * XplatUIStructs.cs: add TransparencySupport flag enum.
17165         
17166         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
17167         change to SupportsTransparency.
17168
17169         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
17170         TransparencySupport.None from SupportsTransparency.
17171
17172         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
17173         TransparencySupport.Set from SupportsTransparency.
17174
17175         * XplatUIWin32.cs: implement GetWindowTransparency calling
17176         GetLayeredWindowAttributes, and implement SupportsTransparency by
17177         checking whether or not both
17178         GetWindowTransparency/SetWindowTransparency are available
17179         entrypoints.  We need to do this since SetWindowTransparency is
17180         available as of win2k, but GetWindowTransparency requires winxp.
17181         yay win32 api.
17182
17183         * XplatUI.cs: Add GetWindowTransparency, and change
17184         SupportsTransparency to allow for either/both Get/Set.
17185
17186 2006-11-29  Chris Toshok  <toshok@ximian.com>
17187
17188         * DataGrid.cs: keep from going into an infinite loop redrawing a
17189         datagrid that has no datasource.  Fixes bug #80033.
17190
17191 2006-11-29  Chris Toshok  <toshok@ximian.com>
17192
17193         * MenuItem.cs: fix the NRE when we assign text (and therefore call
17194         Invalidate) before the mainmenu has been assigned to a control.
17195
17196 2006-11-29  Chris Toshok  <toshok@ximian.com>
17197
17198         * DataGrid.cs: detect when we should be double the double click
17199         row/column autosize stuff, although that codepath has yet to be
17200         written.  part of the work for bug #79891.
17201
17202 2006-11-29  Chris Toshok  <toshok@ximian.com>
17203
17204         * Binding.cs (SetControl): fix unit test.
17205
17206 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17207
17208         * PageSetupDialog.cs: Validate the margins and set them in
17209         PageSettings. 
17210         * NumericTextBox.cs: New class to mimic the behavior of the
17211         textboxes used in the printing dialogs.
17212
17213 2006-11-29  Andreia Gaita  <avidigal@novell.com>
17214         
17215         * Form.cs: Revert previous change (remove call UpdateBounds
17216         from form constructor), because it messes with the handle creation
17217         order, and that one needs lots and lots of love.
17218         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
17219         for valid printer and throw InvalidPrinterException if document
17220         is set but printer not valid), adding a MonoTODO. Once 
17221         handle creation is done properly, we can put this back in.
17222
17223 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17224
17225         * MenuItem.cs: Create a invalidate method for menu item, to be
17226         calling from set text, it make text changes to imadiate update
17227         on screen. Fixes #80013. 
17228         
17229 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17230
17231         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
17232         fixes bug #80070 and some other problem on toolbar buttons
17233         layout.
17234
17235 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
17236
17237         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
17238         with dotted brush.      Fixes #79564
17239         
17240 2006-11-28  Andreia Gaita  <avidigal@novell.com>
17241
17242         * Form.cs: Removed call to UpdateBounds on Form
17243         constructor, it was causing a call to CreateHandle
17244         before it was supposed to.
17245         * PrintControllerWithStatusDialog: Applied patch
17246         by Chris Toshok to hide controller when there are
17247         no printers available.
17248         PrintDialog.cs: initialize printer settings to 
17249         null - correct DefaultValues test #5
17250         * PrintPreviewControl.cs: Move PrintController
17251         initialization to GeneratePreview
17252         * PrintPreviewDialog.cs: 
17253         - Remove Preview generation     from Document_set(). It is 
17254         called on OnPaint
17255         - Throw InvalidPrinterException on CreateHandle if
17256         a Document is set but there are no printers or 
17257         printer is not valid.
17258         * ThemeWin32Classic: don't paint PrintPreviewControl
17259         if there is nothing to paint    
17260
17261 2006-11-28  Miguel de Icaza  <miguel@novell.com>
17262
17263         * Form.cs: Add another popular method.
17264
17265         * TabPage.cs: ditto.
17266
17267 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17268
17269         * MenuItem.cs: Fixed a warning.
17270         * InternalWindowManager: Fixed a warning.
17271
17272 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17273
17274         * MenuItem.cs:
17275         - When cloning a menu also clone MdiList and clone the 
17276           window menu items properly (as the forms and menuitems
17277           are kept in an internal hashtable, these need updating 
17278           as well)
17279         - Rewrote the window menu code, menu items are added in the
17280           order the forms were added to their parent, and they are
17281           updated every time the window menu is shown (before the
17282           list was only generated once, in the current order of the
17283           forms, and would never be updated). A checkmark is shown
17284           next to the item corresponding to the active mdi child.
17285
17286 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17287
17288         * XplatUIStructs.cs: 
17289         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
17290         
17291         * XplatUIWin32.cs: 
17292         - Added TME_NONCLIENT to TMEFlags.
17293         - Handles WM_NCMOUSEMOVE in GetMessage to 
17294           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
17295
17296         * MdiWindowManager:
17297         - Now merges mdi child menu to parent menu when maximized.
17298         - Recalculate NC areas of both mdi child and mdi parent. 
17299           Fixes #79757 (4).
17300           on window state and size changes.Fixes #79844 (3).
17301         - Handle WM_NCCALCSIZE to properly calculate borders.
17302
17303         * Form.cs:
17304         - Add/remove to the mdi containers list of mdi children 
17305           in the order they are added.
17306         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
17307           to the maximized mdi child.
17308         
17309         * InternalWindowManager.cs:
17310         - Only execute a click on the control buttons on the mouse up,
17311           not on the mouse down. Show the state of the button 
17312           (was only showing Normal state, never Pressed state). The
17313           pressed button now follows the mouse (if you click the Close 
17314           button and move the mouse over the Maximize button, the 
17315           Maximize button will be shown as pressed). Since Win32 does
17316           not generate WM_NCLBUTTONUP if you release the button outside
17317           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
17318           it as a mouse up.
17319         
17320         * ThemeWin32Classic.cs:
17321         - Draw a missing border around mdi child forms. Fixes #79844 (2).
17322
17323         * MdiClient.cs:
17324         - Added a list of forms which contains the order the forms are
17325           added to the mdi parent.
17326         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
17327         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
17328         - If the active form changes set the scrollbars to the top
17329           of the Z order, otherwise the form could hide them.
17330         - Scrollbars are now sized according to ClientSize, not 
17331           to Size, and they take into account the other scrollbar
17332           to determine maximum.
17333         
17334 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
17335         
17336         * XplatUI.cs:
17337         * XplatUIDriver.cs:
17338         * XplatUIX11.cs:
17339         * XplatUIWin32.cs:
17340         * XplatUIOSX.cs:
17341         - Added RequestAdditionalWM_NCMessages for windows to 
17342           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
17343           Currently only implemented in XplatUIWin32.
17344
17345 2006-11-27  Chris Toshok  <toshok@ximian.com>
17346
17347         * Hwnd.cs: only add the hwnd to the windows hash in
17348         set_WholeWindow and set_ClientWindow if whole_window/client_window
17349         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
17350
17351 2006-11-27  Mike Kestner  <mkestner@novell.com>
17352
17353         * ComboBox.cs: remove redundant OnDropDown call.  It is called
17354         from the ComboListBox.ShowWindow code. Fixes #79969.
17355
17356 2006-11-27  Chris Toshok  <toshok@ximian.com>
17357
17358         * Hwnd.cs: remove the setters for ExposePending and
17359         NCExposePending - noone uses them.
17360
17361 2006-11-27  Jackson Harper  <jackson@ximian.com>
17362
17363         * TextControl.cs: new param for ReplaceSelection which determines
17364         whether we select the new selection, or set the cursor to the end
17365         of the new selection.
17366         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
17367         pasting, select the new text.
17368         * RichTextBox.cs: Use new param for ReplaceSelection.
17369
17370 2006-11-27  Jackson Harper  <jackson@ximian.com>
17371
17372         * TextBoxBase.cs: Set the selection to the caret after the caret
17373         is moved, otherwise they get out of sync.
17374
17375 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
17376
17377         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
17378         it fixes #80015
17379
17380 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
17381
17382         * ThemeWin32Classic.cs: 
17383         - Fix toolbar drop down arrow position.
17384         - Fix drop down appearance when ToolBar.Appearance is normal,
17385         it fixes #80018.
17386         
17387 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
17388
17389         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
17390         * Control.cs: Same.
17391         * UpDownBase.cs: Same.
17392         * ButtonBase.cs: Same.
17393         * ScrollBar.cs: Same.
17394         * TrackBar.cs: Same.
17395         * PictureBox.cs: Same.
17396         * UserControl.cs: Same.
17397         * Label.cs: Same.
17398         * ListControl.cs: Same.
17399         * TextBoxBase.cs: Same.
17400         * ListView.cs: Same.
17401         * RichTextBox.cs: Same.
17402         * TreeView.cs: Same.
17403
17404 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
17405
17406         * PrintDialog.cs:
17407         - Text label for where 
17408         - Text label comment was not shown
17409
17410 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
17411
17412         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
17413
17414 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17415
17416         * InternalWindowManager.cs: 
17417         - Handle WM_PARENTNOTIFY to activate the form
17418         if any child control is clicked.
17419         - The form is only sizable if not minimized.
17420
17421         * MdiWindowManager.cs:
17422         - Save the IconicBounds if the form is moved.
17423         - Rework SetWindowState, now the window bounds 
17424         are stored only if the old window state is Normal.
17425         
17426         * MdiClient.cs:
17427         - In SetWindowStates store the old window state if 
17428         the window is maximized and restore window state if
17429         the window looses focus.
17430         - Don't handle any scrollbar value changes if 
17431         initializing the scroll bars. Fixes #79771.
17432         - Reworked ArrangeIconicWindows. Current algorithm
17433         tests bounds agains all other minimized windows, if
17434         any intersections create new bounds (going left to 
17435         right, bottom to top) and then test again. When 
17436         successful the bounds are saved and never computed
17437         again. Fixes #79774.
17438
17439 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17440
17441         * InternalWindowManager.cs: Added HandleTitleBarUp.
17442
17443 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17444
17445         * NumericUpDown.cs: In .NET 1.1, user entered text is still
17446         hexadecimal in ParseUserEdit.
17447
17448         
17449 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
17450
17451         * MdiWindowManager.cs: 
17452         - Handle a click on the form's icon to show the 
17453         system menu (when maximized). Fixes #79775.
17454         - Change the existing click handler for the form's
17455         icon when not maximized to show on MouseUp.
17456         Fixes #79776.
17457
17458         * Form.cs: In OnResize only layout the mdi child's
17459         parent if it actually has a parent. Might not if
17460         the window is closing.
17461
17462
17463 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17464
17465         * MdiClient.cs: Ignore active MDI client for text of parent, if
17466         child has no text set.
17467
17468 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
17469
17470         * ToolBar.cs: Fixed ToString to match MS.
17471
17472 2006-11-22  Andreia Gaita  <avidigal@novell.com>
17473
17474         * NumericUpDown: 
17475         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
17476         update inner values on set. Fixes #79966.
17477         - Override OnLostFocus to update value on NET 2. Fixes #79950.
17478         - Fix hexadecimal parsing.
17479         
17480         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
17481         parent. Fixes #79957
17482
17483 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17484
17485         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
17486         the actual size has to be queried, since if height /
17487         width is negative Win32 changes it to 0. 
17488         Fixes #79999 on Windows.
17489         
17490         * XplatUIX11.cs: Set height / width to 0 if negative
17491         in SetWindowPos. Fixes #79999 on Linux.
17492         
17493 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
17494
17495         * ThemeWin32Classic.cs: Fix text redenring when button is
17496         pressed.
17497
17498 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
17499
17500         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
17501         and later navigate by mouse. Fixes #79528.
17502
17503 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
17504
17505         * ToolBar.cs: Set default value for TabStop to false in
17506         constructor, it fixes remaining behavior of bug #79863.
17507
17508 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17509
17510         * MdiWindowManager.cs:
17511         * InternalWindowManager.cs:
17512         - Moved a few methods specific to Mdi from 
17513         InternalWindowManager to MdiWindowManager.
17514         Fixes #79996.
17515         
17516 2006-11-21  Chris Toshok  <toshok@ximian.com>
17517
17518         * XplatUIOSX.cs: stub out InvalidateNC.
17519
17520         * XplatUIWin32.cs: implement InvalidateNC using the call I found
17521         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
17522
17523         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
17524
17525         * XplatUIDriver.cs: add InvalidateNC abstract method.
17526
17527         * XplatUI.cs: add InvalidateNC.
17528
17529 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
17530
17531         * ToolBar.cs: Invalidate complete button area when pressed status 
17532         was changed.
17533         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
17534         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
17535         by 1 when button is pressed.
17536
17537 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
17538
17539         * ToolButton.cs: Invalidate middle of DropDown button when
17540         ToolBar theres DropDownArrows.
17541         * ThemeWin32Classic.cs: Change position of DropDown arrow and
17542         fix DropDown drawing operations.
17543
17544 2006-11-20  Chris Toshok  <toshok@ximian.com>
17545
17546         * NativeWindow.cs: fix the formatting of functions ('{' on the
17547         following line), and enable the thread exception dialog.
17548
17549         * Application.cs: remove the duplicate exception catching from
17550         here.
17551
17552 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
17553
17554         * Toolbar.cs: Triggers button click event when click on icon
17555         of dropdown ToolBarButton. Fixes #79912.
17556         
17557 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17558
17559         * Theme.cs:
17560         * ThemeWin32Classic.cs:
17561         - Added a property WindowBorderFont to enable themeing
17562           of mdi child windows' Text.
17563           
17564 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17565
17566         * InternalWindowManager.cs:
17567         * Form.cs:
17568         * MdiClient.cs:
17569         * MdiWindowManager.cs: 
17570         - If mdi child is maximized, set mdi parent's
17571           text to "Parent - [Child]". Fixes #79770.
17572         - If there is any maximized mdi child windows, only the active 
17573           window (and any new windows) is maximized, the rest are normal.
17574         - On a WindowState change only save mdi child's window bounds 
17575           if the old window state was normal. Fixes #79774.
17576         - The scroll bars are now calculated on hopefully all
17577           necessary events. Fixed #79771 / #79844->6 / #79906.
17578         - MdiClient.SizeScrollBars() now takes into account docked 
17579           controls in the parent when calculating available space.
17580         - InternalWindowManager now always repaints the entire title
17581           area. Fixes #79844->1/4/5.
17582         - Added RequestNCRecalc on mdi child windowstate changes.
17583           Fixes #79772.
17584
17585 2006-11-20  Mike Kestner  <mkestner@novell.com>
17586
17587         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
17588         in the MouseUp handler of the listbox and move the return handling
17589         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
17590
17591 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
17592
17593         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
17594
17595 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
17596
17597         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
17598           working in 1.2.x anymore. So, updated.
17599
17600 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
17601
17602         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
17603         NumberGroupSeparator of current culture instead of assuming en-US.
17604         Fixed bug #79967.
17605
17606 2006-11-17  Mike Kestner  <mkestner@novell.com>
17607
17608         * Control.cs: Add the concept of implicit bounds setting so that
17609         dock/undock round trips preserve explicitly set size/locations.
17610         Fixes #79313.
17611
17612 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
17613
17614         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
17615           can't handle those filters. (Fixes bug #79961)
17616
17617 2006-11-17  Chris Toshok  <toshok@ximian.com>
17618
17619         [ fixes the exit/crashes associated with #79835.  it's clearly
17620         suboptimal though, we need to figure out a better way to solve
17621         this. ]
17622         
17623         * PrintPreviewControl.cs: deal with the new invalid printer
17624         exceptions.
17625
17626         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
17627         and return false (so CommonDialog.ShowDialog doesn't actually show
17628         the form.)
17629
17630         * PrintDialog.cs: enable/disable the Ok button depending on
17631         whether or not the printer is valid.
17632
17633         * CommonDialog.cs (ShowDialog): only actually show the form if
17634         RunDialog returns true.
17635
17636 2006-11-17  Jackson Harper  <jackson@ximian.com>
17637
17638         * TextControl.cs: When soft splitting a line, mark it as a soft
17639         split line. Also carry over the current line break to the next
17640         line.
17641
17642 2006-11-17  Chris Toshok  <toshok@ximian.com>
17643
17644         * XplatUIX11.cs: when scrolling a window with an invalid area, we
17645         only want to shift the part of the invalid area that overlaps the
17646         area we're scrolling.  we also don't want to clear the invalid
17647         area unless the invalid area was entirely contained within the
17648         scrolling area.
17649
17650 2006-11-16  Chris Toshok  <toshok@ximian.com>
17651
17652         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
17653         also make sure to free the memory returned by XGetWindowProperty
17654         in GetText().
17655
17656         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
17657
17658 2006-11-16  Chris Toshok  <toshok@ximian.com>
17659
17660         * XplatUI.cs: add a new super secret way to get at the totally
17661         unsupported X11 backend.
17662
17663 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
17664
17665         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
17666
17667 2006-11-16  Jackson Harper  <jackson@ximian.com>
17668
17669         * TreeView.cs: Allow more explicit setting of top node position
17670         for scrollbars. Slower algo, but more accurate.
17671         - CollapseAll should maintain the current top node.
17672         * TextBoxBase.cs: When positioning the caret, use the line, pos
17673         method, since the x, y method does not grab the correct tag, and
17674         the caret height never gets set correctly. (Maybe I should just do
17675         away with the caret having its own height, and always use the
17676         carets current tag for height).
17677
17678 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
17679
17680         [Fixes 79778, 79923]
17681
17682         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
17683         Parent to the FosterParent instead.
17684
17685 2006-11-16  Jackson Harper  <jackson@ximian.com>
17686
17687         * TreeView.cs: Need to recalc the topnode when we expand or
17688         collapse. The scrolling methods can't handle this on their own,
17689         since they use differences between the last scroll position, and
17690         those difference get completely messed up since we are expanding
17691         nodes.  This problem should probably be fixed in the scrolling
17692         methods, so they can figure out exactly where they are, but this
17693         will slow things down a little.
17694         * ThemeWin32Classic.cs: Special case for groupboxes with empty
17695         strings, makes nunit-gui look a lot nicer.
17696
17697 2006-11-16  Chris Toshok  <toshok@ximian.com>
17698
17699         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
17700         the broken multithreaded event handling we have in here.  File
17701         this entry under "Why we should move to the new X11 backend".
17702
17703         Any thread can make it into UpdateMessageQueue, which gets events
17704         from the X socket - some of which could belong to hwnds being
17705         managed by a different thread.  We can also have multiple threads
17706         in UpdateMessageQueue at the same time, with each one reading from
17707         the X socket.  This leads to many problems, with the following
17708         solutions:
17709
17710         We can't use hwnd.Queue.Enqueue anywhere in here and must use
17711         EnqueueLocked.
17712
17713         The MotionNotify compression we do can't work across threads
17714         (without locking the entire queue, perhaps) since we call
17715         hwnd.Queue.Peek, so we just punt and don't compress motion events
17716         unless the owning thread is the one which got the X event.
17717
17718         ConfigureNotify is another fun one, since it modifies the hwnd's
17719         bounds and then enqueues the event.  We add a lock to Hwnd which
17720         is held when setting configure_pending to true (and enqueuing the
17721         event).
17722
17723         There is a race wrt the wake socket.  we need to make sure that
17724         only 1 thread is waiting on that socket, or else a thread could
17725         sleep waiting for data that never comes.  It's difficult (but not
17726         impossible) to make happen, because it seems to require something
17727         like the following:
17728
17729             1. Thread 1 polls on wake_receive
17730         
17731             2. poll returns saying there's data to be read on
17732                wake_receive.
17733         
17734             3. Thread 2 polls on wake_receive and immediately returns
17735                saying there's data to be read.
17736
17737             4. Thread 2 reads the wakeup byte from wake_receive
17738
17739             5. Thread 1 attempts to read the wakeup byte from
17740                wake_receive.
17741
17742             6. Thread 2 exits (due to a form closing, perhaps).
17743
17744             7. Thread 1 blocks forever.
17745         
17746         Fun, eh?
17747
17748         Fixing the Expose handling isn't done yet, and the races inherent
17749         in that piece of code are responsible for the drawing mistakes you
17750         see when generating expose events in a MT app (like NPlot).  This
17751         one is the likely to be the hardest to bandaid, and it doesn't
17752         appear to cause anything but drawing problems.  The other issues
17753         caused apps to exit or hang.
17754
17755         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
17756         called from a different thread than the one that should be calling
17757         these functions.
17758
17759         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
17760
17761 2006-11-15  Chris Toshok  <toshok@ximian.com>
17762
17763         * Application.cs: null out the context's MainForm when we exit
17764         RunLoop.  Fixes a newly checked in unit test as well as the last
17765         ODE from bug #79933.
17766
17767 2006-11-15  Chris Toshok  <toshok@ximian.com>
17768
17769         * Form.cs (set_Owner): allow a null value so we can clear the
17770         form's owner.
17771         (Dispose): set all our owned_form's Owner properties to null, and
17772         clear the owned_forms collection.
17773         (WM_CLOSE): clean up this a little bit.. still not right though.
17774
17775         * ApplicationContext.cs: OnMainFormClosed should only call
17776         ExitThreadCore if the main form isn't recreating.  Fixes unit
17777         test.
17778
17779 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
17780
17781         [Fixes 78346]
17782
17783         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
17784
17785 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
17786
17787         [Fixes 79433]
17788
17789         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
17790         keep popup window types from stealing focus from the main form
17791         on Windows.
17792
17793         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
17794
17795         * MenuAPI.cs: Set above flag to true.
17796
17797 2006-11-15  Chris Toshok  <toshok@ximian.com>
17798
17799         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
17800         the button being released is not in wParam.
17801
17802 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
17803
17804         * Form.cs: Add the released button to MouseEventArgs.Button
17805         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
17806         on Win32.
17807
17808 2006-11-15  Chris Toshok  <toshok@ximian.com>
17809
17810         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
17811         GetText().  untested because it's unused in our implementation.
17812         Control.Text always caches the text, even if
17813         ControlStyles.CacheText is not set.
17814
17815         fixes bug #79939.
17816
17817 2006-11-15  Chris Toshok  <toshok@ximian.com>
17818
17819         [ fixes #79933 ]
17820         
17821         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
17822         message.  no hiding, no disposing.
17823
17824         in the WM_CLOSE handler, hide the form if it's modal.
17825
17826 2006-11-15  Chris Toshok  <toshok@ximian.com>
17827
17828         * XplatUIX11.cs: use AddExpose instead of sending a message.
17829         fixes textbox border drawing.
17830
17831 2006-11-15  Chris Toshok  <toshok@ximian.com>
17832
17833         * PropertyGridView.cs: keep from crashing on mouse move/down when
17834         the property grid is empty.
17835
17836 2006-11-14  Jackson Harper  <jackson@ximian.com>
17837
17838         * TextControl.cs: Make PageUp and PageDown more like the MS
17839         versions.
17840         * TextBoxBase.cs: When we set the text property position the
17841         cursor at the beginning of the document.
17842
17843 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17844
17845         * Form.cs: if a mdi child's WindowState has changed
17846         before it's creation, it would display wrong control
17847         buttons.
17848         
17849 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
17850
17851         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
17852           (Fixes bug #79927)
17853
17854 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17855
17856         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
17857         the window gets to paint its borders even if the window is
17858         getting smaller.
17859         
17860         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
17861         otherwise the old control buttons would still be painted 
17862         if the window gets bigger.
17863         
17864         * PaintEventArgs.cs: add an internal method so that the clip 
17865         rectangle can be changed.
17866         
17867 2006-11-13  Chris Toshok  <toshok@ximian.com>
17868
17869         [ fixes bug #79745 ]
17870         
17871         * NotifyIcon.cs: lots of cleanup.
17872
17873         * X11Structs.cs: add an enum for XEMBED messages.
17874
17875         * XplatUIX11.cs: reindent one of the giant switch statements, it
17876         was taking up an additional tab stop, and this file is already way
17877         too wide for my laptop's screen.
17878
17879         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
17880         we get it, resize the hwnd to the WMNormalHints max_width/height.
17881
17882 2006-11-13  Jackson Harper  <jackson@ximian.com>
17883
17884         * TextBoxBase.cs: Compute the value changes for the mouse wheel
17885         teh simple way.
17886
17887 2006-11-13  Chris Toshok  <toshok@ximian.com>
17888
17889         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
17890         #79898.  force a reference to the Region to stick around so the
17891         unmanaged object isn't collected (rendering our handle in the MSG
17892         stale).
17893
17894 2006-11-13  Chris Toshok  <toshok@ximian.com>
17895
17896         * XplatUIX11.cs: fix #79917 for window managers which support
17897
17898         using XStoreName on the raw utf8, and we need to convert to
17899         COMPOUND_TEXT if it's non-latin1.
17900
17901 2006-11-13  Chris Toshok  <toshok@ximian.com>
17902
17903         * Form.cs (set_DialogResult): we need to set closing to false if
17904         we're setting our result to None.  fixes bug #79908.
17905
17906 2006-11-13  Jackson Harper  <jackson@ximian.com>
17907
17908         * TextControl.cs: When formatting text, compute the adjusted tag
17909         lengths correctly, using FindTag for the end tag instead of trying
17910         to figure it out outselves.
17911         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
17912         the item, ItemHeight doesn't work, because trees with large
17913         imagelists use those for their height
17914         * TreeView.cs: ActualItemHeight factors in the image height
17915         - compute left edge of checkboxes correctly
17916         - when expanding/collapsing move the bottom down one pixel, so we
17917         aren't moving part of the node
17918
17919 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17920
17921         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
17922         stack in PaintEventStart so that it won't get disposed by the gc
17923         before reaching PaintEventEnd.
17924
17925 2006-11-13  Jackson Harper  <jackson@ximian.com>
17926
17927         * TextBoxBase.cs: Don't select the word if we are on a line with
17928         no text.
17929         - We don't need to position the caret on mouse up, since the mouse
17930         move handler should be doing this
17931         - When double clicking a blank line, the caret is advanced to the
17932         next line.
17933
17934 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
17935
17936         * TreeNodeCollection.cs: Avoid duplicating indexer code.
17937
17938 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
17939
17940         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
17941         Fixes part of bug #79910.
17942
17943 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
17944
17945         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
17946           (bug #79903). Some minor string updates to match ms.
17947
17948 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
17949
17950         * FileDialog.cs: Don't add an extension if the filename
17951           already ends with that extension.
17952
17953 2006-11-10  Jackson Harper  <jackson@ximian.com>
17954
17955         * TreeView.cs: Use the currently highlighted node for the
17956         BeforeSelect event.
17957         * TextBoxBase.cs: There is no need to expand selection on
17958         MouseMove.
17959         - CanUndo means 'is there any undo operations', not 'is undo
17960         allowed on this textcontrol. Fixed ClearUndo unit test.
17961
17962 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
17963
17964         * Button.cs: only perform click when button is Selectable (so as 
17965         not to activate default buttons when they're disabled)
17966         
17967         * Control.cs: Rewrite of the SelectNextControl and related 
17968         methods. HandleClick now selects next control if the current one
17969         is being disabled.
17970         
17971         * Form.cs: OnActivated selects next active control only if Load 
17972         has already occurred. If Load hasn't run, there's no point in 
17973         selecting here, Load might change the state of controls.
17974         
17975         * FocusTest.cs: Tests marked as working again for these fixes
17976
17977 2006-11-10  Chris Toshok  <toshok@ximian.com>
17978
17979         * XplatUIX11.cs: a couple of fixes.
17980
17981         - use XInternAtoms with almost all the atoms we need to register,
17982         instead of many, many calls to XInternAtom.  should help a bit on
17983         startup time, at the expense of making the code look a little
17984         worse.
17985
17986         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
17987         isn't reparented (which seems to be a clue that we're running fon
17988         compiz) and they have an Owner form.  This fixes the tool windows
17989         in paint.net when running under compiz.
17990
17991         - when setting the opacity of a window, support both the case
17992         where the window has been reparented and also when it hasn't been.
17993         Since compiz/beryl doesn't seem to reparent windows, and these are
17994         the only window managers which support translucency, I'm not sure
17995         why we need the hwnd.reparented case at all.. but leave it in.
17996         now we get translucent windows in paint.net under compiz/beryl.
17997
17998 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
17999
18000         * FileDialog.cs: Always return the value for FilterIndex that
18001           was set. Internally convert it to values that make sense.
18002
18003 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
18004         
18005         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
18006
18007 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
18008
18009         * Toolbar.cs: Change default value of DropDownArrows to true, the 
18010         signature still using false to make it compatible with MS but the 
18011         initial value is true. Fixes #79855.
18012
18013 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
18014
18015         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
18016           only available on Linux.
18017
18018 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
18019
18020         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
18021         reduce number of calls to redraw method during toolbar creation.
18022
18023 2006-11-09  Mike Kestner  <mkestner@novell.com>
18024
18025         * ListView.cs : raise SelectedIndexChanged when an item is selected
18026         programmatically via the Item.Selected property.  Gert's nice 
18027         ListViewSelectedIndexChanged test fixture now runs clean.
18028
18029 2006-11-09  Mike Kestner  <mkestner@novell.com>
18030
18031         * ListView.cs : raise SelectedIndexChanged when a selected item is
18032         removed from the item collection using Remove or RemoveAt.
18033
18034 2006-11-09  Mike Kestner  <mkestner@novell.com>
18035
18036         * ListView.cs : raise SelectedIndexChanged once per selected item
18037         for compat with MS.  Fixes #79849+.
18038
18039 2006-11-09  Chris Toshok  <toshok@ximian.com>
18040
18041         * TabControl.cs: initialize row_count to 0, and set it to 1 when
18042         we need to (if we have any tab pages).  Fixes unit test.
18043
18044 2006-11-09  Chris Toshok  <toshok@ximian.com>
18045
18046         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
18047         width is 0, not 3.  Fixes a unit test.
18048
18049 2006-11-09  Mike Kestner  <mkestner@novell.com>
18050
18051         * ListView.cs : use Implicit scrollbars so that focus isn't 
18052         stolen from the listview when they are clicked. Fixes #79850.
18053
18054 2006-11-09  Chris Toshok  <toshok@ximian.com>
18055
18056         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
18057         have a root item.  Fixes #79879.
18058
18059 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
18060
18061         * FileDialog.cs:
18062           - Fix ToString ()
18063           - An ArgumentException is now thrown if a wrong filter
18064             is applied (matches ms). The previous filter doesn't change
18065             anymore if an exception is thrown.
18066           - Changing the FileName property also affects FileNames
18067         * ColorDialog.cs: The length of the CustomColors array is always
18068           16. It doesn't matter if we use a smaller array or null to update
18069           or change the custom colors property.
18070         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
18071           for RootFolder if we get a undefined value.
18072
18073 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18074
18075         * StatusBarPanel.cs: 
18076         - Width is set to MinWidth if Width is smaller than
18077         MinWidth. Fixes #79842.
18078         - MinWidth now always overrides Width (MSDN says MinWidth
18079         is set to Width when AutoSize = None, but they do not 
18080         behave like that).
18081         - Style has now the the correct default value.
18082         
18083 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18084  
18085         * TrackBar.cs: 
18086         - The control is completely invalidated on 
18087         Got/LostFocus to draw the focus rectangle correctly.
18088         - When AutoSize then height is always 45 (width for 
18089         vertical controls).
18090         
18091         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
18092         on the mouse when moved and it doesn't move when grabbed
18093         until the mouse moves as well. Also fixed some wrong 
18094         calculations when clicking on the thumb (control thought
18095         click was outside of thumb and didn't grab it).
18096         Fixes some of the issues in #79718.
18097
18098 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
18099
18100         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
18101
18102 2006-11-08  Chris Toshok  <toshok@ximian.com>
18103
18104         * PropertyGridView.cs: only call ToggleValue if the item is not
18105         readonly.
18106
18107 2006-11-08  Jackson Harper  <jackson@ximian.com>
18108
18109         * TextBoxBase.cs: The RichTextBox and textbox have very different
18110         word selection methods.  Implement the textbox's simple word
18111         selection here, and let the RichTextBox override and provide it's
18112         own.
18113         - Don't do extra selection on mouseup
18114         * RichTextBox.cs: Use the documents word selection algorithm, I
18115         think ideally, this function will be pulled into the
18116         RichTextBox.cs code someday.
18117
18118 2006-11-08  Chris Toshok  <toshok@ximian.com>
18119
18120         * RootGridEntry.cs: new class to represent GridItemType.Root.
18121
18122         * CategoryGridEntry.cs: reformat, and add boilerplate.
18123         
18124         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
18125         returns the UI parent anyway, and we need special handling to
18126         implement the GetTarget method in the face of it.  Also, implement
18127         Select().
18128
18129         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
18130         a root grid item, and use that instead of PropertyGrid.grid_items.
18131         Also, make use of TypeConverters (and add limitted support for
18132         ICustomTypeDescriptors) when initially populating the grid.
18133         Arrays now show up more or less properly.
18134
18135 2006-11-08  Chris Toshok  <toshok@ximian.com>
18136
18137         * Application.cs: set the modal dialog to non modal after we close
18138         it.  Fixes bug #79866.
18139
18140 2006-11-08  Jackson Harper  <jackson@ximian.com>
18141
18142         * TextControl.cs: When combining lines carry over the line end
18143         style from the end line.
18144         - Invalidate the selected area when setting it, if it is visible.
18145         * TextBoxBase.cs: Only rich text box can do full line selects.
18146         - Make sure to set the cursor position when there is a click,
18147         otherwise two clicks in separate areas could cause a large chunk
18148         to be selected.
18149
18150 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18151
18152         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
18153         Fixes #79863.
18154
18155 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18156
18157         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
18158         time. Remove tooltips when ToolButton click events.  Fixes #79856.
18159
18160 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18161
18162         * MenuAPI.cs: Ignore right click for menu actions and fixes
18163         menu border when clicked.  Fixes #79846.
18164
18165 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18166
18167         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
18168         MouseState after create wParam for message, this fixes mouse button 
18169         equal none in mouse up events.
18170         
18171 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
18172
18173         * Control.cs : Focus() now calls Select to set the Container's
18174         Active Control and to give it focus. To avoid infinite recursion
18175         (because ActiveControl also calls Focus at one point), a check 
18176         is made in Focus with the help of a new internal variable
18177         is_focusing.
18178
18179 2006-11-07  Mike Kestner  <mkestner@novell.com>
18180
18181         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
18182         if there's a selection.  Fixes #79849.
18183
18184 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
18185
18186         * PropertyGrid.cs: Avoid fixed height of help description label.
18187         Fixes part of bug #79829.
18188
18189 2006-11-07  Chris Toshok  <toshok@ximian.com>
18190
18191         * XplatUIX11.cs: fix #79790 again, by using the
18192         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
18193
18194 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18195
18196         * ToolBar.cs: Fix left click checking.
18197
18198 2006-11-07  Chris Toshok  <toshok@ximian.com>
18199
18200         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
18201
18202 2006-11-07  Chris Toshok  <toshok@ximian.com>
18203
18204         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
18205         PropertyManager unit tests.
18206
18207         * PropertyManager.cs: make property_name internal.
18208
18209 2006-11-07  Chris Toshok  <toshok@ximian.com>
18210
18211         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
18212         pass a unit test.  Also, don't set image_index to anything in
18213         response to setting the ImageList property.
18214
18215 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
18216
18217         * ToolBar.cs: Ignore click events when mouse button is not a
18218         left button, only accepts other button for dropdown menus.  
18219         Fixes #79854.
18220
18221 2006-11-07  Chris Toshok  <toshok@ximian.com>
18222
18223         * DataGrid.cs: make the back and parent row buttons a little less
18224         ugly.
18225
18226 2006-11-07  Jackson Harper  <jackson@ximian.com>
18227
18228         * TextBoxBase.cs: When converting to Text don't put line breaks in
18229         for soft line breaks.
18230         * TextControl.cs: There is an initial "fake" line in the document,
18231         this is now a soft break line, so that an extra line feed doesn't
18232         get added to the end of documents.
18233
18234 2006-11-07  Chris Toshok  <toshok@ximian.com>
18235
18236         [ fix bug #79778 ]
18237         
18238         * CurrencyManager.cs: if the list is readonly, don't bother
18239         checking if IBindingList.AllowNew is true.
18240
18241         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
18242         for non-DataRowView datasources..  or rather, make it not crash.
18243         (DataGridPaintRelationRow): make sure we limit the row painting to
18244         the area not covered by the row header, and make our cell width at
18245         least large enough to cover the relation area.  This allows grids
18246         that have relations but no rows to render correctly.
18247         (DataGridPaintRowContents): same type of changes here.
18248         (SetDataSource): move back to always calling
18249         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
18250         navigating back through relations.
18251         (HitTest): handle the case where we have no cells but have
18252         relations.  Right now we generate a hit in cell 0 of whatever the
18253         row is, not sure if this is strictly correct, but it works for our
18254         purposes.
18255         
18256         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
18257         bother doing anything.
18258
18259 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
18260
18261         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
18262         early version of StatusStrip.  Not responsible for eaten
18263         application or firstborn children.
18264
18265 2006-11-06  Chris Toshok  <toshok@ximian.com>
18266
18267         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
18268         call GetTabRect with a -1 index.  Fixes #79847.
18269
18270 2006-11-06  Jackson Harper  <jackson@ximian.com>
18271
18272         * TreeNodeCollection.cs: Update scrollbars after clearing.
18273
18274 2006-11-06  Chris Toshok  <toshok@ximian.com>
18275
18276         * NumericUpDown.cs: fix the ToString method for some unit test
18277         love.
18278
18279 2006-11-06  Chris Toshok  <toshok@ximian.com>
18280
18281         * PropertyGrid.cs:
18282         - set the initial SelectedGridItem if we can.
18283
18284         - Exclude non-mergable properties only if we're merging > 1
18285         object.  Merging 1 object isn't really merging, obviously.
18286
18287         - Handle PropertySort.NoSort just like Alphabetical, which is
18288         wrong of course, but at least gets things on the screen.
18289         
18290         * PropertyGridView.cs:
18291         - Add method "FindFirstItem" which finds the first property grid
18292         item, so we can select it by default.
18293
18294         - make use of GridEntry.CanResetValue.
18295
18296         - Don't call RedrawBelowItemOnExpansion here anymore, the
18297         individual GridEntry's will do that.
18298
18299         - Remove the ITypeDescriptorContextImpl internal class.
18300         
18301         * GridEntry.cs:
18302         - this class needs to implement ITypeDescriptorContext, as it's
18303         what MS's PropertyDescriptorGridEntry does, which means we can
18304         remove the ITypeDescriptorContextImpl internal class from
18305         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
18306
18307         - keep a reference to our PropertyGridView, and move the call to
18308         RedrawBelowItemOnExpansion here from PGV.  This means
18309         programmaticly setting Expanded actually does something visible.
18310
18311         - add a CanResetValue() function which takes into account our
18312         possibly multiple "selected_objects" in the merged case.  Shifting
18313         PropertyGridView to use this method fixes another unreported
18314         crasher found running the test for #79829.
18315
18316         - when Top or Bounds is updated, make sure the PropertyGridTextBox
18317         is updated to reflect this.
18318
18319         * CategoryGridEntry.cs: the ctor takes the PGV now.
18320         
18321 2006-11-06  Jackson Harper  <jackson@ximian.com>
18322
18323         * TextControl.cs: These are 1 based.
18324         * TextBoxBase.cs: When setting the selected text, don't change the
18325         selected text tags, this is done by ReplaceText, just position the
18326         cursor at the end of the new text.
18327
18328 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
18329
18330         * ListView.cs: Allow label edit only when, when LabelEdit is
18331           set to true.
18332
18333 2006-11-06  Jackson Harper  <jackson@ximian.com>
18334
18335         * TextControl.cs: If a suitable wrapping position isn't found,
18336         just wrap right in the middle of a word.
18337
18338 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
18339
18340         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
18341           bug #79820.
18342
18343 2006-11-06  Jackson Harper  <jackson@ximian.com>
18344
18345         * TreeView.cs: Can't use the VisibleCount property when setting
18346         scrollbar heights, because this doesn't take into account whether
18347         or not the horz scrollbar just came visible.
18348
18349 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
18350
18351         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
18352         activated.  Fixes #79369, #79832.
18353
18354 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
18355
18356         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
18357           had to remove support for links that point to a directory. FileInfo
18358           returns no usefull information (means, the directory they point to)
18359           for such links. Replaced some empty string ("") with String.Empty.
18360
18361 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
18362
18363         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
18364         NullReferenceException when attempting to remove node that is not in
18365         collection. Throw NullReferenceException when null is passed to 
18366         Remove. Allow first element of the collection to be removed. Fixes
18367         bug #79831.  In GetEnumerator ().Current return null if positioned 
18368         before the first element of the collection. In GetEnumerator ().Reset,
18369         position before first element of the collection.
18370
18371 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
18372
18373         * PropertyGrid.cs: To match MS, remove default title and description
18374         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
18375         buttons.
18376
18377 2006-11-04  Chris Toshok  <toshok@ximian.com>
18378
18379         * Theme.cs: add a Clamp method, just for kicks.
18380
18381         * ThemeWin32Classic.cs: clamp all color components to [0..255].
18382
18383 2006-11-04  Chris Toshok  <toshok@ximian.com>
18384
18385         * Form.cs: if the form isn't visible, Close() does nothing.
18386
18387 2006-11-03  Chris Toshok  <toshok@ximian.com>
18388
18389         * Form.cs (Close): if the form is modal, don't Dispose of it, only
18390         Hide it.
18391         (WndProc): don't Dispose after handling the WM_CLOSE message.
18392
18393         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
18394         them as such, instead of using casts from Control to Form.  Also,
18395         don't Dispose of the modal dialog when we fall out of the loop -
18396         Close() it instead.
18397
18398         fixes bug #79813.
18399
18400 2006-11-03  Chris Toshok  <toshok@ximian.com>
18401
18402         * Control.cs (Dispose): only go through the dispose thing if we're
18403         @disposing, and we haven't already been disposed.  Fixes bug
18404         #79814.
18405
18406         * Form.cs: no reason to call "base.Dispose()" here instead of
18407         "Dispose()".
18408
18409 2006-11-03  Mike Kestner  <mkestner@novell.com>
18410
18411         * ComboBox.cs : use ToString instead of casts in AddItem for
18412         sorting functionality.  Fixes #79812.
18413
18414 2006-11-03  Chris Toshok  <toshok@ximian.com>
18415
18416         * Application.cs: pave the way for actually using the thread
18417         exception dialog.  it's ifdefed out at the moment.
18418
18419 2006-11-03  Chris Toshok  <toshok@ximian.com>
18420
18421         * ThreadExceptionDialog.cs: until we get a better layout, actually
18422         hide the details textbox and label when we shouldn't see them.
18423
18424 2006-11-03  Jackson Harper  <jackson@ximian.com>
18425
18426         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
18427         multiline textboxes anymore.  This method also determines the
18428         width/height of a textboxes canvas area.
18429         - Sorta a revert of the last patch.  For multiline just position
18430         the controls, then bail.  This way the scrollbar width won't be
18431         altered.
18432
18433 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
18434
18435         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
18436         it dont need.  Fixes #79537.
18437
18438 2006-11-02  Jackson Harper  <jackson@ximian.com>
18439
18440         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
18441         send the status after firing the DndOver event.
18442
18443 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18444
18445         * TrackBar.cs: Now orientation only switches height / width if
18446         the control's handle is created (Win32 does it like this). Also 
18447         fixed a typo in ToString() for a test to pass, changed the 
18448         exception thrown in set_LargeChange and set_SmallChange to 
18449         match Win32 behaviour, and added TrackBar tests to the unit 
18450         tests.
18451
18452 2006-11-02  Chris Toshok  <toshok@ximian.com>
18453
18454         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
18455         not _NET_WM_STATE_NO_TASKBAR.
18456
18457 2006-11-02  Jackson Harper  <jackson@ximian.com>
18458
18459         * TextControl.cs: Increment count by one, since in the update view
18460         count - 1 is used.
18461
18462 2006-11-02  Jackson Harper  <jackson@ximian.com>
18463
18464         * TextBoxBase.cs: Use client rectangle not bounds for checking if
18465         the mouse is in the client rectangle (duh).
18466
18467 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18468         
18469         * TrackBar.cs: Fixed trackbar jumping around when clicking
18470         on it - the trackbar was not detecting correctly at which
18471         side of the thumb the click was done. (fixes #79718)
18472
18473 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
18474
18475         * ListBox.cs: scroll visible area when change SelectedIndex to
18476         a non visible area.  Fixes #79481.
18477
18478 2006-11-01  Jackson Harper  <jackson@ximian.com>
18479
18480         * TextControl.cs: When replacing the selection move the selection
18481         start/end/anchor to the end of the new text.
18482
18483 2006-11-01  Jackson Harper  <jackson@ximian.com>
18484
18485         * XplatUIWin32.cs: When setting the parent change the controls
18486         visibility to it's visibility flag, not to it's old parents
18487         visibility (.Visible walks the parent chain).
18488
18489 2006-11-01  Chris Toshok  <toshok@ximian.com>
18490
18491         * XplatUIX11.cs: revert the #79790 fix, as the simple.
18492         XSetTransientForHint fix breaks paint .net's tool windows.  more
18493         work needed for that one.
18494
18495 2006-11-01  Chris Toshok  <toshok@ximian.com>
18496
18497         * ScrollBar.cs: throw ArgumentException instead of Exception in
18498         LargeChange/SmallChange setters.  fixes unit tests.
18499
18500 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
18501
18502         * ContainerControl.cs: reverted rev.67183 (which was itself
18503         a reversion of rev.66853... eh).
18504         
18505         * Control.cs: Fixes Reflector hang by changing Focus() call
18506         to what it was before rev.66643 (calling Select() here sets 
18507         ActiveControl, which in some situations calls back Focus and 
18508         eventually does a stack overflow). Temp fix.    
18509         Changes to GetNextControl() to not look for children to select when
18510         parent cannot be selectable (so it looks for siblings instead)  
18511         
18512 2006-10-31  Mike Kestner  <mkestner@novell.com>
18513
18514         * CheckedListBox.cs : off by one error in returned index from
18515         ObjectCollection.Add.  Fixes #79758.
18516
18517 2006-10-31  Chris Toshok  <toshok@ximian.com>
18518
18519         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
18520         calls for the textbox/spinner, to keep from recursing to the point
18521         where we crash.  Fixes #79760.
18522
18523 2006-10-31  Chris Toshok  <toshok@ximian.com>
18524
18525         * ListControl.cs (set_SelectedValue): don't throw exceptions on
18526         null/"" value, just return.  matches ms's behavior and fixes some
18527         failing tests.
18528
18529 2006-10-31  Chris Toshok  <toshok@ximian.com>
18530
18531         * Control.cs (set_Capture): make a logic a little easier to
18532         follow.
18533
18534         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
18535         if it's being destroyed.  A necessary fix surely, but a bandaid
18536         also, to fix the stuck capture problem in bug #78413.
18537
18538 2006-10-31  Chris Toshok  <toshok@ximian.com>
18539
18540         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
18541         convention of clearing hwnd.ClientRect when we set the
18542         width/height (so it'll be recalculated by Hwnd).
18543
18544 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
18545
18546         * ContainerControl.cs: reversed Contains check from
18547         ActiveControl due to hanging problems. This fix
18548         partly regresses #79667 (button does not have
18549         initial focus), so this might be a symptom for 
18550         a larger parenting problem (set_ActiveControl
18551         is being called but the child control does
18552         not have the parent set yet?)   
18553         
18554 2006-10-31  Mike Kestner  <mkestner@novell.com>
18555
18556         * MenuAPI.cs : fix keynav when menu is click activated.
18557
18558 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
18559
18560         * ToolStrip*: Version 0.2.
18561
18562         * MenuStrip.cs: Version 0.1.
18563
18564         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
18565
18566 2006-10-30  Chris Toshok  <toshok@ximian.com>
18567
18568         [ fixes the oversized notify icon issue in bug #79745 ]
18569         
18570         * NotifyIcon.cs: scale the icon down to the size we're given by
18571         the XplatUI layer (this would be faster if we did it once instead
18572         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
18573         since it's never invoked.
18574
18575         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
18576         pixels high by default, so let's hardcode our systray icon to that
18577         size.  The SYSTEM_TRAY protocol should really have a way for
18578         client apps to query for the correct icon size.. but oh well.  A
18579         couple of patches to deal with the screwy client_window ==
18580         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
18581         instance, and also make sure we don't XSelectInput twice).
18582
18583 2006-10-30  Chris Toshok  <toshok@ximian.com>
18584
18585         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
18586         recreating forms.  Control recreation is the bane of my existence.
18587         Fix it in a way that keeps everyone happy.
18588
18589 2006-10-30  Chris Toshok  <toshok@ximian.com>
18590
18591         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
18592         just non-CHILD ones.  otherwise sometimes scrollbars end up with
18593         client_windows not being resized to the proper size (ReportBuilder
18594         shows this extremely well).
18595
18596 2006-10-30  Chris Toshok  <toshok@ximian.com>
18597
18598         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
18599         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
18600         showing up in the gnome taskbar.  Fixes bug #79790.
18601
18602 2006-10-30  Chris Toshok  <toshok@ximian.com>
18603
18604         * ApplicationContext.cs: guard against a NRE.
18605
18606         * Application.cs: null out the old MainForm for the context, so we
18607         don't try to use it again once it's disposed.  Fixes bug #79783.
18608
18609 2006-10-30  Chris Toshok  <toshok@ximian.com>
18610
18611         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
18612         BindingContext, set the data source directly, otherwise do the
18613         lazy approach - the actual ListManager will be created when we get
18614         a BindingContext. Fixes bug #79700.
18615
18616 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
18617
18618         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
18619           XplatUIX11.cs: Remove old 2 parameter SetVisible.
18620
18621         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
18622
18623 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
18624
18625         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
18626         of SetVisible that allows a window to be shown, but not activated.
18627         This is needed on Windows for MenuStrip, and can probably be used
18628         with MainMenu and ComboBox to fix the focus stealing issues on
18629         Windows.
18630
18631         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
18632
18633 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
18634
18635         * PictureBox.cs: Fix the output of the ToString method.
18636
18637 2006-10-29  Chris Toshok  <toshok@ximian.com>
18638
18639         * Control.cs (get_TopLevelControl): fix bug #79781.
18640
18641 2006-10-29  Chris Toshok  <toshok@ximian.com>
18642
18643         * ListControl.cs (set_DataSource): throw Exception here, not
18644         ArgumentException, to match MS behavior.
18645
18646 2006-10-29  Chris Toshok  <toshok@ximian.com>
18647
18648         * Form.cs: remove the try-catch's around calls to GetWindowState.
18649         We can just check the return value.
18650
18651         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
18652         Instead return -1.
18653
18654         * XplatUI.cs: Add note about additional return value for
18655         GetWindowState.
18656
18657 2006-10-29  Chris Toshok  <toshok@ximian.com>
18658
18659         * Control.cs (CreateHandle): when we create our handle, we also
18660         create the handles of our child controls.  Fixes one of the
18661         Control unit tests (CH11).
18662
18663 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
18664
18665         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
18666
18667 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
18668
18669         * ThemeClearlooks.cs: A little speedup.
18670
18671 2006-10-27  Chris Toshok  <toshok@ximian.com>
18672
18673         * Control.cs: implement Control.FromChildHandle in a way that
18674         matches the docs (and fixes the failed test.)
18675
18676 2006-10-27  Chris Toshok  <toshok@ximian.com>
18677
18678         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
18679         comments).
18680
18681         * DataGrid.cs: implement ResetForeColor such that the tests
18682         succeed.
18683         
18684 2006-10-27  Chris Toshok  <toshok@ximian.com>
18685
18686         * ToolBarButton.cs: setting text/tooltiptext to null results in it
18687         being set to "".  Fixes bug #79759.
18688
18689 2006-10-27  Jackson Harper  <jackson@ximian.com>
18690
18691         * TextControl.cs: We need to clear the entire selection area when
18692         setting the start, otherwise multiline selections are still
18693         visible.
18694
18695 2006-10-26  Chris Toshok  <toshok@ximian.com>
18696
18697         * PropertyGridView.cs: 
18698
18699         - ifdef all the code specific to the double
18700         buffer case, and provide some alternatives in the non-doublebuffer
18701         code, which makes heavy use of XplatUI.ScrollWindow to move things
18702         around without having to invalidate (and cause flicker).  There
18703         are still some drawing problems in the non-doublebuffered case, so
18704         DOUBLEBUFFER is defined by default.
18705
18706         - Fix the way dropdowns are handled.  now we explicitly watch for
18707         the events which might cause the dropdown to close, and break out
18708         of the nested event loop there.  This gets rid of all Capture
18709         code, at the expense of the Msg special casing.  Seems to work,
18710         though, and fixes bug #79743.
18711
18712 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
18713         * Control.cs: SetIsRecreating now recreates implicitly added
18714         child controls as well. Finally fixes #79629. The flag passed to 
18715         SetIsRecreating has also been removed since it wasn't used.
18716         
18717 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18718
18719         * PageSetupDialog.cs: Clean some code, fix some bits, 
18720         add some checks, and add a printer sub-dialog.
18721
18722 2006-10-26  Chris Toshok  <toshok@ximian.com>
18723
18724         * PropertyGrid.cs: make set_SelectedObject call
18725         set_SelectedObjects, and move the duplicate logic to the
18726         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
18727
18728         * PropertyGridView.cs: hide the textbox when we get a
18729         SelectedObjectsChanged event.
18730
18731         Fixes bug #79748.
18732
18733 2006-10-26  Chris Toshok  <toshok@ximian.com>
18734
18735         * PropertyGridView.cs: deal with the type converter not supporting
18736         GetStandardValues() or GetStandardValues() returning null, which
18737         is does in the default case.  Fixes #79742.
18738
18739 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
18740
18741         * CheckedListBox.cs: nunit no longer crashes when selecting 
18742         Project/Edit menu option
18743         
18744 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
18745
18746         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
18747         is no menu selected. fixes #79739
18748
18749 2006-10-25  Chris Toshok  <toshok@ximian.com>
18750
18751         * PropertyGridView.cs: factor out the splitter invalidation code
18752         into the SplitterPercent setter, and for kicks implement the
18753         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
18754         amount in either direction.
18755
18756 2006-10-25  Chris Toshok  <toshok@ximian.com>
18757
18758         * PropertyGridView.cs: do some cleanup of the brush used to draw
18759         text - read only fields should be grayed out.  not sure how to do
18760         this with the textbox, though.  but the textbox's should also be
18761         readonly now at least.  Also, hide/show the textbox when resizing
18762         the control.
18763         
18764         * CursorConverter.cs: use System.Reflection when getting the
18765         properties of Cursors, as TypeDescriptor.GetProperties isn't
18766         returning static properties.
18767
18768 2006-10-25  Chris Toshok  <toshok@ximian.com>
18769
18770         * PropertyGridView.cs: factor out the up/down handling, and reuse
18771         it for page up/down.  also add End/Home support.
18772
18773 2006-10-25  Chris Toshok  <toshok@ximian.com>
18774
18775         * PropertyGridView.cs:
18776
18777         - ensure the selected grid item is visible in the scrolled area,
18778         fixes bug #79572.
18779
18780         - fix Keys.Down handling when you're on the last item in the
18781         propertygrid.
18782
18783 2006-10-25  Mike Kestner  <mkestner@novell.com>
18784
18785         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
18786         clicks too.  Fixes #79725.
18787
18788 2006-10-24  Chris Toshok  <toshok@ximian.com>
18789
18790         * PropertyGrid.cs: use property.Converter instead of
18791         TypeDescriptor.GetConverter(property.PropertyType), so we catch
18792         TypeConverters declared on the property as well as on the
18793         PropertyType.  Fixes bug #79678.
18794
18795 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
18796
18797         * MimeIcon.cs, Mime.cs:
18798           Fallback to the default platform handler if no shared mime info
18799           stuff exists (fixes #79693).
18800
18801 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18802         * ContainerControl.cs: Incorrect contains check in ActiveControl 
18803         from previous fix (duh).
18804
18805 2006-10-20  Chris Toshok  <toshok@ximian.com>
18806
18807         * PropertyGridView.cs: the dropdown should be MIN(number of items
18808         in list, 15).  Fixes #79551.
18809
18810 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
18811         Fixes #79384, #79394, #79652, #79667
18812         * Application.cs: 
18813         
18814         - Modal windows are now destroyed in the proper order for windows
18815         
18816         * ContainerControl.cs:
18817         
18818         - ActiveControl setter has more conditions on when to return:
18819                 - if we're reselecting the active control, but it actually
18820                 didn't have focus (window hidden or some such), it runs
18821                 - if the active control being selected doesn't actually 
18822                 exist in the container, it returns
18823         
18824         * Form.cs
18825         
18826         - The ShowDialog now gets the current form as the owner when
18827         invoking without parameters, and correctly activates the owner 
18828         when returning
18829         
18830         * MessageBox.cs
18831         
18832         - MessageBox now catches the Escape key to exit
18833
18834 2006-10-20  Chris Toshok  <toshok@ximian.com>
18835
18836         * PropertyGridView.cs: fix a number of issues (bug #78565, and
18837         most of bug #79676):
18838
18839         - you can navigate around the property grid with the arrow keys.
18840
18841         - the dropdown is sized properly when the pg has a vertical
18842         scrollbar.
18843
18844         - fix the indentation for subentries, and properly select the
18845         entire label rect.
18846
18847         - fix the gray bar's drawing (only draw it to the last element,
18848         not for the height of the control.  Also make sure we draw that
18849         last horizontal grid line.
18850
18851         - use the same mechanism the datagrid uses wrt the editing textbox
18852         when scrolling/resizing/etc.  Namely, we hide it first, do the
18853         operation, then show it again (if it's still visible).
18854         
18855         - aggressively remove a lot of unnecessary refreshes (and also
18856         calls to Invalidate(). call more limited variants, and only redraw
18857         what we need.)
18858         
18859         * PropertyGrid.cs:
18860
18861         - when we're populating the merged collection, fill in the UI
18862         parent with either the passed in item, or the category item we
18863         create.
18864
18865         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
18866
18867         * GridItem.cs: drop some fully qualified names.
18868         
18869         * GridEntry.cs: add a "UIParent", which is basically the parent
18870         treenode.
18871
18872         * GridItemCollection.cs: add an IndexOf method.
18873
18874 2006-10-20  Mike Kestner  <mkestner@novell.com>
18875
18876         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
18877         a working win32 NC invalidation mechanism, we can't invalidate
18878         menus.  [Fixes #79705]
18879
18880 2006-10-20  Mike Kestner  <mkestner@novell.com>
18881
18882         * ListBox.cs : don't update the VScrollbar if the list is empty,
18883         just hide it.  [Fixes #79692]
18884
18885 2006-10-20  Jackson Harper  <jackson@ximian.com>
18886
18887         * RichTextBox.cs: Handle some special chars better, and don't skip
18888         the entire group when we encounter a special char that we don't
18889         handle correctly.
18890
18891 2006-10-18  Chris Toshok  <toshok@ximian.com>
18892
18893         * PropertyGridView.cs: address a number of issues from bug #79676,
18894         mostly of the cosmetic variety.
18895
18896         - The highlight rectangle for indented items not extends all the
18897         way to the left.
18898
18899         - Indented items aren't indented so much.
18900
18901         - the dropdown is properly sized width-wise if the pg has a
18902         vertical scrollbar.
18903
18904 2006-10-18  Chris Toshok  <toshok@ximian.com>
18905
18906         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
18907         systray stuff is rather convoluted to begin with.
18908
18909         systray icons are a single window for some reason (that I haven't
18910         figured out yet), and for them, client_window == whole_window.
18911         Given the way the tests are structured elsewhere to determine
18912         which paints are pending (client vs. nc), that situation will
18913         always yield PAINT, not NCPAINT.  So, if we have a pending
18914         nc_expose and no pending expose, remove the hwnd from the paint
18915         queue, and also set nc_expose_pending to false, to keep us from
18916         blocking further expose's adding the hwnd to the paint queue.
18917
18918         phew.  like i said, a rather convoluted change.  Fixes the
18919         notifyicon repaint issues in bug #79645.
18920
18921 2006-10-18  Chris Toshok  <toshok@ximian.com>
18922
18923         * Form.cs: when getting the backcolor of the form, don't get
18924         base.BackColor, as this allows parents to influence the background
18925         color.  This breaks mdi forms.  Instead, if the background_color
18926         is empty, return the default.
18927
18928 2006-10-18  Chris Toshok  <toshok@ximian.com>
18929
18930         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
18931         to being private instead of internal static.
18932
18933         * Control.cs: remove all the stupid ParentWaitingOnRecreation
18934         crap, it wasn't working for more deeply nested controls anyway,
18935         and we already have the is_recreating flag - use that instead.
18936         Before calling DestroyHandle in RecreateHandle, recurse through
18937         the control tree setting it to true.  this returns the recreate
18938         code to much of its original simplicity, while now guaranteeing we
18939         actually recreate everything we're supposed to.  This change gets
18940         fyireporting actually showing mdi children.
18941
18942 2006-10-17  Chris Toshok  <toshok@ximian.com>
18943
18944         * Form.cs: remove some debug spew, and collapse some duplicate
18945         code at the end of SetClientSizeCore.
18946
18947         * XplatUIX11.cs: 
18948         - add some more debug spew here too wrt Destroy handling.
18949         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
18950         in Control's handling of WM_DESTROY.
18951         - Remove the handling of zombie window DestroyNotifies from the
18952         event loop - we don't need it.  Now the only DestroyNotifies we
18953         actually handle are ones generated by X.
18954         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
18955         match gtk's (functioning) handling of this. This keep metacity
18956         from leaving droppings in the form of wm borders with no window
18957         contents all over the place.
18958
18959         * Control.cs:
18960         - add a bunch of debug spew wrt control recreation.
18961         - fix a bug where we weren't tracking Visible properly on
18962         recreated hwnds.
18963         - fixed the WM_PAINT double buffer handling to support re-entrant
18964         calls (yes, i know it's gross, but it's happening to us).
18965
18966 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
18967         * ThemeWin32Classic.cs: changed drawing of selected days
18968         to make them look better.
18969
18970 2006-10-16  Chris Toshok  <toshok@ximian.com>
18971
18972         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
18973         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
18974
18975         * XplatUIX11.cs: move away from using hwnd.client_dc and
18976         hwnd.non_client_dc and on to a stack of dc's (and in window's
18977         case, PAINTSTRUCT's), so we can deal with nested Paint calls
18978         without puking or not disposing of Graphics objects.
18979
18980         * XplatUIOSX.cs: same.
18981
18982         * XplatUIWin32.cs: same.
18983
18984 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
18985
18986         * FileDialog.cs: Don't call on_directory_changed inside
18987           OnSelectedIndexChanged (it changes the SelectedIndex too).
18988           Instead move it to OnSelectionChangeCommitted.
18989
18990 2006-10-13  Chris Toshok  <toshok@ximian.com>
18991
18992         * XplatUIX11.cs: more Destroy work.  the current code does the
18993         following things, in order:
18994
18995         1. Enumerates all handles of all controls at or below the one
18996         being destroyed, in pre-order.  As it is doing this, it marks the
18997         handles as zombie and clears all references to them.
18998         
18999         2. calls XDestroyWindow on the window passed in.
19000
19001         3. SendMessage's WM_DESTROY to all he handles in the accumulated
19002         list.
19003
19004 2006-10-13  Chris Toshok  <toshok@ximian.com>
19005
19006         * XplatUIX11.cs: set hwnd.zombie to true before calling
19007         SendMessage (WM_DESTROY).  this keeps us from marking the new
19008         window a zombie, and also keeps us from calling sendmessage at
19009         all.
19010
19011 2006-10-13  Jackson Harper  <jackson@ximian.com>
19012
19013         * TextControl.cs: Do not show the caret and selection at the same
19014         time.  Reduces ugliness by 35%.
19015
19016 2006-10-13  Chris Toshok  <toshok@ximian.com>
19017
19018         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
19019         zombie after we do the recursive call, so we actually do call
19020         SendMessage on the children controls.
19021         (GetMessage): if we find a pending paint event for a zombie hwnd,
19022         remove the hwnd from the paint queue, or else it will always be
19023         there (and we'll effectively loop infinitely)
19024
19025 2006-10-13  Mike Kestner  <mkestner@novell.com>
19026
19027         * MenuItem.cs : add Selected format under keynav too.
19028         Fixes #79528.
19029
19030 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
19031
19032         * PropertyGrid.cs: Fixed some NRE's and small difference between our
19033         implementation and that of MS.
19034
19035 2006-10-13  Chris Toshok  <toshok@ximian.com>
19036
19037         * Control.cs (OnInvalidated) only futz with the invalid_region if
19038         the control is double buffered.  this fixes the apparent hang in
19039         the ListView unit tests.  Someone needs to make the
19040         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
19041
19042 2006-10-13  Chris Toshok  <toshok@ximian.com>
19043
19044         * PropertyGridView.cs:
19045
19046         - do a little refactoring so that only one place calls
19047         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
19048         else call that.  Also make it Refresh, since there are redraw bugs
19049         otherwise (we should take a look at that...)
19050
19051         - do a little more refactoring work to share the body of code
19052         involved with the drop down.  it was duplicated in the code
19053         dealing with the listbox handling and in the code dealing with the
19054         UITypeEditors.
19055
19056         - add a Capture to the dropdown form's control once it's
19057         displayed, and add a MouseDown handler that checks to make sure
19058         the position is inside the control.  If it's not, close the
19059         dropdown.  This fixes #78190.
19060
19061         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
19062         if the value is different than the initial value.
19063         
19064 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
19065
19066         * Control.cs: see #78650
19067         - Fixed GetNextControl for several cases:
19068                 - Changed FindFlatForward to return 
19069                 correct sibling control when more than one
19070                 control has same TabIndex as the currently 
19071                 focused one.
19072                 - Changed FindFlatBackward to loop children
19073                 from last to first and apply same logic as in
19074                 FindFlatForward
19075                 - Changed FindControlForward to search for
19076                 children when control is not a container
19077                 but has children, or search for siblings if
19078                 control is a container...
19079                 - Changed FindControlBackward   to continue
19080                 searching for child controls when hitting 
19081                 Panel-like parents
19082                 
19083         - Fixed Focus method to update ActiveControl
19084         (FocusTest.FocusSetsActive failure)
19085         
19086         * TabControl.cs:
19087         - Focus rectangle now refreshes when gaining
19088         or losing focus
19089         - Removed grab for Tab key on IsInputKey that 
19090         was keeping tab navigation from working (#78650)
19091
19092 2006-10-13  Chris Toshok  <toshok@ximian.com>
19093
19094         * PropertyGridView.cs:
19095         - Rewrite SetPropertyValue to loop over SelectedGridItem's
19096         SelectedObjects.
19097
19098         - Deal with GridItem.Value == null a few places.
19099
19100         * PropertyGrid.cs: 
19101         - replace the PopulateGridItemCollection with a pair of methods
19102         which compute the intersection of all the properties in the
19103         SelectedObjects array.  Fixes #79615.
19104
19105         - Throw ArgumentException from set_SelectedObjects if there's a
19106         null in the array.
19107
19108         - Add GetTarget method which can be used to traverse up the
19109         GridItem.Parent chain.  It depends on the assumption that
19110         selected_objects for different GridEntries are always in the same
19111         order (a safe assumption).  Use this method and loop over all the
19112         selected objects in the entry when calling RemoveValueChanged and
19113         AddValueChanged.
19114         
19115         * GridEntry.cs: Make this handle multiple selected objects.
19116         .Value returns null if not all the selected objects share the same
19117         value.
19118
19119 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
19120         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
19121           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
19122           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
19123           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
19124           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
19125         add additional functionality.
19126
19127 2006-10-12  Mike Kestner  <mkestner@novell.com>
19128
19129         * ErrorProvider.cs : new ToolTipWindow ctor sig.
19130         * HelpProvider.cs : new ToolTipWindow ctor sig.
19131         * ToolTip.cs : remove ToolTip param from Window sig since it is
19132         not used.
19133         * ToolBar.cs : add tooltip support.  Fixes #79565.
19134
19135 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19136
19137         * ComboBox.cs: move the events in set_SelectedIndex to 
19138         after the call to HighlightIndex in order to avoid 
19139         possible recursion and subsequent problems with the call
19140         to HighlightIndex and include a range check in 
19141         set_HighlightIndex. Fixes #79588
19142         
19143 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19144
19145         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
19146         to ui thread's settings instead of sunday. 
19147         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
19148
19149 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
19150
19151         * DateTimePicker.cs
19152         * MonthCalendar.cs
19153         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
19154         and implement missing functionality (selecting different parts 
19155         of the date and edit them individually with the keyboard).
19156         
19157 2006-10-11  Chris Toshok  <toshok@ximian.com>
19158
19159         * Control.cs (OnInvalidated): fix NRE relating to last change.
19160
19161 2006-10-11  Chris Toshok  <toshok@ximian.com>
19162
19163         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
19164         atoms in _NET_WM_STATE here if the window is maximized.  We need
19165         to do this because we're *replacing* the existing _NET_WM_STATE
19166         property, so those atoms will be lost otherwise, and any further
19167         call to GetWindowState will return Normal for a window which is
19168         actually maximized.  Fixes #79338.
19169
19170 2006-10-11  Jackson Harper  <jackson@ximian.com>
19171
19172         * TextControl.cs: Special case for setting selection end to
19173         selection start, we basically kill the anchor.
19174         - some todo comments.
19175
19176 2006-10-11  Chris Toshok  <toshok@ximian.com>
19177
19178         * Control.cs: switch to using an "invalid_region" to track which
19179         parts of the image buffer need updating.  This is more code than
19180         the simple fix from r66532.  That version just attempted to always
19181         fill the entire buffer on redraw, which turns out to be
19182         inefficient when invalidating small rectangles.  This version
19183         simply adds the invalid rectangle to the invalid region.  When we
19184         get any WM_PAINT message we see if it can be filled using the
19185         image buffer, and if it can't (if the paint event's clip rectangle
19186         is visible in the invalid region) we first fill the image buffer.
19187         So, the image buffer is still a cache, we just fill it lazily.
19188
19189         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
19190         need it any longer.
19191
19192 2006-10-11  Chris Toshok  <toshok@ximian.com>
19193
19194         * XplatUIX11.cs (SetWindowPos): we need to update both position as
19195         well as size after calling XMoveResizeWindow.  This keeps us from
19196         ignoring future SetWindowPos calls.  Fixes the disappearing
19197         DateTimePicker in the ToolBarDockExample from bug #72499.
19198
19199 2006-10-11  Chris Toshok  <toshok@ximian.com>
19200
19201         * TextBoxBase.cs: reorder things a bit when it comes to
19202         resizing-causing-recalculation.  we were recalculating the
19203         document when our position was changed, which shouldn't happen.
19204         We only care about size changes.  Clear up some more redundant
19205         recalculation calls while I'm at it.  This makes the toolbar dock
19206         example snappy when you're just dragging toolbars around (since it
19207         causes a relayout whenever you move one.)
19208
19209 2006-10-11  Chris Toshok  <toshok@ximian.com>
19210
19211         * ToolBarButton.cs (get_Rectangle): this only returns
19212         Rectangle.Empty if Visible == false, or Parent == null.
19213         Parent.Visible doesn't matter.
19214
19215 2006-10-10  Chris Toshok  <toshok@ximian.com>
19216
19217         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
19218         by .net 1.1, so switch to an internal method instead.
19219
19220 2006-10-10  Chris Toshok  <toshok@ximian.com>
19221
19222         * Control.cs (WM_PAINT): when a control is double buffered we draw
19223         initially to the ImageBuffer and then copy from there.  But when a
19224         parent control which has child controls is double buffered, the
19225         initial drawing doesn't encompass the entire ClientRectangle of
19226         the parent control, so we end up with uninitialized bits (this is
19227         easily seen by dragging the top toolbar in
19228         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
19229         manually set the ClipRectangle of the paint_event (only the one we
19230         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
19231         of the nastiness in bug #72499.
19232
19233         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
19234         which we use in Control.cs's WM_PAINT handling.
19235
19236 2006-10-10  Jackson Harper  <jackson@ximian.com>
19237
19238         * TextBoxBase.cs: Finish off the autoscrolling stuff.
19239
19240 2006-10-10  Chris Toshok  <toshok@ximian.com>
19241
19242         * Cursor.cs: Apply a slightly different patch to the one suggested
19243         in #79609.
19244
19245 2006-10-10  Jackson Harper  <jackson@ximian.com>
19246
19247         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
19248         not the parent form.
19249         * TextControl.cs: use difference in old line count vs new count to
19250         calculate how many lines were added, this takes into account soft
19251         line breaks properly.
19252
19253 2006-10-10  Chris Toshok  <toshok@ximian.com>
19254
19255         * LinkLabel.cs: don't call MeasureCharacterRanges against a
19256         rectangle located at 0,0 and the size of the text.  Use
19257         ClientRectangle instead.  This fixes rendering of non-left aligned
19258         link labels.
19259
19260 2006-10-10  Jackson Harper  <jackson@ximian.com>
19261
19262         * TextBoxBase.cs: When we set the selection start position the
19263         caret.
19264         * TextControl.cs: Need to update the caret when we decrement it to
19265         zero.
19266         - Make sure that the selection_visible flag gets reset to false if
19267         the selection isn't visible.  Before this you could get it set to
19268         visible by changing the selection start, then changing the end to
19269         equal the start.
19270
19271 2006-10-09  Jackson Harper  <jackson@ximian.com>
19272
19273         * TreeView.cs: Don't update scrollbars when we aren't visible.
19274         * TreeNodeCollection.cs: Only need to update scrollbars if being
19275         added to an expanded visible node or the root node.
19276
19277 2006-10-09  Chris Toshok  <toshok@ximian.com>
19278
19279         * XplatUIX11.cs (SendMessage): fix NRE.
19280
19281 2006-10-09  Jackson Harper  <jackson@ximian.com>
19282
19283         * TextBoxBase.cs: Implement horizontal autoscrolling.
19284         * TextControl.cs: Add a movement types that allows moving forward
19285         and backwards without wrapping.
19286
19287 2006-10-09  Mike Kestner  <mkestner@novell.com>
19288
19289         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
19290         with focus "expansion" of labels.  Fixes #79532 and then some.
19291         * ThemeWin32Classic.cs : add LineLimit to ListView label format
19292         when wrapping.
19293
19294 2006-10-09  Jackson Harper  <jackson@ximian.com>
19295
19296         * TextBoxBase.cs: Set the default max values to MaxValue since
19297         we use the scrollbar for autoscrolling and the default value is
19298         100.  If we don't do this the caret won't keep up with typing
19299         after about 18 characters.
19300         * TextControl.cs: Make sure the selection is offset by the
19301         viewport x.  This fixes selection when using auto scrolling.
19302
19303 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
19304         
19305         * Form.cs: The active control should be selected after the 
19306         OnLoad so that any child control initialization that affects
19307         the selection is done. Fixes #79406
19308
19309 2006-10-06  Chris Toshok  <toshok@ximian.com>
19310
19311         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
19312         to have no evil effects.
19313
19314         - Stop selecting StructureNotifyMask on non-toplevel windows.
19315
19316           The only way children should be resized is by using the SWF api,
19317           and we already send WM_WINDOWPOSCHANGED messages in those cases.
19318           Toplevel windows can be interacted with via the window manager,
19319           and so we keep the input mask there.
19320
19321           The other event StructureNotifyMask gives us (that we care
19322           about) is DestroyNotify.  The code is already structured such
19323           that it assumes we won't be getting a DestroyNotify event for
19324           the window we pass to XDestroyWindow (which is what
19325           StructureNotifyMask is supposed to guarantee.)  So, that code
19326           shouldn't be affected by this either.
19327
19328         - Stop selecting VisibilityChangeMask altogether.
19329
19330           We weren't doing anything with the resulting events anyway.
19331         
19332         This vastly reduces the number of X requests and events we see
19333         when resizing/laying out a large ui.
19334
19335 2006-10-06  Chris Toshok  <toshok@ximian.com>
19336
19337         * ScrollableControl.cs (DisplayRectangle): we need to take into
19338         account the DockPadding regardless of whether or not auto_scroll
19339         == true.  rework this slightly to this effect, and fix bug #79606,
19340         and part of #72499 (you can now see the drag handles and drag
19341         toolbars around).
19342
19343 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
19344
19345         * ListViewItem.cs: Collections of selected and checked items are now
19346         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
19347         we mark the collection "dirty".
19348         * ListView.cs: Marked collections readonly. Modified UpdateSelection
19349         to only clear SelectedItems when a new item is selected and MultiSelect
19350         is enabled. CheckedItems and SelectedItems now subscribe to Changed
19351         event of ListViewItemCollection, and mark its list dirty whenever
19352         that event is fire. This allows us to return selected/checked items 
19353         in the same order as they are in the Items collection. This matches
19354         the MS behavior.
19355
19356 2006-10-06  Chris Toshok  <toshok@ximian.com>
19357
19358         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
19359         right mouse clicks.  Fixes bug #79593.
19360
19361 2006-10-06  Chris Toshok  <toshok@ximian.com>
19362
19363         * Splitter.cs: doh, fix splitters that don't want to cancel the
19364         movement when you drag them.  Also, impose the limits on the
19365         values we send to the SplitterMovingEvent.  Fixes #79598.
19366
19367 2006-10-06  Jackson Harper  <jackson@ximian.com>
19368
19369         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
19370         since we use this for auto scrolling also.
19371
19372 2006-10-05  Chris Toshok  <toshok@ximian.com>
19373
19374         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
19375         beginning to think that most datagrid column types don't need this
19376         method.  Fixes bug #79392.
19377
19378 2006-10-05  Chris Toshok  <toshok@ximian.com>
19379
19380         * DataGrid.cs: move back to a more lazy scheme for creating the
19381         CurrencyManager, so we aren't updating it every time you set
19382         either DataSource or DataMember.  Also, don't call
19383         RecreateDataGridRows if the currency manager hasn't changed.
19384
19385 2006-10-05  Chris Toshok  <toshok@ximian.com>
19386
19387         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
19388         emitted, SelectedIndex should already be updated.  Fixes bug
19389         #78929.
19390
19391 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
19392
19393         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
19394           ToolStripTextBox.cs: Initial commit.
19395         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
19396
19397 2006-10-05  Jackson Harper  <jackson@ximian.com>
19398
19399         * TabControl.cs: We need to invalidate the tab control area when
19400         new ones are added (duh).
19401
19402 2006-10-03  Chris Toshok  <toshok@ximian.com>
19403
19404         * Form.cs (ProcessDialogKey): if the focused control is in this
19405         form and is a button, call its PerformClick method here.  Fixes
19406         #79534.
19407
19408 2006-10-04  Jackson Harper  <jackson@ximian.com>
19409
19410         * TabPage.cs: Ignore setting of Visible, and add an internal
19411         method for setting the controls visibility.  TabPage's Visible
19412         property is a little strange on MS, this seems to make us
19413         compatible, and fixes cases where people set all the tab pages to
19414         visible.
19415         * TabControl.cs: Use the new internal setting on tab pages
19416         visibility.
19417
19418 2006-10-03  Mike Kestner  <mkestner@novell.com>
19419
19420         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
19421
19422 2006-10-03  Mike Kestner  <mkestner@novell.com>
19423
19424         * ListView.cs : use is_visible instead of Visible to check if 
19425         scrollbars should be placed/sized.  Also some max_wrap_width
19426         love for LargeIcon view.  [Fixes #79533]
19427
19428 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
19429
19430         * TextControl.cs :
19431           Make set_TextAlign() do actually update the align. Fixed #78403.
19432
19433 2006-10-03  Chris Toshok  <toshok@ximian.com>
19434
19435         * DataGrid.cs: fix a crash when switching datasources if the
19436         vertical scrollbar is at someplace other than Value = 0.  Also,
19437         reduce the number of recalculation passes we do in SetDataSource
19438         from 2 to 1.
19439
19440 2006-10-03  Jackson Harper  <jackson@ximian.com>
19441
19442         * TextBoxBase.cs: Move the if value the same bail check up, we
19443         don't want to empty the document if it is already empty, this
19444         seems to severly mess up the caret.  TODO: I should probably fix
19445         the empty statement to update teh caret somehow.
19446
19447 2006-10-03  Chris Toshok  <toshok@ximian.com>
19448
19449         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
19450         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
19451         reflection, an internal row type, properties on said type, etc.)
19452         will work with our datagrid.  Fixes #79531.
19453
19454 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
19455
19456         * FileDialog.cs: Don't crash if a path is not accessible
19457           (System.UnauthorizedAccessException). Fixes #79569.
19458         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
19459           a ':' too. Return unknown icon for those paths/files.
19460
19461 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
19462
19463         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
19464         GetContainerControl returns null.
19465
19466 2006-10-02  Chris Toshok  <toshok@ximian.com>
19467
19468         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
19469         call to XGetWindowAttributes instead of "handle".  fixes an X
19470         error using notifyicon after the NotifyIconWindow to Form base
19471         class switch.
19472
19473 2006-10-02  Chris Toshok  <toshok@ximian.com>
19474
19475         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
19476         server grab and looping we need to do to get down to the most
19477         deeply nested child window.
19478         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
19479         QueryPointer again after the WarpPointer so we can generate a
19480         proper (fake) MotionNotify event to be enqueued in the destination
19481         window's queue.
19482         (GetCursorPos): call QueryPointer.
19483
19484         Fixes #79556.
19485
19486 2006-10-02  Jackson Harper  <jackson@ximian.com>
19487
19488         * NotifyIcon.cs: Derive the notify icon from a form, so things
19489         like FindForm work on it.
19490         - Swallow the WM_CONTEXTMENU message, since that is generated on
19491         mouse down, and context menu is a mouse up kinda guy.  I believe
19492         the correct fix here is probably to make the notify icon entirely
19493         NC area, but this seems to work fine for anyone not manipulating
19494         WndProc.
19495
19496 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
19497
19498         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
19499           ToolStripItemCollection.cs, ToolStripLabel.cs,
19500           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
19501           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
19502           Initial implementation.
19503         * TextRenderer.cs: Provide padding to MeasureText.
19504
19505 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
19506
19507         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
19508         of ButtonBaseAccessibleObject. Fix bug #79552.
19509
19510 2006-10-02  Jackson Harper  <jackson@ximian.com>
19511
19512         * MdiWindowManager.cs: When maximizing use the containers client
19513         rect, not it's bounds, so nc area is accounted correctly.
19514         - Use the parent form's size for the menu position, since the
19515         client isn't always the full form size.
19516
19517 2006-10-01  Chris Toshok  <toshok@ximian.com>
19518
19519         * ScrollableControl.cs: make sure neither right_edge or
19520         bottom_edge are < 0, since they're used as LargeChange for the
19521         horiz/vert scrollbars respectively.  Fixes #79539.
19522
19523 2006-10-01  Chris Toshok  <toshok@ximian.com>
19524
19525         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
19526         the xplatuix11 code can cause us to destroy/recreate our handle.
19527
19528         * XplatUIX11.cs
19529         (SystrayAdd):
19530         - this code can be invoked many times for the same Hwnd.  Make
19531           sure we only destroy the client window once (the first time this
19532           method is called).  This fixes bug #79544.
19533         - Remove the call to the improperly bound XSync.  why we had two
19534           bindings to this, I will never know, but this call resulted in
19535           events being discarded from the queue(!).
19536         - correct a misunderstanding of _XEMBED_INFO - the second atom is
19537           not our current state but the state we wish to be in.  So, 0 if
19538           we don't want to be mapped.  Change it to 1.
19539         (SystrayRemove): The XEMBED spec makes mention of the fact that
19540         gtk doesn't support the reparent of client windows away from the
19541         embedder.  Looking at gtksocket-x11.c seems to agree with this.
19542         The only avenue we have for removing systray icons is to destroy
19543         them.  We don't want the handle to go away for good, though, so
19544         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
19545         #79545.
19546         
19547 2006-10-01  Chris Toshok  <toshok@ximian.com>
19548
19549         * Form.cs (WndProc): inline the native_enabled variable usage into
19550         the cases in which it's used.  Fixes #79536.
19551
19552 2006-09-29  Mike Kestner  <mkestner@novell.com>
19553
19554         * ListView.cs : toggle the selection state for ctrl clicks in 
19555         multiselect mode. [Fixes #79417]
19556
19557 2006-09-29  Mike Kestner  <mkestner@novell.com>
19558
19559         * ListView.cs : kill CanMultiSelect and refactor the selection
19560         code to support multiselection in the absence of mod keys. Steal
19561         arrow/home/end keys by overriding InternalPreProcessMessage to
19562         restore regressed keynav behavior.
19563         [Fixes #79416]
19564
19565 2006-09-29  Jackson Harper  <jackson@ximian.com>
19566
19567         * MdiClient.cs: Repaint the titlebars when the active window is
19568         changed.
19569
19570 2006-09-29  Chris Toshok  <toshok@ximian.com>
19571
19572         * Application.cs: when entering a runloop with a modal, make sure
19573         the hwnd is enabled.  Fixes #79480.
19574
19575 2006-09-29  Chris Toshok  <toshok@ximian.com>
19576
19577         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
19578         when ListManager.CanAddRows == false, bump us back one.
19579
19580         * DataGridColumnStyle.cs (ParentReadOnly): remove the
19581         listmanager.CanAddRows check.  This makes ArrayLists uneditable
19582         using a datagrid, which is not right.
19583         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
19584         is an IEditable, but call property_descriptor.SetValue regardless.
19585         fixes #79435.
19586
19587 2006-09-29  Chris Toshok  <toshok@ximian.com>
19588
19589         * DataGridBoolColumn.cs: we need to test equality in the face of
19590         possible null values (as is the case with the default NullValue).
19591         This patch keeps us from crashing in that case.
19592
19593 2006-09-29  Jackson Harper  <jackson@ximian.com>
19594
19595         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
19596         here, since it will get called for every node collection in the
19597         tree. This is now done in the treeview once the sorting is
19598         finished.
19599         * TreeView.cs: Recalculate the visible order, and update the
19600         scrollbars after sorting, set the top nope to the root so that the
19601         recalc actually works.
19602
19603 2006-09-29  Chris Toshok  <toshok@ximian.com>
19604
19605         * LinkLabel.cs: more handling of the default link collection in
19606         the face of LinkArea manipulation.  The default link collection
19607         contains 1 element (start=0,length=-1).  If the user sets LinkArea
19608         to anything and the links collection is the default, clear it.
19609         Then only add the link if its nonempty.  Fixes #79518.
19610
19611 2006-09-29  Chris Toshok  <toshok@ximian.com>
19612
19613         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
19614         piece correctly when we hit a '\n'.  Fixes #79517.
19615
19616 2006-09-29  Chris Toshok  <toshok@ximian.com>
19617
19618         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
19619         change the binding of gdk_init_check to take two IntPtr's, and
19620         pass IntPtr.Zero for both of them.  Fixes #79520.
19621
19622 2006-09-29  Mike Kestner  <mkestner@novell.com>
19623
19624         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
19625         [Fixes #78779]
19626
19627 2006-09-28  Jackson Harper  <jackson@ximian.com>
19628
19629         * XplatUIX11.cs: When translating NC messages make sure we go from
19630         whole window to screen, not client window to screen.
19631         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
19632         method doesn't exist
19633         - Skip over controls that aren't forms when arranging.
19634
19635 2006-09-28  Jackson Harper  <jackson@ximian.com>
19636
19637         * XplatUIWin32.cs: Clip the rect to the parent window.
19638         * XplatUIStructs.cs: Add clipping modes struct.
19639         * InternalWindowManager.cs: New private method that factors title
19640         bar heights in when calculating the pos of an NC mouse message.
19641         - Use SendMessage to force a paint when the form's size is changed
19642         instead of painting the decorations immediately.
19643         - Don't let the NC button click messages get to DefWndProc,
19644         because they will attempt to handle windowing themself, and this
19645         messes up z-order (it will put them in front of the scrollbars).
19646         * XplatUIX11.cs: Make sure that we don't reset window managers if
19647         we already have one (ie the window is an MDI window).
19648
19649 2006-09-28  Chris Toshok  <toshok@ximian.com>
19650
19651         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
19652         menu code really needs going over.
19653
19654 2006-09-27  Chris Toshok  <toshok@ximian.com>
19655
19656         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
19657         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
19658         window is maximizable.  So, we need to make sure that even if we
19659         clear the border/wm frame of those functions, they're still
19660         available (basically, we remove the decoration without removing
19661         the function).  Half the fix for #79338.
19662
19663 2006-09-27  Chris Toshok  <toshok@ximian.com>
19664
19665         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
19666         Fixes bug #79515.
19667
19668 2006-09-27  Chris Toshok  <toshok@ximian.com>
19669
19670         * Splitter.cs: reorder things a bit so that we don't actually
19671         draw/move the splitter until after calling OnSplitterMoving.  This
19672         lets users cancel/disallow the movement by explicitly setting
19673         event.SplitX/SplitY.  Fixes #79372.
19674
19675 2006-09-27  Jackson Harper  <jackson@ximian.com>
19676
19677         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
19678         because it is most likely on a window being destroyed, and that
19679         will give us an X11 error.
19680
19681 2006-09-27  Chris Toshok  <toshok@ximian.com>
19682
19683         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
19684         the dropdown button now toggles between showing and hiding the
19685         dropdown.  Also, get rid of dropdown_form_showing and just use
19686         dropdown_form.Visible.  We still don't do a grab, but I'll leave
19687         that part to someone who has handled Capture-fu before.
19688
19689 2006-09-27  Chris Toshok  <toshok@ximian.com>
19690
19691         * DataGrid.cs: return false if alt isn't pressed when '0' is
19692         pressed.  this keeps the '0' key from being swallowed, and fixes
19693         bug #79350.
19694
19695 2006-09-27  Chris Toshok  <toshok@ximian.com>
19696
19697         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
19698         Calling Refresh (in response to a scrollbar event) screws up the
19699         scrollbar painting.  Fixes bug #78923.
19700
19701 2006-09-27  Chris Toshok  <toshok@ximian.com>
19702
19703         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
19704         then insert into hashtable" blocks threadsafe.
19705
19706 2006-09-27  Chris Toshok  <toshok@ximian.com>
19707
19708         * MessageBox.cs (CreateParams): the styles should be |'ed with our
19709         baseclass's, since otherwise the
19710         ControlBox/MinimizeBox/MaximizeBox assignments above have no
19711         effect.  This gets the close button back in messageboxes.
19712
19713 2006-09-27  Chris Toshok  <toshok@ximian.com>
19714
19715         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
19716         flag, not just != 0.  this makes flags that are actually multiple
19717         bits (like WS_CAPTION) work.  fixes bug #79508.
19718
19719 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
19720
19721         * PageSetupDialog.cs: add support for getting and settings the 
19722         paper size, source and orientation.
19723
19724 2006-09-26  Chris Toshok  <toshok@ximian.com>
19725
19726         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
19727         and caption == "", we need to remove the resize handles as well as
19728         the title bar.
19729
19730         * Control.cs (set_Text): turns out that setting Text on a form
19731         should change the WM styles on the window, since if ControlBox ==
19732         false, the only way to get a window border is to have a non-""
19733         Text property.  check winforms/forms/text.cs for an example.  so,
19734         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
19735         update both window styles and title.  This fixes a lot of dialogs
19736         (including the preferences dialog in MonoCalendar.)
19737
19738 2006-09-26  Chris Toshok  <toshok@ximian.com>
19739
19740         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
19741         control isn't a Form), call Win32ShowWindow to hide the window,
19742         but don't update the control Visible property.  When we reparent
19743         back to a parent control, call SetVisible in order for the
19744         window's visibility to be reinstated.
19745
19746         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
19747         the FosterParent.
19748
19749         * Control.cs (ControlCollection.Remove): remove that value.Hide()
19750         call for good, since it breaks MonoCalendar (and other things I'm
19751         sure.) Also, set all_controls to null *after* the owner calls,
19752         which end up regenerating it.
19753         (ChangeParent): allow new_parent to be == null, passing
19754         IntPtr.Zero down to XplatUI.
19755
19756         this fixes #79294 the right way.
19757
19758 2006-09-26  Mike Kestner  <mkestner@novell.com>
19759
19760         * GridEntry.cs : internal SetParent method.
19761         * PropertyGrid.cs : attach to property changed on the proper
19762         target if we have a hierarchical grid with subobjects. Setup
19763         GridItem.Parent for hierarchical items.
19764         * PropertyGridView.cs : Set value on the correct target for
19765         hierarchical grids. [Fixes #78903]
19766
19767 2006-09-26  Chris Toshok  <toshok@ximian.com>
19768
19769         * Control.cs (ChildNeedsRecreating): this should return true if
19770         either we're being recreated and the child is in our list, or our
19771         parent is waiting for our recreation.
19772
19773 2006-09-26  Chris Toshok  <toshok@ximian.com>
19774
19775         * Control.cs (ControlCollection.Remove): reinstate the
19776         value.Hide() call as suggested in bug #79294.
19777
19778 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
19779
19780         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
19781         coordinates (versus a relative move).
19782
19783 2006-09-26  Chris Toshok  <toshok@ximian.com>
19784
19785         * Control.cs: rework child recreation a little bit.  It turns out
19786         that we race between the DestroyNotify the WM_DESTROY message.  If
19787         the parent gets its DestroyNotify before the child gets the
19788         WM_DESTROY message, the child ends up not recreating (since the
19789         parent finishes its recreation on DestroyNotify, and the child
19790         checks ParentIsRecreating.)
19791
19792         So, instead we store off a list of all the child controls which
19793         need to be recreated when the parent control starts to recreate
19794         itself.  Then, when child controls get their WM_DESTROY message we
19795         check to see if they're in the parent's pending recreation list,
19796         and if so, we recreate.  This removes all dependency on ordering
19797         from the code and fixes the initial MonoCalendar upgrade dialog.
19798         
19799 2006-09-26  Jackson Harper  <jackson@ximian.com>
19800
19801         * TextControl.cs: Use the Line to get the length of the line,
19802         since soft line breaks can change the end line.
19803
19804 2006-09-26  Chris Toshok  <toshok@ximian.com>
19805
19806         * Control.cs (ControlCollection.AddImplicit): don't add the
19807         control again if it's already in one of our lists.  This keeps us
19808         from adding controls over and over again for comboboxes when their
19809         handle gets recreated (as the combobox adds implicit controls in
19810         OnHandleCreated).  Fixes the X11 errors in bug #79480.
19811
19812 2006-09-26  Jackson Harper  <jackson@ximian.com>
19813
19814         * TextControl.cs: When deleting characters make sure that any
19815         orphaned zero lengthed tags get deleted.
19816         - Fix ToString for zero lengthed tags.
19817
19818 2006-09-25  Jackson Harper  <jackson@ximian.com>
19819
19820         * TextControl.cs: When getting a tag at the location there can be
19821         multiple tags at the same spot, these are 0-lengthed tags that
19822         appear when extra formatting has been stuck in a location.  We
19823         need to pull out the last of these 0 lengthed tags.
19824
19825 2006-09-25  Jackson Harper  <jackson@ximian.com>
19826
19827         * TextControl.cs: Fix print out in debug method.
19828         * TextBoxBase.cs: When text is set bail if we are setting to the
19829         previous value.
19830         
19831 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
19832
19833         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
19834           It is now possible to change the selected index in a FontXXXListBox
19835           with the up and down arrow keys from the FontXXXTextBoxes.
19836           Also, send the FontXXXTextBox mouse wheel event to the corresponding
19837           FontXXXListBoxes to match ms.
19838
19839 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
19840
19841         * SystemInformation.cs: Return a clone of the theme's MenuFont because
19842         anyone can dispose it, anytime. All other properties returns enums, 
19843         structs or basic types so they don't need such tricks.
19844
19845 2006-09-22  Jackson Harper  <jackson@ximian.com>
19846
19847         * XplatUI.cs:
19848         * XplatUIWin32.cs:
19849         * Clipboard.cs:
19850         * DataFormats.cs:
19851         * XplatUIOSX.cs:
19852         * XplatUIDriver.cs: Update interface to add a primary selection
19853         flag, so the driver can use the primary selection buffer if
19854         needed.
19855         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
19856
19857         * RichTextBox.cs: We need to supply the data object to paste now
19858         (so we can choose to supply CLIPBOARD or PRIMARY).
19859         * TextBoxBase.cs: Supply data object to paste (see above).
19860         - Middle click uses the primary selection data object.
19861         
19862 2006-09-21  Chris Toshok  <toshok@ximian.com>
19863
19864         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
19865         of SetWMStyles.  It's still a rat's nest and is largely
19866         order-dependent which I dislike immensely.  This also fixes the X
19867         button disappearing from toplevel forms.
19868
19869 2006-09-21  Mike Kestner <mkestner@novell.com>
19870
19871         * ListBox.cs: move Jordi's click/dblclick raising code to the
19872         mouse up handler.
19873
19874 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
19875
19876         * ListBox.cs: Fixes 79450
19877
19878 2006-09-21  Mike Kestner <mkestner@novell.com>
19879
19880         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
19881         to deal with people updating the TreeNodeCollection after the tree
19882         is disposed.  "Fixes" 79330.
19883
19884 2006-09-20  Jackson Harper <jackson@ximian.com>
19885
19886         * TextControl.cs: Push the cursor record onto the undo stack
19887         before the delete action. This fixes 78651.
19888
19889 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
19890
19891         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
19892         CreateParams. Fixes 79329.
19893
19894 2006-09-19  Chris Toshok  <toshok@ximian.com>
19895
19896         * XplatUIX11.cs: a couple of blanket code massage passes to clean
19897         things up a bit.  First, get rid of the NetAtoms array (and the NA
19898         enum), and just embed the atoms as static fields.  Also, add a
19899         couple of functions (StyleSet and ExStyleSet) to clean up all the
19900         bitmask testing of styles.
19901
19902         * X11Structs.cs: remove the NA enum, not needed anymore.
19903         
19904 2006-09-19  Chris Toshok  <toshok@ximian.com>
19905
19906         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
19907         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
19908         added cleanup to get MessageBox titles appearing again, which were
19909         broken by my earlier fix for caption-less/ControlBox-less windows.
19910
19911 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
19912
19913         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
19914           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
19915           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
19916           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
19917           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
19918           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
19919           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
19920           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
19921           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
19922           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
19923           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
19924             Inital import.
19925         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
19926           ToolStripButton.cs: Stubs needed for above.
19927         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
19928
19929 2006-09-15  Chris Toshok  <toshok@ximian.com>
19930
19931         * XplatUIX11.cs:
19932         - make the MessageQueues hashtable Synchronized.
19933         
19934         - SendMessage: if the Hwnd is owned by a different thread, use the
19935         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
19936         thread.  Fixes bug #79201.
19937
19938 2006-09-15  Chris Toshok  <toshok@ximian.com>
19939
19940         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
19941         ControlBox == false, we disallow maximize/minimize/close.  If the
19942         form Caption is "" we also disallow move (and get rid of the Title
19943         decoration).  Unfortunately, regardless of how things are set,
19944         we're stuck with the Title and WM menu.
19945
19946 2006-09-15  Chris Toshok  <toshok@ximian.com>
19947
19948         * Application.cs: add locking around the static message_filters
19949         ArrayList, part of #79196.
19950
19951 2006-09-15  Chris Toshok  <toshok@ximian.com>
19952
19953         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
19954         Form.ControlBox == false, the window has no titlebar nor resize
19955         handles.  fixes bug #79368.
19956
19957 2006-09-15  Chris Toshok  <toshok@ximian.com>
19958
19959         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
19960         >= 0.  Fixes bug #79370.
19961
19962 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
19963         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
19964         * Control.cs:
19965             Add properties: LayoutEngine, Margin, DefaultMargin.
19966             Add method: GetPreferredSize.
19967             Move layout logic from PerformLayout to layout engines. 
19968
19969 2006-09-13  Chris Toshok  <toshok@ximian.com>
19970
19971         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
19972         fix for #79326 broke #78718, so this change addresses that.
19973
19974         - in SendWMDestroyMessages remove the call to
19975         CleanupCachedWindows, since we might be recreating the control and
19976         need to maintain the references to right Hwnd handles.  Also, set
19977         the zombie flag to true for each of the children in the hierarchy
19978         instead of calling hwnd.Dispose.  This will cause GetMessage to
19979         ignore all events for the window except for DestroyNotify.
19980
19981         - In GetMessage, ignore messages except for DestroyNotify for
19982         zombie hwnds.
19983         
19984         * Control.cs: revert the is_recreating fix from the last
19985         ChangeLog.  It's definitely "right", but it breaks switching from
19986         an MDI form to a non-MDI form.  Will need to revisit that.
19987
19988         * Hwnd.cs: add a zombie flag, which means "the
19989         client_window/whole_window handles are invalid, but we're waiting
19990         for the DestroyNotify event to come in for them".  Set the flag to
19991         false explicitly if setting WholeWindow/ClientWindow, and also
19992         when Disposing.
19993         
19994 2006-09-13  Chris Toshok  <toshok@ximian.com>
19995
19996         * XplatUIX11.cs: rework window destruction slightly.
19997
19998         - when destroying the windows associated with a control, we don't
19999         need 2 separate XDestroyWindow calls.  Just the one for the
20000         whole_window (or for client_window if whole_window is somehow
20001         IntPtr.Zero -- can this happen?) is enough.
20002
20003         - reworked SendWMDestroyMessages slightly, so we always dispose
20004         the child control hwnd's after sending the messages.
20005         
20006         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
20007         the two places it was used (one was even using hwnd.Handle and the
20008         other hwnd.client_window.  ugh), adding another call in
20009         SendWMDestroyMessages.  We need this new call because now the
20010         DestroyNotify events in the queue will be ignored for the child
20011         controls (as their hwnd's were disposed, and the window id's
20012         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
20013
20014         - this fixes bug #79326.
20015
20016 2006-09-13  Chris Toshok  <toshok@ximian.com>
20017
20018         * Control.cs: don't always set is_recreating to false at the end
20019         of RecreateHandle, since sometimes we're not done (and won't be
20020         until WndProc handles the WM_DESTROY message).  Also, set
20021         is_recreating to false in the WM_DESTROY handling code.  Part of
20022         the fix for bug #79326.
20023
20024 2006-09-13  Miguel de Icaza  <miguel@novell.com>
20025
20026         * X11DesktopColors.cs: Start the droppage of debugging messages.
20027
20028         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
20029
20030 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
20031
20032         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
20033
20034 2006-09-12  Chris Toshok  <toshok@ximian.com>
20035
20036         * DataGrid.cs (get_ListManager): if the list_manager is null, try
20037         to create it using SetDataSource.  Fixes bug #79151.
20038
20039 2006-09-11  Chris Toshok  <toshok@ximian.com>
20040
20041         * XEventQueue.cs: add a DispatchIdle property.
20042
20043         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
20044         either the queue is null, or the queue has DispatchIdle set to
20045         true.
20046         (DoEvents): set queue.DispatchIdle to false around the
20047         peek/translate/dispatch message loop in this method.  This keeps
20048         Application.Doevents from emitting idle events.  Part of the fix
20049         for #78823.
20050
20051 2006-09-11  Chris Toshok  <toshok@ximian.com>
20052
20053         * DataGrid.cs (set_DataSource): make this work for both the
20054         winforms/datagrid test and ReportBuilder.  It seems as though when
20055         we've created a ListManager (or maybe it's if we have a
20056         BindingContext?), when we set the DataSource it clears the
20057         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
20058         #79333.
20059
20060 2006-09-11  Chris Toshok  <toshok@ximian.com>
20061
20062         * XplatUIX11.cs: deal with queue being null, which happens in all
20063         the Clipboard functions.  Fixes one of the two problems mentioned
20064         in #78612.
20065
20066 2006-09-11  Chris Toshok  <toshok@ximian.com>
20067
20068         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
20069         button on various spots (including outside the menu) works closer
20070         to MS, and doesn't crash.  Fixes #79343.
20071
20072 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
20073
20074         * ListView.cs: Do not initialize item_sorter in init. To match MS,
20075         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
20076         and the internal comparer is set. When a new ListViewItemSorter is set,
20077         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
20078         was specified. No further processing is necessary if SortOrder is set
20079         to it's current value. If Sorting is modified to None, and View is
20080         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
20081         (either custom or our internal ItemComparer) to null, on 1.0 profile
20082         only set item_sorter to null if its our internal IComparer. If Sorting
20083         is modified to Ascending or Descending, then use our internal IComparer
20084         if none is set, and if the current IComparer is our internal one then:
20085         on 2.0 profile always replace it with one for new Sorting, and on 1.0
20086         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
20087         Enum.IsDefined to verify whether a valid View value is specified in
20088         its setter. Automatically sort listview items when listview is
20089         created. In Sort, do nothing if ListView is not yet created, or if
20090         no item_sorter is set (no Sorting was set, Sorting was explicitly set
20091         to None or ListViewItemSorter was set to null). Added Sort overload
20092         taking a bool to indicate whether the ListView should be redrawn when
20093         items are sorted (we use this in ListViewItemCollection to avoid double
20094         redraws). Modified our internal IComparer to take the sort order into
20095         account. In Add and AddRange methods of ListViewItemCollection, also
20096         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
20097         view), but use overload with noredraw option to avoid double redraw.
20098         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
20099         true when View is Tile, and do the same when attempting to set View to
20100         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
20101         for selected/checked indices, as it involves overhead when sorting is
20102         done while these collections are not used all that often. Instead
20103         we'll build the indices on demand. Modified IList implementation of
20104         CheckedIndexCollection to use public methods if object is int.
20105         Modified CheckedListViewItemCollection to hide checked items if
20106         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
20107         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
20108         IList implementation in SelectedIndexCollection to use public methods
20109         if object is int. Modified SelectedListViewItemCollection to hide
20110         selected items if listview is not yet created.
20111         * ListViewItem.cs: CheckedIndices list no longer needs to be
20112         maintained separately (see ListView changes). Also clone font, fixes
20113         test failure.
20114
20115 2006-09-11  Mike Kestner  <mkestner@novell.com>
20116
20117         * ComboBox.cs: if we are updating the contents of the currently
20118         selected index, refresh the control or the textbox selection.
20119         [Fixes #79066]
20120
20121 2006-09-11  Mike Kestner  <mkestner@novell.com>
20122
20123         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
20124         the 'specified' logic has been moved there.  This seems like a bug 
20125         in Control.cs, since our current SetBoundsCore completely ignores 
20126         the specified parameter.  Peter's commit seems to indicate that is 
20127         the way the MS control implementation works.  [Fixes #79325]
20128
20129 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
20130
20131         * XplatUI.cs: Set default_class_name to be composed
20132         of current domain id. This allows MWF to be loaded in multiple
20133         domains on Win32.
20134
20135 2006-09-09  Miguel de Icaza  <miguel@novell.com>
20136
20137         * X11Keyboard.cs: If we are unable to obtain the input method, do
20138         not call CreateXic to create the input context.   Should fix
20139         #78944/79276.
20140
20141 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
20142
20143         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
20144           Simplified gnome support by adding more pinvokes to get the
20145           icon for a file or mime type.
20146
20147 2006-09-08  Jackson Harper  <jackson@ximian.com>
20148
20149         * MenuAPI.cs: Deslect popup context menu items before closing the
20150         window, so that you don't see the previously selected item
20151         selected when you reopen the menu.
20152         * TextControl.cs: Update the cursor position even if we don't have
20153         focus.  This fixes typing in things like the ComboBox.  I'm not
20154         totally sure we should always set the visibility if we don't have
20155         focus, but couldn't find any corner cases where the cursor showed
20156         up when it shouldn't.
20157
20158 2006-09-08  Chris Toshok  <toshok@ximian.com>
20159
20160         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
20161         our arrays are length 256.  & 0xff before indexing.  Fixes the
20162         crash in bug #78077.
20163         
20164 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20165
20166         * ThemeWin32Classic.cs: 
20167         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
20168         is true. Handle that check box too.
20169
20170 2006-09-07  Chris Toshok  <toshok@ximian.com>
20171
20172         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
20173         79244.
20174
20175 2006-09-07  Chris Toshok  <toshok@ximian.com>
20176
20177         * Control.cs: in set_BackColor only do the work if
20178         background_color != value.
20179
20180         * XplatUIX11.cs: move the clearing of invalid areas (both client
20181         and nc) to the same block of code where we set (nc_)expose_pending
20182         to false.  That is, move it from PaintEventEnd to PaintEventStart,
20183         so things that cause invalidates from within OnPaint will trigger
20184         another call to OnPaint.  Fixes bug #79262.
20185
20186 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
20187
20188         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
20189         * FileDialog.cs: Fix typo
20190
20191 2006-09-07  Jackson Harper  <jackson@ximian.com>
20192
20193         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
20194         for tab pages if they have any.
20195
20196 2006-09-06  Mike Kestner  <mkestner@novell.com>
20197
20198         * Splitter.cs: use the "current" rect when finishing drag handle
20199         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
20200
20201 2006-09-06  Mike Kestner  <mkestner@novell.com>
20202
20203         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
20204         support offset splitters. [Fixes #79298]
20205
20206 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
20207
20208         * Mime.cs: Fixed a bug that could override the global mime type
20209           result.
20210
20211 2006-09-05  Jackson Harper  <jackson@ximian.com>
20212
20213         * TabControl.cs: Better calculation method for setting the slider
20214         pos. Prevents crashes on really wide tabs.
20215         - Draw Image on tab pages if an image list is used.
20216
20217 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20218
20219         * MonthCalendar.cs: When Font changes, the Size should be
20220         updated to fit the new font's space requirements.
20221
20222 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
20223
20224         * ListBox.cs: If the items are cleared with Items.Clear set
20225           top_index to 0.
20226
20227 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20228
20229         * MonthCalendar.cs: Handle arrow keys as input keys. Also
20230         fire DateChanged event instead of DateSelected event when
20231         the date was changed by keyboard interaction.
20232
20233 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20234
20235         * DateTimePicker.cs: Handle DateChanged for the associated
20236         month_calendar control, and set month_calendar.Font from 
20237         OnFontChanged method, as well as resize the height of the
20238         control when needed. Make PreferredHeight proportional.
20239
20240 2006-09-01  Chris Toshok  <toshok@ximian.com>
20241
20242         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
20243         properties.
20244
20245         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
20246
20247 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
20248
20249         * FileDialog.cs: Set ClientSize instead of window size, to allow space
20250           for decorations (Fixes #79219)
20251
20252 2006-09-01  Mike Kestner  <mkestner@novell.com>
20253
20254         * ComboBox.cs: first stab at sorting plus some selection handling
20255         fixes to bring us more in line with MS behavior.  Also switches back
20256         to index based selection.  Alternative patches for index-based 
20257         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
20258         and latency@gmx.de on bug 78848.  I assume they were similar to this
20259         code I've had simmering in my tree forever.
20260         [Fixes #78848]
20261
20262 2006-09-01  Chris Toshok  <toshok@ximian.com>
20263
20264         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
20265         when setting list position guard against ending up with a -1 index
20266         (the other part of the fix for #78812).  Should probably make sure
20267         we don't need the analogous fix in the ItemDeleted case.
20268
20269         * DataGrid.cs:
20270         - in SetDataSource, work around the fact that the way
20271         OnBindingContextChanged is invoked will cause us to re-enter this
20272         method.  I'll remove the hack once I investigate
20273         OnBindingContextChanged.
20274
20275         - fix the logic in set_DataSource and set_DataMember (basically
20276         what to do if the other of the two is null.)
20277         
20278         - in OnListManagerItemChanged, we need to take into account the
20279         edit row when deciding whether or not to call RecreateDataGridRows
20280         (part of the fix for #78812).
20281
20282 2006-09-01  Jackson Harper  <jackson@ximian.com>
20283
20284         * Splitter.cs: Don't do anything if there is no control to affect
20285         (prevents us from crashing in weird tet cases).
20286         * TreeView.cs: Bounding box for the mouse movement reverting
20287         focus/selection back to previously selected node.  This matches
20288         MS, and makes the tree a lot more useable.
20289         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
20290         use clipping so they are not drawn.  This fixes when the control
20291         is set to have a transparent background, or if it was over an
20292         image.
20293
20294 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
20295
20296         * MimeIcon.cs: Improved handling for reading default icons when
20297           using gnome (2.16 made it necessary). Check and read svg icons
20298           first, then 48x48 and then 32x32 icons.
20299
20300 2006-08-31  Chris Toshok  <toshok@ximian.com>
20301
20302         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
20303         visible.
20304
20305         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
20306         ProcessKeyPreview.  Fixes part of #77806.
20307
20308         * DataGrid.cs: big patch.
20309
20310         - revert the queueing up of DataSource/DataMember if inside
20311         BeginInit/EndInit calls.  That's not the way the datagrid achieves
20312         its delayed databinding.  Instead, call SetDataSource in
20313         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
20314         #78811.
20315
20316         - Also, it wasn't mentioned in #78811, but the test case exhibits
20317         behavior that was lacking in our datagrid implementation - Columns
20318         that have mapping names that don't exist in the datasource's
20319         properties aren't shown.  Yuck.  To fix this I added the bound
20320         field to the column style, and basically any calculation to figure
20321         out anything about columns uses a loop to find the bound columns.
20322         still need to investigate if I can cache an array of the bound
20323         columns or if the indices must be the same.
20324
20325         - When setting CurrentCell, we no longer abort if the cell being
20326         edited was in the add row.  This fixes the other part of #77806.
20327
20328         - The new code also fixes #78807.
20329         
20330         * ThemeWin32Classic.cs: perpetrate the same disgusting
20331         column.bound field hack, and only render bound fields.
20332
20333 2006-08-31  Chris Toshok  <toshok@ximian.com>
20334
20335         * DataGridColumnStyle.cs: add bound field.  this field is true if
20336         the datasource has a property corresponding to the mapping name.
20337
20338         * DataGridTableStyle.cs: set the bound field on the column styles
20339         depending on whether or not we have a column for that property.
20340
20341 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
20342
20343         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
20344           splitter control (fixes #79228)
20345
20346 2006-08-31  Chris Toshok  <toshok@ximian.com>
20347
20348         * DataGridColumnStyle.cs: we need to delay the assignment of
20349         property descriptor until the last possible moment due to the lazy
20350         databinding stuff in the datagrid.  Also, fix the exceptions
20351         thrown by CheckValidDataSource to match MS.
20352
20353 2006-08-31  Jackson Harper  <jackson@ximian.com>
20354
20355         * Form.cs: When activated select the active control, if there is
20356         no active control, we select the first control.
20357         * XplatUIX11.cs: If there is no focus control when we get a
20358         FocusIn event, find the toplevel form and activate it.  This
20359         occurs when you popup a window, it becomes the focus window, then
20360         you close that window, giving focus back to the main window.
20361
20362 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20363
20364         * MonthCalendar.cs: 
20365         * ThemeWin32Classic.cs: Cache Font in bold style, as well
20366         as StringFormat with Center alignments in MonthCalendar,
20367         instead of creating new ones when drawing the control. 
20368         Also, draw the month name in bold style.
20369
20370 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
20371
20372         * Control.cs:
20373           - PerformLayout(): It would seem MS performs the fill even if the 
20374             control is not visible (part of #79218 fix)
20375           - ResetBackColor(): Use the setter to reset the color, to allow
20376             overriders to catch the change.
20377         * Form.cs:
20378           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
20379           - CreateHandle(): dito (part of $79218 fix)
20380           - Don't set an icon if we have a dialog
20381         * ScrollableControl.cs:
20382           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
20383           - ScrollIntoView(): No need to scroll if control is already visible
20384             (resolves fixme and fixes #79218)
20385
20386 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20387
20388         * MonthCalendar.cs: Change proportions in SingleMonthSize
20389         to match the aspect of the original control.
20390
20391 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
20392
20393         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
20394           get updated when they get maximized.
20395
20396 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
20397
20398         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
20399
20400 2006-08-29  Chris Toshok  <toshok@ximian.com>
20401
20402         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
20403
20404 2006-08-29  Jackson Harper  <jackson@ximian.com>
20405
20406         * TreeView.cs: Need to track selected node and highlighted node,
20407         they aren't always the same thing, when the mouse is down on a
20408         node it is hilighted, but not selected yet.
20409         - Do the HideSelection stuff right
20410         - Need to focus on rbutton mouse down. And redraw selection when
20411         right click is mouse upped.
20412
20413 2006-08-29  Mike Kestner  <mkestner@novell.com>
20414
20415         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
20416         when SubItems.Count < Columns.Count.  [Fixes #79167]
20417
20418 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
20419
20420         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
20421
20422 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
20423
20424         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
20425           from X. Only send based on ConfigureNotify if we don't have the
20426           correct location in hwnd (if the window manager moved us)
20427
20428 2006-08-28  Mike Kestner  <mkestner@novell.com>
20429
20430         * ListView.cs: remove a TODO. 
20431         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
20432         [Fixes ListView part of #79166]
20433
20434 2006-08-28  Mike Kestner  <mkestner@novell.com>
20435
20436         * ListView.cs: move wheel handler to parent since it is focused
20437         instead of the item_control now.  [Fixes #79177]
20438
20439 2006-08-28  Mike Kestner  <mkestner@novell.com>
20440
20441         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
20442         when the control is focused. [Fixes #79171]
20443
20444 2006-08-28  Mike Kestner  <mkestner@novell.com>
20445
20446         * ListView.cs: size the item and header controls for empty and
20447         unscrollable views.
20448         * ThemeWin32Classic.cs: draw disabled backgrounds.
20449         [Fixes #79187]
20450
20451 2006-08-28  Chris Toshok  <toshok@ximian.com>
20452
20453         * Form.cs: remove unused "active_form" static field.
20454
20455         * Hwnd.cs: lock around accesses to static windows collection.
20456
20457         * Application.cs: lock threads in Exit ().
20458
20459 2006-08-28  Chris Toshok  <toshok@ximian.com>
20460
20461         * NativeWindow.cs: lock around accesses to window_collection.
20462         
20463 2006-08-28  Chris Toshok  <toshok@ximian.com>
20464
20465         * Control.cs: err, fix this the right way, by locking on controls
20466         when using it.  not by making it synchronized.
20467
20468 2006-08-28  Chris Toshok  <toshok@ximian.com>
20469
20470         * Control.cs: make the static "controls" field synchronized, as it
20471         gets updated from multiple threads.
20472
20473 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
20474
20475         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
20476           Prevent other threads from exiting when calling thread sets quit state.
20477         * XEventQueue.cs: Added PostQuitState property
20478
20479 2006-08-27  Chris Toshok  <toshok@ximian.com>
20480
20481         * AsyncMethodData.cs: add a slot for the window handle.
20482
20483         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
20484         window (the destination control's window, not the foster window).
20485
20486         * Control.cs (BeginInvokeInternal): store the window's handle in
20487         the AsyncMethodData.
20488         
20489
20490 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
20491
20492         * XplatUIX11.cs:
20493           - PostQuitMessage: Removed resetting S.D display handle, we might have
20494             another loop started after calling PostQuitMessage (Fixes #79119)
20495           - Created destructor to reset S.D handle
20496
20497 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
20498
20499         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
20500
20501 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20502
20503         * TextControl.cs (Insert): Update the caret position even if we don't
20504           have a handle yet, just don't call the driver in that case.
20505         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
20506           to the end of the new selection text (Fixes #79184)
20507
20508 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20509
20510         * Form.cs (Activate): Only activate if the handle is created)
20511         * Control.c:
20512           - Mark window as invisible when it's disposed
20513           - Check if window handle is created when setting window visible, 
20514             instead of relying just on the is_created variable
20515           - Check if object is disposed when creating the control (Fixes #79155)
20516
20517 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20518
20519         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
20520           when allowing layout again. Otherwise we re-generate the anchoring 
20521           distance to the border again and actually alter what the user wanted
20522           This is ugly, it'd be better if we used DisplayRectangle instead of
20523           ClientRectangle for Control.UpdateDistances, but that causes us to
20524           have other problems (initial anchoring positons would be wrong)
20525           (Fixes #78835)
20526
20527 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20528
20529         * Control.cs:
20530           - The size and location setters shouldn't go directly to 
20531             SetBoundsCore, but to SetBounds, which triggers layout on the
20532             parent, then calls SetBoundsCore. (Related to fix for #78835)
20533           - SetBounds: Moved actual location update code into this function
20534             from SetBoundsCore, to match MS. Added call to PerformLayout if
20535             we have a parent (to trigger resizing of anchored parents if the 
20536             child size has changed (see testcase for #78835) 
20537         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
20538           new control code
20539         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
20540
20541 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20542
20543         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
20544           System.Drawing when a toplevel window gets closed; there might
20545           be other toplevel windows belonging to the same app (Fixes #78052)
20546
20547 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
20548
20549         * FileDialog.cs: After reading FileDialog settings from mwf_config
20550           use Desktop prefix only if a real folder doesn't exist anymore.
20551         * FontDialog.cs: Added char sets.
20552           It is now possible to select the font, size or style with the
20553           textboxes.
20554
20555 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
20556
20557         * PrintPreviewDialog.cs: Use assembly name constants.
20558
20559 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20560
20561         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
20562           scrollbar from whacking it's buttons)
20563
20564 2006-08-24  Chris Toshok  <toshok@ximian.com>
20565
20566         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
20567         in this patch (aggregating setting Left/Top/Width/Height to
20568         setting Bounds on the scrollbars), but the crux of the fix is in
20569         Recalculate, where we scroll by the remaining scroll_position if
20570         we're hiding a scrollbar.  The 2*$5 reward in the comment is
20571         serious.
20572
20573 2006-08-24  Jackson Harper  <jackson@ximian.com>
20574
20575         * MdiClient.cs:
20576         * MdiWindowManager.cs: If the form is made a non-mdi window we
20577         need to remove the form closed event so that closing forms works
20578         correctly.
20579
20580 2006-08-24  Jackson Harper  <jackson@ximian.com>
20581
20582         * Control.cs: Make IsRecreating internal so that the driver can
20583         check it
20584         - Temporarily remove the Hide when controls are removed, its
20585         making a whole bunch of things not work because visibility isn't
20586         getting reset elsewhere correctly
20587         * Form.cs: Need to do a full handle recreation when the mdi parent
20588         is set.
20589         * XplatUIX11.cs: If we are recreating handles don't dispose the
20590         HWNDs.  What was happening is the handles were being recreated in
20591         SendWMDestroyMessages, but then flow continued on in that method
20592         and destroyed the new handles.
20593
20594 2006-08-23  Jackson Harper  <jackson@ximian.com>
20595
20596         * Form.cs: MdiClient is always at the back of the bus
20597         * Control.cs: When the order of items in the collection is changed
20598         we need to reset the all_controls array
20599         - do the same sorta setup thats done when adding a control when a
20600         control is set on the collection.
20601
20602 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
20603
20604         * TextBoxBase.cs (get_Text): Return an empty array if our document
20605           is empty (fixes #79052)
20606
20607 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20608
20609         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
20610           on WM_SYSCHAR messages (fixes #79053)
20611
20612 2006-08-23  Chris Toshok  <toshok@ximian.com>
20613
20614         * DataGrid.cs: fix flickering when scrolling vertically.
20615
20616 2006-08-23  Chris Toshok  <toshok@ximian.com>
20617
20618         * DataGrid.cs (EndEdit): only invalidate the row header when we
20619         need to.
20620
20621 2006-08-23  Chris Toshok  <toshok@ximian.com>
20622
20623         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
20624         methods.  fixes the flicker when scrolling around.
20625
20626 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20627
20628         * FileDialog.cs: Making sure the control is created before we get a 
20629           chance to use it with BeginInvoke (Fixes #79096)
20630
20631 2006-08-23  Chris Toshok  <toshok@ximian.com>
20632
20633         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
20634         width to use when painting the rows.
20635
20636 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20637
20638         * TextBoxBase.cs:
20639           - Throw ArgumentException if a negative value is passed to SelectionLength
20640           - Update the selection end if start is moved. end needs to be always
20641             after start. (Fixes #79095)
20642           - Track selection length; MS keeps the selection length even if start
20643             is changed; reset on all other operations affection selection
20644
20645 2006-08-22  Jackson Harper  <jackson@ximian.com>
20646
20647         * TreeView.cs: Make sure both scrollbars get displayed and sized
20648         correctly when the other bar is visible.
20649         - Use the original clip rectangle for checking if the area between
20650         the two scrollbars is visible, not the viewport adjusted clipping
20651         rectangle.
20652
20653 2006-08-22  Jackson Harper  <jackson@ximian.com>
20654
20655         * Binding.cs: We don't use IsBinding because it requires the
20656         control to be created, which really shouldn't be necessary just to
20657         set a property on the control.
20658
20659 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20660
20661         * ComboBox.cs: Some CB.ObjectCollection methods must throw
20662         ArgumentNullReferenceException when the argument is null.
20663
20664 2006-08-21  Jackson Harper  <jackson@ximian.com>
20665
20666         * Timer.cs: Track the thread that the timer is started in (NOT
20667         CREATED), this way messages for it will only be triggered on its
20668         queue.
20669         * XEventQueue.cs: Track the timers here, this makes timers per
20670         thread, like MS.
20671         * XplatUIX11.cs: The timers are moved to the XEventQueue.
20672
20673 2006-08-19  Chris Toshok  <toshok@ximian.com>
20674
20675         * XplatUIX11.cs: after further communication with pdb, we get the
20676         best of both worlds.  SetZOrder working for un-Mapped windows, and
20677         no X errors for un-mapped windows.
20678
20679 2006-08-19  Chris Toshok  <toshok@ximian.com>
20680
20681         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
20682         as it was causing pdn toolbars to not have the correct stacking.
20683
20684 2006-08-18  Mike Kestner  <mkestner@novell.com> 
20685
20686         * ListView.cs : guard against negative ClientArea.Width in scrollbar
20687         calculation.  Not sure why control should ever be setting a negative
20688         width though.  Fixes #78931.
20689
20690 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20691
20692         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
20693         null items in ObjectCollection class.
20694         * ListBox.cs.: Likewise.
20695
20696 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
20697
20698         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
20699           as the base method in ThemeWin32Classic should work fine.
20700           Fixed bug #78607.
20701
20702 2006-08-18  Jackson Harper  <jackson@ximian.com>
20703
20704         * Binding.cs: When validating if the value entered doesn't convert
20705         properly reset to the old value.
20706         * RadioButton.cs: Don't fire click when we get focus.
20707
20708 2006-08-18  Jackson Harper  <jackson@ximian.com>
20709
20710         * FileDialog.cs: Paint the selection on the directory combobox the
20711         same way as on MS. 
20712
20713 2006-08-17  Jackson Harper  <jackson@ximian.com>
20714
20715         * ErrorProvider.cs: Don't allow the error control to be selected.
20716         * Control.cs: Don't send the SetFocus messages, the control
20717         activation will do this, and if we do it blindly here validation
20718         does not work.
20719
20720 2006-08-17  Jackson Harper  <jackson@ximian.com>
20721
20722         * Control.cs:
20723         * ContainerControl.cs: Make validation events fire in the correct
20724         order.  TODO: For some reason the first validation event is not
20725         getting fired.
20726
20727 2006-08-17  Mike Kestner  <mkestner@novell.com> 
20728
20729         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
20730
20731 2006-08-17  Mike Kestner  <mkestner@novell.com> 
20732
20733         * ComboBox.cs : implement scroll wheel support for popped-down
20734         state. Fixes #78945. 
20735
20736 2006-08-17  Jackson Harper  <jackson@ximian.com>
20737
20738         * TreeView.cs: Specify treeview actions (old patch that didn't get
20739         committed for some reason).
20740         - Don't let the mouse wheel scroll us too far.  Just want to make
20741         the bottom node visible, not scroll it all the ways to the top.
20742
20743 2006-08-17  Jackson Harper  <jackson@ximian.com>
20744
20745         * XplatUIX11.cs: Mouse wheel events go to the focused window.
20746
20747 2006-08-17  Mike Kestner  <mkestner@novell.com> 
20748
20749         * ComboBox.cs : don't do mouseover selection in simple mode.
20750
20751 2006-08-16  Jackson Harper  <jackson@ximian.com>
20752
20753         * Form.cs: Fire the closing events for all the mdi child windows
20754         when a window is closed.  If the cancel args are set to true, the
20755         main window still gets the event fired, but it doesn't not close.
20756         * MdiWindowManager.cs: Do this closing cleanup in a Closed
20757         handler, instead of when the button is clicked, so cancelling the
20758         close works correctly.
20759         * ComboBox.cs: Send the mouse down to the scrollbar.
20760
20761 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20762
20763         * ListBox.cs: When passing 'null' to SelectedItem,
20764         set SelectedIndex to -1, to unselect items. This is the
20765         observed behaviour in .Net.
20766
20767 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
20768
20769         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
20770           MS flags saying there won't be any. (fixes #78800)
20771         * Control.cs (HandleClick): Made virtual
20772
20773 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
20774
20775         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
20776           cultures. Fixed bug #78399.
20777
20778 2006-08-16  Jackson Harper  <jackson@ximian.com>
20779
20780         * Form.cs: Use the MdiClients MdiChildren property to access
20781         MdiChildren instead of creating the array from the child controls.
20782         * MdiClient.cs: Maintain a separate array of the mdi children, so
20783         that insertion order is maintained when the Z-order is changed.
20784
20785 2006-08-16  Mike Kestner  <mkestner@novell.com> 
20786
20787         * ListView.cs : add an ItemComparer and default to it for sorting.
20788         Fixes #79076, but sorting needs a complete overhaul to be compat with
20789         MS.
20790
20791 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
20792
20793         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
20794
20795 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
20796
20797         * Hwnd.cs (Mapped): Properly traverse the tree
20798
20799 2006-08-15  Chris Toshok  <toshok@ximian.com>
20800
20801         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
20802         pass manager.Current.GetType() to ParseData.  It has to be the
20803         property type.  So, hold off doing the ParseData until we're in
20804         SetPropertyValue where we know the type.  This fixes the crash in
20805         #78821 but the textbox is still empty.
20806
20807 2006-08-15  Chris Toshok  <toshok@ximian.com>
20808
20809         * DataGrid.cs:
20810         - when we're scrolling, only call Edit() again if the
20811         current cell is still unobscured. Fixes bug #78927.
20812         - when handling mousedown on a cell, ensure the cell is visible
20813         before calling Edit.
20814         - remove the properties from DataGridRow, and remove the
20815         DataGridParentRow class altogether.
20816         
20817
20818 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
20819
20820         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
20821           fire OnTextChanged by ourselves. There's no point calling base,
20822           we don't set the base value anywhere else. Fixes #78773.
20823
20824 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20825
20826         * ListBox.cs: Call CollectionChanged when modifying
20827         an item from Items indexer, to update the actual items
20828         in the list box.
20829
20830 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20831
20832         * PrintDialog.cs: Small fixes for focus and a pair of checks,
20833         to match .Net behaviour.
20834
20835 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
20836
20837         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
20838
20839 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
20840
20841         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
20842
20843 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
20844
20845         * MessageBox.cs: Prevent potential NRE exception.
20846         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
20847
20848 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
20849
20850         * MessageBox.cs: Calculate the owner of a messagebox, also make
20851           it topmost. Fixes #78753
20852
20853 2006-08-14  Chris Toshok  <toshok@ximian.com>
20854
20855         * XplatUIX11.cs: A couple of fixes so that metacity will let us
20856         programmatically move windows.  first, set the PPosition hint as
20857         well as the USPosition hint.  Second include some code from pdb
20858         that sets the window type to NORMAL when we set the transient for
20859         hint.  This is because, in the absence of a window type, metacity
20860         thinks any window with TransientFor set is a dialog, and refuses
20861         to let us move it programmatically.  fascists.
20862
20863 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
20864
20865         * XplatUIX11.cs: When setting normal hints, take into consideration
20866           an different hints previously set so we don't delete them (fixes #78866)
20867
20868 2006-08-12  Chris Toshok  <toshok@ximian.com>
20869
20870         * ToolBarButton.cs: make Layout return a boolean, if something to
20871         do with the button's layout changed.
20872
20873         * ToolBar.cs:
20874         - add another parameter to Redraw, @force, which all existing
20875           calls set to true.
20876         - make the Layout function return a boolean which is true if the
20877           layout has actually changed.  Redraw now uses this (and @force)
20878           to determine when to invalidate.  At present the only place
20879           where @force can be false is the call from OnResize, when
20880           background_image == null.  So, resizing a toolbar when the
20881           layout doesn't change results in no drawing.
20882
20883 2006-08-12  Chris Toshok  <toshok@ximian.com>
20884
20885         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
20886         the VScrollBar and HScrollbar reversed.  oops.
20887
20888         * DataGrid.cs: fix the logic that assigns sizes to the implicit
20889         scrollbars.  we were assigning them twice (once in
20890         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
20891         therefore causing two scrollbar resizes (and redraws?) to happen
20892         per grid resize.
20893
20894 2006-08-12  Chris Toshok  <toshok@ximian.com>
20895
20896         * ToolBarButton.cs: redraw the entire button if the theme tells us
20897         to.
20898
20899         * Theme.cs: add ToolBarInvalidateEntireButton.
20900
20901         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
20902         buttons, just the border.
20903
20904         * ThemeNice.cs: redraw the entire toolbar button since we need to
20905         draw the highlight image.
20906
20907         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
20908         we need to redraw the entire button (not just the border).
20909
20910 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
20911
20912         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
20913           for vertical bars. Fixes the mismatches shown by #78513
20914
20915 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
20916
20917         * FileDialog.cs: If a saved/remembered path doesn't exist
20918           anymore, fall back to "Desktop".
20919
20920 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
20921
20922         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
20923           parent. It's apparently legal to not have one
20924         * XplatUIX11.cs:
20925           - SetZOrder: Don't try to set Z-Order on an unmapped window
20926           - CreateWindow: 0,0 are legal coordinates for a window. don't move
20927             it unless the coordinates are negative
20928
20929 2006-08-10  Mike Kestner  <mkestner@novell.com>
20930
20931         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
20932         when setting to null per msdn docs.  Fixes #78854.
20933
20934 2006-08-10  Chris Toshok  <toshok@ximian.com>
20935
20936         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
20937         flickering by setting a clip rectangle on the Graphics when we
20938         need to redraw just a particular menuitem.  Also, rename "OnClick"
20939         to "OnMouseDown" to reflect what it actually is.
20940         
20941         * Form.cs: track the OnMouseDown change.
20942
20943 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
20944
20945         * CommonDialog.cs: Properly inherit the CreateParams from the form
20946           and only change what we need. Fixes #78865
20947
20948 2006-08-10  Chris Toshok  <toshok@ximian.com>
20949
20950         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
20951         flickering in flat mode (and most of the flickering in general) by
20952         only invalidating the button border (and not the entire rectangle)
20953         when the state changes.  A couple of cases still flicker:
20954         ToggleButtons, and the dropdown arrow case when the user mouse
20955         ups.
20956
20957 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
20958
20959         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
20960           for german keyboards. Numlock state shouldn't affect the behaviour
20961           of the Del key. Fixes bug #78291.
20962
20963 2006-08-10  Chris Toshok  <toshok@ximian.com>
20964
20965         * ListControl.cs: remove the items.Clear line from BindDataItems,
20966         as this is the first thing done by both subclasses in their
20967         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
20968         passed -1, refresh the list.  This gets databinding working when
20969         the datasource is set on the list before the datasource is
20970         populated (as in wf-apps/ReportBuilder.)
20971
20972         * ComboBox.cs: remove the argument to BindDataItems.  This call
20973         should really go away, and be initiated by the ListControl code.
20974
20975         * ListBox.cs: same.
20976
20977 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
20978
20979         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
20980           if no data is in the document when the control is displayed
20981
20982 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
20983
20984         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
20985           yes (fixes #78806)
20986         * TextControl.cs: 
20987           - PositionCaret: Allow positioning of caret but don't call methods 
20988             requiring a handle if the window isn't created yet
20989           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
20990           - owner_HandleCreated: Don't position the caret, just update it's 
20991             location. User might have already set a different position
20992
20993 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
20994
20995         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
20996           windows. Screws up the returned coordinates for child windows. 
20997           Fixes #78825. I'm hoping this doesn't break something, since the
20998           code was explicitly put in 8 months ago, but no bug was attached.
20999           Menus still seem to work properly.
21000
21001 2006-08-08  Chris Toshok  <toshok@ximian.com>
21002
21003         * DataGrid.cs: make BeginInit/EndInit actually do what they're
21004         supposed to do - delay data binding until the EndInit call.  Also,
21005         make the table style collection's CollectionChangeAction.Refresh
21006         work properly.
21007
21008         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
21009         (with action = Refresh) when a consituent table's MappingName is
21010         changed.
21011
21012 2006-08-08  Chris Toshok  <toshok@ximian.com>
21013
21014         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
21015         Invalidate, since changing the text can change the size of the all
21016         toolbar buttons.
21017
21018 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
21019
21020         * Form.cs (AddOwnedForm): Still need to add the form to our listif
21021           we don't have it yet
21022
21023 2006-08-08  Chris Toshok  <toshok@ximian.com>
21024
21025         * PrintControllerWithStatusDialog.cs: don't .Close() the status
21026         dialog, as this causes X errors later on, since we actually
21027         destroy the window.  Instead, .Hide() it.
21028
21029 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
21030
21031         * ComboBox.cs: Added focus reflection for popup window
21032         * XplatUIX11.cs: 
21033           - Removed transient setting for non-app windows for now, not sure it
21034             was needed
21035           - Fixed logic checking if we have captions when deciding 
21036             override_redirect, WS_CAPTION is two bits and a 0 check was not
21037             sufficient
21038           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
21039             complicated
21040         * Form.cs: 
21041           - AddOwnedForm: Don't just add the form to the list, call the property
21042             to ensure the driver is informed about the ownership as well
21043           - CreateHandle: Set the TopMost status in the driver if we have an owner
21044         * XplatUI.cs: Fixed debug statement
21045
21046 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
21047         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21048           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
21049           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
21050           TrackBarRenderer.cs: Make constructor private.
21051         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
21052         * ProfessionalColorTable.cs: Make properties virtual.
21053
21054 2006-08-06  Duncan Mak  <duncan@novell.com>
21055
21056         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
21057         is not changing.
21058
21059 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21060         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21061           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
21062           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
21063           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
21064           Initial import of new 2.0 classes.
21065
21066 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21067         * Application.cs: Add 2.0 VisualStyles properties.
21068
21069 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
21070         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21071           XplatUIX11.cs: Create property to allow access to existing private
21072           variable "themes_enabled"
21073
21074 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21075
21076         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
21077         file size, as otherwise our class libraries fail using windows. Fixes
21078         bug #78759.
21079
21080 2006-08-04  Jackson Harper  <jackson@ximian.com>
21081
21082         * Form.cs:
21083         * XplatUIX11.cs: Move the toolwindow window manager creation into
21084         the X11 driver, this way on win32 we can let windows create/handle
21085         the toolwindows.
21086
21087 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21088
21089         * PrintDialog.cs: Remove some redundant checks, add some others,
21090         clean some code, and move the focus to the text boxes when the
21091         values are incorrect.
21092
21093 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
21094
21095         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
21096
21097 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
21098
21099         * NumericUpDown.cs: Setting the Minimum and Maximum is now
21100           handled correctly. Fixes bug #79001.
21101
21102 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21103
21104         * PrintDialog.cs: The "Copies" numeric up down must have
21105         set the Minimum property to 1; only if the value is bigger
21106         than 1, activate "Collate" check box. This is the behaviour of .Net.
21107         Also modify the Document elements only if it is not null.
21108
21109 2006-08-03  Jackson Harper  <jackson@ximian.com>
21110
21111         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
21112         length. (We have a larger array then actual node count).
21113                 
21114 2006-08-03  Jackson Harper  <jackson@ximian.com>
21115
21116         * ComboBox.cs: Don't show selection by default.
21117         - The SelectAll isn't needed here, since the focus code should do
21118         that
21119         - DDL style lists to manual selection drawing, so when they
21120         get/lose focus they have to invalidate.
21121
21122 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
21123
21124         * TextBoxBase.cs: Don't always show all selections by default.
21125
21126 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
21127         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
21128           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
21129           Fixed various typos.
21130
21131 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
21132
21133         * Control.cs: Removing the controls in a ControlCollection with
21134           Clear now hides the controls as expected. Fixes bug #78804. 
21135
21136 2006-08-03  Jackson Harper  <jackson@ximian.com>
21137
21138         * Control.cs: Revert previous focus patch, it breaks reflector.
21139
21140 2006-08-03  Jackson Harper  <jackson@ximian.com>
21141
21142         * ComboBox.cs: Cleanup selection and focus with the combobox.
21143         This also eliminates some duplicated keyboard code, since now
21144         everything is handled by the main class.
21145         - Make list selection work on mouse up instead of down, to match
21146         MS.
21147
21148 2006-08-02  Jackson Harper  <jackson@ximian.com>
21149
21150         * Control.cs: Setting focus needs to go through the whole
21151         selection mechanism.
21152
21153 2006-08-02  Chris Toshok  <toshok@ximian.com>
21154
21155         * PrintPreviewDialog.cs: change MinimumSize to use
21156         base.MinimumSize so it works.
21157
21158 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
21159
21160         * TextControl.cs:
21161           - UpdateCaret: Added sanity check in case caret isn't defined yet
21162           - Line.Delete: Now updating selection and caret markers if we're
21163             transfering a node (Properly fixes #78323)
21164           - SetSelectionEnd: Added sanity check
21165         * TextBoxBase.cs: Removed broken attempt to fix #78323
21166
21167 2006-08-01  Chris Toshok  <toshok@ximian.com>
21168
21169         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
21170         Close() call is handled in Form, not here.
21171
21172 2006-08-01  Chris Toshok  <toshok@ximian.com>
21173
21174         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
21175         layout/rendering.
21176
21177         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
21178         for sizes < 100% zoom.  The code now aggressively attempts to keep
21179         from calling document.Print (), and tries not to use the scaling
21180         g.DrawImage whenever possible (it still does if you scale to >
21181         100%, since usually that involves huge images).
21182
21183         * PrintPreviewControl.cs: hook up the close button.
21184
21185 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
21186         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
21187           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
21188           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
21189           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
21190           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
21191           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
21192           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
21193           Removed [Serializable] for 2.0 Event Handlers.
21194
21195 2006-07-31  Jackson Harper  <jackson@ximian.com>
21196
21197         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
21198         * TextControl.cs: Uncomment out the body of this method.
21199
21200 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
21201
21202         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
21203           standard cursors.
21204
21205 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21206
21207         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
21208           that embed TextBox and need selections visible even if textbox is not
21209           focused to enforce that behaviour.
21210         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
21211           selection drawing
21212
21213 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21214
21215         * TextControl.cs:
21216           - Added new SetSelectionStart/SetSelectionEnd overloads
21217           - Fixed viewport width assignment to be accurate
21218           - Adjusted alignment line shift calculations to allow cursor on right
21219             aligned lines to be always visible at the right border (like MS)
21220         * TextBoxBase.cs:
21221           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
21222           - TextBoxBase_SizeChanged: recalculating canvas on size changes
21223           - CalculateScrollBars: Use ViewPort size instead of window size, to
21224             properly consider space occupied by the border and scrollbars 
21225             (Fixes #78661)
21226           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
21227             calculations; no longer leaves artifacts
21228           - CaretMoved: Adjusted window scrolling to match MS and fixed several
21229             calculation bugs (Still missing right/center align calculations)
21230
21231 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
21232
21233         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
21234           use of both scroll rect and clip rect, as they do the same.
21235
21236 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
21237
21238         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
21239           in the event handler (fixes #78912)
21240
21241 2006-07-31  Chris Toshok  <toshok@ximian.com>
21242
21243         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
21244         grid.ListManager.Count, since grid.ListManager might be null.
21245         This of course begs the question "why are we drawing rows for a
21246         grid with no list manager (and therefor no rows)?"  Fixes the
21247         crash in bug #78929.
21248
21249 2006-07-31  Chris Toshok  <toshok@ximian.com>
21250
21251         * RelatedPropertyManager.cs: Don't always chain up to the parent
21252         ctor.  instead, call SetDataSource if the parent's position is !=
21253         -1.  Fixes the crash in #78822.
21254
21255 2006-07-31  Chris Toshok  <toshok@ximian.com>
21256
21257         * DataGrid.cs (get_ListManager): use field instead of property
21258         accessors for datasource and datamember.
21259         (RowsCount): make internal again.
21260         (OnMouseDown): end edits before resizing columns/rows.
21261         (OnMouseUp): restart edits after resizing columns/rows.
21262
21263 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
21264
21265         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
21266           This fixes the situation where the last set cursor is displayed
21267           whenever the mouse is over scrollbars.
21268
21269 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21270
21271         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
21272         Document properties, as well as initial values.
21273
21274 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
21275
21276         * XplatUIWin32.cs (SetBorderStyle): Setting both border
21277           and ClientEdge results in a 3-pixel border, which is
21278           wrong.
21279
21280 2006-07-28  Jackson Harper  <jackson@ximian.com>
21281
21282         * TreeNodeCollection.cs: Fix the clear method.
21283         - Fix the Shrink also
21284
21285 2006-07-27  Jackson Harper  <jackson@ximian.com>
21286
21287         * TreeView.cs: Make sure the visible order is computed when we
21288         attempt to size the scrollbars (for trees that mess with the
21289         scrolling when they shouldn't.
21290         - Make sure to give the scrollbars valid values.
21291
21292 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
21293
21294         * XplatUIX11.cs: Move motion compression code to where it
21295           has less performance impact
21296
21297 2006-07-26  Jackson Harper  <jackson@ximian.com>
21298
21299         * UpDownBase.cs: When the control is selected make the child
21300         controls non selectable, so that a click on them won't do a
21301         focus/unfocus cycle.
21302         - Don't give focus to the text box when the spinner is selected.
21303         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
21304
21305 2006-07-26  Chris Toshok  <toshok@ximian.com>
21306
21307         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
21308         satisfied with this solution.  If the bitmaps are small, we should
21309         just cache them in the PrintPreviewDialog and draw them here.
21310         Also, the layout is broken for the 2-up and 3-up cases.
21311
21312         * Theme.cs: add PrintPReviewControlPaint.
21313
21314         * PrintPreviewDialog.cs: first pass implementation.
21315
21316         * PrintPreviewControl.cs: first pass implementation.  No
21317         scrollbars yet.
21318
21319         * PrintDialog.cs: only validate fields if that particular portion
21320         of the UI is enabled.  Also, set the document's controller to a
21321         PrintControllerWithStatusDialog wrapping the document's print
21322         controller.
21323
21324         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
21325         bring up a SaveFileDialog (i hope we don't want to match the
21326         behavior of the crappy windows file entry) and set the
21327         PrinterSettings.PrintFileName accordingly.
21328
21329 2006-07-26  Jackson Harper  <jackson@ximian.com>
21330
21331         * ContainerControl.cs: Add a field that disables auto selecting
21332         the next control in a container when the container is activated.
21333         * UpDownBase.cs: Don't select the text box when the up down is
21334         selected.
21335
21336 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
21337
21338         * XEventQueue.cs: Added methods for peeking (used for compression
21339           of successive events)
21340         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
21341           mouse move events (fixes #78732)
21342
21343 2006-07-25  Jackson Harper  <jackson@ximian.com>
21344
21345         * UpDownBase.cs: Use an internal class for the textbox so that we
21346         can control focus.  the updown control should always have focus,
21347         if either the text area or the buttons are clicked.
21348         - Send the key messages to the textbox, since it never actually
21349         has focus
21350         - Activate and decativate the textbox caret.
21351
21352 2006-07-24  Jackson Harper  <jackson@ximian.com>
21353
21354         * Control.cs: Use the directed select when selecting a control,
21355         this way the container controls override will get called and the
21356         whole ActiveControl chain will get triggered.  TODO: probably need
21357         to make sure this gets done everywhere instead of the old
21358         Select(Control).
21359         * ContainerControl.cs: Implement the directed Select method to
21360         find and activate the correct child control.    
21361         
21362 2006-07-22  Mike Kestner  <mkestner@novell.com>
21363
21364         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
21365         menu handling code so that clicks without a grab work too.
21366         [Fixes #78914]
21367
21368 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
21369
21370         * FileDialog.cs: Enable the BackButton when dirstack has one element.
21371           Added some small optimizations.
21372
21373 2006-07-21  Matt Hargett  <matt@use.net>
21374
21375         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
21376
21377 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
21378
21379         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
21380           tests pass and match MS in some strange border cases.
21381
21382 2006-07-21  Chris Toshok  <toshok@ximian.com>
21383
21384         * ThemeWin32Classic.cs: handle drawing of the relation links and
21385         parent row buttons.
21386
21387         * Theme.cs: change args to DataGridPaintParentRow.
21388
21389         * DataGrid.cs: Don't use controls for the relation links and
21390         parent buttons, so we have to handle all their interactions in
21391         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
21392         when we're navigating through child tables, so we can reinstate
21393         selection, expanded state, current cell, etc.
21394
21395 2006-07-20  Chris Toshok  <toshok@ximian.com>
21396
21397         * ToolBar.cs: When we redraw a button, for whatever reason,
21398         there's no reason to redraw the entire toolbar.  Also, don't call
21399         Control.Refresh from within Redraw, as it's much heavier than
21400         Invalidate (which is really what we want).
21401
21402 2006-07-20  Chris Toshok  <toshok@ximian.com>
21403
21404         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
21405         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
21406         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
21407         traces from within a debug IBindingList datasource
21408         (in mono/winforms/datagrid) for *days*, I've finally gotten things
21409         to work in a similar fashion.
21410
21411 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21412
21413         * ListBox.cs: Don't call Sort () when setting 
21414         the Sorted property to false (avoid an unnecessary sort).
21415
21416 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21417
21418         * ListControl.cs: DataSource should throw an ArgumentException
21419         instead of a normal exception when the argument is not of the 
21420         correct type.
21421
21422 2006-07-20  Mike Kestner  <mkestner@novell.com>
21423
21424         * Control.cs: add InternalPreProcessMessage to allow us to steal
21425         key events before MWF gets its paws on them.  Adapted from a
21426         suggestion by eno.
21427         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
21428         up/down/left/right navigation. Override the new internal control
21429         method to steal the events since they never make it to WndProc.
21430         * ToolBarButton.cs: don't worry about pushed when setting hilight
21431         since the drawing code prefers pushed to hilight. Invalidate on 
21432         Hilight changes. Fixes #78547 and #78525.
21433
21434 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
21435
21436         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
21437           the canvas size. Fixes #78868
21438
21439 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
21440
21441         * Splitter.cs: Track requested split position until first layout
21442           is performed. Fixes #78871
21443
21444 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
21445
21446         * Application.cs: Removed code that forces 1.x for the version
21447           number if the version started with 0. Not sure why that code was
21448           there and I couldn't find any bugs that indicated we needed it.
21449           Fixes #78869
21450
21451 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
21452
21453         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
21454           ResetDefaults(), just write some output to the console until it's
21455           implemented. Fixes bug #78907 for now. Eliminated two warnings.
21456
21457 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
21458
21459         * PropertyGridView.cs: set StartPosition of drop down forms
21460         so they appear in correct initial spot.  Fixes #78190.
21461
21462 2006-07-19  Mike Kestner  <mkestner@novell.com>
21463
21464         * ThemeWin32Classic.cs: use parent background color when drawing
21465         flat toolbars.  Restructure the conditionals to make sure non-flat
21466         non-Divider toolbars are filled too.  Fixes #78837.
21467
21468 2006-07-19  Mike Kestner  <mkestner@novell.com>
21469
21470         * ListBox.cs: Sort on collection changes even if the handle
21471         isn't created yet.  Fixes #78813.
21472
21473 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21474
21475         * ListControl.cs: DisplayMember should never be null,
21476         and now we assign String.Empty when null is passed to it (this
21477         is the .Net way).
21478
21479 2006-07-17  Mike Kestner  <mkestner@novell.com>
21480
21481         * ListViewItem.cs: restructure Font and subitem Font handling 
21482         to hold a specific font and refer back to owner on null.
21483         Fixes #78761.
21484
21485 2006-07-17  Mike Kestner  <mkestner@novell.com>
21486
21487         * ToolBar.cs: bandaid for side-effect of previous patch which was
21488         discarding explicit heights for non-AutoSize toolbars.  Need to
21489         extend my format tester to deal with AutoSize=false. Fixes #78864.
21490
21491 2006-07-15  Jackson Harper  <jackson@ximian.com>
21492
21493         * LabelEditTextBox.cs:
21494         * TreeView.cs: Use a new LabelEdit class for node editing, this
21495         class automatically 'closes' itself when it gets the enter key or
21496         loses focus.
21497         - Use the client rectangle when setting the trees scrollbars, so
21498         border style is taken into account.
21499         
21500 2006-07-14  Jackson Harper  <jackson@ximian.com>
21501
21502         * TreeNode.cs:
21503         * TreeView.cs: Make the editing work similar to MSs, firing the
21504         events correctly and ending edits correctly.
21505
21506 2006-07-14  Mike Kestner  <mkestner@novell.com>
21507
21508         * ToolBarButton.cs:
21509         * ToolBar.cs: layout restructuring and redraw enhancements to support
21510         formatting changes gracefully, like setting TextAlign, ImageList, 
21511         ButtonSize, and Appearance.  Handles explicit button sizing quirks
21512         of the MS controls.  Things like flat toolbars ignoring button size
21513         but becoming constant sized at the largest button's size.  Normal
21514         toolbars with an image set cannot be shrunk smaller than the image,
21515         but text can be clipped/ignored.
21516         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
21517         is zero.  Seems like DrawString should be smart enough to not put
21518         anything on screen though. Also trim labels and ellipsize at the char
21519         boundary, not word.
21520         Fixes #78711 and #78483.
21521
21522 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
21523
21524         * FolderBrowserDialog.cs: Disable "New Folder" button and
21525           "New Folder" contextmenu menuitem if a folder like "My Computer"
21526           is selected.
21527
21528 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
21529
21530         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
21531         * FolderBrowserDialog.cs:
21532           - Use MWFConfig to store and read size and position settings
21533           - Added code to create a new folder (button or context menu).
21534             Use TreeView labeledit to change the name of the new folder.
21535
21536 2006-07-14  Jackson Harper  <jackson@ximian.com>
21537
21538         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
21539         when the tree is scrolled we end editing.
21540
21541 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
21542
21543         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
21544           Down arrows
21545
21546 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
21547
21548         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
21549         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
21550         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
21551         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
21552         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
21553         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
21554         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
21555         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
21556         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
21557         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
21558         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
21559         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
21560         ListViewItemSelectionChangedEventHandler.cs,
21561         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
21562         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
21563         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
21564         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
21565         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
21566         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
21567         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
21568         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
21569         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
21570         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
21571         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
21572         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
21573         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
21574         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
21575         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
21576         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
21577         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
21578         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
21579         WebBrowserNavigatingEventHandler.cs, 
21580         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
21581
21582 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
21583
21584         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
21585         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
21586         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
21587         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
21588         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
21589         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
21590         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
21591         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
21592         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
21593         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
21594         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
21595         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
21596         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
21597         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
21598         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
21599         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
21600         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
21601         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
21602         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
21603         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
21604         ListViewItemStates.cs, MaskFormat.cs: Added
21605
21606 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
21607
21608         * PropertyGridView.cs: Fix keyboard navigation of drop down.
21609         Patch from eno for bug 78558.
21610         
21611 2006-07-13  Jackson Harper  <jackson@ximian.com>
21612
21613         * TreeView.cs: When an edit is finished make sure that the
21614         selected node is visible.
21615         - When setting the top/bottom use the scrollbars is_visible, so
21616         everything will be set correctly even if the tree isn't visible
21617         yet.
21618
21619 2006-07-13  Jackson Harper  <jackson@ximian.com>
21620
21621         * ComboBox.cs: Revert the item->index part of my previous patch.
21622         * TreeView.cs: Use LostFocus instead of Leave for detecting when
21623         the edit box has lost focus (duh).
21624         - Just make the edit box not visible when we get return, that will
21625         take the focus, which will call EndEdit
21626         * TreeNode.cs When we start editing, notify the treeview.
21627
21628 2006-07-12  Jackson Harper  <jackson@ximian.com>
21629
21630         * ComboBox.cs: Clear out old items before setting the item list.
21631         This prevents databound controls from having their items added
21632         twice.
21633         - Switch the combobox to use indices whereever possible instead of
21634         using Item's.  This allows usto navigate through lists that have
21635         more then one item with the same string value (ie a, b, b, a).
21636         - Scroll the listboxes scrollbar when a non visible item is
21637         highlighted
21638         - Allow keypress to cycle through all the possible values. For
21639         example if you have b1, b2, b3 and hold down the B key all the
21640         values will be cycled through.
21641         
21642 2006-07-12  Jackson Harper  <jackson@ximian.com>
21643
21644         * TextBoxBase.cs:
21645         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
21646         this using the internal methods.
21647         * Control.cs: Add OnGotFocusInternal.  A new method that allows
21648         controls to "override" OnGotFocus and change focus behavior if
21649         needed.
21650         - Same thing for LostFocus
21651         * ComboBox.cs: Pass off focus to the text control properly.
21652
21653 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
21654
21655         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
21656         * FolderBrowserDialog.cs: Almost a complete rewrite.
21657           - Better support for Environment.Specialfolders
21658           - Added support for MWFVFS
21659           - Made setting SelectedPath work
21660
21661 2006-07-12  Jackson Harper  <jackson@ximian.com>
21662
21663         * Control.cs: Optimze getting all the controls.
21664
21665 2006-07-11  Jackson Harper  <jackson@ximian.com>
21666
21667         * ContainerControl.cs: Override SETFOCUS in the container control,
21668         so that it is not selected on mouse click.
21669
21670 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
21671
21672         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
21673           Hopefully we will have a better way once all of focus is complete.
21674
21675 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
21676
21677         * ThemeWin32Classic.cs: Commented out some debug code and fixed
21678           a compile error with csc.
21679
21680 2006-07-11  Jackson Harper  <jackson@ximian.com>
21681
21682         * Control.cs: When hiding a control only select the next control
21683         if the current control was focused.
21684         - Don't handle enter/leave when setting/killing focus, this is
21685         done by the container control.
21686         - Remove is_selected, it's not needed anymore.
21687         - Add utility methods for selecting a child control, and for
21688         firing the Enter/Leave events.
21689         * ContainerControl.cs: When a control is activated fire the
21690         enter/leave events.
21691         - Don't wrap when processing the tab key, so that focus can be
21692         moved outside of the container.
21693         - Use the correct active control
21694
21695 2006-07-11  Jackson Harper  <jackson@ximian.com>
21696
21697         * ComboBox.cs: Remove some debug code that was blinding me.
21698         * UpDownBase.cs: These controls actually aren't implicit, they are
21699         visible to the user.
21700
21701 2006-07-10  Chris Toshok  <toshok@ximian.com>
21702
21703         * DataGrid.cs: move back to the is_adding boolean field.  god i
21704         hate this is_editing/is_adding/is_changing stuff.
21705
21706 2006-07-10  Chris Toshok  <toshok@ximian.com>
21707
21708         * DataGridTableStyle.cs: just check if the property type is bool.
21709         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
21710         Don't use CanRenderType.
21711
21712         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
21713         if our text == NullText.  Remove CanRenderType.
21714
21715         * DataGridBoolColumn.cs: nuke CanRenderType.
21716
21717         * DataGrid.cs: reenable some code to end the current edit inside
21718         of set_CurrentCell.  This fixes the other 1.1.16 regression.
21719         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
21720         Also, remove the visible_row_count arg from CalcRowHeaders, since
21721         we don't need to worry about the actual height of the area.
21722
21723 2006-07-10  Chris Toshok  <toshok@ximian.com>
21724
21725         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
21726         mode, just return.
21727
21728         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
21729         the real sense of the IsInEditOrNavigateMode property (true =
21730         navigate, false = edit).  Also, update OnKeyPress to reflect this.
21731
21732         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
21733         column style exists, we still need to set its property descriptor
21734         to match up with our list manager.
21735
21736 2006-07-10  Chris Toshok  <toshok@ximian.com>
21737
21738         * ThemeWin32Classic.cs: implement the new row/header painting
21739         approach.  The parent row painting will likely go away and
21740         replaced with label controls, but the rest seems to work ok (and
21741         efficiently).
21742
21743         * Theme.cs: change the way we draw datagrid rows.  we don't draw
21744         the row headers as a block now.  Instead we draw them in the
21745         normal draw-row loop.  Add some calls for drawing parent rows and
21746         relation rows.
21747
21748         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
21749         a default table style.  Set the defaults from ThemeEngine.Current,
21750         not SystemColors.  Fix lots of misc issues with property setters.
21751
21752         * DataGrid.cs: move loads of style information out of this class
21753         as it's being duplicated with DataGridTableStyle.  keep track of a
21754         special DataGridTableStyle for the properties we used to mirror
21755         here.  Switch all the style properties to access this table style
21756         instead of instance fields of this class.  Also add a internal
21757         class to represent parent rows (more needs to be stored here, like
21758         the selection state from the parent table, as well as the
21759         expansion state.)  Also, for datasources with relations, do the
21760         right thing for collapse/expand, and add support for the
21761         navigation/parent row buttons.
21762
21763         Lastly, fix the crash in the 1.1.16 build.
21764
21765         * GridTableStylesCollection.cs: make the explicit interface
21766         implementations call the class's methods as opposed to duplicating
21767         them.
21768
21769         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
21770         0 so the text doesn't jump around when we move the cursor.
21771
21772 2006-07-10  Jackson Harper  <jackson@ximian.com>
21773
21774         * TextBoxBase.cs:
21775         * ListBox.cs: Match MS's ToString (this makes debugging focus
21776         stuff infinitely easier).
21777
21778 2006-07-10  Jackson Harper  <jackson@ximian.com>
21779
21780         * Control.cs (SelectNextControl): When checking the control's
21781         parent use this instead of ctrl.parent so that null can be passed
21782         to SelectNextControl. (I have unit tests for this).
21783         - Remove unused var.
21784
21785 2006-07-10  Chris Toshok  <toshok@ximian.com>
21786
21787         * CurrencyManager.cs: correct one regression, the removal of the
21788         finalType field.  Also, add a MonoTODO on CanAddRows, implement
21789         Refresh() correctly, and fix some event emission in
21790         ListChangedHandler.
21791
21792 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
21793
21794         * FileDialog.cs: Don't use brackets for new folders if they exist
21795           under *nix. Instead use -(number of existing folders +1).
21796
21797 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
21798
21799         * FileDialog.cs:
21800           - Fixed really nasty bug #78771
21801           - Don't block the whole GUI when reading directories with a lot of
21802             entries. Use an other thread instead and call BeginInvoke to
21803             update the ListView in MWFFileView
21804
21805 2006-07-07  Chris Toshok  <toshok@ximian.com>
21806
21807         * Control.cs (Dispose): release any Capture when disposing.
21808
21809 2006-07-07  Chris Toshok  <toshok@ximian.com>
21810
21811         * LinkLabel.cs (Select): if we chain up to the parent, set
21812         focused_index to -1 so we'll search for the first available link
21813         the next time the user tabs into us.  Also, if the direction is
21814         backward and focused_index == -1, start the search from the last
21815         element.
21816
21817 2006-07-07  Chris Toshok  <toshok@ximian.com>
21818
21819         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
21820         is beyond the end of the text, don't do anything.
21821         (CreateLinkPieces): set our ControlStyles.Selectable based on
21822         whether or not we have any links.
21823         (Link.Invalidate): use a loop instead of foreach.
21824         (Link.set_Start): null out owner.sorted_links so it'll be
21825         recreated by CreateLinkPieces.
21826
21827 2006-07-06  Chris Toshok  <toshok@ximian.com>
21828
21829         * LinkLabel.cs: revert the SetStyle change.
21830
21831 2006-07-06  Chris Toshok  <toshok@ximian.com>
21832
21833         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
21834         (OnEnableChanged): s/Refresh/Invalidate
21835         (OnGotFocus): if we have a focused index already, refocus it (so
21836         if we mouse out/in to the window it'll focus the right link).
21837         (OnKeyDown): move the tab handling out of here.
21838         (OnLostFocus): don't set focused_index to -1, so we can refocus it
21839         when we lose focus.
21840         (OnMouseDown): don't Capture here - Control handles it.  Also,
21841         focus the active link.
21842         (OnMouseUp): don't deal with Capture.
21843         (OnPaintBackgroundInternal): remove.
21844         (OnTextAlignChanged): CreateLinkPieces before calling the
21845         superclass's method.
21846         (OnTextChanged): call CreateLinkPieces before calling superclass's
21847         method.
21848         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
21849         move around.
21850         (Select): implement this, moving the selection between different
21851         links, and call parent.SelectNextControl if we don't have another
21852         link to focus in the given direction.
21853         (CreateLinkPieces): call Invalidate instead of Refresh.
21854         
21855 2006-07-06  Chris Toshok  <toshok@ximian.com>
21856
21857         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
21858         new LinkLabel internals.
21859
21860         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
21861         over pieces looking for active/focused/etc links.  also, deal with
21862         runs of text (and links) with embedded \n's in them, and use
21863         MeasureCharacterRanges instead of MeasureString to figure out the
21864         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
21865         two-step.
21866
21867 2006-07-04  Jackson Harper  <jackson@ximian.com>
21868
21869         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
21870         XKB or key auto repeat, do it manually.  Without key auto repeat,
21871         when a key is held down we get key press, key release, key press,
21872         key release, ... with auto repeat we get key press, key press, key
21873         press ..., and then a release when the key is actually released.
21874
21875 2006-07-03  Jackson Harper  <jackson@ximian.com>
21876
21877         * TabControl.cs:
21878         * ThemeWin32Classic.cs: Tabs do not obey normal background color
21879         rules, they are always control color regardless of the background
21880         color.
21881
21882 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
21883
21884         * FileDialog.cs: Added internal class MWFConfig.
21885           Removed Registry support and replaced it with support for the new
21886           MWFConfig class. See MWFConfig comments for more information.
21887
21888 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
21889
21890         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
21891           rectangle. Added some patches from eno from bug #78490 and fixed
21892           the arrow position for small up and down CPDrawScrollButtons.
21893
21894 2006-06-30  Jackson Harper  <jackson@ximian.com>
21895
21896         * InternalWindowManager.cs: Remove some debug code.
21897         * Form.cs: When an MdiParent is set to null, the window is
21898         "detatched" and becomes a normal window.
21899         * MdiClient.cs: Don't bring the new child form to the front until
21900         it is activated (setting it as active does this), this makes the
21901         previously active forms titlebar get redrawn as inactive.
21902
21903 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
21904
21905         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
21906           with later controls
21907
21908 2006-06-29  Mike Kestner  <mkestner@novell.com>
21909
21910         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
21911         arrow in keynav state.  Fixes #78682.
21912
21913 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
21914
21915         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
21916           order (fixes #78393)
21917
21918 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
21919
21920         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
21921           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
21922           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
21923           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
21924           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
21925           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
21926           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
21927           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
21928           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
21929           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
21930           enumerations (FlagsAttribute, SerializableAttribute, added/removed
21931           values)
21932
21933 2006-06-28  Mike Kestner  <mkestner@novell.com>
21934
21935         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
21936
21937 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
21938
21939         * PropertyGrid.cs,
21940           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
21941           item lines from other area (It also makes BackColor consistent and
21942           compatible with .NET). Fixed bug #78564.
21943
21944 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
21945
21946         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
21947         Patch from Eno for #78555.
21948
21949 2006-06-27  Chris Toshok  <toshok@ximian.com>
21950
21951         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
21952
21953         * DataGridColumnStyle.cs: same.
21954
21955         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
21956         
21957         * DataGridDrawingLogic.cs: nuke.
21958
21959 2006-06-27  Chris Toshok  <toshok@ximian.com>
21960
21961         * DataGridTableStyle.cs: clean up the constructors, and build the
21962         list of child relations for this table.  I have no idea if this is
21963         where we should be doing it (it probably isn't), but since we're
21964         already iterating over the properties..
21965
21966         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
21967         struct and array for keeping track of row information, similar to
21968         what's shown in a hack on
21969         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
21970
21971         * Theme.cs: be consistent about the naming of DataGrid methods,
21972         prefering ColumnWidths and RowHeights over columnsWidths and
21973         RowsHeights.
21974
21975         * ThemeWin32Classic.cs: same, and also add support for variable
21976         sized rows (and the +/- expansion icons for related rows).
21977
21978 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
21979
21980         * TextBoxBase.cs: Applied Eno's patch from #78660
21981
21982 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
21983
21984         * Form.cs (ScaleCore): We don't want to scale our form if it's
21985           state is minimized or maximized, but we still need to scale our
21986           child windows. Also, added try/finally block to ensure layout
21987           gets reset (Fixes #78697)
21988
21989 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
21990
21991         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
21992
21993 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
21994
21995         * Form.cs: Fixed c+p error and added check to resize form if minimum
21996           size is bigger than current size (Fixes #78709)
21997
21998 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
21999
22000         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
22001
22002 2006-06-26  Mike Kestner  <mkestner@novell.com>
22003
22004         * ComboBox.cs: only do Keypress handling in the combo when there  
22005         are items in the collection. Fixes #78710.
22006
22007 2006-06-26  Chris Toshok  <toshok@ximian.com>
22008
22009         * Binding.cs: make this work bi-directionally.  also, clear up
22010         other mixups between Push/Pull Data (e.g. we're supposed to pull
22011         data when validating).
22012
22013         * BindingManagerBase.cs: trim some fully qualified collection
22014         types.
22015
22016         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
22017
22018 2006-06-23  Chris Toshok  <toshok@ximian.com>
22019
22020         * PropertyManager.cs: It appears (according to the unit tests)
22021         that PropertyManager doesn't use
22022         PropertyDescriptor.AddValueChanged to track propery value changes
22023         in its datasource, but uses the same scheme as Binding, where it
22024         looks for a <Property>Changed event and binds to it.
22025
22026         Also, according to the docs, IsSuspended always returns false for
22027         a property manager with a non-null datasource.
22028
22029 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
22030
22031         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
22032           need to update the actual DialogResult. (Fixes #78613)
22033
22034 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
22035
22036         * Form.cs (ShowDialog): Release any captures before running the
22037           new message pump (fixes #78680)
22038
22039 2006-06-22  Mike Kestner  <mkestner@novell.com>
22040
22041         * ListView.cs: Layout column widths properly in details mode even 
22042         if HeaderStyle.None is set.  Fixes #78691.
22043
22044 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
22045
22046         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
22047
22048 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
22049
22050         * Control.cs (ContainsFocus): Using new driver method to get focused
22051           window, instead of trying to use internal tracking var, which can
22052           recursion issues (Fixes #78685)
22053         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
22054           XplatUIWin32.cs: Added GetFocus method to return focused window
22055
22056 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22057
22058         * ColorDialog.cs: when the mouse button is pressed inside the color
22059         matrix, don't let the cursor move out of it until the button is
22060         released, which is the behavior on windows. Changed 'colours' by
22061         'colors' to use the same word consistently.
22062
22063 2006-06-21  Chris Toshok  <toshok@ximian.com>
22064
22065         * DataGrid.cs: add in some basic navigation stuff (navigating to a
22066         child relation and back, using a stack).  Also, remove
22067         GetDataSource and the code that calls it - it's not needed.  Also,
22068         track CurrencyManager.ListName's removal.
22069
22070 2006-06-21  Chris Toshok  <toshok@ximian.com>
22071
22072         * CurrencyManager.cs: push some of the original type checking from
22073         BindingContext.CreateBindingManager to here, and remove some of
22074         the finalType stuff.  Need more tests to make sure I've got the
22075         ListName part right, and we might need more in SetDataSource.
22076
22077         * PropertyManager.cs: add a ctor that takes just the datasource,
22078         and no property name.  Make SetDataSource work with a null
22079         property_name, and make Current return the data_source if the
22080         property descriptor is null.  this makes 'string foo = "hi";
22081         BindingContext[foo].Current' return "hi" as it should.
22082
22083         * RelatedCurrencyManager.cs: make this code more generic - there's
22084         no reason the parent manager has to be CurrencyManager, and
22085         there's no reason to pass the DataRelation.  It suffices to use a
22086         BindingManagerBase and PropetyDescriptor.
22087
22088         * RelatedPropertyManager.cs: make a similar change here.
22089         
22090         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
22091         flower I knew it could be.
22092
22093 2006-06-20  Chris Toshok  <toshok@ximian.com>
22094
22095         * PropertyManager.cs: the PropertyChangedHandler is invoked when
22096         data in the source has changed and we need to update the control,
22097         so s/PullData/PushData.
22098
22099         * CurrencyManager.cs: Refresh is meant to update the control from
22100         data in the datasource.  So, s/PullData/PushData.
22101
22102         * BindingContext.cs: add more ugliness (we weren't handling the
22103         case where data_source = DataTable and data_member = column_name).
22104
22105         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
22106         from the perspective of the datasource.  PullData pulls from the
22107         control, PushData pushes to the control.
22108
22109 2006-06-20  Chris Toshok  <toshok@ximian.com>
22110
22111         * BindingContext.cs: rewrite the CreateBindingManager code to
22112         handle navigation paths more or less properly.  This could
22113         definitely stand some more work, in particular to push the
22114         recursion up to the toplevel.  But that relies on fixes in other
22115         places (System.Data comes to mind).
22116
22117         Also, move to a flat hashtable (and encode the twolevel nature of
22118         the dictionary into the hash key).  This lets us implement the
22119         IEnumerable.GetEnumerator method.
22120
22121         * RelatedCurrencyManager.cs: new class.  Update our view based on
22122         our relation and our parent CurrencyManager's position.
22123
22124         * CurrencyManager.cs: split out some logic from the ctor into
22125         SetView, so it can be called from the new RelatedCurrencyManager
22126         subclass.
22127
22128         * RelatedPropertyManager.cs: new class.  Update our datasource
22129         based on the position of our parent CurrencyManager.
22130
22131         * PropertyManager.cs: split out some logic from the ctor into
22132         SetDataSource, so it can be called from the new RelatedDataSource
22133         subclass.  Also, make the Current getter return the value
22134         of the PropertyDescriptor, not the data_source.
22135
22136         * Binding.cs: no need to duplicate the string splitting code here.
22137
22138 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
22139
22140         * Control.cs:
22141           - set_Enabled: OnEnabledChanged is not called if the inherited state 
22142             of the control is not altered, even though  we might be changing the
22143             internal state of the control (#78458)
22144           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
22145             OnEnabledChanged, to allow easy altering of any child window state
22146           - OnEnabledChanged: Added code to enable/disable driver window state
22147           - OnParentEnabledChanged: Instead of firing the event, call 
22148             OnEnabledChanged, which will fire the event and also a) set driver
22149             window state and pass the enabled state to any grandchildren (#78458)
22150
22151 2006-06-19  Jackson Harper  <jackson@ximian.com>
22152
22153         * InternalWindowManager.cs: We don't set the cursor explicitly
22154         thats done via the response to NCHITTESTs.
22155         - Don't need to adjust for titlebar heights anymore, the
22156         coordinates are coming in the correct coordinates now (see peters
22157         last patch).
22158
22159
22160 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
22161
22162         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
22163           being translated relative to whole window, instead of client window.
22164           That caused broken offsets on mouseclick (and caused gas for our
22165           InternalWindowManager)
22166
22167 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
22168
22169         * TextControl.cs:
22170           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
22171           - Undo(): Added replay of cursor move on DeleteChars action; added
22172             calling Undo() again if a recorded cursor move is invalid (to
22173             ensure that some action is performed on Undo)
22174         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
22175
22176 2006-06-16  Jackson Harper  <jackson@ximian.com>
22177
22178         * MdiClient.cs: Instead of just sizing maximized windows when
22179         there is a resize we also have to adjust the Y of minimized
22180         windows, so they stay pinned to the bottom of the mdi container.
22181         - Eliminate separate tracking of the active control, we can just
22182         get this from the controls collection.
22183         - Paint the decorations for the newly activated titlebar so we get
22184         a pretty blue bar.
22185         * InternalWindowManager.cs:
22186         * ThemeWin32Classic.cs: Minimized windows get all three buttons
22187         even if they are a tool window.
22188         
22189 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
22190
22191         * TextControl.cs (Undo): Handle non-existent cursor locations in the
22192           undo buffer, these can happen when text was deleted and the cursor
22193           was recorded first. Since we will also have a recorded cursor
22194           after the delete this is not an issue. (Fixes #78651)
22195
22196 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
22197
22198         * AccessibleObject.cs: Remove dependence on Control.is_selected;
22199           instead properly track control states internally (allows us to
22200           remove is_selected from Control)
22201
22202 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22203
22204         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
22205         whose width is not a multiple of 8.
22206
22207 2006-06-13  Jackson Harper  <jackson@ximian.com>
22208
22209         * MdiClient.cs:  Only maximize the next child if the current one
22210         is maximized.
22211
22212 2006-06-13  Chris Toshok  <toshok@ximian.com>
22213
22214         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
22215         modified.  Also, guard against grid or grid_drawing being null in
22216         Invalidate.
22217
22218         * DataGrid.cs: Reformat tons of getters/setters.  In the
22219         DataMember setter, just call SetNewDataSource instead of
22220         duplicating some of its functionality.  In SetNewDataSource, don't
22221         check ListManager for null, since the property getter creates the
22222         object if needed.
22223
22224         * DataGridTableStyle.cs: don't set TableStyle or call
22225         SetDataGridInternal on the column here, it's done in
22226         GridColumnStylesCollection.Add.
22227
22228         * GridColumnStylesCollection.cs: fix all the explicit interface
22229         implementations to just call our methods.  Nuke AddInternal() and
22230         move the body of it to Add().  Also, add a call to
22231         column.SetDataGridInternal to Add().
22232
22233         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
22234         base()+duplicate code.  Also, use the Format property instead of
22235         format to generate an Invalidate ala MS.  Lastly, create the
22236         textbox here, unconditionally.
22237         (set_Format): call Invalidate.
22238         (get_TextBox): no need to call EnsureTextBox.
22239         (Commit): remove the message box.
22240         (Edit) remove the call to EnsureTextBox.
22241         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
22242         (EnterNullValue): no need to check textbox for null.
22243         (HideEditBox): no need to check textbox for null.
22244         (SetDataGridInColumn): add the textbox to the grid's controls.
22245         (EnsureTextBox): nuke.
22246         
22247 2006-06-13  Jackson Harper  <jackson@ximian.com>
22248
22249         * MdiWindowManager.cs: Hook up to the maximized menus paint event
22250         and redraw the buttons when needed. Unhook when the window is
22251         unmaximized.
22252         * MainMenu.cs: Add an internal Paint event, the mdi window manager
22253         needs this so that it can redraw its buttons when the menu is
22254         repainted.
22255         * InternalWindowManager.cs:
22256         * Form.cs: The method order has changed for DrawMaximizedButtons,
22257         so that it can be a PaintEventHandler.
22258         
22259 2006-06-13  Jackson Harper  <jackson@ximian.com>
22260
22261         * MdiClient.cs: When we close a maximized mdi window, the next mdi
22262         window is activated and maximized, even if it wasn't before.
22263         - When  a new window is activated repaint the decorations of the
22264         old one, so that it no longer has the Active "look" (the blue
22265         titlebar).
22266         * InternalWindowManager.cs: Open up CreateButtons to base classes
22267         so they can recreate the buttons on state changes.
22268         - If a window is maximized give it all three buttons
22269         * MdiWindowManager.cs: Create the titlebar buttons when the state
22270         is changed, this is needed because a toolwindow will not have all
22271         three buttons until it is maximized.
22272
22273 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
22274
22275         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
22276           Fixed bug #78609.
22277
22278 2006-06-12  Jackson Harper  <jackson@ximian.com>
22279
22280         * KeysConverter.cs: Make sure we handle the Ctrl special case
22281         if its the only key.
22282         
22283 2006-06-12  Jackson Harper  <jackson@ximian.com>
22284
22285         * Theme.cs: Add a method to get the size of a managed window
22286         toolbar button.
22287         * InternalWindowManager.cs: Remove the ButtonSize property, this
22288         should be retrieved from the theme.
22289         * MdiWindowManager.cs: Get the button size from the theme
22290         * ThemeWin32Classic.cs: Make the method to get the managed window
22291         titlebar button size public.
22292         - Handle the different button sizes of maximized toolwindows
22293         (should match any maximized window).
22294         - Get the titlebar height from the theme, not the WM (which gets
22295         it from the theme).
22296
22297 2006-06-12  Jackson Harper  <jackson@ximian.com>
22298
22299         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
22300         event down to the mdi window manager.
22301         - Expose some extra stuff to base classes
22302         - Make sure to end the Capture on an NC Mouse up, so that we can
22303         get double clicks properly, and the sizing doens't stick.
22304         - When doing PointToClient contain it in the workable desktop
22305         area, this prevents windows from changing size when the cursor is
22306         pulled outside of the working area while sizing.
22307         * MdiWindowManager.cs: When we get a double click maximize the
22308         window.
22309         - Reset the cursor after handling mode changes.
22310
22311 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
22312
22313         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
22314           current desktop, instead of just assuming a 0, 0 origin. This
22315           is needed for our internal window manager, to know the top
22316           margin of the desktop
22317
22318 2006-06-12  Chris Toshok  <toshok@ximian.com>
22319
22320         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
22321         we need this to get rid of the selected background in the bool
22322         column.
22323         (CancelEditing): move the ConcedeFocus call to above the Abort
22324         call.  Also, set is_changing to false and invalidate the row
22325         header if we were changing before.
22326         (ProcessKeyPreviewInternal): remove, since noone outside this
22327         class calls it anymore.  Roll the code into ProcessKeyPreview.
22328         (EndEdit): remove the internal version.
22329         (InvalidateCurrentRowHeader): make private.
22330
22331         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
22332         Keys.Escape handling (and with it the last call to
22333         DataGrid.EndEdit from outside the class.)
22334
22335
22336 2006-06-12  Chris Toshok  <toshok@ximian.com>
22337
22338         * DataGridTextBox.cs (.ctor): isedit defaults to false.
22339         (OnKeyPress): set isedit to true.
22340         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
22341         already handled by the grid.
22342
22343         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
22344         right.  ugh.
22345         (set_DataSource): SetDataSource always returns true, so stop
22346         putting it in an if statement.
22347         (EndEdit): get rid of some {}'s
22348         (ProcessGridKey): return true in case Keys.Escape.
22349         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
22350         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
22351         PositionChanged, stopped connecting to CurrentChanged.
22352         (GetDataSource): simplify this a bunch.
22353         (SetDataSource): change return type from bool to void.
22354         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
22355         to this, and make sure we don't set ListManager.Position inside
22356         set_CurrentCell.
22357         (OnListManagerItemChanged): if we're passed an actual index,
22358         redraw that row.
22359
22360         * CurrencyManager.cs (set_Position): don't call PullData here.
22361
22362 2006-06-09  Jackson Harper  <jackson@ximian.com>
22363
22364         * TreeNode.cs:  Recalculate the visible order before doing the
22365         Expand/Collapse Below calls, because those calls generate an
22366         expose.
22367         - Reduce calls to the TreeView property, which is mildly expensive
22368         by using a local var.
22369         * Form.cs: Layout the MDI child windows when creating the parent
22370         form.
22371         - Don't use the internal constructor anymore
22372         * MdiClient.cs: use the parent form width/height (if available)
22373         when laying out the child windows, we do this because the
22374         mdiclient isn't docked yet when the initial layout is done.
22375         - Don't need an internal constructor anymore.
22376
22377 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22378
22379         * FileDialog.cs: handle access errors when trying to create a folder
22380         or changing to a directory. No need to initialize out parameters.
22381
22382 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22383
22384         * FileDialog.cs: Append a number when creating a new folder if the
22385           folder already exists (use parenthesis instead of square brackets)
22386
22387 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22388
22389         * FileDialog.cs:
22390           - Disabled registry support for windows and added better registry
22391             error checking for other systems (need to investigate why it
22392             works perfectly on my system)
22393           - If a folder already exist show an error MessageBox instead of
22394             trying to create an indexed name.
22395           - Fixed a non intentional typo.
22396
22397 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22398
22399         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
22400
22401 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22402
22403         * FileDialog.cs: When creating a new folder don't crash if the
22404           folder already exists.
22405
22406 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22407
22408         * FileDialog.cs: Allmost a complete rewrite.
22409           - added a "virtual" file system that handles the differences
22410             between unix and windows file systems (especially the directory
22411             structure). Moved most of the directory and file handling code
22412             into the vfs.
22413             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
22414             UnixFileSystem and FSEntry.
22415           - Recently used folder/directory, size, location and used file names
22416             (file name ComboBox) are now stored in the registry and get read
22417             before the dialog shows up (fixes part 6 of bug #78446).
22418           - Creation of new folders/directories is now possible (context menu
22419             or ToolBar). Added TextEntryDialog for this that fills in the gap
22420             until ListView.LabelEdit works.
22421           - Fixed cursor handling (bug #78527) and focus handling for
22422             PopupButtonPanel
22423           - Various "Search in" ComboBox enhancements. The content of the
22424             dropdown listbox now almost matches ms.
22425           - Changed the behaviour when the user switches to SpecialFolder
22426             Recent to show the ListView in View.Details.
22427           - Beside using the ToolBar to change the View property of the
22428             file ListView it is now possible to use the context menu too.
22429
22430 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
22431
22432         * ComboBox.cs: Don't create a new ObjectCollection when an item
22433           gets inserted. Just insert the item in the existing object_items
22434           ArrayList.
22435
22436 2006-06-08  Jackson Harper  <jackson@ximian.com>
22437
22438         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
22439         that the treeview and root node checks are done also, this fixes a
22440         regression i caused in the unit tests.
22441
22442 2006-06-07  Wade Berrier <wberrier@novell.com> 
22443
22444         * RichTextBox.cs: More ISO8859-1 -> unicode
22445
22446 2006-06-07  Mike Kestner  <mkestner@novell.com>
22447
22448         * ComboBox.cs : use items to hold highlight/selection so that
22449         collection insertions don't require synchronization.
22450
22451 2006-06-07  Jackson Harper  <jackson@ximian.com>
22452
22453         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
22454         routine.  We now always keep the sized edge at the cursor instead
22455         of computing movement and adjusting rects.  There is one buglet
22456         with this method though when the cursor is moved over area that
22457         the window can not expand too (such as the toolbars on the desktop).
22458
22459 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22460
22461         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
22462         here. Fixes crash on startup in AlbumSurfer.
22463
22464 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
22465
22466         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
22467           values
22468
22469 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22470
22471         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
22472         statement to avoid calling XNextEvent which will block if another thread
22473         took the event that we were expecting. Fixes bug #78605.
22474
22475 2006-06-07  Mike Kestner  <mkestner@novell.com>
22476
22477         * ListView.cs : isolated checkbox clicking from the selection logic.
22478         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
22479
22480 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22481
22482         * Form.cs: Check that the value passed to Form.DialogResult
22483         is a valid enum value.
22484
22485 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22486
22487         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
22488         Computer'. Clicking it in the network view goes to 'My Computer'.
22489         Added CIFS filesystem type. Display the mount point of filesystems.
22490         Avoid duplicate mount points (happens for me with CIFS);
22491
22492 2006-06-06  Jackson Harper  <jackson@ximian.com>
22493
22494         * InternalWindowManager.cs: Draw the maximized windows buttons
22495         when resizing.
22496
22497 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22498
22499         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
22500         all other dialogs. Fixes bug #78585.
22501
22502 2006-06-06  Mike Kestner  <mkestner@novell.com>
22503
22504         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
22505         Only invalidate checkbox on checkstate changes to avoid flicker.
22506         * ListBox.cs : avoid unselect/select when clicking selected item.
22507         avoid reselection flicker for already multiselected items.
22508         Fixes #78382.
22509
22510 2006-06-06  Jackson Harper  <jackson@ximian.com>
22511
22512         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
22513         the parent form so that the menu is removed if needed.
22514
22515 2006-06-06  Mike Kestner  <mkestner@novell.com>
22516
22517         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
22518         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
22519
22520 2006-06-06  Mike Kestner  <mkestner@novell.com>
22521
22522         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
22523
22524
22525 2006-06-06  Jackson Harper  <jackson@ximian.com>
22526
22527         * Control.cs: Use the property (instead of the field) to get the
22528         default cursor so it is instantiated correctly.
22529         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
22530         resizes so we need to manually repaint the window decorations here.
22531         - Set the titlebar button locations as soon as they are created,
22532         otherwise they are not set correctly on win32.
22533         
22534 2006-06-06  Chris Toshok  <toshok@ximian.com>
22535
22536         * CurrencyManager.cs (set_Position): call PullData before
22537         OnCurrentChanged.
22538         (AddNew): after calling IBindingList.AddNew, update our
22539         listposition, and call OnCurrentChanged/OnPositionChanged (without
22540         calling PullData).
22541         (OnCurrentChanged): remove the call to PullData from here.
22542         (OnItemChanged): remove the call to PushData from here.
22543         (OnPositionChanged): change the test from == null to != null to
22544         match the other methods.
22545         (ListChangedHandler): the grossest part of the patch.  Implement
22546         this such that it passes the unit tests in CurrencyManagerTest and
22547         the output more or less matches that of MS's implementation.
22548  
22549 2006-06-06  Mike Kestner  <mkestner@novell.com>
22550
22551         * ListView.cs : only update check state on single click.
22552         * ThemeWin32Classic.cs : fix focus drawing for details view without
22553         fullrowselect.  Fixes #78454.
22554         * XplatUIX11.cs : fix for double click emission.
22555
22556 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
22557
22558         * PropertyGridView.cs : Applied Atsushi's patch to fix
22559         font dialog bug  (#78197).
22560
22561 2006-06-05  Jackson Harper  <jackson@ximian.com>
22562
22563         * TreeNode.cs: Compute the next node for expanding/collapsing
22564         correctly. We now factor in nodes without a NextNode
22565         correctly. (Fixes somes cases in nunit-gui).
22566         * InternalWindowManager.cs: Set the bounds when updating the
22567         virtual position of a tool window.
22568         
22569 2006-06-05  Chris Toshok  <toshok@ximian.com>
22570
22571         * DataGrid.cs: rename cached_currencymgr to list_manager.
22572         (set_CurrentCell): move SetCurrentCell code here, and clean it up
22573         some.
22574         (CurrentRow, CurrentColumn): single accessors so we can make the
22575         cursor movement code a lot easier to understand.
22576         (CurrentRowIndex): implement this in terms of CurrentRow.
22577         (BeginEdit): clean this up a bit.
22578         (CancelEditing): sort out the is_editing/is_changing/is_adding
22579         stuff a little.
22580         (EndEdit): minor changes.
22581         (OnKeyDown): add a comment about a (most likely) unnecessary
22582         check.
22583         (OnMouseDown): cancel editing when we click on a row header.  And
22584         use the CurrentRow setter, not CurrentCell.
22585         (ProcessDialogKey): directly call ProcessGridKey.
22586         (UpdateSelectionAfterCursorMove): factor out this common block of
22587         code (it's used everywhere that we move the cursor by updating row
22588         or column).
22589         (ProcessGridKey): pretty substantial overhaul.  Use the
22590         CurrentRow/CurrentColumn properties to make the code a lot more
22591         readable.  Only use the CurrentCell property when we have to
22592         modify both row and column at once.  Tab behavior is still broken,
22593         and Delete is untested.
22594         (Select): if we have no selected rows, set selection_start to
22595         @row.
22596         (EditCurrentCell): rename EditCell this.  It was only ever invoked
22597         with CurrentCell as the arg, so drop the arg and rename it.
22598
22599         * DataGridColumnStyle.cs: clean up the constructors a little, and
22600         drop CommonConstructor().
22601
22602         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
22603         actually get notified when the user hits it.
22604         (ProcessKeyMessage): *substantially* simplify this method.
22605         There's no reason (that I can see) for the textbox to be making
22606         calls into the datagrid at all.  Remove all of them but the ones
22607         for Enter handling.  those will take some more work.
22608
22609         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
22610         calling HideEditBox.
22611         (HideEditBox): if we have an active textbox, render it invisible
22612         without causing a re-layout of the datagrid.
22613
22614 2006-06-05  Mike Kestner  <mkestner@novell.com>
22615
22616         * ListView.cs : fix NRE crasher when focuseditem is cleared by
22617         collection changes by resetting it to Items[0].  Fixes #78587.
22618
22619 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22620
22621         * MessageBox.cs: if the height of the text is larger than the icon_size,
22622         use that. Fixes bug #78575.
22623
22624 2006-06-05  Jackson Harper  <jackson@ximian.com>
22625
22626         * TreeView.cs: Fix line drawing when scrolling.  To do this each
22627         node is basically responsible for drawing its entire horizontal
22628         area.  When drawing a node it draws its parent node lines if
22629         needed.
22630         - Adjust the clip area to the viewport rectangle
22631         - Fix Left/Right key handling to match MS. (It expand/collapses
22632         and moves to parents/first child but does not move selection to
22633         sibling nodes).
22634         - Fix SetTop to work with new bound calculation code
22635         - When scrollbars are no longer needed we need to reset scrolling
22636         vars and recalculate the visible order so the redraw is correct
22637         * TreeNode.cs: We can't expand/collapse nodes with no children.
22638
22639 2006-06-03  John Luke  <john.luke@gmail.com> 
22640
22641         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
22642         so the colors work without dev packages
22643         
22644 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
22645
22646         * Control.cs 
22647           - Select: Implemented to just use activate. Seems to match MS 
22648             behaviour closest. Documented to only do actual control walking 
22649             based on it's parameters if in a container control so I moved 
22650             the code there.
22651           - Removed selection check logic from our internal Select() method
22652         * ContainerControl.cs:
22653           - Select: Moved selection logic from Control here, since MS documents
22654             that containers obey the bool arguments. No longer calling base
22655
22656 2006-06-02  Jackson Harper  <jackson@ximian.com>
22657
22658         * TreeView.cs: If the selected node isn't changed when we get
22659         focus update the previously selected node so that we see the
22660         selection box.
22661
22662 2006-06-02  Mike Kestner  <mkestner@novell.com>
22663
22664         * ComboBox.cs: restructure grab and general mouse event handling.
22665         Make the composite control raise mouse events like it was a single
22666         control for leaves/enters/motion/up/down events.  fix dropdown list
22667         coordinate mangling and refactor it into the scrollbar subclass to
22668         reduce code duplication.  Fixes #78282 #78361 and #78457.
22669
22670 2006-06-02  Mike Kestner  <mkestner@novell.com>
22671
22672         * ScrollBar.cs: remove Capture setting/clearing, as it happens
22673         automatically in the Control.WndProc.
22674
22675 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22676
22677         * FileDialog.cs: fix crash when running SharpChess, which sets the
22678         FilterIndex to 2 with only one Filter.
22679
22680 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22681
22682         * ToolBar.cs: add SizeSpecified property.
22683         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
22684         try to figure out our real size, otherwise fallback to what the
22685         container says.
22686
22687 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
22688
22689         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
22690         * Control.cs (WndProc): MS always calls the DefWndProc to pass
22691           up the event
22692
22693 2006-06-01  Mike Kestner  <mkestner@novell.com>
22694
22695         * ListView.cs: revamp the focus management in ListView.  It still
22696         causes churn of LostFocus/GotFocus emissions on clicks, but it's
22697         better than not handling focus at all.  Will revisit when pdb feels
22698         the general focus handling is solid.  Fixes #78526.
22699
22700 2006-06-01  Jackson Harper  <jackson@ximian.com>
22701
22702         * TreeView.cs: Set the default border style in the constructor.
22703         - Move painting to use OnPaintInternal instead of capturing
22704         WM_PAINT, this is the correct way of doing things
22705         - UpdateBelow shouldn't invalidate the scrollbar area
22706         - Cap the top on update below in case the node was above the top
22707         of the viewport rectangle.
22708         - ExpandBelow and Collapse below need to obey Begin/End Update.
22709         * TreeNode.cs: Make is_expanded internal so the treenode
22710         collection can change it without firing the whole event chain.
22711         * TreeNodeCollection.cs: When clearing all the child nodes make
22712         sure to recalc the visible order.
22713         - Improve algo for remove the top node
22714
22715 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
22716
22717         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
22718           SendMessage directly calling window procedures, which in turn might
22719           call SetFocus()
22720
22721 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
22722
22723         * Control.cs: Don't handle WM_SETFOCUS if the same window already
22724           has focus (works around X11 sending a FocusIn after our SetFocus)
22725         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
22726
22727 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
22728
22729         * Mime.cs: Fix for the NET_2_0 build.
22730           NameValueCollection needs StringComparer now.
22731
22732 2006-05-31  Chris Toshok  <toshok@ximian.com>
22733
22734         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
22735         return (via an out parameter) the starting X of the column.
22736         (UpdateVisibleColumn): track change to FromPixelToColumn.
22737         (HitTest): add a ColumnResize case here.
22738         (DrawResizeLine): new function, probably poorly named.
22739
22740         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
22741         only need to keep one reference.
22742         (set_ListManager): same.
22743         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
22744         Also, add support for HitTestType.ColumnResize.
22745         (OnMouseMove): add column resize behavior here, and change the
22746         cursor to the correct one as we move around the datagrid.
22747         (OnMouseUp): terminate the column resize if we're resizing.
22748         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
22749         for the current cell.
22750         (ConnectListManagerEvents): use cached_currencymgr.
22751         (DisconnectListManagerEvents): fill this in, using
22752         cached_currencymgr.
22753         (SetCurrentCell): remove cached_currencymgr_events handling.
22754         (SetDataMember): only call DisconnectListManagerEvents if
22755         cached_currencymgr is != null.
22756         (SetDataSource): same.
22757         (OnListManagerCurrentChanged): cached_currencymgr_events ->
22758         cached_currencymgr.
22759
22760 2006-05-31  Jackson Harper  <jackson@ximian.com>
22761
22762         * BindingManagerBase.cs: Remove somedebug code that creeped into
22763         SVN.
22764         * TreeNode.cs: We get the indent level dynamically right now, so
22765         don't track it as a member.
22766         * TreeNodeCollection.cs: Make sure all nodes added to the list
22767         have parents, treeviews/topnodes setup properly.
22768         - Don't attempt to track indent level.
22769
22770 2006-05-30  Jackson Harper  <jackson@ximian.com>
22771
22772         * BindingContext.cs: Create the currency manager tables here.
22773         This allows us to more easily create null tables (when bad data
22774         members are used), and more easily create related currency
22775         managers.
22776         * CurrencyManager.cs: All the table creation stuff is done by the
22777         binding context now.
22778         - Current should throw an exception if listposition is -1.
22779         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
22780         been bound yet.
22781
22782 2006-05-30  Mike Kestner  <mkestner@novell.com>
22783
22784         * ListView.cs: allow reexpansion of zero-width column headers.
22785         Fixes #78528.
22786
22787 2006-05-28  Chris Toshok  <toshok@ximian.com>
22788
22789         * CurrencyManager.cs (get_Current): after the late binding
22790         listposition = -1 fix, we need to guard against it here and return
22791         null, otherwise we raise an exception (which is swallowed
22792         elsewhere, and breaks datagrid databinding.)
22793
22794 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
22795
22796         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
22797           than WM_SYSKEY, don't throw if get something unexpected (#78507)
22798
22799 2006-05-26  Jackson Harper  <jackson@ximian.com>
22800
22801         * ControlPaint.cs:
22802         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
22803         values, it's faster and it's all we care about (we don't care if
22804         the names aren't equal).
22805         * KeyboardLayouts.cs: Eliminate some dead code.
22806         - Lazy init things
22807         * X11Keyboard.cs: Lazy init keyboard detection.
22808         - Cleanup access modifiers a little.
22809
22810 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
22811
22812         * XplatUIX11.cs: Once again, attempting to get layout just right.
22813
22814 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
22815
22816         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
22817           the sizes of each link section, that will result in sizes that
22818           match DrawString's layout (Fixes #78391)
22819
22820 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
22821
22822         * FileDialog.cs: If AddExtension property is true autocomplete the
22823           extensions in SaveFileDialog correctly. Fixes bug #78453.
22824           Set MyNetwork and MyComputer to "C:\" for windows. This should
22825           fix part 8 of bug #78446 for now.
22826
22827 2006-05-26  Chris Toshok  <toshok@ximian.com>
22828
22829         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
22830         invalidate the current row header if we need to, but presumably
22831         we'll invalidate the row corrsponding to the bounds or
22832         editingControl.
22833         (GridHScrolled): switch back to this method, as it's part of the
22834         public api.  *sigh*.
22835         (GridVScrolled): same.
22836         (OnMouseWheel): hack up something that more or less works.  Call
22837         GridHScrolled/GridVScrolled directly, instead of duplicating much
22838         of their code here.
22839         (EnsureCellVisibility): reinstate a bunch of this code, since we
22840         can't just set the scrollbar Value and expect to do all the work
22841         in the ValueChanged handler.  Also, Call Update() after scrolling
22842         in one direction so the other XplatX11.ScrollWindow call has the
22843         proper stuff in the proper places.
22844         (EditCell): set is_editing to true before calling .Edit.
22845
22846         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
22847         don't bother comparing first.
22848         (OnKeyPress): call grid.ColumnStartedEditing before calling
22849         base.OnKeyPress.  this will set is_changing and invalidate the row
22850         header if necessary.
22851         (ProcessKeyMessage): for WM_CHAR messages, call
22852         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
22853         and WM_KEYDOWN.
22854         
22855         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
22856         it's done in the DataGrid.
22857         (NextState): call grid.ColumnStartedEditing, which takes care of
22858         invalidating the row header (and setting is_changing).
22859
22860         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
22861         here.  it's done in the DataGrid.
22862
22863 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22864
22865         * Control.cs: allow changing the cursor when the mouse position is
22866         out of bounds but Capture is set.
22867         * LinkLabel.cs: handle the case when the mouse button is pressed on the
22868         linklabel but released somewhere else.
22869
22870 2006-05-25  Jackson Harper  <jackson@ximian.com>
22871
22872         * TreeView.cs: When we get focus if there is no selected node make
22873         it the top node
22874         - Remove some uneeded setup code from Draw.
22875         * TreeNodeCollection.cs: If the tree doesn't have a top node when
22876         a new node is inserted make the new node the top.
22877         * XplatUIX11.cs:
22878         * Timer.cs: Use Utc time so that no local time zone stuff needs to
22879         be used (should be faster).
22880         
22881 2006-05-25  Chris Toshok  <toshok@ximian.com>
22882
22883         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
22884         problem with the last commit.
22885
22886 2006-05-25  Chris Toshok  <toshok@ximian.com>
22887
22888         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
22889         need the invalidate call here, while scrolling right-to-left via
22890         the left arrow key (i.e. moving the editing cell while scrolling).
22891
22892         * DataGrid.cs (.ctor): remove the initialization of
22893         ctrl_pressed/shift_pressed.  We no longer track them using key
22894         up/down handlers, but by using Control.ModifierKeys.  Also, switch
22895         to using ValueChanged handlers on the scrollbars instead of
22896         Scrolled event handlers.  This simplifies a bunch of the scrolling
22897         code.
22898         (GridHValueChanged): rename from GridHScrolled, and change it to
22899         work with the new event args.
22900         (GridVValueChanged): same.
22901         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
22902         (OnMouseWheel): actually scroll the datagrid.  Don't change the
22903         selected cell.
22904         (ProcessGridKey): correct all the keyboard navigation stuff I
22905         could find.  Ctrl up/down/left/right/home/end work now.
22906         (EnsureCellVisibility): correct method name spelling.  Also,
22907         simplify this a touch by not explicitly calling the
22908         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
22909         scrollbar value.
22910         (OnKeyUpDG): no need for this method now.
22911         
22912 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22913
22914         * LinkLabel.cs: display the OverrideCursor when hovering the label.
22915         Fixes bug #78392.
22916
22917 2006-05-25  Chris Toshok  <toshok@ximian.com>
22918
22919         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
22920         r61019.
22921
22922 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
22923
22924         * Application.cs: Moved setting of is_modal and closing to before
22925           we create the control, to allow the event handlers called as a
22926           result of creation affect closing. Also removed Gonzalo's previous
22927           change to setting DialogResult, the behaviour has been moved to 
22928           Form.ShowDialog()
22929         * Form.cs: 
22930           - ShowDialog(): Removed explicit creation of the form, let RunLoop
22931             handle it instead
22932           - ShowDialog(): If no dialog result is set, we need to return Cancel
22933           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
22934             the close is cancelled
22935
22936 2006-05-25  Jackson Harper  <jackson@ximian.com>
22937
22938         * StatusBar.cs: We only need to update the sizes of the other
22939         panels when we have auto size contents.  Also we are only updating
22940         the contents of the panel, not the borders, so compensate for the
22941         border width (TODO: get this width from the theme somehow).
22942         * TreeView.cs: Scrollable is true by default
22943         - Use invalidate instead of refresh where needed
22944         - Factor the scrollable value into scrollbar updating
22945         - Update the scrollbars if the Scrollable property is altered
22946         - Update the selected node if its ImageIndex is changed
22947         - Handle null nodes in UpdateNode (mainly so we don't have to
22948         check if selected is null when updating it
22949         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
22950         are factored into the visible count
22951         - Use VisibleCount for clarity in the code
22952         - When the font is changed we need to recurse through all the
22953         nodes and invalidate their sizes
22954         
22955 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22956
22957         * Application.cs: set the DialogResult to fixed when the main form is
22958         hidden or destroyed while being modal.
22959
22960 2006-05-25  Miguel de Icaza  <miguel@novell.com>
22961
22962         * Theme.cs: Use Tangoified messagebox icons. 
22963
22964         (GetSizedResourceImage): Also cope with width = 0 and do not
22965         trigger a warning in that case (0 means "give me your icon from
22966         the resouce, no special size needed).
22967
22968 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
22969
22970         * Application.cs: Leave runloop if the the main modal form is 
22971           hidden (fixes #78484)
22972
22973 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
22974
22975         * BindingContext.cs : reject null datasource in Contains() and
22976           Item[].
22977         * CurrencyManager.cs : check data_member validity when data_source
22978           is dataset. When it is late binding, the initial position is -1.
22979
22980 2006-05-24  Jackson Harper  <jackson@ximian.com>
22981
22982         * TreeNodeCollection.cs: Dont't recalculate the visible order on
22983         inserted nodes that aren't visible.  This changes the
22984         max_visible_order which confuses scrollbar settings.
22985         - Use the enumerator to get the prev node instead of duplicating
22986         code.
22987         * TreeView.cs: Use new method for setting scrollbar values
22988         - Don't set the bounds every time the scrollbar is updated
22989         - When updating below the root node use an invalidate instead of a
22990         refresh to prevent the child controls (scrollbars) from being
22991         refreshed. (UpdateBelow still needs to be reworked anyways).
22992         - Reenable SetBottom now that visible orders are set correctly,
22993         added some debug code incase we ever get bad values there again.
22994         - Set the scrollbar max to 2 less then the max value, this
22995         compensates for the max value being one above the node count, and
22996         for scrollbars adding one extra "notch".
22997         - When drawing image nodes if there is an imagelist we draw the
22998         first image in the list if the supplied image index is out of the
22999         image list's bounds.
23000         
23001 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
23002
23003         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
23004           we receive a size change from the WM (Fixes #78503)
23005
23006 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
23007
23008         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
23009           rectangle (Fixes #78501)
23010
23011 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
23012
23013         * ButtonBase.cs: 
23014           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
23015             as a bitfield.
23016           - Fixed MouseMove to no longer switch pressed state unless the left
23017             mouse button is pressed. Atsushi provided the original patch (#78485)
23018           
23019 2006-05-24  Jackson Harper  <jackson@ximian.com>
23020
23021         * ScrollBar.cs: New internal methods that allow us to change a
23022         couple values on the scrollbar (the most common case is maximum
23023         and large change) without getting multiple invalidates.
23024
23025 2006-05-24  Chris Toshok  <toshok@ximian.com>
23026
23027         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
23028         (Edit): save off the original state in oldState, and set
23029         grid.is_editing to true.
23030         (OnKeyDown): abort editing if escape is pressed.  also, call
23031         NextState if space is pressed.
23032         (OnMouseDown): call NextState.
23033         (NextState): factor out shared code from OnKeyDown and OnMouseDown
23034         here.  Also, only invalidate the row header once (on the initial
23035         is_changing switch) to save on redraws.
23036
23037 2006-05-24  Chris Toshok  <toshok@ximian.com>
23038
23039         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
23040         if the value in the cell is different than it was before.  This
23041         keeps us from triggering a layout when we move around a datarid
23042         with a highlighted cell.
23043         (Edit): suspend layout when creating/positining the text box, and
23044         resume passing false so we don't ever actually re-layout.
23045         (ReleaseHostedControl): same.
23046         (EnsureTextBox): reformat slightly, and set WordWrap to false.
23047
23048         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
23049         control-key sequences should go to the datagrid - remove that
23050         lock.  Also, modify the conditions under which we move between
23051         cells when moving the cursor within a cell, and remove the "this"
23052         and "base" from field accesses.  We weren't even consistent, given
23053         they all were in the base class.
23054
23055 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
23056
23057         * Binding.cs : (.ctor)
23058           An obvious NRE fix for BindingTest.CtorNullTest().
23059
23060 2006-05-23  Chris Toshok  <toshok@ximian.com>
23061
23062         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
23063         them between lines.  This fixes some quirks editing cells in the
23064         datagrid.
23065
23066 2006-05-23  Jackson Harper  <jackson@ximian.com>
23067
23068         * TreeView.cs: Use begin/end update when doing expand/collapse all
23069         so that we don't get flicker on the scrollbar.
23070
23071 2006-05-23  Jackson Harper  <jackson@ximian.com>
23072
23073         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
23074         treenode calculations to be independant of the painting code. To
23075         do this nodes track a visible order which is calculated by the
23076         treeview.
23077         - Call new methods for expanding/collapsing nodes.  These methods
23078         use scrollwindow so we don't have to update everything below the
23079         node.
23080         * TreeView.cs: Refactored drawing and scrolling code.  We don't
23081         need to update nodes when drawing anymore or calculate scrollbar
23082         stuff.
23083         - Added new methods for expanding/collapsing nodes. These methods
23084         use ScrollWindow so as to not have to redraw all the nodes below.
23085         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
23086         we add/remove nodes or sort.
23087         - Handle removing the selected and the top node properly.
23088
23089 2006-05-23  Chris Toshok  <toshok@ximian.com>
23090
23091         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
23092         maybe this should actually happen in the datagrid code?
23093         (EndEdit): no need to invalidate anything, given that
23094         ReleaseHostedControl causes the datagrid to relayout, which
23095         invalidates everything anyway.
23096
23097         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
23098         in SetCurrentCell).
23099         (set_SelectionBackColor): call InvalidateSelection instead of
23100         Refresh.
23101         (set_SelectionForeColor): same.
23102         (BeginEdit): Flesh this out a bit.
23103         (CancelEditing): only do any of this if we're editing/adding.
23104         (EndEdit): same.
23105         (OnMouseDown): there's no need to cancel editing here, it's done
23106         in SetCurrentCell.
23107         (SetCurrentCell): only invalidate the current row header if it's a
23108         different row than the new one.
23109         (ShiftSelection): fix this to work like MS does.
23110         (ResetSelection): factor out the invalidation of selected_rows to
23111         InvalidateSelection.
23112         (SetDataSource): cancel any editing that's going on.
23113
23114         * DataGridColumnStyle.cs
23115         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
23116         call the non-interface version.
23117
23118         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
23119         header rectangle with the clip rectangle so we don't redraw the
23120         entire header for just a small area.  Gets rid of the last flicker
23121         when horizontally scrolling.
23122         (DataGridPaintRow): same.
23123
23124 2006-05-23  Mike Kestner  <mkestner@novell.com>
23125
23126         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
23127         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
23128         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
23129         Critical bug report.
23130
23131 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
23132
23133         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
23134           and this fixes #78493
23135
23136 2006-05-23  Miguel de Icaza  <miguel@novell.com>
23137
23138         * Theme.cs (GetSizedResourceImage): Scale images if the proper
23139         size is not found.  
23140         
23141         * FileDialog.cs: Do not change the background for the side bar as
23142         it wont work nicely with the theme, and also reduces the artifacts
23143         in rendering the icons (which I want to fix too).
23144
23145         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
23146         resources, not resgen resources. 
23147
23148         (PlatformDefaultHandler): Pull images using the new API.
23149
23150 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
23151
23152         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
23153           a reference to the hwnd and will not remove it unless there are
23154           no pending exposures (fixes #78341)
23155         * XplatUI.cs: Improved debug
23156
23157 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
23158
23159         * MenuAPI.cs : don't handle OnClick event when it was not the left
23160           button. Fixed bug #78487.
23161
23162 2006-05-23  Mike Kestner  <mkestner@novell.com>
23163
23164         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
23165         prefer submenus to the top menu for item lookup, to avoid popping down
23166         top-row items.
23167
23168 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
23169
23170         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
23171           Graphics.FillRectangle as the visual results are really bad (even
23172           on win). We now draw perfect arrows (and perfect shadows when the
23173           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
23174           Pen.DashPattern to draw the dots of each line.
23175
23176 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
23177
23178         * FileDialog.cs: Update the filename combobox when navigating through
23179           the ListView with the cursor keys. Fixes part 7 of bug #78446.
23180
23181 2006-05-22  Mike Kestner  <mkestner@novell.com>
23182
23183         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
23184         Fixes #78463.
23185
23186 2006-05-22  Mike Kestner  <mkestner@novell.com>
23187
23188         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
23189         requests. Fix a misspelled parameter and a copy paste exception error
23190         in Select.
23191
23192 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
23193
23194         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
23195           to get the same width/height (5/13) on X11 as the default font has on
23196           win32. This means that our DefaultFont emSize is smaller than the 
23197           the MS SWF equivalent (even thought the width/height stays the same)
23198
23199 2006-05-20  Jackson Harper  <jackson@ximian.com>
23200
23201         * MdiClient.cs:
23202         * MdiWindowManager.cs:
23203         * InternalWindowManager.cs: Make sure to use the border width from
23204         the theme.
23205
23206 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
23207
23208         * PrintDialog.cs: Implements printer details
23209
23210 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
23211
23212         * FileDialog.cs: Added focus handling for PopupButtonPanel.
23213           Fixes part 1 and 2 of bug #78446
23214
23215 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
23216
23217         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
23218           instead of sticking to the first ever calculated value
23219
23220 2006-05-19  Mike Kestner  <mkestner@novell.com>
23221
23222         * ComboBox.cs: fix mouse motion selection to use MousePosition and
23223         PointToClient, since Capture is set. Fixes #78344.
23224
23225 2006-05-19  Mike Kestner  <mkestner@novell.com>
23226
23227         * ListView.cs: match MS behavior in Details view where items are not
23228         drawn if Columns.Count == 0. 
23229         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
23230         Use a separate pen to draw the check, since changing the width affects
23231         the box as well.  Fixes #78454.
23232
23233 2006-05-18  Miguel de Icaza  <miguel@novell.com>
23234
23235         * ListView.cs: ArgumentOutOfRangeException, single versions of the
23236         exception should throw the name of the invalid argument.
23237
23238         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
23239         there are no files listed. 
23240
23241 2006-05-18  Jackson Harper  <jackson@ximian.com>
23242
23243         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
23244         up.
23245
23246 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
23247
23248         * Control.cs: Brought back our old UpdateZOrder method as a private
23249           function and switched our calls from UpdateZOrder to the new one.
23250           This fixes the Paint.Net canvas disappearing bug.
23251
23252 2006-05-18  Jackson Harper  <jackson@ximian.com>
23253
23254         * Theme.cs:
23255         * ThemeWin32Classic.cs:
23256         * InternalWindowManager.cs: Move the drawing into the theme,
23257         expose everything the theme should need from the window manager.
23258
23259 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
23260
23261         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
23262           from the call to NativeWindow to avoid walking up the parent chain
23263           further than needed (speeds up setting cursors and avoids setting
23264           the wrong cursor if a parent has another cursor defined)
23265         * Cursor.cs: When loading an icon as cursor, MS uses the center of
23266           the icon as hotspot, not what's contained as hotspot in the icon
23267           file. This fixes the perceived drawing offset seen with Paint.Net
23268         
23269 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
23270
23271         * XplatUIX11.cs: 
23272           - Store the calculated rectangle in Hwnd object and use it when 
23273             setting the client size
23274           - Force Toolwindows to always be type Dock, to ensure they're on top
23275
23276 2006-05-18  Mike Kestner  <mkestner@novell.com>
23277
23278         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
23279         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
23280         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
23281         Substantial refactoring to remove confusing nested classes. Coding
23282         standard and Get+Set->property refactorings.  Shift to index based
23283         highlighting in ComboListBox instead of constantly using IndexOf and
23284         Items[]. Add invalidations on resize for DropDownList to fix ugliness
23285         in FileDialog growth.  Draw borders manually since Simple mode needs
23286         to look like two independent controls.  Make listbox border
23287         conditional to DropDownStyle.  Improved OwnerDraw support.
23288
23289 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
23290
23291         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
23292         Don't set the disposed graphics to null, so we can throw the "right"
23293         exception if the graphics is reused later (added a flag to avoid 
23294         double disposing). Some behaviours are different under 2.0 and are
23295         filled under bug #78448.
23296
23297 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
23298
23299         * Control.cs: When double-buffering is enabled, we need to reset
23300           our graphics context between paint calls. Otherwise, any 
23301           transformations and other alterations on the context will 
23302           become cumulative (#77734)
23303
23304 2006-05-18  Mike Kestner  <mkestner@novell.com>
23305
23306         * ListView.cs: do focused item selection like MS on clicks. 
23307         Rework focus handling for ItemControl so LostFocus invalidates as
23308         well.
23309         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
23310         the ListView ItemControl has focus.
23311
23312 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
23313
23314         * XplatUIX11.cs: If client_window ends up being width or height zero
23315           due to border settings, move it off window inside whole_window (#78433)
23316
23317 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
23318
23319         * Mime.cs: Shrink the mime file cache correctly.
23320
23321 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
23322
23323         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
23324
23325 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23326
23327         * XplatUIX11.cs (AddExpose): More sanity checks
23328
23329 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23330
23331         * XplatUIX11.cs:
23332           - AddExpose: Don't add expose ranges outside the size of our
23333             window
23334           - Cast opacity values to Int32 to avoid crashes with certain
23335             values
23336           - Added disabled code paths that protect against illegal cross-
23337             thread painting (Developers.exe)
23338
23339 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23340
23341         * ProgressBar.cs: Invalidate the control when it's resized
23342           since block size is based on control size. (#78388)
23343
23344 2006-05-16  Miguel de Icaza  <miguel@novell.com>
23345
23346         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
23347         of setting the incoming argument to the "reset" value, we set the
23348         this.datamember to string.empty (before we were invalidating the
23349         incoming data).   
23350
23351         Fixes 78420
23352
23353 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23354
23355         * Form.cs: Only apply transparency settings after the form
23356           is created. (Fixes #77800)
23357
23358 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
23359
23360         * ApplicationContext.cs: Grab the HandleDestroyed event so
23361           we know when to fire OnMainFormClosed 
23362
23363 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23364
23365         * Application.cs: Introduced sub-class to allow tracking of
23366           threads and centralized triggering of the event mess for
23367           ThreadExit, AppExit, etc..  (#76156)
23368
23369 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
23370
23371         * MimeIcon.cs:
23372           - Do not return a null icon index value for a mime subclass.
23373             Instead try the main mime type class too.
23374           - Seems that some newer distributions don't have a link to some
23375             gnome default icons anymore. So check the default gnome dir too.
23376           
23377
23378 2006-05-16  Jackson Harper  <jackson@ximian.com>
23379
23380         * MdiClient.cs: Don't paint the parent background image if we have
23381         our own background image.
23382
23383 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
23384
23385         * Control.cs:
23386           - PerformLayout: Do not shrink space filled by DockStyle.Fill
23387             controls, all filled controls are supposed to overlap (#78080)
23388           - UpdateZOrder is supposed to update the control's z-order in the
23389             parent's z-order chain. Fixed to behave like that
23390           - BringToFront: Removed obsolete code
23391           - SendToBack: Simplyfied
23392           - SetChildIndex: Trigger layout calculations when Z-order changes
23393             since layout is done by z-order
23394
23395 2006-05-16  Chris Toshok  <toshok@ximian.com>
23396
23397         [ fixes bug #78410 ]
23398         * DataGrid.cs (set_AlternatingBackColor): use
23399         grid_drawing.InvalidateCells instead of Refresh().
23400         (set_BackColor): call grid_drawing.InvalidateCells.
23401         (set_BackgroundColor): use Invalidate instead of Refresh.
23402
23403         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
23404         invalidate the cell area.
23405
23406 2006-05-15  Chris Toshok  <toshok@ximian.com>
23407
23408         [ fixes bug #78011 ]
23409         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
23410         on to DataGridPaintRow.
23411         (DataGridPaintRow): take a clip argument, and only draw the cells
23412         which intersect it.  same with the not_usedarea.
23413
23414         * Theme.cs (DataGridPaintRow) add @clip parameter.
23415
23416         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
23417         XplatUI.ScrollWindow.
23418         (ScrollToRow): same.
23419
23420         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
23421         with last column which was causing a gray swath to appear with the
23422         XplatUI.ScrollWindow code.
23423
23424 2006-05-15  Chris Toshok  <toshok@ximian.com>
23425
23426         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
23427         use XplatUI.ScrollWindow.
23428         (VerticalScrollEvent): use XplatUI.ScrollWindow.
23429
23430 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
23431
23432         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
23433
23434 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
23435
23436         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
23437           file since there are no equivalent X11 cursors
23438
23439 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
23440
23441         * MonthCalendar.cs : DateTimePicker should reflect selected date
23442           on mouse*up*, not mouse*down*. Fixed originally reported part of
23443           bug #76474.
23444
23445 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
23446
23447         * TabControl.cs : When argument index is equal or more than tab
23448           count, just ignore. Fixed bug #78395.
23449
23450 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
23451
23452         * Control.cs: Dispose all child controls when control is diposed (#78394)
23453
23454 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23455
23456         * ColorDialog.cs: Finally it is possible to select the color with
23457           the text boxes
23458
23459 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23460
23461         * PrintDialog.cs: Fix typo
23462
23463 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
23464
23465         * PrintDialog.cs: PrintDialog is not resizable
23466         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
23467           color. Made some ToolBar drawing methods protected virtual.
23468
23469 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
23470
23471         * PrintDialog.cs: Implementation of the PrintDialog
23472
23473 2006-05-12  Chris Toshok  <toshok@ximian.com>
23474
23475         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
23476         thumb, instead use MoveThumb.  This has the side effect of making
23477         most of the other thumb moving machinery use MoveThumb as well.
23478         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
23479         need to actually invalidate the rectangle where the new thumb will
23480         go.
23481         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
23482         We force an Update() after, so it's not as fast as it could be,
23483         but at least there's zero flicker and no droppings.
23484         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
23485         (UpdateThumbPos): add another argument (dirty), which says whether
23486         or not to calculate/add dirty regions which we later invalidate.
23487         For cases where we know we're going to use MoveThumb, we pass
23488         false for this.  Otherwise, pass true.
23489
23490 2006-05-12  Jackson Harper  <jackson@ximian.com>
23491
23492         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
23493         the status bar.
23494         
23495 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
23496
23497         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
23498           and GetClipRegion methods and UserClipWontExposeParent property.
23499         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
23500           overriding UserClipWontExposeParent property, setting to false, since
23501           Win32 handles the required expose messages to draw our clipped parent
23502           areas internally
23503         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
23504           PaintEventStart to set the user clip region if set.
23505         * Control.cs: 
23506           - Now internally tracking the Region for the control since we need to
23507             store it if the handle is not yet created and only set it when it
23508             becomes created. Before setting the region forced handle creation
23509           - Added code to draw the parents underneath a user-clipped region
23510         * Hwnd.cs: Added UserClip property
23511
23512 2006-05-12  Chris Toshok  <toshok@ximian.com>
23513
23514         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
23515         (set_Maximum): same.
23516         (set_Minimum): same.
23517         (set_SmallChange): same.
23518         (OnMouseUpSB): remove the call to refresh when releasing the
23519         thumb.  We shouldn't need it.
23520         
23521 2006-05-12  Miguel de Icaza  <miguel@novell.com>
23522
23523         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
23524         AutoSize set to None, we do not need to relayout everything, we
23525         just need to invalidate the current region.
23526
23527         (Draw): Do not draw the entire ClientArea, just redraw the
23528         clip area being passed.
23529
23530         * MdiClient.cs: Make MdiClient constructor with the Form argument
23531         internal. 
23532
23533 2006-05-12  Jackson Harper  <jackson@ximian.com>
23534
23535         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
23536         parents background image,  but strangely not their own.
23537         - (DrawStatusBarPanel): Take into account horizontal alignment
23538         when drawing the strings and icons.
23539
23540 2006-05-12  Mike Kestner  <mkestner@novell.com>
23541
23542         * ListBox.cs: avoid invalidations for focus when the collection is
23543         empty. 
23544
23545 2006-05-12  Chris Toshok  <toshok@ximian.com>
23546
23547         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
23548         invalidate the entire thumb area.  Call InvalidateDirty which
23549         limits the redraw to the thumb itself and surrounding pixels.
23550
23551         * XplatUIX11.cs (ScrollWindow): optimize copying.
23552         
23553 2006-05-12  Chris Toshok  <toshok@ximian.com>
23554
23555         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
23556         Figure out the positioning/layout in a single pass instead of
23557         multiple recursive invocations.  Speeds up the initial display of
23558         the data grid.  Also, make many things private that were
23559         originally public but unused outside this class.
23560
23561 2006-05-11  Jackson Harper  <jackson@ximian.com>
23562
23563         * MdiClient.cs: Improved layout code.
23564
23565 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
23566
23567         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
23568           not SelectedObject.
23569
23570 2006-05-11  Chris Toshok  <toshok@ximian.com>
23571
23572         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
23573         union of that will always be {0,0,width,height}.
23574
23575 2006-05-11  Jackson Harper  <jackson@ximian.com>
23576
23577         * Form.cs: Match MS's DefaultSize for forms (they must have
23578         changed the size in sp2).
23579
23580 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
23581
23582         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
23583
23584 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
23585
23586         * TextControl.cs : Fixed bug #78109. This incorrect position
23587           comparison caused crash on automatic line split.
23588         * TextBoxBase.cs : reduce duplicate code.
23589
23590 2006-05-10  Jackson Harper  <jackson@ximian.com>
23591
23592         * MdiClient.cs: Active form is only sent to the back when using
23593         the Next form functionality, when a form is clicked the current
23594         active shouldn't be sent to the back.
23595         - Layout the mdi windows when the container is first made visible.
23596         * Form.cs: Give the MdiClient a ref to the containing form when we
23597         create it.
23598         
23599 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
23600
23601         * LinkLabel.cs : link_font could be uninitialized, so populate one
23602           before actual use. Fixed bug #78340.
23603
23604 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
23605
23606         * XplatUIX11.cs : clipboard format native value is IntPtr.
23607           Fixed bug #78283.
23608
23609 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
23610
23611         * Control.cs: 
23612           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
23613             which is passed up the parent chain by DefWndProc
23614           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
23615             to DefWndProc (#77956)
23616         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
23617
23618 2006-05-10  Jackson Harper  <jackson@ximian.com>
23619
23620         * MdiClient.cs: We need to remove the controls from the mdi
23621         collection, when we close the window.
23622         * MdiWindowManager.cs: Special handling of closing mdi windows.
23623         * InternalWindowManager.cs: Make the close method virtual so the
23624         mdi window manager can handle it specially.
23625
23626 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
23627
23628         * DataGrid.cs:
23629           - Recalculate grid when the data source has changed
23630           - Matches styles provided by user from all data sources types
23631         * DataGridTableStyle.cs: For columns that provided by the user set the
23632         with the preferred value is there was unassigned.
23633         * CurrencyManager.cs: throw OnItemChanged event
23634
23635 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
23636
23637         * PictureBox.cs: Don't animate until handle is created. Start animation
23638           when handle is created.
23639
23640 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
23641
23642         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
23643           current codebase.
23644         * XEventQueue.cs: We don't need to provide the extra info
23645
23646 2006-05-10  Jackson Harper  <jackson@ximian.com>
23647
23648         * MdiClient.cs: If the mdi clients parent form has a background
23649         image set, we draw that background image for the mdi area's
23650         background.
23651
23652 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
23653
23654         * TextBoxBase.cs: Set IBeam cursor (#78347)
23655
23656 2006-05-10  Mike Kestner  <mkestner@novell.com>
23657
23658         * ToolBar.cs: fix some text padding issues with ButtonSize
23659         calculation. Update the default size to match MS documentation.
23660         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
23661         button size. Fixes #78296.
23662
23663 2006-05-10  Mike Kestner  <mkestner@novell.com>
23664
23665         * ListBox.cs: use is_visible for scrollbar positioning in case the
23666         control isn't on screen yet.  Fix off by one with Right vs Width
23667         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
23668         
23669 2006-05-10  Jackson Harper  <jackson@ximian.com>
23670
23671         * X11Dnd.cs: Drop to a control with another control on top of it.
23672         * ToolBar.cs: Work on a copy of the buttons list, so that it can
23673         be modified in click handlers. TODO: Look for similar problems in
23674         other controls.
23675
23676 2006-05-09  Jackson Harper  <jackson@ximian.com>
23677
23678         * Form.cs: Window managers need the old window state when setting
23679         window state now.
23680         * InternalWindowManager.cs: Allow the base mdi window manager to
23681         handle more of the MDI only stuff (like maximize buttons).
23682         * MdiWindowManager.cs: Fix some snafus in changing the window
23683         state.  Add all the menu functionality, for both popup and
23684         maximized menus.
23685         * MdiClient.cs: When a new form is selected the currently
23686         activated form is sent to the back, this matches MS.
23687         - Implement a new method to activate the next mdi child window.
23688
23689 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
23690
23691         * Control.cs: 
23692           - Added new InternalCapture method to allow controls to prevent
23693             the capture behaviour on the click handlers
23694           - Switched to use InternalCapture
23695         * ComboBox.cs:
23696           - Using InternalCapture to prevent mouse captures from being released
23697             on mouse button release (Fixes #78100)
23698         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
23699           returns Form borders if a caption is present. (Fixes #78310)
23700
23701 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
23702
23703         * TreeNode.cs: Changed serialization .ctor to not require every field
23704           to be present. (#78265)
23705         * OwnerDrawPropertyBag.cs: Added serialization .ctor
23706
23707 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
23708
23709         * MimeIcon.cs: for is faster than foreach for strings.
23710
23711 2006-05-05  Mike Kestner  <mkestner@novell.com>
23712
23713         * CheckedListBox.cs: update check handling code to not use selected.
23714         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
23715         behavior for visual feedback, motion response, shift/ctrl handling,
23716         and properly deal with all 4 selection modes. Updates to bounds
23717         handling logic.  Add scroll wheel support. [Fixes #77842]
23718
23719 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
23720
23721         * ListView.cs:
23722           - Moved adding of Implicit controls into .ctor. That way, subsequent
23723             creation of the controls will not cause them to think they are 
23724             toplevel windows (fixes #78200 header problem)
23725           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
23726           - Switched visibility setting of header control to use internal field
23727             to avoid triggering handle creation
23728           - Now checking if handle is created before causing a refresh when items
23729             are added (This makes us now match handle creation time with MS)
23730         * Splitter.cs: Removed loading of private splitter cursor, switched to
23731           Cursors version now that that is loading the right ones
23732         * Cursors.cs: Load proper splitter cursors from resources
23733         * Cursor.cs: Added second method of loading resource cursors for the 
23734           VS.Net users amongst us
23735
23736 2006-05-05  Mike Kestner  <mkestner@novell.com>
23737
23738         * ListView.cs: give header_control a minimum size based on the
23739         ListView size.
23740
23741 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
23742
23743         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
23744           window seems to do that with metacity, so set that type. (#78120)
23745
23746 2006-05-05  Mike Kestner  <mkestner@novell.com>
23747
23748         * ListViewItem.cs: fix Details mode checkbox layout bug.
23749         * ThemeWin32Classic.cs: draw a ListView column header for unused space
23750         at the end of the header, if it exists. [Fixes for #78200]
23751
23752 2006-05-04  Jackson Harper  <jackson@ximian.com>
23753
23754         * MdiClient.cs: Add a helper property to get the container form.
23755         * MdiWindowManager.cs: We have to make sure to use the menu origin
23756         when drawing the icons and buttons, this fixes maximized window
23757         icons/buttons on win32.
23758         * InternalWindowManager.cs: Reset the restore captions when a
23759         window goes from Maximized to Minimized and vice versa. Move the
23760         DrawMaximizedButtons into the MdiWindowManager source, tool
23761         windows can't be maximized. NOTE: This could use a little
23762         refactoring if time ever permits.
23763         
23764 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
23765
23766         * TextBox.cs: Add MWFCategoryAttributes
23767         * TextBoxBase.cs: Add MWFCategoryAttributes
23768         * Form.cs: Add MWFCategoryAttributes
23769
23770 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
23771
23772         * Control.cs: Add MWFCategoryAttributes
23773         * ScrollableControl.cs: Add MWFCategoryAttributes
23774
23775 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
23776
23777         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
23778           Divider is true. Fix a little glitch in PropertyToolBar
23779           drawing code
23780
23781 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
23782
23783         * Control.cs:
23784           - Dispose: Call base.Dispose, this causes the disposed event
23785             to be fired (and probably other, more important stuff)
23786           - SetVisibleCore: Set is_visible to true after creating the
23787             window so that the window still gets created invisible (if
23788             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
23789             to generate a WM_ACTIVE message
23790         * Form.cs: Call Dispose when we want to destroy the window, instead of
23791           just destroying the handle (Dispose will do that for us)
23792         * XplatUIX11.cs:
23793           - RootWindow also needs a queue, so we can properly process the
23794             property change events from RootWindow (like Activate)
23795           - Generatic synthetic WM_ACTIVE message when the active window is
23796             being destroyed
23797
23798 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
23799
23800         * LinkLabel.cs: Trigger a recalc of our label dimensions when
23801           bounds are changed
23802
23803 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
23804
23805         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
23806           for determining width and height (image might not be assigned if
23807           we're drawing an imagelist)
23808
23809 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
23810
23811         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
23812         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
23813           height from system
23814         * Theme.cs: No longer returns hardcoded menu height, instead calls
23815           new driver method
23816         * Form.cs (OnLoad): Scaling happens before triggering Load events 
23817           on MS (# 78257)
23818
23819 2006-05-01  Mike Kestner  <mkestner@novell.com>
23820
23821         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
23822
23823 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
23824
23825         * TextBoxBase.cs: Removed Fixme
23826         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
23827
23828 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
23829
23830         * XplatUIX11.cs:
23831           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
23832             the rectangle relative to the parent, considering borders. We
23833             don't really want that.
23834           - ScrollWindow: Fixed warning to be more understandable
23835         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
23836           scrollbars and scroll only the visible area
23837         * RichTextBox.cs: Removed debug output
23838
23839 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
23840
23841         * NumericUpDown.cs (Text): Just use base
23842         * UpDownBase.cs: Ensure txtView is created before using it
23843
23844 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
23845
23846         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
23847           casting to IntPtr to avoid 64bit overflow errors
23848
23849 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
23850
23851         * Control.cs:
23852           - AllowDrop: Don't force handle creation.
23853           - CreateHandle: Added call to tell driver if we're allowed to drop
23854
23855 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
23856
23857         * FileDialog.cs: Remember the last directory not only for the
23858           current instance but also for new FileDialog instances.
23859
23860 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
23861         
23862         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
23863           broke sending async messages
23864
23865 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
23866
23867         * XplatUIX11.cs:
23868           - ScrollWindow: Fixed method. We finally generate expose events again
23869             for scrolled areas. This was causing 'garbage' when scrolling
23870             textbox and other controls that used ScrollWindow
23871           - Switched from using the regular queue for paint events to the MS 
23872             model of 'generating' paint events when the queue is empty.
23873             We use the new XQueueEvent.Paint subclass to store which windows
23874             need painting.
23875           - AddExpose now takes the x/y/width/height of the exposed area
23876             and inserts the window into the paint queue if not already there
23877           - InvalidateWholeWindow: Switched to use new AddExpose method
23878           - UpdateMessageQueue: Added which queue to monitor for paint events
23879           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
23880             the unlikely case nothing above handles it. We reset the expose
23881             pending states to get them off the queue.
23882           - GetMessage: Now pulls a paint event if no other events are in the
23883             queue
23884           - Invalidate: Switched to new AddExpose method
23885           - PeekMessage: Updated to understand pending paint events
23886           - UpdateWindow: Fixed logic bug. We were only updating if the window
23887             didn't need updating. Also switched to sending WM_PAINT directly,
23888             like MS does.
23889         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
23890           and random access Remove(). The random access is needed to handle
23891           UpdateWindow() where a WM_PAINT is sent directly without accessing
23892           the queue.
23893         * ScrollBar.cs: Added Update() calls to cause immediate updates to
23894           allow for better feedback when scrolling. Scrollbars are small and
23895           the immediate update should make it 'feel' more responsive without
23896           slowing things down. ScrollBar still needs it's invaliate logic
23897           updated to not always invalidate the whole bar on certain changes.
23898
23899 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23900
23901         * Control.cs:
23902         (BackColor): if the control does not support a transparent background,
23903         return the default backcolor when the parent backcolor is transparent.
23904
23905 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
23906
23907         * Application.cs: Updated to new StartLoop/GetMessage API
23908         * RichTextBox.cs: Provide some output on RTF parsing errors
23909         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
23910           new queue_id argument to GetMessage and PeekMessage to allow faster
23911           handling of per-thread queues in drivers.
23912         * Hwnd.cs: Added Queue tracking and property
23913         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
23914         * XEventQueue.cs: Added thread trackingA
23915         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
23916         * XplatUIX11.cs:
23917           - Implemented new per-thread queue
23918           - GetMessage: Fixed return/break behaviour on several cases. We were
23919             returning stale messages in some cases, instead of just processing
23920             the next message
23921
23922 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
23923
23924         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
23925
23926 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
23927
23928         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
23929           fixed off-by-one comparisons between Width/Height and Right/Bottom.
23930
23931 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
23932
23933         * PropertyGridView.cs: Fix drop down width.
23934
23935 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
23936
23937         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
23938           a mess in DrawToolBar, so I removed one of them.
23939
23940 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
23941
23942         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
23943           needed (clip). Otherwise we get artifacts.
23944
23945 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
23946
23947         * FixedSizeTextBox.cs: Added constructor to allow specifying which
23948           dimension is fixed
23949         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
23950           and switched FixedSizeTextBox to only be fixed vertical (#78116)
23951         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
23952           if it matches the scale base font (avoids unneeded scaling)
23953
23954 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
23955
23956         * X11DesktopColors.cs: One gtk_init_check should be enough
23957
23958 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
23959
23960         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
23961           match MS behaviour
23962
23963 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
23964
23965         * TextBoxBase.cs: 
23966           - Generate OnTextChanged for Backspace even if we're only deleting
23967             the current selection
23968           - When setting the Text property, only select all text if the
23969             control does not have focus when it is being set. Otherwise
23970             just place the cursor at the beginning of the control
23971
23972 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
23973
23974         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
23975           Added a little helper to draw PropertyGrid ToolBar with a different
23976           border and a different BackColor.
23977         * PropertyGrid.cs: Some background parts didn't get painted with the
23978           correct background color. Added a class that helps us to draw the
23979           correct border for PropertyGridView and a class that helps us to
23980           draw ToolBars with a different backcolor
23981         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
23982
23983 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
23984
23985         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
23986         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
23987
23988 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
23989
23990         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
23991           into the palette entries. Also, since we're working on a copy
23992           we needed to copy the palette back onto the bitmap.
23993         * Cursor.cs: Same fix as XplatUIWin32.cs.
23994
23995 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
23996
23997         * ImageListStreamer.cs: Need to read the var (or we're off)
23998
23999 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
24000
24001         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
24002           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
24003           TextBoxBase.cs: Unused var fixes
24004         * AxHost.cs: Small 2.0 fix
24005         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
24006           as it seems that is what at least Metacity expects. This will make
24007           icons show up on 64bit platforms. We still have some 64bit size
24008           issues, though, since the startup app window size still won't match.
24009
24010 2006-04-25  Mike Kestner  <mkestner@novell.com>
24011
24012         * *.cs: cleanup newly reported exception var unused warnings.
24013
24014 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24015
24016         * ThemeWin32Classic.cs: Button image alignment now matches exactly
24017           ms
24018
24019 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24020
24021         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
24022           image. The image position is always the same, no matter if the
24023           button is pressed or not.
24024
24025 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
24026
24027         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
24028           selection and set the correct filename for SaveFileDialog.
24029           Patch by Emery Conrad.
24030
24031 2006-04-24  Mike Kestner  <mkestner@novell.com>
24032
24033         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
24034         check for item.X outside the ClientRect instead of item.Y. Fixes
24035         #78151.
24036
24037 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24038
24039         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
24040         trust that value blindly and do some sanity check. Fixes bug #77814.
24041
24042 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24043
24044         * ImageListStreamer.cs: save the mask as a 1bpp image.
24045
24046 2006-04-21  Mike Kestner  <mkestner@novell.com>
24047
24048         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
24049         pass Checked and Indeterminate to the Theme Engine. Improve
24050         encapsulation with ListBox.
24051         * ListBox.cs: Keep a StringFormat instead of calculating it every item
24052         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
24053         nested types.  Move all CheckState functionality to CheckedListBox.
24054         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
24055         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
24056         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
24057         single base list. Fix scrollbar sizing and placement to mirror MS.
24058         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
24059         used.
24060         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
24061         for CheckedListBox by using new DrawItemState info.  Center the
24062         checkboxes on the items. Use new StringFormat property.
24063
24064 2006-04-18  Jackson Harper  <jackson@ximian.com>
24065
24066         * Form.cs: MdiChildren don't do default locations the same way as
24067         regular forms.  This prevents a crash when trying to position the
24068         mdi windows.
24069
24070 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
24071
24072         * PropertyGridTextBox.cs: Formatting, copyright
24073         * PropertiesTab.cs: Formatting
24074         * PropertyGrid.cs: Formatting
24075         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
24076           click toggling of values
24077           
24078 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
24079
24080         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
24081         * Control.cs (.ctor): verify_thread_handle is static, don't reset
24082           every time a control is created
24083         * Application.cs: Removed obsolete EnableRTLMirroring method
24084
24085 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
24086
24087         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
24088         SelectedIndex to -1. Fixes bug #78121.
24089
24090 2006-04-17  Jackson Harper  <jackson@ximian.com>
24091
24092         * Binding.cs: Handle null values for Current and BindingContext.
24093         This occurs when binding is a little delayed.
24094         * CurrencyManager.cs: return null for Current when there are no
24095         items in the list.
24096         - Hookup to the listchanged event on the DataView and update
24097         bindings when the list is changed.  This fixes late binding of
24098         controls.
24099
24100 2006-04-17  Jackson Harper  <jackson@ximian.com>
24101
24102         * X11Dnd.cs:
24103         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
24104         Ringenbach.
24105
24106 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
24107
24108         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
24109           place
24110         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
24111           with the correct ButtonState
24112
24113 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
24114
24115         * XplatUIX11.cs: Improved distinguishing between window types to
24116           tell the WM a type closer to what the app wants (Fixes #78107)
24117
24118 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
24119
24120         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
24121           GrabHandle
24122
24123 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
24124
24125         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
24126           drawing code to reflect the size grip changes
24127
24128 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24129
24130         * ImageListStreamer.cs: fix handling of the mask that follows the main
24131         bitmap when deserializing and serialize it properly. The generated mask
24132         should better be a 1bpp image, but I'll do that later.
24133
24134 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
24135
24136         * FileDialog.cs: Show something in the DirComboBox on *nix if the
24137           path doesn't fit into some of our Current.Places
24138
24139 2006-04-13  Jackson Harper  <jackson@ximian.com>
24140
24141         * ComboBox.cs: Use borders instead of drawing our own decorations,
24142         try to obey correct rules for heights.
24143         * Theme.cs:
24144         * ThemeNice.cs:
24145         * ThemeClearLooks.cs:
24146         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
24147         this is now handled by borders.
24148         - Remove unused DrawListBoxDecorationSize method.
24149         
24150 2006-04-13  Mike Kestner  <mkestner@novell.com>
24151
24152         * MenuAPI.cs: null guarding for the disbled click check fixes crash
24153         reported by Alex.
24154
24155 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
24156
24157         * ThemeWin32Classic.cs: 
24158           - Fixed CPDrawStringDisabled
24159           - Corrected drawing of disabled menu items
24160           - Fixed drawing of disabled radio buttons (bug #78095)
24161           - Draw check in a disabled CheckBox with color ControlDark 
24162
24163 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24164
24165         * Form.cs: Use the provided width when calculating the menu size;
24166           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
24167           and ClientSize.Width won't be updated yet
24168         * Application.cs: Use Visible instead of Show() to make form visible,
24169           this way we create the handle later and menusize is considered
24170
24171 2006-04-12  Mike Kestner  <mkestner@novell.com>
24172
24173         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
24174         reporting.
24175
24176 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24177
24178         * TextBox.cs: Implemented context menu
24179
24180 2006-04-12  Mike Kestner  <mkestner@novell.com>
24181
24182         * ListView.cs: implement box selection. fixes #77838.
24183         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
24184
24185 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
24186
24187         * XplatUIX11.cs: Added setting of window type when transient window
24188           is created (metacity would move it otherwise)
24189         * X11Structs.cs: Added WINDOW_TYPE atoms
24190         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
24191           background (the control is Opaque but still wants transparent
24192           backgrounds)
24193
24194 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24195
24196         * Control.cs: Added OnPaintBackgroundInternal to allow controls
24197           that set Opaque but don't mean it (like all ButtonBase-derived
24198           controls) to still draw their background
24199         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
24200           the background
24201
24202 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
24203
24204         * Control.cs (PaintControlBackground): Set the graphics object
24205           on our PaintEvent to null to prevent it from being disposed
24206           when the PaintEvent gets disposed
24207
24208 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
24209
24210         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
24211         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
24212
24213 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
24214
24215         * Control.cs: 
24216           - Added transparency check to BackColor property. Transparent
24217             backgrounds are only allowed if the control styles permit it
24218           - Added recursive painting of parent control background and
24219             foreground if a control with a transparent backcolor is drawn
24220             (Thanks to Tim Ringenback for providing his 'hack' as a base
24221              for this patch) Fixes #77985 and #78026.
24222           - Added Opaque style check before calling OnPaintBackground, no
24223             need to draw the background if the control is opaque
24224           - Removed ControlAccessibleObject owner variable (inherited from
24225             base, no need to define again)
24226           - Added some documentation links explaining the drawing events
24227             and styles
24228
24229 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
24230
24231         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
24232           that the affected control is the located at the left border of our
24233           parent (Fixes #77936)
24234
24235 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24236
24237         * TextBoxBase.cs: When rendering disabled or readonly controls,
24238           draw the background with 'Control' instead of 'Window' color as
24239           long as the user hasn't specifically set a color
24240
24241 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
24242
24243         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
24244           since that won't be updated if the user types text (only if it's
24245           programatically set)
24246
24247 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24248
24249         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
24250           layout changes do to app-triggered resizes will have the proper
24251           display rectangle for layout
24252
24253 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
24254
24255         * ThemeWin32Classic.cs:
24256           - Make use of the SystemBrushes and SystemPens wherever possible
24257           - Corrected some highlight colors
24258           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
24259             drawing
24260         * Theme.cs: Added Empty field to CPColor struct
24261
24262 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
24263
24264         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
24265           is displayed when calculating the display rectangle. Thanks to Mike
24266           for teaching me the err of my ways.
24267
24268 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
24269
24270         * ScrollableControl.cs:
24271           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
24272             (instead of 0,0) and we now return the real width/height instead of
24273             just the clientrectangle, adjusted for padding. The rectangle is
24274             now cached and created by the new CalculateDisplayRectangle method.
24275           - Created new CalculateDisplayRectange method, which basically does
24276             what get_DisplayRectangle() did originally, but now using the 
24277             right edge instead of DisplayRectangle to determine the size of
24278             our scrollbars
24279           - get_Canvas(): Fixed it to properly calculate canvas for 
24280             right/bottom controls which seem to be placed to the right/bottom
24281             of any controls that have a fixed location
24282           - Removed TODO that's taken care of
24283           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
24284             and SetDisplayRectLocation according to new MSDN2 docs
24285           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
24286             event when that is called, this is added for compatibility
24287           - ScrollControlIntoView(): Implemented.
24288           - Switched scrollbars to be implicit, they shouldn't be selectable
24289         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
24290           call it when the active control is set/changed
24291         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
24292         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
24293           implicit_control variable (used for native Win32 message generation)
24294         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
24295           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
24296         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
24297         * XplatUIStructs.cs: Added ScrollBarCommands enum
24298
24299 2006-04-10  Jackson Harper  <jackson@ximian.com>
24300
24301         * ButtonBase.cs:
24302         * CheckedListBox.cs:
24303         * ComboBox.cs:
24304         * DataGrid.cs:
24305         * DataGridView.cs:
24306         * Form.cs:
24307         * GroupBox.cs:
24308         * ListBox.cs:
24309         * PrintPreviewControl.cs:
24310         * ProgressBar.cs:
24311         * PropertyGrid.cs:
24312         * Splitter.cs:
24313         * StatusBar.cs:
24314         * TrackBar.cs:
24315         * UpDownBase.cs: Fixup base event overrides.
24316         
24317 2006-04-06  Mike Kestner  <mkestner@novell.com>
24318
24319         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
24320         all user-initiated value changes to min <= value <= max-thumbsz+1.
24321         (set_Value): check for vert/horiz when calculating new thumb position.
24322         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
24323         like MS does.
24324         (OnMouseMoveSB): refactor the thumb dragging code and refine
24325         invalidation logic to reduce flicker.
24326         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
24327         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
24328         (UpdateThumbPosition): small code readability cleanup
24329
24330 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
24331
24332         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
24333           different
24334
24335 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
24336
24337         * ThemeNice.cs: Use a better graphics effect when a button is pressed
24338
24339 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
24340
24341         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
24342         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
24343           This dramatically reduces the number of Pen.Dispose calls. 
24344           Where possible call ResPool methods only once instead of calling it
24345           over and over again (for example for the same color).
24346
24347 2006-04-06  Mike Kestner  <mkestner@novell.com>
24348
24349         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
24350         Also remove an unused private field on the collection. Fixes #77972.
24351
24352 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
24353
24354         * ThemeNice.cs: Added ToolBar drawing code
24355
24356 2006-04-06  Mike Kestner  <mkestner@novell.com>
24357
24358         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
24359         I'm assuming that means we need to look up the toplevel for the
24360         provided control. Fixes the crash trace in #77911 but exposes another
24361         crash in some strange reflection usage in NDocGui.
24362
24363 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
24364
24365         * ThemeNice.cs: Gave it a little silver touch and added Images
24366           method
24367         * FontDialog.cs: FontDialog is not resizable
24368         * FileDialg.cs: Added SizeGripStyle.Show
24369
24370 2006-04-05  Jackson Harper  <jackson@ximian.com>
24371
24372         * KeyboardLayouts.cs: Remove warning.
24373
24374 2006-04-05  Jackson Harper  <jackson@ximian.com>
24375
24376         * Control.cs: Enable OnPaintInternal so we can use it for drawing
24377         all of our controls instead of Paint +=.
24378         * ListBox.cs:
24379         * ListView.cs:
24380         * MenuAPI.cs:
24381         * MessageBox.cs:
24382         * NotifyIcon.cs:
24383         * ProgressBar.cs:
24384         * ScrollBar.cs:
24385         * Splitter.cs:
24386         * StatusBar.cs:
24387         * TabControl.cs:
24388         * TextBoxBase.cs:
24389         * ToolBar.cs:
24390         * TrackBar.cs:
24391         * UpDownBase.cs:
24392         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
24393         use OnPaintInternal. Remove Width/Height and Visible checks in
24394         paint handler, this is done at a higher level now.
24395         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
24396         * PaintEventArgs.cs: Add a handled flag so controls that don't
24397         want anymore painting after OnPaintInternal can make sure OnPaint
24398         isn't called.
24399
24400 2006-04-05  Mike Kestner  <mkestner@novell.com>
24401
24402         * Form.cs: fix the menu WndProc hacks to respect the native enabled
24403         state of the form, so that we don't process events when Modal dialogs
24404         are up. Fixes #77922.
24405
24406 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
24407
24408         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
24409           checking is done.
24410
24411 2006-04-05  Mike Kestner  <mkestner@novell.com>
24412
24413         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
24414
24415 2006-04-05  Mike Kestner  <mkestner@novell.com>
24416
24417         * ListView.cs (HeaderMouseMove): null guarding for the over column
24418         when setting up the drag_to_index.  Fixes #78015.
24419
24420 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
24421
24422         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
24423           in the taskbar. Transient windows seem to accomplish that.
24424
24425 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
24426
24427         * Form.cs:
24428           - Re-enabled CreateParams.X/Y code for FormStartPosition
24429           - Added code for manual placement when creating the Control
24430           - Incomplete patch to treat MDI forms differently when
24431             setting the ClientSizeCore. (Still need to figure out handling
24432             x/y coords there)
24433         * XplatUIX11.cs:
24434           - When we're explicitly setting the X/Y position of a non-Child
24435             window, let the WM know. Metacity really wants this.
24436
24437 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24438
24439         * ThemeNice.cs: Added CPDrawButton
24440
24441 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24442
24443         * ThemeNice.cs: Changed the color for focused buttons and activated
24444           the arrows for small scroll buttons.
24445
24446 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
24447
24448         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
24449           anymore. Changed some method modifiers to protected (virtual)
24450         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
24451           changes
24452         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
24453           Updated drawing of menus, buttons and progressbars; added
24454           CPDrawBorder3D 
24455
24456 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24457
24458         * ImageListStreamer.cs: implemented serialization/deserialization
24459         of the images.
24460
24461 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
24462
24463         * ThemeWin32Classic.cs:
24464           - Removed all the DrawFrameControl stuff; CPDrawButton,
24465             CPDrawCheckBox and CPDrawRadioButton are now handled directly
24466             inside the methods
24467           - Updated and corrected the drawing code of CPDrawButton,
24468             CPDrawCheckBox and CPDrawRadioButton to better match ms
24469           - Updated theme checkbox and radiobutton code to use the CP*
24470             methods
24471
24472 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
24473
24474         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
24475           bug is fixed
24476
24477 2006-03-31  Jackson Harper  <jackson@ximian.com>
24478
24479         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
24480         sometimes.
24481         * UpDownBase.cs: Don't CreateGraphics manually, use a
24482         Refresh. Ideally we would invalidate the correct areas here.
24483
24484 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
24485
24486         * XplatUIX11.cs: 
24487           - We now track the mapping state of windows. If a window (or 
24488             one of it's parents) is not mapped we no longer permit
24489             WM_PAINT messages to be generated since we'd otherwise get 
24490             lots of BadMatch X errors. Jackson did all the work figuring
24491             out the problem.
24492           - Destroying the caret if the window it's contained in is 
24493             destroyed. Can't use regular DestroyCaret method since it
24494             might fall into a drawing function (trying to remove the
24495             caret) and with that generate new BadMatch errors. Again,
24496             Jackson tracked this down.
24497           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
24498             make sure we send the messages to all windows. (The old code
24499             would send the WM_DESTROY to the window, and then all child
24500             windows would be 'gone' because the WM_DESTROY handle lookup
24501             would no longer find the destroyed window)
24502         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
24503         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
24504
24505 2006-03-31  Jackson Harper  <jackson@ximian.com>
24506
24507         * ScrollableControl.cs: Dont recalc if we are not visible.
24508
24509 2006-03-31  Mike Kestner  <mkestner@novell.com>
24510
24511         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
24512         the visibility branch.
24513
24514 2006-03-31  Jackson Harper  <jackson@ximian.com>
24515
24516         * ScrollBar.cs: Cap values when incrementing/decrementing.
24517
24518 2006-03-31  Mike Kestner  <mkestner@novell.com>
24519
24520         * MenuAPI.cs: setup menu.tracker for popup/context menus.
24521         * ToolTip.cs: guard against timer expirations with no active control.
24522         Not sure why it happened.
24523
24524 2006-03-31  Mike Kestner  <mkestner@novell.com>
24525
24526         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
24527         text.
24528         * ToolTip.cs: Position the tooltip based on where the cursor is at
24529         popup time, not at MouseEnter time.  Add a Down state so that we don't
24530         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
24531         positioning offset. Lookup DisplaySize at positioning time, since it
24532         can theoretically change during invocation.
24533         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
24534         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
24535
24536 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
24537
24538         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
24539           Fixes behaviour when the Text property of the box is String.Empty
24540
24541 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
24542
24543         * XplatUIX11.cs: Only send mouseleave for our client windows, not
24544           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
24545           a window)
24546
24547 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
24548
24549         * FileDialog.cs: Visual enhancement for the popup buttons in 
24550           PopupButtonPanel
24551
24552 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
24553
24554         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
24555           code
24556
24557 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
24558
24559         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
24560           highlighted menu items to match ms
24561
24562 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
24563
24564         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
24565
24566 2006-03-30  Mike Kestner  <mkestner@novell.com>
24567
24568         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
24569         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
24570         go active to account for HotLight to Selected transition.
24571         * MenuItem.cs: add internal Selected prop. Fill out the Status
24572         property by calculating it from item info. Add HotLight,
24573         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
24574
24575 2006-03-30  Mike Kestner  <mkestner@novell.com>
24576
24577         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
24578
24579 2006-03-29  Jackson Harper  <jackson@ximian.com>
24580
24581         * Form.cs: Implement TODO.
24582
24583 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
24584
24585         * PrintPreviewDialog.cs: Implemented missing methods and events; still
24586           missing proper dialog setup in the constructor
24587
24588 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
24589
24590         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
24591         * Control.cs:
24592           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
24593           - Fixed ResetBindings and removed TODO
24594           - Added check for cross-thread calls to get_Handle()
24595           - Added Marshaller attribute for set_Font to satisfy class status
24596         * FontDialog.cs: Removed TODOs that seemed implemented
24597         * UpDownBase.cs: Removed unneeded TODO and Fixme
24598         * MessageBox.cs: Implemented support for Default button and removed TODO
24599         * FileDialog.cs: Removed obsolete TODO
24600         * DomainUpDown.cs: Removed obsolete TODO
24601         * ButtonBase.cs: Removed obsolete TODO
24602         * XplatUIWin32.cs: Removed obsolete TODO
24603         * Form.cs:
24604           - Removed obsolete TODO
24605           - Calling CheckAcceptButton when the acceptbutton is changed to allow
24606             internal status updates
24607           - Making sure the active control is selected when the control is created
24608         * CurrencyManager.cs: Removed obsolete TODO
24609
24610 2006-03-29  Mike Kestner  <mkestner@novell.com>
24611
24612         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
24613         of PrintPreviewDialog and RichTextBox.
24614
24615 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
24616
24617         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
24618           DarkDark, Light and LightLight colors for a specific color
24619         * ThemeWin32Classic.cs:
24620           - Use Button drawing code to draw RadioButtons and CheckBoxes with
24621             Appearance = Button 
24622           - Make use of the new ResPool helper CPColor
24623           - Draw ProgressBar and StatusBar with correct 3D borders
24624
24625 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
24626
24627         * ColorDialog.cs: Return selected color. Fixes bug #77940.
24628
24629 2006-03-28  Mike Kestner  <mkestner@novell.com>
24630
24631         * ListView.cs: fix Icon layout to plan for scrollbar widths when
24632         calculating col/row counts.
24633
24634 2006-03-28  Mike Kestner  <mkestner@novell.com>
24635
24636         * ColumnHeader.cs:
24637         * ListView.cs:
24638         * ListViewItem.cs:
24639         * Menu.cs: 
24640         switch to explicit interface method implementation for some methods
24641         corcompare identifies as inconsistent with MS.
24642
24643 2006-03-28  Mike Kestner  <mkestner@novell.com>
24644
24645         * MainMenu.cs: 
24646         * Menu.cs:
24647         add a few missing methods from the class status output.
24648
24649 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
24650
24651         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
24652           correct.
24653
24654 2006-03-28  Mike Kestner  <mkestner@novell.com>
24655
24656         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
24657
24658 2006-03-27  Mike Kestner  <mkestner@novell.com>
24659
24660         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
24661         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
24662
24663 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
24664
24665         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
24666
24667 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
24668
24669         * ThemeWin32Classic.cs:
24670           - GroupBox: Inserted a little gap between the text and the lines
24671             on the right side
24672           - Made the code in CPDrawBorder3D more readable
24673           - Corrected the drawing location of the up and down arrows in 
24674             CPDrawScrollButton
24675
24676 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
24677
24678         * ControlPaint.cs: Corrected line widths in DrawBorder for
24679           ButtonBorderStyle Inset and Outset
24680
24681 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
24682
24683         * ThemeWin32Classic.cs:
24684           - Rewrote the totally broken CPDrawBorder3D method. That was
24685             one of the main problems for the terrific ThemeWin32Classic
24686             look
24687           - Updated and corrected Button drawing
24688           - Correct the dimensions of the SizeGrip to match ms ones
24689           - Removed a small drawing glitch in DrawComboBoxEditDecorations
24690         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
24691           Border3DStyle.Sunken to match ms.
24692
24693 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
24694
24695         * ThemeWin32Classic.cs: First small part of the "de-uglify
24696           ThemeWin32Classic" effort, SizeGrip
24697
24698 2006-03-24  Jackson Harper  <jackson@ximian.com>
24699
24700         * XplatUIX11.cs: Give a max idle time of one second, this matches
24701         MS and forces an Idle event every second when there are no other
24702         events in the queue.
24703
24704 2006-03-24  Mike Kestner  <mkestner@novell.com>
24705
24706         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
24707         * ListView.Item.cs: fix layout issues with null image lists and images
24708         smaller than checkbox size.
24709         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
24710         mode like MS does.  It's weird, but consistent.  ;-)
24711         Fixes #77890.
24712
24713 2006-03-24  Mike Kestner  <mkestner@novell.com>
24714
24715         * ListView.cs: Scroll wheel support for the item control.  Fixes
24716         #77839.
24717
24718 2006-03-23  Jackson Harper  <jackson@ximian.com>
24719
24720         * ScrollableControl.cs: Special case negative sized areas, not
24721         zero.
24722         * MonthCalendar.cs: Save the rect of the clicked date so we can
24723         use it for invalidation.
24724         - Try to cut down on the number of invalidates
24725         - Invalidate the rect the mouse is over and was over when moving
24726         the mouse, so we get the focus box following the cursor.
24727
24728 2006-03-23  Mike Kestner  <mkestner@novell.com>
24729
24730         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
24731         focus rectangle drawing. Fixes #77835.
24732
24733 2006-03-23  Mike Kestner  <mkestner@novell.com>
24734
24735         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
24736         the if and else if and reverting back to the original == check on the
24737         None conditional.
24738
24739 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
24740
24741         * FontDialog.cs: Update the example panel if the selected index of
24742           the fontListBox changes.
24743
24744 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
24745
24746         * FileDialog.cs: Make FileDialog remember which directory it was in
24747           last in the same execution.
24748
24749 2006-03-22  Mike Kestner  <mkestner@novell.com>
24750
24751         * FileDialog.cs: make the DropDownMenu on the toolbar display
24752         RadioChecks since they are mutually exclusive and that's what MS does.
24753
24754 2006-03-22  Mike Kestner  <mkestner@novell.com>
24755
24756         * Theme.cs: add Color param to CPDrawMenuGlyph.
24757         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
24758         checks and radio marks and arrows are visible on highlighted items.
24759         * ControlPaint.cs: update to use new Theme signature.
24760
24761 2006-03-22  Mike Kestner  <mkestner@novell.com>
24762
24763         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
24764         is active. Fixes #77870.
24765
24766 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
24767
24768         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
24769           to be focused/selected after startup
24770
24771 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
24772
24773         * ColorDialog.cs: 
24774           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
24775             CustomColors and ShowHelp properties
24776           - Some internal rewrites to get better results when using the
24777             ColorMatrix
24778
24779 2006-03-22  Mike Kestner  <mkestner@novell.com>
24780
24781         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
24782         HoverSelection.  Fixes #77836.
24783
24784 2006-03-22  Mike Kestner  <mkestner@novell.com>
24785
24786         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
24787         ToggleButtons.  (De)Sensitize the Back button around a stack count of
24788         1, not 0.  Update ButtonSize based on a pixel count of the win32
24789         control.  Adjust the toolbar size/location for new button size.
24790
24791 2006-03-22  Jackson Harper  <jackson@ximian.com>
24792
24793         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
24794         true.
24795         * ScrollBar.cs: When doing increments and decrements we need to
24796         set the Value property so that ValueChanged gets raised. A
24797         possible optimization here would be to make an internal SetValue
24798         that doesn't invalidate immediately.
24799         * ToolTip.cs: Tooltips get added to their container (when
24800         supplied) so they get disposed when the container is disposed.
24801         - Don't create tooltips for String.Empty. This prevents all these
24802         little 2-3 pixel windows from showing up when running nunit-gui
24803         and driving me mad.
24804         * Form.cs: Don't set topmost when setting the owner if the handles
24805         haven't been created yet.  The topmost set will happen when the
24806         handles are created.
24807
24808 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
24809
24810         * XplatUIX11.cs:
24811           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
24812           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
24813             visible (to allow them to recalculate their sizes)
24814
24815 2006-03-21  Mike Kestner  <mkestner@novell.com>
24816
24817         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
24818         methods. Removed a ton of redundant code.  Still not really happy with
24819         the border rendering, but I think that's mainly because of the
24820         ControlDarkDark being black instead of a dark grey. Depending on how 
24821         close we want to be, we might want to revisit those color choices.
24822         Among the new features added during the refactor were DropDownArrow
24823         pressed rendering, Disabled image rendering.  Proper flat appearance
24824         boundary rendering.  Removed the Divider and Wrapping dividers since I
24825         can't figure out any combination of themes and conditions to make the
24826         MS control draw a horizontal line on a toolbar despite what the
24827         Divider property docs indicate.
24828         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
24829         conditions and incorrect layout.  Updated to coding standard.
24830         * ToolBarButton.cs: refactored layout and positioning code from
24831         ToolBar to here.  Invalidate wherever possible instead of forcing
24832         redraws of the whole toolbar. 
24833         (Known remaining issues: explicit ButtonSize smaller than provided
24834         images.)
24835
24836 2006-03-21  Mike Kestner  <mkestner@novell.com>
24837
24838         * ContextMenu.cs (Show): use the position parameter instead of just
24839         showing at the MousePosition.
24840
24841 2006-03-21  Jackson Harper  <jackson@ximian.com>
24842
24843         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
24844         control handle this.
24845         * TreeNodeCollection.cs: If we are clearing the root node we need
24846         to reset top_node so calcs can still happen.
24847         * ThemeWin32Classic.cs: This is a Flags so we need to check
24848         properly.
24849         
24850 2006-03-21  Jackson Harper  <jackson@ximian.com>
24851
24852         * DataGrid.cs: Create columns when the binding context has been
24853         changed.
24854         * X11Structs.cs: Keysyms are uints.
24855         - Add size to fix build.
24856
24857 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
24858
24859         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
24860           XplatUIOSX.cs: 
24861           - Added ResetMouseHover method to allow controls to retrigger
24862             hovering if they need it more than once
24863           - Implemented MouseHoverTime and MouseHoverSize properties
24864         * Timer.cs: Start() must reset the interval
24865         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
24866           properties
24867
24868 2006-03-21  Jackson Harper  <jackson@ximian.com>
24869
24870         * X11Keyboard.cs: improved layout detection. Move the nonchar
24871         tables into this file.
24872         * KeyboardLayouts.cs: Move the tables into resource files.
24873
24874 2006-03-21  Mike Kestner  <mkestner@novell.com>
24875
24876         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
24877
24878 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
24879
24880         * Mime.cs: Various speed optimizations. Looking up mime types
24881           is now 2 times faster than before
24882
24883 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
24884
24885         * CreateParams.cs: Added internal menu field
24886         * Control.cs: 
24887           - Switched call order for UpdateBounds; now we always call
24888             the one that also takes ClientSize, and we're calculating the 
24889             client size via driver method in the others. The previous
24890             method of tracking client size by difference wasn't working
24891             for forms where even the starting client size wouldn't match
24892             the overall form size (due to borders) (Part of fix for #77729)
24893           - CreateParams(): Do not use parent.Handle unless the handle is
24894             already created. Causes havoc with Nexxia and throws off our
24895             creation of controls
24896         * XplatUIX11.cs:
24897           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
24898           - Switched handling of ConfigureNotify over to new PerformNCCalc 
24899             method (consolidates code)
24900           - Changed RequestNCRecalc to use new PerformNCCalc method
24901           - Added calls to RequestNCRecalc when menus and borders are changed
24902             to allow app to set NC size. (Part of fix for #77729) This matches
24903             when MS send a WM_NCRECALC on Win32 windows.
24904           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
24905             (Part of fix for #77729). This matches what MS does, they also
24906             send that message when the form is made visible.
24907           - XException.GetMessage: Improved usability of X errors by including
24908             a translation of the window into Hwnd and Control class
24909           - Improved debug info for window creation, reparenting and destruction
24910           - Created helper method WindowIsMapped() [Currently not used]
24911         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
24912         * Form.cs:
24913           - CreateParams: Now setting our menu on the new internal menu field
24914           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
24915             avoid calculating the same property twice
24916         * Hwnd.cs:
24917           - Improved usability of ToString() for debugging purposes
24918           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
24919             determine the height of the menu, instead of just the font. This
24920             required to also create a graphics context and to keep a bmp 
24921             around (for performance reasons)
24922
24923 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
24924
24925         * MenuAPI.cs: Added OnMouseUp method
24926         * Form.cs:
24927           - Now remembering the requested client size, avoids size errors
24928           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
24929             instead of base if the menu is active. This is required due to
24930             control now capturing and releasing on down/up and it would
24931             prematurely release our menu capture
24932
24933 2006-03-17  Jackson Harper  <jackson@ximian.com>
24934
24935         * KeyboardLayouts.cs: Add the czech layouts.
24936
24937 2006-03-16  Jackson Harper  <jackson@ximian.com>
24938
24939         * Control.cs: Use the viewport space when sizing not the controls
24940         client size, so things like ScrollableControl that effect the
24941         viewport size (when scrollbars are added) are computed correctly.
24942         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
24943         of ManagerEntrys.
24944         - Handle creating BindingManagers for null data sources.
24945         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
24946         source, otherwise when rows are added they are added to the 'fake'
24947         datasource and we will crash when trying to set the position in
24948         those rows.
24949         - Use Implicit scrollbars on the datagrid so they arent
24950         selectable.
24951         
24952 2006-03-16  Jackson Harper  <jackson@ximian.com>
24953
24954         * Binding.cs:
24955         * InternalWindowManager.cs:
24956         * MdiWindowManager.cs:
24957         * X11Keyboard.cs: I really want Mike to love me again (fix
24958         compiler warnings).
24959
24960 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
24961
24962         * DataGrid.cs:
24963           - OnMouseDown: Switch to editing mode when clicking on the cell
24964                          even if we're clicking on the cell that's currently 
24965                          selected
24966           - ProcessGridKey: Left/Right now wrap like MS.Net does
24967           - ProcessGridKey: Tab now knows to add a new row when tab is
24968                             pressed in the cell of the last column of the 
24969                             last row
24970           - ProcessGridKey: Enter now adds another row  if pressed in the last
24971                             row and selectes the new row, same column cell
24972           - ProcessGridKey: Home/End navigate columns, not rows, like 
24973                             originally implemented
24974           - Broke ProcessKeyPreview code out into an extra Internal method
24975             so it can be called from the edit code
24976         * DataGridTextBox.cs (ProcessKeyMessage):
24977           - Switched to accept Tab keypresses
24978           - Added F2 handling to allow jumping to the end of the edited cell
24979           - Added logic to allow moving caret left/right inside edited cell
24980             and making the edited cell jump when the caret hits cell borders
24981           - Tab and Enter are now passed to the datagrid after being handled
24982         * TextBoxBase.cs:
24983           - Removed capture code now that Control handles it
24984           - set_SelectionStart now ensures caret is visible
24985
24986 2006-03-16  Jackson Harper  <jackson@ximian.com>
24987
24988         * TrackBar.cs: Debackwards the increment/decrement for handling
24989         mouse clicks on the bar with vertical trackbars.
24990         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
24991         bottom to match MS.
24992
24993 2006-03-16  Mike Kestner  <mkestner@novell.com>
24994
24995         * ListView.cs: make shift/ctrl keyboard and mouse selection 
24996         consistent with the MS control. Fix a bug in
24997         SelectedListViewItemCollection.Clear that was pissing me off for the
24998         better part of a day because the collection was being altered
24999         underneath us as we walked the list.
25000
25001 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
25002
25003         * Control.cs: Not sure how we could miss this so long, but it seems
25004           that MS.Net has Capture set all the way from before calling 
25005           OnMouseDown through sending the mouse events until after
25006           OnMouseUp. This will fix DataGrid's selection being set to end
25007           at the location of the MouseUp.
25008
25009 2006-03-15  Jackson Harper  <jackson@ximian.com>
25010
25011         * BindingContext.cs: Check the binding after its added so that it
25012           can initialize the binding managers and hookup to events.
25013         * Binding.cs: Data members seem to sometimes include rows/cols in
25014           the format Row.Column we now take this into account.
25015           - Hookup to the position changed event so we can update the
25016           control when the position has changed in the data set.
25017         * CurrencyManager.cs: Take into account the row/col naming
25018           convention when creating dataset tables.
25019         * BindingContext.cs: Using a newer better way of storing
25020           datasource/datamember pairs.  Hopefully this better matches MS for
25021           looking up binding managers.
25022
25023
25024 2006-03-15  Jackson Harper  <jackson@ximian.com>
25025
25026         * BindingContext.cs: The currency manager needs the data member
25027         name, if the member is a data set we use the name to find the
25028         correct table.
25029         * CurrencyManager.cs: When creating the list prefer an IList over
25030         an IListSource.
25031         - Attempt to create a DataTable from a DataSet (TODO: might need
25032         some better error checking here, although MS doesn't seem to have much)
25033         - If we have a DataTable create a view and use it as our list.
25034
25035 2006-03-15  Mike Kestner  <mkestner@novell.com>
25036
25037         * ListView.cs: keep a matrix of the icon mode layout to facilitate
25038         keyboard navigation. Support Up/Down/Left/Right selection correctly
25039         for all 4 View modes.
25040         * ListViewItem.cs: add internal row/col fields for icon layouts.
25041
25042 2006-03-15  Jackson Harper  <jackson@ximian.com>
25043
25044         * TabControl.cs: Redraw the tabs when we resize so their newly
25045         calculated sizes are drawn on screen.
25046         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
25047         composite characters.
25048         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
25049         - filter events so that composite characters can be created
25050         patches by peter
25051         * X11Structs.cs: Add XIMProperties enum.
25052
25053 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
25054
25055         * Control.cs (BringToFront, SendToBack): Don't use window or handle
25056           unless it's created
25057
25058 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
25059
25060         * Control.cs (PerformLayout): We don't need to consider visiblity
25061           for anchoring, only for docking. This fixes 'whacky' alignment
25062           in listbox and other controls that use implicit scrollbars after
25063           the previous PerformLayout patch
25064         * ListBox.cs: Switched to use implicit scrollbars
25065           
25066 2006-03-14  Mike Kestner  <mkestner@novell.com>
25067
25068         * ToolBar.cs: 
25069         * VScrollBar.cs:
25070         - chain up the "new event" overrides to base and use
25071         OnEvent to raise them.  Part of fix for bug #76509.
25072
25073 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
25074
25075         * FileDialog.cs: Do not select an item in the parent directory
25076           on backspace
25077
25078 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
25079
25080         * Control.cs (PerformLayout): It would seem that we considered
25081           invisible windows for our layout. Not quite the right thing
25082           to do. Now we don't any longer, thereby fixing bug #76889.
25083
25084 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
25085
25086         * Control.cs (CanFocus): I goofed. A control can have focus 
25087           even though it's not selectable. Made it match MS docs.
25088
25089 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25090
25091         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
25092           center by default (fixes #76895)
25093         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
25094           all uses of Border3DSides.All with the explicit ORd together
25095           Left|Right|Top|Bottom because I assume that nobody was aware 
25096           that All also implies a center fill. Most places I checked had
25097           a fill right above.
25098         * ProgressBarStyle.cs: Added
25099
25100 2006-03-13  Mike Kestner  <mkestner@novell.com>
25101
25102         * ListView.cs: fix breakage in drag shadow header positioning 
25103         from Peter's csc compilation fix.
25104
25105 2006-03-13  Mike Kestner  <mkestner@novell.com>
25106
25107         * ListView.cs: fix NRE produced by backspacing twice in a focused
25108         FileDialog.
25109
25110 2006-03-13  Mike Kestner  <mkestner@novell.com>
25111
25112         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
25113
25114 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25115
25116         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
25117           be changed
25118         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
25119           the allowed size before making programmatic size changes
25120
25121 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
25122
25123         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
25124           set, metacity is broken and will still use the emty sizes in 
25125           the struct. (Fix for #77089)
25126
25127 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
25128
25129         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
25130           WindowExStyles and marked both enums as Flags
25131         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
25132           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
25133           to match WindowStyles split
25134         * XplatUIX11.cs:
25135           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
25136           - Updated to match WindowStyles split
25137         * XplatUIWin32.cs:
25138           - Fixed FosterParent creation, was using ExStyle on the Style field
25139             (This should help with Popup focus issues)
25140           - Updated to match WindowStyles split
25141
25142 2006-03-13  Jackson Harper  <jackson@ximian.com>
25143
25144         * MdiWindowManager.cs: Use the system menu height. Fixes some
25145         strange sizing issues.
25146
25147 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
25148
25149         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
25150         * TextBoxBase.cs:
25151           - Scroll to caret after inserting text (#77672)
25152           - Make scroll range one pixel higher, fixes off-by-one error (and
25153             makes underlines visible on the last line)
25154
25155 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
25156
25157         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
25158           the keyboard state from being stuck with keys in 'pressed' state when
25159           focus is switched away via keyboard
25160         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
25161           reset the keyboard if no X11 KeyUp events are expected to come
25162         * X11Structs.cs: Switched type of Visible to bool to match driver
25163
25164 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
25165
25166         * TextControl.cs:
25167           - Switched caret to be just 1 pixel wide, matches MS and looks less
25168             clunky
25169           - Moved caret display 1 pixel down from the top of the control
25170             to improve view
25171           - InsertCharAtCharet: Update the selection start if moving the caret
25172             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
25173           - No longer always creating the caret when the caret methods are
25174             called. Only the actual ShowCaret/HideCaret will do that now
25175           - Only setting caret visible if the owner control has focus
25176           - UpdateView: Added invalidation-shortcut logic for center and right 
25177             aligned text. Previously we'd update all according to the left
25178             logic which caused drawing errors. Also fixed height of invalidated
25179             areas, now properly invalidating the whole area (was off-by-one)
25180           - owner_HandleCreated: Always generate the document when the
25181             handle is created; this ensures that 
25182         * TextBoxBase.cs:
25183           - Fixed situation where caret would disappear under the right
25184             window border, also improved scrolling behaviour on left-
25185             aligned textboxes
25186           - Fixed right-aligned textboxes to have a border to the
25187             right instead of the caret being under the right border
25188         * XplatUIX11.cs:
25189           - Switched from 'nested' to simple visible/not visible tracking 
25190             for caret (part of fix for #77671)
25191           - No longer passing through translated FocusIn/FocusOut messages
25192             since we were notifying too often and the wrong windows. Instead
25193             we just notify our focussed window of receiving or loosing focus
25194         * XplatUIWin32.cs: Switched from 'nested' show/hide 
25195           counting for caret to simple visible yes/no behaviour (part of 
25196           fix for #77671)
25197
25198 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
25199
25200         * Mime.cs: Remove debug code...
25201
25202 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
25203
25204         * MimeGenerated.cs: Removed
25205         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
25206           and subclasses) from /usr/(local/)share/mime and
25207           $HOME/.local/share/mime.
25208
25209 2006-03-10  Jackson Harper  <jackson@ximian.com>
25210
25211         * MdiWindowManager.cs: Recalc the NC area when a window is
25212         maximized/restored so that the menu area is drawn on forms that
25213         don't have a menu.
25214
25215 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25216
25217         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25218           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
25219           us to force a WM_NCCALCRESIZE message being sent. This is needed
25220           for MDI maximizing.
25221
25222 2006-03-10  Jackson Harper  <jackson@ximian.com>
25223
25224         * Form.cs: We need to use the ActiveMenu when calculating menu
25225         height.
25226         - Fix nullref when the window manager hasn't been created yet.
25227         * Control.cs: Fix nullref when we try to bring a control to the
25228         front that has no parent.
25229         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
25230         height.
25231         - Add a dummy item to the maximized menu so it always has the
25232         correct height. Otherwise when there are no menus we don't get our
25233         icon and buttons.
25234         
25235
25236 2006-03-10  Jackson Harper  <jackson@ximian.com>
25237
25238         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
25239         stuff.
25240         * Form.cs: Make the window_state internal so the window managers
25241         can track it.
25242         - When an MDI child is maximized let its window manager create the
25243         main menu (so it can add its icon).
25244         - Notify the window managers of state changes
25245         - Let the window manager paint its buttons and handle button
25246         clicks on the menu when it is maximized.
25247         * InternalWindowManager.cs: Move the prev_bounds into the mdi
25248         window manager, since tool windows don't use it, only mdi windows.
25249         - Tell the main form that we don't want it to handle NCPAINT
25250         itself to avoid extra painting.
25251         - Handle clicks on a maximized windows menu.
25252         - Handle window state changes
25253         - Handle minimize/maximize clicks correctly by setting the window state.
25254         * MdiWindowManager.cs: Add an icon menu that (the menu you get
25255         when clicking on the forms icon).
25256         - New method to create a forms maximized menu. This is its normal
25257         menu + an icon.
25258         - Handle window state changes.
25259         - Handle sizing of maximized windows.  Maximized windows are just
25260         drawn bigger then the parent visible area. All controls are still
25261         there, they are just outside the visible area (this matches windows).
25262         * MdiClient.cs: No scrollbars when a child window is maximized.
25263         - Let the children windows figure out how big they should be when
25264         sizing maximized windows.
25265         - Implement a version of ArrangeIconicWindows somewhat similar to
25266         Windows version.  There are some little differences, but I don't
25267         think any app will rely on the layout of minimized mdi windows.
25268
25269 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25270
25271         * Padding.cs: Several fixes to allow compiling with csc 2.0
25272
25273 2006-03-09  Jackson Harper  <jackson@ximian.com>
25274
25275         * Menu.cs:
25276         * MenuItem.cs: Cheap hack so we can add items to the list without
25277         the events being raised.  This allows adding mdi items during
25278         drawing. TODO: Should probably find a better time to add the items.
25279
25280 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25281
25282         * ThemeWin32Classic.cs:
25283           - CheckBox_DrawText: Added logic to not wrap if not enough space
25284             is available (Fix for bug #77727)
25285           - RadioButton_DrawText: Added logic not to wrap if not enough
25286             space is available (Fix for bug #77727). Also removed some
25287             duplicate code, DrawString always drawing the regular text
25288             before hitting the if statement.
25289
25290 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
25291
25292         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
25293
25294 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
25295
25296         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
25297         * ContainerControl.cs: Partial implementation of some 2.0 scaling
25298           methods. Moved the new 2.0 properties into alphabetical order with
25299           other properties and added MonoTODO tags
25300
25301 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25302
25303         * AutoScaleMode.cs: Added. Fix build.
25304
25305 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25306
25307         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
25308           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
25309           and was requiring premature handle creation for calls from above
25310         * Form.cs, Control.cs: Removed handle arguments from calls to
25311           CalculateClientRect()
25312
25313 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25314
25315         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
25316           drag_column.column_rect is MarshalByRef and can't be used that way
25317
25318 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25319
25320         * AxHost.cs: Added deserialization constructor for 
25321           AxHost+State (fixes 77743)
25322
25323 2006-03-09  Mike Kestner  <mkestner@novell.com>
25324
25325         * ListView.cs: 
25326         - Added column drag reordering for details view.
25327         - fixed behavior when mouse is dragged off column and
25328         AllowColumnReorder is false.
25329         * ColumnHeader.cs: clone the format too in Clone.
25330         * Theme.cs: add DrawListViewHeaderDragDetails method.
25331         * ThemeWin32Classic.cs:
25332         - impl new method for drawing drag column shadows and targets.
25333         - support column offset for details mode in DrawListViewItem.
25334
25335 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25336
25337         * TextControl.cs: Reset the char_count when the document is cleared
25338           (Fixes bug reported on mono-winforms mailing list)
25339
25340 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
25341
25342         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
25343           of calling base we simply process the key ourselves, since both
25344           DefWindowProc and the handled method would set m.Result. 
25345           (Fixes #77732)
25346
25347 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
25348
25349         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
25350           method also moves the window; instead implemented a copy of
25351           Control.ScaleCore (Part of fix for #77456)
25352         * TextBoxBase.cs: 
25353           - Created new CreateGraphicsInternal method to allow providing
25354             a graphics context when no handle is created without triggering
25355             handle creation. (Part of fix for #77456)
25356           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25357         * TextControl.cs: 
25358           - Switched Constructor to require TextBoxBase instead of Control (to
25359             allow uncast access to CreateGraphicsInternal)
25360           - Safeguarded use of owner.Handle property. No longer accessing it
25361             unless the handle is already created.
25362           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25363           - Now triggering a recalc when owning control becomes visible
25364         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
25365           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
25366           premature handle creation (Part of fix for #77456)
25367         * Control.cs:
25368           - We now only destroy our double-buffering buffers when the
25369             control is resized or disposed, but not when visibility
25370             changes. (The code even re-created them twice every time)
25371           - Now requiring a redraw of the buffer on visibility changes
25372             (fixes bug 77654 part 2)
25373           - Not passing OnParentVisibleChanged up unless the control
25374             is visible
25375           - CanFocus: Fixed to match MS documentation
25376           - Focus: Fixed to return actual focus state and to check if
25377             setting focus is legal before setting it
25378
25379 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
25380
25381         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
25382           when to draw focus rectangle by looking at parent focus and
25383           selected state instead. This fixes TabPages on Linux sometimes
25384           having none or multiple focus rectangles.
25385         * XplatUIX11.cs (SetFocus): 
25386           - Don't set the focus if the same window already has focus
25387           - Use SendMessage instead of PostMessage (like it's Win32
25388             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
25389             to match MS behaviour
25390         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
25391           are not selectable.
25392
25393 2006-03-07  Jackson Harper  <jackson@ximian.com>
25394
25395         * PictureBox.cs: Revert line I accidently committed last week.
25396
25397 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
25398
25399         * Control.cs: 
25400           - Added new IsRecreating and ParentIsRecreating properties to
25401             allow testing if RecreateHandle has been called on ourselves
25402             or one of our parents
25403           - WndProc(WM_DESTROY): If our control handle is being recreated
25404             we immediately need to create the handle when receiving the
25405             destroy, that way our child windows find a valid parent handle
25406             when they themselves are being recreated upon WM_DESTROY receipt
25407             (fix for bug #77654 part 1)
25408         * XplatUIX11.cs:
25409           - DestroyWindow: WM_DESTROY must be sent to our own window before
25410             notifying any child windows. MS documents that child windows
25411             are still valid when WM_DESTROY is received. (Control now relies on
25412             this behaviour)
25413           - Added some fine-grain debug options
25414
25415 2006-03-06  Jackson Harper  <jackson@ximian.com>
25416
25417         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
25418         box and base calculations off this.
25419         * MdiChildContext.cs:
25420         * MdiWindowManager.cs: Don't need to ensure scrollbars here
25421         anymore.
25422         
25423 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
25424
25425         * Splitter.cs: In situations where the affected control is added
25426           to the parent's control list after the splitter, we would not
25427           populate affected. Now we try populating it on mousedown, if
25428           it's not already set, and force it to be re-set whenever our
25429           parent changes.
25430
25431 2006-03-03  Matt Hargett  <matt@use.net>
25432
25433         * Control.cs: implement Control.Padding
25434         * Padding.cs: -Padding.All returns -1 when constructing with the
25435         implicit default ctor
25436         -Padding.ToString() matches MS.NET
25437         * ContainerControl.cs: implement
25438         ContainerControl.AutoScaleDimensions
25439         * ListControl.cs: implement ListControl.FormattingEnabled
25440         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
25441         * ButtonBase.cs:
25442         * TabPage.cs: Implement UseVisualStyleBackColor.
25443         * PictureBox.cs: Implement PictureBox.InitialImage.
25444
25445 2006-03-03  Mike Kestner  <mkestner@novell.com>
25446
25447         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
25448         event declarations to proxy to base event.
25449         * ListViewItem.cs: update to use ItemControl.
25450         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
25451         * ThemeWin32Classic.cs: update to new ListView theme API and fix
25452         column header label rendering for 0 width columns.
25453
25454 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
25455
25456         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
25457           that causes the control to be created. Fixes #77476.
25458
25459 2006-03-02  Jackson Harper  <jackson@ximian.com>
25460
25461         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
25462         expose_pending.
25463
25464 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
25465
25466         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
25467           passed in for the EventArgs (fixes #77690)
25468
25469 2006-03-01  Jackson Harper  <jackson@ximian.com>
25470
25471         * ScrollBar.cs: Refresh afterbeing resized.
25472
25473 2006-02-28  Mike Kestner  <mkestner@novell.com>
25474
25475         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
25476         Clean up a tracker compile warning.
25477         * MenuItem.cs: add internal PerformPopup method.
25478         [Fixes #77457]
25479
25480 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
25481
25482         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
25483           implicit expose) when the text is set to null
25484
25485 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
25486
25487         * RichTextBox.cs (FlushText): When newline is true, we always
25488           need to split the line, even if no text is on it and we may
25489           never eat newlines. (Fixes #77669)
25490
25491 2006-02-28  Mike Kestner  <mkestner@novell.com>
25492
25493         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
25494         and set Selected instead.
25495         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
25496         collections.
25497
25498 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
25499
25500         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
25501
25502 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
25503
25504         * FontDialog.cs:
25505           - Got rid of the panel. All controls are now directly added to
25506             the dialog form
25507           - It is now possible to set a font with the Font property
25508           - MinSize and MaxSize property do now what they should
25509           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
25510           - Searching and selecting a font with the font textbox works now,
25511             the same applies to the style and size textbox
25512           - Draw the correct 3D border in the example panel
25513           - Fixed a little mem leak (unused fonts didn't get disposed)
25514           - Many other internal updates/rewrites...
25515           - Fix typo
25516
25517 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
25518
25519         * TextControl.cs: 
25520           - InsertRTFFromStream: Added 'number of characters inserted' argument
25521           - set_SelectedRTF: Now using the number of characters to calculate
25522             the new location for the selection and cursor (x/y cannot be used
25523             due to potentially already wrapped text)
25524
25525 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
25526
25527         * TextControl.cs: Added property and implemented means to allow 
25528           disabling recalculation of a document (can be used to speed up
25529           multiple inserts and is needed to make RTF inserts predictable, see
25530           bug #77659)
25531         * RichTextBox.cs: Using the new NoRecalc property of Document to
25532           keep x/y insert locations predictable. Also makes it faster inserting
25533           large chunks of RTF
25534
25535 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
25536
25537         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
25538           it's easier for a child control to handle the other messages without
25539           having to duplicate the special functionality
25540         * TextBoxBase.cs
25541           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
25542             code to handle processing the key ourselves, in order to get 
25543             access to the result of KeyEventArgs.Handled. We now only call 
25544             ProcessKey if they key hasn't been handled already. Fixes #77526.
25545           - set_Text: If null or empty string is given, just clear the 
25546             document. Fixes part of #77526
25547
25548 2006-02-27  Jackson Harper  <jackson@ximian.com>
25549
25550         * SizeGrip.cs: Paint the background color before painting the grip
25551         so things look right.
25552         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
25553
25554 2006-02-27  Mike Kestner  <mkestner@novell.com>
25555
25556         * ListView.cs:
25557           - Restructure layout and invalidation model to remove a ton of
25558           flicker from the control and speed up performance in general.
25559           - Add manual column resize, flickers like crazy, but I already have
25560           some ideas on how I'll fix that. (#76822)
25561           - Merge the three Icon-based views into a single layout method.
25562           - Move item selection interaction logic from the item since 
25563           interaction with the collections is more appropriate to the view.
25564           - Deselection on non-item clicks.
25565         * ListViewItem.cs:
25566           - Encapsulate most of the layout. Add some internal props to trigger
25567           layout.  Move to a model where Items invalidate themselves instead
25568           of just invalidating the whole control every time something changes.
25569           - Invalidate on Text/Caption changes.
25570           - switch to an offset based layout model to avoid having to absolute
25571           position every element on item moves.
25572           - correct checkbox layout to conform to MS layout.
25573         * ThemeWin32Classic.cs:
25574           - refactor some column header drawing code.
25575           - fix string justification for column headers (#76821)
25576           - make SmallIcon labels top justified for compat with MS impl.
25577         * ThemeClearlooks.cs:
25578           - adjust to new ListViewItem internal checkbox bounds api.
25579
25580 2006-02-27  Jackson Harper  <jackson@ximian.com>
25581
25582         * Control.cs:  Change where implicit controls fall in the zorder.
25583         They are now on top of all children.
25584         - Synced AddImplicit code with Add
25585         - Removed unused enumerator.
25586         * SizeGrip.cs: Remove the TODO as its been TODONE.
25587
25588 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
25589
25590         * TextControl.cs(Insert): Combine the last lines unless the insertion
25591           string ends with \n\n, otherwise we leave one line too many (Fixes
25592           something I noticed with the testapp for #77526; the bug itself was
25593           already fixed in the previous checkin)
25594
25595 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
25596
25597         * RichTextBox.cs:
25598           - SelectionColor and SelectionFont methods no longer set absolute
25599             styles. Instead, the keep font or color respectively (This 
25600             resolves a long-standing FIXME in the code)
25601           - When flushing RTF text, the insert code now considers text trailing
25602             behind the insertion point (Fixes the bug where when replacing
25603             the selected text via SelectedRTF the remainder of the line behind 
25604             the selection would stay on the first insertion line)
25605         * TextBoxBase.cs:
25606           - AppendText now updates the selection points after inserting text
25607           - AppendText now ensures that the last tag (sometimes 0-length) of
25608             the document is used for the style information (Fixes part of 
25609             bug #77220)
25610         * TextControl.cs:
25611           - Created new FontDefiniton class to allow describing partial style
25612             changes
25613           - StreamLine() now takes a lines argument, to allow it to decide
25614             whether an encountered zero-length tag is the last in the document
25615             (which must be kept to not loose the font/color contained in it,
25616             for later appends)
25617           - Created Combine() and Split() methods for Marker structs, to 
25618             support marker updates due to reformatted documents (soft line
25619             wraps)
25620           - Implemented Document.CaretTag setter
25621           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
25622             of the last line (Not the cause, but also exposed by bug #77220)
25623           - Added LineTag argument to InsertString method, to allow callers
25624             to force a certain tag to be used (required to force use of the
25625             trailing zero-length tag of a document)
25626           - Now updating markers in Combine(), to avoid stale tag markers
25627           - Added some method descriptions to aid maintenance
25628           - Implemented new FormatText concept, allowing additive/subtractive
25629             formatting by only specifying the components that are to be 
25630             changed. This was needed for resolving the RTB.SelectedColor/
25631             RTB.SelectedFont fixmes
25632           - Added Break() support method to allow breaking up linetags (used
25633             for partial formatting)
25634           - Added GenerateTextFormat() method. It is used for partial 
25635             formatting and allows to generate a full font/color from given
25636             attributes and an existing tag.
25637
25638 2006-02-26  Jackson Harper  <jackson@ximian.com>
25639
25640         * XplatUIX11.cs:  Use the correct caption height.
25641         - Translate hittest coordinates to screen coords to match MS.
25642         * XplatUIWin32.cs: When we create MDI windows we need to reset
25643         some of the style flags, so we get a nice blank window, and can
25644         draw all the decorations ourselves.
25645         - Set a clipping rectangle on the non client paint event, the
25646         window manager drawing code needs one.
25647         * Form.cs: The window manager needs to know when the window state
25648         has been updated.
25649         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
25650         don't need to factor in border and title sizes in these
25651         methods. TODO: Remove the args and fix the call points.
25652         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
25653         properly.
25654         - Let the driver set the cursors.
25655         - Improve active window handling
25656         - Correct sizes for title bars and buttons.
25657         - Match MS drawing better
25658         * MdiWindowManager.cs: We don't need to handle border style
25659         updates specially anymore.
25660         - Check for scrollbars when windows are done moving
25661         - Handle Active properly.
25662         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
25663         correctly. I am spewing the exception though, so we don't hide the
25664         bugs.
25665         
25666 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
25667
25668         * DataGridViewRowPostPaintEventArgs.cs,
25669           DataGridViewCellPaintingEventArgs.cs,
25670           DataGridViewRowCollection.cs,
25671           DataGridViewRowPrePaintEventArgs.cs,
25672           DataGridViewCell.cs: Clear a few warnings and implement a few
25673           exceptions that should be thrown.
25674
25675 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
25676
25677         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
25678           'inheriting' our parent's (non-default) cursor. (Part of
25679            the fix for #77479)
25680
25681 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
25682
25683         * XplatUIX11.cs: Fixed cast to make csc happy
25684
25685 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
25686
25687         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
25688           it's for the client area (part of fix for #77479 and needed
25689           for MDI window cursor handling)
25690         * XplatUIX11.cs
25691           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
25692             the appropriate default cursors and also passing the message
25693             up the parent chain 
25694           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
25695             for non-client areas
25696
25697 2006-02-15  Jackson Harper  <jackson@ximian.com>
25698
25699         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
25700         is a real MDI window
25701
25702 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
25703
25704         * X11DesktopColors.cs: Instead of checking the desktop session
25705           string for "KDE" check if it starts with "KDE"
25706
25707 2006-02-10  Jackson Harper  <jackson@ximian.com>
25708
25709         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
25710         systems).
25711
25712 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
25713
25714         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
25715           errors
25716         * ColorDialog.cs:
25717           - Got rid of the panel. All controls are now directly added to
25718             the dialog form
25719           - Changed to mono coding style
25720
25721 2006-02-10  Jackson Harper  <jackson@ximian.com>
25722
25723         * InternalWindowManager.cs: We don't need the set visibility to
25724         false hack anymore now that peter has written beautiful shutdown
25725         code.
25726
25727 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
25728
25729         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
25730           where already explicitly destroyed
25731
25732 2006-02-10  Jackson Harper  <jackson@ximian.com>
25733
25734         * MdiClient.cs: Handle the case where windows are too high or to
25735         the left and we need scrollbars.
25736
25737 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
25738
25739         * MimeIcon.cs: Added some icons
25740         * FileDialog.cs:
25741           - Fixed bug #77477
25742           - Got rid of the panel. All controls are now directly added to
25743             the dialog form
25744           - Changed to mono coding style
25745           - On Linux "My Computer" and "My Network" will now show some
25746             more usefull information. A new class, MasterMount, gathers
25747             this information from /proc/mount. Updated MWFFileView to make
25748             use of this information
25749           - Fixed a bug that caused FileDialog to crash when
25750             ".recently_used" file had a zero size
25751           - FilterIndex does now what it should
25752           - Some Refactoring
25753         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
25754             FileDialog changes
25755
25756 2006-02-09  Jackson Harper  <jackson@ximian.com>
25757
25758         * ComboBox.cs: Don't touch if null.
25759
25760 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
25761
25762         * Cursor.cs: 64bit safeness fix
25763         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
25764
25765 2006-02-09  Jackson Harper  <jackson@ximian.com>
25766
25767         * Form.cs: If a form is made into an MDI form update the styles so
25768         all the props can get set correctly.
25769         - Kill the mdi_container when we dont need it anymore.
25770         * InternalWindowManager.cs: Add missing NOT
25771
25772 2006-02-08  Jackson Harper  <jackson@ximian.com>
25773
25774         * InternalWindowManager.cs: Respek clipping when drawing MDi
25775         decorations.
25776
25777 2006-02-08  Jackson Harper  <jackson@ximian.com>
25778
25779         * Hwnd.cs: Add bits to track non client expose events.
25780         * XplatUIX11.cs: Track non client expose events on the hwnd. This
25781         gives us a proper invalid rect and will allow for some nice
25782         optimizations with NC client drawing
25783         - MDI windows are children windows, so move their style handling
25784         into the child window block.
25785         * InternalWindowManager.cs: Remove a state reset that was
25786         getting invoked at the wrong time. Fixes managed windows getting
25787         into a 'stuck' captured state.
25788
25789 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
25790
25791         * TextControl.cs (Document.ctor): Now initializing 
25792           selection_anchor. Fixes #77493
25793
25794 2006-02-07  Jackson Harper  <jackson@ximian.com>
25795
25796         * TrackBar.cs: The increment/decrements were backwards.
25797
25798 2006-02-07  Mike Kestner  <mkestner@novell.com>
25799
25800         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
25801         to the instance itself.
25802
25803 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
25804
25805         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
25806           on ulongs and pointers, the size differs between 32bit and 64bit
25807           systems. 
25808
25809 2006-02-07  Mike Kestner  <mkestner@novell.com>
25810
25811         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
25812         for 64 bit platforms to work around a metacity bug. 
25813
25814 2006-02-07  Jackson Harper  <jackson@ximian.com>
25815
25816         * TrackBar.cs: Process the input keys we need, and hookup to
25817         KeyDown instead of using WndProc, so we get key messages.
25818
25819 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
25820
25821         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
25822           machine we're on. 
25823         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
25824           we need to translate the XdndVersion atoms array before sending it
25825
25826 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
25827
25828         * XplatUIX11.cs: 
25829           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
25830             number of bits for the property, not the number of bytes. The
25831             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
25832             but would not crash since it specified 8 bits instead of 4 bits)
25833           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
25834             defined as XID -> long in the C headers)
25835           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
25836             references since those are now IntPtr to begin with
25837           - Switched all Atom.XXX 'int' casts to IntPtr casts
25838           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
25839           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
25840           - Added XChangeActivePointerGrab DllImport (for X11DnD)
25841         * X11Structs.cs:
25842           - Changed 'int' type for Atoms in XEvent structures to IntPtr
25843           - Changed atom in HoverStruct to be IntPtr
25844         * X11DnD.cs:
25845           - Removed local DllImports, switched code to use those from XplatUIX11
25846           - Removed/fixed casts related to the switch of Atom to be a IntPtr
25847
25848 2006-02-06  Mike Kestner  <mkestner@novell.com>
25849
25850         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
25851         method signatures in the import region.  There may still be some
25852         lingering struct marshaling issues, as I didn't drill down into those.
25853         Yet.
25854
25855 2006-02-06  Jackson Harper  <jackson@ximian.com>
25856
25857         * ComboBox.cs: Dont manually set the top_item, this is computed
25858         when the scrollbar position is set.
25859
25860 2006-02-06  Mike Kestner  <mkestner@novell.com>
25861
25862         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
25863         startup crashes on amd64.  There's other fixes needed.  All pinvoke
25864         usage of Atom needs to be mapped to IntPtr for example.  And there are
25865         likely other int/long issues to be addressed.
25866
25867 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
25868
25869         * FileDialog.cs: One more...
25870
25871 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
25872
25873         * FileDialog.cs: Next try
25874
25875 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
25876
25877         * FileDialog.cs: First part of fix for #77464
25878
25879 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
25880
25881         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
25882           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
25883           AcceptButton border drawing.
25884
25885 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
25886
25887         * Form.cs: Moved positioning of form after auto scaling is applied,
25888           otherwise it would possibly use wrong form size.
25889
25890 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
25891
25892         * Control.cs (RecreateHandle): No need to re-create any child
25893           controls, the child windows will get destroyed automatically by
25894           the windowing system or driver, and re-created when the handle
25895           is being accessed the first time. Fixes #77456
25896         * Form.cs: No longer setting the form to closing if the handle is 
25897           being recreated. This seems like the right thing to do, don't
25898           have a bug or testcase for this, though.
25899
25900 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
25901
25902         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
25903           controls to avoid unwanted side effects
25904
25905 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
25906
25907         * Control.cs: 
25908           - ScaleCore needs to scale the bounds, not the ClientSize of the 
25909             control. Fixes #77416.
25910           - DefaultSize is 0,0 for control
25911         * TextBoxBase.cs: 
25912           - DefaultSize is 100, 20
25913           - SetBoundsCore: Now enforcing the height, no matter if the provided
25914             height is more or less than the preferred one, as long as AutoSize
25915             is on
25916         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
25917
25918 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
25919
25920         * Control.cs:
25921           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
25922             call unless both performLayout is true *and* we have a pending
25923             layout change
25924           - ResumeLayout: MS does not completely nest Suspend and Resume,
25925             they bottom out at 0, fixed our code to match that.
25926           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
25927             SetBoundsCore, we were updating even when we shouldn't. This fixes
25928             swf-anchors mis-anchoring when resizing the app fast and lots.
25929           - UpdateDistances: Now only setting the left and top distance if 
25930             we have a parent and are not suspended, this is based on
25931             a suggestion by Don Edvaldson in bug #77355.
25932           - OnVisibleChanged: Fixed logic when to create the control. We may
25933             not create the control if we have no parent or if it's not visible;
25934             switched to using Visible property instead of is_visible field 
25935             since the property also considers parent states. This fixes a bug
25936             when starting Paint.Net
25937
25938 2006-02-02  Jackson Harper  <jackson@ximian.com>
25939
25940         * Form.cs: If the forms handle hasn't been created yet don't call
25941         into xplatui to make it top most, just set the topmost flag on the
25942         form in CreateParams
25943         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
25944
25945 2006-02-01  Jackson Harper  <jackson@ximian.com>
25946
25947         * ScrollableControl.cs: Refactored the Recalculate method a
25948         little, this wasn't handling all the variants of bottom and right
25949         bars needed to be added and added/removed based on their
25950         counterparts being added/removed (which changes the drawable
25951         size). Also we special case client widths and heights of 0 and
25952         don't add the scrollbar for those.
25953
25954 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
25955
25956         * XplatUIX11.cs: 
25957           - Added method to get AbsoluteGeometry(); currently unused, but might
25958             be used in the future, if we try again to figure out toplevel
25959             coordinates with some more crappy window managers
25960           - Added FrameExtents() method to retrieve the WM set decoration size
25961           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
25962             to deal with at least KDE, FVWM and metacity (Fixes #77092)
25963         * Hwnd.cs: 
25964           - Added whacky_wm tracking var for metacity
25965           - Added logic to have default menu height if the actual menu height
25966             has not yet been calculated (part of fix for #77426)
25967         * Form.cs: Keep track whether client size has been set and re-set 
25968           it if a menu is added/removed afterwards (Fixes #77426)
25969
25970 2006-01-31  Jackson Harper  <jackson@ximian.com>
25971
25972         * Control.cs: When a new Site is set on the component attempt to
25973         pull the AmbientProperties from it.
25974
25975 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
25976
25977         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
25978           in the background of the owning form. Fixes #77332
25979
25980 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
25981
25982         * MimeIcon.cs: Fix for #77409
25983
25984 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
25985
25986         * XplatUIX11GTK.cs: Initial import
25987
25988 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
25989
25990         * FixedSizeTextBox: fixes class signature
25991
25992 2006-01-30  Jackson Harper  <jackson@ximian.com>
25993
25994         * FixedSizeTextBox.cs: New internal class that represents a
25995         textBox that will not be scaled.
25996         * TreeView.cs:
25997         * ComboBox.cs:
25998         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
25999         standard TextBox.
26000                 
26001 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
26002
26003         * XplatUIX11.cs: Retrieve default screen number instead of
26004           assuming 0. Attempted fix for #77318
26005
26006 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
26007
26008         * XplatUIWin32.cs: 
26009           - GetWindowPos: When a window is parented by FosterParent, use 
26010             the desktop instead of FosterParent as the base to get coordinates
26011           - CreateWindow: Don't make FosterParent the parent window for Popups
26012             if we don't want a taskbar entry, Popups automatically don't get one
26013         * Hwnd.cs: Need to call remove to actually remove the key from the
26014           hash table
26015
26016 2006-01-30  Mike Kestner  <mkestner@novell.com>
26017
26018         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
26019
26020 2006-01-30  Jackson Harper  <jackson@ximian.com>
26021
26022         * TreeView.cs:
26023         * TreeNode.cs: Raise events no matter how the treenode is
26024         checked. Patch by Don Edvalson.
26025
26026 2006-01-30  Jackson Harper  <jackson@ximian.com>
26027
26028         * TreeNode.cs: Signature fix.
26029
26030 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
26031
26032         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
26033
26034 2006-01-20  Mike Kestner  <mkestner@novell.com>
26035
26036         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
26037         event forwarding when menus are active.
26038         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
26039         Most of the patch is pdb's with a little rework.
26040
26041 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
26042
26043         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
26044           Removed GetMenuDC and ReleaseMenuDC methods; replaced
26045           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
26046         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
26047         * InternalWindowManager.cs: Added use of PaintEventStart/End to
26048           handling of WM_NCPAINT message, now passing the PaintEventArgs to
26049           the PaintWindowDecorations method
26050         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
26051         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
26052         * MenuAPI.cs: Made tracker window invisible
26053         * XplatUIWin32.cs:
26054           - Removed GetMenuDC and ReleaseMenuDC methods
26055           - Implemented the client=false path for PaintEventStart and
26056             PaintEventEnd
26057
26058 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
26059
26060         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
26061         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
26062           styles
26063         * Form.cs: 
26064           - MaximizeBox, MinimizeBox: Recreate the handle when setting
26065             the style
26066           - CreateParams: Reworked the styles to match MS look'n'feel,
26067             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
26068             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
26069
26070 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
26071
26072         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
26073           window is not mapped, since otherwise every form that's being 
26074           created is considered minimized, which is wrong.
26075         * Form.cs: Catching the exception and returning our internal value
26076           instead
26077
26078 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
26079
26080         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
26081           SetWindowMinMax() to have means to tell the driver about the minimum,
26082           maximum and maximized state window sizes. (Part of the fix for #76485)
26083         * Form.cs:
26084           - Implemented tracking of minimum and maximum window size, now calling
26085             new SetWindowMinMax() driver method to tell the driver (Part of the
26086             fix for #76485)
26087           - Finished handling of WM_GETMINMAXINFO method, now setting all values
26088             (Completes fix for #76485)
26089           - Calling new SetWindowMinMax driver method when the handle for a 
26090             form is created, to make sure the driver knows about it even if
26091             the values have been set before the window was created
26092           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
26093             to avoid messing up our anchoring calculations (partial fix
26094             for #77355)
26095         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
26096         * XplatUIX11.cs:
26097           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
26098           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
26099             (and presumably other freedesktop.org compliant WMs). Left the
26100             assumption unmapped=minimized, needed for SetVisible to work.
26101           - Now setting the window state when creating windows
26102           - Fixed SetVisible to consider/set the window state when mapping
26103             a Form. We cannot set the state before it's mapped, and we cannot
26104             use Form.WindowState once it's mapped (since it would ask the
26105             driver and get 'normal'. Therefore, we grab the state before
26106             mapping, map, and then set state.
26107           - Implmemented SetWindowMinMax method; Metacity does not seem to
26108             honor the ZoomHints, though.
26109         * XplatUIWin32.cs:
26110           - Removed MINMAXINFO (moved to XplatUIStructs)
26111           - Added SetWindowMinMax stub (on Win32 the only way to set that
26112             information is in response to the WM_GETMINMAXINFO message, which
26113             is handled in Form.cs)
26114           - Added logic to SetVisible to set the proper window state when a 
26115             form is made visible (fixes #75720)
26116
26117 2006-01-26  Jackson Harper  <jackson@ximian.com>
26118
26119         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
26120         same way we handle them with Invoke.
26121
26122 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
26123
26124         * Form.cs:
26125           - Added tracking of window state so CreateParams can return
26126             the appropriate style
26127           - Moved setting of WS_CAPTION style in CreateParams to allow
26128             styles without caption
26129         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
26130           control if the TextBox property is accessed. Fixes #77345
26131         * Control.cs:
26132           - get_Created: now uses is_disposed and is_created to determine
26133             return value (suggested by Jackson)
26134           - CreateHandle: No longer exits if the handle is being recreated
26135           - RecreateHandle: If the handle is not yet created call the 
26136             appropriate method to create either control or handle. If the
26137             control is already created CreateHandle will simply exit instead
26138             of just creating the handle
26139         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
26140           now SendMessage WM_DESTROY directly to the control when DestroyWindow
26141           is called.
26142         * XplatUIX11.cs: 
26143           - When DestroyWindow is called, instead of waiting for the 
26144             DestroyNotification from X11, we directly post it to the WndProc
26145             and immediately dispose the hwnd object.
26146             Same applies to DestroyChildWindows, and this obsoletes the
26147             expose_pending tracking. Contrary to Win32 behaviour we destroy our
26148             child windows before our own, to avoid X11 errors.
26149           - Removed the direct sending of WM_PAINT on UpdateWindow
26150         * XplatUIWin32.cs:
26151           - Reworked DoEvents and GetMessage to allow access to internal queue
26152             even when trying non-blocking access to the queue.  Fixes #77335. 
26153             Based on a patch suggestion by Don Edvalson. The new private
26154             GetMessage can now also be used as a backend for a PeekMessage
26155             frontend version.
26156         * XplatUI.cs: Improved debug output for CreateWindow
26157
26158 2006-01-25  Jackson Harper  <jackson@ximian.com>
26159
26160         * Help.cs: Allow param to be null. Patch by Don Edvalson.
26161
26162 2006-01-24  Jackson Harper  <jackson@ximian.com>
26163
26164         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
26165         when we have a MaxDropItems lower then the selected index.
26166
26167 2006-01-24  Jackson Harper  <jackson@ximian.com>
26168
26169         * Control.cs: Don't allow selection of non visible controls, allow
26170         selection of controls without parents.
26171
26172 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
26173
26174         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
26175         * DataGridDrawingLogic.cs: Add editing row only when is necessary
26176
26177 2006-01-23  Jackson Harper  <jackson@ximian.com>
26178
26179         * UpDownBase.cs: Make the textbox handle all the selection and
26180         tabbing. This fixes tabing to updown controls.
26181
26182 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
26183
26184         * TextBoxBase.cs: fixes exception thown the object was null
26185
26186 2006-01-23  Jackson Harper  <jackson@ximian.com>
26187
26188         * ButtonBase.cs: Just use the base CreateParams. They set
26189         visibility and enabled correctly.
26190         * ComboBox.cs:
26191         * TrackBar.cs:
26192         * MonthCalendar.cs: Lets let the base set as much of the
26193         createparams as possible so we don't have duplicate code all over
26194         the place.
26195
26196 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
26197
26198         * ThemeGtk.cs: Added TrackBar and some experimental code to
26199           get double buffering back
26200
26201 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
26202
26203         * DataGrid.cs: Allows row number set internally higher than the last
26204         when creating a new row. Restores the editing functionality.
26205
26206 2006-01-20  Mike Kestner  <mkestner@novell.com>
26207
26208         * MimeIcon.cs: delay Image creation until the icons are accessed
26209         instead of creating 190 scaled images on GnomeHandler startup.
26210
26211 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
26212
26213         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
26214           first call base before processing the event. Fixes #77279
26215
26216 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
26217
26218         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
26219           that the stride for the GDI bitmap would match the stride of
26220           a DIB or a Cursor.
26221
26222 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
26223
26224         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
26225
26226 2006-01-19  Jackson Harper  <jackson@ximian.com>
26227
26228         * ComboBox.cs: Hookup the text controls keydown event so we get
26229         those when the text control has the focus.
26230
26231 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
26232
26233         * Label.cs: Now using the base events instead of defining new ones;
26234           this allows us to just call the base properties without having to
26235           duplicate all base property logic 
26236
26237 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
26238
26239         * Label.cs: A label by default is not a tabstop (Fixes one of our
26240           failing nunit tests)
26241
26242 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
26243
26244         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
26245         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
26246
26247 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
26248
26249         * Cursor.cs: Reimplemented creating cursor bitmaps without using
26250           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
26251           This fixes #77218
26252         * XplatUIWin32.cs: 
26253           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
26254             constructor creates images that can't be saved. Part of the fix
26255             for #76103
26256           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
26257           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
26258             bug fix for handling window state in forms properly)
26259
26260 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26261
26262         * ThemeGtk.cs: Simplify ScrollBar drawing
26263
26264 2006-01-18  Jackson Harper  <jackson@ximian.com>
26265
26266         * Splitter.cs: Set the default dock style for the splitter control
26267         in the constructor.
26268
26269 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26270
26271         * ThemeGtk.cs: Corrected StateType and ShadowType for
26272           gtk_paint_box
26273
26274 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26275
26276         * Control.cs: Make use of Theme.DoubleBufferingSupported
26277         * ThemeGtk.cs:
26278           - Added drawing for flat style buttons
26279           - Added ScrollBar drawing
26280
26281 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
26282
26283         * ThemeClearlooks.cs: Removed some unneeded code.
26284         * ThemeGtk.cs: First part of ThemeGtk enhancements.
26285
26286 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
26287
26288         * LinkLabel.cs: We need to update the hover drawing when
26289           leaving the control as well.
26290
26291 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
26292
26293         * DataGrid.cs: Clicking on non empty areas in the columns
26294            area was giving an exception
26295
26296 2006-01-17  Jackson Harper  <jackson@ximian.com>
26297
26298         * ThemeWin32Classic.cs:
26299         * ListView.cs: Do not draw/clip the headers when the header style
26300         is None.
26301
26302 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
26303
26304         * DataGrid.cs: Fixes 77260
26305         
26306 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
26307
26308         * DataGrid.cs: Clicking on a column on a empty grid was giving
26309           an exception
26310
26311 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
26312
26313         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
26314           or any keypress will crash the grid.
26315
26316 2006-01-17  Mike Kestner  <mkestner@novell.com>
26317
26318         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
26319         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
26320         invisible/previously-visible items.
26321         [Fixes #76909]
26322
26323 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
26324
26325         * ThemeClearlooks.cs:
26326         - Added CL_Draw_Button method; now other theme controls that are 
26327           not derived from button or do not have a button can draw buttons
26328           too
26329         - Updated ComboBox drawing
26330         - Beautified RadioButton drawing
26331         - Corrected drawing of bottom and left tabs
26332         - Beautified DateTimePicker and MonthCalendar
26333         - Added CPDrawButton and CPDrawRadioButton
26334
26335 2006-01-16  Jackson Harper  <jackson@ximian.com>
26336
26337         * ComboBox.cs: Set the initial value of the scrollbar to the
26338         current index. Reduce the numbers of refreshs and IndexOfs called.
26339
26340 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
26341
26342         * FileDialog.cs: When the file listview is focused hitting the
26343           backspace key moves the fileview to the parent directory
26344
26345 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
26346
26347         * Form.cs: 
26348           - Added RecreateHandle call when changing taskbar visibility to 
26349             trigger reparenting in Win32 driver (Fixes #75719)
26350           - If a window has minimize or maximize buttons, it cannot have
26351             a help button
26352         * XplatUIWin32.cs:
26353           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
26354             the toplevel form with FosterParent (A toolwindow not on the
26355             taskbar) (Fixes #75719)
26356           - Made FosterParent a toolwindow
26357
26358 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26359
26360         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
26361
26362 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26363
26364         * ToolTip.cs: If SetToolTip is called from a control and the mouse
26365           is currently over that control, make sure that tooltip_window.Text
26366           gets updated
26367
26368 2006-01-13  Mike Kestner  <mkestner@novell.com>
26369
26370         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
26371
26372 2006-01-13  Jackson Harper  <jackson@ximian.com>
26373
26374         * TreeView.cs: On MS GetNodeAt never actually factors in the X
26375         value passed.  Also redraw the selected node when we recieve
26376         focus, so tabbing between trees works correctly.
26377
26378 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
26379
26380         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
26381           ~/.gconf/%gconf-tree.xml, so use
26382           .gconf/desktop/gnome/interface/%gconf.xml
26383
26384 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
26385
26386         * TextControl.cs: Draw text in gray if control is disabled
26387
26388 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
26389
26390         * TreeView.cs: Draw the focus rectangle outside the highlight, to
26391           make sure it's always visible. Fixes #76680.
26392
26393 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
26394
26395         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
26396
26397 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
26398
26399         * PageSetupDialog.cs: Added.
26400         * PrintDialog.cs: Attributes.
26401         * PrintPreviewControl.cs: Updates.
26402         * PrintPreviewDialog.cs: Updates.
26403         
26404 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26405
26406         * Control.cs: Undid my selection check fix, since it's not needed
26407         * TextBoxBase.cs:
26408           - Now considering the presence of hscroll/vscroll when sizing
26409             vscroll/hscroll respectively. Fixed bug #77077
26410           - Added Left/Up/Down/Right to IsInputKey list to prevent
26411             ContainerControl from stealing them. This fixes what I broke
26412             with my last checkin.
26413
26414 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
26415
26416         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
26417           I finally understand how the property can be set without a setter :-)
26418
26419 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26420
26421         * Application.cs:
26422           - Switched RunLoop to use static Message.Create to create a 
26423             Message object
26424           - Added PreProcessMessage call in runloop for keyboard events; this
26425             is part of the fix for #77219, I overlooked this originally in the
26426             MSDN doc for PreProcessMessage
26427         * Control.cs:
26428           - Removed call to PreProcessMessage from handling of keyboard 
26429             messages; it's supposed to be done in the message pump
26430           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
26431             per MSDN documentation.
26432           - IsInputChar: All chars are input chars by default; removed the 
26433             parent calling chain, MS does not document that
26434           - PreProcessMessage: If IsInputChar is true, we want to return false
26435             to allow dispatching of the message
26436           - When selecting the next control, now also check that we're not
26437             selecting ourselves again and therefore return a false positive.
26438         * TextBoxBase.cs:
26439           - Tried to match return values for IsInputKey and ProcessDialogKey
26440             to what MS returns; moved processing of our special keys outside
26441             ProcessDialogKey since MS does not seem to return true on those.
26442           - Moved code that previously was in ProcessDialogKey into new private
26443             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
26444           - Reworked handling of WM_CHAR to not have to duplicate code from
26445             Control.cs anymore, instead we simply call down to base.
26446            
26447 2006-01-12  Jackson Harper  <jackson@ximian.com>
26448
26449         * ComboBox.cs: We always need to refresh the text area when
26450         EndUpdate is called. Fixes the combobox in the file dialog.
26451         * Control.cs: Don't create the creator_thread until the controls
26452         handle is created.  Also in InvokeRequired we check if the
26453         creator_thread is null. This gives the effect of InvokeRequired
26454         returning true if the controls handle is not created yet, and
26455         matches MS.
26456
26457 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26458
26459         * XplatUI.cs:
26460           - Added StartLoop() driver method. This is used to allow drivers to
26461             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
26462             loop for a particular thread
26463           - Added EndLoop() driver method. This is called once the message
26464             pump for the thread is shut down
26465           - Added SupportsTransparency method to allow the driver to indicate
26466             opacity support for windows
26467         * Form.cs:
26468           - Removed TODO attribute, completed AllowTransparency property
26469           - Added documented logic to Opacity
26470         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
26471           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
26472           versions of CompatibleTextRendering
26473         * X11Structs.cs: Added opacity atom to our atom enumeration
26474         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
26475           of a form might be set before it's reparented by the WM, and we need
26476           the opacity value without calling up to Form)
26477         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
26478           SupportsTransparency() driver methods
26479         * Application.cs: Now calling StartLoop and EndLoop driver methods
26480         * XplatUIX11.cs:
26481           - Added opacity atom registration
26482           - Added StartLoop()/EndLoop() methods. They're empty right now but
26483             will need to get implemented when we switch to a per-thread queue
26484           - Implemented SupportsTransparency() method
26485           - Implemented SetWindowTransparency() method
26486           - Added support for setting the opacity value when a window is
26487             reparented (since the opacity needs to be set on the WM frame)
26488         * XplatUIOSX.cs, XplatUIWin32.cs:
26489           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
26490
26491 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
26492
26493         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
26494
26495 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
26496
26497         * FileDialog.cs: Added ToolTip for MWFFileView
26498         * MimeIcon.cs: Rewrote GnomeHandler.
26499           - Get currently used gnome icon theme from
26500             ($HOME)/.gconf/%gconf-tree.xml
26501           - Make use of inherited icon themes
26502           - Support SVG icon themes like Tango via librsvg
26503
26504 2006-01-12  Miguel de Icaza  <miguel@novell.com>
26505
26506         Revert's Jackson's revert which broke 2.0 builds.   Fix both
26507         builds. 
26508         
26509         * Application.cs: Move the use_compatible_text_rendering outside
26510         the NET_2_0 define.  If we ever need to use the
26511         use_compatible_text_rendering on the individual controls they will
26512         access the variable from the common shared code paths.
26513
26514 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
26515
26516         * XplatUI.cs:
26517           - Added more granular debug options
26518           - Added method to print both window text and id
26519           - Switched debug output to use new Window() debug method
26520           - Added IsEnabled() driver method
26521           - Added EnableWindow() driver method
26522         * Form.cs:
26523           - Removed end_modal; no longer needed, new loop handles termination
26524             via 'closing' variable
26525           - If form is modal, setting DialogResult will now initiate loop
26526             termination via 'closing' variable
26527           - Added support for is_enabled/WS_DISABLED to CreateParams
26528           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
26529             does all the work
26530           - Removed code that's now in RunLoop from ShowDialog()
26531           - Added various documented sanity checks to ShowDialog()
26532           - Added handling of WM_DESTROY message; we set 'closing' on getting
26533             the message to indicate the message pump to terminate
26534           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
26535             send by the Application.ExitThread method. (We send the message
26536             to destroy the window after all other events have been
26537             processed through the queue, instead of destroying the handle 
26538             directly)
26539           - Moved code from Close() method to WM_CLOSE handler; added logic
26540             to only send close-related events if the form is not displayed
26541             modal
26542         * Splitter.cs (..ctor): Fixed typo in resource name
26543         * Control.cs:
26544           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
26545             brush now
26546           - set_Cursor: Now only setting calling into XplatUI if the handle for
26547             the control is already created; this avoids implict handle creation
26548             or crashes if it's not created
26549           - set_Enabled: Now setting the enabled state via the new driver method
26550             instead of just tracking it
26551           - CreateParams: Added logic to set WS_DISABLED based on enabled state
26552           - CreateControl: Reordered event firing and method calls to more
26553             closely fire events in the order MS does. Now setting the
26554             enabled state in the driver when creating the control.
26555           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
26556             match MS order
26557         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
26558           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
26559         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
26560         * Hwnd.cs:
26561           - Added tracking of window enabled state (get_Enabled/set_Enabled)
26562           - Added EnabledHwnd property to easily allow a driver to find the
26563             handle of the first enabled window in the parent chain (this is
26564             used by drivers to pass up input events of disabled windows)
26565         * XplatUIDriver.cs: Added IsEnabled() method
26566         * Application.cs:
26567           - Removed crude and obsolete exiting tracking variable
26568           - Removed internal ModalRun(); replaced by RunLoop()
26569           - Implemented private CloseForms() method to allow closing all 
26570             windows owned by a particular (or all) threads
26571           - Exit() now properly closes all windows without forcing the message
26572             pump to quit
26573           - Removed obsolete InternalExit() method
26574           - Changed Run() methods to use new RunLoop() message pump
26575           - Implemented new RunLoop() method for both modal and non-modal forms
26576         * CommonDialog.cs:
26577           - get_CreateParams: Added setting of WS_DISABLED
26578           - Simplified ShowDialog(); now all the work is done in RunLoop(),
26579             invoked via Form.ShowDialog()
26580         * NativeWindow.cs: We don't remove the window from the collection when
26581           the handle is destroyed; there might still be messages for it in the
26582           queue (mainly the resulting WM_DESTROY); instead it will be removed
26583           when Control calls InvalidateHandle in the WM_DESTROY handler
26584         * XplatUIX11.cs:
26585           - CreateWindow: Added logic to handle the WS_DISABLED window style
26586           - EnableWindow: Implemented based on Hwnd.Enabled
26587           - GetMessage: Reset PostQuitState so the method can be called again
26588           - Implemented support for disabled windows (passing messages to the
26589             first enabled parent) in handling all input messages
26590           - Added optimizations for handling Expose events
26591           - Implemeted new driver method IsEnabled()
26592           - Now always resetting paint pending tracking vars when we start paint
26593           - Re-implemented UpdateWindow via just sending a WM_PAINT message
26594         * XplatUIOSX.cs: Added IsEnabled method stub
26595         * XplatUIWin32.cs: Implemented new IsEnabled() method
26596
26597 2006-01-11  Jackson Harper  <jackson@ximian.com>
26598
26599         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26600         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
26601         variables a little.
26602         * ColorDialog.cs: Clear out the old form before adding the new
26603         panel.  
26604
26605 2006-01-11  Jackson Harper  <jackson@ximian.com>
26606
26607         * X11Dnd.cs: Make sure to add all the text formats when adding
26608         strings to the data object.
26609         * TreeNodeCollection.cs: When adding to a sorted tree we need to
26610         do some redrawing too.  Also change the UpdateNode to an
26611         UpdateBelow so the newly added node gets painted.
26612         
26613 2006-01-11  Miguel de Icaza  <miguel@novell.com>
26614
26615         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
26616         LinkLabel.cs, PropertyGrid.cs: Implement the
26617         UseCompatibleTextRendering property for 2.x
26618
26619         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
26620
26621 2006-01-11  Jackson Harper  <jackson@ximian.com>
26622
26623         * TreeView.cs: Use the property for setting the selected node so
26624         the correct events get raised.
26625         * TreeNode.cs: Update the tree when the fore/back colours of a
26626         node are set.
26627
26628 2006-01-10  Jackson Harper  <jackson@ximian.com>
26629
26630         * TreeView.cs: Allow setting SelectedNode to null.
26631
26632 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26633
26634         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
26635
26636 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26637
26638         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
26639
26640 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26641
26642         * PrintDialog.cs: Added attributes and set default property values.
26643
26644 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26645
26646         * PrintControllerWithStatusDialog.cs: 
26647         Added PrintControllerWithStatusDialog.
26648
26649 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26650
26651         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
26652         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
26653
26654 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
26655
26656         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
26657
26658 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
26659
26660         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
26661         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
26662
26663 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
26664
26665         * MimeIcon.cs: Added internal class SVGUtil.
26666
26667 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
26668
26669         * FileDialog.cs: Don't crash if there are two files with the
26670           same name but different locations.
26671
26672 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
26673
26674         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
26675         dates across multiple month grids. Used to not highlight entire 
26676         month, but does now.
26677         
26678 2006-01-06  Jackson Harper  <jackson@ximian.com>
26679
26680         * MonthCalendar.cs: Removed DoEvents call to prevent a running
26681         message loop. Change timer intervals to numbers that seem more
26682         natural.
26683
26684 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
26685
26686         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
26687           object for location info since screen object is now implemented.
26688
26689 2006-01-05  Jackson Harper  <jackson@ximian.com>
26690
26691         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
26692         * AsyncMethodResult.cs: We no longer use a WeakReference for the
26693         AsyncMethodResult, this is because we ALWAYS want the
26694         ManualResetEvent to get set.
26695         * Control.cs: When disposing use an async invoke to call shutdown
26696         code, so that thigns don't block on the finalizer thread.  Also
26697         check if we even have a message loop before trying to send
26698         messages, if we don't then don't bother sending messages.
26699         - No more weak references for async methods
26700         * XplatUIDriver.cs: No more weak references for async methods.
26701
26702 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
26703
26704         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
26705           returns two FontFamily with the same name
26706
26707 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
26708
26709         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
26710           drawing disabled text. Instead using the ColorGrayText color
26711
26712 2006-01-04  Jackson Harper  <jackson@ximian.com>
26713
26714         * TreeNode.cs: redraw the node when its image index is changed.
26715
26716 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
26717
26718         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
26719           time I checked there are no others like it.
26720
26721 2006-01-04  Jackson Harper  <jackson@ximian.com>
26722
26723         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
26724         this gives the behavoir I was looking for.
26725         * Control.cs: Special case Invoking EventHandlers, this matches MS
26726         and fixes part of bug #76326.
26727
26728 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
26729
26730         * ThemeClearlooks.cs, FileDialog.cs:
26731           - Reflect the latest Theme class changes
26732           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
26733             with DateTime
26734             
26735 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
26736
26737         * Theme.cs: Cache UI resource images and resize them if needed
26738
26739 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
26740
26741         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
26742           is called. This fixes the crash in Nexxia when setting the font
26743           attributes in the chat. [However, RTF needs a look-over to make sure
26744           that all SelectionXXX methods handle the special case that selection
26745           is empty and therefore the change must be applied to all text starting
26746           at the cursor/selection start]
26747
26748 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
26749
26750         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26751           XplatUIOSX.cs: Added SendMessage and PostMessage methods
26752         * X11Keyboard.cs: Switched to new way of calling PostMessage
26753
26754 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
26755
26756         * Theme.cs: Added theme interface for images to allow the theme to
26757           control what images are used for things like FileDialog, MessageBox
26758           icons, etc.
26759         * MessageBox.cs: Now uses the new Theme icon/image interfaces
26760
26761 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
26762
26763         * FileDialog.cs:
26764           - Removed some dead code
26765           - Opening a recently used file does work now
26766           - Small UI enhancements
26767           - Refactoring
26768
26769 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
26770
26771         * FileDialog.cs: Forgot too add __MonoCS__
26772
26773 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
26774
26775         * FileDialog.cs: We are able to read recently used files now let's
26776           go on and write them.
26777
26778 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
26779
26780         * FileDialog.cs: Breathe some life into "last open"/"recently used"
26781           button
26782         * MimeIcon.cs: Do a check for the top level media type also
26783
26784 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
26785
26786         * ThemeClearlooks.cs:
26787           - Added CPDrawStringDisabled
26788           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
26789             some chars if the text doesn't fit into text_rect
26790           - DrawListViewItem: If View = View.LargeIcon center the image;
26791             rewrote the drawing of ListViewItem.Text if View = 
26792             View.LargeIcon
26793
26794 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
26795
26796         * MimeIcon.cs: Use default KDE icon theme if there is no
26797           "48x48" directory for the current icon theme, fixes #77114
26798         * Mime.cs: Disable not working and actually not used code. 
26799         * ThemeWin32Classic.cs:
26800           - Replace "new SolidBrush" in GetControlBackBrush and
26801             GetControlForeBrush with ResPool.GetSolidBrush
26802           - Changed DrawListViewItem from private to protected virtual
26803         * FileDialog.cs:
26804           - Added form.MaximizeBox = true
26805           - Don't throw an exception if there is a broken symbolic link
26806
26807 2005-12-23  Jackson Harper  <jackson@ximian.com>
26808
26809         * TabControl.cs: Give the panels focus, keyboard navigation is
26810         fixed so this works correctly now.
26811         - We need these key events also.
26812         * ToolBar.cs: Remove some of the poor mans double buffering.
26813         
26814 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
26815
26816         * ComboBox.cs: The internal TextBox now returns the focus.
26817
26818 2005-12-23  Jackson Harper  <jackson@ximian.com>
26819
26820         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
26821
26822 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
26823
26824         * Control.cs: Removed debug code
26825         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
26826           implicit children
26827
26828 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
26829
26830         * Control.cs: When creating the control, update the Z-order after
26831           all it's children are created, too. (Fixes nexxia not showing
26832           picturebox bug)
26833
26834 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
26835
26836         * Control.cs: Do not update the anchoring distances if layout is
26837           suspended, instead do it once layout is resumed
26838
26839 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
26840
26841         * Control.cs: 
26842           - After many hours of debugging, for both Jackson and
26843             myself, it turns out that it helps to set the parent of a control
26844             if you want to actually see it onscreen. In the spirit of that
26845             discovery, we're now setting the parent of the control and
26846             it's children when the control's handle is created. This fix
26847             will make Lutz Roeder's Reflector run happily. 
26848           - now just creating the handle instead of the whole control when
26849             getting a graphics context for the control.
26850
26851 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
26852
26853         * ScrollableControl.cs: When calculating the canvas, don't consider
26854           the scrollbar widths. Instead, predict if horizontal scrollbar
26855           will affect canvas when deciding on vertical display and vice versa.
26856
26857 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
26858
26859         * RichTextBox.cs: Set default RTF font for documents that don't
26860           have a font table (Fixes #77076)
26861
26862 2005-12-22  Jackson Harper  <jackson@ximian.com>
26863
26864         * TextBoxBase.cs: It's difficult to do, but you can have an empty
26865         clipboard. This prevents a NullRef in that case.
26866         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
26867         clipboard. PRIMARY is for the currently selected text only. (We
26868         should implement PRIMARY at some point.
26869
26870 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
26871
26872         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
26873           a Unicode function with a structure that was defined in Ansi way.
26874           This fixes #76942.
26875
26876 2005-12-21  Jackson Harper  <jackson@ximian.com>
26877
26878         * StatusBar.cs: Statusbar handles its fore/back colours on it's
26879         on. Because thats how it rolls. (and this avoids it using ambient
26880         colours).
26881         * ThemeWin32Classic.cs: Use the proper back color for filling.
26882         * Menu.cs: Use the system menu bar color for drawing menu
26883         bars. Using the window back color will bring ambient colours into
26884         the picture.
26885
26886 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
26887
26888         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
26889           Bitmaps were created and not disposed.
26890
26891 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
26892
26893         * Control.cs (CreateControl): Don't do anything if the control is
26894           already created, otherwise we'd fire the OnCreated event more than
26895           once
26896
26897 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
26898
26899         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
26900           will always match. Instead return -1. Fixes #76464.
26901
26902 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
26903
26904         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
26905           neither the beginning nor the end of the line (Fixes bug #76479)
26906
26907 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
26908
26909         * Control.cs:
26910           - ControlNativeWindow.ControlFromHandle(): Now handling situation
26911             where handle is invalid
26912           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
26913             instead of slower linear search
26914         * NativeWindow.cs: Don't remove the window from the hashtable until
26915           after the driver has destroyed it (since the driver might use
26916           Control.FromHandle to lookup the control object
26917         * Hwnd.cs: Added DestroyPending property to track if a window is 
26918           already destroyed as far as the driver is concerned and only hasn't
26919           yet notified the control
26920         * XplatUIX11.cs:
26921           - Activate(): Check if the window is still valid before using the 
26922             handle
26923           - Implemented DestroyChildWindow() method to mark child windows as
26924             destroyed when a window is destroyed. This prevents situations 
26925             where we might call an X method based on queued events for a
26926             window that already has been destroyed but we haven't yet pulled
26927             the destroy method from the queue.
26928           - Added a call to the new DestroyChildWindow() method to the drivers
26929             DestroyWindow code. Also now marking the destroyed window itself
26930             as pending
26931
26932 2005-12-20  Jackson Harper  <jackson@ximian.com>
26933
26934         * StatusBar.cs:
26935         * StatusBarPanel.cs: Don't calculate panel sizes on draw
26936         anymore. Just do them when needed, also track the rects of panels
26937         so that we can optimize refreshing more in the future.
26938
26939 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
26940
26941         * ColorDialog.cs: Fixed focus drawing in small color controls
26942
26943 2005-12-19  Jackson Harper  <jackson@ximian.com>
26944
26945         * InternalWindowManager.cs:
26946         * MdiWindowManager.cs: Cleanup some coordinate system changes so
26947         moving windows works properly.
26948
26949 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
26950
26951         * Control.cs: 
26952           - Removed call to InitLayout() from SetBoundsCore(); doc says
26953             it's only called when a control is added to a container
26954           - Split InitLayout logic, moved to separate UpdateDistances() method
26955             since we need to perform those calculations more often than just
26956             when adding the control to a container. (Needed to fix #77022)
26957           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
26958           - Reduced the OnBindingContextChanged events count, don't send them
26959             unless the control is created, we still aren't totally matching
26960             MS, but I can't quite figure out some of their rules
26961
26962 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
26963
26964         * ThemeClearlooks.cs: Corrected distance between ProgressBar
26965           stripes
26966
26967 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
26968
26969         * ThemeClearlooks.cs:
26970           - Updated ProgressBar drawing
26971           - Corrected drawing of ScrollBars and scroll buttons
26972           - Some temporary fixes for minor pixel artefacts
26973
26974 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
26975
26976         * Control.cs:
26977           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
26978             cause events to be sent in the same order as MS does.
26979           - Added ChangeParent() method to trigger various OnXXXChanged events
26980             that need to be fired when a parent changes (This is a reworking
26981             of the patch from r54254, with the X11 errors fixed)
26982           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
26983             since on MS we get OnLayoutChanged events when calling Clear()
26984           - Changed Enabled property to consider parent state as well, if a
26985             parent is not enabled, the control will not be either
26986           - Changed Parent property to simply call Controls.Add() since that
26987             now does all the work required, this way we avoid code duplication
26988           - Threw in a few OnBindingsContextChanged calls to try and match
26989             when MS sends them. We seem to send a few too many, though.
26990           - Added call to CreateControl when adding the control to a parent.
26991             We were never calling CreateControl. Still needs some work, in
26992             some places we treat HandleCreated and ControlCreated as equal, 
26993             which is wrong
26994           - Removed obsolete commented out code from UpdateZOrder()
26995
26996 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
26997
26998         * ThemeClearlooks.cs: Updated TrackBar drawing.
26999
27000 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
27001
27002         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
27003
27004 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
27005
27006         * FileDialog.cs: Add the Help button and the open readonly
27007           checkbox only if needed
27008
27009 2005-12-16  Jackson Harper  <jackson@ximian.com>
27010
27011         * Control.cs: Make sure we have an active menu before trying to
27012         process commands on it. Prevents menu-less forms from crashing
27013         when Alt is pressed.
27014         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
27015         Dieter Bremes.
27016         * RichTextBox.cs: Expand statement to help out gmcs and fix the
27017         2.0 build.
27018
27019 2005-12-16  Jackson Harper  <jackson@ximian.com>
27020
27021         * InternalWindowManager.cs: Don't translate tool windows screen
27022         coordinates. This fixes windows 'bouncing' around when being moved.
27023
27024 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
27025
27026         * TextBoxBase.cs:
27027           - MaxLength now treats 2^31-1 equal to unlimited length (this is
27028             not quite MS compatible, MS uses that number only for single line
27029             and 2^32-1 for multi-line, but I figure it won't hurt keeping
27030             the limit at 2GB)
27031           - Now enforcing the MaxLength limit when entering characters
27032           - Added argument to internal Paste() method to track if it's called
27033             from programatically or via keyboard, since keyboard driven pastes
27034             need to enforce max-length
27035           - Added logic to Paste to only paste as many chars as MaxLength 
27036             allows
27037         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
27038         * TextControl.cs:
27039           - Added Length property to return number of characters in document
27040           - Added private CharCount property which only tracks actual chars
27041             in the document (no linefeeds) and fires event when CharCount
27042             changes
27043           - Added tracking of character count to all methods that alter it
27044           - Added LengthChanged event to allow applications to subscribe
27045             to any changes to the document
27046
27047 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
27048
27049         * TextBox.cs: 
27050           - Removed local password_char field (moved to TextBoxBase)
27051           - Now setting the document's password var when password is
27052             set
27053         * TextBoxBase.cs:
27054           - Added password_char field (needed here so MultiLine can
27055             access it)
27056           - Added logic to MultiLine property setter to set the document's
27057             variable when password display is allowed
27058           - Removed debug code and made some debug code conditional
27059         * TextControl.cs:
27060           - Added RecalculatePasswordLine() method to handle special password
27061             char only lines
27062           - Added PasswordChar property, also added related tracking vars
27063           - Draw() method now uses local text var for grabbing text to draw,
27064             this var is set to line.text unless we're doing password display,
27065             then it is set to the pre-generated all-password-chars line
27066           - Added calling RecalculatePasswordLine() method for password lines
27067
27068 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
27069
27070         * Hwnd.cs: 
27071           - Added Reparented property to allow tracking of Window Manager
27072             reparenting actions (which affect X/Y calculations of toplevel 
27073             windows)
27074           - Made ToString() print window handles in hex
27075         * XplatUIX11.cs:
27076           - AddConfigureNotify(): Now uses reparented state off Hwnd to
27077             determine if X/Y needs offsetting
27078           - AddConfigureNotify(): Fixed offset calculations
27079           - Now adds ReparentNotify messages into the queue
27080           - Now processes ReparentNotify messages and causes a 
27081             WM_WINDOWPOSCHANGED message to be sent upstream if a window
27082             is reparented (as most likely it's X/Y coordinates are changed
27083             due to that)
27084
27085 2005-12-14  Jackson Harper  <jackson@ximian.com>
27086
27087         * XplatUIX11.cs: Tool windows still need to respek focus.
27088
27089 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
27090
27091         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
27092           have a working release
27093
27094 2005-12-13  Jackson Harper  <jackson@ximian.com>
27095
27096         * Form.cs: Update styles after setting the border style regardless
27097         of whether or not the window is using a window manager.
27098
27099 2005-12-13  Jackson Harper  <jackson@ximian.com>
27100
27101         * Form.cs: We now hook into an internal window manager instead of just an
27102         MDI subsystem, this is so we can have properly behaving tool windows.
27103         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
27104         * InternalWindowManager.cs: New internal class that acts as a
27105         window manager for tool windows and as a base for mdi windows.
27106         * MdiWindowManager.cs: New class that acts as a window manager for
27107         mdi windows.
27108
27109 2005-12-12  Jackson Harper  <jackson@ximian.com>
27110
27111         * Control.cs: Updates so we match behavoir for for implicit
27112         controls. Fixes explosions in MDI.
27113
27114 2005-12-12  Jackson Harper  <jackson@ximian.com>
27115
27116         * Control.cs: Implement Invalidate (Region).
27117
27118 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
27119
27120         * Control.cs: 
27121           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
27122             the same events as MS does. MS fires events for each property 
27123             except, for unknown reasons, Cursor, when the control is reparented. 
27124             I can't seem to totally match add/remove since MS also fires some 
27125             VisibleChanged events, which makes no sense. Consolidated the
27126             parenting code into a separate method so it can be called from
27127             both Add and Remove. set_Parent no longer needs any special logic
27128             as it calls the parent's add method which implicitly fires
27129             all events
27130           - Removed some obsolete code and debug output
27131           - Enabled state is inherited from parents, if this is enabled
27132
27133 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
27134
27135         * Form.cs: Removed commented out code
27136
27137 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
27138
27139         * Control.cs:
27140           - Added internal version of Invoke, with additional argument 
27141             indicating if we're calling it from a Dispose() handler. That
27142             way we can avoid BeginInvoke throwing an exception if we're
27143             calling for an already destroyed window.
27144           - Added a dispose argument to BeginInvokeInternal, and made the
27145             check if a valid window handle chain exists conditional on
27146             it not being a dispose call
27147           - Removed code in DestroyHandle to destroy our children. Since we
27148             now handle the WM_DESTROY message we will catch all our children
27149             being destroyed.
27150           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
27151         * Form.cs:
27152           - Added a field to track the application context of the form.
27153           - No need to set closing variable as response to WM_CLOSE, instead
27154             we destroy the window. We also call PostQuitMessage if the form
27155             has an application context (which makes it the main app form,
27156             which, when closed terminates the app)
27157         * XplatUI.cs:
27158           - Dropped Exit() method, it's naming was confusing
27159           - Added PostQuitMessage() which causes GetMessage to return false
27160             once the message queue is empty
27161         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
27162           PostQuitMessage()
27163         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
27164           no longer a valid XplatUI method, but left it in since it's used
27165           internally. Added empty PostQuitMessage() method.
27166         * MenuAPI.cs: Replaced call to Exit() with call to
27167           PostQuitMessage, even though this is probably no longer needed.
27168         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
27169         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
27170         * Application.cs:
27171           - Replaced call to XplatUI.Exit() with PostQuitMessage()
27172           - Removed old debug code that would call XplatUI for exception
27173             display, enabled standard exception handling (Still not enabled
27174             though, until NativeWindow's ExternalExceptionHandler define
27175             is removed
27176         * NativeWindow.cs:
27177           - Added internal method to allow control to update NativeWindow
27178             after a window has been destroyed
27179           - Added handling of already destroyed windows when calling i
27180             DestroyWindow
27181           - Added removal of handle from list on ReleaseHandle
27182         * XplatUIX11.cs:
27183           - Dropped GetMessageResult var and related code
27184           - Added PostQuitState to field to track if PostQuitMessage has been
27185             called
27186           - Dropped Exit() method
27187           - Added PostQuitMessage() method
27188           - GetMessage now will return false if PostQuitState is set and no
27189             more messages are in the queue.
27190           - Expose handler will no longer generate WM_PAINT messages if we are
27191             in PostQuitState since it's very likely any windows have already
27192             been destroyed, and since Hwnd won't get updated until we have
27193             processed the DestroyNotify we'd be causing X errors.
27194         
27195 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27196
27197         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
27198           Thanks to Mike for pointing out the err of my ways.
27199
27200 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27201
27202         * Control.cs(PreProcessMessage): Moved menu handling back, but
27203           after all other key handling, to match MS (who handles Menu in
27204           DefWndProc)
27205         * Menu.cs (WndProc): Removed my brainfart
27206
27207 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27208
27209         * Control.cs(PreProcessMessage): Removed special menu handling 
27210         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
27211
27212 2005-12-07  Mike Kestner  <mkestner@novell.com>
27213
27214         * Control.cs : special case SYSKEYUP so that we can adjust keynav
27215         state according in tracker.
27216         * Menu.cs : promote tracker field to base class and provide a tracker
27217         lookup capability.  Add/Remove shortcuts dynamically if the top menu
27218         has a tracker. Unparent items that are removed from the collection.
27219         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
27220         * Theme*.cs: add always_show_hotkeys field to support configurability
27221         of mnemonic display.  win32 doesn't show mnemonics until Alt is
27222         pressed.
27223
27224 2005-12-07  Jackson Harper  <jackson@ximian.com>
27225
27226         * MdiChildContext.cs: Use Control.ResetCursor.
27227         * Control.cs: ResetCursor needs to set the property so that the
27228         correct XplatUI call gets made.
27229
27230 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27231
27232         * Control.cs: More fixes to make our key events match MS. We
27233           were not setting the modifier state on KeyData, and we were
27234           not generating any events when Alt was pressed with a key
27235           since handling of WM_SYSxxx was missing for the OnKey methods.
27236
27237 2005-12-07  Jackson Harper  <jackson@ximian.com>
27238
27239         * MdiChildContext.cs: reenable the sizing code.
27240         - When the mouse leaves a window reset its cursor.
27241
27242 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
27243
27244         * ThemeClearlooks.cs: Reflect latest Hwnd changes
27245
27246 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
27247
27248         * Hwnd.cs: Now using the theme 3d bordersize to calculate
27249           widths of Fixed3D borders
27250
27251 2005-12-07  Jackson Harper  <jackson@ximian.com>
27252
27253         * MdiClient.cs: Fix warnings. Earn Mike's love.
27254
27255 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
27256
27257         * ThemeClearlooks.cs:
27258           - Adjusted mouse over button color
27259           - Added first parts of CheckBox drawing
27260           - Added correct color for selected text background
27261           - Fixed ComboBox drawing
27262           - Added CPDrawBorder3D and CPDrawBorder
27263
27264 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
27265
27266         * XplatUIX11.cs: Added call to XBell for AudibleAlert
27267
27268 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
27269
27270         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27271           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
27272           alert users via sound. We could add an enum arg with different
27273           types of alerts in the future
27274
27275 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
27276
27277         * Control.cs: Fix behaviour problems pointed out by Mike
27278
27279 2005-12-05  Mike Kestner  <mkestner@novell.com>
27280
27281         * StatusBarPanel.cs: add Invalidate method and hook it into all the
27282         prop setters.  Calls parent.Refresh for now, but could be maybe be
27283         optimized with an internal method on StatusBar at some point.
27284         [Fixes #76513]
27285
27286 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
27287
27288         * RichTextBox.cs: Implemented get_SelectionColor
27289
27290 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
27291
27292         * ThemeClearlooks.cs:
27293           - Removed dead code
27294           - Draw black button border only if button is Form.AcceptButton
27295           - Draw correct button color for pressed RadioButton if the mouse 
27296             has entered the button
27297           - Updated ProgressBar drawing!
27298           - Updated CPDrawSizeGrip drawing
27299           - Updated StatusBarPanel drawing
27300
27301 2005-12-05  Mike Kestner  <mkestner@novell.com>
27302
27303         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
27304         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
27305
27306 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
27307
27308         * ThemeClearlooks.cs: Initial check-in, activate with
27309           export MONO_THEME=clearlooks
27310         * ThemeEngine.cs: Added ThemeClearlooks
27311
27312 2005-12-03  Mike Kestner  <mkestner@novell.com>
27313
27314         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
27315         [Fixes #76897]
27316
27317 2005-12-02  Jackson Harper  <jackson@ximian.com>
27318
27319         * Form.cs: If the child form has no menu the default main menu is
27320         used as the active menu.
27321
27322 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
27323
27324         * ListBox.cs: Check if any items exist before trying to resolve 
27325           coordinates into items
27326
27327 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
27328
27329         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
27330           as the second color for the background hatch
27331
27332 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
27333
27334         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
27335         * RichTextBox.cs: FormatText position arguments are 1-based, now making
27336           sure that what we pass to FormatText is always 1-based. Fixes #76885
27337
27338 2005-11-29  Miguel de Icaza  <miguel@novell.com>
27339
27340         * NumericUpDown.cs (EndInit): When we are done initializing,
27341         reflect any updates on the UI.
27342
27343 2005-12-02  Jackson Harper  <jackson@ximian.com>
27344
27345         * ImplicitHScrollBar.cs:
27346         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
27347         their container controls.
27348         * TreeView.cs: Use the new implicit scrollbars.
27349
27350 2005-12-02  Jackson Harper  <jackson@ximian.com>
27351
27352         * TreeView.cs: Make top_node internal so the TreeNodeCollections
27353         can play with it.
27354         * TreeNodeCollection.cs: If we remove the topnode we need to
27355         update topnode to the next node in line.
27356         - When clearing nodes go through the same process as removing
27357         them, so they get depareneted and checked if they are top node.
27358
27359 2005-12-01  Jackson Harper  <jackson@ximian.com>
27360
27361         * TreeView.cs: When imagelists are used the image area is
27362         selectable as well as the text.
27363         - If there are no selected nodes select the first one.
27364         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
27365         so don't do it more then we need to.
27366
27367 2005-12-01  Jackson Harper  <jackson@ximian.com>
27368
27369         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
27370         that arrows can be scaled.
27371
27372 2005-12-01  Jackson Harper  <jackson@ximian.com>
27373
27374         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
27375         fail. Patch by Dieter Bremes
27376
27377 2005-11-30  Jackson Harper  <jackson@ximian.com>
27378
27379         * Form.cs: Property is 2.0 only
27380         * PrintDialog.cs: Signature fix.
27381
27382 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
27383
27384         * TextControl.cs: 
27385           - No longer artificially moves text 2 pixels down (now that we have
27386             borders this is no longer needed)
27387           - Added calcs for left, hanging and right indent
27388
27389 2005-11-23  Mike Kestner  <mkestner@novell.com>
27390
27391         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
27392
27393 2005-11-30  Jackson Harper  <jackson@ximian.com>
27394
27395         * MdiChildContext.cs: Set the cloned menus forms, as these don't
27396         get cloned as part of CloneMenu ().
27397         * Menu.cs: Make sure the parent of the items get set correctly
27398         when they are added.  And the owners are notified of the changes.
27399         * Form.cs: Create an ActiveMenu property, so that when MDI is used
27400         we can change the menu being displayed/handled by the form without
27401         changing the menu assosciated with the form.
27402         - Don't let Mdi children draw/handle menus.
27403         
27404 2005-11-30  Jackson Harper  <jackson@ximian.com>
27405
27406         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
27407         a MenuChanged event. Just to make the API a little more
27408         consistent.
27409         * MainMenu.cs:
27410         * MenuItem.cs: Use the new OnMenuChanged
27411         * MdiChildContext.cs: Handle menu merging.
27412         * Form.cs: Implement MergedMenu.
27413         
27414 2005-11-30  Jackson Harper  <jackson@ximian.com>
27415
27416         * Menu.cs: We were misusing Add. Add goes behind the specified
27417         index according to the docs, and does not replace the specified
27418         index. So I added an Insert method.
27419
27420 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
27421
27422         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
27423           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
27424           is for Jackson
27425         * RichTextBox.cs: Added calls to base for DnD events
27426
27427 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
27428
27429         * TextControl.cs:
27430           - Fixed drag-selection related crash; style fixes
27431           - Implemented undo class
27432             o Implemented method to capture document state for specified
27433               range in document tree
27434             o Implemented method to restore captured document state
27435             o Implemented cursor tracking
27436             o Implemented basic undo stack
27437           - Added undo cursor tracking to methods altering cursor location
27438           - Added undo tracking to selection deletion (still missing
27439             other text-altering hookups)
27440         * RichTextBox.cs:
27441           - Added SelectionLength property
27442           - Implemented CanPaste()
27443           - Implemented Paste()
27444           - Added missing protected methods
27445           - Fixed RTF->Document conversion; now uses font index 0 and color 
27446             index 0 as the default font for the parsed text
27447           - Fixed RTF<->Document font size translation
27448           - Fixed RTF generation, now properly handles cross-tag boundaries
27449             for single line selection
27450           - No longer always appends blank line to generated RTF
27451           - Removed TODOs
27452           - Added missing attributes
27453           - Hooked up undo-related methods
27454         * TextBoxBase.cs:
27455           - Implemented Copy()
27456           - Implemented Paste()
27457           - Implemented Cut()
27458           - Fixed caret mis-behaviour on backspace across line-boundaries
27459
27460 2005-11-29  Jackson Harper  <jackson@ximian.com>
27461
27462         * MdiClient.cs: Add a method for activating mdi children. Very
27463         basic right now. I imagine someday it might need more girth.
27464         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
27465         children windows names are added to the menu item.
27466         * ThemeWin32Classic.cs: Draw the arrow if the item is an
27467         mdilist. This happens regardless of whether or not there are any
27468         mdi windows to see in the list, and according to my tests happens
27469         before the items are even added. Also happens if there isn't even
27470         an mdi client to get windows from.
27471
27472 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
27473
27474         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
27475         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
27476
27477 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
27478
27479         * DataGridTableStyle.cs:
27480           - Create always the styles for the missing columns even if they are
27481             provided by the user (not default table style)
27482         * DataGrid.cs:
27483           - Fixes bug 76770
27484           - Fixes SetDataBinding (always re-attach source)
27485           - Fixes SetNewDataSource (only clear styles if they are not for 
27486             this source)
27487          -  Expands OnTableStylesCollectionChanged to handle style refresh 
27488             and remove properly
27489
27490 2005-11-29  Jackson Harper  <jackson@ximian.com>
27491
27492         * FileDialog.cs: Implement missing bits, remove some dead
27493         code.
27494         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
27495         creation of the panel so that the options set on the dialog are
27496         seen when the panel is created.
27497         * TreeView.cs: raise a click when items are clicked.
27498         
27499 2005-11-29  Jackson Harper  <jackson@ximian.com>
27500
27501         * MdiClient.cs: Pass some signature methods through to base.
27502
27503 2005-11-28  Jackson Harper  <jackson@ximian.com>
27504
27505         * ListView.cs: Raise the click event when items are clicked.
27506
27507 2005-11-28  Jackson Harper  <jackson@ximian.com>
27508
27509         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
27510         a nullref.
27511
27512 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
27513
27514         * ThemeNice.cs: - Removed 1 pixel bitmaps
27515           - Use SmoothingMode.AntiAlias where it makes sense
27516             (ScrollButton arrow for example)
27517           - Enhanced Button focus drawing
27518           - Fixed ComboBox drawing (no artefacts anymore, focus
27519             rectangle is back again, reduced size of ComboButton, etc.)
27520           - Fixed RadioButton focus drawing for Appearence.Button
27521           - Slight ScrollButton redesign
27522           - Some LinearGradientBrush size fixes
27523           - GroupBoxes have now rounded edges
27524           - Fixed StatusBar drawing
27525
27526 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
27527
27528         * ThemeNice.cs: - Remove dead code
27529           - use correct background colors for menus, etc.
27530           - Fake pixel drawing with 1 pixel bitmaps
27531
27532 2005-11-24  Jackson Harper  <jackson@ximian.com>
27533
27534         * MdiClient.cs: Size the scrollbars when resizing the window.
27535         - Resize the maximized windows when the client is resized
27536         * Form.cs: Make the child context available
27537         
27538 2005-11-23  Jackson Harper  <jackson@ximian.com>
27539
27540         * MdiChildContext.cs: Don't size windows if they are maximized.
27541
27542 2005-11-23  Mike Kestner  <mkestner@novell.com>
27543
27544         * ContextMenu.cs: use MenuTracker.
27545         * Control.cs: remove menu handle usage.
27546         * Form.cs: remove menu handle usage.
27547         * Hwnd.cs: remove menu handle usage.
27548         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
27549         motion and clicks to the new Tracker handlers.
27550         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
27551         and handle usage.
27552         * MenuAPI.cs: refactored to combine popup and menubar event handling.
27553         Killed the MENU and MENUITEM data types and associated collections
27554         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
27555         MenuTracker class that exposes the leftovers from the old MenuAPI
27556         static methods. Restructured Capture handling so that only one grab is
27557         done for the entire menu hierarchy instead of handing off grabs to
27558         submenus. Tracker now has an invisible control to Capture when active.
27559         * MenuItem.cs: add sizing accessors, kill Create
27560         and handle usage.
27561         * Theme.cs: remove menu handle and MENU(ITEM) usage.
27562         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
27563         MENU(ITEM). remove menu handle usage, use Menu directly.
27564         * XplatUIDriver.cs: remove menu handle usage.
27565         * XplatUIOSX.cs: remove menu handle usage.
27566         * XplatUIWin32.cs: remove menu handle usage.
27567         * XplatUIX11.cs: remove menu handle usage.
27568
27569 2005-11-22  Jackson Harper  <jackson@ximian.com>
27570
27571         * Hwnd.cs: Don't compute the menu size for
27572         DefaultClientRectangle.
27573         - Reenable menu sizes being computed for GetClienRectangle.
27574         * Form.cs: Remove comment of trechery
27575         
27576 2005-11-22  Jackson Harper  <jackson@ximian.com>
27577
27578         * Hwnd.cs: The adjustments for the menu bar are made when it is
27579         attached to the form.
27580
27581 2005-11-19  Jackson Harper  <jackson@ximian.com>
27582
27583         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
27584         (just like on windows).
27585
27586 2005-11-19  Jackson Harper  <jackson@ximian.com>
27587
27588         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
27589         use real buttons anymore because they are in non client area. The
27590         one TODO here is that I need to somehow invalidate a section of
27591         the non client area.
27592
27593 2005-11-18  Jackson Harper  <jackson@ximian.com>
27594
27595         * Control.cs: Put the enum check back in now that MDI doesnt have
27596         to use this to set border styles.
27597         * Form.cs: Only set mdi child windows borders if the handle has
27598         been created.
27599         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
27600         this directly on to the driver.
27601         - Get the move start position before adjusting for the titlebar
27602         height, this fixes the windows "skipping" when they are first
27603         moved.
27604
27605 2005-11-18  Jackson Harper  <jackson@ximian.com>
27606
27607         * XplatUIX11.cs: Just compute the mdi borders separately as they
27608         don't totally match up with normal form borders.
27609
27610 2005-11-18  Jackson Harper  <jackson@ximian.com>
27611
27612         * Control.cs: Set WS_ styles for borders, so that the driver does
27613         not have to retrieve the control instance to figure out what kind
27614         of borders it should have.
27615         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
27616         driver can know its an mdi child easily.
27617         * XplatUIX11.cs: Get the border styles and whether the window is
27618         MDI from the Styles and ExStyles params instead of having to get a
27619         control. This prevents a chicken and egg problem.       
27620
27621 2005-11-18  Jackson Harper  <jackson@ximian.com>
27622
27623         * MdiClient.cs: Fix typo so scrollbars show up correctly.
27624
27625 2005-11-18  Jackson Harper  <jackson@ximian.com>
27626
27627         * MdiClient.cs: Calculate when to add and remove scrollbars
27628         correctly.
27629         * MdiChildContext.cs: Adjust the y position to take the titlebar
27630         into account.
27631         - No height for FormBorderStyle.None
27632
27633 2005-11-18  Jackson Harper  <jackson@ximian.com>
27634
27635         * Control.cs: Allow non enum values to be used for
27636         InternalBorderStyle.  MDI does this to set a special border style.
27637         - New utility methods for converting points to/from client coords
27638         - Add the newly created control to the Controls collection before
27639         updating its style. This way UpdateStyle can walk the control
27640         heirarchy to find the control if needed.
27641         so I don't need to create a new Point object all the time.
27642         * Form.cs: Let MDI windows handle their border styles.
27643         - Set styles on MDI windows so the correct title style is derived.
27644         * MdiChildContext.cs: Move all the painting and window handling
27645         into the non client area.
27646         - Use correct sizing and put correct buttons on frames based on
27647         the FormBorderStyle.
27648         - Notify the mdi client about scrolling
27649         - Need to handle the buttons ourselves now, because they are all
27650         in non client areas and we can't add controls there.
27651         * MdiClient.cs: Halfway to scrolling, this implementation is
27652         somewhat broken though, we need to check to make sure other
27653         windows aren't causing scrolling before removing the bars. Also
27654         the bars need to be drawn on top, maybe I can switch implicit
27655         controls to be on top.
27656         * Hwnd.cs: caption_height and tool_caption_height are now
27657         properties of an hwnd, this way they can be set by the driver
27658         based on the type of window they are.  In X11 the window manager
27659         handles the decorations so caption_height is zero unless its an
27660         MDI window.
27661         - Add 3 pixel borders for MDI windows (0xFFFF).
27662         - Get rid of some code duplication, have DefaultClientRectanle
27663         just call GetClientRectangle.
27664         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
27665         Hwnd now.
27666         - Set border styles differently for mdi windows.
27667         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
27668         Hwnd now.
27669         
27670 2005-11-15  Mike Kestner  <mkestner@novell.com>
27671
27672         * Menu.cs: when adding an item to the collection, if item is already 
27673         parented, remove it from the parent.
27674
27675 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
27676
27677         * X11DesktopColors.cs: Added KDE support
27678
27679 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
27680
27681         * XplatUIWin32.cs: 
27682           - Clipboard methods now can translate Rtf format
27683           - No longer removes clipboard contents whenever a new format is added
27684             to allow placing multiple formats on the clipboard
27685         * Clipboard.cs: Clipboard now supports getting a IDataObject and
27686           will place all formats contained in it onto the clipboard. Also
27687           now cleans the clipboard before placing a new object onto it
27688         * RichTextBox.cs:
27689           - Implemented set_Rtf
27690           - Implemented set_SelectedRtf
27691           - Created InsertRTFFromStream() method to allow single code base
27692             for all properties and methods that insert RTF into document
27693           - Removed debug output
27694         * TextControl.cs:
27695           - Fixed Delete(int) to fix up line numbers
27696           - Fixed ReplaceSelection to combine start and end line
27697           - Fixed serious DeleteChars bug that would leave the document tree
27698             broken
27699           - Improved DumpTree with several logic checks to detect broken
27700             document trees
27701           - Removed debug lines
27702           - Fixed Caret.WordForward/WordBack moving code, now always also 
27703             updates caret.tag (fixes crash when word-selecting across tag
27704             boundaries via keyboard)
27705           - Added Insert() method for inserting multiline text into documents
27706           - Fixed DeleteChars() calculation errors that would cause a broken
27707             tag chain with multiple tag lines
27708           - DeleteChars() no longer crashes on multi-tag lines if not all tags
27709           - Split() no longer moves caret if split is at caret location
27710           - ReplaceSelection() now updates the cursor and re-displays it
27711           - ReplaceSelection() now uses new Insert() method to avoid code
27712             duplication
27713           - FormatText() can now handle formatting partial lines
27714         * TextBoxBase.cs:
27715           - Append now uses new TextControl.Insert() method (this avoids 
27716             duplicate code)
27717           - Implemented Ctrl-X (Cut) (
27718           - Implemented Ctrl-C (Copy)
27719           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
27720             regeneration when pasting text; roundtripping Copy&Paste within
27721             edit control still fails due to some calculation bugs in GenerateRTF)
27722           - The Delete key will now remove the current selection if it is visible
27723         * TextBox.cs: Removed debug lines
27724         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
27725           driver to be initialized and can't therefore be done via a static ctor)
27726
27727 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
27728
27729         * TextControl.cs: Added backend code for finding char arrays and strings
27730         * TextBoxBase.cs:
27731           - Added mouse wheel scroll support
27732           - Added support for VScroll and HScroll events
27733         * RichTextBox.cs:
27734           - Implemented all seven Find() variants
27735           - Implemented GetCharFromPosition()
27736           - Implemented GetCharIndexFromPosition()
27737           - Implemented GetLineFromIndex()
27738           - Implemented GetPositionFromCharIndex();
27739           - Implemented SaveFile for PlainText and UnicodeText
27740           - Fixed set_Font, now setting a new font applies that font to
27741             the whole document
27742           - Implemented generic Document to RTF converter
27743           - Implemented SaveFile for RichText format (still missing unicode
27744             conversion for non-ansi chars)
27745           - Implemented get_Rtf
27746           - Implemented get_SelectedRtf
27747
27748 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
27749
27750         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
27751           to allow any captures to be released before triggering OnClick. This
27752           way a click handler may capture the mouse without interference.
27753         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
27754           This way we send them even though X may not allow a grab (if the window
27755           isn't visible, for example)
27756
27757 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
27758
27759         * DataGridViewRowEventArgs.cs: DataGridView implementation
27760         * DataGridViewElement.cs: DataGridView implementation
27761         * DataGridViewComboBoxCell.cs: DataGridView implementation
27762         * DataGridViewDataErrorContexts.cs: DataGridView implementation
27763         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
27764         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
27765         * ImageLayout.cs: DataGridView implementation
27766         * DataGridViewComboBoxColumn.cs: DataGridView implementation
27767         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
27768         * DataGridViewSelectionMode.cs: DataGridView implementation
27769         * IDataGridViewEditingControl.cs: DataGridView implementation
27770         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
27771         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
27772         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
27773         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
27774         * DataGridViewColumnSortMode.cs: DataGridView implementation
27775         * DataGridView.cs: DataGridView implementation
27776         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
27777         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
27778         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
27779         * Padding.cs: DataGridView implementation
27780         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
27781         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
27782         * DataGridViewRowEventHandler.cs: DataGridView implementation
27783         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
27784         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
27785         * DataGridViewButtonCell.cs: DataGridView implementation
27786         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
27787         * DataGridViewEditMode.cs: DataGridView implementation
27788         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
27789         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
27790         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
27791         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
27792         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
27793         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
27794         * DataGridViewCellEventHandler.cs: DataGridView implementation
27795         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
27796         * DataGridViewCellStyleConverter.cs: DataGridView implementation
27797         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
27798         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
27799         * DataGridViewColumnEventArgs.cs: DataGridView implementation
27800         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
27801         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
27802         * QuestionEventArgs.cs: DataGridView implementation
27803         * IDataGridViewEditingCell.cs: DataGridView implementation
27804         * DataGridViewTriState.cs: DataGridView implementation
27805         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
27806         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
27807         * DataGridViewColumnCollection.cs: DataGridView implementation
27808         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
27809         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
27810         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
27811         * DataGridViewColumn.cs: DataGridView implementation
27812         * DataGridViewCellBorderStyle.cs: DataGridView implementation
27813         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
27814         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
27815         * DataGridViewRow.cs: DataGridView implementation
27816         * DataGridViewImageCellLayout.cs: DataGridView implementation
27817         * DataGridViewImageCell.cs: DataGridView implementation
27818         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
27819         * DataGridViewCheckBoxCell.cs: DataGridView implementation
27820         * DataGridViewHeaderCell.cs: DataGridView implementation
27821         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
27822         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
27823         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
27824         * DataGridViewTextBoxColumn.cs: DataGridView implementation
27825         * QuestionEventHandler.cs: DataGridView implementation
27826         * DataGridViewCellStyleScopes.cs: DataGridView implementation
27827         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
27828         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
27829         * DataGridViewCell.cs: DataGridView implementation
27830         * DataGridViewCellEventArgs.cs: DataGridView implementation
27831         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
27832         * DataGridViewCellStyle.cs: DataGridView implementation
27833         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
27834         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
27835         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
27836         * TextFormatFlags.cs: DataGridView implementation
27837         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
27838         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
27839         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
27840         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
27841         * DataGridViewButtonColumn.cs: DataGridView implementation
27842         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
27843         * HandledMouseEventArgs.cs: DataGridView implementation
27844         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
27845         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
27846         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
27847         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
27848         * DataGridViewRowCollection.cs: DataGridView implementation
27849         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
27850         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
27851         * DataGridViewHitTestType.cs: DataGridView implementation
27852         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
27853         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
27854         * DataGridViewColumnEventHandler.cs: DataGridView implementation
27855         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
27856         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
27857         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
27858         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
27859         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
27860         * DataGridViewContentAlignment.cs: DataGridView implementation
27861         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
27862         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
27863         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
27864         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
27865         * DataGridViewPaintParts.cs: DataGridView implementation
27866         * DataGridViewCellCollection.cs: DataGridView implementation
27867         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
27868         * DataGridViewImageColumn.cs: DataGridView implementation
27869         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
27870         * DataGridViewElementStates.cs: DataGridView implementation
27871         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
27872         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
27873         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
27874         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
27875         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
27876         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
27877         * DataGridViewRowHeaderCell.cs: DataGridView implementation
27878         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
27879         * DataGridViewTextBoxCell.cs: DataGridView implementation
27880         * DataGridViewBand.cs: DataGridView implementation
27881         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
27882         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
27883         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
27884         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
27885         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
27886         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
27887         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
27888         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
27889         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
27890         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
27891         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
27892
27893 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
27894
27895         * ThemeWin32Classic.cs: 
27896           - Draw the outside focus rectangle around buttons
27897           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
27898             doesn't use end caps for every dash of a line anymore. This
27899             workaround ignores the forecolor.
27900
27901 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
27902
27903         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
27904           endian safe.
27905
27906 2005-11-07  Jackson Harper  <jackson@ximian.com>
27907
27908         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
27909
27910 2005-11-07  Jackson Harper  <jackson@ximian.com>
27911
27912         * ScrollableControl.cs: Calculate the maximum and change vars
27913         (more) correctly so that scrollbars appear as a sensible size.
27914
27915 2005-11-04  Jackson Harper  <jackson@ximian.com>
27916
27917         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
27918         collection.
27919         * TreeView.cs: When the tree is sorted null out the top_node so
27920         that it is recalculated.
27921         - Use dotted lines instead of dashed lines to match MS better.
27922
27923 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
27924
27925         * ListView.cs: 
27926           - Implements key search for items. Useful when browsing files with FileDialog
27927           - When changing view mode or when clear the items reset scrollbar positions
27928
27929 2005-11-04  Jackson Harper  <jackson@ximian.com>
27930
27931         * CurrencyManager.cs: Implement the MetaDataChanged event, the
27932         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
27933         as to what the method may do as there is no real way of creating a
27934         derived CurrencyManager and calling the method. 
27935
27936 2005-11-03  Jackson Harper  <jackson@ximian.com>
27937
27938         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
27939         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
27940         method which seems to just be used internally to refresh the tabs.
27941
27942 2005-11-03  Jackson Harper  <jackson@ximian.com>
27943
27944         * TabControl.cs: Implement the remove method. Fix some broken
27945         comments.
27946
27947 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
27948
27949         * DateTimePicker.cs:
27950           - Added missing DateTimePickerAccessibleObject class
27951           - Added missing events
27952           - Added OnFontChanged method
27953         * Form.cs: Added missing attributes
27954         * TreeView.cs: Added missing attributes
27955
27956 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
27957
27958         * GridItemCollection.cs: Fix signatures
27959
27960 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
27961
27962         * XplatUI.cs: Updated build rev/date
27963         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
27964           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
27965         * Application.cs: Trigger context-specific ExitThread events
27966
27967 2005-11-03  Jackson Harper  <jackson@ximian.com>
27968
27969         * Menu.cs:
27970         * MainMenu.cs:
27971         * GridTableStylesCollection.cs:
27972         * Timer.cs:
27973         * TabPage.cs:
27974         * HelpProvider.cs:
27975         * StatusBar.cs:
27976         * MonthCalendar.cs: Signature fixes
27977
27978 2005-11-03  Jackson Harper  <jackson@ximian.com>
27979
27980         * TreeNodeCollection.cs: Remove should not be virtual.
27981         * TreeView.cs: Implement the last of the missing methods.
27982
27983 2005-11-03  Jackson Harper  <jackson@ximian.com>
27984
27985         * TreeNodeConverter.cs: Implement to get off my class-status back.
27986
27987 2005-11-03  Jackson Harper  <jackson@ximian.com>
27988
27989         * TreeView.cs: Hookup the bits for drag and drop.
27990         * TreeNode.cs: Don't cache the tree_view or index anymore, now
27991         that nodes can be moved from tree to tree easily this just causes
27992         all sorts of problems.
27993         * TreeNodeCollection: Don't need to give treenodes an index and
27994         treeview anymore when they are added, these are computed on the
27995         fly. Also make sure to remove a node before its added.
27996
27997 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
27998
27999         * TextControl.cs:
28000           - Added CaretSelection enum
28001           - Added comparison methods to Marker struct, makes selection code
28002             more readable
28003           - Added SelectionStart and SelectionEnd as 'moveable' location for
28004             the CaretDirection enum and handler
28005           - Added selection_prev variable to track optimized invalidation for
28006             word and line selection
28007           - Added SelectionVisible property (returns true if there is a valid 
28008             selection)
28009           - Switched CaretHasFocus to only display the caret if there is no
28010             visible selection
28011           - Avoiding StringBuilder.ToString to retrieve a single char, instead
28012             using the direct character index; should be much faster
28013           - Added various conditional debug statements
28014           - Fixed invalidation calculation for selection ranges
28015           - Added ExpandSelection() method to support word and line selection
28016           - Switched SetSelectionToCaret to use new Marker compare overloads
28017           - Added central IsWordSeparator() method to determine word 
28018             separators/whitespace and FindWordSeparator() to streamline common
28019             usage of IsWordSeparator()
28020         * TextBoxBase.cs:
28021           - Removed unneeded grabbed variable, it was just mirroring
28022             Control.Capture
28023           - No longer firing OnTextChanged event when Text setter is called,
28024             since the base will fire the event for us
28025           - Added handling of Ctrl-Up/Down selection
28026           - Added handling of Shift-Cursorkey selection
28027           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
28028             words
28029           - Added handling of Shift and Ctrl-Shift-Home/End selection
28030           - Removed some debug output
28031           - Added handling for single/double/tripple-click to place caret/
28032             select word/select line respectively (Fixes bug #76031)
28033           - Added support for drag expansion of word/line selection
28034         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
28035           current selection
28036
28037 2005-11-02  Jackson Harper  <jackson@ximian.com>
28038
28039         * X11Dnd.cs: If the drag is going to and from a MWF window just
28040         copy the data instead of sending it out through the X Selection
28041         mechanism.
28042
28043 2005-11-02  Jackson Harper  <jackson@ximian.com>
28044
28045         * X11Dnd.cs:
28046         * XplatUIX11.cs: When in a drag we don't want motion notify
28047         messages to get passed on to the other controls. This prevents
28048         mouse move messages from showing up in the drag source.
28049
28050 2005-11-02  Jackson Harper  <jackson@ximian.com>
28051
28052         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
28053         the correct button is release to end a drag.
28054         * XplatUIX11.cs: Make the button state internal so the drag system
28055         can access it.  Dragging needs to know about all button releases,
28056         not just left button.
28057
28058 2005-11-02  Miguel de Icaza  <miguel@novell.com>
28059
28060         * Form.cs (Icon): If the icon is null, reset the icon to the
28061         default value. 
28062
28063         * Cursor.cs: When writing the AND-mask bitmap do not include the
28064         number of colors, but hardcode those to two (black and white),
28065         fixes the loading of color cursors (Paint Dot Net).
28066
28067         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
28068         turn off autoscaling.
28069
28070         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
28071
28072 2005-11-02  Jackson Harper  <jackson@ximian.com>
28073
28074         * X11Dnd.cs: Make sure to send a status message if the pointer
28075         enters a control that can not accept a drop, otherwise the cursor
28076         isn't updated correctly. Also tried to compress the lines of code
28077         a bit.
28078
28079 2005-11-02  Jackson Harper  <jackson@ximian.com>
28080
28081         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
28082         set actions correctly.  This isn't perfect as XDND and win32 have
28083         some differences on how you allow actions. I'll clear this up by
28084         adding a path for drag from MWF to MWF windows.
28085         * XplatUIX11.cs: Hook into the dnd system.
28086
28087 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
28088
28089         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
28090         previously shown but they are no longer need it. Very obvious when 
28091         browsing files with FileDialog.
28092
28093 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
28094
28095         * Control.cs: We always need to call OnPaintBackground. We pretty much
28096           ignore AllPaintingInWmPaint and always do the painting there, whether 
28097           it's set or not, since we always ignore the WM_ERASEBKGND message 
28098           (which we don't generate on X11). This fixes #76616.
28099         * Panel.cs: Removed unneeded background painting. This happens properly
28100           in Control.cs already
28101
28102 2005-10-31  Mike Kestner  <mkestner@novell.com>
28103
28104         * Menu.cs: Add items to collection before setting their index.
28105         * MenuItem.cs : add range checking with ArgumentException like MS.
28106         [Fixes #76510]
28107
28108 2005-10-31  Jackson Harper  <jackson@ximian.com>
28109
28110         * ListBox.cs: Invalidate if the area is visible at all not just
28111         contained in the visible rect. Fixes unselection of semi visible
28112         items.
28113
28114 2005-10-31  Jackson Harper  <jackson@ximian.com>
28115
28116         * Control.cs: Consistently name the dnd methods. Make them
28117         internal so we can override them to match some MS behavoir
28118         internally.
28119         * Win32DnD.cs: Use the new consistent names.
28120
28121 2005-10-31  Jackson Harper  <jackson@ximian.com>
28122
28123         * TreeView.cs: Don't draw the selected node when we lose focus.
28124
28125 2005-10-31  Jackson Harper  <jackson@ximian.com>
28126
28127         * X11Dnd.cs: We still need to reset the state even though a full
28128         reset isn't being done, otherwise status's still get sent all over
28129         the place.
28130
28131 2005-10-31  Jackson Harper  <jackson@ximian.com>
28132
28133         * Control.cs: Make the dnd_aware flag internal so the dnd
28134         subsystem can check it. Catch exceptions thrown in dnd handlers to
28135         match MS behavoir.
28136         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
28137         * X11Dnd.cs: Handle null data in the converters. Set the XDND
28138         version when sending a XdndEnter. Use the control/hwnd dnd_aware
28139         flags to reduce the number of dnd enters/status's sent.
28140
28141 2005-10-31  Jackson Harper  <jackson@ximian.com>
28142
28143         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
28144
28145 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
28146
28147         * PictureBox.cs: Fixes 76512
28148
28149 2005-10-28  Jackson Harper  <jackson@ximian.com>
28150
28151         * X11Dnd.cs: Early implementation to support winforms being a drag
28152         source for data on X11. Also restructured the converters so they
28153         can go both ways now.
28154         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
28155         
28156 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
28157
28158         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
28159           clipboard requests
28160
28161 2005-10-27  Jackson Harper  <jackson@ximian.com>
28162
28163         * TreeNode.cs: Implement serialization so my DnD examples will work.
28164
28165 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
28166
28167         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
28168           TreeView.cs: Don't dispose objects that are not owned.
28169           
28170 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
28171
28172         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
28173           should retrieve the current cursor and report that, but XplatUI
28174           doesn't (yet) have an interface for that (and I'm not sure I even
28175           can, on X11)
28176         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
28177           until any message loop processing is done (and the WM_SETCURSOR
28178           replaces the cursor to the proper one)
28179         * XplatUIX11.cs: 
28180           - Fixed override behaviour, we can't set the cursor globally on X11, 
28181             just for our windows.
28182           - Invalidating the System.Drawing X11 display handle when we are
28183             shutting down
28184         * Control.cs: Fix to make csc happy
28185
28186 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
28187
28188         * TextBoxBase.cs: 
28189           - get_Text: Add last line (without trailing newline) to returned
28190             value (Fixes 76212)
28191           - get_TextLength: Count last line in returned length
28192           - ToString: Call Text property instead of duplicating code
28193
28194 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
28195
28196         * ImageList.cs: Dispose ImageAttributes objects.
28197
28198 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
28199
28200         * ImageList.cs: Use attribute constructors with less arguments where
28201           possible.
28202
28203 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
28204
28205         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
28206           Use typeof instead of strings when assembly is referenced. Added
28207           some more comments.
28208
28209 2005-10-21  Jackson Harper  <jackson@ximian.com>
28210
28211         * ListView.cs: Raise a double click event. Also tried to somewhat
28212         fix when the selectedindexchanged event is raised. Its still
28213         broken though.
28214
28215 2005-10-21  Jackson Harper  <jackson@ximian.com>
28216
28217         * TreeView.cs: New method to invalidate the plus minus area of a
28218         node without invalidating the whole node (maybe this can be used
28219         in some more places).
28220         * TreeNodeCollection.cs: When adding to an empty node we need to
28221         invalidate its plus minus area so the little block shows up.
28222         
28223 2005-10-21  Jackson Harper  <jackson@ximian.com>
28224
28225         * TreeView.cs: Make sure that when we invalidate a node the bounds
28226         are big enough to cover the selected box and the focus
28227         rectangle. Use a different colour for the lines connecting nodes
28228         so they show up with all themes.
28229
28230 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
28231
28232         * NativeWindow.cs: Don't call anything that could call into the driver,
28233           we might be on a different thread.
28234
28235 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
28236
28237         * Control.cs(Dispose): Since Dispose might run on a different thread,
28238           make sure that we call methods that could call into the driver via
28239           invoke, to avoid thread issues
28240
28241 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
28242
28243         * XplatUI.cs: Removed finalizer
28244         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
28245           not allowing to be called on the finalizer thread.
28246
28247 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
28248
28249         * ImageList.cs:
28250           - Reverted r51889 and r51891.
28251           - Added ImageListItem class that stores unmodified image items and image
28252             properties required to create list images until handle is created.
28253           - Added AddItem and moved image creation logic to AddItemInternal.
28254           - Added CreateHandle method that creates images based on unmodified items.
28255           - Added DestroyHandle that changes state to store unmodified items.
28256           - Add and AddStrip methods no more create handle.
28257           - ReduceColorDepth has no return value.
28258           - Dispose destroys handle.
28259           - Modified other methods to reflect the above changes.
28260           - Implemented key support.
28261           - Added profile 2.0 members and attributes.
28262           - Added private Reset and ShouldSerialize methods that provide the same
28263             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
28264             them as they are private.
28265           - Added some more comments about implementation details.
28266
28267 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28268
28269         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
28270
28271 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28272
28273         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
28274
28275 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
28276
28277         * DataGridDrawingLogic.cs: Fixes column hit calcultation
28278         * DataGridColumnStyle.cs: Remove debug message
28279
28280 2005-10-20  Jackson Harper  <jackson@ximian.com>
28281
28282         * TreeView.cs: We can always get input keys regardless of whether
28283         or not editing is enabled. They are used for navigation.
28284
28285 2005-10-20  Jackson Harper  <jackson@ximian.com>
28286
28287         * TreeNode.cs: Use the viewport rect for determining if a node
28288         needs to be moved for visibility. Don't use Begin/End edit. This
28289         calls a full refresh when its done.
28290         * TreeView.cs: New SetBottom works correctly.  Make the viewport
28291         rect property internal so the treenodes can see it. When clicking
28292         on a node we need to ensure that its visible because it might just
28293         be partly visible when clicked.
28294
28295 2005-10-20  Jackson Harper  <jackson@ximian.com>
28296
28297         * TreeNodeCollection.cs: Remove debug code.
28298
28299 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
28300
28301         * Datagrid.cs: Implements column sorting in Datagrid
28302         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
28303
28304 2005-10-20  Jackson Harper  <jackson@ximian.com>
28305
28306         * TreeNodeCollection.cs: Remove items properly. Update the correct
28307         area after removing them.
28308
28309 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
28310
28311         * Datagrid.cs: Should not call base.OnPaintBackground
28312
28313 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
28314
28315         * XplatUIX11.cs (GetMessage):
28316           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
28317             window instead of client window
28318           - Now properly calculates NC_xBUTTONUP message coordinates
28319           - ScreenToMenu now properly calculates it's coordinates of whole 
28320             window, since menus are in the whole window, not in the client
28321             window
28322           - Added WholeToScreen coordinate translation method
28323
28324 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
28325
28326         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
28327           want to return a message, loop back to the beginning of the function
28328           and grab the next real message to process instead.
28329
28330 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
28331
28332         * Splitter.cs: Properly set limits if no filler control is used
28333
28334 2005-10-19  Jackson Harper  <jackson@ximian.com>
28335
28336         * ColorDialog.cs: Don't show the help button if it is not enabled
28337         instead of disabling it (this is what MS does). Don't create the
28338         panel until the dialog is run, otherwise the vars (such as
28339         ShowHelp) are not set yet.
28340
28341 2005-10-19  Jackson Harper  <jackson@ximian.com>
28342
28343         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
28344         are reduced when adding nodes.
28345         * TreeNode.cs:
28346         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
28347         tree.
28348         
28349 2005-10-19  Jackson Harper  <jackson@ximian.com>
28350
28351         * FolderBrowserDialog.cs: End editing our treeview so the window
28352         actually gets refreshed.
28353
28354 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
28355
28356         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
28357           Obsoleted handling of WM_ERASEBKGND, now always draws our background
28358           inside of WM_PAINT
28359
28360 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28361
28362         * MenuAPI.cs: Returns after Hidding window
28363         * XplatUIX11.cs: Added TODO found while debugging menu issues
28364
28365 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
28366
28367         * XplatUIX11.cs: Do not re-map the whole window when it's size
28368           becomes non-zero unless it's supposed to be actually visible
28369
28370 2005-10-18  Jackson Harper  <jackson@ximian.com>
28371
28372         * TreeView.cs: We don't need to keep a count anymore.
28373         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
28374         use the Grow method.
28375
28376 2005-10-18  Jackson Harper  <jackson@ximian.com>
28377
28378         * TreeNodeCollection.cs: Insert is not supported on arrays, so
28379         implement it manually here.
28380
28381 2005-10-18  Jackson Harper  <jackson@ximian.com>
28382
28383         * ImageList.cs: Dont kill the list when the colour depth is
28384         changed, just change the colour depth of all the images.
28385         - Same goes for setting the image size. Just resize them all
28386         instead of killing the list softly.
28387
28388 2005-10-18  Jackson Harper  <jackson@ximian.com>
28389
28390         * Control.cs: Don't invalidate empty rectangles.
28391
28392 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28393
28394         * ListViewItem.cs:
28395           - Adds checked item to the Checked/Item lists (where empty before)
28396           - Do not add items to the Selected lists if they are already present
28397         * ListView.cs:
28398           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
28399           - When deleting items make sure that we delete them for the Selected
28400           and Checked list also.
28401
28402 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
28403
28404         * Label.cs: Dispose objects no longer used
28405         * ThemeWin32Classic.cs: Dispose objects no longer used
28406
28407 2005-10-18  Jackson Harper  <jackson@ximian.com>
28408
28409         * TabControl.cs: Don't refresh the whole control when the tabs are
28410         scrolled, we just need to refresh the tab area.
28411
28412 2005-10-17  Jackson Harper  <jackson@ximian.com>
28413
28414         * XplatUIX11.cs: Compress code a little bit. Only calculate the
28415         after handle when we need it.
28416
28417 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
28418
28419         * Control.cs: When the parent size changes, recalculate anchor 
28420           positions. Partial fix for #76462
28421
28422 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
28423
28424         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
28425           drawn. Fixes #76462
28426
28427 2005-10-17  Jackson Harper  <jackson@ximian.com>
28428
28429         * MonthCalendar.cs: Don't create the numeric up down until our
28430         handle is created. Otherwise our handle is created in the
28431         constructor and we don't know if we are a WS_CHILD or WS_POPUP
28432         yet.
28433
28434 2005-10-17  Jackson Harper  <jackson@ximian.com>
28435
28436         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
28437         correctly.
28438
28439 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28440         * TreeNode.cs : small logical fix (was using local var instead of field)
28441         
28442 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
28443
28444         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
28445
28446 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
28447
28448         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
28449
28450 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
28451
28452         * Control.cs: 
28453           - Re-implemented anchoring code. My first version was really broken.
28454             This fixes bug #76033. Unlike the previous implementation we will
28455             no longer have round errors since all numbers are calculated from
28456             scratch every time. Removed various anchor-related obsolete vars.
28457           - InitLayout no longer causes layout event firing and layout to be 
28458             performed
28459
28460 2005-10-16  Jackson Harper  <jackson@ximian.com>
28461
28462         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
28463         which was broken).
28464
28465 2005-10-16  Jackson Harper  <jackson@ximian.com>
28466
28467         * TabControl.cs: Remove debug code.
28468
28469 2005-10-16  Jackson Harper  <jackson@ximian.com>
28470
28471         * XEventQueue.cs: Increase the default queue size (very simple
28472         apps needed to grow the queue).
28473         * Hwnd.cs: No finalizer so we don't need to suppress
28474         finalization. Compute the invalid area manually so a new rectangle
28475         does not newto be created.
28476         * ScrollableControl.cs: Don't set any params (otherwise visibility
28477         isn't set correctly).
28478         * MdiChildContext.cs: New constructor takes the mdi parent so it
28479         doesn't have to be computed and avoids a crash on windows. Draw
28480         the window icon properly, and allow the text to be seen.
28481         * Form.cs: Use new MdiChildContext constructor. Make sure the
28482         child context isn't null in wndproc.
28483         * TabControl.cs: Don't set focus, this is muddling keyboard
28484         behavoir. Expand the tab rows when a window size increase will
28485         allow extra tabs to be seen. Don't allow tabs smaller than the
28486         width of a window to be scrolled out of view.
28487         * TreeNode.cs:
28488         * TreeView.cs: Use measure string to calculate a nodes width, the
28489         width is cached and only updated when the text or the font is
28490         changed. Don't check for expand/collapse clicks on the first level
28491         nodes if root lines are disabled.
28492         
28493 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
28494
28495         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
28496
28497 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
28498
28499         * DataGridBoolColumn.cs: fixes warning
28500
28501 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
28502
28503         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
28504         to match more to match more precisely the MS Net behavior
28505
28506 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
28507
28508         * Hwnd.cs: Added field to track if window is mapped
28509         * XplatUIX11.cs: 
28510           - Unmap windows if they become 0-size, re-map when 
28511             they are >0 again; fixes #76035
28512           - Re-set our error handler after initializing X11Desktop
28513             to override any error handlers Gtk or whatever was called
28514             may have set.
28515
28516 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
28517
28518         * CheckedListBox.cs: Removed unused vars
28519         * ListView.cs: Fixed signatures
28520         * RichTextBox.cs: Removed unused vars
28521         * TextBoxBase.cs: Removed unused vars
28522         * XplatUIWin32.cs: Removed unused vars
28523         * XplatUIX11.cs: Removed unused vars
28524         * XplatUI.cs: Updated version and date to latest published
28525
28526 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
28527
28528         * Cursor.cs: Added private .ctor to work around a bug in
28529           resourceset (Thanks to Geoff Norton for the help on this)
28530         * SplitterEventArgs.cs: Made fields accessible so we don't
28531           waste boatloads of objects and can reuse the same one
28532           in Splitter
28533         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
28534           any captions and borders when generating screen coordinates
28535         * Splitter.cs: Reimplemented control, now fully complete, uses
28536           rubberband drawing, supports and obeys all properties, has
28537           proper cursors
28538
28539 2005-10-13  Miguel de Icaza  <miguel@novell.com>
28540
28541         * Form.cs (Form): Setup default values for autoscale and
28542         autoscale_base_size;  Make these instance variables, not static
28543         variables. 
28544
28545         (OnLoad): on the first load, adjust the size of the form.
28546
28547 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
28548
28549         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
28550           width argument to DrawReversibleRectangle()
28551         * XplatUIWin32.cs, XplatUIX11.cs: 
28552           - Implemented width for DrawReversibleRectangle()
28553           - Added logic to DrawReversibleRectangle that recognizes a zero
28554             width or height and only draws a line in that situation
28555         
28556 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
28557
28558         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
28559         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
28560         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
28561           method (it uses our FosterParent window to get a graphics context)
28562
28563 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
28564
28565         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
28566           and SetWindowBackground methods
28567         * Control.cs:
28568           - Setting proper ControlStyles
28569           - We no longer call XplatUI.SetWindowBackground and XplatUI.
28570             EraseWindowBackground, instead we draw the window background
28571             ourselves in PaintControlBackground. This behaviour is
28572             required to match MS, where, when OnPaintBackground is not
28573             called, the background is not drawn.
28574           - Removed unneeded Refresh() in set_Text
28575         * Hwnd.cs: Dropped the ErasePending support. No longer needed
28576         * XplatUIX11.cs:
28577           - Created DeriveStyles method to translate from CreateParams to
28578             FormBorderStyle and TitleStyle, also handles BorderStyle (which
28579             matches FormBorderStyle enum values)
28580           - Consolidated SetHwndStyles and CalculateWindowRect border/title
28581             style calculations into single DeriveStyles method
28582           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
28583             from redrawing the whole window on any resize or expose.
28584           - Fixed CreateWindow usage of SetWindowValuemask. Before not
28585             all styles were applied to our whole/client window appropriately
28586           - Removed EraseWindowBackground() and SetWindowBackground() methods
28587           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
28588             no longer clear/redraw the background through X
28589           - Removed handling of erase_pending bit, we have no use for it (or
28590             so it seems)
28591         * XplatUIOSX.cs:
28592           - Removed generation and handling of WM_ERASEBKGND message
28593           - Removed EraseWindowBackground() and SetWindowBackground() methods
28594           - Removed handling of hwnd.ErasePending flag
28595         * XplatUIWin32.cs:
28596           - Removed EraseWindowBackground() and SetWindowBackground() methods
28597           - We no longer call EraseWindowBackground on PaintEventStart, we 
28598             ignore the fErase flag, erasing is handled in Control in the
28599             background handler
28600         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
28601           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
28602           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
28603           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
28604           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
28605           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
28606           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
28607
28608 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
28609
28610         * PropertyGrids.cs: Get sub properties
28611         * PropertyGridView.cs: Fix drawing code
28612
28613 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
28614
28615         * ListBox.cs: Fixes 76383
28616
28617 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
28618
28619         * DataGridTextBoxColumn.cs: Sets location and size before attachment
28620         * ThemeWin32Classic.cs: Fixes border drawing and calculations
28621         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
28622
28623
28624 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
28625
28626         * ComboBox.cs: Fixes border drawing
28627
28628 2005-10-10  Miguel de Icaza  <miguel@novell.com>
28629
28630         * MimeIcon.cs: Ignore errors if the file can not be read.
28631
28632 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
28633
28634         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
28635          - Fixed border calculations
28636          - Fixed horizontal scrolling in single column listboxes
28637          - Fixed drawing issues
28638
28639 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
28640
28641         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
28642           FormBorderStyle enum
28643         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
28644           code to determine FormBorderStyles from CreateParams
28645         * Form.cs:
28646           - Fixed bug where we'd set the wrong window styles if we were
28647             not creating an MDI window
28648           - Added call to XplatUI.SetBorderStyle when form borders are set
28649         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
28650         * Hwnd.cs:
28651           - Removed obsolete edge style
28652           - Switched from BorderStyle to FormBorderStyle
28653         
28654 2005-10-10  Jackson Harper  <jackson@ximian.com>
28655
28656         * Form.cs: Use the property to get the window handle instead of
28657         accessing it directly. Prevents a null reference exception.
28658
28659 2005-10-10  Jackson Harper  <jackson@ximian.com>
28660
28661         * TreeView.cs: Don't adjust the rect given to DrawString now that
28662         our libgdiplus draws correctly.
28663
28664 2005-10-08  Jackson Harper  <jackson@ximian.com>
28665
28666         * TreeView.cs: Don't try to find the clicked on node if there are
28667         no nodes in the tree.
28668
28669 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
28670
28671         * RichTextBox.cs:
28672
28673           restore
28674
28675 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
28676
28677         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
28678           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
28679           ErrorProvider.cs:
28680           Use ResPool for brushes and dispose System.Drawing objects that
28681           are not used anymore.
28682
28683 2005-10-07  Jackson Harper  <jackson@ximian.com>
28684
28685         * MdiChildContext.cs: Use the new borders instead of drawing them
28686         ourselves.
28687
28688 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
28689
28690         * Calling UpdateBounds after changing the window's BorderStyle 
28691         since the style can change the ClientSize
28692
28693 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28694
28695         * Control.cs: Made PaintControlBackground virtual
28696         * Panel.cs: Overriding PaintControlBackground instead of using paint
28697           event; paint event method was interfering with 'real' users of the
28698           event.
28699
28700 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
28701
28702         * ThemeWin32Classic.cs: remove border drawing since it is handled
28703         by the base control class now and was causing double border drawing.
28704
28705 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28706
28707         * Panel.cs: Redraw our background on paint. Not a pretty solution,
28708           but it does seem to match MS behaviour. This fixes bug #75324
28709
28710 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28711
28712         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
28713           somewhat hackish looking
28714
28715 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
28716
28717         * TextBoxBase.cs:
28718           - We now accept Enter even if AcceptEnter is false, if the containing
28719             form does not have an AcceptButton configured (fixes bug #76355)
28720           - Calculations are now fixed to no longer use Width/Height, but
28721             ClientSize.Width/Height, since we now support borders (this was
28722             a result of fixing borders and therefore bug #76166)
28723           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
28724             true (fixes bug #76354)
28725         
28726 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28727
28728         * Control.cs: 
28729           - Defaulting BorderStyle and setting it in XplatUI when our window 
28730             is created
28731           - Added enum check to InternalBorderStyle setter
28732         * XplatUIX11.cs: 
28733           - Added drawing of window borders
28734           - Now properly calculates WM decorations offset for toplevel 
28735             windows (fixes bug #74763)
28736         * XplatUIWin32.cs: 
28737           - Implemented BorderStyles for windows (we're letting win32 draw 
28738             the border for us)
28739           - Fixed the signature for SetWindowLong
28740         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
28741           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
28742           setting borders
28743         * UpDownBase.cs: Remove drawing of borders, this is handled by
28744           the driver, outside the client area
28745         * ListView.cs: Removed bogus border calculations. The control should
28746           be oblivious to borders, since those are not part of the client
28747           area. 
28748         * X11DesktopColors.cs: Commented out (currently) unneeded variables
28749         * ThemeWin32Classic.cs: Removed border calculations from ListView 
28750           drawing code
28751
28752 2005-10-06  Jackson Harper  <jackson@ximian.com>
28753
28754         * MdiChildContext.cs: Clear out the old virtual position remove
28755         all the unneeded calls to CreateGraphics.
28756
28757 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
28758
28759         * TextControl.cs: Use proper color for highlighted text; fixes #76350
28760
28761 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
28762
28763         * Form.cs: 
28764           - Added loading and setting of our new default icon
28765           - Only set icon if window is already created
28766
28767 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
28768
28769         * Label.cs:
28770           - Do not explicitly set the foreground and background colors, to
28771             allow inheriting from parents (fixes #76302)
28772           - Use Control's InternalBorderStyle property to deal with borders
28773
28774 2005-10-06  Jackson Harper  <jackson@ximian.com>
28775
28776         * MdiChildContext.cs: Use the new xplatui function to draw a
28777         reversible rect.
28778
28779 2005-10-06  Jackson Harper  <jackson@ximian.com>
28780
28781         * Form.cs: Add the parent before creating the child context cause
28782         we need the parent when setting up the child.
28783
28784 2005-10-06  Jackson Harper  <jackson@ximian.com>
28785
28786         * FolderBrowserDialog.cs: redo the tree population code so a
28787         second thread isn't used. Should be a lot faster and more stable
28788         now.
28789
28790 2005-10-05  Jackson Harper  <jackson@ximian.com>
28791
28792         * TreeView.cs: There are no expand/collapse boxes if the node has
28793         no children.
28794
28795 2005-10-05  Jackson Harper  <jackson@ximian.com>
28796
28797         * X11DesktopColors.cs: Get menu colours for the gtk theme.
28798
28799 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
28800
28801         * FileDialog.cs: Fix InitialDirectory
28802
28803 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
28804
28805         * ComboBox.cs:
28806                 - Fixes changing between styles
28807                 - Fixes simple mode
28808                 - Fixes last item crashing when navigating with keyboard
28809
28810 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
28811
28812         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
28813
28814 2005-10-05  Jackson Harper  <jackson@ximian.com>
28815
28816         * TreeView.cs: If updating the root node do a full refresh.
28817         * TreeNode.cs: The root node should be expanded by default. Also
28818         added a utility prop to tell if we are the root node.
28819         * TreeNodeCollection.cs: Only refresh if the node we are being
28820         added to is expanded. Also added a comment on a potential
28821         optimization.
28822         
28823 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
28824
28825         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
28826           in dispose method. Fixes #76330
28827
28828 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
28829
28830         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
28831
28832                 - Implements vertical and horizontal scrolling using XplatUI
28833                 - Fixes keyboard navagation
28834                 - Fixes EnsureVisible
28835                 - Drawing fixes
28836                 - Handles and draws focus properly
28837
28838
28839 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
28840
28841         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
28842           Create handle. NET_2_0: Destroy handle when value is null.
28843
28844 2005-10-03  Jackson Harper  <jackson@ximian.com>
28845
28846         * ScrollBar.cs: My last scrollbar patch was broken. This is a
28847         revert and a new patch to prevent the thumb from refreshing so
28848         much.
28849
28850 2005-10-02  Jackson Harper  <jackson@ximian.com>
28851
28852         * ScrollBar.cs: Don't update position if it hasn't actually
28853         changed. This occurs when you hold down the increment/decrement
28854         buttons and the thumb gets to the max/min.
28855
28856 2005-10-01  Jackson Harper  <jackson@ximian.com>
28857
28858         * Form.cs:
28859         * MdiChildContext.cs:
28860         * MdiClient.cs: Implement ActiveMdiChild in Form.
28861
28862 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
28863
28864         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
28865
28866 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
28867
28868         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
28869           be found
28870
28871 2005-09-30  Jackson Harper  <jackson@ximian.com>
28872
28873         * ListBox.cs: Don't do a full refresh unless some data has
28874         actually changed.
28875
28876 2005-09-30  Jackson Harper  <jackson@ximian.com>
28877
28878         * TreeView.cs: Make sure that the checkboxes size is factored in
28879         even when not visible.
28880
28881 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
28882
28883         * FileDialog.cs: Fix Jordi's build break
28884
28885 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
28886
28887         * FileDialog.cs: 
28888                 - Use standard the Windows colours for the combobox as espected
28889                 - Dispose objects that use resouces when no longer need them
28890
28891 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
28892
28893         * X11DesktopColors.cs: Initial incomplete implementation
28894         * XplatUIX11.cs: Added call to initialize X11DesktopColors
28895
28896 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
28897
28898         * Theme.cs: 
28899           - Switched Theme color names to match the names defined in 
28900             System.Drawing.KnownColors. Life's hard enough, no need to make 
28901             it harder.
28902           - Added setters to all theme color properties so themes can set
28903             their color schemes. The setters also propagate the color changes
28904             to System.Drawing.KnownColors via reflection
28905         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
28906           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
28907           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
28908           use the new, more logical theme color names
28909         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
28910           post-NT colors
28911         * ThemeWin32Classic.cs:
28912           - Removed code to set the old classic Windows colors. Instead it
28913             now relies on the colors returned by System.Drawing.KnownColors
28914             which will be either modern static colors (Unix) or colors
28915             read from the user's configuration (Win32)
28916           - Updated to use the new, more logical theme color names
28917           - Switched DataGrid drawing code to use only Theme colors instead of
28918             a mix of System.Drawing.KnownColors and Theme colors
28919           - DrawFrameControl(): Removed code that fills the button area, the
28920             fill would overwrite any previous fill done by a control. This
28921             fixes bug #75338 
28922           - Added DrawReversibleRectangle() stub
28923         * ScrollableControl.cs: Set visible state to false when scrollbars
28924           are removed (pdn fix)
28925         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
28926           DrawReversibleRectangle() method to allow drawing primitive 
28927           'rubber bands'
28928         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
28929
28930 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28931
28932         * ImageList.cs: Add(Icon): Create handle.
28933
28934 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
28935
28936         * ListView.cs:
28937         * ThemeWin32Classic.cs:
28938                 - Fixes detail mode
28939                 - Sets clippings
28940                 - Issues with drawing
28941
28942 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28943
28944         * ImageList.cs: Moved RecreateHandle back to ImageList as event
28945           source has to be the ImageList.
28946
28947 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28948
28949         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
28950
28951 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28952
28953         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
28954
28955 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28956
28957         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
28958
28959 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
28960         * GridItem.cs: Fixed TODOs
28961         * GridItemCollection.cs: Added ICollection interface
28962
28963 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28964
28965         * ImageList.cs: Resize icons when needed.
28966
28967 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
28968
28969         * ListViewItem.cs
28970                 - Fixes GetBounds and returns on screen rects
28971         * ListView.cs:
28972                 - Fixes vertical and horzintal scrolling of items
28973         * ThemeWin32Classic.cs:
28974                 - Fixes drawing
28975                 
28976 2005-09-29  Raja R Harinath  <harinath@gmail.com>
28977
28978         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
28979
28980 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
28981
28982         * ImageList.cs: Added comments about handle creation. Moved Handle,
28983           HandleCreated and OnRecreateHandle implementations to ImageCollection.
28984           Handle is created in Add methods.
28985
28986 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
28987          
28988         * DataGridDrawingLogic.cs: 
28989                 - Takes rows into account on Colum calculations
28990                 - Returns the column when clickig
28991         * DataGrid.cs:
28992                 - Fixes default HitTestInfo values
28993                 - Fixes HitTestInfo.ToString
28994                 - Fixes ResetBackColor          
28995         
28996 2005-09-28  Jackson Harper  <jackson@ximian.com>
28997
28998         * MdiChildContext.cs: Obey rules for fixed sized windows (no
28999         sizing or cursor changes). Also added some temp code to draw the
29000         titlebars text (Makes dev a little easier).
29001
29002 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
29003
29004         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
29005
29006 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
29007          
29008         * ListBox.cs: Fixes bug 76253
29009
29010 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
29011
29012         * ImageList.cs: Added comments about the current implementation. Added
29013           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
29014           Format32bppArgb to preserve transparency and can use Graphics.FromImage
29015           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
29016           with Bitmap.LockBits for better performance. Revised the whole file to
29017           match MS.NET behaviour and provide better performance. Non-public
29018           interface members are calling public members even when they throw
29019           NotSupportedException for better maintainability. Moved ColorDepth,
29020           ImageSize, ImageStream and TransparentColor implementations to
29021           ImageCollection for better performance as these properties are not used
29022           by ImageList.
29023         * ImageListStreamer.cs: Added a new internal constructor that takes an
29024           ImageList.ImageCollection and serializes Images based on
29025           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
29026           match ImageList property name.
29027
29028 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
29029
29030         * ListBox.cs: Fixes IndexFromPoint for last item
29031
29032 2005-09-27  Jackson Harper  <jackson@ximian.com>
29033
29034         * Form.cs: Set the position of new mdi children correctly.
29035
29036 2005-09-27  Jackson Harper  <jackson@ximian.com>
29037
29038         * MdiClient.cs: New mdi children need to be added to the back of
29039         the controls collection so the zorder is set correctly. Also add a
29040         count of all the child windows that have been created.
29041
29042 2005-09-27  Jackson Harper  <jackson@ximian.com>
29043
29044         * Form.cs (CreateParams): Setup MDI forms correctly.
29045
29046 2005-09-27  Jackson Harper  <jackson@ximian.com>
29047
29048         * MdiChildContext.cs:
29049         * MonthCalendar.cs:
29050         * UpDownBase.cs:
29051         * ListBox.cs:
29052         * ListView.cs:
29053         * TextBoxBase.cs:
29054         * TreeView.cs:
29055         * ScrollableControl.cs:
29056         * ComboBox.cs: Add implicit controls using the new implict control
29057         functionality in ControlCollection. Also try to block multiple
29058         control add in a suspend/resume layout to save some cycles.
29059         
29060 2005-09-27  Jackson Harper  <jackson@ximian.com>
29061
29062         * Control.cs: Add functionality to the controls collection to add
29063         'implicit controls' these are controls that are created by the
29064         containing control but should not be exposed to the user. Such as
29065         scrollbars in the treeview.
29066         * Form.cs: The list var of the ControlsCollection is no longer
29067         available because of the potential of implicit controls getting
29068         ignored by someone accessing the list directly.
29069
29070 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
29071
29072         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
29073           loose it's parent. (Fixed bug introduced in r49103 when we added
29074           setting the child parent to null on Remove)
29075
29076 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
29077
29078         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
29079         * Splitter.cs: Added missing attributes for BorderStyle property.
29080         * TextBoxBase.cs: Marked Calculate* methods internal.
29081         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
29082         MS.NET.
29083
29084 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
29085          
29086         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
29087
29088 2005-09-25  Jackson Harper  <jackson@ximian.com>
29089
29090         * TreeView.cs: Update the node bounds correctly regardless of
29091         whether the node is visible.
29092
29093 2005-09-25  Jackson Harper  <jackson@ximian.com>
29094
29095         * ImageList.cs: Don't dispose the image after it is added to the
29096         image list. Only reformat images that need to be resized.
29097
29098 2005-09-25  Jackson Harper  <jackson@ximian.com>
29099
29100         * ImageList.cs: Don't set the format when changing the image.
29101
29102 2005-09-25  Jackson Harper  <jackson@ximian.com>
29103
29104         * TreeView.cs: We can't just assume the node has a font. Use the
29105         treeviews font if no node font is available.
29106
29107 2005-09-25  Jackson Harper  <jackson@ximian.com>
29108
29109         * TreeView.cs: Allow the scrollbars to be reset with negative
29110         values.
29111         - Don't add scrollbars to negative sized windows.
29112
29113 2005-09-23  Jackson Harper  <jackson@ximian.com>
29114
29115         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
29116         old Mono.Posix. Also remove some stray code that shouldn't have
29117         been committed.
29118
29119 2005-09-23  Jackson Harper  <jackson@ximian.com>
29120
29121         * TreeView.cs: Attempt at proper sizing of the horizontal
29122         scrollbar. Also don't resize the scrollbars unless they are
29123         visible.
29124
29125 2005-09-23  Jackson Harper  <jackson@ximian.com>
29126
29127         * TreeView.cs: We don't need to expand the invalid area when the
29128         selection changes, as this is all drawn in the node's bounding
29129         box. The area needs to be expanded (previous typo was contracting
29130         it) when the focus rect moves.
29131
29132 2005-09-23  Jackson Harper  <jackson@ximian.com>
29133
29134         * TreeView.cs: Display the selection box under the correct
29135         circumstances. We were rendering white text with no selection box
29136         before.
29137
29138 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
29139
29140         * TextControl.cs(Split): Now updates selection start/end if it points 
29141           into a line that's being split. Fixes a FIXME and bug #75258
29142
29143 2005-09-23  Jackson Harper  <jackson@ximian.com>
29144
29145         * Binding.cs:
29146         * ListControl.cs: Don't use the path when retrieving binding
29147         managers from the binding context. My bat sense tells me that the
29148         path is only used on insertion.
29149
29150 2005-09-22  Jackson Harper  <jackson@ximian.com>
29151
29152         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
29153
29154 2005-09-22  Jackson Harper  <jackson@ximian.com>
29155
29156         * Splitter.cs: There are special cursors used for splitting.
29157         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
29158
29159 2005-09-22  Jackson Harper  <jackson@ximian.com>
29160
29161         * Splitter.cs: Change the cursor appropriately when the splitter
29162         is moused over, so the user actually knows there is a splitter
29163         there.
29164
29165 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29166
29167        * Label.cs : Fix ToString method to give same output as MS.NET
29168
29169 2005-09-22  Jackson Harper  <jackson@ximian.com>
29170
29171         * TreeView.cs: Create the scrollbars when the handle is created
29172         and add them right away, just make them invisble. Also account for
29173         the window being shrunk vertically to the point that the vert
29174         scrollbar needs to be added.
29175         - Remove some 0.5 adjustments to get around anti aliasing issues.
29176         
29177 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
29178          
29179         * MainMenu.cs: Fixes default value
29180         * MenuItem.cs: Fixes default value
29181
29182 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
29183
29184         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
29185
29186 2005-09-21  Jackson Harper  <jackson@ximian.com>
29187
29188         * Control.cs: Don't try to set the border style on the window if
29189         it hasn't been created. When the window is created the border
29190         style will be used.
29191
29192 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
29193
29194         * Control.cs (Update): Don't call XplatUI if we don't have a
29195           window handle yet
29196
29197 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
29198
29199         * ContainerControl.cs: Instead of throwing an exception, print
29200           a one-time warning about Validate not being implemented
29201         * XplatUIWin32.cs: Removed debug output
29202
29203 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
29204
29205         * Control.cs: Only set XplatUI background if we expect the windowing
29206           system to handle the background. This stops controls that draw their
29207           own background from flickering
29208
29209         * XplatUIX11.cs: Support custom visuals and colormaps for window 
29210           creation. This allows, amongst other things, using MWF X11 windows 
29211           with OpenGL.
29212
29213 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
29214
29215         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
29216           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
29217           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
29218           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
29219           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
29220           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
29221           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
29222           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
29223           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
29224           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
29225           GridColumnStylesCollection.cs, 
29226           IDataGridColumnStyleEditingNotificationService.cs,
29227           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
29228           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
29229           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
29230           TreeNodeCollection.cs, AmbientProperties.cs, 
29231           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29232           DataObject.cs, ErrorProvider.cs, Splitter.cs,
29233           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
29234           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
29235           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
29236           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
29237           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
29238           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
29239           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
29240           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
29241           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
29242           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
29243           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
29244           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
29245           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
29246           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
29247           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
29248           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
29249           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
29250           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
29251           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
29252           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
29253           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
29254           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
29255           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
29256           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
29257           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
29258           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
29259           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
29260           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
29261           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
29262           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
29263           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
29264           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
29265           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
29266           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
29267           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
29268
29269 2005-09-21  Jackson Harper  <jackson@ximian.com>
29270
29271         * TreeNode.cs: Call Before/After Expand not Collapse when
29272         expanding.
29273
29274 2005-09-20  Jackson Harper  <jackson@ximian.com>
29275         
29276         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
29277
29278 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
29279          
29280         * ListViewItem.cs:
29281                 - Fixes bug 76120
29282                 - Fixes proper storing of subitems
29283                 - Fixes not updated items
29284
29285 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
29286
29287         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
29288           things if our window handle isn't created yet. Also disabled 
29289           debug for TextBoxBase
29290
29291 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
29292
29293         * MenuAPI.cs: Remove filtering of events to allow menu usage
29294
29295 2005-09-20  Miguel de Icaza  <miguel@novell.com>
29296
29297         * Cursor.cs: Allow null to be passed to Cursor.Current.
29298
29299 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
29300
29301         * ThemeWin32Classic.cs:
29302           - Change some private methods/fields to protected virtual so that 
29303             they can be accessed and overriden in derived classes
29304           - First refactoring of some methods. Derived themes now don't 
29305             need to duplicate the complete code from ThemeWin32Classic
29306         * ThemeNice.cs:
29307           - Added nice StatusBar
29308           - Derive from ThemeWin32Classic and not Theme
29309           - Removed duplicate ThemeWin32Classic code
29310
29311 2005-09-20  Miguel de Icaza  <miguel@novell.com>
29312
29313         * Control.cs (ControlCollection.Add): If the value null is passed
29314         the control is ignored. 
29315
29316         Optimize this loop.
29317
29318 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
29319
29320         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
29321           PostQuitMessage state.
29322         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
29323
29324 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
29325
29326         * Application.cs: Our constructor will never get called, move 
29327           initialization to fields; fixes bug #75933
29328
29329 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29330
29331         * FileDialog.cs :
29332                 - Allow files to be selected properly using file name
29333                 combo box.
29334                 - Add ability to change diretory (absolute / relative)
29335                 using file name combo box.
29336
29337 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
29338          
29339         * ListBox.cs: 
29340                 - Fixes Multicolumn listboxes item wrong calculations
29341                 - Allows to click when only one item is in the listbox
29342                 - Fixes crash when no items using keyboard navigation
29343
29344 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
29345
29346         * ComboBox.cs: Reverted almost everything from the latest patch which
29347           broke ComboBox
29348
29349 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
29350         
29351         * ToolTip.cs:
29352                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
29353         * ComboBox.cs:
29354                 - When DropDownStyle is Simple, it does not show scrollbar 
29355                 to the last item of the list.
29356                 - When DropDownStyle is Simple, it crashed when the list was 
29357                 scrolled down with the down cursor key.
29358                 - Fixed a bug that when DropDownStyle is DropDownList, the 
29359                 selected item was not shown.
29360                 - The position of the selected item was not preserved when 
29361                 the next dropdown happened.
29362         * ThemeWin32Classic.cs:
29363                 - Items were wrapped at the right end.
29364         * CheckedListBox.cs:
29365                 - Fixed Add method
29366         * ListBox.cs:
29367                 - Items should be fully shown.
29368                 - When resizing and vertical scrollbar disappeared, the item 
29369                 of index 0 should be on the top of the list.
29370                 - GetItemRectangle should consider the size of ver. scrollbar
29371         * StatusBar.cs:
29372                 - SizingGrip area should not be allocated when it is not 
29373                 displayed.
29374                 - Now it reflects MinWidth of the containing panel and 
29375                 fixed a crash that happens when its width becomes so small.
29376
29377 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
29378
29379         * CheckedListBox.cs: Fixes bug 76028
29380         * ListBox.cs: Fixes bug 76028
29381
29382 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
29383
29384         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
29385         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
29386
29387 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
29388
29389         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
29390
29391 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29392
29393         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
29394
29395 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29396
29397         * IRootGridEntry.cs: Added
29398         * PropertyGridCommands.cs: Added
29399         * PropertiesTab.cs: Added missing methods and property
29400         * PropertyGridView.cs: Made class internal
29401         * PropertyGridTextBox.cs: Made class internal
29402
29403 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29404
29405         * MimeIcon.cs: Try to check some other environment variables
29406           if "DESKTOP_SESSION" returns "default"
29407
29408 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29409
29410         * ThemeNice.cs: Corrected background colors (e.g. menus)
29411         * ColorDialog.cs: Use correct background colors for controls
29412
29413 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
29414
29415         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
29416
29417 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
29418
29419         * RichTextBox.cs: Added initial implementation
29420         * lang.cs: Removed. Was accidentally checked in long time ago
29421         * TODO: Removed. Contents were obsolete
29422
29423 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
29424                                                                                 
29425         * PropertiesTab.cs : Added
29426
29427 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
29428                                                                                 
29429         * PropertyGrid.cs : Update
29430         * PropertyGridView.cs : Update
29431         * System.Windows.Forms.resx : Added images and strings
29432
29433 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
29434
29435         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
29436  
29437 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
29438
29439         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
29440           a busy loop right after the Ungrab the X11 display is otherwise 
29441           blocked
29442
29443 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
29444
29445         * ThemeWin32Classic.cs: Optimise the use of clipping
29446
29447 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
29448
29449         * DataGrid.cs: fixes recursion bug
29450
29451 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
29452
29453         * ThemeNice.cs: 
29454           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
29455           - Cleanup
29456
29457 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
29458
29459         * ThemeNice.cs: Draw nice ProgressBars
29460
29461 2005-09-01  Miguel de Icaza  <miguel@novell.com>
29462
29463         * VScrollBar.cs: Another buglet found by Aaron's tool. 
29464
29465         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
29466         bug finder.
29467
29468 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
29469
29470         * ThemeNice.cs:
29471           - Added nicer menu drawing
29472           - Updated DrawTab
29473           - some refactoring
29474
29475 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
29476
29477         * CreateParams.cs (ToString): Made output match MS
29478         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
29479             handle is already created (to avoid forcing window creation)
29480         * XplatUIX11.cs: Set window text to caption after creating window,
29481           in case Text was set before window was created
29482         * Form.cs: Use this.Text instead of a static string as caption
29483
29484 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
29485
29486         * NotifyIcon.cs: Don't set the window to visible; this screws
29487           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
29488           OnPaint without a bitmap)
29489         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
29490           happen very often anyway; we could add the check to the WM_PAINT 
29491           event generation code
29492
29493 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
29494
29495         * NotifyIcon.cs: Fill the icon area with a background color, to 
29496           avoid 'residue' when transparent icons are drawn
29497         * XplatUIX11.cs:
29498           - Handle whole_window == client_window when destroying windows
29499           - SystrayAdd(): Set client_window to whole_window value to
29500             get mouse and other events passed to NotifyIcon
29501
29502 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
29503
29504         * Form.cs: Set proper default for Opacity property
29505         * NotifyIcon.cs:
29506           - ShowSystray(): Don't bother creating telling the OS
29507             about the systray item if no icon is provided
29508           - Now handles WM_NCPAINT message to deal with whole/client window
29509             split
29510           - Create window as visible to not get caught by Expose optimization
29511         * Hwnd.cs: Removed debug message
29512         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
29513           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
29514             PaintEventStart/End to use new client argument
29515         * TextBoxBase.cs:
29516           - Commented out debug messages
29517           - Switched PaintEventStart/End to use new client argument
29518         * XplatUI.cs: Added client window bool to PaintEventStart()/
29519           PaintEventEnd() calls, to support drawing in non-client areas
29520         * XplatUIDriver.cs: 
29521           - Added client window bool to PaintEventStart()/PaintEventEnd() 
29522             calls, to support drawing in non-client areas
29523           - Added conditional compile to allow using MWF BeginInvoke 
29524             on MS runtime
29525         * XplatUIX11.cs:
29526           - Added some conditional debug output
29527           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
29528             whole/client window split
29529           - Implemented handling of client argument to PaintEventStart()/End()
29530         * Control.cs:
29531           - Throw exception if BeginInvoke() is called and the window handle
29532             or one of the window's parent handles is not created
29533           - Added conditional compile to allow using MWF BeginInvoke on
29534             MS runtime
29535           - get_Parent(): Only sets parent if handle is created. This avoids
29536             forcing window handle creation when parent is set.
29537           - Now fires Layout and Parent changed events in proper order
29538           - Switched to use Handle instead of window.Handle for Z-Order setting,
29539             the get_Parent() patch above causes us to possibly get null for 'window'
29540           - Implemented handling of client argument to PaintEventStart()/End()
29541           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
29542             default handling)
29543           - Now sends a Refresh() to all child windows when Refresh() is called
29544
29545 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
29546
29547         * Form.cs: Added (non-functional) Opacity property
29548         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
29549
29550 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
29551         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
29552           use export MONO_THEME=nice to activate it.
29553           Currently supported controls:
29554           - Button
29555           - ComboBox
29556           - ScrollBar
29557           - TabControl (TabAlignment.Top only, other will follow)
29558         * ThemeEngine.cs: Add theme nice
29559         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
29560           if enabled
29561
29562 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
29563
29564         * Splitter.cs: Resize docked control and its neighbor.
29565
29566 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
29567         -- Making Windows with Menus layout correctly --
29568         * Form.cs : The first leg of the fix
29569                 Menu setter - adjust Client Size as needed to make space for the menu
29570                 SetClientSizeCore - doesn't call base version to be able to pass the 
29571                         menu handle to XplatUI.CalculateWindowRect
29572         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
29573         * XplatUIX11.cs: The critical second leg of the fix
29574                 GetWindowPos needs to use a recalculated client_rect
29575                 so that resizing the window doesn't break layout of child controls. 
29576                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
29577                 Lots of \t\n killed
29578
29579 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
29580
29581         * Label.cs: Now properly recalculates width and height on Font and Text
29582           changes if AutoSize is set
29583
29584 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
29585         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
29586
29587 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
29588
29589         * ImageList.cs: Makes ToString method compatible with MS
29590
29591 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
29592
29593         * MenuAPI.cs: fixes bug 75716
29594
29595 2005-08-11 Umadevi S <sumadevi@novell.com>
29596         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
29597
29598 2005-08-11 Umadevi S <sumadevi@novell.com>
29599         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
29600
29601 2005-08-10  Umadevi S <sumadevi@novell.com>
29602         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
29603
29604 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
29605
29606         * Menu.cs: fixes bug 75700
29607         * MenuAPI.cs: fixes navigation issues
29608
29609 2005-08-09  Umadevi S <sumadevi@novell.com>
29610         * CheckedListBox.cs - simple fix for GetItemChecked.
29611
29612 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
29613
29614         * ComboBox.cs: Serveral fixes
29615         * ListBox.cs: Serveral fixes
29616
29617 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
29618
29619         * ComboBox.cs: Fixes FindString methods and GetItemHeight
29620         * ListBox.cs: Fixes FindString methods
29621
29622 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
29623
29624         * DataGrid.cs: fixes bugs exposed by new tests
29625
29626 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
29627
29628         * Mime.cs: Compile Mono assembly references only if compiling
29629           with Mono (Allows to build with VS.Net again)
29630
29631 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
29632
29633         * Control.cs (PaintControlBackground): Draw background image
29634         corrrectly.
29635         (CheckForIllegalCrossThreadCalls): Stubbed.
29636         
29637         * Form.cs (OnCreateControl): Center when should be centered.
29638         
29639         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
29640
29641 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
29642
29643         * Binding.cs: Binding to properties should be case unsensitive
29644
29645 2005-07-18 vlindos@nucleusys.com
29646
29647         * DataGrid.cs: fixes setmember order
29648
29649 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
29650
29651         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
29652         * FileDialog.cs: FileDialog is now resizable and uses the new
29653           MimeIconEngine
29654
29655 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
29656
29657         * DataGridTextBoxColumn.cs: default value
29658         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
29659         * GridTableStylesCollection.cs: fixes checking MappingName
29660         * DataGridDrawingLogic.cs: fixes drawing logic issues
29661         * DataSourceHelper.cs: rewritten to make compatible with more data sources
29662         * DataGrid.cs: fixes    
29663
29664 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
29665
29666         * MimeGenerated.cs: Use case sensitive comparer for
29667           NameValueCollections
29668
29669 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
29670
29671         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
29672         * ThemeWin32Classic.cs: bug fixes, code refactoring
29673         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
29674         * DataGrid.cs: bug fixes, code refactoring
29675         * DataGridTextBox.cs: bug fixes, code refactoring
29676         * DataGridColumnStyle.cs:  bug fixes, code refactoring
29677         * Theme.cs:  bug fixes, code refactoring
29678
29679 2005-07-01  Peter Bartok  <pbartok@novell.com> 
29680
29681         * TextControl.cs: Quick fix for the reported crash on ColorDialog
29682           and other text box usage
29683
29684 2005-07-01  Jackson Harper  <jackson@ximian.com>
29685
29686         * TabControl.cs: Make sure the bottom of the tab covers the pages
29687         border.
29688
29689 2005-06-30  Peter Bartok  <pbartok@novell.com> 
29690
29691         * Form.cs (ShowDialog): Assign owner of the dialog
29692         * TextBoxBase.cs: Always refresh caret size when deleting, caret
29693           might have been moved to a tag with different height
29694
29695 2005-06-30  Jackson Harper  <jackson@ximian.com>
29696
29697         * Form.cs: Don't create an infinite loop when setting focus
29698         * MenuItem.cs: Don't dirty the parents if we don't have any
29699
29700 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
29701
29702         * LibSupport.cs: Rename
29703
29704 2005-06-29  Peter Bartok  <pbartok@novell.com>
29705
29706         * TextBoxBase.cs: Re-align caret after deleting a character
29707         * TextControl.cs:
29708           - DeleteChars(): Ensure that tag covers the provided position
29709           - StreamLine(): Drop reference for dropped tag
29710
29711 2005-06-29  Peter Bartok  <pbartok@novell.com> 
29712
29713         * TextControl.cs: 
29714           - Selections now work properly, anchoring at the initial location
29715             and properly extending in either direction (SetSelectionToCaret(),
29716             SetSelectionStart() and SetSelectionEnd())
29717           - No longer redraws the whole control on selection change, now
29718             calculates delta between previous and new selection and only
29719             invalidates/redraws that area
29720           - Fixed FindPos() math off-by-one errors
29721           - Changed DeleteChars() to verify the provided tag covers the
29722             provided position, selections may have a tag that doesn't cover
29723             the position if the selection is at a tag border
29724           - Fixed off-by-one errors in DeleteChars()
29725           - Added missing streamlining check in DeleteChars() to remove
29726             zero-length tags
29727           - Implemented Invalidate() method, now properly calculates exposures
29728             between two given lines/positions
29729           - Implemented SetSelection()
29730           - Obsoleted and removed FixupSelection()
29731           - Improved RecalculateDocument() logic, removing code duplication
29732
29733 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29734
29735         * LibSupport.cs: changes to match different input/output arguments.
29736
29737 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29738
29739         * LibSupport.cs: added libsupport.so init routine.
29740
29741 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
29742         
29743         * ControlBindingsCollection.cs
29744                 - Throws an exception on null datasource when adding
29745                 - Checks for duplicated bindings when adding
29746
29747 2005-06-28  Jackson Harper  <jackson@ximian.com>
29748
29749         * TreeView.cs (OnKeyDown): Support left and right properly
29750         (navigates as well as expanding and collapsing.
29751         - Add support for Multiply, this expands all the selected nodes
29752         children.
29753         - Fix some tabbing.
29754
29755 2005-06-28  Jackson Harper  <jackson@ximian.com>
29756
29757         * TreeView.cs: Implement keyboard navigation, currently supports,
29758         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
29759         support for toggling checkboxes with the space bar.
29760
29761 2005-06-28  Jackson Harper  <jackson@ximian.com>
29762
29763         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
29764         tree.
29765
29766 2005-06-28  Jackson Harper  <jackson@ximian.com>
29767
29768         * TreeView.cs: Add missing event.
29769
29770 2005-06-27  Peter Bartok  <pbartok@novell.com> 
29771
29772         * TextControl.cs:
29773           - Made line ending size configurable (now allows for counting 
29774             lineendings as \n or \r\n)
29775           - Added margin to viewport to keep caret visible on right side
29776           - Fixed translation routines for line/pos to documentpos to consider
29777             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
29778           - Fixed some line-endings to be unix style
29779           - Fixed Document.FormatText to perform it's calculations 1-based
29780           - Added descriptions for a few methods that might otherwise get 
29781             used wrong
29782           - Added NOTE section with some basic conventions to remember at 
29783             the top of the file
29784           - Major fixup for RichTextBox selection drawing:
29785             * Fixed crashes when multiple tags on a single line were selected
29786             * fixed selection box drawing not overlaying text
29787             * fixed bogus offset calculation for tags not starting at index 1
29788             * Switched behaviour from using multiple Substrings of a 
29789               StringBuilder.ToString() to using multiple 
29790               StringBuilder.ToString(start, length) statements, hoping this is
29791               faster (kept original version commented out in the code, in case
29792               original version was faster)
29793         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
29794           alignment != Left
29795         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
29796           call it as well
29797
29798 2005-06-27  Jackson Harper  <jackson@ximian.com>
29799
29800         * TabControl.cs: Move to the left and right with the arrow
29801         keys. These keys don't cycle beyond first and last like
29802         tab. Refresh all the tabs when scrolling them to the left or
29803         right.
29804
29805 2005-06-27  Jackson Harper  <jackson@ximian.com>
29806
29807         * TabControl.cs:
29808           - ToString: Added method
29809           - CreateParams: Remove TODO and comment
29810           - OnKeyDown: Cycle through bounds properly.
29811           - SelectedIndex: Scroll to the right or left if we need to
29812           display the newly selected tab.
29813
29814 2005-06-23  Jackson Harper  <jackson@ximian.com>
29815
29816         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
29817         set.
29818
29819 2005-06-23  Jackson Harper  <jackson@ximian.com>
29820
29821         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
29822         CTRL-SHIFT-TAB, and HOME, END are there any others?
29823
29824 2005-06-23  Jackson Harper  <jackson@ximian.com>
29825
29826         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
29827
29828 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
29829         
29830         * DataGridTextBoxColumn.cs: fixes and enhancements
29831         * ThemeWin32Classic.cs: fixes and enhancements
29832         * DataGridBoolColumn.cs:  fixes and enhancements
29833         * DataGridDrawingLogic.cs:  fixes and enhancements
29834         * CurrencyManager.cs: fixes and enhancements
29835         * DataGrid.cs: fixes and enhancements
29836         * DataGridColumnStyle.cs:  fixes and enhancements
29837
29838 2005-06-22  Jackson Harper  <jackson@ximian.com>
29839
29840         * TabControl.cs: Add some missing methods that just call into the
29841         base. Make the TabPageCollection's IList interface behave in the
29842         same manner as the MS implementation.
29843
29844 2005-06-22  Peter Bartok  <pbartok@novell.com> 
29845
29846         * TextControl.cs: Added sanity check
29847         * TextBoxBase.cs: 
29848           - Fixed wrapping behaviour, don't set wrap on single line controls
29849             (this fixes the breakage of colordialog introduced in an earlier
29850              checkin)
29851           - Added rudimentary support for autoscrolling right-aligned controls
29852             (still needs fixing, also, center alignment scroll is missing)
29853
29854 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
29855         
29856         * ScrollBar.cs: Fixes thumbpos on Maximum values
29857
29858 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
29859         
29860         * PropertyGridView.cs: Pass context information to UITypeEditors 
29861
29862 2005-06-21  Peter Bartok  <pbartok@novell.com> 
29863
29864         * TextBoxBase.cs:
29865           - Now calling PositionCaret with absolute space coordinates
29866           - Enabled vertical scrolling
29867           - Better tracking of scrollbar changes, tied into WidthChange
29868             event
29869           - Improved cursor tracking
29870           - Removed debug output
29871         * TextControl.cs:
29872           - PositionCaret coordinates are now works in absolute space, not 
29873             the canvas
29874           - Improved tracking of document size
29875           - Added events for width and height changes
29876
29877 2005-06-21  Peter Bartok  <pbartok@novell.com>
29878
29879         * Form.cs: Set focus to active control when form is activated
29880         * TextControl.cs: 
29881           - Added word-wrap functionality to RecalculateLine() 
29882           - Added some short function descriptions for VS.Net to aid in
29883             writing dependent controls
29884           - Added Caret property, returning the current coords of the caret
29885           - Added ViewPortWidth and ViewPortHeight properties
29886           - Added Wrap property
29887           - Added CaretMoved event
29888           - Removed some old debug code
29889           - Split() can now create soft splits
29890           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
29891           - Added method to format existing text
29892           - Fixed size/alignment calculations to use viewport
29893           - RecalculateDocument now can handle changing line-numbers while
29894             calculating lines
29895
29896         * TextBox.cs:
29897           - Added some wrap logic, we don't wrap if alignment is not left
29898           - Added casts for scrollbar var, base class switched types to
29899             also support RichTextBoxA
29900           - Implemented handling of scrollbar visibility flags
29901
29902         * TextBoxBase.cs:
29903           - Switched scrollbars type to RichTextBoxScrollBars to support
29904             RichTextBox
29905           - Added tracking of canvas width/height
29906           - Switched scrollbars to be not selectable (to keep focus on text)
29907           - Added central CalculateDocument() method to handle all redraw
29908             requirements
29909           - Added ReadOnly support
29910           - Added WordWrap support
29911           - Fixed handling of Enter key (we now treat it as a DialogKey)
29912           - Fixed caret positioning when h or v scroll is not zero
29913           - Fixed placing/generation of vertical scrollbar
29914           - Added CalculateScrollBars() method to allow updating scrollbar
29915             limits and visibility
29916           - Fixed handling of horizontal scroll
29917           - Added handling of vertical scroll
29918           - Implemented auto-'jump' when caret moves to close to a left or
29919             right border and there is text to be scrolled into view (currently
29920             there's the potential for a stack overflow, until a bug in
29921             scrollbar is fixed)
29922
29923 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
29924         
29925         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
29926
29927 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
29928
29929         * Mime.cs:
29930         - added inodes.
29931         - return application/x-zerosize for files with size zero
29932           (if no extension pattern matches).
29933         - check matches collection for strings too.
29934         - return only the first mime type if the name value
29935           collection has more than one mime type.
29936
29937 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
29938         
29939         * PropertyGrid.cs: Cleaned up some TODOs
29940         * PropertyGridView.cs: Added support for UITypeEditors
29941
29942 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
29943         
29944         * DataGrid.cs: clears cached value
29945
29946 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
29947
29948         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
29949         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
29950         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
29951         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
29952         
29953 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
29954
29955         * ThemeWin32Classic.cs: fixes colour
29956
29957 2005-06-15  Peter Bartok  <pbartok@novell.com>
29958
29959         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
29960         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
29961         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
29962         * Control.cs: Added some MWFCategory and MWFDescription attributes
29963         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
29964
29965 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
29966
29967         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
29968         usage
29969
29970 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
29971
29972         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
29973         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
29974         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
29975         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
29976         * DataGrid.cs: default datagrid settings for Default Styles, fixes
29977         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
29978
29979 2005-06-13  Jackson Harper  <jackson@ximian.com>
29980
29981         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
29982         isn't printed when the user enables dropping. (X11 does accept
29983         drops).
29984         
29985 2005-06-13  Jackson Harper  <jackson@ximian.com>
29986
29987         * TreeView.cs: Remove some TODOS.
29988
29989 2005-06-13  Jackson Harper  <jackson@ximian.com>
29990
29991         * Form.cs: Hook into the mdi framework.
29992         * MdiClient.cs: Use the base control collections add method so
29993         parents get setup correctly. Set the default back colour and dock
29994         style.
29995         * MdiChildContext.cs: New class, this bad actor handles an
29996         instance of an MDI window. Right now there is only basic
29997         support. You can drag, close, and resize windows. Minimize and
29998         Maximize are partially implemented.
29999
30000 2005-06-13  Jackson Harper  <jackson@ximian.com>
30001
30002         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
30003         freaky when both vals are negative. NOTE: There are probably other
30004         places in XplatUIX11 that this needs to be done.
30005
30006 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
30007
30008         * DataGrid.cs: implement missing methods, move KeyboardNavigation
30009         * DataGridColumnStyle.cs: fixes signature
30010
30011 2005-06-12  Jackson Harper  <jackson@ximian.com>
30012
30013         * XplatUIX11.cs: Use sizing cursors similar to the ones on
30014         windows.
30015
30016 2005-06-11  Jackson Harper  <jackson@ximian.com>
30017
30018         * StatusBarPanel.cs: Signature cleanups. Implement
30019         BeginInit/EndInit.
30020
30021 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
30022
30023         * DataGridTextBoxColumn.cs: Honors aligment
30024         * GridColumnStylesCollection.cs: Contains is case unsensitive
30025         * GridTableStylesCollection.cs: several fixes
30026         * DataGridTableStyle.cs: default column creation
30027         * DataGridDrawingLogic.cs: fixes
30028         * CurrencyManager.cs: ListName property
30029         * DataGrid.cs: multiple styles support
30030         * DataGridColumnStyle.cs: fixes
30031         
30032
30033 2005-06-10  Peter Bartok  <pbartok@novell.com>
30034
30035         * Control.cs(Select): Moved SetFocus call to avoid potential
30036           loops if controls change the active control when getting focus
30037         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
30038           the up/down buttons
30039
30040 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
30041
30042         * ImageListConverter.cs: Implemented
30043
30044 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
30045
30046         * MonthCalendar.cs: Wired in NumericUpDown control for year
30047
30048 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
30049
30050         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
30051           DoubleClick events, since they are not meant to be fired.
30052
30053 2005-06-09  Peter Bartok  <pbartok@novell.com>
30054
30055         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
30056           Jonathan's standalone controls into MWF, implemented missing
30057           events, attributes and methods; added xxxAccessible classes
30058         * AccessibleObject.cs: Made fields internal so other classes
30059           can change them if needed
30060
30061 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
30062
30063         * UpDownBase.cs: Complete implementation
30064         * NumericUpDown.cs: Complete implementation
30065         * DomainUpDown.cs: Complete implementation
30066
30067 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
30068
30069         * DataGridTextBoxColumn.cs: drawing fixes
30070         * DataGridCell.cs: fixes ToString method to match MSNet
30071         * DataGridTableStyle.cs: fixes
30072         * DataGridBoolColumn.cs: fixes, drawing
30073         * DataGridDrawingLogic.cs: fixes, new methods
30074         * DataGridTextBox.cs: Keyboard and fixes
30075         * DataGrid.cs:
30076                 - Keyboard navigation
30077                 - Scrolling fixes
30078                 - Row selection (single, multiple, deletion, etc)
30079                 - Lots of fixes
30080         
30081 2005-06-07  Jackson Harper  <jackson@ximian.com>
30082
30083         * ThemeWin32Classic.cs: Clear the background area when drawing
30084         buttons.
30085
30086 2005-06-06  Peter Bartok  <pbartok@novell.com>
30087
30088         * ImageListStreamer.cs: Fixed signature for GetData
30089         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
30090         * ComboBox.cs:
30091           - Added missing ChildAccessibleObject class
30092           - Added missing OnXXXFocus overrides, switched to using those
30093             instead of the event handler
30094         * Control.cs:
30095           - Added Parent property for ControlAccessibleObject
30096           - Fixed signatures
30097           - Fixed attributes
30098           - Added ResetBindings()
30099         * ListBindingConverter.cs: Implemented some methods
30100         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
30101         * ImageList.cs: Implemented basic handle scheme, removed TODOs
30102         * ContainerControl.cs: Fixed signature, now subscribing to the
30103           ControlRemoved event instead of overriding the handler, LAMESPEC
30104         * CurrencyManager.cs: Added missing attribute
30105         * MonthCalendar.cs: Added missing properties
30106
30107 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
30108
30109         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
30110         
30111 2005-06-06  Gaurav Vaish and Ankit Jain
30112
30113         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
30114         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
30115         
30116 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
30117
30118         * Control.cs: fixes CreateParams Width / Height.
30119
30120 2005-06-05  Peter Bartok  <pbartok@novell.com>
30121
30122         * Win32DnD.cs: Removed compilation warnings
30123
30124 2005-06-05  Peter Bartok  <pbartok@novell.com>
30125
30126         * Control.cs (CreateParams): Since we don't know if one of the
30127           properties we use is overridden, lets make sure if we fail accessing
30128           we continue with a backup plan
30129
30130 2005-06-05  Peter Bartok  <pbartok@novell.com>
30131
30132         * Win32DnD.cs:
30133           - Removed debug output
30134           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
30135             struct
30136           - Plugged resource leak
30137         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
30138           MS size
30139
30140 2005-06-05  Peter Bartok  <pbartok@novell.com>
30141
30142         * XplatUIWin32.cs: Removed DnD code
30143         * Win32DnD.cs: Implemented drop source and drop target functionality
30144
30145 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30146
30147         * UpDownBase.cs: remove duplicate addition of event, enable some code
30148         that was commented out.
30149         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
30150         Validate input when a key is pressed. It works fine now for every
30151         combination of Hexadecimal. Only missing some drawing love when sharing
30152         space with other controls.
30153
30154 2005-06-04  Peter Bartok  <pbartok@novell.com>
30155
30156         * Control.cs:
30157           - We need to pass a window for DragDrop, so enable callback events
30158           - Added DnD callback events when being a DragSource
30159         * XplatUI.cs (StartDrag): Added window handle argument
30160         * XplatUIDriver.cs (StartDrag): Added window handle argument
30161         * QueryContinueDragEventArgs: Made fields internally accessible so
30162           drivers can set them
30163         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
30164           can set them
30165
30166 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
30167
30168         * DataGridTextBoxColumn.cs: column text editing
30169         * DataGridTableStyle.cs: Respect columns styles created by the user
30170         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
30171         * DataGridBoolColumn.cs: bool column editing
30172         * DataGrid.cs: fixes to scrolling, properties, etc
30173         * DataGridTextBox.cs: handle keyboard
30174         * DataGridColumnStyle.cs: fixes
30175
30176 2005-06-02  Jackson Harper  <jackson@ximian.com>
30177
30178         * ImageListStreamer.cs: Somewhat broken implementation of
30179         GetObjectData. The RLE needs some work to match MS properly.
30180
30181 2005-06-02  Jackson Harper  <jackson@ximian.com>
30182
30183         * X11Dnd.cs: Attempting to keep at least one file in MWF
30184         monostyled.
30185
30186 2005-06-02  Peter Bartok  <pbartok@novell.com>
30187
30188         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
30189           that way
30190
30191 2005-06-02  Peter Bartok  <pbartok@novell.com>
30192
30193         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
30194         * XplatUI.cs: Added DoDragDrop() method
30195         * XplatUIDriver.cs: Added DoDragDrop() method
30196
30197 2005-06-02  Jackson Harper  <jackson@ximian.com>
30198
30199         * Splitter.cs: Implement BorderStyle.
30200
30201 2005-06-02  Jackson Harper  <jackson@ximian.com>
30202
30203         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
30204         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
30205         X11 using XDND.
30206
30207 2005-06-02  Peter Bartok  <pbartok@novell.com>
30208
30209         * DataObject.cs:
30210           - Added Data setter
30211           - Fixed broken insertion code for SetData, now also
30212             overwrites any existing entry of the same format name
30213         * Hwnd.cs: Added list of pointers that automatically gets
30214           freed when the window is disposed
30215         * XplatUI.cs: Call driver initialization method when loading
30216           a driver
30217         * Control.cs:
30218           - OnDragLeave takes EventArgs, not DragEventArgs
30219           - Added setting of WS_EX_ACCEPTFILES style when dropping is
30220             supported
30221           - Forces style update when drop state changes
30222         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
30223           not perfect since we cannot (yet) call the IDataObject.GetData()
30224           method, we keep getting 0x80004005 error, dunno why)
30225
30226 2005-06-02  Peter Bartok  <pbartok@novell.com>
30227
30228         * DragEventArgs.cs: Make fields internal so we can cache the
30229           object and re-set the fields from XplatUI
30230
30231 2005-06-02  Jackson Harper  <jackson@ximian.com>
30232
30233         * Control.cs: Add some internal methods so the DnD subsystem can
30234         raise DnD events. Also call into the driver when AllowDrop is set.
30235         * XplatUI.cs:
30236         * XplatUIDriver.cs: New method for setting whether or not a window
30237         is allowed to accept drag and drop messages.
30238                 
30239 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
30240         
30241         * ScrollBar.cs: Make sure that values sent in Scroll events
30242         are always between Maximum and Minimum.
30243
30244 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
30245
30246         * Menu.cs: Call MenuChanged when menuitem visibility has been
30247         changed.
30248         * MenuItem.cs: Rebuild menu when item is (not) visible.
30249         * MainMenu.cs: MainMenu has special MenuChanged.
30250         * Theme.cs: Caption and FrameBorderSize are not fixed.
30251         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
30252         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
30253         * XplatUIX11.cs,
30254         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
30255         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
30256
30257 2005-05-30  Jackson Harper  <jackson@ximian.com>
30258
30259         * DataFormat.cs: We can't statically initialize this stuff because
30260         it calls into the xplatui and could create a loop. So we lazy init
30261         it.
30262
30263 2005-05-28  Jackson Harper  <jackson@ximian.com>
30264
30265         * Control.cs: Proper implementation of Product(Name/Version).
30266
30267 2005-05-27  Jackson Harper  <jackson@ximian.com>
30268
30269         * DataObject.cs: Dont crash if no data is found.
30270
30271 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
30272         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
30273                 as per status page, guessing it should be set to true
30274
30275 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
30276
30277         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
30278         * DataGridTableStyle.cs: set proper formatting text, def header text
30279         * ThemeWin32Classic.cs: new themable paramaters
30280         * DataGridBoolColumn.cs: paint check box, get data, fixes
30281         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
30282         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
30283         * DataGridColumnStyle.cs: fixes
30284         * Theme.cs: new themable paramaters
30285                 
30286 2005-05-26  Peter Bartok  <pbartok@novell.com>
30287
30288         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
30289
30290 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30291         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
30292
30293 2005-05-24  Peter Bartok  <pbartok@novell.com>
30294
30295         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
30296           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
30297           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
30298           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
30299           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
30300           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
30301           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
30302           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
30303           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
30304           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
30305           missing attributes, etc
30306         * DataGridPreferredColumnWidthTypeConverter.cs: Added
30307
30308 2005-05-24  Peter Bartok  <pbartok@novell.com>
30309
30310         * Help.cs: Added, implemented trivial functions, throws up MessageBox
30311           when user tries to get help
30312         * DataObject.cs, DataFormats.cs, LinkArea.cs,
30313           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
30314           to suppress warnings
30315         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
30316           avoid unreachable code warning
30317
30318 2005-05-20  Peter Bartok  <pbartok@novell.com>
30319
30320         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
30321
30322 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30323
30324         * DataGridTextBoxColumn.cs: Basic painting methods
30325         * DataGridTableStyle.cs: Set table style in the column
30326         * ThemeWin32Classic.cs: Use Theme for colors
30327         * DataGridDrawingLogic.cs: Implement more drawing
30328         * DataGrid.cs: drawing, theming, enhacements, fixes
30329         * DataGridColumnStyle.cs: fixes, drawing
30330         * Theme.cs: theming for Datagrid
30331
30332 2005-05-20  Peter Bartok  <pbartok@novell.com>
30333
30334         * Cursor.cs: Implemented GetObjectData() method
30335
30336 2005-05-20  Peter Bartok  <pbartok@novell.com>
30337
30338         * Cursors.cs: Added setting of cursor name
30339         * Cursor.cs:
30340           - Implemented constructors
30341           - Implemented Draw and DrawStretched
30342           - Implemented Current property
30343           - Implemented == and != operators
30344           - Implemented Dispose()
30345           - Implemented ToString
30346           - Added missing attributes
30347         * XplatUIX11.cs:
30348           - Added missing reset for OverrideCursor when DoEvents is called
30349           - Fixed creation of cursor, logic was wrong
30350         * XplatUIWin32.cs:
30351           - Added missing reset for OverrideCursor when DoEvents is called
30352           - Fixed creation of cursor, bit arrays were swapped
30353         * Clipboard.cs: Removed obsolete MonoTODO attribute
30354
30355 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30356
30357         * ComboBox.cs: fixes OnSelectedItemChanged
30358         * ControlBindingsCollection.cs: fixes item range check
30359
30360 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
30361
30362         * UpDownBase.cs:
30363                 - Calc preferred height properly
30364                 - Implement missing properties
30365                 
30366         * NumericUpDown.cs: Implement missing events
30367
30368 2005-05-19  Jackson Harper  <jackson@ximian.com>
30369
30370         * TabControl.cs: New method that resizes the tab pages before
30371         redrawing them. This as needed as the control is double buffered
30372         and sizing will not be recalculated unless ResizeTabPages is
30373         called.
30374         * TabPage.cs: Set base.Text instead of Text in the constructor so
30375         that UpdateOwner does not get called. Use the new Redraw method of
30376         TabControl instead of Refresh so the sizing is recalculated.
30377         * ThemeWin32Classic.cs: Draw the text for button tabs.
30378
30379 2005-05-19  Jackson Harper  <jackson@ximian.com>
30380
30381         * Control.cs: Paint control background images. Fix typo where
30382         PaintControlBackground was not getting called correctly.
30383
30384 2005-05-19  Peter Bartok  <pbartok@novell.com>
30385
30386         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
30387           I can investigate, apparently I broke FileDialog
30388
30389 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
30390
30391         * AxHost.cs: Some simple properties.
30392         * Control.cs: window must be accessible after ctor.
30393         * Form.cs: Added TransparencyKey property.
30394         * TextBoxBase.cs: Implemented Clear. Text property can be null.
30395         * XplatUIWin32.cs: SetBorderStyle implemented.
30396
30397 2005-05-18  Peter Bartok  <pbartok@novell.com>
30398
30399         * DataObject.cs: Entries are not global but particular to the
30400           DataObject, now it behaves that way
30401         * XplatUIWin32.cs: Implemented Clipboard methods
30402         * Clipboard.cs: Implemented
30403         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
30404         * XplatUIOSX.cs: Updated to final clipboard prototypes
30405         * XplatUIX11.cs: Implemented Clipboard methods
30406         * XplatUIDriver.cs: Updated to final clipboard prototypes
30407         * XplatUIStructs.cs:
30408           - Added BITMAPINFOHEADER struct
30409           - Added ClipboardFormats enum
30410         * X11Structs.cs:
30411           - Added ClipboardStruct
30412           - Added Atom enum items for clipboard types
30413           - Fixed atom types for Selection event structures
30414         * DataFormats.cs:
30415           - Added internal properties and methods for drivers to enumerate
30416             all known formats
30417           - Switched initialization method to allow drivers to assign their
30418             own IDs even for the MS predefined clipboard IDs
30419         * XplatUI.cs: Updated to final clipboard interface
30420
30421 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30422         * PropertyGridView.cs: Fixed compiler warnings.
30423
30424 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30425         * PropertyGrid.cs: Added some event calls
30426         * PropertyGridView.cs: Change drawing code to use double buffering
30427         * PropertyGridTextBox.cs: Changed Text property name
30428         * GridItem.cs: Added Bounds property.
30429         * GridEntry.cs: Added Bounds property.
30430
30431 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
30432
30433         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
30434         since GetType() may not return the correct type if the object is
30435         a remoting proxy.
30436
30437 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
30438
30439         * TreeNodeCollection.cs: fixes get/set item ranges
30440         
30441 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
30442
30443         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
30444                 
30445 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
30446
30447         * ComboBox.cs: Fix item range comparation
30448         * ListView.cs: Fix item range comparation
30449
30450 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
30451
30452         * FontDialog.cs:
30453           - Clear example panel when OnPaint is called
30454           - Better solution for displaying the example panel text
30455           - Select default indexes in the ListBoxes
30456
30457 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
30458
30459         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
30460
30461 2005-05-11  Peter Bartok  <pbartok@novell.com>
30462
30463         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
30464         * SelectionRangeConverter.cs: Implemented
30465         * PropertyGrid.cs: Fixed attribute value
30466         * Control.cs:
30467           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
30468           - Added Sebastien Pouliot's CAS Stack Propagation fixes
30469         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
30470           that's common to all drivers. First methods to go there are
30471           Sebastien Pouliot's CAS Stack Propagation helper methods
30472         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
30473           Sebastien Pouliot for CAS Stack Propagation
30474
30475 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
30476
30477         * OSXStructs.cs:
30478           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
30479
30480 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
30481
30482         * DataGridTextBoxColumn.cs: fixed some members
30483         * GridColumnStylesCollection.cs: indexed column is case insensitive
30484         * DataGridTableStyle.cs: fixes
30485         * ThemeWin32Classic.cs: add new theme parameter
30486         * Theme.cs: add new theme parameter
30487         * DataGridDrawingLogic.cs: Datagrid's drawing logic
30488         * DataGrid.cs: fixes, new internal properties, etc.
30489         * DataGridColumnStyle.cs: allows to set grid value
30490         *
30491
30492 2005-05-10  Peter Bartok  <pbartok@novell.com>
30493
30494         * AccessibleObject.cs:
30495           - Removed MonoTODO attribute on help, method is correct
30496           - Fixed Bounds property
30497         * AxHost.cs: Moved MonoTODO
30498         * ButtonBase.cs: Now setting AccessibleObject properties
30499         * RadioButton.cs: Setting proper AccessibleObject role
30500         * CheckBox.cs: Setting proper AccessibleObject role
30501         * ControlBindingsCollection.cs: Added properties, methods and attributes
30502         * DataFormats.cs: Fixed awkward internal API, and changed to enable
30503           userdefined DataFormats.Format items as well
30504         * ListControl.cs: Removed data_member from the public eye
30505         * OpenFileDialog.cs:
30506           - Made class sealed
30507           - Added missing attributes
30508         * SaveFileDialog.cs: Added missing attributes
30509         * ImageListStreamer.cs: Fixed code that caused warnings
30510         * LinkLabel.cs: Removed unreachable code
30511         * TreeView.cs: Fixed code that caused warnings
30512         * PropertyGridView.cs: Fixed code that caused warnings
30513         * GridColumnStylesCollection.cs: Added missing attributes
30514         * GridTableStylesCollection: Added missing attribute
30515         * PropertyManager: Added .ctor
30516         * SecurityIDType: Added
30517         * DataObject.cs: Implemented class
30518         * LinkArea.cs: Added missing attribute
30519
30520 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
30521
30522         * RadioButton.cs: call base method to allow to fire OnClick event
30523         * UpDownBase.cs: OnMouseUp call base method
30524         * CheckedListBox.cs: call base method before returning
30525         * TrackBar.cs: call base method before returning
30526         
30527
30528 2005-05-10  Peter Bartok  <pbartok@novell.com>
30529
30530         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
30531           for messages
30532
30533 2005-05-10  Peter Bartok  <pbartok@novell.com>
30534
30535         * DataFormats.cs: Implemented
30536         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
30537           XplatUIX11.cs: Added Clipboard APIs
30538         * XplatUIWin32.cs: Implemented Clipboard APIs
30539         * FolderBrowserDialog.cs: Added missing event, attributes
30540
30541 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
30542
30543         * CheckBox.cs: call base method to allow to fire OnClick event
30544
30545 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
30546
30547         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
30548
30549 2005-05-06  Peter Bartok  <pbartok@novell.com>
30550
30551         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
30552         * Screen.cs: Implemented
30553         * HelpNavigator.cs: Added
30554         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
30555           property
30556         * HelpProvider.cs: Implemented all we can do until we have a CHM
30557           help library (which means that "What's This" does work now)
30558
30559 2005-05-06  Jackson Harper  <jackson@ximian.com>
30560
30561         * XplatUIX11.cs: Fix waking up the main loop.
30562                 
30563 2005-05-05  Peter Bartok  <pbartok@novell.com>
30564
30565         * XplatUI.cs: Updated revision
30566         * Form.cs: Removed enless loop
30567         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
30568         * Label.cs (OnPaint): Added call to base.OnPaint()
30569         * ToolTip.cs: Made ToolTipWindow reusable for other controls
30570         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
30571         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
30572         * AxHost.cs: Added
30573         * ButtonBase.cs: Moved base.OnPaint() call to end of method
30574         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
30575           to ToolTip.ToolTipWindow for drawing and size methods; this allows
30576           reuse of ToolTipWindow by other controls
30577         * SizeGrip.cs: Moved base.OnPaint() call to end of method
30578         * XplatUIX11.cs: Now clipping drawing area (experimental)
30579         * PictureBox.cs: Moved base.OnPaint() call to end of method
30580         * Theme.cs: Fixed ToolTip abstracts to match new format
30581         * ErrorProvider.cs: Implemented
30582
30583 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
30584
30585         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
30586         * LinkLabel.cs:
30587                 - Adds cursors
30588                 - Handles focus
30589                 - Implements LinkBehavior
30590                 - Fixes many issues
30591
30592 2005-05-03  Jackson Harper  <jackson@ximian.com>
30593
30594         * ListView.cs: Calculate the scrollbar positioning on resize and
30595         paint, so they get put in the correct place.
30596
30597 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
30598
30599         * ColorDialogs.cs: The small color panels are now handled by
30600           SmallColorControl. This fixes drawing of the focus rectangle
30601           and adds a 3D border.
30602
30603 2005-05-03  Peter Bartok  <pbartok@novell.com>
30604
30605         * Control.cs: Modified version of Jonathan Chamber's fix for
30606           double-buffering
30607
30608 2005-05-03  Jackson Harper  <jackson@ximian.com>
30609
30610         * ListView.cs: Remove redraw variable. Control now handles whether
30611         or not a redraw needs to be done, and will only raise the paint
30612         event if redrawing is needed.
30613
30614 2005-05-03  Jackson Harper  <jackson@ximian.com>
30615
30616         * Splitter.cs: No decorations for the splitter form. Cache the
30617         hatch brush.
30618
30619 2005-05-03  Jackson Harper  <jackson@ximian.com>
30620
30621         * TreeView.cs: Use dashed lines to connect nodes. Use the
30622         ControlPaint method for drawing the focus rect instead of doing
30623         that in treeview.
30624
30625 2005-05-02  Peter Bartok  <pbartok@novell.com>
30626
30627         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
30628
30629 2005-04-29  Jackson Harper  <jackson@ximian.com>
30630
30631         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
30632         entire image buffer. Just clear the clipping rectangle.
30633
30634 2005-04-29  Jackson Harper  <jackson@ximian.com>
30635
30636         * ThemeWin32Classic.cs: Don't draw list view items that are
30637         outside the clipping rectangle.
30638
30639 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
30640
30641         * ListBox.cs: added horizontal item scroll
30642
30643 2005-04-29  Jackson Harper  <jackson@ximian.com>
30644
30645         * ThemeWin32Classic.cs: Remove some old debug code that was
30646         causing flicker with the new double buffering code.
30647
30648 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
30649
30650         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
30651         behave like combobox and comboboxlist (still not sure if this is
30652         correct though).
30653
30654 2005-04-28  Jackson Harper  <jackson@ximian.com>
30655
30656         * ThemeWin32Classic.cs: Don't fill the middle of progress
30657         bars. This fills areas outside of the clip bounds that don't need
30658         to be filled.
30659
30660 2005-04-28  Jackson Harper  <jackson@ximian.com>
30661
30662         * Control.cs: Don't expose functionality to touch the image buffers.
30663         * ProgressBar.cs:
30664         * ListView.cs: We do not need to (and no longer can) manipulate
30665         the image buffers directly. All of this is handled by Control.
30666
30667 2005-04-28  Peter Bartok  <pbartok@novell.com>
30668
30669         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30670           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
30671           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
30672
30673 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
30674
30675         * Combobox:
30676                 - Adjust control's height for non-simple comboboxes (bug fix)
30677                 - Remove dead code
30678         * MenuAPI.cs: remove unused var
30679         * ScrollBar.cs: remove unsed var
30680                  
30681         * ListBox.cs: unselect items when clearing
30682
30683 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
30684
30685         * ListControl.cs: honors OnPositionChanged and default Selected Item
30686         * ListBox.cs: unselect items when clearing
30687
30688 2005-04-27  Jackson Harper  <jackson@ximian.com>
30689
30690         * X11Keyboard.cs: Initialize a default keyboard and give a warning
30691         if a "correct" keyboard is not found. This will make us not crash,
30692         but might give some users bad keyboard layouts...seems to be the
30693         same thing rewind does.
30694
30695 2005-04-27  Jackson Harper  <jackson@ximian.com>
30696
30697         * BindingManagerBase.cs: Attach the current/position changed
30698         handlers to their respective events.
30699
30700 2005-04-27  Jackson Harper  <jackson@ximian.com>
30701
30702         * Control.cs: Make sure that the first WM_PAINT does a full draw,
30703         not just a blit.
30704         * ThemeWin32Classic.cs: Don't fill the background for picture
30705         boxes. This could overright user drawing.
30706         * ComboBox.cs: Just fill the clipping rect not the entire client
30707         rect when drawing the background. This prevents pieces of the
30708         image buffer from getting overwritten and is theoretically faster.
30709
30710 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
30711
30712         * ComboBox.cs: Databinding support fixes, fire missing events
30713         * ListControl.cs: implement missing methods and properties, fixes
30714         * ThemeWin32Classic.cs: Databiding support on Drawing
30715         * CheckedListBox.cs: Databinding support fixes, fire missing events
30716         * ListBox.cs: Databinding support fixes, fire missing events
30717         
30718 2005-04-25  Peter Bartok  <pbartok@novell.com>
30719
30720         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
30721
30722 2005-04-25  Jackson Harper  <jackson@ximian.com>
30723
30724         * TreeView.cs: Use the horizontal scrollbars height not width when
30725         determining how much of the client area is available.
30726
30727 2005-04-25  Jackson Harper  <jackson@ximian.com>
30728
30729         * Control.cs: Double buffering is handled differently now. As per
30730         the spec, the extra buffer is created in the WM_PAINT message and
30731         passed down to the control's drawing code.
30732         * GroupBox.cs:
30733         * Label.cs:
30734         * CheckBox.cs:
30735         * ProgressBar.cs:
30736         * RadioButton.cs:
30737         * ColorDialog.cs:
30738         * ComboBox.cs:
30739         * PropertyGridView.cs:
30740         * UpDownBase.cs:
30741         * MessageBox.cs:
30742         * MenuAPI.cs:
30743         * ListView.cs:
30744         * ButtonBase.cs:
30745         * SizeGrip.cs:
30746         * ScrollBar.cs:
30747         * ListBox.cs:
30748         * TrackBar.cs:
30749         * ToolBar.cs:
30750         * PictureBox.cs:
30751         * DateTimePicker.cs:
30752         * StatusBar.cs:
30753         * TreeView.cs: Update to new double buffering system.
30754         * MonthCalendar.cs: Uncomment block, as Capture is now
30755         working. Update to new double buffering
30756         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
30757         * PaintEventArgs.cs: New internal method allows us to set the
30758         graphics object. This is used for double buffering.
30759         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
30760         rectangle. The internal paint_area var has been removed from
30761         StatusBar. The clipping rect should be used instead.
30762         * Theme.cs: Give the PictureBox drawing method a clipping rect.
30763         * TabPage.cs: The RefreshTabs method was removed, so just call the
30764         tab controls Refresh method now.
30765         * TabControl.cs: Update to new double buffering. Make sure the
30766         handle is created before sizing the tab pages, otherwise we will
30767         get stuck in a loop.
30768
30769 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
30770
30771         * LinkLabel.cs: Fix typo, bug #74719; patch
30772           from Borja Sanchez Zamorano
30773
30774 2005-04-22  Jackson Harper  <jackson@ximian.com>
30775
30776         * TreeNode.cs: Implement Handle stuff.
30777         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
30778
30779 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
30780
30781         * DataGridTextBoxColumn.cs: call base constructors, fixes
30782         * GridColumnStylesCollection.cs: missing events, methods, and functionality
30783         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
30784         * DataGridTableStyle.cs: implements create default column styles
30785         * DataGridBoolColumn.cs: which types can handle
30786         * DataGrid.cs: missing methods, fixes, new functionality
30787         * DataGridColumnStyle.cs: fixes
30788
30789 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
30790         * FolderBrowserDialog.cs:
30791         - Use a thread to fill the TreeView
30792         - Adjusted some sizes
30793
30794 2005-04-19  Peter Bartok  <pbartok@novell.com>
30795
30796         * LinkLabel.cs: (Re-)create the pieces when setting the Text
30797           property. Fixes #74360.
30798
30799 2005-04-19  Jackson Harper  <jackson@ximian.com>
30800
30801         * XEventQueue.cs: Lock when getting the lockqueue size.
30802         * PictureBox.cs: Call base OnPaint
30803         
30804 2005-04-19  Peter Bartok  <pbartok@novell.com>
30805
30806         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
30807           messages were no longer being processed (this broke BeginInvoke)
30808
30809           
30810 2005-04-18  Jackson Harper  <jackson@ximian.com>
30811
30812         * TreeView.cs: buglet that caused node images to get drawn
30813         regardless of whether or not they were in the clipping rectangle.
30814
30815 2005-04-18  Jackson Harper  <jackson@ximian.com>
30816
30817         * CurrencyManager.cs: There are four rules for GetItemProperties:
30818         - If the type is an array use the element type of the array
30819         - If the type is a typed list, use the type
30820         - If the list contains an Item property that is not an object, use
30821         that property
30822         - use the first element of the list if there are any elements in
30823         the list.
30824         
30825 2005-04-17  Jackson Harper  <jackson@ximian.oom>
30826
30827         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
30828         click. This handles offsets for scrolling properly and reduces
30829         memory. Also fixed GetNode to not offset now that TopNode works
30830         properly.
30831         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
30832         
30833 2005-04-17  Jackson Harper  <jackson@ximian.com>
30834
30835         * CursorConverter.cs: Initial implementation.
30836
30837 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
30838
30839         * ListControl.cs: work towards complex data binding support on ListControl
30840         * CurrencyManager.cs: work towards complex data binding support on ListControl
30841         * ListBox.cs: work towards complex data binding support on ListControl
30842
30843
30844 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
30845
30846         * GridTableStylesCollection.cs: fixes name and constructor
30847         * DataGridTableStyle.cs: fixes
30848         * DataGridBoolColumn.cs: fixes names and constructors
30849         * DataGrid.cs: define methods and properties. Some init implementations
30850         * DataGridCell.cs: define methods and properties. Some init implementations
30851         * GridTablesFactory.cs: Define methods and properties
30852
30853 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
30854
30855         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
30856         graphics port changes.  We still want the coordinates in global screen
30857         coordinates.
30858
30859 2005-04-14  Jackson Harper  <jackson@ximian.com>
30860
30861         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
30862         check plus minus or checkbox clicks unless those features are enabled.
30863
30864 2005-04-14  Jackson Harper  <jackson@ximian.com>
30865
30866         * TreeView.cs: Add methods for setting the top and bottom visible
30867         nodes. TreeNode::EnsureVisible uses these methods.
30868         * TreeNode.cs: Implement EnsureVisible
30869
30870 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
30871
30872         * Form.cs: Pospone menu assignation if the window has not been created yet
30873         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
30874         size and position
30875
30876 2005-04-12  Jackson Harper  <jackson@ximian.com>
30877
30878         * TreeView.cs: Set the TopNode properly when scrolling
30879         occurs. This has the added benifit of reducing the amount of
30880         walking that needs to be done when drawing. Also removed an old
30881         misleading TODO.
30882         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
30883         
30884 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
30885
30886         * Timer.cs: fixes interval setting when the timer is already enabled
30887         
30888 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
30889
30890         * FolderBrowserDialog.cs: First approach
30891
30892 2005-04-09  Peter Bartok  <pbartok@novell.com>
30893
30894         * FolderBrowserDialog: Added
30895
30896 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
30897
30898         * LinkLabel.cs: move drawing code into the theme
30899         * ThemeWin32Classic.cs: drawing code and painting background bugfix
30900         * Theme.cs: define DrawLinkLabel method
30901
30902 2005-04-05  Jackson Harper  <jackson@ximian.com>
30903
30904         * BindingContext.cs: Use weak references so these bad actors don't
30905         stay alive longer then they need to.
30906
30907 2005-04-05  Jackson Harper  <jackson@ximian.com>
30908
30909         * ListControl.cs: Basic implementation of complex databinding.
30910         * ComboBox.cs:
30911         * ListBox.cs: Add calls to ListControl databinding methods.
30912
30913 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
30914
30915         * FileDialog.cs:
30916           - Don't change PopupButtonState to Normal when the
30917             PopupButton gets pressed several times.
30918           - Renamed ButtonPanel to PopupButtonPanel
30919
30920 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
30921
30922         * ColorDialog.cs: Use cached objects instead of creating them
30923         * LinkLabel.cs: Use cached objects instead of creating them
30924         * Splitter.cs: Use cached objects instead of creating them
30925         * FontDialog.cs: Use cached objects instead of creating them
30926         * PropertyGridView.cs: Use cached objects instead of creating them
30927         * MessageBox.cs: Use cached objects instead of creating them
30928         * FileDialog.cs: Use cached objects instead of creating them
30929         * ThemeWin32Classic.cs: Use cached objects instead of creating them
30930         * TreeView.cs: Use cached objects instead of creating them
30931         
30932 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
30933
30934         * Control.cs: use Equals to compare the font since no == op
30935         * ScrollBar.cs: use Equals to compare the font since no == op
30936
30937 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
30938
30939         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
30940
30941 2005-04-01  Jackson Harper  <jackson@ximian.com>
30942
30943         * Binding.cs: Implement IsBinding.
30944         * BindingManagerBase.cs:
30945         * PropertyManager.cs:
30946         * CurrencyManager.cs: Add IsSuspended property.
30947
30948 2005-04-01  Jackson Harper  <jackson@ximian.com>
30949
30950         * Binding.cs: Had some IsAssignableFrom calls backwards.
30951
30952 2005-04-01  Jackson Harper  <jackson@ximian.com>
30953
30954         * Binding.cs: Handle null data members when pulling data.
30955         * PropertyManager.cs: Handle the data member being a property that
30956         does not exist.
30957
30958 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
30959
30960         * DataGridTextBoxColumn.cs: fixes signature
30961         * DataGrid.cs: calls right constructor
30962
30963 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
30964
30965         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
30966         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
30967         * GridTableStylesCollection.cs: implements GridTableStylesCollection
30968         * DataGridTableStyle.cs: implements DataGridTableStyle
30969         * DataGridBoolColumn.cs: implements DataGridBoolColumn
30970         * DataGridTextBox.cs: implements DataGridTextBox
30971         * DataGridColumnStyle.cs: implements DataGridColumnStyle
30972
30973 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
30974
30975         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
30976
30977 2005-03-29  Peter Bartok  <pbartok@novell.com>
30978
30979         * Application.cs:
30980           - Properly implemented CompanyName property
30981           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
30982             returns a path that includes CompanyName, ProductName and
30983             Version (fixes bug #70330)
30984
30985 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
30986
30987         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
30988           fixes bug #72588.
30989
30990 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
30991
30992         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
30993         
30994           - Added ReadOnly CheckBox
30995           - Further refactoring: moved some code from Open-/SaveFileDialog
30996             to FileDialog
30997
30998 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
30999
31000         * OpenFileDialog.cs: Fixed CheckFileExists
31001         * FileDialog.cs:
31002           Moved FileView and DirComboBox outside FileDialog class.
31003           They can now be used outside FileDialog
31004
31005 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
31006
31007         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
31008         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
31009
31010 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
31011
31012         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31013           - Added missing CreatePrompt property in SaveDialog
31014           - Overall SaveDialog handling should be better now
31015           - Added non standard ShowHiddenFiles property
31016           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
31017           - Added InitialDirectory and RestoreDirectory support
31018
31019 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
31020
31021         * FileDialog.cs: Made dirComboBox usable
31022
31023 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
31024
31025         * FileDialog.cs: Added Filter support (case sensitiv)
31026
31027 2005-03-24  Jackson Harper  <jackson@ximian.com>
31028
31029         * TabControl.cs: Need a couple more pixels for the lines.
31030
31031 2005-03-23  Jackson Harper  <jackson@ximian.com>
31032
31033         * TabControl.cs: Give the tab page focus when it is selected.
31034
31035 2005-03-23  Jackson Harper  <jackson@ximian.com>
31036
31037         * TabControl.cs: Account for the drawing of tabs borders when
31038         invalidating. If the slider was clicked dont do click detection on
31039         the tabs.
31040
31041 2005-03-23  Jackson Harper  <jackson@ximian.com>
31042
31043         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
31044
31045 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
31046
31047         * CategoryGridEntry.cs: Added
31048         * GridItem.cs: Added helper properties
31049         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
31050         * GridEntry.cs: Updated code for collection
31051         * PropertyGrid.cs: Cleaned up some formatting
31052         * PropertyGridView.cs: Added drop down functionality for enums.
31053         * GridItemCollection.cs: Added enumerator logic
31054         * PropertyGridEntry.cs: Added
31055
31056 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
31057
31058         * FileDialog.cs:
31059           - Removed unnecessary commented code
31060           - Fixed handling for entering the filename manually in the combobox
31061
31062 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
31063
31064         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
31065
31066 2005-03-18  Peter Bartok  <pbartok@novell.com>
31067
31068         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
31069           them being touching the border
31070
31071 2005-03-18  Peter Bartok  <pbartok@novell.com>
31072
31073         * TextControl.cs: Quick hack to center text better
31074
31075 2005-03-18  Peter Bartok  <pbartok@novell.com>
31076
31077         * ControlPaint.cs:
31078           - Don't throw NotImplemented exceptions, just print a notice once
31079             instead (requested by Miguel). This makes running existing SWF
31080             apps a bit easier
31081         * Control.cs:
31082           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
31083           - Added context menu trigger on right click
31084         * Panel.cs: Trigger invalidate on resize
31085         * StatusBar.cs:
31086           - Removed old double-buffer drawing
31087           - Added ResizeRedraw style to force proper update of statusbar
31088         * ListView.cs:
31089           - Removed debug output
31090         * ThemeWin32Classic.cs:
31091           - Fixed drawing of status bar, now draws Text property if there
31092             are no defined panels
31093
31094 2005-03-18  Jackson Harper  <jackson@ximian.com>
31095
31096         * ImageList.cs: When the image stream is set pull all the images
31097         from it.
31098         * ImageListStreamer.cs: Implement reading image list streams.
31099
31100 2005-03-18  Peter Bartok  <pbartok@novell.com>
31101
31102         * ThemeWin32Classic.cs (DrawPictureBox):
31103           - Fixed calculations for centered drawing
31104           - Fixed drawing for normal mode, not scaling the image on normal
31105
31106 2005-03-18  Peter Bartok  <pbartok@novell.com>
31107
31108         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
31109           textbox
31110         * FileDialog.cs:
31111           - Made Open/Save button the accept button for FileDialog
31112           - Tied the cancel button to the IButtonControl cancel button
31113           - Save/Open now properly builds the pathname
31114           - Now handles user-entered text
31115           - Preventing crash on right-click if no item is selected
31116           - Fixed Text property, now uses contents of textbox
31117           - Fixed SelectedText property, now just returns the text part that
31118             is selected in the text box
31119
31120 2005-03-18  Jackson Harper  <jackson@ximian.com>
31121
31122         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
31123         rect, make sure to de-adjust the interior rect after drawing the
31124         tab text.
31125
31126 2005-03-18  Peter Bartok  <pbartok@novell.com>
31127
31128         * MenuAPI.cs: Remove menu *before* executing selected action to
31129           prevent the menu from 'hanging around'
31130           
31131 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
31132
31133         * XplatUIOSX.cs: Implemented WorkingArea property
31134
31135 2005-03-17  Peter Bartok  <pbartok@novell.com>
31136
31137         * XplatUIX11.cs: Fixed menu coord calculations
31138         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
31139           for calculating offsets
31140
31141 2005-03-17  Peter Bartok  <pbartok@novell.com>
31142
31143         * Hwnd.cs: Do not consider menu presence for default client
31144           rectangle location/size
31145         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
31146           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
31147           translation functions
31148         * FileDialog.cs: Fixed (what I presume is a) typo
31149
31150 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
31151
31152         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
31153           X access (avoids X-Async errors)
31154
31155 2005-03-16  Jackson Harper  <jackson@ximian.com>
31156
31157         * TabControl.cs: Raise the SelectedIndexChanged event.
31158
31159 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
31160
31161         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31162           - Removed vertical ToolBar and replaced it with a custom panel
31163             (desktop and home button already work)
31164           - Added Help button (some controls get resized or relocated then)
31165           - Draw correct text depending on Open or Save.
31166           - Fixed some typos...
31167
31168 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
31169
31170         * ScrollBar.cs:
31171           - Only change Maximum and Minimum when need it (bug fix)
31172
31173 2005-03-15  Peter Bartok  <pbartok@novell.com>
31174
31175         * Form.cs: Use Handle for icon, to trigger creation if
31176           the window does not yet exist
31177         * Control.cs:
31178           - CanSelect: Slight performance improvement
31179           - Focus(): Preventing possible recursion
31180           - Invalidate(): Removed ControlStyle based clear flag setting
31181           - WM_PAINT: fixed logic for calling OnPaintBackground
31182           - WM_ERASEBKGND: Fixed logic, added call to new driver method
31183             EraseWindowBackground if the control doesn't paint background
31184         * XplatUIWin32.cs:
31185           - Moved EraseWindowBackground() method to internal methods
31186           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
31187             is sent via SendMessage on BeginPaint call on Win32
31188         * XplatUIX11.cs:
31189           - Added EraseWindowBackground() method
31190           - No longer sends WM_ERASEBKGND on .Expose, but on call to
31191             PaintEventStart, which more closely matches Win32 behaviour
31192           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
31193           - Fixed SetFocus() to properly deal with client and whole windows
31194         * Hwnd.cs: Added ErasePending property
31195         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
31196         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
31197
31198 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
31199
31200         * XplatUIOSX.cs:
31201           - Fix hard loop when timers exist.
31202           - Fix bugs with middle and right click for 3 button mice.
31203
31204 2005-03-11  Peter Bartok  <pbartok@novell.com>
31205
31206         * XplatUIX11.cs:
31207           - get_WorkingArea: Need to call X directly, GetWindowPos only
31208             returns cached data now
31209           - Added sanity check to GetWindowPos hwnd usage
31210
31211 2005-03-11  Jackson Harper  <jackson@ximian.com>
31212
31213         * BindingManagerBase.cs: This method isn't used anymore as
31214         PullData now updates the data in the control.
31215
31216 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
31217
31218         * Form.cs: fixes menu drawing on X11
31219         * MenuAPI.cs:  fixes menu drawing on X11
31220
31221 2005-03-11  Peter Bartok  <pbartok@novell.com>
31222
31223         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
31224           from Jonathan Gilbert; should fix bug #73606
31225         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
31226           in Screen coordinates. Thanks, Jordi.
31227         * Form.cs: Added missing attribute
31228
31229 2005-03-11  Peter Bartok  <pbartok@novell.com>
31230
31231         * Form.cs:
31232           - Rudimentary Mdi support
31233           - Removed outdated FormParent code
31234           - Implemented lots of missing properties and methods, still missing
31235             transparency support
31236           - Added missing attributes
31237           - Implemented support for MaximumBounds
31238           - Added firing of various events
31239         * XplatUI.cs: Added SetIcon() method
31240         * XplatUIDriver.cs: Added SetIcon() abstract
31241         * XplatUIOSX.cs: Stubbed out SetIcon() method
31242         * XplatUIX11.cs:
31243           - Implemented SetIcon() support
31244           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
31245           - Switched to unix line endings
31246         * XplatUIWin32.cs:
31247           - Made POINT internal so for can access it as part of MINMAX
31248           - Implemented SetIcon() support
31249           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
31250             native Mdi support again, might have to go managed)
31251         * Control.cs: Now fires the StyleChanged event
31252         * MdiClient.cs: Added; still mostly empty
31253
31254 2005-03-10  Peter Bartok  <pbartok@novell.com>
31255
31256         * SaveFileDialog.cs: Added emtpy file
31257
31258 2005-03-08  Peter Bartok  <pbartok@novell.com>
31259
31260         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
31261           in turn triggers OnCreateContro) when creating a handle for the
31262           first time.
31263         * TextControl.cs: Fixed endless loop in certain cases when
31264           replacing the current selection
31265
31266 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
31267
31268         * ScrollBar.cs:
31269           - Honors NewValue changes in Scroll events allowing apps to change it
31270           - Adds First and Last Scroll events
31271           - Fixes Thumb events
31272
31273 2005-03-07  Peter Bartok  <pbartok@novell.com>
31274
31275         * Hwnd.cs: Added DefaultClientRectangle property
31276         * XplatUI.cs: Now using the X11 driver Where() method, which provides
31277           more detailed debug information
31278         * XplatUIX11.cs:
31279           - Fixed size-change feedback loop, where we would pull an old size
31280             off the queue and mistakenly change our window's size to an
31281             earlier value
31282           - Now compressing ConfigureNotify events, to reduce looping and
31283             redraw issues
31284         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
31285           is called
31286
31287 2005-03-07  Jackson Harper  <jackson@ximian.com>
31288
31289         * Binding.cs: Push data pushes from data -> property. Check if the
31290         property is readonly when attempting to set it.
31291
31292 2005-03-07  Jackson Harper  <jackson@ximian.com>
31293
31294         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
31295         instead of IsSubclassOf. Pulling data now sets the value on the
31296         control.
31297         * PropertyManager.cs:
31298         * CurrencyManager.cs: Just need to pull data when updating now,
31299         because PullData will set the value on the control.
31300
31301 2005-03-04  Jackson Harper  <jackson@ximian.com>
31302
31303         * Binding.cs: Implement data type parsing and converting on pulled
31304         data. TODO: Are there more ways the data can be converted?
31305
31306 2005-03-04  Jackson Harper  <jackson@ximian.com>
31307
31308         * Binding.cs: Support <Property>IsNull checks. Also bind to the
31309         controls Validating method so we can repull the data when the
31310         control loses focus.
31311
31312 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
31313
31314         * ColumnHeader.cs:
31315           - Fixes null string format
31316           
31317         * ListView.cs:
31318           - Adds enum type checks
31319           - Fixes redrawing and recalc need after changing some properties
31320           - Fixes on focus_item set after the event
31321           - Fixes adding columns after the control has been created
31322           
31323         * ThemeWin32Classic.cs:
31324           - Fixes CheckBox focus rectangle
31325           - Fixes ColumnHeader drawing
31326
31327
31328 2005-03-03  Jackson Harper  <jackson@ximian.com>
31329
31330         * Binding.cs: Bind to <Property>Changed events so we can detect
31331         when properties are changed and update the data.
31332
31333 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
31334
31335         * ImageList.cs:
31336           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
31337           - Fixes ImageList constructor with ImageList container
31338           - Fixes image scaling (wrong parameters at DrawImage)
31339
31340 2005-02-02  Jackson Harper  <jackson@ximian.com>
31341
31342         * Binding.cs: Make property searches case-insensitive. Eliminate
31343         some duplicated code.
31344
31345 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
31346
31347         * ComboBox.cs:
31348                 - Handle focus event
31349                 - Fix scrollbar events
31350                 - Discard highlighted item if remove it
31351                 - Fixes SelectedItem with strings
31352
31353 2005-03-01  Peter Bartok  <pbartok@novell.com>
31354
31355         * Control.cs:
31356           - Fixed Visible property, now follows (once again) parent chain
31357             to return false if any control in the chain is visible=false
31358           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
31359           - Fixed several places where is_visible instead of Visible was used
31360           - Implemented FIXME related to focus selection when setting focused
31361             control to be invisible
31362
31363         * XplatUIWin32.cs: Now using proper method to find out if window is
31364           visible. Thanks to Jordi for pointing it out
31365
31366 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
31367
31368         * ComboBox.cs: show/hide scrollbar instead of creating it
31369
31370 2005-02-27  Jackson Harper  <jackson@ximian.com>
31371
31372         * CurrencyManager.cs: Add PositionChanged stuff.
31373
31374 2005-02-27  Peter Bartok  <pbartok@novell.com>
31375
31376         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
31377         * XplatUIOSX.cs: Added GetMenuOrigin() stub
31378         * XplatUIWin32.cs: Implemented GetMenuOrigin()
31379         * XplatUIX11.cs:
31380           - Implemented GetMenuDC()
31381           - Implemented GetMenuOrigin()
31382           - Implemented ReleaseMenuDC()
31383           - Implemented generation of WM_NCPAINT message
31384           - Implemented generation and handling of WM_NCCALCSIZE message
31385         * Form.cs: Added debug helper message for Jordi's menu work
31386         * Hwnd.cs:
31387           - Modified ClientRect property; added setter, fixed getter to handle
31388             setting of ClientRect
31389           - Added MenuOrigin property
31390
31391 2005-02-26  Peter Bartok  <pbartok@novell.com>
31392
31393         * XplatUIX11.cs:
31394           - Destroys the caret if a window that's being destroyed contains it
31395           - Ignores expose events coming from the X11 queue for windows that
31396             already are destroyed
31397           - Now uses the proper variable for handling DestroyNotify, before we
31398             marked the wrong window as destroyed
31399           - Improved/added some debug output
31400
31401 2005-02-26  Peter Bartok  <pbartok@novell.com>
31402
31403         * X11Keyboard.cs: Fixes to work on 64bit systems
31404
31405 2005-02-26  Peter Bartok  <pbartok@novell.com>
31406
31407         * Control.cs:
31408           - Now calling OnHandleDestroyed from DestroyHandle()
31409             instead of Dispose()
31410           - Removed bogus call to controls.Remove() from DestroyHandle()
31411
31412 2005-02-26  Peter Bartok  <pbartok@novell.com>
31413
31414         * Control.cs: Properly destroy child windows when our handle is
31415           destroyed
31416
31417 2005-02-25  Peter Bartok  <pbartok@novell.com>
31418
31419         * XplatUI.cs:
31420           - Added 'DriverDebug' define to allow tracing XplatUI API calls
31421           - Alphabetized Static Methods and Subclasses
31422
31423         * XplatUIX11.cs:
31424           - Added XException class to allow custom handling of X11 exceptions
31425           - Created custom X11 error handler, tied into XException class
31426           - Added support for MONO_XEXCEPTIONS env var to allow the user
31427             to either throw an exception on X errors or continue running
31428             after displaying the error
31429           - Added handling of DestroyNotify message
31430           - Added handler for CreateNotify message (still disabled)
31431           - Improved (tried to at least) Where method to provide file and lineno
31432         * X11Structs.cs:
31433           - Added XErrorHandler delegate
31434           - Added XRequest enumeration (to suppor translation of errors)
31435
31436 2005-02-25  Jackson Harper  <jackson@ximian.com>
31437
31438         * PropertyManager.cs: Implement editing features
31439         * CurrencyManager.cs:
31440         * Binding.cs: First attempt at UpdateIsBinding
31441         * BindingManagerBase.cs: Call UpdateIsBinding before
31442         pushing/pulling data.
31443
31444 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
31445
31446         * MenuAPI.cs: Respect disabled items
31447         * ThemeWin32Classic.cs
31448                 - Caches ImageAttributes creation for DrawImageDisabled
31449                 - Fixes vertical menu line drawing
31450                 - Draws disabled arrows in disable menu items
31451
31452 2005-02-24  Peter Bartok  <pbartok@novell.com>
31453
31454         * Hwnd.cs:
31455           - Added UserData property to allow associating arbitrary objects
31456             with the handle
31457           - Fixed leak; now removing Hwnd references from static windows array
31458         * XplatUIWin32.cs:
31459           - Fixed Graphics leak in PaintEventEnd
31460           - Removed usage of HandleData, switched over to Hwnd class
31461         * HandleData.cs: Removed, obsoleted by Hwnd.cs
31462
31463 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
31464
31465         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
31466         * ScrollBar.cs: Fixes bug
31467         * TrackBar.cs: removes death code, clipping, mimize refreshes,
31468          keyboard navigation enhancements
31469
31470 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
31471
31472         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
31473         * GroupBox.cs: Add control styles
31474         * Label.cs: Add control styles
31475         * UpDownBase.cs: Add control styles
31476         * ListBox.cs: Add control styles
31477         * XplatUIWin32.cs: Fixes wrong parameter order
31478
31479
31480 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
31481
31482         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
31483
31484 2005-02-23  Jackson Harper  <jackson@ximian.com>
31485
31486         * PropertyManager.cs: Implement property binding. This doesn't
31487         seem to work yet though as (I think) there are some bugs in
31488         System.ComponentModel.PropertyDescriptor.
31489         * BindingContext.cs: Use new PropertyManager constructor.
31490
31491 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
31492
31493         * ProgressBar.cs: use clip region in ProgressBar
31494         * ThemeWin32Classic.cs: use clip region in ProgressBar
31495
31496 2004-02-22  Jackson Harper  <jackson@ximian.com>
31497
31498         * BindingsCollection.cs: Remove some debug code.
31499
31500 2005-02-22  Jackson Harper  <jackson@ximian.com>
31501
31502         * BindingContext.cs:
31503         * ControlBindingsCollection.cs:
31504         * CurrencyManager.cs:
31505         * Binding.cs:
31506         * BindingManagerBase.cs: Initial implementation
31507         * BindingsCollection.cs: Add an internal contains method that the
31508         BindingManagerBase uses to ensure bindings aren't added twice to
31509         the collection.
31510         * PropertyManager.cs: Stubbed out.
31511         * Control.cs:
31512         * ContainerControl.cs: Hook up databinding
31513         
31514 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
31515
31516         * XplatUIOSX.cs:
31517           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
31518           Fixed Invalidate/Update chain.
31519           Fixed tons of other minor bugs (this is almost a complete rewrite).
31520
31521 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
31522
31523         * ComboBox.cs: do subcontrol creation when the control is created
31524
31525 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
31526
31527         * Label.cs: fixes image drawing (image and imagelist)
31528         * ThemeWin32Classic.cs: cache brushes
31529         
31530 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
31531
31532         * Form.cs: Move menu drawing code to Theme class
31533         * ComboBox.cs: Move ComboBox drawing code to Theme class
31534         * MenuItem.cs: Move menu drawing code to Theme class
31535         * MenuAPI.cs: Move menu drawing code to Theme class
31536         * ThemeWin32Classic.cs: New methods
31537         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
31538         * ListBox.cs: Move Listbox drawing code to Theme class
31539         * Theme.cs: New methods
31540
31541 2005-02-20  Peter Bartok  <pbartok@novell.com>
31542
31543         * Control.cs:
31544           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
31545             only process mnemonics on those)
31546           - Fixed event sequence for key handling; first calling
31547             ProcessKeyEventArgs now
31548         * TextBoxBase.cs:
31549           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
31550             for processing non-character keys
31551           - Fixed WM_CHAR to generate proper event sequence before processing
31552         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
31553           generation
31554
31555 2005-02-19  Peter Bartok  <pbartok@novell.com>
31556
31557         * UserControl.cs: Added TextChanged event; added attributes
31558         * SizeGrip.cs: Implemented resizing and optional display of grip
31559         * Form.cs: Fixed attribute
31560         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31561           Changed meaning of ScrollWindow bool argument; instead of the
31562           clear attribute (which will be true usually anyway), it gives the
31563           option of moving child controls as well.
31564         * XplatUIX11.cs:
31565           - Changed to match new ScrollWindow argument
31566           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
31567             now handles the implicit parent window a WM puts around us
31568         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
31569           to work)
31570         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
31571         * TreeView.cs: Adjusted to new ScrollWindow arguments
31572
31573 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
31574
31575         * Form.cs: Menu integration with non-client area
31576         * MenuItem.cs: Menu integration with non-client area
31577         * MenuAPI.cs: Menu integration with non-client area
31578
31579 2005-02-18  Peter Bartok  <pbartok@novell.com>
31580
31581         * MethodInvoker.cs: Added
31582         * MdiLayout.cs: Added
31583         * SendKeys.cs: Started implementation
31584         * ErrorIconAlignment.cs: Added
31585
31586 2005-02-18  Peter Bartok  <pbartok@novell.com>
31587
31588         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
31589         * Form.cs: Added handling for Menu-related Non-client messages
31590
31591 2005-02-17  Peter Bartok  <pbartok@novell.com>
31592
31593         * UpDownBase.cs: Fixed typo, compilation errors
31594         * DomainUpDown.cs: Fixed attribute value
31595
31596 2005-02-16  Miguel de Icaza  <miguel@novell.com>
31597
31598         * UpDownBase.cs: Attach entry events.
31599         Propagate events.
31600         Add ForeColor property, Focused, InterceptArrowKeys (interception
31601         does not work yet).
31602
31603 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
31604
31605         * Form.cs:
31606                 - Redraw non client are on Setmenu
31607                 - Calc proper menu starting point
31608
31609 2005-02-17  Peter Bartok  <pbartok@novell.com>
31610
31611         * Application.cs: Fixed message_filter check
31612
31613 2005-02-17  Peter Bartok  <pbartok@novell.com>
31614
31615         * Application.cs: Now calls registered message filters
31616         * DockStyle.cs: Fixed attribute
31617         * Form.cs: Fixed attribute
31618         * Menu.cs: Fixed attribute
31619         * ToolTip.cs: Fixed attribute
31620         * TreeNode.cs: Added missing attributes and arranged in regions
31621         * PropertyGrid.cs: Fixed signatures
31622         * TreeNodeCollection.cs: Added attributes
31623         * Splitter.cs: Added missing attributes; arranged into regions
31624         * TabPage.cs: Added missing attributes; arranged into regions
31625         * TextBoxBase.cs: Added missing attributes
31626         * TextBox.cs: Added missing attributes
31627         * ArrangeDirection.cs: Added missing attributes
31628         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
31629         * ToolBarButton.cs: Fixed attributes
31630         * AnchorStyles.cs: Fixed attribute
31631         * TrackBar.cs: Fixed attributes
31632         * TabControl.cs: Added missing attributes and arranged into regions
31633         * ToolBar.cs: Fixed attribute
31634         * StatusBar.cs: Fixed signature, organized into regions and added
31635           attributes
31636         * StatusBarPanel.cs: Fixed attributes
31637         * ContentsResizedEventArgs.cs: Implemented
31638         * ContentsResizedEventHandler.cs: Implemented
31639         * DateBoldEventArgs.cs: Implemented
31640         * DateBoldEventHandler.cs: Implemented
31641         * UpDownEventArgs.cs: Implemented
31642         * UpDownEventHandler.cs: Implemented
31643         
31644 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
31645
31646         * Form.cs: first Menu NC refactoring
31647         * MenuAPI.cs: first Menu NC refactoring
31648         
31649 2005-02-16  Peter Bartok  <pbartok@novell.com>
31650
31651         * ImeMode.cs: Added missing attributes
31652         * Menu.cs: Fixed attribute
31653         * GroupBox.cs: Fixed attribute
31654         * Label.cs: Fixed attribute
31655         * ColorDialog.cs (RunDialog): Removed TODO attribute
31656         * ComboBox.cs: Fixed attributes
31657         * ListControl.cs: Added missing attributes
31658         * PropertyGrid.cs: Fixed attributes
31659         * Control.cs: Fixed attributes
31660         * ListViewItem.cs: Added TypeConverter attribute
31661         * NotifyIcon.cs: Fixed attributes
31662         * ListView.cs: Fixed attributes
31663         * ButtonBase.cs: Fixed attribute
31664         * ImageList.cs: Added missing attributes
31665         * ContainerControl.cs: Fixed signature
31666         * CheckedListBox.cs: Fixed attribute; added missing attributes
31667         * Panel.cs: Fixed attributes
31668         * PropertyTabChangedEventArgs.cs: Added missing attribute
31669         * PropertyValueChangedEventArgs.cs: Added missing attribute
31670         * Binding.cs: Fixed attribute
31671         * ListViewItemConverter: Implemented ListViewSubItemConverter class
31672         * ListBox.cs: Fixed attribute; added missing attributes;
31673         * ScrollableControl.cs: Added missing attributes
31674         * PictureBox.cs: Added missing attributes; implemented missing property
31675         * DateTimePicker.cs: Added missing attributes
31676         * Theme.cs (ToolWindowCaptionHeight): Fixed type
31677         * MonthCalendar.cs: Fixed attributes
31678         * StatusBarPanel.cs: Added missing attributes
31679         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
31680
31681 2005-02-16  Peter Bartok  <pbartok@novell.com>
31682
31683         * TextBoxBase.cs: The previous method to enforce height yet remember
31684           the requested high was less than ideal, this is an attempt to do
31685           it better.
31686         * Control.cs: Added comment about possible problem
31687         * Copyright: Updated format
31688         * GridItemType.cs: Fixed swapped values
31689
31690 2005-02-15  Jackson Harper  <jackson@ximian.com>
31691
31692         * BaseCollection.cs: Use property so we never access an
31693         uninitialized list. Also initialize the list in the property.
31694
31695 2005-02-15  Peter Bartok  <pbartok@novell.com>
31696
31697         * GroupBox.cs (ProcessMnemonic): Implemented
31698         * Label.cs (ProcessMnemonic): Implemented
31699         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
31700           hotkeys
31701
31702 2005-02-15  Peter Bartok  <pbartok@novell.com>
31703
31704         * RadioButton.cs (ProcessMnemonic): Implemented
31705         * CheckBox.cs (ProcessMnemonic): Implemented
31706         * Control.cs:
31707           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
31708             handling
31709           - Added internal method to allow calling ProcessMnemonic from other
31710             controls
31711         * ContainerControl.cs:
31712           - Started support for handling validation chain handling
31713           - Implemented ProcessMnemonic support
31714           - Added Select() call to Active, to make sure the active control
31715             receives focus
31716         * Form.cs: Setting toplevel flag for Forms (this was lost in the
31717           FormParent rewrite)
31718         * ThemeWin32Classic.cs:
31719           - DrawCheckBox(): Fixed stringformat to show hotkeys
31720           - DrawRadioButton(): Fixed stringformat to show hotkeys
31721         * CommonDialog.cs: Removed WndProc override, not needed
31722
31723 2005-02-14  Peter Bartok  <pbartok@novell.com>
31724
31725         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
31726           missed those in the rewrite
31727
31728 2005-02-14  Miguel de Icaza  <miguel@novell.com>
31729
31730         * NumericUpDown.cs (Increment, ToString): Add.
31731         (DecimalPlaces): implement.
31732         
31733         Add attributes.
31734         
31735         * UpDownBase.cs: Add the designer attributes.
31736
31737 2005-02-13  Peter Bartok  <pbartok@novell.com>
31738
31739         * Panel.cs: Removed border_style, now in Control
31740         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
31741           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
31742
31743 2005-02-13  Peter Bartok  <pbartok@novell.com>
31744
31745         * MouseButtons.cs: Added missing attributes
31746         * XplatUIStructs.cs: Added enumeration for title styles
31747         * LeftRightAlignment.cs: Added missing attributes
31748         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
31749           it compatible with Graphics.FromHwnd()
31750         * SelectedGridItemChangedEventArgs.cs: Fixed property type
31751         * Keys.cs: Added missing attributes
31752         * SelectionRange.cs: Added missing attributes
31753         * SelectionRangeConverter.cs: Added
31754         * XplatUI.cs:
31755           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
31756             ReleaseMenuDC methods
31757           - Renamed ReleaseWindow to UngrabWindow
31758           - Added proper startup notice to allow version identification
31759         * Form.cs:
31760           - Added missing attributes
31761           - Removed FormParent concept
31762         * Label.cs: Removed border_style field, now in Control
31763         * RadioButton.cs: Now properly selects RadioButton when focus is
31764           received
31765         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
31766         * Control.cs:
31767           - Added missing attributes
31768           - Added borderstyle handling
31769           - Removed FormParent concept support
31770           - Fixed calls to XplatUI to match changed APIs
31771           - Fixed bug that would case us to use disposed Graphics objects
31772           - Removed unneeded internal methods
31773           - PerformLayout(): Fixed to handle DockStyle.Fill properly
31774           - SelectNextControl(): Fixed to properly check common parents
31775         * TextBoxBase.cs: Removed border_style field (now in Control)
31776         * MessageBox.cs:
31777           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
31778             fixed calculations for form size
31779           - Added support for localized strings and icons
31780           - Improved form size calculations, added border
31781         * ListView.cs: Removed border_style field (now in Control)
31782         * X11Structs.cs: Moved several structs from X11 driver here
31783         * X11Keyboard.cs: Changed debug message
31784         * Application.cs: Removed FormParent concept support
31785         * CommonDialog.cs:
31786           - Resetting end_modal flag
31787           - Removed FormParent concept support
31788         * NativeWindow.cs: Removed FormParent concept support
31789         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
31790           Client area and Non-Client whole window to allow support for WM_NC
31791           messages
31792         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
31793           prevent using it until it supports Hwnd as per Geoff Norton's request
31794         * ToolBar.cs: Fixed drawing, was not doing proper drawing
31795         * PictureBox.cs: Removed border_style field, now in Control
31796         * XplatUIWin32.cs: Added new driver methods
31797
31798 2005-02-12  Peter Bartok  <pbartok@novell.com>
31799
31800         * OpacityConverter.cs: Implemented
31801         * Hwnd.cs: Internal class to support drivers that need to emulate
31802           client area/non-client area window behaviour
31803
31804 2005-02-11  Peter Bartok  <pbartok@novell.com>
31805
31806         * KeysConverter.cs: Implemented
31807
31808 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
31809
31810         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
31811         * LinkLabel: Added missing attributes
31812         * MainMenu.cs: fixes ToString
31813         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
31814         * ListBox.cs: fixes event position
31815         * TrackBar.cs: adds missing attributes and events
31816         
31817 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
31818
31819         * MenuItem.cs: Use SystemInformation and bug fixes
31820         * MenuAPI.cs: Use SystemInformation and bug fixes
31821
31822 2005-02-09  Jackson Harper  <jackson@ximian.com>
31823
31824         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
31825         their keystate otherwise things like VK_MENU get stuck "on".
31826
31827 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
31828
31829         * ListBox.cs: Fixes AddRange bug
31830         
31831 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
31832
31833         * ProgressBar.cs
31834                 - Add missing attributes
31835                 - Add missing method
31836                 
31837         * CheckedListBox.cs: Added missing attributes
31838                 - Add missing attributes
31839                 - Remove extra method
31840         
31841         * ComboBox.cs: Added missing attributes
31842         * VScrollBar.cs: Added missing attributes
31843         * ScrollBar.cs:  Added missing attributes
31844         * ListBox.cs: Fixes signature, add missing consts
31845         * LinkArea.cs:   Added missing attributes
31846         
31847
31848 2005-02-08  Peter Bartok  <pbartok@novell.com>
31849
31850         * Menu.cs: Added missing attributes
31851         * MainMenu.cs: Added missing attributes
31852         * GroupBox.cs: Added missing attributes
31853         * Label.cs: Added missing attributes
31854         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
31855         * ColorDialog.cs:
31856           - Added Instance and Options properties
31857           - Added missing attributes
31858         * Cursor.cs: Made Serializable
31859         * NotifyIcon: Added missing attributes
31860         * MenuItem.cs: Added missing attributes
31861         * TextBoxBase.cs: Implemented AppendText() and Select() methods
31862         * Panel.cs: Added Missing attributes
31863         * MonthCalendar.cs: Fixed CreateParams
31864
31865 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
31866         
31867         * LinkLabel.cs:
31868                 - Fixes signature
31869                 - Fixes issues with links
31870                 - Adds the class attributes
31871
31872 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
31873         
31874         * ComboBox.cs:
31875                 - Fixes button when no items available in dropdown
31876                 - Fixes repainting problems
31877                 - Adds the class attributes
31878                 
31879 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
31880
31881         * XplatUIOSX.cs: Detect the menu bar and title bar height from
31882         the current theme.  Cache these on startup.
31883
31884 2005-02-07  Jackson Harper  <jackson@ximian.com>
31885
31886         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
31887         the scrollbar buttons when they are depressed.
31888
31889 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
31890
31891         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
31892         Get the display size from the main displayid.  We currently dont
31893         support multiple display configurations.
31894
31895 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
31896
31897         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
31898
31899 2005-02-07  Miguel de Icaza  <miguel@novell.com>
31900
31901         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
31902
31903 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
31904
31905         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
31906
31907 2005-02-04  Jackson Harper  <jackson@ximian.com>
31908
31909         * ThemeWin32Classic.cs: Respect the clipping rect when
31910         drawing. Only fill the intersection of clips and rects so there
31911         isn't a lot of large fills.
31912         * ScrollBar.cs: Pass the correct clipping rect to the theme
31913         engine. Remove some debug code.
31914
31915 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
31916         
31917         * DateTimePicker.cs:
31918                 - Fixed crash on DateTime.Parse, use Constructor instead
31919
31920 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
31921         
31922         * MenuItem.cs:
31923         * MenuAPI.cs:
31924                 - Owner draw support (MeasureItem and DrawItem)
31925
31926 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
31927         
31928         *  Menu.cs:
31929                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
31930                 - Fixes MenuItems.Add range
31931         * MenuItem.cs:
31932                 - MergeMenu and Clone and CloneMenu functions
31933
31934 2005-02-03  Jackson Harper  <jackson@ximian.com>
31935
31936         * ScrollBar.cs: Make abstract
31937         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
31938         is abstract.
31939
31940 2005-02-03  Jackson Harper  <jackson@ximian.com>
31941
31942         * ScrollBar.cs: First part of my scrollbar fixups. This removes
31943         all the unneeded refreshes and uses invalidates with properly
31944         computed rects.
31945
31946 2005-02-03  Peter Bartok  <pbartok@novell.com>
31947
31948         * ComponentModel.cs: Added
31949         * IDataGridEditingService.cs: Added
31950         * Timer.cs: Added missing attributes
31951         * ToolTip.cs: Added missing attributes
31952
31953 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
31954
31955         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
31956
31957 2005-02-03  Peter Bartok  <pbartok@novell.com>
31958
31959         * ListBox.cs: Added missing attributes
31960
31961 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
31962         
31963         * ListBox.cs:
31964                 - Fixes font height after font change
31965                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
31966                 
31967 2005-02-02  Peter Bartok  <pbartok@novell.com>
31968
31969         * HandleData.cs: Introduced static methods to allow class
31970           to be more self-contained and track it's own HandleData objects
31971         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
31972           HandleData to use new static methods
31973
31974 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
31975
31976         * Combobox.cs:
31977                 - Fixes default size and PreferredHeight
31978                 - Missing events
31979                 - ObjectCollection.Insert implementation
31980                 
31981         * ListControl.cs
31982                 - Fixes signature
31983         * ListBox.cs:
31984                 - Several fixes
31985                 - ObjectCollection.Insert implementation
31986                 - No selection after clean
31987                 - Small fixes
31988
31989 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
31990
31991         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
31992
31993 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
31994
31995         * Combobox.cs:
31996                 - Caches ItemHeight calculation for OwnerDrawVariable
31997                 - Handles dropdown properly
31998                 - Fixes several minor bugs
31999
32000 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
32001
32002         * ListBox.cs:
32003                 - Fixes 71946 and 71950
32004                 - Fixes changing Multicolumn on the fly
32005                 - Fixes keyboard navigation on Multicolumn listboxes
32006
32007 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32008         
32009         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
32010         crash reporter log.
32011
32012 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32013
32014         * XplatUIOSX.cs: Allow applications to actually exit.
32015
32016 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
32017
32018         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
32019         their parent at creation time rather than lazily later.  Fixes a major
32020         regression we were experiencing.
32021
32022 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
32023
32024         * ThemeWin32Classic.cs: more date time picker painting fixes
32025         * DateTimePicker.cs: more monthcalendar drop down fixes
32026         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
32027
32028 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
32029
32030         * ScrollBar.cs:
32031                 - When moving the thumb going outside the control should stop the moving
32032                 - Adds the firing of missing events
32033                 - Fixes no button show if Size is not specified
32034                 - End / Home keys for keyboard navigation
32035
32036 2005-01-30  Peter Bartok  <pbartok@novell.com>
32037
32038         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
32039           sanity check to prevent theoretical loop
32040         * XplatUIWin32.cs (SetVisible): Removed debug output
32041         * XplatUIX11.cs (SystrayChange): Added sanity check
32042         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
32043         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
32044           behaviour, valid until the X11 client window rewrite is done
32045         * TextBox.cs (ctor): Setting proper default foreground and background
32046           colors
32047
32048 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
32049
32050         * Theme: Added DrawDateTimePicker to interface
32051         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
32052         * DateTimePicker.cs: Created (still needs keys and painting code)
32053         * DateTimePickerFormat.cs: added
32054         * MonthCalendar.cs: fixed CreateParams for popup window mode
32055           
32056 2005-01-29  Peter Bartok  <pbartok@novell.com>
32057
32058         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
32059           this should also the calculations for ligher/darker
32060         * Theme.cs: Fixed defaults for ScrollBar widths/heights
32061
32062 2005-01-29  Peter Bartok  <pbartok@novell.com>
32063
32064         * ArrangeDirection.cs: Added
32065         * ArrangeStartingPositon.cs: Added
32066         * SystemInformation.cs: Implemented
32067         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32068           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
32069           used by SystemInformation class
32070         * X11Strucs.cs: Added XSizeHints structure
32071         * MenuAPI.cs:
32072           - Fixed CreateParams to make sure the menu window is always visible
32073           - TrackPopupMenu: Added check to make sure we don't draw the
32074             menu offscreen
32075
32076 2005-01-29  Peter Bartok  <pbartok@novell.com>
32077
32078         * HandleData.cs: Added method for altering invalid area
32079         * TextBoxBase.cs: Implemented TextLength
32080
32081 2005-01-28  Peter Bartok  <pbartok@novell.com>
32082
32083         * XplatUIX11.cs: Improvement over last patch, not sending
32084           the WM_PAINT directly anymore, instead we scroll any pending
32085           exposed areas and let the system pick out the WM_PAINT later
32086
32087 2005-01-28  Peter Bartok  <pbartok@novell.com>
32088
32089         * SWF.csproj: Deleted, no longer used. Instead,
32090           Managed.Windows.Forms/SWF.csproj should be used
32091         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
32092           directly, to avoid a potential race condition with the next
32093           scroll
32094
32095 2005-01-28  Peter Bartok  <pbartok@novell.com>
32096
32097         * XplatUI.cs: Made class internal
32098
32099 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
32100
32101         * CheckedListBox.cs:
32102                 - Draw focus
32103                 - Fixed Drawing
32104                 - Missing methods and events
32105
32106 2005-01-27  Peter Bartok  <pbartok@novell.com>
32107
32108         * Application.cs (Run): Don't use form if we don't have one
32109
32110 2005-01-27  Peter Bartok  <pbartok@novell.com>
32111
32112         * TextBoxBase.cs (get_Lines): Fixed index off by one error
32113
32114 2005-01-27  Peter Bartok  <pbartok@novell.com>
32115
32116         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
32117         * GridItem.cs: Added; Patch by Jonathan S. Chambers
32118         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
32119         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
32120         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
32121         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
32122         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32123         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32124         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32125         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32126         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32127         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32128
32129 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
32130
32131         * Combobox.cs:
32132                 - Draw focus on Simple Combobox
32133                 - Fixes drawing issues
32134                 - fixes 71834
32135
32136 2005-01-27  Peter Bartok  <pbartok@novell.com>
32137
32138         * Form.cs:
32139           - Place window in default location, instead of hardcoded 0/0
32140           - Send initial LocationChanged event
32141         * Control.cs:
32142           - UpdateBounds after creation to find out where the WM placed us
32143           - Make sure that if the ParentForm changes location the Form
32144             is notified
32145         * XplatUIX11.cs: XGetGeometry will not return the coords relative
32146             to the root, but to whatever the WM placed around us.
32147             Translate to root coordinates before returning toplevel
32148             coordinates
32149         * XplatUIWin32.cs: Removed debug output
32150         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
32151           flag to GetWindowPos, to allow translation of coordinates on X11
32152
32153 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
32154
32155         * ListBox.cs: connect LostFocus Event
32156
32157 2005-01-27  Peter Bartok  <pbartok@novell.com>
32158
32159         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32160           XplatUIX11.cs: Extended the Systray API
32161         * Form.cs: Removed debug output
32162         * Application.cs: Fixed focus assignment, always need to call
32163           XplatUI.Activate() since Form.Activate() has rules that may
32164           prevent activation
32165         * NotifyIcon.cs: Should be complete now
32166         * ToolTip.cs: Worked around possible timer bug
32167
32168 2005-01-27  Jackson Harper  <jackson@ximian.com>
32169
32170         * TabControl.cs:
32171         - Only invalidate the effected tabs when the
32172         selected index changes. This reduces drawing and gets rid of some
32173         flicker.
32174         - Only refresh if the tabs need to be shifted, otherwise only
32175         invalidate the slider button.
32176         - On windows the tabs are not filled to right if the slider is
32177         visible.
32178         
32179 2005-01-27  Jackson Harper  <jackson@ximian.com>
32180
32181         * TabControl.cs: Only refresh on mouseup if we are showing the
32182         slider. Also only invalidate the button whose state has changed.
32183
32184 2005-01-26  Peter Bartok  <pbartok@novell.com>
32185
32186         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
32187         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
32188           and SystrayRemove() methods
32189         * XplatUIOSX.cs: Stubbed Systray methods
32190         * XplatUIX11.cs:
32191           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
32192             methods
32193           - Fixed broken XChangeProperty calls (marshalling messed up things)
32194         * X11Structs.cs: Added enums and structs required for Size hinting
32195         * NotifyIcon.cs: Added & implemented
32196
32197 2005-01-26  Jackson Harper  <jackson@ximian.com>
32198
32199         * TabControl.cs: Space vertically layed out tabs properly.
32200
32201 2005-01-26  Peter Bartok  <pbartok@novell.com>
32202
32203         * Form.cs (CreateClientParams): Always set the location to 0,0
32204           since we're a child window.
32205
32206         * Control.cs (SetVisibleCore): Always explicitly setting the location
32207           of a toplevel window, apparently X11 doesn't like to move windows
32208           while they're not mapped.
32209
32210 2005-01-26  Jackson Harper  <jackson@ximian.com>
32211
32212         * TabControl.cs: Implement FillToRight size mode with vertically
32213         rendered tabs.
32214
32215 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
32216
32217         * ControlPaint.cs, ThemeWin32Classic.cs
32218                 - Fixes DrawFocusRectangle
32219
32220 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
32221
32222         * MenuAPI.cs:
32223                 - MenuBar tracking only starts when item is first clicked
32224                 - Fixes menu hidding for multiple subitems
32225                 - Unselect item in MenuBar when item Executed
32226                 - Fixes bug 71495
32227
32228 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
32229
32230         * ListControl.cs:
32231                 - IsInputKey for ListBox
32232         * ListBox.cs:
32233                 - Focus item
32234                 - Shift and Control item selection
32235                 - Implement SelectionMode.MultiExtended
32236                 - Fixes RightToLeft
32237         * ComboBox.cs:
32238                 - IsInputKey implemented
32239                 - Do not generate OnTextChangedEdit on internal txt changes
32240                 
32241 2005-01-23  Peter Bartok  <pbartok@novell.com>
32242
32243         * AccessibleObject.cs: Partially implemented Select()
32244         * MonthCalendar.cs: Added missing attributes and events
32245         * Form.cs: Fixed CreateParams behaviour, now controls derived from
32246           form can properly override CreateParams.
32247         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32248           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
32249           Control performs Invalidate & Update
32250         * NativeWindow (CreateHandle): Added special handling for Form
32251           and Form.FormParent classes to allow overriding of From.CreateParams
32252         * Control.cs:
32253           - ControlNativeWindow: Renamed 'control' variable to more intuitive
32254             name 'owner'
32255           - ControlNativeWindow: Added Owner property
32256           - Removed usage of Refresh() on property changes, changed into
32257             Invalidate(), we need to wait until the queue is processed for
32258             updates, direct calls might cause problems if not all vars for
32259             Paint are initialized
32260           - Added call to UpdateStyles() when creating the window, to set any
32261             styles that CreateWindow might have ignored.
32262           - Added support for Form CreateParent overrides to UpdateStyles()
32263         * MessageBox.cs: Removed no longer needed FormParent override stuff,
32264           CreateParams are now properly overridable
32265         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
32266           CreateParams are now properly overridable
32267
32268 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
32269
32270         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
32271         OnTextBoxChanged.
32272
32273         Capture LostFocus and OnTextBoxChanged.  The later introduces a
32274         recursive invocation that I have not figured out yet.
32275
32276         Reset the timer when not using (it was accumulating).
32277
32278
32279         (OnTextBoxChanged): Set UserEdit to true here to track whether the
32280         user has made changes that require validation.
32281
32282         Reset changing to avoid loops.
32283
32284 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
32285
32286         * NumericUpDown.cs: Display value at startup.
32287
32288         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
32289         ValidateEditText.
32290
32291         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
32292         filled in.  Added some basic parsing of text.
32293
32294         Still missing the OnXXX method overrides, and figuring out the
32295         events that must be emitted.
32296
32297         * UpDownBase.cs: Handle UserEdit on the Text property.
32298         
32299 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
32300
32301         * ComboBox.cs:
32302           - Fixes IntegralHeight
32303           - ToString method
32304
32305 2005-01-21  Jackson Harper  <jackson@ximian.com>
32306
32307         * TabControl.cs: Set the SelectedIndex property when SelectedTab
32308         is set so that the page visibility is updated and the tabs are
32309         sized correctly.
32310
32311 2005-01-21  Jackson Harper  <jackson@ximian.com>
32312
32313         * TabControl.cs: Use cliping rectangle for blitting. Give the
32314         theme the clipping rect so we can do clipping while
32315         drawing. Remove some debug code.
32316
32317 2005-01-21  Jackson Harper  <jackson@ximian.com>
32318
32319         * TabPage.cs: Add a new method so tab pages can force the tab
32320         control to recalculate the tab page sizes.
32321         * TabControl.cs: UpdateOwner needs to make the tab control recalc
32322         sizes.
32323
32324 2005-01-20  Jackson Harper  <jackson@ximian.com>
32325
32326         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
32327
32328 2005-01-20  Jackson Harper  <jackson@ximian.com>
32329
32330         * TreeView.cs: Set the bounds for nodes properly. They were
32331         getting screwed up when checkboxes were not enabled, but images
32332         were.
32333
32334 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
32335
32336         * ListBox.cs:
32337                 - Owner draw support
32338                 - Fixes
32339                 
32340 2005-01-20  Jackson Harper  <jackson@ximian.com>
32341
32342         * XplatUIStructs.cs: More misc keys
32343         * X11Keyboard.cs: Ignore some control keys.
32344
32345 2005-01-20  Jackson Harper  <jackson@ximian.com>
32346
32347         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
32348         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
32349
32350 2005-01-19  Peter Bartok  <pbartok@novell.com>
32351
32352         * Control.cs: Un-selecting the control when it is loosing focus
32353
32354 2005-01-19  Jackson Harper  <jackson@ximian.com>
32355
32356         * TreeView.cs: Hook up to the text controls leave event so we can
32357         end editing when the users clicks outside the text box.
32358         
32359 2005-01-19  Jackson Harper  <jackson@ximian.com>
32360
32361         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
32362         get set in the conversion array.
32363
32364 2005-01-19  Peter Bartok  <pbartok@novell.com>
32365
32366         * Application.cs (ModalRun): Added a call to CreateControl to ensure
32367           focus is properly set
32368         * Button.cs:
32369           - Added missing attributes
32370           - removed styles, those are already set in the base class
32371         * ButtonBase.cs:
32372           - Added missing attributes
32373           - Added clip window styles
32374         * CheckBox.cs: Added missing attributes
32375         * CommonDialog.cs:
32376           - FormParentWindow.CreateParams: Added required clip styles
32377         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
32378           also filters modifier keys
32379         * MessageBox.cs:
32380           - Added assignment of Accept and Cancel button to enable Enter
32381             and Esc keys in MessageBox dialogs
32382           - FormParentWindow.CreateParams: Added required clip styles
32383         * RadioButton.cs: Added missing attributes
32384         * TextControl.cs: No longer draws selection if control does not
32385           have focus
32386         * TextBoxBase.cs:
32387           - Now draws simple rectangle around test area to make it obvious
32388             there's a control. This is a hack until we properly support borders
32389           - A few simple fixes to support selections better, now erases selected
32390             text when typing, and resets selection when using movement keys
32391
32392 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
32393
32394         * UpDownBase.cs: Added some new properties.
32395
32396         * DomainUpDown.cs: Implement a lot to get my test working.
32397
32398 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32399
32400         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
32401
32402 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32403
32404         * OSXStructs (WindowAttributes): Fixed csc complaints
32405
32406 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32407
32408         * XplayUIOSX.cs:
32409           OSXStructs.cs: Initial refactor to move enums and consts into
32410           OSXStructs and use them in the driver for greater readability.
32411
32412 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
32413
32414         * XplatUIOSX.cs: Initial support for Standard Cursors.
32415         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
32416
32417 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
32418
32419         * ComboBox.cs: ability to change style when the ctrl is already
32420         created, missing methods and events, bug fixes, signature fixes
32421
32422 2005-01-19  Peter Bartok  <pbartok@novell.com>
32423
32424         * Cursors.cs (ctor): Added ctor to fix signature
32425
32426 2005-01-18  Peter Bartok  <pbartok@novell.com>
32427
32428         * Button.cs: Implemented DoubleClick event
32429         * ButtonBase.cs:
32430           - Fixed keyboard handling to behave like MS, where the press of
32431             Spacebar is equivalent to a mousedown, and the key release is
32432             equivalent to mouseup. Now a spacebar push will give the same
32433             visual feedback like a mouse click.
32434           - Added missing attributes
32435           - Added ImeModeChanged event
32436           - Added support for generating DoubleClick event for derived classes
32437         * CheckBox.cs:
32438           - Implemented DoubleClick event
32439           - Added missing attributes
32440         * CommonDialog.cs: Added missing attribute
32441         * ContextMenu.cs: Added missing attributes
32442         * RadioButton.cs:
32443           - AutoChecked buttons do not allow to be unselected when clicked
32444             (otherwise we might end up with no selected buttons in a group)
32445           - Added missing attributes
32446           - Implemented DoubleClickEvent
32447         * ThreadExceptionDialog.cs: Enabled TextBox code
32448
32449 2005-01-18  Peter Bartok  <pbartok@novell.com>
32450
32451         * Form.cs: Removed debug output
32452         * Button.cs: Added support for DoubleClick method
32453
32454 2005-01-18  Peter Bartok  <pbartok@novell.com>
32455
32456         * Form.cs:
32457           - Added method to parent window that allows triggering size
32458             calculations when a menu is added/removed
32459           - set_Menu: Cleaned up mess from early days of Form and Control,
32460             now properly triggers a recalc when a menu is added/removed
32461           - Added case to select form itself as focused form if no child
32462             controls exist
32463           - Added PerformLayout call when showing dialog, to ensure properly
32464             placed controls
32465         * Control.cs:
32466           - Select(): Made internal so Form can access it
32467           - Focus(): Only call Xplat layer if required (avoids loop), and sets
32468             status
32469         * Application.cs (Run): Removed hack and calls PerformLayout instead
32470           to trigger calculation when Form becomes visible
32471
32472 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
32473
32474         * ComboBox.cs: fixes for ownerdraw
32475
32476 2005-01-18  Peter Bartok  <pbartok@novell.com>
32477
32478         * TextControl.cs:
32479           - Sentinel is no longer static, each Document gets it's own, this
32480             avoids locking or alternatively overwrite problems when more
32481             than one text control is used simultaneously.
32482           - Switched to use Hilight and HilightText brushes for text selection
32483
32484         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
32485
32486 2005-01-18  Peter Bartok  <pbartok@novell.com>
32487
32488         * Control.cs:
32489           - Hooked up the following events:
32490                 o ControlAdded
32491                 o ControlRemoved
32492                 o HandleDestroyed
32493                 o ImeModeChanged
32494                 o ParentChanged
32495                 o TabStopChanged
32496                 o Invalidated
32497                 o SystemColorsChanged
32498                 o ParentFontChanged
32499                 o Move
32500           - Removed debug output
32501           - Added a call to the current theme's ResetDefaults when a color change
32502             is detected
32503         * Form.cs: Now setting the proper ImeMode
32504         * Theme.cs: Defined a method to force recreation of cached resources
32505           and rereading of system defaults (ResetDefaults())
32506         * ThemeWin32Classic.cs: Added ResetDefaults() stub
32507
32508 2005-01-17  Peter Bartok  <pbartok@novell.com>
32509
32510         * Control.cs: Added missing attributes
32511
32512 2005-01-17  Jackson Harper  <jackson@ximian.com>
32513
32514         * TreeNode.cs: Implement editing. Add missing properties selected
32515         and visible.
32516         * TreeView.cs: Implement node editing. Also some fixes to use
32517         Invalidate (invalid area) instead of Refresh when selecting.
32518
32519 2005-01-17  Peter Bartok  <pbartok@novell.com>
32520
32521         * Control.cs:
32522           - Implemented InvokeGotFocus() method
32523           - Implemented InvokeLostFocus() method
32524           - Implemented InvokePaint() method
32525           - Implemented InvokePaintBackground() method
32526           - Implemented InvokeClick() method
32527           - Implemented FindForm() method
32528           - Implemented RectangleToClient() method
32529           - Implemented ClientToRectangle() method
32530           - Implemented ResetBackColor() method
32531           - Implemented ResetCursor() method
32532           - Implemented ResetFont() method
32533           - Implemented ResteForeColor() method
32534           - Implemented ResetImeMode() method
32535           - Implemented ResetLeftToRight() method
32536           - Implemented ResetText() method
32537           - Implemented Scale() methods
32538           - Implemented ScaleCore() method
32539           - Implemented Update() method
32540           - Removed unused variables
32541           - Stubbed AccessibilityNotifyClients and
32542             ControlAccessibleObject.NotifyClients() methods (dunno what to do
32543             with those yet)
32544           - Now setting proper default for RightToLeft property
32545           - Fixed bug in SetClientSizeCore that would cause windows to get
32546             really big
32547           - Now sending Click/DoubleClick events
32548           - Now selecting controls when left mouse button is clicked on
32549             selectable control
32550         * AccessibleEvents.cs: Added
32551         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
32552         * XplatUIOSX.cs: Stubbed UpdateWindow() method
32553         * XplatUIWin32.cs: Implemented UpdateWindow() method
32554         * XplatUIX11.cs: Implemented UpdateWindow() method
32555         * Form.cs: Removed stray semicolon causing CS0162 warning
32556         * ThemeWin32Classic.cs: Fixed unused variable warnings
32557         * ScrollableControl.cs: Now calls base method for ScaleCore
32558         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
32559           style to avoid interference with internal click handler (which is
32560           different than standard Control click handling)
32561         * RadioButton.cs:
32562           - Now unchecks all sibling radio buttons when control is
32563             selected (Fixes #68756)
32564           - Removed internal tabstop variable, using the one inherited from
32565             Control
32566
32567 2005-01-17  Jackson Harper  <jackson@ximian.com>
32568
32569         * NavigateEventArgs.cs: Fix base type.
32570         * LinkLabel.cs: Sig fix
32571         
32572 2005-01-17  Jackson Harper  <jackson@ximian.com>
32573
32574         * TreeView.cs: Only invalidate the effected nodes bounds when
32575         selecting nodes.
32576
32577 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
32578
32579         * XplatUIWin32.cs: fixes Win32 marshaling
32580         * XplatUIX11.cs: fixes method signature
32581
32582 2005-01-17  Peter Bartok  <pbartok@novell.com>
32583
32584         * XplatUIX11.cs: Clean up resources when we no longer need them
32585
32586 2005-01-17  Peter Bartok  <pbartok@novell.com>
32587
32588         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
32589           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
32590           and DestroyCursor() methods.
32591         * Cursor.cs: Partially implemented, now supports standard cursors;
32592           still contains some debug code
32593         * Cursors.cs: Implemented class
32594         * Control.cs:
32595           - WndProc(): Added handling of WM_SETCURSOR message, setting the
32596             appropriate cursor
32597           - Implemented Cursor property
32598           - Replaced break; with return; more straightforwar and possibly
32599             faster
32600           - Now properly setting the result for WM_HELP
32601         * X11Structs.cs: Added CursorFontShape enum
32602         * XplatUIStructs.cs:
32603           - Added StdCursor enum (to support DefineStdCursor() method)
32604           - Added HitTest enum (to support sending WM_SETCURSOR message)
32605         * XplatUIX11.cs:
32606           - Now sends the WM_SETCURSOR message
32607           - Implemented new cursor methods
32608         * XplatUIOSX.cs: Stubbed new cursor methods
32609         * XplatUIWin32.cs:
32610           - Implemented new cursor methods
32611           - Added GetSystemMetrics function and associated enumeration
32612
32613 2005-01-15  Peter Bartok  <pbartok@novell.com>
32614
32615         * Control.cs:
32616           - WndProc(): Now handles EnableNotifyMessage
32617           - SelectNextControl(): Fixed bug where if no child or sibling
32618             controls exist we looped endlessly
32619
32620 2005-01-14  Jackson Harper  <jackson@ximian.com>
32621
32622         * TreeView.cs: Recalculate the tab pages when a new one is added
32623         so that the proper bounding rects are created.
32624
32625 2005-01-14  Jackson Harper  <jackson@ximian.com>
32626
32627         * TreeView.cs: Draw a gray box instead of a grip in the lower
32628         right hand corner when there are both horizontal and vertical
32629         scroll bars.
32630
32631 2005-01-14  Jackson Harper  <jackson@ximian.com>
32632
32633         * Control.cs: When erasing backgrounds use FromHwnd instead of
32634         FromHdc when there is a NULL wparam. This occurs on the X driver.
32635         * XplatUIX11.cs: Set the wparam to NULL.
32636
32637 2005-01-13  Jackson Harper  <jackson@ximian.com>
32638
32639         * PictureBox.cs: Implement missing methods (except ToString, need
32640         to test that on windows) and events. When visibility is changed we
32641         need to redraw the image because the buffers are killed. When size
32642         is changed refresh if the sizemode needs it.
32643
32644 2005-01-13  Peter Bartok  <pbartok@novell.com>
32645
32646         * Control.cs (SelectNextControl): Was using wrong method to select
32647           a control
32648
32649 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
32650
32651         * ComboBox.cs: fixes dropstyle
32652
32653 2005-01-13  Peter Bartok  <pbartok@novell.com>
32654
32655         * Form.cs:
32656           - Implemented Select() override
32657           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
32658           - Now sets keyboard focus on startup
32659         * Control.cs (SelectNextControl): Now properly handles directed=true
32660         * TextBoxBase.cs:
32661           - WndProc: Now passes tab key on to base if AcceptTabChar=false
32662           - Added (really bad) focus rectangle (mostly for testing)
32663         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
32664           to enforce redraw on focus changes
32665         * ContainerControl.cs:
32666           - Fixed detection of Shift-Tab key presses
32667           - Fixed traversal with arrow keys
32668         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
32669           gonna keep this or if it's complete yet
32670         
32671 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
32672
32673         * ComboBox.cs: missing properties, fixes
32674
32675 2005-01-13  Peter Bartok  <pbartok@novell.com>
32676
32677         * Panel.cs (ctor): Setting Selectable window style to off
32678         * Splitter.cs (ctor): Setting Selectable window style to off
32679         * GroupBox.cs (ctor): Setting Selectable window style to off
32680         * Label.cs (ctor): Setting Selectable window style to off
32681
32682 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
32683
32684         * UpDownBase.cs (InitTimer): If the timer has been already
32685         created, enable it.
32686
32687         Use a TextBox instead of a Label.
32688
32689 2005-01-12  Jackson Harper  <jackson@ximian.com>
32690
32691         * TreeView.cs: Refresh the tree after sorting the nodes. Always
32692         draw the connecting node lines (when ShowLines is true).
32693         * TreeNode.cs: The nodes index can now be updated. This is used
32694         when a node collection is sorted.
32695         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
32696         insert or an existing unsorted node collection can be sorted.
32697         
32698 2005-01-12  Peter Bartok  <pbartok@novell.com>
32699
32700         * ContainerControl.cs: Implemented ProcessDialogKeys()
32701
32702 2005-01-12  Peter Bartok  <pbartok@novell.com>
32703
32704         * Control.cs:
32705           - Implemented SelectNextControl() method
32706           - Several focus related bug fixes
32707           - Fixed Docking calculations to match MS documentation and
32708             behaviour
32709
32710 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
32711
32712         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
32713         bug fixes
32714
32715 2005-01-12  Peter Bartok  <pbartok@novell.com>
32716
32717         * Control.cs:
32718           - Fixed broken Contains() method
32719           - Implemented GetNextControl() method. Finally. This is the pre-
32720             requisite for focus handling.
32721
32722 2005-01-12  Peter Bartok  <pbartok@novell.com>
32723
32724         * OSXStrucs.cs: Added
32725
32726 2005-01-12  Peter Bartok  <pbartok@novell.com>
32727
32728         * XplatUIWin32.cs:
32729           - Removed PeekMessageFlags
32730           - Implemented SetWindowStyle() method
32731         * XplatUIStructs.cs: Added PeekMessageFlags
32732         * X11Structs: Added missing border_width field to XWindowChanges struct
32733         * XplatUIX11.cs:
32734           - PeekMessage: Now throws exception if flags which are not yet
32735             supported are passed
32736           - Implemented SetWindowStyle() method
32737           - Fixed SetZOrder to handle AfterHwnd properly
32738         * XplatUI.cs: Added SetWindowStyle() method
32739         * XplatUIDriver.cs: Added SetWindowStyle() abstract
32740         * Control.cs:
32741           - Implemented UpdateStyles() method
32742           - Implemented UpdateZOrder() method
32743         * XplatUIOSX.cs: Added SetWindowStyle() stub
32744
32745 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
32746
32747         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
32748         button mouse).
32749
32750
32751 2005-01-11  Jackson Harper  <jackson@ximian.com>
32752
32753         * TreeView.cs: Still need to draw lines to siblings even if out of
32754         the current node is out of the clip.
32755
32756 2005-01-11  Jackson Harper  <jackson@ximian.com>
32757
32758         * TreeView.cs: When setting the hbar/vbar/grip position use
32759         SetBounds so that perform layout is only called once. Also suspend
32760         and resume layout so layout is only done once for all controls.
32761         - Removed some debug fluff
32762         * SizeGrip.cs: Call base implmentation in overriding methods.
32763         - When visibility is changed the drawing buffers are killed so we
32764         need to redraw.
32765
32766 2005-01-11  Jackson Harper  <jackson@ximian.com>
32767
32768         * TreeView.cs: Calculate the open node count while drawing. This
32769         saves us an entire tree traversal for every paint operation. Use
32770         a member var for the open node count so less vars are passed around.
32771
32772 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
32773
32774         * MonthCalendar.cs:
32775         - fixed selection to use mousemove, not mouse polling on timer
32776         * ThemeWin32Classic.cs
32777         - removed redundant unused variable "no_more_content"
32778         
32779 2005-01-11  Peter Bartok  <pbartok@novell.com>
32780
32781         * XplatUIX11.cs (DoEvents): Needs to return when no more events
32782           are pending, so it now calls PeekMessage instead of GetMessage;
32783           implemented a incomplete version of PeekMessage
32784         
32785 2005-01-11  Peter Bartok  <pbartok@novell.com>
32786
32787         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
32788           I18n issues
32789         * TextBoxBase.cs: Added sending of TextChanged event
32790
32791 2005-01-10  Jackson Harper  <jackson@ximian.com>
32792
32793         * TreeView.cs: Try not to draw outside the clipping rectangle on
32794         each node element.
32795
32796 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
32797
32798         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
32799
32800 2005-01-10  Jackson Harper  <jackson@ximian.com>
32801
32802         * TreeView.cs:
32803         - Implement fast scrolling. Now only the newly
32804         exposed nodes are drawn and the old image is moved using the
32805         XplatUI::ScrollWindow method.
32806         - Factor in height of nodes when calculating whether or not the
32807         node is in the clipping rect.
32808
32809 2005-01-10  Jackson Harper  <jackson@ximian.com>
32810
32811         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
32812
32813 2005-01-10  Peter Bartok  <pbartok@novell.com>
32814
32815         * Application.cs: Added temporary hack to resolve all our resize
32816           required issues on startup. This will get fixed properly at
32817           some point in the future
32818
32819 2005-01-10  Jackson Harper  <jackson@ximian.com>
32820
32821         * SizeGrip.cs: New internal class that is used as a sizing
32822         grip control...hence the name.
32823
32824 2005-01-10  Peter Bartok  <pbartok@novell.com>
32825
32826         * Control.cs: Implemented proper TabIndex handling, now assigning
32827           a tabindex when a control is added to a container
32828         * GroupBox.cs (ctor): Now sets the Container style bit, required
32829           for Control.GetNextControl()
32830
32831 2005-01-09  Jackson Harper  <jackson@ximian.com>
32832
32833         * TextBoxBase.cs: Clear window when scrolling (fixes build).
32834
32835 2005-01-09  Peter Bartok <pbartok@novell.com>
32836
32837         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32838           XplatUIX11.cs: Added ability to control ScrollWindow expose and
32839           an overload for ScrollWindow to allow only scrolling a rectangle
32840
32841 2005-01-09  Peter Bartok <pbartok@novell.com>
32842
32843         * Form.cs:
32844           - Implemented SetDesktopBounds method
32845           - Implemented SetDesktopLocation method
32846
32847 2005-01-08  Jackson Harper  <jackson@ximian.com>
32848
32849         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
32850         the node count has changed, this removes to VScroll::Refresh calls
32851         when drawing.
32852
32853 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
32854
32855         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
32856
32857 2005-01-07  Jackson Harper  <jackson@ximian.com>
32858
32859         * TreeNode.cs: Just update the single node when it is
32860         checked. Don't refresh after toggling, the Expand/Collapse already
32861         handles this.
32862         * TreeView.cs: Respect clipping a little more when drawing. Try
32863         not to redraw things that don't need to be redrawn. Just hide the
32864         scrollbars when they are no longer needed instead of removing
32865         them, so they don't have to be created again and again.
32866         
32867 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
32868
32869         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
32870         coordinates to window space to place the caret properly, FIXED.
32871         Implement GetWindowState & SetWindowState
32872
32873 2005-01-06  Peter Bartok <pbartok@novell.com>
32874
32875         * Form.cs:
32876           - Implemented ClientSize property
32877           - Implemented DesktopBounds property
32878           - Implemented DesktopLocation property
32879           - Implemented IsRestrictedWindow property
32880           - Implemented Size property
32881           - Implemented TopLevel property
32882           - Implemented FormWindowState property
32883         * Control.cs:
32884           - Implemented GetTopLevel() method
32885           - Implemented SetTopLevel() method
32886         * X11Structs.cs (Atom):
32887           - Added AnyPropertyType definition
32888           - Added MapState definiton and updated XWindowAttribute struct
32889         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
32890         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
32891         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
32892         * XplatUIWin32.cs:
32893           - Implemented GetWindowState() and SetWindowState() methods
32894           - Fixed Win32GetWindowLong return type
32895         * XplatUIX11.cs:
32896           - Introduced central function for sending NET_WM messages
32897           - Implemented GetWindowState() and SetWindowState() methods
32898         * TextBoxBase.cs (set_Lines):
32899           - Now uses Foreground color for text added via Text property (Duh!)
32900           - Added code to remember programmatically requested size (fixes
32901             behaviour when Multiline is set after Size)
32902           - Added AutoSize logic
32903
32904 2005-01-06  Jackson Harper  <jackson@ximian.com>
32905
32906         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
32907
32908 2005-01-06  Jackson Harper  <jackson@ximian.com>
32909
32910         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
32911         set to less then 0.
32912
32913 2005-01-06  Jackson Harper  <jackson@ximian.com>
32914
32915         * ScrollableControl.cs: Lazy init the scrollbars.
32916         
32917 2005-01-06  Jackson Harper  <jackson@ximian.com>
32918
32919         * Theme.cs: Speed up getting pens and solid brushes, by using
32920         their ARGB as a hash instead of tostring and not calling Contains.
32921
32922 2005-01-06  Peter Bartok <pbartok@novell.com>
32923
32924         * Form.cs:
32925           - Implemented OnActivated and OnDeactivate event trigger
32926           - Implemented Activate() method
32927           - Fixed ShowDialog() to activate the form that was active before
32928             the dialog was shown
32929         * XplatUIX11.cs:
32930           - Added global active_window var that tracks the currently active
32931             X11 window
32932           - Now always grabs Property changes from the root window to always
32933             catch changes on the active window property
32934           - Added code to PropertyNotify handler to send Active/Inactive
32935             messages when state changes. This puts X11 and Win32 en par on
32936             WM_ACTIVATE notifications (except for double notifications when
32937             the user clicks away from our modal window to another one of our
32938             windows)
32939
32940 2005-01-05  Jackson Harper  <jackson@ximian.com>
32941
32942         * ImageList.cs: Implment ctor
32943
32944 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
32945
32946         * XplatUIOSX.cs: Implement Activate/SetTopmost
32947
32948 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
32949
32950         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
32951
32952 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
32953
32954         * XplatUIOSX.cs: Implement GetActive/SetFocus.
32955
32956 2005-01-05  Peter Bartok <pbartok@novell.com>
32957
32958         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
32959           XplatUIOSX.cs: Added GetActive method to return the currently
32960           active window for the application (or null, if none is active)
32961         * Form.cs:
32962           - Implemented ActiveForm
32963           - Commented out owner assignment for modal dialogs (causes problems
32964             on Win32, since the owner will be disabled)
32965           - Reworked some Active/Focus handling (still incomplete)
32966         * CommonDialog.cs: Commented out owner assignment for modal dialogs
32967           (causes problems on Win32, since the owner will be disabled)
32968         * IWin32Window: Added ComVisible attribute
32969
32970 2005-01-05  Peter Bartok <pbartok@novell.com>
32971
32972         * ToolTip.cs (WndProc): Enable setting focus now that we have the
32973           required XplatUI functions.
32974
32975 2005-01-05  Peter Bartok <pbartok@novell.com>
32976
32977         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
32978           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
32979           to implement focus and activation handling; still incomplete and
32980           with debug output
32981
32982 2005-01-04  Peter Bartok <pbartok@novell.com>
32983
32984         * TextBoxBase.cs: Changed access level for Document property to
32985           match switch to internal for TextControl
32986
32987 2005-01-04  Peter Bartok <pbartok@novell.com>
32988
32989         * AccessibleObject: Added ComVisible attribute
32990
32991 2005-01-04  Jackson Harper  <jackson@ximian.com>
32992
32993         * X11Keyboard.cs: Remove unneeded var.
32994
32995 2005-01-04  Jackson Harper  <jackson@ximian.com>
32996
32997         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
32998         but PAINT.
32999         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
33000         ClientMessage. This makes apps exit cleanly (more often).
33001         
33002 2005-01-04  Jackson Harper  <jackson@ximian.com>
33003
33004         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
33005         handling focus, return correct colors and fonts,
33006         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
33007         handle selection, horizontal scrolling, and mouse interaction.
33008
33009 2005-01-04  Peter Bartok <pbartok@novell.com>
33010
33011         * ICommandExecutor.cs: Added
33012         * IDataGridColumnStyleEditingNotificationService.cs: Added
33013         * IFeatureSupport.cs: Added
33014         * IFileReaderService.cs: Added
33015         * IDataObject.cs: Added ComVisible attribute
33016         * AmbientProperties.cs: Added
33017         * BaseCollection.cs: Added missing attributes
33018         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
33019         * BaseCollection.cs: Added missing attributes
33020         * Binding.cs: Added TypeConverter attribute
33021         * BindingContext.cs: Added DefaultEvent attribute
33022         * BindingsCollection.cs: Added DefaultEvent attribute
33023         * Button.cs: Added DefaultValue attribute
33024         * DragEventArgs.cs: Added ComVisible attribute
33025         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
33026         * KeyEventArgs.cs: Added ComVisible attribute
33027         * KeyPressEventArgs.cs: Added ComVisible attribute
33028         * MouseEventArgs.cs: Added ComVisible attribute
33029         * NavigateEventArgs.cs: Added
33030         * NavigateEventHandler.cs: Added
33031         * FeatureSupport.cs: Added
33032         * OSFeature.cs: Added
33033         * Theme.cs: Added abstract Version property to support OSFeature
33034         * ThemeWin32Classic.cs: Added Version property to
33035           support OSFeature.Themes
33036         * ProgressBar.cs: Removed OnPaintBackground override, not required since
33037           the proper styles to avoid background drawing are set, also doesn't
33038           match MS signature
33039         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
33040         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
33041         * ScrollEventArgs.cs: Added ComVisible attribute
33042         * SplitterEventArgs.cs: Added ComVisible attribute
33043         * AccessibleSelection.cs: Added Flags attribute
33044         * Appearance.cs: Added ComVisible attribute
33045         * Border3DSide.cs: Added ComVisible attribute
33046         * Border3DStyle.cs: Added ComVisible attribute
33047         * BorderStyle.cs: Added ComVisible attribute
33048         * DragAction.cs: Added ComVisible attribute
33049         * ErrorBlinkStyle.cs: Added
33050         * ScrollEventType.cs: Added ComVisible attribute
33051         * AnchorStyles.cs: Added Editor attribute
33052         * DockStyle.cs: Added Editor attribute
33053         * HorizontalAlignment.cs: Added ComVisible attribute
33054         * HelpEventArgs.cs: Added ComVisible attribute
33055         * PaintEventArgs.cs: Added IDisposable
33056
33057 2005-01-04  Peter Bartok <pbartok@novell.com>
33058
33059         * TextControl.cs: Switched Line, LineTag and Document classes to
33060           internal
33061
33062 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
33063
33064         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
33065         Simple mode, fixes, IntegralHeight, etc.
33066
33067 2005-01-04  Peter Bartok <pbartok@novell.com>
33068
33069         * TextBoxBase.cs: Using proper font variable now
33070
33071 2005-01-04  Peter Bartok <pbartok@novell.com>
33072
33073         * Form.cs (ShowDialog): Set parent to owner, if provided
33074         * GroupBox.cs: Removed unused vars
33075         * TextControl.cs:
33076           - Added GetHashCode() for Document and LineTag classes
33077           - Removed unused variables
33078           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
33079             to allow translation between continuous char position and line/pos
33080         * CheckBox.cs: Removed vars that are provided by base class
33081         * RadioButton.cs: Removed vars that are provided by base class, added
33082           new keyword where required
33083         * LinkLabel.cs: Added new keyword where required
33084         * Control.cs (WndProc): Removed unused variable
33085         * TextBoxBase.cs:
33086           - Finished SelectionLength property
33087           - Implemented SelectionStart property
33088           - Implemented Text property
33089           - Removed unused vars
33090         * MessageBox.cs: Added new keyword where required
33091         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
33092           WndProc signature
33093         * MenuAPI.cs: Added new keyword where required
33094         * ButtonBase.cs: Removed vars that are provided by base class, added
33095           new keyword where required
33096         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
33097           argument to double, to allow compiling with csc 2.0 (Atsushi ran
33098           into this)
33099         * Application.cs (Run): Now triggers the ThreadExit event
33100         * CommonDialog.cs: Added new keyword where required; now properly sets
33101           parent (owner) for dialog
33102         * XplatUIX11.cs: Commented out unused vars
33103         * StatusBar.cs: Fixed signature for Text property
33104         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
33105
33106 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
33107
33108         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
33109         TrackBar.cs, MonthCalendar.cs: remove unused vars
33110
33111 2005-01-03  Jackson Harper  <jackson@ximian.com>
33112
33113         * ThemeWin32Classic.cs:
33114         * X11Keyboard.cs: Remove unused vars.
33115
33116 2005-01-03  Peter Bartok  <pbartok@novell.com>
33117
33118         * TextBox.cs:
33119           - set_Text: Tied into TextControl
33120           - set_TextAlignment: Tied into TextControl
33121         * TextControl.cs:
33122           - Added alignment properties and implemented alignment handling
33123             and drawing (still has a bug, not generating proper expose events)
33124           - Added new Line() constructor to allow passing the line alignment
33125           - Fixed selection setting, properly handling end<start now
33126           - Added aligment considerations to RecalculateDocument()
33127         * TextBoxBase.cs:
33128           - Now properly enforces control height for single line controls
33129           - Added support for CharacterCasing
33130           - Added IsInputKey override
33131           - Fixed Keys.Enter logic
33132           - Added SetBoundsCore override
33133           - Fixed mouse selection handling
33134
33135 2005-01-03  Jackson Harper  <jackson@ximian.com>
33136
33137         * TreeView.cs:
33138           - Collapse and uncheck all nodes when CheckBoxes is disabled.
33139           - Checkboxes are always aligned to the bottom of the node,
33140           regardless of item height.
33141           - Use the node bounds to draw the text so we can center it when
33142           the item height is greater then the font height.
33143           - Node::Bounds are only the text part of the node.
33144         * TreeNode.cs: New method to combine collapsing and unchecking all
33145           nodes recursively.
33146
33147 2005-01-02  Jackson Harper  <jackson@ximian.com>
33148
33149         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
33150         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
33151         tree when a check is changed. TODO: Only refresh the checked node.
33152
33153 2004-12-30  Jackson Harper  <jackson@ximian.com>
33154
33155         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
33156         * TreeNode.cs: When collapsing make sure to never collapse the
33157         root node.
33158
33159 2004-12-29  Jackson Harper  <jackson@ximian.com>
33160
33161         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
33162         
33163 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
33164
33165         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
33166
33167 2004-12-28  Peter Bartok  <pbartok@novell.com>
33168
33169         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
33170           not yet assigned
33171
33172 2004-12-28  Peter Bartok  <pbartok@novell.com>
33173
33174         * Control.cs (WndProc): Added WM_HELP handler, now generates
33175           HelpRequested event
33176         * Form.cs: Added HelpButton property and required support code
33177         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
33178
33179 2004-12-28  Peter Bartok  <pbartok@novell.com>
33180
33181         * CommonDialog.cs:
33182           - Made DialogForm.owner variable internal
33183           - Added check to ensure owner form is set before setting
33184             owner properties in CreateParams
33185
33186 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
33187
33188         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
33189           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
33190           GetCursorPos.  Fix major visibility issues.  Rework the windowing
33191           system to support borderless/titleless windows (implements menus).
33192           Fix GetWindowPos.  Implement initial background color support for
33193           views.
33194
33195 2004-12-28  Peter Bartok  <pbartok@novell.com>
33196
33197         * Form.cs (get_CreateParams): Make sure we have an owner before using
33198           the owner variable. Implement proper default if no owner exists
33199
33200 2004-12-28  Peter Bartok  <pbartok@novell.com>
33201
33202         * In preparation for making Managed.Windows.Forms the default build target
33203           for System.Windows.Forms, the following stubbed files were added.
33204           Dialogs are currently being implemented by contributors and are only
33205           short-term place holders.
33206         * ColorDialog.cs: Initial check-in (minmal stub)
33207         * DataGrid.cs: Initial check-in (minimal stub)
33208         * DataGridLineStyle.cs: Initial check-in (minimal stub)
33209         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
33210         * DataGridTableStyle.cs: Initial check-in (minimal stub)
33211         * FontDialog.cs: Initial check-in (minimal stub)
33212         * FileDialog.cs: Initial check-in (minimal stub)
33213         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
33214         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
33215         * OpenFileDialog: Initial check-in (minimal stub)
33216         * IComponentEditorPageSite.cs: Initial check-in
33217         * Splitter.cs: Initial check-in (for Jackson)
33218         * SplitterEventArgs.cs: Initial check-in (for Jackson)
33219         * SplitterEventHandler.cs: Initial check-in (for Jackson)
33220         * TextBox.cs: Initial check-in; still needs some wiring to
33221           TextControl backend
33222         * Form.cs: Implemented ControlBox property
33223         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
33224         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
33225         * TextControl.cs: Added selection functionality; added todo header
33226         * TextBoxBase.cs:
33227           - Implemented Lines property
33228           - Implemented TextHeight property
33229           - Implemented SelectedText property
33230           - Implemented SelectionLength property
33231           - Implemented SelectAll method
33232           - Implemented ToString method
33233           - Removed and cleaned up some debug code
33234           - Implemented (still buggy) mouse text selection
33235
33236 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
33237
33238         * ComboBox.cs: Complete DropDownList implementation, fixes.
33239
33240 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
33241
33242         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
33243         * ComboBoxStyle.cs: ComboBoxStyle enum
33244         * ComboBox.cs: Initial work on ComboBox control
33245
33246 2004-12-21  Peter Bartok  <pbartok@novell.com>
33247
33248         * Control.cs (ctor, CreateParams): Moved setting of is_visible
33249           forward so that anything that creates a window gets the default,
33250           also no longer uses Visible property in CreateParams to avoid
33251           walking up the parent chain and possibly get the wrong visible
33252           status. Fixed IsVisible to no longer walk up to the parent.
33253
33254 2004-12-21  Peter Bartok  <pbartok@novell.com>
33255
33256         * Form.cs (ShowDialog): Unset modality for the proper window
33257  
33258 2004-12-20  Peter Bartok  <pbartok@novell.com>
33259
33260         * CommonDialog.cs: Initial check-in
33261
33262 2004-12-20  Peter Bartok  <pbartok@novell.com>
33263
33264         * Control.cs (Visible): Now uses the parent window instead of the
33265           client area window for the property
33266
33267         * Form.cs
33268           - ShowDialog(): Now uses the proper window for modality
33269           - The default visibility state for the form parent is now false. This
33270             will prevent the user from seeing all the changes to the form and
33271             its controls before the application hits Application.Run()
33272           - Removed some stale commented out code
33273
33274         * NativeWindow.cs:
33275           - Added FindWindow() method to have a method to check for existence
33276             of a window handle
33277           - Added ability to override default exception handling (for example
33278             when debugging with VS.Net; to do this the ExternalExceptionHandler
33279             define must be set
33280           - Removed some useless debug output
33281
33282         * XplatUIX11.cs:
33283           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
33284             not working as expected
33285           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
33286             property to allow switching back to the modal window if focus is
33287             given to another one of our windows (Application Modal)
33288           - Now only sets override_redirect if we create a window
33289             without WS_CAPTION
33290           - Moved EventMask selection before mapping of newly created window
33291             so we can catch the map event as well
33292           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
33293           - Added various Atom related DllImports
33294           - Implemented Exit() method
33295           - .ctor() : No longer shows window if WS_VISIBLE is not defined
33296             in the CreateParams
33297
33298         * MessageBox.cs: Now properly deals with the FormParent window by
33299           providing an override the FormParent CreateParams property to
33300           set as POPUP instead of OVERLAPPED window.
33301
33302 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
33303
33304         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
33305         Minor code cleanup.
33306
33307 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
33308         
33309         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
33310
33311 2004-12-18  Peter Bartok  <pbartok@novell.com>
33312
33313         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
33314           implementing SetModal() method
33315
33316 2004-12-18  Peter Bartok  <pbartok@novell.com>
33317
33318         * X11Structs.cs (XGCValues): Fixed type of function element
33319         * XplatUI.cs: Added ScrollWindow() method
33320         * XplatUIDriver.cs: Added ScrollWindow() abstract
33321         * XplatUIWin32.cs: Implemented ScrollWindow() method
33322         * XplatUIX11.cs: Implemented ScrollWindow() method
33323         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
33324
33325 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33326
33327         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
33328         Some more keyboard support (INCOMPLETE)
33329
33330 2004-12-17  Peter Bartok  <pbartok@novell.com>
33331
33332         * TextControl.cs:
33333         - Added color attribute to line tags.
33334         - Added color argument to all functions dealing with tags
33335         - Added color argument support to various functions
33336         - Fixed miss-calculation of baseline/shift in certain circumstances
33337
33338         * TextBoxBase.cs: Added new color option to test code
33339
33340 2004-12-17  Jackson Harper  <jackson@ximian.com>
33341
33342         * TreeNode.cs:
33343         * MonthCalendar.cs: Signature fixes
33344
33345 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33346
33347         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
33348         keyboard event moved it.  Create a new graphics context for each paint resolves this
33349
33350 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
33351
33352         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
33353         Make caret exist and go blink blink.  Initial keyboard support.
33354         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
33355         works.
33356
33357 2004-12-17  Jackson Harper  <jackson@ximian.com>
33358
33359         * XplatUIStructs.cs: Updated set of virtual keycodes.
33360         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
33361
33362 2004-12-17  Jackson Harper  <jackson@ximian.com>
33363
33364         * XplatUIX11.cs: Prune old keyboard code.
33365
33366 2004-12-17  Jackson Harper  <jackson@ximian.com>
33367
33368         * XplatUIX11.cs: When generating mouse wparams get the modifier
33369         keys from the ModifierKeys property.
33370
33371 2004-12-17  Jackson Harper  <jackson@ximian.com>
33372
33373         * X11Keyboard.cs: Send up/down input when generating
33374         messages. Remove some unused vars.
33375
33376 2004-12-17  Jackson Harper  <jackson@ximian.com>
33377
33378         * TabControl.cs:
33379         * TreeView.cs: get rid of warnings.
33380
33381 2004-12-17  Jackson Harper  <jackson@ximian.com>
33382
33383         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
33384
33385 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
33386
33387         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
33388           CheckedListBox.cs: Implementation
33389
33390 2004-12-17  Peter Bartok  <pbartok@novell.com>
33391
33392         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
33393
33394 2004-12-16  Peter Bartok  <pbartok@novell.com>
33395
33396         * TextControl.cs:
33397           - InsertCharAtCaret(): Fixed start pos fixup
33398           - CaretLine_get: No longer derives the line from the tag, the tag
33399             could be stale if lines in the document have been added or deleted
33400           - RebalanceAfterDelete(): Fixed bug in balancing code
33401           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
33402           - Line.Streamline(): Now can also elminate leading empty tags
33403           - DumpTree(): Added a few more tests and prevented exception on
33404             uninitialized data
33405           - Added Debug section for Combining lines
33406           - Delete(): Now copies all remaining properties of a line
33407           
33408         * TextBoxBase.cs:
33409           - Left mousebutton now sets the caret (and middle button still acts
33410             as formatting tester, which must go away soon)
33411           - Added Debug section for Deleting/Combining lines
33412           - Fixed calculations for UpdateView after Combining lines
33413
33414 2004-12-16  Peter Bartok  <pbartok@novell.com>
33415
33416         * TextControl.cs: Now properly aligns text on a baseline, using the
33417           new XplatUI.GetFontMetrics() method. Simplified several calculations
33418         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
33419           defined
33420
33421 2004-12-16  Peter Bartok  <pbartok@novell.com>
33422
33423         * XplatUI.cs: Added GetFontMetrics() method
33424         * XplatUIDriver.cs: Added GetFontMetrics() abstract
33425         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
33426           into libgdiplus, our private GetFontMetrics function
33427         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
33428         * XplatUIWin32.cs: Implemented GetFontMetrics() method
33429
33430 2004-12-16  Jackson Harper  <jackson@ximain.com>
33431
33432         * XplatUIStruct.cs: Add enum for dead keys
33433         * X11Keyboard.cs: Map and unmap dead keys.
33434
33435 2004-12-16  Jackson Harper  <jackson@ximian.com>
33436
33437         * X11Keyboard.cs: Detect and use the num lock mask.
33438
33439 2004-12-16  Peter Bartok  <pbartok@novell.com>
33440
33441         * Control.cs (CreateGraphics): Added check to make sure the
33442           handle of the window exists before calling Graphics.FromHwnd()
33443
33444 2004-12-16  Peter Bartok  <pbartok@novell.com>
33445
33446         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
33447           contains a lot of code that's not supposed to be there for the
33448           real thing, but required for developing/testing the textbox
33449           backend.
33450
33451 2004-12-16  Peter Bartok  <pbartok@novell.com>
33452
33453         * TextControl.cs:
33454         - Fixed Streamline method
33455         - Added FindTag method to Line
33456         - Added DumpTree method for debugging
33457         - Added DecrementLines() method for deleting lines
33458         - Fixed UpdateView to update the cursor to end-of-line on single-line
33459           updates
33460         - Added PositionCaret() method
33461         - Fixed MoveCaret(LineDown) to move into the last line, too
33462         - Added InsertChar overload
33463         - Fixed InsertChar tag offset calculations
33464         - Added DeleteChar() method
33465         - Added Combine() method for folding lines
33466         - Fixed Delete() method, no longer allocates wasted Line object and
33467           now copies all properties when swapping nodes
33468         - Delete() method now updates document line counter
33469
33470 2004-12-15  Jackson Harper  <jackson@ximian.com>
33471
33472         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
33473         * X11Keyboard.cs: Expose the currently selected modifier keys
33474         through a property.
33475
33476 2004-12-15  Peter Bartok  <pbartok@novell.com>
33477
33478         * TextControl.cs: Initial check-in. Still incomplete
33479
33480 2004-12-15  Jackson Harper  <jackson@ximian.com>
33481
33482         * TreeNode.cs:
33483         * TreeView.cs: Fix build on csc (second time today ;-))
33484
33485 2004-12-15  Jackson Harper  <jackson@ximian.com>
33486
33487         * TreeView.cs: Store the treenodes plus/minus box bounds when it
33488         is calculated and use this for click testing.
33489         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
33490
33491 2004-12-15  Jackson Harper  <jackson@ximian.com>
33492
33493         * TreeView.cs: Pass the nodes image index to the image list when
33494         drawing that image.
33495
33496 2004-12-15  Jackson Harper  <jackson@ximian.com>
33497
33498         * X11Keyboard.cs: Set messages hwnd.
33499         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
33500         post_message calls.
33501
33502 2004-12-15  Jackson Harper  <jackson@ximian.com>
33503
33504         * X11Keyboard.cs: Fix to compile with csc.
33505         
33506 2004-12-15  Jackson Harper  <jackson@ximian.com>
33507
33508         * X11Structs.cs: Add key mask values
33509         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
33510         * X11Keyboard.cs: New file - Extrapolates and interpolates key
33511         down/up foo into WM_CHAR foo
33512         * KeyboardLayouts.cs: Common keyboard layouts
33513         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
33514         post messages into the main queue.
33515
33516 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
33517
33518         * Button.cs: implement ProcessMnemonic
33519         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
33520           brushes everytime
33521         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
33522         * ButtonBase.cs: Show HotkeyPrefix (not the &)
33523
33524 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
33525         
33526         * MonthCalendar.cs: Implemented click-hold for next/previous month
33527           and date selection
33528           
33529 2004-12-11  Peter Bartok  <pbartok@novell.com>
33530
33531         * X11Structs.cs:
33532           - Added XKeyboardState (moved from XplatUIX11.cs)
33533           - Added XCreateGC related enums and structures
33534           - Added GXFunction for XSetFunction
33535
33536         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
33537
33538         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
33539           CaretVisible() calls
33540
33541         * ToolTip.cs: Added code to prevent stealing focus from app windows
33542
33543         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
33544           DestroyCaret, SetCaretPos and CaretVisible)
33545
33546         * XplatUIX11.cs:
33547           - Added implementation for caret functions
33548           - Moved hover variables into a struct, to make it a bit easier
33549             on the eyes and to debug
33550           - Removed XKeyboardState (moved to XplatUIX11.cs)
33551           - Moved Keyboard properties into the properties region
33552
33553         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
33554           call to get a graphics context for our control
33555
33556         * XplatUIOSX.cs: Added empty overrides for the new caret functions
33557
33558         * TreeView.cs: Fixed bug. No matter what color was set it would always
33559           return SystemColors.Window
33560
33561         * XplatUIWin32.cs: Implemented caret overrides
33562
33563 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
33564
33565         * ListBox.cs: fire events, implement missing methods and properties,
33566         sorting.
33567
33568 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
33569
33570         * MonthCalendar.cs: invalidation bug fixing
33571         * ThemeWin32Classic.cs: paint fixing
33572
33573 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
33574
33575         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
33576         prepare the CGContextRef there now.
33577
33578 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
33579
33580         * MonthCalendar.cs:
33581           - optimisationL only invalidate areas that have changed
33582         * ThemeWin32Classic.cs:
33583           - only paint parts that intersect with clip_area
33584
33585 2004-12-09  Peter Bartok  <pbartok@novell.com>
33586
33587         * Application.cs: Undid changes from r37004 which cause problems
33588         on X11
33589
33590 2004-12-09  Ravindra  <rkumar@novell.com>
33591
33592         * ToolBar.cs: Added support for displaying ContextMenu
33593         attached to a button on ToolBar.
33594         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
33595         property.
33596
33597 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
33598
33599         * Label.cs: autosize works in text change and removes unnecessary
33600         invalidate
33601
33602 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
33603
33604         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
33605         remove warnings
33606
33607 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
33608
33609         * XplatUIOSX.cs: Added mouse move/click/grab support
33610         Remove some debugging WriteLines not needed anymore.
33611         Add window resizing/positioning.
33612         Fix visibility on reparenting.
33613
33614 2004-12-08  Peter Bartok  <pbartok@novell.com>
33615
33616         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
33617
33618 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
33619
33620         * XplatUIOSX.cs: Initial checkin
33621         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
33622
33623 2004-12-03  Ravindra <rkumar@novell.com>
33624
33625         * ListView.cs: Added some keybindings and fixed scrolling.
33626         ScrollBars listen to ValueChanged event instead of Scroll
33627         Event. This would let us take care of all changes being
33628         done in the scrollbars' values programmatically or manually.
33629         * ListView.cs (CanMultiselect): Added a check for shift key.
33630         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
33631         * ListViewItem.cs (Clone): Fixed. We need to make a copy
33632         of ListViewSubItemCollection as well.
33633
33634 2004-12-06  Peter Bartok <pbartok@novell.com>
33635
33636         * Control.cs (Parent): Added check and exception to prevent
33637         circular parenting
33638
33639 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
33640
33641         * ListBox.cs: implemented clipping, selection single and multiple,
33642         bug fixing
33643
33644 2004-12-03  Ravindra <rkumar@novell.com>
33645
33646         * ListView.cs (ListView_KeyDown):
33647         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
33648         when CTRL key is pressed.
33649         * ListViewItem.cs (Selected): Fixed setting the property.
33650
33651 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
33652
33653         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
33654
33655         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
33656         MinimizeBox, ShowInTaskbar, TopMost properties.
33657
33658         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
33659         will be implemented).
33660
33661 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
33662
33663         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
33664
33665         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
33666         tests.
33667         
33668         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
33669         
33670         * TreeView.cs: BackColor is Colors.Window.
33671
33672 2004-12-01  Jackson Harper  <jackson@ximian.com>
33673
33674         * TreeView.cs: When resizing the tree if the user is making it
33675         smaller we don't get expose events, so we need to handle adding
33676         the horizontal scrollbar in the size changed handler as well as
33677         the expose handler.
33678
33679 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
33680
33681         * DrawItemState.cs: fixes wrong enum values
33682
33683 2004-12-01  Jackson Harper  <jackson@ximian.com>
33684
33685         * TreeView.cs: Resize the hbar as well as the vbar on resize.
33686
33687 2004-12-01  Jackson Harper  <jackson@ximian.com>
33688
33689         * NodeLabelEditEventArgs.cs:
33690         * NodeLabelEditEventHandler.cs:
33691         * OpenTreeNodeEnumerator.cs:
33692         * TreeNode.cs:
33693         * TreeNodeCollection.cs:
33694         * TreeView.cs:
33695         * TreeViewAction.cs:
33696         * TreeViewCancelEventArgs.cs:
33697         * TreeViewCancelEventHandler.cs:
33698         * TreeViewEventArgs.cs:
33699         * TreeViewEventHandler.cs: Initial implementation.
33700
33701 2004-12-01  Ravindra <rkumar@novell.com>
33702
33703         * ListView.cs (CalculateListView): Fixed scrolling related
33704         calculations. Also, removed some debug statements from other
33705         places.
33706         * ListViewItem.cs: Changed access to 'selected' instance variable
33707         from private to internal.
33708         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
33709
33710 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
33711
33712         * ThemeWin32Classic.cs: remove cache of brush and pens for
33713         specific controls and use the global system, fixes scrollbutton
33714         bugs (for small sizes, disabled, etc)
33715         
33716         * ScrollBar.cs: does not show the thumb for very small controls
33717         (as MS) and allow smaller buttons that the regular size
33718
33719 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
33720
33721         * UpDownBase.cs: Add abstract methods for the interface.
33722         Add new virtual methods (need to be hooked up to TextEntry when it
33723         exists).
33724         Add override methods for most features.
33725         Computes the size, forces the height of the text entry.
33726
33727         * NumericUpDown.cs: Put here the current testing code.
33728
33729         * Set eol-style property on all files that do not have mixed line
33730         endings, to minimize the future problems.  There are still a few
33731         files with mixed endings, and someone should choose whether they
33732         want to move it or not.
33733
33734 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
33735
33736         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
33737         System.Colors
33738         
33739 2004-11-30  Ravindra <rkumar@novell.com>
33740
33741         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
33742         drawing and replaced use of SystemColors by theme colors.
33743         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
33744         * ListView.cs (ListViewItemCollection.Add): Throw exception when
33745         same ListViewItem is being added more than once.
33746
33747 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
33748
33749         * MonthCalendar.cs:
33750           - ControlStyles love to make the control not flicker
33751           
33752 2004-11-30  Peter Bartok  <pbartok@novell.com>
33753
33754         * CharacterCasing.cs: Added
33755
33756 2004-11-29  Peter Bartok  <pbartok@novell.com>
33757
33758         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33759           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
33760           I am removing these files as they conflict with already completed
33761           work. While it is fantastic to get contributions to MWF, I
33762           respectfully ask that everyone please coordinate their contributions
33763           through mono-winforms-list or #mono-winforms at this time. We're
33764           explicitly avoiding stubbing and don't want controls that don't have
33765           their basic functionality implemented in svn. Please also see
33766           http://www.mono-project.com/contributing/winforms.html
33767
33768
33769 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
33770
33771         * Application.cs (ModalRun): Don't hang after exit.
33772
33773         * Theme.cs: New TreeViewDefaultSize property.
33774
33775         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
33776         with less hardcoded SystemColors constant.
33777         Implemented TreeViewDefaultSize.
33778
33779         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
33780         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
33781
33782
33783 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
33784
33785         * MonthCalendar.cs:
33786           - Fix NextMonthDate and PrevMonthDate click moving calendar
33787
33788 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
33789
33790         * MonthCalendar.cs:
33791           - Fix usage of ScrollChange Property when scrolling months
33792
33793 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
33794
33795         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
33796          - Fixes menu destroying
33797          - Support adding and removing items on already created menus
33798
33799 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
33800
33801         * MonthCalendar.cs:
33802           - Re-worked all bolded dates handling to match win32
33803         * ThemeWin32Classic.cs:
33804           - Fixed rendering with bolded dates
33805
33806 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
33807
33808         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
33809         - Horizontal scroolbar
33810         - Multicolumn
33811         - Fixes
33812
33813
33814 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
33815
33816         * MonthCalendar.cs:
33817           - Fix Usage of MaxSelectionCount from SelectionRange
33818           - Fixed Shift + Cursor Selection
33819           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
33820           - Fixed normal cursor selection to be compat with win32
33821           - Fixed Shift + Mouse Click selection
33822
33823 2004-11-24  Peter Bartok <pbartok@novell.com>
33824
33825         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
33826         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
33827         * XplatUIX11.cs:
33828           - CreatedKeyBoardMsg now updates keystate with Alt key
33829           - Added workaround for timer crash to CheckTimers, Jackson will
33830             develop a proper fix and check in later
33831           - Implemented DispatchMessage
33832           - Removed calling the native window proc from GetMessage (call
33833             now moved to DispatchMessage)
33834
33835         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
33836           the keydata (Fixes bug #69831)
33837
33838         * XplatUIWin32.cs:
33839           - (DispatchMessage): Switched to return IntPtr
33840           - Added DllImport for SetFocus
33841
33842 2004-11-24  Ravindra <rkumar@novell.com>
33843
33844         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
33845         background drawing.
33846         * ListViewItem.cs: Fixed various properties, calculations
33847         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
33848         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
33849         and some internal properties. Fixed MouseDown handler and Paint
33850         method.
33851
33852 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
33853
33854         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
33855
33856 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
33857
33858         * ContainerControl.cs: correct accidental check in of local changes
33859
33860 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
33861
33862         * ThemeWin32Classic.cs:
33863                 - Fixed Drawing Last month in grid (sometimes not showing)
33864         * MonthCalendar.cs:
33865                 - Fixed title width calculation bug (makeing title small)
33866
33867 2004-11-23  Peter Bartok <pbartok@novell.com>
33868
33869         * XplatUIX11.cs:
33870           - Added generation of WM_MOUSEHOVER event
33871           - Added missing assignment of async_method atom
33872           - Fixed WM_ERASEBKGND; now only redraws the exposed area
33873
33874 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
33875
33876         * ThemeWin32Classic.cs:
33877                 - Fixed Drawing of today circle when showtodaycircle not set
33878                 - fixed drawing of first and last month in the grid (gay dates)
33879         * MonthCalendar.cs:
33880                 - Fixed Drawing of today circle
33881                 - Fixed drawing of grady dates
33882                 - Fixed HitTest for today link when ShowToday set to false
33883                 - Fixed DefaultSize to obey ShowToday
33884
33885 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
33886
33887         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
33888         * System.Windows.Forms/Theme.cs
33889         * MonthCalendar.cs: added for MonthCalendar
33890         * SelectionRange.cs: added for MonthCalendar
33891         * Day.cs: added for MonthCalendar: added for MonthCalendar
33892         * DateRangeEventArgs.cs: added for MonthCalendar
33893         * DateRangeEventHandler.cs: added for MonthCalendar
33894
33895 2004-11-22  Ravindra <rkumar@novell.com>
33896
33897         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
33898         property.
33899
33900 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
33901
33902         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
33903         event handler.
33904         
33905         * NumericUpDown.cs: Added new implementation.
33906         * UpDownBase.cs: Added new implementation.
33907
33908         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
33909         implementations.
33910         
33911         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
33912         implementations.
33913
33914         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
33915         methods.
33916
33917 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
33918
33919         * Timer.cs  (Dispose): Should call the base dispose when
33920         overriding.
33921
33922 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
33923
33924         * ScrollBar.cs: updates thumb position when max, min or increment
33925         is changed
33926
33927 2004-11-21  Ravindra <rkumar@novell.com>
33928
33929         * ListView.cs: Implemented item selection, activation and
33930         column header style. Fixed properties to do a redraw, if
33931         required. Added support for MouseHover, DoubleClick, KeyDown
33932         and KeyUp event handling and some minor fixes.
33933         * ListViewItem.cs: Fixed constructor.
33934         * ThemeWin32Classic.cs: Improved drawing for ListView.
33935
33936 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
33937
33938         * ThemeWin32Classic.cs: initial listbox drawing code
33939         * DrawMode.cs: new enumerator
33940         * ListControl.cs: stubbed class
33941         * ListBox.cs: initial implementation
33942         * Theme.cs: new methods definitions
33943         * SelectionMode.cs: new enumerator
33944
33945 2004-11-17  Peter Bartok  <pbartok@novell.com>
33946
33947         * XplatUIWin32.cs: Added double-click events to the class style
33948         * Control.cs (WndProc):
33949           - Added handling of click-count to MouseDown/ MouseUp events.
33950           - Added handling of middle and right mouse buttons
33951           - Removed old debug code
33952
33953 2004-11-17  Jackson Harper  <jackson@ximian.com>
33954
33955         * XplatUIX11.cs: Use the new Mono.Unix namespace.
33956
33957 2004-11-17  Ravindra <rkumar@novell.com>
33958
33959         * ListView.cs: Added event handling for MouseMove/Up/Down.
33960         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
33961         * ThemeWin32Classic.cs: We need to clear the graphics context and
33962         draw column header in a proper state.
33963
33964
33965 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
33966
33967         *  Menu.cs: fixes signature
33968
33969 2004-11-16  Peter Bartok  <pbartok@novell.com>
33970
33971         * XplatUIX11.cs (GetMessage): Implemented generation of
33972           double click mouse messages
33973
33974 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
33975
33976         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
33977         not by menu
33978
33979 2004-11-11  Peter Bartok  <pbartok@novell.com>
33980
33981         * HandleData.cs: Added Visible property
33982         * XplatUIX11.cs (IsVisible): Now uses Visible property from
33983           HandleData
33984         * XplatUIX11.cs: Removed old debug leftovers
33985         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
33986         * Control.cs (WndProc): Removed old debug leftovers,
33987           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
33988           needed WM_SIZE handling
33989
33990 2004-11-11  Jackson Harper  <jackson@ximian.com>
33991
33992         * OwnerDrawPropertyBag.cs:
33993         * TreeViewImageIndexConverter.cs: Initial implementation
33994
33995 2004-11-10  Jackson Harper  <jackson@ximian.com>
33996
33997         * ThemeWin32Classic.cs:
33998         * TabControl.cs: instead of moving tabs by the slider pos just
33999         start drawing at the tab that is offset by the slider. This way
34000         scrolling always moves by exactly one tab.
34001
34002 2004-11-10  Jackson Harper  <jackson@ximian.com>
34003
34004         * TabControl.cs: You can only scroll left when the slider has
34005         already ben moved right.
34006         
34007 2004-11-10  Jackson Harper  <jackson@ximian.com>
34008
34009         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
34010         the clip area.
34011         
34012 2004-11-10  Jackson Harper  <jackson@ximian.com>
34013
34014         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
34015         clip area.
34016         
34017 2004-11-09  Jackson Harper  <jackson@ximian.com>
34018
34019         * TabControl.cs (CalcXPos): New helper method so we can determine
34020         the proper place to start drawing vertical tabs.
34021         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
34022         
34023 2004-11-09  Jackson Harper  <jackson@ximian.com>
34024
34025         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
34026         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
34027         and Bottom, left and right are illegal values for this and
34028         multiline is enabled when the alignment is set to left or right.
34029         (DrawTab): Each alignment block should draw the text itself now
34030         because Left requires special love. Also add rendering for Left
34031         aligned tabs.
34032         
34033 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
34034
34035         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
34036         does not destroy the windows, removes debugging messages
34037
34038 2004-11-09  jba  <jba-mono@optusnet.com.au>
34039
34040         * ThemeWin32Classic.cs
34041         (DrawButtonBase): Fix verticle text rect clipping in windows
34042         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34043         rendering and incorrect text rect clipping
34044         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34045         rendering and incorrect text rect clipping
34046         
34047 2004-11-08  Jackson Harper  <jackson@ximian.com>
34048
34049         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
34050         bottom when they are bottom aligned so the bottoms of the tabs get
34051         displayed.
34052         * TabControl.cs (DropRow): Move rows up instead of down when the
34053         tab control is bottom aligned.
34054
34055 2004-11-08 13:59  pbartok
34056
34057         * XplatUIX11.cs:
34058           - Added handling for various window styles
34059           - Added handling for popup windows
34060           - Added SetTopmost handling
34061
34062 2004-11-08 13:55  pbartok
34063
34064         * XplatUIWin32.cs:
34065           - Added argument to SetTopmost method
34066           - Fixed broken ClientToScreen function
34067
34068 2004-11-08 13:53  pbartok
34069
34070         * XplatUIStructs.cs:
34071           - Added missing WS_EX styles
34072
34073 2004-11-08 13:53  pbartok
34074
34075         * XplatUI.cs, XplatUIDriver.cs:
34076           - Added argument to SetTopmost
34077
34078 2004-11-08 13:52  pbartok
34079
34080         * X11Structs.cs:
34081           - Added XSetWindowAttributes structure
34082           - Improved XWindowAttributes structure
34083           - Added SetWindowValuemask enum
34084           - Added window creation arguments enum
34085           - Added gravity enum
34086           - Added Motif hints structure
34087           - Added various Motif flags and enums
34088           - Added PropertyMode enum for property functions
34089
34090 2004-11-08 13:50  pbartok
34091
34092         * Form.cs:
34093           - Fixed arguments for updated SetTopmost method
34094
34095 2004-11-08 13:49  pbartok
34096
34097         * ToolTip.cs:
34098           - Fixed arguments for updated SetTopmost function
34099           - Fixed usage of PointToClient
34100
34101 2004-11-08 13:44  pbartok
34102
34103         * MenuAPI.cs:
34104           - Added Clipping of children and siblings
34105
34106 2004-11-08 13:41  pbartok
34107
34108         * MainMenu.cs:
34109           - Removed SetMenuBarWindow call. We do this in Form.cs
34110
34111 2004-11-08 13:40  jackson
34112
34113         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
34114           scrolling jimmi in the correct location with bottom aligned tabs
34115
34116 2004-11-08 13:36  pbartok
34117
34118         * ContainerControl.cs:
34119           - Implemented BindingContext
34120           - Implemented ParentForm
34121
34122 2004-11-08 12:46  jackson
34123
34124         * TabControl.cs: Put bottom rendered tabs in the right location
34125
34126 2004-11-08 07:15  jordi
34127
34128         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
34129           removes dead code
34130
34131 2004-11-05 17:30  jackson
34132
34133         * TabControl.cs: When selected tabs are expanded make sure they
34134           don't go beyond the edges of the tab control
34135
34136 2004-11-05 14:57  jackson
34137
34138         * TabControl.cs: Reset show_slider so if the control is resized to
34139           a size where it is no longer needed it's not displayed anymore
34140
34141 2004-11-05 13:16  jackson
34142
34143         * TabControl.cs: Make tab pages non visible when added to the
34144           control
34145
34146 2004-11-05 12:42  jackson
34147
34148         * TabControl.cs: Implement SizeMode.FillToRight
34149
34150 2004-11-05 12:16  jackson
34151
34152         * Control.cs: Do not call CreateHandle if the handle is already
34153           created
34154
34155 2004-11-05 11:46  jackson
34156
34157         * TabControl.cs: Remove superflous call to CalcTabRows
34158
34159 2004-11-05 09:07  jackson
34160
34161         * XplatUIX11.cs: Update for Mono.Posix changes
34162
34163 2004-11-05 07:00  ravindra
34164
34165         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
34166           scrolling.
34167
34168 2004-11-04 22:47  jba
34169
34170         * ThemeWin32Classic.cs:
34171           - Fix Button rendering for FlatStyle = Flat or Popup
34172           - Fix RadioButton and CheckBox rendering when Appearance = Button
34173             (normal and flatstyle).
34174           - Correct outer rectangle color when drawing focus rectangle
34175           - Adjust button bounds to be 1 px smaller when focused
34176           - Make button not draw sunken 3d border when pushed (windows compat)
34177           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
34178           - Offset the text in RadioButton and Checkbox when being rendered as
34179           a button.
34180           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
34181           radiobuttons
34182           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
34183           - Fixed disabled text rendering for normally rendered radiobuttons
34184
34185 2004-11-04 10:26  jackson
34186
34187         * TabControl.cs: Recalculate tab rows when resizing
34188
34189 2004-11-04 07:47  jordi
34190
34191         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
34192           collection completion, drawing issues, missing features
34193
34194 2004-11-04 05:03  ravindra
34195
34196         * ScrollBar.cs:
34197                 - We need to recalculate the Thumb area when
34198                 LargeChange/maximum/minimum values are changed.
34199           - We set the 'pos' in UpdatePos() method to minimum, if it's less
34200                 than minimum. This is required to handle the case if large_change is
34201                 more than max, and use LargeChange property instead of large_change
34202                 variable.
34203           - We return max+1 when large_change is more than max, like MS does.
34204
34205 2004-11-04 04:29  ravindra
34206
34207         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
34208                 - Changed default value signatures (prefixed all with ListView).
34209                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
34210                 ListView.
34211           - Fixed calculations for ListViewItem and implemented Clone()
34212           method.
34213
34214 2004-11-04 04:26  ravindra
34215
34216         * Theme.cs, ThemeWin32Classic.cs:
34217                 - Changed default ListView values signatures (prefixed all with
34218                 ListView).
34219           - Fixed default size values for VScrollBar and HScrollBar.
34220                 - Fixed DrawListViewItem method.
34221
34222 2004-11-04 04:05  ravindra
34223
34224         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
34225
34226 2004-11-04 04:04  ravindra
34227
34228         * ImageList.cs: Implemented the missing overload for Draw method.
34229
34230 2004-11-03 19:29  jackson
34231
34232         * TabControl.cs: Handle dropping rows on selection properly
34233
34234 2004-11-03 11:59  jackson
34235
34236         * TabControl.cs: remove debug code
34237
34238 2004-11-03 11:52  jackson
34239
34240         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
34241           the scrolly widgerywoo
34242
34243 2004-11-02 13:52  jackson
34244
34245         * TabControl.cs: Resize the tab pages and tabs when the tab control
34246           is resized
34247
34248 2004-11-02 13:40  jackson
34249
34250         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
34251           selected tab to the bottom
34252
34253 2004-11-02 13:39  jackson
34254
34255         * TabPage.cs: Store the tab pages row
34256
34257 2004-11-02 12:33  jordi
34258
34259         * MenuItem.cs: fixes handle creation
34260
34261 2004-11-02 11:42  jackson
34262
34263         * TabControl.cs: signature fix
34264
34265 2004-11-02 08:56  jackson
34266
34267         * TabControl.cs: Calculate whether the tab is on an edge properly.
34268           Remove top secret debugging code
34269
34270 2004-11-01 19:57  jackson
34271
34272         * TabControl.cs: Add click handling, and proper sizing
34273
34274 2004-11-01 19:47  jackson
34275
34276         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
34277           tab controls
34278
34279 2004-11-01 19:39  jackson
34280
34281         * TabPage.cs: add internal property to store the bounds of a tab
34282           page
34283
34284 2004-10-30 04:23  ravindra
34285
34286         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
34287           values.
34288
34289 2004-10-30 04:21  ravindra
34290
34291         * ListView.cs, ListViewItem.cs: Added support for scrolling and
34292           fixed calculations.
34293
34294 2004-10-30 03:06  pbartok
34295
34296         * XplatUIX11.cs:
34297           - Removed extension of DllImported libs
34298
34299 2004-10-29 09:55  jordi
34300
34301         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
34302           navigation, itemcollection completion, menu fixes
34303
34304 2004-10-27 22:58  pbartok
34305
34306         * XplatUIX11.cs:
34307           - Now throws a nice error message when no X display could be opened
34308
34309 2004-10-26 13:51  jordi
34310
34311         * ListView.cs: removes warning
34312
34313 2004-10-26 03:55  ravindra
34314
34315         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
34316           ThemeWin32Classic.cs: Some formatting for my last checkins.
34317
34318 2004-10-26 03:36  ravindra
34319
34320         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
34321           control and default values.
34322
34323 2004-10-26 03:35  ravindra
34324
34325         * Theme.cs: Added some default values for ListView control.
34326
34327 2004-10-26 03:33  ravindra
34328
34329         * ToolBar.cs: ToolBar should use the user specified button size, if
34330           there is any. Added a size_specified flag for the same.
34331
34332 2004-10-26 03:33  ravindra
34333
34334         * ColumnHeader.cs: Added some internal members and calculations for
34335           ColumnHeader.
34336
34337 2004-10-26 03:32  ravindra
34338
34339         * ListViewItem.cs: Calculations for ListViewItem.
34340
34341 2004-10-26 03:31  ravindra
34342
34343         * ListView.cs: Added some internal members and calculations for
34344           ListView.
34345
34346 2004-10-22 13:31  jordi
34347
34348         * MenuAPI.cs: speedup menus drawing
34349
34350 2004-10-22 13:16  jackson
34351
34352         * XplatUIX11.cs: Make sure to update exposed regions when adding an
34353           expose event
34354
34355 2004-10-22 11:49  jackson
34356
34357         * Control.cs: oops
34358
34359 2004-10-22 11:41  jackson
34360
34361         * Control.cs: Check to see if the window should have its background
34362           repainted by X when drawing.
34363
34364 2004-10-22 11:31  jackson
34365
34366         * XplatUIX11.cs: When invalidating areas only use XClearArea if
34367           clear is true, this way we do not get flicker from X repainting the
34368           background
34369
34370 2004-10-22 11:28  jackson
34371
34372         * XEventQueue.cs: Queue properly
34373
34374 2004-10-21 09:38  jackson
34375
34376         * XEventQueue.cs: Fix access modifier
34377
34378 2004-10-21 09:36  jackson
34379
34380         * XEventQueue.cs: Don't loose messages
34381
34382 2004-10-21 09:22  jackson
34383
34384         * XEventQueue.cs: Don't loose messages
34385
34386 2004-10-20 04:15  jordi
34387
34388         * BootMode.cs: enum need it by SystemInfo
34389
34390 2004-10-19 21:58  pbartok
34391
34392         * XplatUIWin32.cs:
34393           - Small sanity check
34394
34395 2004-10-19 21:56  pbartok
34396
34397         * Form.cs:
34398           - Added private FormParentWindow class which acts as the container
34399             for our form and as the non-client area where menus are drawn
34400           - Added/Moved required tie-ins to Jordi's menus
34401           - Fixed/Implemented the FormStartPosition functionality
34402
34403 2004-10-19 21:52  pbartok
34404
34405         * Control.cs:
34406           - Removed unneeded locals
34407           - Added code to all size and location properties to understand and
34408             deal with the parent container of Form
34409
34410 2004-10-19 21:33  pbartok
34411
34412         * Application.cs:
34413           - Fixed to deal with new Form subclasses for menus
34414
34415 2004-10-19 17:48  jackson
34416
34417         * XEventQueue.cs: commit correct version of file
34418
34419 2004-10-19 16:50  jackson
34420
34421         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
34422
34423 2004-10-19 16:15  jordi
34424
34425         * MenuAPI.cs: MenuBarCalcSize returns the height
34426
34427 2004-10-19 08:31  pbartok
34428
34429         * Control.cs:
34430           - Added missing call to PreProcessMessage before calling OnXXXKey
34431           methods
34432
34433 2004-10-19 00:04  ravindra
34434
34435         * ToolTip.cs: Fixed constructor.
34436
34437 2004-10-18 09:31  jordi
34438
34439         * MenuAPI.cs: menuitems in menubars do not have shortcuts
34440
34441 2004-10-18 09:26  jordi
34442
34443         * MenuItem.cs: fixes MenuItem class signature
34444
34445 2004-10-18 08:56  jordi
34446
34447         * MenuAPI.cs: prevents windows from showing in the taskbar
34448
34449 2004-10-18 00:28  ravindra
34450
34451         * ToolTip.cs: Suppressed a warning message.
34452
34453 2004-10-18 00:27  ravindra
34454
34455         * Control.cs: Default value of visible property must be true.
34456
34457 2004-10-17 23:19  pbartok
34458
34459         * ToolTip.cs:
34460           - Complete implementation
34461
34462 2004-10-17 23:19  pbartok
34463
34464         * XplatUIX11.cs:
34465           - Added EnableWindow method
34466           - Added SetModal stub
34467           - Added generation of WM_ACTIVATE message (still needs testing)
34468           - Added SetTopMost stub
34469           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
34470
34471 2004-10-17 23:17  pbartok
34472
34473         * XplatUIWin32.cs:
34474           - Removed VirtualKeys to XplatUIStructs
34475           - Implemented SetTopMost method
34476           - Implemented EnableWindow method
34477           - Bugfix in ScreenToClient()
34478           - Bugfixes in ClientToScreen()
34479
34480 2004-10-17 22:51  pbartok
34481
34482         * XplatUIStructs.cs:
34483           - Added WS_EX styles to WindowStyles enumeration
34484
34485 2004-10-17 22:50  pbartok
34486
34487         * XplatUI.cs, XplatUIDriver.cs:
34488           - Added method for enabling/disabling windows
34489           - Added method for setting window modality
34490           - Added method for setting topmost window
34491
34492 2004-10-17 22:49  pbartok
34493
34494         * ThemeWin32Classic.cs:
34495           - Added ToolTip drawing code
34496
34497 2004-10-17 22:49  pbartok
34498
34499         * Theme.cs:
34500           - Added ToolTip abstracts
34501
34502 2004-10-17 22:47  pbartok
34503
34504         * Form.cs:
34505           - Fixed Form.ControlCollection to handle owner relations
34506           - Added Owner/OwnedForms handling
34507           - Implemented Z-Ordering for owned forms
34508           - Removed unneeded private overload of ShowDialog
34509           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
34510             so I hope)
34511           - Fixed Close(), had wrong default
34512           - Added firing of OnLoad event
34513           - Added some commented out debug code for Ownership handling
34514
34515 2004-10-17 22:16  pbartok
34516
34517         * Control.cs:
34518           - Fixed/implemented flat list of controls
34519
34520 2004-10-17 22:14  pbartok
34521
34522         * Application.cs:
34523           - Added code to simulate modal dialogs on Win32
34524
34525 2004-10-17 16:11  jordi
34526
34527         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
34528           mouse event
34529
34530 2004-10-17 13:39  jordi
34531
34532         * MenuAPI.cs: menu drawing fixes
34533
34534 2004-10-15 09:10  ravindra
34535
34536         * StructFormat.cs: General Enum.
34537
34538 2004-10-15 09:09  ravindra
34539
34540         * SizeGripStyle.cs: Enum for Form.
34541
34542 2004-10-15 09:08  ravindra
34543
34544         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
34545           in Theme for ListView.
34546
34547 2004-10-15 09:06  ravindra
34548
34549         * ColumnHeader.cs: Flushing some formatting changes.
34550
34551 2004-10-15 09:05  ravindra
34552
34553         * ListViewItem.cs: Implemented GetBounds method and fixed coding
34554           style.
34555
34556 2004-10-15 09:03  ravindra
34557
34558         * ListView.cs: Implemented Paint method and fixed coding style.
34559
34560 2004-10-15 07:34  jordi
34561
34562         * MenuAPI.cs: fix for X11
34563
34564 2004-10-15 07:32  ravindra
34565
34566         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
34567                 - Renamed Paint() method to Draw() for clarity. Also, moved
34568                 DrawImage() to OnPaint().
34569
34570 2004-10-15 07:25  ravindra
34571
34572         * CheckBox.cs, RadioButton.cs:
34573                 - Removed Redraw (), we get it from ButtonBase.
34574                 - Implemented Paint (), to do class specific painting.
34575
34576 2004-10-15 07:16  ravindra
34577
34578         * ButtonBase.cs:
34579                 - Redraw () is not virtual now.
34580                 - Added an internal virtual method Paint (), so that
34581                 derived classes can do their painting on their own.
34582                 - Modified OnPaint () to call Paint ().
34583
34584 2004-10-15 06:43  jordi
34585
34586         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
34587           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
34588
34589 2004-10-15 00:30  ravindra
34590
34591         * MessageBox.cs:
34592                 - MessageBox on windows does not have min/max buttons.
34593                 This change in CreateParams fixes this on Windows. We
34594                 still need to implement this windowstyle behavior in
34595                 our X11 driver.
34596
34597 2004-10-14 05:14  ravindra
34598
34599         * ToolBar.cs:
34600                 - Changed Redraw () to do a Refresh () always.
34601                 - Fixed the MouseMove event handling when mouse is pressed,
34602                 ie drag event handling.
34603                 - Replaced the usage of ToolBarButton.Pressed property to
34604                 ToolBarButton.pressed internal variable.
34605
34606 2004-10-14 05:10  ravindra
34607
34608         * ToolBarButton.cs:
34609                 - Added an internal member 'inside' to handle mouse move
34610                 with mouse pressed ie mouse drag event.
34611                 - Changed 'Pressed' property to return true only when
34612                 'inside' and 'pressed' are both true.
34613                 - Some coding style love.
34614
34615 2004-10-14 00:17  ravindra
34616
34617         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
34618           public method.
34619
34620 2004-10-14 00:15  ravindra
34621
34622         * ButtonBase.cs: Redraw () related improvements.
34623
34624 2004-10-14 00:14  ravindra
34625
34626         * MessageBox.cs: Moved InitFormSize () out of Paint method and
34627           removed unnecessary calls to Button.Show () method.
34628
34629 2004-10-13 17:50  pbartok
34630
34631         * XplatUIX11.cs:
34632           - Formatting fix
34633           - Removed destroying of window until we solve the problem of X
34634             destroying the window before us on shutdown
34635
34636 2004-10-13 16:32  pbartok
34637
34638         * ButtonBase.cs:
34639           - Now Redraws on MouseUp for FlatStyle Flat and Popup
34640
34641 2004-10-13 14:18  pbartok
34642
34643         * XplatUIX11.cs:
34644           - Added code to destroy the X window
34645
34646 2004-10-13 14:18  pbartok
34647
34648         * XplatUIWin32.cs:
34649           - Added code to destroy a window
34650
34651 2004-10-13 14:12  pbartok
34652
34653         * ButtonBase.cs:
34654           - Added the Redraw on Resize that got dropped in the last rev
34655
34656 2004-10-13 09:06  pbartok
34657
34658         * ThemeWin32Classic.cs:
34659           - Path from John BouAntoun:
34660             * Fix check rendering (centre correctly for normal style, offset
34661               correctly for FlatStyle).
34662             * Fix border color usage (use backcolor) for FlatStyle.Popup
34663             * Use checkbox.Capture instead of checkbox.is_pressed when
34664               rendering flatstyle states.
34665
34666 2004-10-12 21:48  pbartok
34667
34668         * ThemeWin32Classic.cs:
34669           - Removed all occurences of SystemColors and replaced them with the
34670             matching theme color
34671
34672 2004-10-12 21:41  pbartok
34673
34674         * ThemeWin32Classic.cs:
34675           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
34676             him using the function for flatstyle drawing
34677           - Changed functions to use the new version of CPDrawBorder3D
34678
34679 2004-10-12 21:15  pbartok
34680
34681         * ControlPaint.cs:
34682           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
34683             match MS documentation. They need to return defined colors if the
34684             passed color matches the configured control color. Thanks to John
34685             BouAntoun for pointing this out.
34686
34687 2004-10-12 20:57  pbartok
34688
34689         * Control.cs:
34690           - Fix from John BouAntoun: Raise ForeColorChanged event when text
34691             color is changed
34692
34693 2004-10-12 20:46  pbartok
34694
34695         * CheckBox.cs:
34696           - Fix from John BouAntoun: Now properly sets the Appearance property
34697
34698 2004-10-12 20:45  pbartok
34699
34700         * ThemeWin32Classic.cs:
34701           - Fixes from John BouAntoun: now handles forecolors and backcolors
34702             for flatstyle rendered controls much better; It also fixes normal
34703             checkbox rendering when pushed or disabled.
34704
34705 2004-10-08 02:50  jordi
34706
34707         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
34708           work
34709
34710 2004-10-07 08:56  jordi
34711
34712         * ThemeWin32Classic.cs: Removes deletion of cached brushes
34713
34714 2004-10-06 03:59  jordi
34715
34716         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
34717           XplatUIWin32.cs: removes warnings from compilation
34718
34719 2004-10-05 12:23  jackson
34720
34721         * RadioButton.cs: Fix ctor
34722
34723 2004-10-05 11:10  pbartok
34724
34725         * MessageBox.cs:
34726           - Partial implementation by Benjamin Dasnois
34727
34728 2004-10-05 10:15  jackson
34729
34730         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
34731           by John BouAntoun
34732
34733 2004-10-05 03:07  ravindra
34734
34735         * ToolBar.cs:
34736                 - Removed a private method, Draw ().
34737                 - Fixed the ButtonDropDown event handling.
34738                 - Fixed MouseMove event handling.
34739
34740 2004-10-05 03:04  ravindra
34741
34742         * ThemeWin32Classic.cs:
34743                 - Added DrawListView method and ListViewDefaultSize property.
34744                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
34745                 - Changed DOS style CRLF to Unix format (dos2unix).
34746
34747 2004-10-05 03:03  ravindra
34748
34749         * Theme.cs:
34750                 - Added DrawListView method and ListViewDefaultSize property.
34751
34752 2004-10-05 02:42  ravindra
34753
34754         * ToolBarButton.cs: Added an internal member dd_pressed to handle
34755           clicks on DropDown arrow.
34756
34757 2004-10-04 22:56  jackson
34758
34759         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
34760           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
34761           Control handle the buffers, derived classes should not have to
34762           CreateBuffers themselves.
34763
34764 2004-10-04 21:20  jackson
34765
34766         * StatusBar.cs: The control handles resizing the buffers now.
34767
34768 2004-10-04 21:18  jackson
34769
34770         * Control.cs: When resizing the buffers should be invalidated. This
34771           should be handled in Control not in derived classes.
34772
34773 2004-10-04 14:45  jackson
34774
34775         * TabPage.cs: oops
34776
34777 2004-10-04 02:14  pbartok
34778
34779         * LeftRightAlignment.cs:
34780           - Initial check-in
34781
34782 2004-10-04 01:09  jordi
34783
34784         * ThemeWin32Classic.cs: fixes right button position causing right
34785           button not showing on horizontal scrollbars
34786
34787 2004-10-02 13:12  pbartok
34788
34789         * XplatUIX11.cs:
34790           - Simplified the Invalidate method by using an X call instead of
34791             generating the expose ourselves
34792           - Added an expose when the window background is changed
34793           - Implemented ClientToScreen method
34794
34795 2004-10-02 13:08  pbartok
34796
34797         * XplatUIWin32.cs:
34798           - Added Win32EnableWindow method (test for implementing modal
34799           dialogs)
34800           - Added ClientToScreen method and imports
34801
34802 2004-10-02 13:07  pbartok
34803
34804         * XplatUI.cs, XplatUIDriver.cs:
34805           - Added ClientToScreen coordinate translation method
34806
34807 2004-10-02 13:06  pbartok
34808
34809         * KeyPressEventArgs.cs:
34810           - Fixed access level for constructor
34811
34812 2004-10-02 13:06  pbartok
34813
34814         * NativeWindow.cs:
34815           - Changed access level for the window_collection hash table
34816
34817 2004-10-02 13:05  pbartok
34818
34819         * Form.cs:
34820           - Added KeyPreview property
34821           - Added Menu property (still incomplete, pending Jordi's menu work)
34822           - Implemented ProcessCmdKey
34823           - Implemented ProcessDialogKey
34824           - Implemented ProcessKeyPreview
34825
34826 2004-10-02 13:02  pbartok
34827
34828         * Control.cs:
34829           - Added private method to get the Control object from the window
34830           handle
34831           - Implemented ContextMenu property
34832           - Implemented PointToScreen
34833           - Implemented PreProcessMessage
34834           - Implemented IsInputChar
34835           - Implemented IsInputKey
34836           - Implemented ProcessCmdKey
34837           - Completed ProcessKeyEventArgs
34838           - Fixed message loop to call the proper chain of functions on key
34839           events
34840           - Implemented ProcessDialogChar
34841           - Implemented ProcessDialogKey
34842           - Implemented ProcessKeyMessage
34843           - Implemented ProcessKeyPreview
34844           - Added RaiseDragEvent stub (MS internal method)
34845           - Added RaiseKeyEvent stub (MS internal method)
34846           - Added RaiseMouseEvent stub (MS Internal method)
34847           - Added RaisePaintEvent stub (MS Internal method)
34848           - Added ResetMouseEventArgs stub (MS Internal method)
34849           - Implemented RtlTranslateAlignment
34850           - Implemented RtlTranslateContent
34851           - Implemented RtlTranslateHorizontal
34852           - Implemented RtlTranslateLeftRight
34853           - Added generation of KeyPress event
34854
34855 2004-10-02 05:57  ravindra
34856
34857         * ListViewItem.cs: Added attributes.
34858
34859 2004-10-02 05:32  ravindra
34860
34861         * ListView.cs: Added attributes.
34862
34863 2004-10-01 11:53  jackson
34864
34865         * Form.cs: Implement the Close method so work on MessageBox can
34866           continue.
34867
34868 2004-09-30 14:06  pbartok
34869
34870         * XplatUIX11.cs:
34871           - Bug fixes
34872
34873 2004-09-30 11:34  jackson
34874
34875         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
34876
34877 2004-09-30 07:26  ravindra
34878
34879         * ListViewItemConverter.cs: Converter for ListViewItem.
34880
34881 2004-09-30 07:26  ravindra
34882
34883         * SortOrder.cs: Enum for ListView control.
34884
34885 2004-09-30 07:25  ravindra
34886
34887         * ColumnHeader.cs: Supporting class for ListView control.
34888
34889 2004-09-30 07:24  ravindra
34890
34891         * ListView.cs, ListViewItem.cs: Initial implementation.
34892
34893 2004-09-30 07:20  ravindra
34894
34895         * ItemActivation.cs: Enum for ListView Control.
34896
34897 2004-09-29 20:29  pbartok
34898
34899         * XplatUIX11.cs:
34900           - Added lookup of pixel value for background color; tries to get a
34901             color 'close' to the requested color, it avoids having to create a
34902             colormap.  Depending on the display this could mean the used color
34903             is slightly off the desired color. Might have to change it to a more
34904             resource intensive colormap approach, but it will work as a
34905           workaround to avoid red screens.
34906
34907 2004-09-29 14:27  jackson
34908
34909         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
34910
34911 2004-09-28 12:44  pbartok
34912
34913         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
34914           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
34915           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
34916           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
34917           TrackBar.cs, VScrollBar.cs:
34918           - Streamlined Theme interfaces:
34919             * Each DrawXXX method for a control now is passed the object for
34920               the control to be drawn in order to allow accessing any state the
34921               theme might require
34922
34923             * ControlPaint methods for the theme now have a CP prefix to avoid
34924               name clashes with the Draw methods for controls
34925
34926             * Every control now retrieves it's DefaultSize from the current
34927             theme
34928
34929 2004-09-28 12:17  jackson
34930
34931         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
34932           drawing
34933
34934 2004-09-24 14:57  jackson
34935
34936         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
34937           Gives us a nice little performance boost.
34938
34939 2004-09-24 12:02  jackson
34940
34941         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
34942           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
34943           Control and supporting classes. Initial checkin
34944
34945 2004-09-23 13:08  jackson
34946
34947         * Form.cs: Temp build fixage
34948
34949 2004-09-23 01:39  ravindra
34950
34951         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
34952           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
34953           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
34954           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
34955           EventHandlers needed by ListView Control.
34956
34957 2004-09-22 14:12  pbartok
34958
34959         * ScrollableControl.cs:
34960           - Implemented DockPadding property
34961           - Implemented AutoScroll property
34962           - Implemented AutoScrollMargin property
34963           - Implemented AutoScrollMinSize property
34964           - Implemented AutoScrollPosition property
34965           - Implemented DisplayRectangle property (still incomplete)
34966           - Implemented CreateParams property
34967           - Implemented HScroll property
34968           - Implemented VScroll property
34969           - Implemented OnVisibleChanged property
34970
34971 2004-09-22 14:09  pbartok
34972
34973         * Form.cs:
34974           - Added Form.ControllCollection class
34975           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
34976             RemoveOwnedForm (still incomplete, missing on-top and common
34977             minimize/maximize behaviour)
34978           - Added StartPosition property (still incomplete, does not use when
34979             creating the form)
34980           - Added ShowDialog() methods (still incomplete, missing forcing the
34981             dialog modal)
34982
34983 2004-09-22 14:05  pbartok
34984
34985         * Application.cs:
34986           - Added message loop for modal dialogs
34987
34988 2004-09-22 14:02  pbartok
34989
34990         * GroupBox.cs:
34991           - Fixed wrong types for events
34992
34993 2004-09-22 14:00  pbartok
34994
34995         * Shortcut.cs, FormWindowState.cs:
34996           - Fixed wrong values
34997
34998 2004-09-22 12:01  jackson
34999
35000         * Control.cs: Text is never null
35001
35002 2004-09-20 22:14  pbartok
35003
35004         * XplatUIWin32.cs:
35005           - Fixed accessibility level for Idle handler
35006
35007 2004-09-20 18:54  jackson
35008
35009         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35010           XplatUIX11.cs: New message loop that uses poll so we don't get a
35011           busy loop
35012
35013 2004-09-17 10:43  pbartok
35014
35015         * ScrollBar.cs:
35016           - Fixed behaviour of arrow buttons. Now properly behaves like
35017             Buttons (and like Microsoft's scrollbar arrow buttons)
35018
35019 2004-09-17 10:14  pbartok
35020
35021         * ScrollBar.cs:
35022           - Added missing release of keyboard/mouse capture
35023
35024 2004-09-17 06:18  jordi
35025
35026         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
35027           Theme.cs: Very early menu support
35028
35029 2004-09-16 17:45  pbartok
35030
35031         * XplatUIWin32.cs:
35032           - Fixed sending a window to the front
35033           - Added overload for SetWindowPos to avoid casting
35034
35035 2004-09-16 17:44  pbartok
35036
35037         * Control.cs:
35038           - Added SendToBack and BringToFront methods
35039
35040 2004-09-16 07:00  ravindra
35041
35042         * Copyright: Added Novell URL.
35043
35044 2004-09-16 07:00  ravindra
35045
35046         * ToolBar.cs: Invalidate should be done before redrawing.
35047
35048 2004-09-15 21:19  ravindra
35049
35050         * ColumnHeaderStyle.cs: Enum for ListView Control.
35051
35052 2004-09-15 21:18  ravindra
35053
35054         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
35055           ListView Control.
35056
35057 2004-09-13 18:26  jackson
35058
35059         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
35060           properly
35061
35062 2004-09-13 18:13  jackson
35063
35064         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
35065           a second thread and post messages into the main threads message
35066           queue. This makes timing much more consistent. Both win2K and XP
35067           have a minimum timer value of 15 milliseconds, so we now do this
35068           too.
35069
35070 2004-09-13 15:18  pbartok
35071
35072         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35073           XplatUIX11.cs:
35074           - Added Z-Ordering methods
35075
35076 2004-09-13 10:56  pbartok
35077
35078         * Form.cs:
35079           - Fixed #region names
35080           - Moved properties and methods into their proper #regions
35081
35082 2004-09-13 10:51  pbartok
35083
35084         * Form.cs:
35085           - Added Accept and CancelButton properties
35086           - Added ProcessDialogKey() method
35087
35088 2004-09-13 08:18  pbartok
35089
35090         * IWindowTarget.cs:
35091           - Initial check-in
35092
35093 2004-09-10 21:50  pbartok
35094
35095         * Control.cs:
35096           - Added DoDragDrop() [incomplete]
35097           - Properly implemented 'Visible' handling
35098           - Added SetVisibleCore()
35099           - Implemented FindChildAtPoint()
35100           - Implemented GetContainerControl()
35101           - Implemented Hide()
35102
35103 2004-09-10 19:28  pbartok
35104
35105         * Control.cs:
35106           - Moved methods into their appropriate #regions
35107           - Reordered methods within regions alphabetically
35108
35109 2004-09-10 18:57  pbartok
35110
35111         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35112           - Added method to retrieve text from window
35113
35114 2004-09-10 18:56  pbartok
35115
35116         * Control.cs:
35117           - Moved some internal functions into the internal region
35118           - Implemented FontHeight
35119           - Implemented RenderRightToLeft
35120           - Implemented ResizeRedraw
35121           - Implemented ShowFocusCues
35122           - Implemented ShowKeyboardCues
35123           - Implemented FromChildHandle
35124           - Implemented FromHandle
35125           - Implemented IsMnemonic
35126           - Implemented ReflectMessage
35127           - All public and protected Static Methods are now complete
35128
35129 2004-09-10 16:54  pbartok
35130
35131         * Control.cs:
35132           - Implemented remaining missing public instance properties
35133           - Alphabetized some out of order properties
35134
35135 2004-09-10 05:51  ravindra
35136
35137         * PictureBox.cs: Added a check for null image.
35138
35139 2004-09-10 00:59  jordi
35140
35141         * GroupBox.cs: remove cvs tag
35142
35143 2004-09-09 05:25  ravindra
35144
35145         * ToolBar.cs: Make redraw accessible from ToolBarButton.
35146
35147 2004-09-09 05:23  ravindra
35148
35149         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
35150           parent redraw.
35151
35152 2004-09-09 02:28  pbartok
35153
35154         * ThemeWin32Classic.cs:
35155           - Improve disabled string look
35156
35157 2004-09-09 01:15  jordi
35158
35159         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
35160           args and handler
35161
35162 2004-09-08 23:56  ravindra
35163
35164         * ItemBoundsPortion.cs: It's enum, not a class!
35165
35166 2004-09-08 23:47  ravindra
35167
35168         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
35169           Enums for Form.
35170
35171 2004-09-08 21:13  ravindra
35172
35173         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
35174           ListView control.
35175
35176 2004-09-08 21:03  ravindra
35177
35178         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
35179           avoid crash.
35180
35181 2004-09-08 21:01  ravindra
35182
35183         * ScrollableControl.cs: Removed unreachable code.
35184
35185 2004-09-08 06:45  jordi
35186
35187         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
35188
35189 2004-09-08 01:00  jackson
35190
35191         * XplatUIX11.cs: Only run the timers when updating the message
35192           queue. This effectively gives X messages a higher priority then
35193           timer messages. Timers still need love though
35194
35195 2004-09-07 14:01  jackson
35196
35197         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
35198           this for us and the handle is no longer valid.
35199
35200 2004-09-07 13:59  jackson
35201
35202         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
35203           loop that manages to not crash. TODO: Add poll and cleanup timers
35204
35205 2004-09-07 11:12  jordi
35206
35207         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
35208
35209 2004-09-07 03:40  jordi
35210
35211         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
35212           fixes, methods, multiple links
35213
35214 2004-09-06 06:55  jordi
35215
35216         * Control.cs: Caches ClientRectangle rectangle value
35217
35218 2004-09-05 02:03  jordi
35219
35220         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
35221           certain situations
35222
35223 2004-09-04 11:10  jordi
35224
35225         * Label.cs: Refresh when font changed
35226
35227 2004-09-02 16:24  pbartok
35228
35229         * Control.cs:
35230           - Added sanity check to creation of double buffer bitmap
35231
35232 2004-09-02 16:24  pbartok
35233
35234         * ButtonBase.cs:
35235           - Fixed selection of text color
35236           - Fixed handling of resize event; now properly recreates double
35237             buffering bitmap
35238           - Added missing assignment of TextAlignment
35239           - Added proper default for TextAlignment
35240
35241 2004-09-02 14:26  pbartok
35242
35243         * RadioButton.cs:
35244           - Added missing RadioButton.RadioButtonAccessibleObject class
35245
35246 2004-09-02 14:26  pbartok
35247
35248         * Control.cs:
35249           - Added missing Control.ControlAccessibleObject class
35250           - Started to implement Select()ion mechanisms, still very incomplete
35251
35252 2004-09-02 14:25  pbartok
35253
35254         * AccessibleObject.cs:
35255           - Added missing methods
35256
35257 2004-09-02 14:23  pbartok
35258
35259         * AccessibleNavigation.cs, AccessibleSelection.cs:
35260           - Initial check-in
35261
35262 2004-09-02 10:32  jordi
35263
35264         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
35265           pool for pens, brushes, and hatchbruses
35266
35267 2004-09-01 15:30  jackson
35268
35269         * StatusBar.cs: Fix typo
35270
35271 2004-09-01 14:44  pbartok
35272
35273         * RadioButton.cs:
35274           - Fixed state
35275
35276 2004-09-01 14:39  pbartok
35277
35278         * Button.cs, RadioButton.cs:
35279           - Functional initial check-in
35280
35281 2004-09-01 14:01  pbartok
35282
35283         * CheckBox.cs:
35284           - Added missing default
35285           - Added missing region mark
35286
35287 2004-09-01 09:10  jordi
35288
35289         * Label.cs: fixes method signatures, new methods, events, fixes
35290           autosize
35291
35292 2004-09-01 07:19  jordi
35293
35294         * Control.cs: Init string variables with an empty object
35295
35296 2004-09-01 04:20  jordi
35297
35298         * Control.cs: fires OnFontChanged event
35299
35300 2004-08-31 20:07  pbartok
35301
35302         * ButtonBase.cs:
35303           - Enabled display of strings
35304
35305 2004-08-31 20:05  pbartok
35306
35307         * Form.cs:
35308           - Added (partial) implementation of DialogResult; rest needs to be
35309             implemented when the modal loop code is done
35310
35311 2004-08-31 19:55  pbartok
35312
35313         * CheckBox.cs:
35314           - Fixed to match the removal of the needs_redraw concept
35315
35316 2004-08-31 19:55  pbartok
35317
35318         * ButtonBase.cs:
35319           - Removed the rather odd split between 'needs redraw' and redrawing
35320           - Now handles the events that require regeneration (ambient
35321             properties and size)
35322
35323 2004-08-31 19:41  pbartok
35324
35325         * Control.cs:
35326           - Added firing of BackColorChanged event
35327           - Added TopLevelControl property
35328           - Fixed handling of WM_ERASEBKGRND message
35329
35330 2004-08-31 12:49  pbartok
35331
35332         * ButtonBase.cs:
35333           - Removed debug
35334           - Minor fixes
35335
35336 2004-08-31 12:48  pbartok
35337
35338         * CheckBox.cs:
35339           - Finished (famous last words)
35340
35341 2004-08-31 04:35  jordi
35342
35343         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
35344           scrolling bugs, adds new methods
35345
35346 2004-08-30 14:42  pbartok
35347
35348         * CheckBox.cs:
35349           - Implemented CheckBox drawing code
35350
35351 2004-08-30 14:42  pbartok
35352
35353         * ButtonBase.cs:
35354           - Made Redraw() and CheckRedraw() virtual
35355           - Improved mouse up/down/move logic to properly track buttons
35356
35357 2004-08-30 09:44  pbartok
35358
35359         * CheckBox.cs:
35360           - Updated to fix broken build. Not complete yet.
35361
35362 2004-08-30 09:28  pbartok
35363
35364         * CheckState.cs:
35365           - Initial checkin
35366
35367 2004-08-30 09:17  pbartok
35368
35369         * Appearance.cs:
35370           - Initial check-in
35371
35372 2004-08-27 16:12  ravindra
35373
35374         * ToolBarButton.cs: Added TypeConverter attribute.
35375
35376 2004-08-27 16:07  ravindra
35377
35378         * ImageIndexConverter.cs: Implemented.
35379
35380 2004-08-27 14:17  pbartok
35381
35382         * Control.cs:
35383           - Removed unneeded stack vars
35384           - First attempt to fix sizing issues when layout is suspended
35385
35386 2004-08-25 15:35  jordi
35387
35388         * ScrollBar.cs: more fixes to scrollbar
35389
35390 2004-08-25 14:04  ravindra
35391
35392         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
35393           Added the missing divider code and grip for ToolBar Control.
35394
35395 2004-08-25 13:20  pbartok
35396
35397         * Control.cs:
35398           - Control now properly passes the ambient background color to child
35399             controls
35400
35401 2004-08-25 13:20  jordi
35402
35403         * ScrollBar.cs: small bug fix regarding bar position
35404
35405 2004-08-25 12:33  pbartok
35406
35407         * Timer.cs:
35408           - Now only calls SetTimer or KillTimer if the enabled state has
35409           changed
35410
35411 2004-08-25 12:33  pbartok
35412
35413         * XplatUIWin32.cs:
35414           - Fixed timer handling, now seems to work
35415           - Improved error message for window creation
35416
35417 2004-08-25 12:32  pbartok
35418
35419         * Control.cs:
35420           - Fixed generation of MouseUp message
35421
35422 2004-08-25 12:29  jordi
35423
35424         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
35425           and fixes for progressbar
35426
35427 2004-08-24 18:43  ravindra
35428
35429         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
35430           in ToolBar control.
35431
35432 2004-08-24 17:15  pbartok
35433
35434         * Panel.cs:
35435           - Added #region
35436           - Added missing events
35437           - Alphabetized
35438
35439 2004-08-24 17:14  pbartok
35440
35441         * StatusBar.cs, PictureBox.cs:
35442           - Now uses Control's CreateParams
35443
35444 2004-08-24 16:36  pbartok
35445
35446         * XplatUIX11.cs:
35447           - Fixed background color handling
35448           - Fixed sending of enter/leave events on a grab
35449
35450 2004-08-24 16:35  pbartok
35451
35452         * X11Structs.cs:
35453           - Refined definitions for CrossingEvent
35454
35455 2004-08-24 12:37  jordi
35456
35457         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
35458           formmating, methods signature, and adds missing events
35459
35460 2004-08-24 12:24  jordi
35461
35462         * Control.cs: fire OnEnabledChanged event
35463
35464 2004-08-24 11:17  pbartok
35465
35466         * XplatUIWin32.cs:
35467           - Implemented SetTimer() and KillTimer()
35468
35469 2004-08-24 11:16  pbartok
35470
35471         * XplatUIX11.cs:
35472           - Now uses Remove instead of Add to kill the timer
35473
35474 2004-08-24 10:16  jackson
35475
35476         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
35477           picture boxes in the theme now. Draw picture box borders and obey
35478           sizing modes
35479
35480 2004-08-24 05:49  jackson
35481
35482         * Timer.cs: Remove top secret debugging code
35483
35484 2004-08-24 05:34  jackson
35485
35486         * PictureBox.cs: Temp hack to make picture boxes draw their full
35487           image
35488
35489 2004-08-24 05:29  jackson
35490
35491         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35492           XplatUIX11.cs: Move timers to the driver level. On X they are
35493           queued by the driver and checked on idle.
35494
35495 2004-08-24 01:07  jackson
35496
35497         * XplatUIX11.cs: Use a queue for async messages instead of passing
35498           them as ClientMessages since that was totally broken. Also simply
35499           check for events and return an idle message if none are found. This
35500           gives us an idle handler, and prevents deadlocking when no messages
35501           are in the queue.
35502
35503 2004-08-23 18:19  ravindra
35504
35505         * XplatUIWin32.cs: Removed the unwanted destructor.
35506
35507 2004-08-23 17:27  pbartok
35508
35509         * ButtonBase.cs:
35510           - Finishing touches. Works now, just needs some optimizations.
35511
35512 2004-08-23 16:53  jordi
35513
35514         * ScrollBar.cs: small fix
35515
35516 2004-08-23 16:45  pbartok
35517
35518         * Application.cs:
35519           - Removed debug output
35520           - Simplifications
35521
35522 2004-08-23 16:43  jordi
35523
35524         * ScrollBar.cs: [no log message]
35525
35526 2004-08-23 16:10  pbartok
35527
35528         * Form.cs:
35529           - Fixed handling of WM_CLOSE message
35530           - Removed debug output
35531
35532 2004-08-23 16:09  pbartok
35533
35534         * Application.cs:
35535           - Added handling of Idle event
35536           - Added handling of form closing
35537           - Fixed reporting of MessageLoop property
35538           - Removed some unneeded code, should provide a bit of a speedup
35539
35540 2004-08-23 15:22  pbartok
35541
35542         * Control.cs:
35543           - Added InitLayout() method
35544           - Added code to properly perform layout when Anchor or Dock property
35545             is changed
35546           - Changed 'interpretation' of ResumeLayout. MS seems to have a
35547             LAMESPEC, tried to do it in a way that makes sense
35548
35549 2004-08-23 14:10  jordi
35550
35551         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
35552           properties and methods
35553
35554 2004-08-23 13:55  pbartok
35555
35556         * Control.cs:
35557           - Properly fixed Jordi's last fix
35558           - Now uses Cursor's Position property instead of calling XplatUI
35559           directly
35560
35561 2004-08-23 13:44  jordi
35562
35563         * PaintEventHandler.cs: Adding missing attribute
35564
35565 2004-08-23 13:39  pbartok
35566
35567         * Cursor.cs:
35568           - Implemented Position property
35569
35570 2004-08-23 13:39  pbartok
35571
35572         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35573           - Added method to move mouse cursor
35574
35575 2004-08-23 13:39  pbartok
35576
35577         * XplatUIX11.cs:
35578           - Fixed setting of background color
35579           - Added method to move mouse cursor
35580
35581 2004-08-23 13:16  jordi
35582
35583         * Control.cs: avoids null exception
35584
35585 2004-08-22 17:46  jackson
35586
35587         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
35588           PictureBox
35589
35590 2004-08-22 17:40  jackson
35591
35592         * XplatUIX11.cs: Add some missing locks
35593
35594 2004-08-22 15:10  pbartok
35595
35596         * Control.cs, Form.cs:
35597           - Removed OverlappedWindow style from Control, instead it's default
35598             now is child
35599           - Made form windows OverlappedWindow by default
35600
35601 2004-08-22 13:34  jackson
35602
35603         * ScrollBar.cs: Update the position through the Value property so
35604           the OnValueChanged event is raised.
35605
35606 2004-08-22 12:04  pbartok
35607
35608         * SWF.csproj:
35609           - Added Cursor.cs and UserControl.cs
35610
35611 2004-08-22 12:03  pbartok
35612
35613         * Cursor.cs:
35614           - Started implementation, not usable yet
35615
35616 2004-08-22 12:00  pbartok
35617
35618         * UserControl.cs:
35619           - Implemented UserControl (complete)
35620
35621 2004-08-21 19:20  ravindra
35622
35623         * ToolBar.cs: Correcting the formatting mess of VS.NET.
35624
35625 2004-08-21 18:49  ravindra
35626
35627         * ToolBar.cs: Probably this completes the missing attributes in
35628           toolbar control.
35629
35630 2004-08-21 18:03  ravindra
35631
35632         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
35633           Fixed toolbar control signatures.
35634
35635 2004-08-21 16:32  pbartok
35636
35637         * LinkLabel.cs:
35638           - Signature Fixes
35639
35640 2004-08-21 16:30  pbartok
35641
35642         * Label.cs:
35643           - Signature fixes
35644
35645 2004-08-21 16:19  pbartok
35646
35647         * Control.cs, Label.cs:
35648           - Signature fixes
35649
35650 2004-08-21 15:57  pbartok
35651
35652         * ButtonBase.cs:
35653           - Added loads of debug output for development
35654           - Fixed typo in method name
35655
35656 2004-08-21 15:52  pbartok
35657
35658         * ToolBarButtonClickEventArgs.cs:
35659           - Added missing base class
35660
35661 2004-08-21 14:53  pbartok
35662
35663         * Control.cs:
35664           - Updated to match new GrabWindow signature
35665
35666 2004-08-21 14:51  pbartok
35667
35668         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35669           - Added method to get default display size
35670
35671 2004-08-21 14:23  pbartok
35672
35673         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35674           - Added method to query current grab state
35675           - Added argument to allow confining a grab to a window
35676
35677 2004-08-21 14:22  pbartok
35678
35679         * Keys.cs:
35680           - Added [Flags] attribute so that modifiers can be used in bitwise
35681           ops
35682
35683 2004-08-21 14:21  pbartok
35684
35685         * TrackBar.cs, ScrollBar.cs:
35686           - Replaced direct XplatUI calls with their Control counterpart
35687
35688 2004-08-21 13:32  pbartok
35689
35690         * Control.cs:
35691           - Implemented Created property
35692
35693 2004-08-21 13:28  pbartok
35694
35695         * Control.cs:
35696           - Implemented ContainsFocus
35697
35698 2004-08-21 13:26  pbartok
35699
35700         * Control.cs:
35701           - Implemented CausesValidation
35702
35703 2004-08-21 13:21  pbartok
35704
35705         * Control.cs:
35706           - Implemented CanFocus
35707           - Implemented CanSelect
35708           - Implemented Capture
35709
35710 2004-08-21 12:35  pbartok
35711
35712         * XplatUIWin32.cs:
35713           - Fixed bug with Async message handling
35714           - Implemented getting the ModifierKeys
35715
35716 2004-08-21 12:32  jackson
35717
35718         * AsyncMethodResult.cs: Make sure we have the mutex before we
35719           release it. Fixes BeginInvoke on windows
35720
35721 2004-08-21 11:31  pbartok
35722
35723         * XplatUIWin32.cs, XplatUIX11.cs:
35724           - Drivers now return proper mouse state
35725
35726 2004-08-21 10:54  jackson
35727
35728         * Control.cs: Implement EndInvoke
35729
35730 2004-08-21 10:48  jackson
35731
35732         * Timer.cs: Remove unneeded finalizer
35733
35734 2004-08-20 19:52  ravindra
35735
35736         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
35737           in mouse event handling in the ToolBar control.
35738
35739 2004-08-20 19:50  ravindra
35740
35741         * ImageList.cs: Changed draw method to use the arguments passed in
35742           to draw the image.
35743
35744 2004-08-20 18:58  pbartok
35745
35746         * XplatUIStructs.cs:
35747           - Added private message for async communication
35748
35749 2004-08-20 17:38  ravindra
35750
35751         * Control.cs: Made RightToLeft property virtual and removed a
35752           Console.WriteLine.
35753
35754 2004-08-20 14:39  jordi
35755
35756         * ThemeGtk.cs: use style_attach
35757
35758 2004-08-20 14:39  pbartok
35759
35760         * XplatUIWin32.cs:
35761           - Added jackson's Async code from X11 to Win32
35762
35763 2004-08-20 14:09  pbartok
35764
35765         * SWF.csproj:
35766           - Added all new files
35767
35768 2004-08-20 14:09  pbartok
35769
35770         * Control.cs:
35771           - Added call to set window background color
35772
35773 2004-08-20 14:03  pbartok
35774
35775         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35776           - Added method for setting the window background
35777
35778 2004-08-20 14:02  pbartok
35779
35780         * XplatUIWin32.cs:
35781           - Added method for setting the background color
35782           - Added handling for erasing the window background
35783
35784 2004-08-20 13:45  jordi
35785
35786         * TrackBar.cs: fixes timer, new properties and methods
35787
35788 2004-08-20 13:34  jackson
35789
35790         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
35791           correct thread
35792
35793 2004-08-20 13:22  jackson
35794
35795         * Timer.cs: Timer Tick events are now handed through Controls Async
35796           mechanism so the callbacks are executed in the same thread as X
35797
35798 2004-08-20 13:19  jackson
35799
35800         * XplatUIDriver.cs: Expose functionality to send async messages
35801           through the driver
35802
35803 2004-08-20 13:18  jackson
35804
35805         * Control.cs: Implement Begininvoke
35806
35807 2004-08-20 13:14  jackson
35808
35809         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
35810           messages through the driver
35811
35812 2004-08-20 13:12  jackson
35813
35814         * XplatUIX11.cs: Lock before all X operations. Also added Async
35815           method functionality through XSendEvent
35816
35817 2004-08-20 13:11  jackson
35818
35819         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
35820           This will screw up on 64 bit systems)
35821
35822 2004-08-20 13:10  jackson
35823
35824         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
35825           Async messages through X/Win32
35826
35827 2004-08-19 19:39  pbartok
35828
35829         * XplatUIX11.cs:
35830           - Updated code to match new HandleData.DeviceContext type
35831
35832 2004-08-19 19:38  pbartok
35833
35834         * HandleData.cs:
35835           - Made DeviceContext a generic object to allow usage from various
35836           drivers
35837           - Added support for queueing Windows messages
35838
35839 2004-08-19 19:37  pbartok
35840
35841         * XplatUIWin32.cs:
35842           - Added generation of MouseEnter, MouseLeave and MouseHover events
35843           - Added cleanup on EndPaint
35844
35845 2004-08-19 19:17  pbartok
35846
35847         * Control.cs:
35848           - Added handling of WM_MOUSEHOVER
35849           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
35850           code
35851
35852 2004-08-19 18:55  jordi
35853
35854         * ThemeGtk.cs: fixes button order
35855
35856 2004-08-19 18:12  jordi
35857
35858         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
35859
35860 2004-08-19 17:09  pbartok
35861
35862         * Control.cs:
35863           - Added Right property
35864           - Added RightToLeft property
35865
35866 2004-08-19 16:27  jordi
35867
35868         * ThemeGtk.cs: experimental GTK theme support
35869
35870 2004-08-19 16:26  jordi
35871
35872         * ITheme.cs, Theme.cs: move themes from an interface to a class
35873
35874 2004-08-19 16:25  jordi
35875
35876         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
35877           theme enhancaments
35878
35879 2004-08-19 16:04  pbartok
35880
35881         * XplatUIX11.cs:
35882           - Added colormap basics
35883           - Added a way to re-initialize with a different display handle
35884           - Fixed setting of the window background color
35885           - Added various X11 imports related to colors and colormaps
35886
35887 2004-08-19 15:51  pbartok
35888
35889         * X11Structs.cs:
35890           - Removed packing hints (Paolo suggested this a while back)
35891           - fixed colormap type
35892           - Added default Atom types
35893           - Added Screen and color structs and enums
35894
35895 2004-08-19 15:39  pbartok
35896
35897         * ImageList.cs:
35898           - Added missing Draw() method
35899           - Added missing RecreateHandle event
35900
35901 2004-08-19 15:30  pbartok
35902
35903         * Form.cs:
35904           - Added handling of WM_CLOSE
35905
35906 2004-08-18 13:16  jordi
35907
35908         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
35909           a table
35910
35911 2004-08-18 09:56  jordi
35912
35913         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
35914
35915 2004-08-17 15:31  ravindra
35916
35917         * SWF.csproj: Updated project.
35918
35919 2004-08-17 15:25  pbartok
35920
35921         * Control.cs:
35922           - Drawing improvement; don't call UpdateBounds if we are not visible
35923             (or have been minimized)
35924
35925 2004-08-17 15:24  pbartok
35926
35927         * XplatUIWin32.cs:
35928           - Finished IsVisible
35929           - Added Win32GetWindowPlacement
35930
35931 2004-08-17 15:08  jackson
35932
35933         * Panel.cs: Initial checkin of the Panel
35934
35935 2004-08-17 14:25  pbartok
35936
35937         * Control.cs:
35938           - Fixed broken handling of default window sizes
35939
35940 2004-08-17 13:29  jackson
35941
35942         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
35943           has a large startup time.
35944
35945 2004-08-17 10:25  jackson
35946
35947         * HandleData.cs: union areas properly
35948
35949 2004-08-17 10:12  jackson
35950
35951         * HandleData.cs: union areas properly
35952
35953 2004-08-16 20:00  ravindra
35954
35955         * ToolBar.cs, ToolBarButton.cs: Added attributes.
35956
35957 2004-08-16 18:48  ravindra
35958
35959         * ToolBar.cs: Added attributes.
35960
35961 2004-08-16 17:17  ravindra
35962
35963         * SWF.csproj: Updated project.
35964
35965 2004-08-16 17:16  jackson
35966
35967         * XplatUIX11.cs: Check for more expose events before sending a
35968           WM_PAINT so they can all be grouped together. This makes dragging a
35969           window across another window redraw in a sane way.
35970
35971 2004-08-16 15:47  pbartok
35972
35973         * Control.cs:
35974           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
35975             support OnMouseEnter/Leave()
35976           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
35977             exposure handling
35978
35979 2004-08-16 15:46  pbartok
35980
35981         * XplatUIStructs.cs, XplatUIX11.cs:
35982           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
35983           OnMouseEnter/Leave()
35984
35985 2004-08-16 15:34  jackson
35986
35987         * XplatUIX11.cs: Group multiple expose events in HandleData, make
35988           sure messages get the message field set to WM_NULL if they are not
35989           handled.
35990
35991 2004-08-16 15:24  jackson
35992
35993         * HandleData.cs: HandleData is used for storing message information
35994           for window handles
35995
35996 2004-08-15 17:23  ravindra
35997
35998         * ColorDepth.cs: Added attribute.
35999
36000 2004-08-15 17:23  ravindra
36001
36002         * SWF.csproj: Updated project for ToolBar Control.
36003
36004 2004-08-15 17:20  ravindra
36005
36006         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
36007           control and also dos2unix format.
36008
36009 2004-08-15 17:13  ravindra
36010
36011         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
36012           ToolBarButtonClickEventArgs.cs,
36013           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
36014           ToolBarTextAlign.cs: First Implementation of ToolBar control.
36015
36016 2004-08-15 15:31  pbartok
36017
36018         * ButtonBase.cs:
36019           - First (mostly) working version
36020
36021 2004-08-13 16:15  pbartok
36022
36023         * Control.cs:
36024           - Fixed Anchor default
36025
36026 2004-08-13 15:43  pbartok
36027
36028         * Control.cs:
36029           - Changed GetCursorPos signature
36030
36031 2004-08-13 15:42  pbartok
36032
36033         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36034           - Changed signature for GetCursorPos
36035
36036 2004-08-13 15:25  pbartok
36037
36038         * XplatUIX11.cs:
36039           - Cleanup
36040           - Fixed resizing/exposure handling
36041
36042 2004-08-13 15:22  jordi
36043
36044         * ThemeWin32Classic.cs: removes redundant code and fixes issues
36045           with tickposition
36046
36047 2004-08-13 14:55  jordi
36048
36049         * TrackBar.cs: change from wndproc to events
36050
36051 2004-08-13 13:00  jordi
36052
36053         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36054           XplatUIX11.cs: implements PointToClient (ScreenToClient)
36055
36056 2004-08-13 12:53  pbartok
36057
36058         * XplatUIWin32.cs:
36059           - Changed GetWindowPos to also provide client area size
36060           - Fixed broken prototypes for several win32 functions
36061
36062 2004-08-13 12:53  pbartok
36063
36064         * XplatUI.cs, XplatUIDriver.cs:
36065           - Changed GetWindowPos to also provide client area size
36066
36067 2004-08-13 12:52  pbartok
36068
36069         * XplatUIX11.cs:
36070           - Added generation of WM_POSCHANGED
36071           - Changed GetWindowPos to also provide client area size
36072
36073 2004-08-13 12:52  pbartok
36074
36075         * Control.cs:
36076           - Added Dispose() and destructor
36077           - Fixed resizing and bounds calculation
36078           - Fixed Layout
36079           - Added memory savings for invisible windows
36080
36081 2004-08-13 12:46  jordi
36082
36083         * TrackBar.cs: adds timer and grap window
36084
36085 2004-08-13 10:25  jackson
36086
36087         * Timer.cs: SWF Timer
36088
36089 2004-08-12 16:59  pbartok
36090
36091         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36092           - Implemented method to get current mouse position
36093
36094 2004-08-12 14:29  jordi
36095
36096         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
36097           enhancement, fix mouse problems, highli thumb, etc
36098
36099 2004-08-12 13:31  pbartok
36100
36101         * Control.cs:
36102           - Fixed Anchoring bugs
36103
36104 2004-08-12 13:01  jackson
36105
36106         * StatusBar.cs: Don't forget things
36107
36108 2004-08-12 12:54  jackson
36109
36110         * ThemeWin32Classic.cs: Handle owner draw status bars
36111
36112 2004-08-12 12:54  jackson
36113
36114         * StatusBar.cs: Implement missing properties, events, and methods.
36115           Handle mouse clicking
36116
36117 2004-08-12 10:19  jackson
36118
36119         * StatusBarPanelClickEventArgs.cs,
36120           StatusBarPanelClickEventHandler.cs: Classes for handling status
36121           bar panel click events
36122
36123 2004-08-12 10:10  jackson
36124
36125         * Control.cs: Add missing properties
36126
36127 2004-08-12 09:46  pbartok
36128
36129         * BindingsManagerBase.cs:
36130           - Name changed to BindingManagerBase.cs
36131
36132 2004-08-12 09:25  jordi
36133
36134         * ScrollableControl.cs: calls ctrlbase instead of exeception
36135
36136 2004-08-11 16:28  pbartok
36137
36138         * InputLanguageChangingEventArgs.cs:
36139           - Never check in before compiling. Fixes the last check-in
36140
36141 2004-08-11 16:26  pbartok
36142
36143         * InputLanguageChangingEventArgs.cs:
36144           - More signature fixes
36145
36146 2004-08-11 16:20  pbartok
36147
36148         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
36149           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
36150           ImageListStreamer.cs, InputLanguage.cs,
36151           InputLanguageChangedEventArgs.cs,
36152           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
36153           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
36154           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
36155           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36156           - Signature fixes
36157
36158 2004-08-11 16:16  pbartok
36159
36160         * Application.cs:
36161           - Fixed Signature
36162           - Added .Net 1.1 method
36163
36164 2004-08-11 15:25  pbartok
36165
36166         * SWF.csproj:
36167           - Fixed BindingManagerBase.cs filename
36168
36169 2004-08-11 15:22  pbartok
36170
36171         * BindingManagerBase.cs:
36172           - Was checked in with wrong filename
36173
36174 2004-08-11 14:50  pbartok
36175
36176         * SWF.csproj:
36177           - Updated
36178
36179 2004-08-11 13:41  jordi
36180
36181         * XplatUIWin32.cs: Fixes ClientRect
36182
36183 2004-08-11 13:19  pbartok
36184
36185         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36186           XplatUIX11.cs:
36187           - We had SetWindowPos and MoveWindow to set window positions and
36188             size, removed MoveWindow. We have GetWindowPos, so it made sense to
36189             keep SetWindowPos as matching counterpart
36190           - Added some X11 sanity checking
36191
36192 2004-08-11 12:59  pbartok
36193
36194         * Control.cs:
36195           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
36196             (It seems that SetBounds is just a front for SetBoundsCore and
36197              SetBoundsCore updates the underlying window system and
36198              UpdateBounds is responsible for updating the variables associated
36199              with the Control and sending the events)
36200           - Major cleanup of Size handling; we now have two sizes, client_size
36201             and bounds. Bounds defines the window with decorations, client_size
36202             without them.
36203
36204 2004-08-11 12:55  pbartok
36205
36206         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36207           - Added method to calculate difference between decorated window and
36208             raw client area
36209
36210 2004-08-11 12:54  pbartok
36211
36212         * Label.cs:
36213           - Forcing redraw on resize
36214
36215 2004-08-11 11:43  pbartok
36216
36217         * ImageList.cs:
36218           - Removed disposing of the actual images when the list is disposed
36219
36220 2004-08-11 09:13  pbartok
36221
36222         * Control.cs:
36223           - Now properly reparents windows
36224
36225 2004-08-11 08:37  pbartok
36226
36227         * Control.cs:
36228           - Duh!
36229
36230 2004-08-11 07:47  pbartok
36231
36232         * Control.cs:
36233           - Rewrote the collection stuff. Might not be as fast now, not
36234             keeping the number of children around and accessible directly, but
36235             it's more straightforward
36236
36237 2004-08-11 07:44  pbartok
36238
36239         * AccessibleObject.cs:
36240           - Fixed to match ControlCollection rewrite
36241
36242 2004-08-11 07:43  pbartok
36243
36244         * ImageList.cs:
36245           - Added missing creation of the collection list
36246
36247 2004-08-10 20:08  jackson
36248
36249         * StatusBar.cs: Get the paint message from WndProc
36250
36251 2004-08-10 19:31  jackson
36252
36253         * ThemeWin32Classic.cs: Create Brushes as little as possible
36254
36255 2004-08-10 19:20  jackson
36256
36257         * UICues.cs: Add Flags attribute
36258
36259 2004-08-10 19:19  jackson
36260
36261         * StatusBarPanel.cs: Signature cleanup
36262
36263 2004-08-10 19:10  jackson
36264
36265         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
36266           Initial implementation of status bar item drawing
36267
36268 2004-08-10 17:27  jordi
36269
36270         * TrackBar.cs: add missing methods, properties, and restructure to
36271           hide extra ones
36272
36273 2004-08-10 16:24  jackson
36274
36275         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
36276           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
36277           attribute
36278
36279 2004-08-10 13:21  jordi
36280
36281         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
36282           enhancements and standarize on win colors defaults
36283
36284 2004-08-10 12:52  jackson
36285
36286         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
36287           ThemeWin32Classic.cs: Implement DrawItem functionality
36288
36289 2004-08-10 12:47  jordi
36290
36291         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
36292
36293 2004-08-10 12:32  jordi
36294
36295         * Control.cs: throw ontextchange event
36296
36297 2004-08-10 11:43  pbartok
36298
36299         * Control.cs:
36300           - Added more to the still unfinished Dock/Anchor layout code
36301
36302 2004-08-10 11:39  pbartok
36303
36304         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36305           - Added GetWindowPos method
36306
36307 2004-08-10 11:36  pbartok
36308
36309         * XplatUIWin32.cs:
36310           - Implemented several methods
36311
36312 2004-08-10 09:47  jackson
36313
36314         * TrackBar.cs: Allow control to handle buffering
36315
36316 2004-08-10 09:41  jackson
36317
36318         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
36319
36320 2004-08-10 09:24  jackson
36321
36322         * Label.cs, LinkLabel.cs: Let Control handle buffering.
36323
36324 2004-08-10 09:09  jackson
36325
36326         * StatusBar.cs: Let Control handle all the buffering.
36327
36328 2004-08-10 09:08  jackson
36329
36330         * Control.cs: Control will now handle the buffering code, so each
36331           control does not have to implement this.
36332
36333 2004-08-10 08:34  jackson
36334
36335         * XplatUIDriver.cs: Use default colors from the theme
36336
36337 2004-08-09 17:12  pbartok
36338
36339         * ImageList.cs:
36340           - Fixed several bugs Ravindra pointed out
36341
36342 2004-08-09 16:11  pbartok
36343
36344         * Control.cs:
36345           - Added incomplete dock layout code
36346           - Added support for mouse wheel
36347
36348 2004-08-09 16:09  pbartok
36349
36350         * XplatUIX11.cs:
36351           - Added handling for middle and right mousebutton
36352           - Added handling for mouse wheel
36353           - Added handling for key state and mouse state and position
36354           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
36355           messages
36356
36357 2004-08-09 15:40  jackson
36358
36359         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
36360           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
36361           checkin
36362
36363 2004-08-09 15:37  jackson
36364
36365         * StatusBar.cs: Initial implementation of StatusBar
36366
36367 2004-08-09 15:36  jackson
36368
36369         * ITheme.cs: Add support for drawing status bar and getting status
36370           bar item sizes
36371
36372 2004-08-09 15:35  pbartok
36373
36374         * MouseButtons.cs:
36375           - Fixed values
36376
36377 2004-08-09 15:34  jackson
36378
36379         * ThemeWin32Classic.cs: Add support for drawing status bar and get
36380           status bar item sizes
36381
36382 2004-08-09 15:21  jackson
36383
36384         * ThemeWin32Classic.cs: Use known colors for default control
36385           colours
36386
36387 2004-08-09 15:12  jackson
36388
36389         * ThemeWin32Classic.cs: Make the default font static, it is static
36390           in control so this doesn't change functionality and creating fonts
36391           is sloooooow.
36392
36393 2004-08-09 14:56  pbartok
36394
36395         * X11Structs.cs:
36396           - Added GrabMode enum
36397
36398 2004-08-09 14:55  pbartok
36399
36400         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36401           - Removed Run method, was only required for initial development
36402
36403 2004-08-09 14:51  pbartok
36404
36405         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36406           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
36407           capture
36408
36409 2004-08-09 13:48  pbartok
36410
36411         * XplatUIX11.cs:
36412           - Fixed default sizing for child windows
36413
36414 2004-08-09 12:56  pbartok
36415
36416         * XplatUIX11.cs:
36417           - Added generation of WM_DESTROY message
36418           - Added handling of window manager induced shutdown
36419
36420 2004-08-09 11:31  jackson
36421
36422         * ThemeWin32Classic.cs: New names for control properties
36423
36424 2004-08-09 11:25  jackson
36425
36426         * Control.cs: Use new color names
36427
36428 2004-08-09 11:02  jackson
36429
36430         * XplatUI.cs: Get default window properties from the theme
36431
36432 2004-08-09 11:01  jackson
36433
36434         * ITheme.cs: The theme engine now controls default window
36435           properties
36436
36437 2004-08-09 11:00  jackson
36438
36439         * ThemeWin32Classic.cs: Add default window color properties
36440
36441 2004-08-09 10:17  jackson
36442
36443         * ThemeWin32Classic.cs: Use correct default back color
36444
36445 2004-08-09 10:05  jackson
36446
36447         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
36448           the theme now.
36449
36450 2004-08-09 09:56  jackson
36451
36452         * XplatUI.cs: Remove defaults, these are handled by the theme now.
36453
36454 2004-08-09 09:54  jackson
36455
36456         * Control.cs: Get default properties from the theme.
36457
36458 2004-08-09 09:53  jackson
36459
36460         * ITheme.cs: Themes now handle default control properties
36461
36462 2004-08-09 09:53  jackson
36463
36464         * ThemeWin32Classic.cs: Themes now handle default control
36465           properties so coloring will be consistent
36466
36467 2004-08-08 16:54  jordi
36468
36469         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
36470
36471 2004-08-08 15:08  jordi
36472
36473         * XplatUIX11.cs: fixes keyboard crash
36474
36475 2004-08-08 13:47  jordi
36476
36477         * Label.cs: add cvs header info
36478
36479 2004-08-08 12:09  jackson
36480
36481         * ThemeWin32Classic.cs: Add pen_buttonface
36482
36483 2004-08-08 11:52  jordi
36484
36485         * Label.cs, LinkLabel.cs: [no log message]
36486
36487 2004-08-08 11:34  jordi
36488
36489         * ThemeWin32Classic.cs: Use Windows Standard Colours
36490
36491 2004-08-07 17:32  jordi
36492
36493         * TrackBar.cs: throw exceptions of invalid enums values
36494
36495 2004-08-07 17:31  jordi
36496
36497         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
36498           draw method name
36499
36500 2004-08-07 16:56  jackson
36501
36502         * HorizontalAlignment.cs: Initial checkin
36503
36504 2004-08-07 13:16  jordi
36505
36506         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
36507           methods
36508
36509 2004-08-07 13:05  jordi
36510
36511         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
36512           GetSysColor defines
36513
36514 2004-08-06 18:01  pbartok
36515
36516         * ThemeWin32Classic.cs:
36517           - Fixed some rounding issues with float/int
36518
36519 2004-08-06 18:00  jackson
36520
36521         * DockStyle.cs, AnchorStyles.cs:
36522
36523                   Add flags and serializable attributes.
36524
36525 2004-08-06 17:46  pbartok
36526
36527         * XplatUIX11.cs:
36528           - Implemented GetParent
36529
36530 2004-08-06 17:18  pbartok
36531
36532         * TrackBar.cs:
36533           - Fixed some rounding issues with float/int
36534
36535 2004-08-06 17:17  pbartok
36536
36537         * X11Structs.cs, XplatUIX11.cs:
36538           - Fixed Refresh and Invalidate
36539
36540 2004-08-06 15:30  pbartok
36541
36542         * Control.cs, X11Structs.cs, XplatUIX11.cs:
36543           - Fixed recursive loop when resizing
36544           - Improved/fixed redrawing on expose messages
36545
36546 2004-08-06 09:53  jordi
36547
36548         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
36549           keyboard navigation
36550
36551 2004-08-06 08:02  pbartok
36552
36553         * X11Structs.cs, XplatUIX11.cs:
36554           - Fixed reparenting
36555           - Fixed window border creation
36556
36557 2004-08-05 15:38  pbartok
36558
36559         * XplatUIX11.cs:
36560           - Attempted fix for reparenting problems
36561
36562 2004-08-04 15:14  pbartok
36563
36564         * Control.cs:
36565           - Fixed Invalidation bug (calculated wrong client area)
36566           - Added ClientSize setter
36567
36568 2004-08-04 15:13  pbartok
36569
36570         * Form.cs:
36571           - Added AutoScale properties
36572
36573 2004-08-04 15:13  pbartok
36574
36575         * SWF.csproj:
36576           - Added latest files
36577
36578 2004-08-04 14:11  pbartok
36579
36580         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36581           XplatUIX11.cs:
36582           - Added Invalidate handling
36583
36584 2004-08-03 17:09  jordi
36585
36586         * XplatUIDriver.cs: fixes spelling mistake
36587
36588 2004-07-27 09:53  jordi
36589
36590         * TrackBar.cs: fixes trackbar events, def classname, methods
36591           signature
36592
36593 2004-07-27 09:29  jordi
36594
36595         * ScrollBar.cs: fixes scrollbar events
36596
36597 2004-07-27 04:38  jordi
36598
36599         * Control.cs: changes to be able to run winforms samples
36600
36601 2004-07-26 11:42  jordi
36602
36603         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
36604           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
36605
36606 2004-07-26 05:41  jordi
36607
36608         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
36609           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
36610           implementation
36611
36612 2004-07-22 09:22  jordi
36613
36614         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
36615           check link overlapping, implement events, and fixes
36616
36617 2004-07-21 10:28  jordi
36618
36619         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
36620
36621 2004-07-21 10:19  jordi
36622
36623         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
36624           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
36625           LinkLabelLinkClickedEventArgs.cs,
36626           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
36627           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
36628           implementation
36629
36630 2004-07-19 13:09  jordi
36631
36632         * Control.cs, Label.cs: label control re-written: added missing
36633           functionlity, events, and properties
36634
36635 2004-07-19 10:49  jordi
36636
36637         * Control.cs: fixes SetBounds logic
36638
36639 2004-07-19 01:29  jordi
36640
36641         * Control.cs: Call RefreshWindow only if the window has created
36642
36643 2004-07-15 14:05  pbartok
36644
36645         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
36646           - Implemented ImageList and ImageList.ImageCollection classes
36647           - Added ColorDepth enumeration
36648           - Updated SWF VS.Net project
36649
36650 2004-07-15 11:06  jordi
36651
36652         * XplatUIStructs.cs: added MsgButons enum
36653
36654 2004-07-15 11:03  jordi
36655
36656         * Control.cs: added basic mouse handeling events
36657
36658 2004-07-15 03:38  jordi
36659
36660         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
36661           Vertical TrackBar control implementation
36662
36663 2004-07-13 09:33  jordi
36664
36665         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
36666
36667 2004-07-13 09:31  jordi
36668
36669         * Control.cs, Form.cs: commit: new properties and fixes form size
36670           problems
36671
36672 2004-07-09 14:13  miguel
36673
36674         * ProgressBar.cs: Spelling
36675
36676 2004-07-09 11:25  pbartok
36677
36678         * ProgressBar.cs:
36679           - Removed usage of Rectangle for drawing. Miguel pointed out it's
36680           faster
36681
36682 2004-07-09 11:17  miguel
36683
36684         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
36685
36686                 * ProgressBar.cs: Fixed spelling for `block'
36687
36688                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
36689                 style guidelines.
36690
36691                 Avoid using the += on rect.X, that exposed a bug in the compiler.
36692
36693 2004-07-08 23:21  pbartok
36694
36695         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
36696           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
36697           BaseCollection.cs, Binding.cs, BindingContext.cs,
36698           BindingMemberInfo.cs, BindingsCollection.cs,
36699           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
36700           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
36701           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
36702           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
36703           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
36704           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
36705           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
36706           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
36707           FrameStyle.cs, GiveFeedbackEventArgs.cs,
36708           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
36709           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
36710           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
36711           InputLanguageChangedEventArgs.cs,
36712           InputLanguageChangedEventHandler.cs,
36713           InputLanguageChangingEventArgs.cs,
36714           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
36715           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
36716           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
36717           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
36718           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
36719           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
36720           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
36721           QueryAccessibilityHelpEventArgs.cs,
36722           QueryAccessibilityHelpEventHandler.cs,
36723           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
36724           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
36725           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
36726           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
36727           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
36728           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
36729           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
36730           XplatUIX11.cs, lang.cs:
36731           - Initial check-in
36732
36733