* DataGridView.cs: Implemented AutoResizeColumn(s).
[mono-project.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blob3deb8933d5d31ebd01cf24f975881b39d9d29ad6
1 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3         * DataGridView.cs: Implemented AutoResizeColumn(s).
4         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
5           according to the Alignment.
6         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
7           Implement alignment and padding when painting.
8         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
9           exists.
10         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11           way.
12         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
13           a column is added.
15 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
17         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
18         which is internal.
20 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
22         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
23         hide GetPreferredSize from public API.
24         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
25         * ToolStripItem.cs: Stub out drag and drop methods and events.
26         * ToolStripManager.cs: Stub out Save/LoadSettings.
27         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
28         * ToolStripPanel.cs: Fix corcompare error.
29         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
30         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
31         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
33 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
35         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
36         bounds height instead of PreferredHeight.  Puts things back the way 
37         they were for height while still fixing the width.  Fixes broken unit
38         tests.
40 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
42         * Binding.cs: Implement 2.0 constructors and add a null check.
44 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
46         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
47           and fix row index (off by one).
49 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
51         * PropertyGridView.cs: Remove debug output.
53 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
55         * Control.cs: We need to reset the is_created flags when the handle is
56           destroyed. Fixes #82187.
57         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
58           client coordinates if the window doesn't have a parent.
59           Win32GetParent returns the parent or the owner, and for top-level
60           windows with no parent (but with an owner) we were calculating the
61           location from the location of the owner.
62         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
63           form has been disposed.
64         * MdiClient.cs: Add a null-check.
66 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
68         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
69         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
70         so we can provide an implementation that returns the current width
71         and preferred height.  Allows anchor = right to work with TextBox 2.0.
72         [Fixes bug #82233]
74 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
76         * ListView.cs: Add support for navigating items in Groups mode, by
77         creating a big matrix containing all rows and cols of all groups. When
78         are in other mode than Details, pressing Up should have a similar
79         behaviour as that one of Down (moving to the next available column if
80         current one doesn't have an item in the requested row). Also, don't
81         proceed to use groups if ShowGroups is false.
82         * ListViewGroup.cs: Add an internal int field to store the starting
83         row of the group (used by the big matrix used for navigating the
84         ListView).
85         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
86         false.
88 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
90         * ToolStripDropDown.cs: When we do Show, start with the 
91         DefaultDropDownDirection, but if our popup menu is going to off-screen,
92         modify the direction to keep it on screen.  [Fixes bug #82210]
94 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
96         * FileDialog.cs: Accept any FilterIndex value, and store it
97         unmodified. When FilterIndex is less than 1, or greater than number
98         of filters, then default to first filter. Only add filter extension to
99         file if user did not specifiy an extension. When type of dialog is
100         OpenFileDialog and DefaultExt is set, then only use filter extension
101         if: CheckFileExists is true and no file wih the default extension
102         exists, or CheckFileExists is false, and user specified file does not
103         exist. When CheckFileExists is true, then add first extension of 
104         selected filter that matches existing file. Perform checks for
105         existing file, overwrite and create after extension has been added to
106         file name. When CheckFileExists is true and type is SaveFileDialog,
107         then only consider first filter extension if DefaultExt is set.
108         When CheckFileExists is true, then ignore DefaultExt if file with that
109         extension does not exist. Also perform check for existing file when
110         type is SaveFileDialog. Changed some field to constants.
112 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
114         * ListView.cs: Take into account the region used by header
115         control when doing the vertical scroll (this way we invalidate
116         the precise area, and don't get any dirty one).
118 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
120         * FileDialog.cs: Check for valid filterIndex on button open/save. 
121         Fixes #82184.
123 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
125         * ListView.cs: Update some layout calculations in details view
126         and clean the code in a pair of assignations.
128 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
130         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
131         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
132         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
133         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
135 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
137         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
138         performance of thread-safe Graphic methods.  (Thanks rolf!)
140 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
142         * ListView.cs: When doing the layout calculations, don't calculate
143         scroll bars before handle is created. This is unnecessary and also
144         calculating them before handle creation item causes a number of random
145         bugs (which begin to appear after Chris' big patch for handle creation
146         fixes). 
148 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
150         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
151         for things that don't have a Graphics object.  Currently, things just use
152         the static Hwnd.bmp_g which is not thread safe.
154 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
156         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
157           dialog. Fixes #82187.
159 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
161         * DataGridViewElement.cs: Initialize state.
162         * DataGridView.cs: Forward a few Mouse events to cells. Add
163           GetRowInternal and GetCellInternal that doesn't unshare rows.
164           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
165           don't use the index, but look it up. Add
166           DataGridViewControlCollection.RemoveInternal to remove controls
167           that Remove won't remove (scrollbars, edit control).
168         * DataGridViewColumn.cs: Initialize State correctly.
169         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
170           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
171           implementing this.
172         * DataGridViewRowCollection.cs: Implemented shared rows.
173         * DataGridViewRow.cs: Throw exceptions as MS do.
174         * DataGridViewCell.cs: A few properties are implemented by a
175           Get<Property> method, so move implementation there and remove the
176           NIEX in the method. Add a bunch of OnXInternal that DataGridView
177           calls when necessary.
178         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
179           complicates matters.
180         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
181           unshare any rows.
183 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
185         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
186         the children controls.  Instead, we will just set up the proper docking for the
187         children controls so we don't have to worry about it.  [Fixes bug #82188]
189 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
191         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
192         canceling and correct Before/AfterLabelEdit properties as layed out in bug
193         81847.  [Fixes bug #81847]
195 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
197         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
198         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
199         an explicit size based on the design-time size of the text.  Since our fonts
200         may not match this explicit size, we tend to cut off the ends of people's labels.
202 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
204         * Menu.cs: Add some missing methods to MenuItemCollection.
206 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
208         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
209         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
210         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
211         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
212         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
213         * DataGridViewElement.cs: State defaults to Visible.
214         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
215         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
217 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
219         * Control.cs: Minor 1.1 corcompare fix.
221 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
223         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
224         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
226 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
228         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
229           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
230           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
231           DataGridViewSelectedColumnCollection.cs,
232           DataGridViewSelectedRowCollection.cs: Corcompare work.
234 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
236         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
237         it is autoset by VS2005 designer and the effect is barely noticeable.
239 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
241         * TreeView.cs: Implement HitTest.
243 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
245         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
246           manually adding and removing the control from the Controls
247           collecftion.
248         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
249           EditingControlInternal property that tracks the editing control.
250           Always keeping the scrollbars in the Controls collection, as MS
251           testing confirms is the right behaviour.
253 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
255         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
256           according to MSDN and new test.
258 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
260         * TreeNode.cs: Implement ToolTipText.
261         * TreeView.cs: Implement tooltips, NodeMouse* events.
263 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
265         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
267 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
269         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
270         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
272 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
274         * Control.cs, Form.cs, ContainerControl.cs,
275         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
276         for misc properties.
278 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
280         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
281         * TreeView.cs: Implement StateImageList.
283 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
285         * Form.cs: Don't check if the current form is the active form before
286           activating it. Fixes #81904.
288 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
290         * Form.cs: Don't check if the current form is the active form before
291           activating it. Fixes #81904.
293 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
295         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
297 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
299         * Form.cs: Don't try to position the form after loading if the form was
300           disposed. Fixes #81969.
302 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
304         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
305           properties. Had to change ToolBar into ToolStrip, which required a
306           few #ifs.
308 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
310         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
311           resized, fixes part of #79829 (vertical lines in toolbar).
312           PropertyGrid: Refactored Populate* to something that's easier to
313           follow at least for me, as well as splitting it up into several new
314           methods, required to update only subitems when something has
315           changed by a popup editor or listbox. Don't use events to check
316           when any values are changed, since the events are unreliable (we're
317           changing the objects the events are registered with, and if the
318           event handling requires the objects to be immutable (objects stored
319           in hashtables for instance), the events will never be raised).
320         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
321           everytime we change a value, since events are unreliable.
322           DropDownButtonClicked: For the same reason don't compare objects to
323           check if it has changed or not, it would require all objects to
324           derive Equals. Fix dialog location on windows, MS is doing weird
325           things when creating parented forms.
326         * GridEntry.cs: Add a SelectedObject setter.
328 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
330         * TreeNode.cs: Add some corcompare attributes.
331         * TreeNodeCollection.cs: Implement 2.0 stuffs.
332         * TreeView.cs: Implement some 2.0 stuffs.
334 2007-07-18  Andreia Gaita  <avidigal@novell.com>
336         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
337         for moma.
339 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
341         * ListBox.cs: Implement custom tab offsets.
343 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
345         * ToolStripContentPanel.cs: Support System renderer.
346         * ToolStripControlHost.cs: Set RightToLeft to default to No.
348 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
350         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
352 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
354         * CheckBox.cs: Chain TextAlign to base implementation instead of
355         maintaining another one.
357 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
359         * ButtonBase.cs: Fix an incorrect string constant.
361 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
363         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
364         of creating one for measuring strings.
366 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
368         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
369         Implement MaxItemSize.
371 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
373         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
374         for DeviceContext.  Instead, use the static one available in Hwnd.
375         Informal tests show this saves about 500k on formtest.exe.
377 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
379         * ContainerControl.cs: Implement 2.0 AutoScaling.
381 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
383         * ComboBox.cs: Work around bug #82120 (bug in mcs).
385 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
387         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
388         Darken the focus color.
390 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
392         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
393         for the checkbox.
394         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
395         X, Y instead of a rect for drawing text.
396         - For ControlPaint.DrawCheckBox, center the check a little better when the
397         checkbox is odd width.  When drawing a flat checkbox, use a white background
398         when state != inactive.
399         [Fixes bugs #82097, 82100]
401 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
403         * ListControl.cs: When changing CurrencyManager, disconnect event
404         handlers from previous one. Fixes bug #81771. Code formatting.
406 2007-07-15  Andreia Gaita <avidigal@novell.com>
408         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
409         full preview invalidation from layout invalidation, and only invalidate
410         the layout when setting zoom or other properties. Invalidation should
411         always be done even when resetting properties with the same values as
412         what is there. Fixes #81744 and #79830.
414 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
416         * ListView.cs: Implement initial support for Groups. Split some of the
417         LayoutIcons code to render a partial list of the items (needed by
418         items contained in ListViewGroup instances). Let the
419         ListViewItemsCollection.ListView property be modifiable (needed when
420         using Groups, too).
421         * ListViewGroup.cs: Use a Bounds property rather than a Location
422         one. Also invalidate the bounds when they get changed.
423         * ThemeWin32Classic.cs: When drawing items, also draw the group header
424         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
425         method as well.
427 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
429         * ListView.cs: When space gets pressed and CheckBoxes is true, 
430         don't invoke the Begin and EndUpdate methods. We are generating 
431         a redraw of the entire control without need to do so.
433 2007-07-13  William Holmes <billholmes54@gmail.com> 
435         * Control.cs: Changing logic in FindFlatForward and 
436           FindFlatBackward to handle multiple Controls with 
437           the same TabIndex.  
438           This fixes bug 81687.
440 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
442         * OSFeature.cs: Enable IsPresent.
444 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
446         * Control.cs: Don't do anything in WmShowWindow if the control has been
447           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
448           control is created, put on a form, the control is disposed (the
449           form is never shown), and then we get a MapNotify, triggering a
450           WM_SHOWWINDOW.
451         * Form.cs: Exclude the current form when sending Deactivate to all
452           MdiChildren.
453         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
454           there was a race condition because assigning the handle raises
455           events, we can get more messages, therefore trying to assign the
456           handle again, which would fail if any of those event handlers
457           closed/disposed the control.
459 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
461         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
463 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
465         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
466         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
468 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
470         * DateTimePicker.cs: If there's no part format specifier, return an
471           empty string.
473 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
475         * FlatButtonAppearance.cs: Throw NotSupportedException for a
476         Transparent BorderColor.
478 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
480         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
481           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
482           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
483           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
484           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
485           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
486           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
487           Remove warnings.
488         * X11Structs.cs: Remove warnings, add ToString implementations.
490 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
492         * XplatUIX11.cs: Translate min/max size according to the actual min/max
493           size, and not the current size. Fixes #81798.
495 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
497         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
498           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
499           to the control yet).
501 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
503         * PropertyGridTextBox.cs: Add a method that sends any forwarded
504           mousedowns to the contained textbox.
505         * X11Structs.cs: More ToString implementation.
506         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
507           #81791.
509 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
511         * PropertyGridView.cs: Add a null-check, fixes a few tests.
513 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
515         * TableLayoutPanelCellPosition.cs: TypeConverter.
517 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
519         [ Fixes #79761]
520         
521         * PropertyGridTextBox.cs: Propagate any color changes to all contained
522           controls.
523         * PropertyGridView.cs: A few color fixes.
525 2007-07-10  Jackson Harper  <jackson@ximian.com>
527         * TextControl.cs: Remove some old unused text formatting stuff.
529 2007-07-10  Jackson Harper  <jackson@ximian.com>
531         * TreeView.cs: Update full row select invalidation to match the
532         newer DrawSelection... method.
533         - Make sure to invalidate the entire width when selecting a new
534         node, if we have full row selection enabled.
536 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
538         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
539           display of properties again.
541 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
543         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
544         to existing collections.
546 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
548         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
549         that changed between 1.1 and 2.0.
551 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
553         * PowerStatus.cs: Added.  This is just a data class, it is filled
554         in by SystemInformation.
556 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
558         * Message.cs: Add op_Equality and op_Inequality.
560 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
562         * MenuStrip.cs: Finish corcompare work.
564 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
566         * LinkArea.cs: Add op_Equality and op_Inequality.
568 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
570         * Application.cs: Add MessageLoopCallback delegate.
572 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
574         * ListBox.cs: First set of 2.0 stuffs.
576 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
578         * Control.cs: Make an internal Height property we can override
579         without messing up the public API.
580         * ListBox.cs: Override HeightInternal to always return the size
581         the user set.  [Fixes bug #80466]
583 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
585         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
586         paint cell borders if we haven't calculated where they go yet.
587         [Fixes bugs #82040 and #82041]
589 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
591         * ListView.cs: In Details view, set the location of item_control
592         in the (0,0) position (and the header_control is thus on the
593         item_control). This way the Bounds of the Items are relative to the
594         ListView control (before this, they had a Bounds value without the
595         header_control offset, which wasn't matching .Net). Fixes #82004.
597 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
599         * ListControl.cs: When DataSource is set to null, pass an empty
600         array of object to SetItemsCore. This is done to clean the items
601         in the ListContol children. Fixes #81788.
603 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
605         * ListControl.cs: Add 2.0 stuffs.
607 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
609         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
610         Refresh is overkill for just about every repaint request.
612 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
614         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
615         so remove my custom Get method and fix the property getter.
617 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
619         * Label.cs: DefaultMargin for 2.0.
621 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
623         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
624         reported issue where other controls with mnemonics would steal strokes
625         from a selected ComboBox.
627 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
629         * ScrollOrientation.cs: Make internal for 1.1.
630         * ScrollEventArgs.cs: Add 2.0 stuffs.
632 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
634         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
635         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
636         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
638 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
640         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
642 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
644         * ListView.cs: Implement the so-incredibly broken 2.0 
645         VirtualItemsSelectionRangeChanged event.
647 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
649         * ListView.cs: When enter is pressed and selection is non empty,
650         an OnItemActivate event must be fired.
652 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
654         * ListView.cs: Store the FocusedItem information as an
655         int instead of a ListViewItem (needed by VirtualMode).
656         Update the calls to SetFocusedItem to pass an index instead of
657         an item.
658         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
659         the Focused state from the owner ListView. 
661 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
663         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
664         property. Also, invalidate previous focused item in the mentioned
665         property (match .Net).
667 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
669         * ListView.cs: Implement 2.0 FocusedItem property setter.
671 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
673         * ListView.cs: Implement 2.0 TopItem property setter.
675 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
677         * StatusStrip.cs: The default renderer is System.
678         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
679         if the user specifies it.
680         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
681         if we are ManagerRenderMode.
682         * ToolStripMenuItem.cs: Calculate our text color better.
683         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
684         from Professional to the base class based off working with the System renderer.
685         * ToolStripSystemRenderer.cs: Added.
687 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
689         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
691 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
693         * ToolTip.cs: Implement 2.0 Tag property.
695 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
697         * ListView.cs: Implement 2.0 HitTest methods.
699 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
701         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
702         item is under the pointer or not (sugar). Also remove the TODO
703         regarding to the cursor changes in OneClick activation.
704         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
705         the subitems use the parent's HotFont if UseItemStyleForSubItems is
706         true; otherwise don't show the underline style.
708 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
710         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
711         the code to retrieve the item at position only one time. Also
712         change cursor when Activation is ItemActivation.OneClick as well
713         as invalidate the item if HotTracking is true (to show/hide the
714         underline style). Add an internal HotItemIndex property to retrieve
715         the current hot item's index.
716         * ListViewItem.cs: Add an internal HotFont property to cache the
717         font used when HotTracking is true and the pointer moves within the
718         item's borders.
719         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
720         HotFont depending on the hot state of the item.
722 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
724         * ListView.cs: Implement 2.0 HotTracking property.
726 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
728         * ToolStripControlHost.cs: If our hosted control never got created,
729         don't try to dispose it.  [Fixes bug #81909]
731 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
733         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
735 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
737         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
739 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
741         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
742         Details view.
743         * DrawListViewColumnHeaderEventArgs.cs:
744         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
745         using the DrawText () methods.
747 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
749         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
750         background which got erased in my changes yesterday.
752 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
754         * ListViewItem.cs: Actually set bounds for subitems in Details view
755         (2.0 feature).
756         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
757         can invoke from the owner draw routines if we need it. Also, add
758         support for Owner draw in Details view.
760 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
762         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
763         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
764         ShowImageMargin setting, properly align text in a ToolStripLabel
765         hosted on a ToolStripDropDown.
767 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
769         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
770         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
772 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
774         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
776 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
778         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
779         location to match ToolStripMenuItems.
781 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
783         * DrawListViewColumnHeaderEventArgs.cs:
784         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
785         column headers in ListView. 
787 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
789         * UserControl.cs: Implement AutoSize.
791 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
793         * DrawListViewItemEventArgs.cs:
794         * ListView.cs:
795         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
796         ListView.
798 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
800         * ToolStripDropDownItemAccessibleObject.cs: Added.
801         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
802         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
803         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
804         ToolStripTextBox.cs: corcompare work.
806 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
808         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
809         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
810         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
811                 corcompare.
813 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
815         * OSFeature.cs: Add IsPresent.
816         * PrintPreviewControl.cs: Add RightToLeft.
817         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
818         * SplitterPanel.cs: Add AutoSizeMode.
820 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
822         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
823         * MdiClient.cs: Add 2.0 ScaleControl.
824         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
825         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
827 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
829         * Form.cs: Implement some scaling methods, stub some RTL methods,
830         corcompare work.
832 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
834         * Control.cs: corcompare work.
835         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
837 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
839         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
840         ControlPaint 2.0 stuffs.
842 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
844         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
846 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
848         * UpDownBase.cs: Add 2.0 stuffs.
850 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
852         * NumericUpDown.cs: Add 2.0 stuffs.
854 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
856         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
858 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
860         * ErrorProvider.cs: Implement 2.0 stuffs.
862 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
864         * DomainUpDown.cs: Implement 2.0 stuffs.
866 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
868         * CheckedListBox.cs: Fix RefreshItems signature.
870 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
872         * PictureBox.cs: Implement 2.0 stuffs.
874 2007-06-12  Andreia Gaita  <avidigal@novell.com>
875         
876         * TabControl.cs: Check if there are tabpages before checking
877         the selected index - fix #81802 (font changes raise a ResizeTabs
878         call on controls.add, which blew up nicely with no tabpages)
880 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
882         * ListView.cs:
883         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
885 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
887         * ListView.cs:
888         * ListViewItem.cs: In VirtualMode the selection information
889         resides in the ListView, rather than in the Items. Also, throw
890         InvalidOperationExceptions when VirtualMode is being used and
891         CheckedItemCollection is accessed.
893 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
895         * ComboBox.cs: Add ScaleControl.
897 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
899         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
901 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
903         * GroupBox.cs: Add 2.0 stuffs.
905 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
907         * Panel.cs: Add autosize properties/event.
909 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
911         * Control.cs:
912         - When we remove a control, remove it from the collection before performing the layout.
913         - Setup an internal property for explicit_bounds.
914         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
915         - Perform a layout when we set a new AutoSizeMode.
917 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
919         * ScrollableControl.cs: Add 2.0 stuffs.
921 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
923         * ScrollBar.cs: Add 2.0 stuffs.
925 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
927         * Splitter.cs: Add 2.0 stuffs.
929 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
931         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
932         to have BindingContext simply use base implementation.
934 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
936         * ColumnHeader.cs: corcompare fix.
938 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
940         * Button.cs: corcompare fixes.
941         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
943 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
945         * Button.cs: Override GetPreferredSizeCore.
946         * ButtonBase.cs: PerformLayout after changing properties that can affect
947         AutoSize.  Simplify some mouse/keyboard code.
948         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
949         * MouseEventArgs.cs: Make Location internal for 1.1.
950         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
951         * Theme.cs: Add CalculateButtonAutoSize.
952         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
954 2007-06-05  Miguel de Icaza  <miguel@novell.com>
956         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
958 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
960         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
961         since we can get different item instances every time we retrieve it.
963 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
965         * ListView.cs: Work around for #81602, since an unkown an pretty
966         infrequent condition appears only in some systems (old linux boxes, it
967         seems).
969 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
971         * Button.cs: Completely reformat and a little refactor to bring
972         this closer to Mono circa 2007.
974 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
976         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
977         to be ButtonBase.Invalidate.
979 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
981         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
983 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
985         * ButtonBase.cs: Completely reformat and a little refactor to bring
986         this closer to Mono circa 2007.
988 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
990         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
991         values for autosize. Fixes #80137.
993 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
995         * Control.cs: Don't perform layout when AutoSize changes.
996         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
997         directly when autosizing, use SetBounds with BoundsSpecified.None.
998         Fixes unit tests my last commit broke.
1000 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
1002         * Control.cs: Perform layout when AutoSize changes.
1003         * Form.cs: Implement AutoSizing.
1005 2007-06-01  Chris Toshok  <toshok@ximian.com>
1007         * DataGrid.cs: remove the XXX'ed check at the top of
1008         ProcessGridKey.  fixes #80464.
1010 2007-06-01  Chris Toshok  <toshok@ximian.com>
1012         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
1013         adding idempotent (add/remove in Edit()), and also make sure we
1014         don't add it until after we set the text, so it's not tripped in
1015         Edit().  Fixes unit test regression.
1017 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
1019         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
1020         change is user explicit, not when the layout engine moves stuff.  Fixes
1021         anchoring to bottom and right.  [Fixes bug #81790]
1023 2007-06-01  Andreia Gaita  <avidigal@novell.com>
1025         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
1027 2007-06-01  Andreia Gaita  <avidigal@novell.com>
1029         * ContainerControl.cs: 
1030         Fire enter event for common ancestor if it is not a ContainerControl.
1031         Send focus to the active_control and not the 'value', the active 
1032         control might have been changed in one of the events fired.     
1033         Definitely fixes #80159.
1035 2007-06-01  Andreia Gaita  <avidigal@novell.com>
1037         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
1039 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1041         * PropertyGrid.cs: Anchor the help description to the bottom of the
1042           help panel and refactor SelectGridItem into a
1043           SelectGridItemInternal that can be set to null (and update it to
1044           clear the help texts when it is set to null). Set root item to null
1045           when there's no SelectedObject. Fixes #80438.
1046         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
1047           when we're recalculating after a resize (only).
1049 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1051         * ListView.cs: Implement 2.0 RedrawItems method.
1053 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1055         * ListControl.cs: Disconnect PositionChanged and ItemChanged
1056         handlers from previous data manager when DataSource is set to
1057         null. Fixes #81771.
1059 2007-05-31  Jackson Harper  <jackson@ximian.com>
1061         * TextBoxBase.cs: These seem to be the correct values.
1063 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
1065         * FileDialog.cs: When close dialog with ok set filterindex using combobox
1066         value. Fixes #81784.
1068 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
1070         * Control.cs: Implement 2.0 scaling methods.
1072 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1074         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
1075           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
1076           corcompare issues.
1078 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1080         * ProgressBar.cs: Implemented missing 2.0 members.
1082 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1084         * Control.cs: Corcompare issues.
1085         * MessageBox.cs: Implemented missing 2.0 functions.
1087 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1089         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
1090           Implemented more 2.0 members.
1092 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1094         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
1095           null (strange, but it seems to happen when running unit tests).
1097 2007-05-30  Andreia Gaita  <avidigal@novell.com>
1099         * ContainerControl.cs: Set active_control even earlier, before 
1100         firing any events, and undo it if validation returns false.
1102 2007-05-30  Andreia Gaita  <avidigal@novell.com>
1104         * ContainerControl.cs: Raise Validation and Enter/Leave events
1105         even if there is no Form and set active_control earlier, just
1106         before firing Enter events (toshok's patches). Fixes #80647.
1108 2007-05-30  Jackson Harper  <jackson@ximian.com>
1110         * TextControl.cs: Redid the pageup/pagedown a little to simplify
1111         things and fix bug #81311.
1113 2007-05-30  Jackson Harper  <jackson@ximian.com>
1115         * X11Dnd.cs: Now that we have our own event loop, we need to
1116         cancel when we get a mouseup but it won't be accepted.
1118 2007-05-30  Chris Toshok  <toshok@ximian.com>
1120         * DataGrid.cs (set_CurrentCell): guard against negative
1121         column/row.
1123         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
1124         array index syntax instead of looping over the property names.
1126         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
1127         and set IsInEditOrNavigateMode to false there.
1129 2007-05-30  Jackson Harper  <jackson@ximian.com>
1131         * TreeView.cs: Make sure we don't get a bad visible order when
1132         setting to the top node.  Fixes some misc crashing in
1133         ControlInspector.
1135 2007-05-30  Andreia Gaita  <avidigal@novell.com>
1137         * UserControl.cs: Add 2.0 AutoSizeMode
1139 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
1141         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
1143 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
1145         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
1146         lines. Fixes #80285. 
1148 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
1150         * DataGridColumnStyle.cs: Add char trimming column header text format. 
1152 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
1154         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
1155         Fixes #80147.
1157 2007-05-29  Jackson Harper  <jackson@ximian.com>
1159         * TreeNode.cs: Fix off by one on calculating whether or not a node
1160         is visible.
1162 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
1164         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
1165         * ScrollableControl.cs: Force an UpdateDistances when we move the
1166         scrollbars.
1167         [Fixes bug #80605]
1169 2007-05-29  Andreia Gaita  <avidigal@novell.com>
1171         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
1172         update the page setup screen.
1174 2007-05-29  Andreia Gaita  <avidigal@novell.com>
1176         * PageSetupDialog.cs: Fix landscape mode.
1178 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1180         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
1181         IconSizeHorizontalSpacing.
1183 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1185         * ListView.cs: The declaration of prev_tooltip_item should be inside
1186         a NET_2_0 conditional (avoid a warning).
1188 2007-05-28  Andreia Gaita  <avidigal@novell.com>
1190         * PageSetupDialog.cs: Implement PrintPreview control to display
1191         the preview thumbnail. Change unit conversion to use 
1192         PrinterUnitConvert methods.
1193         
1194         Note: there is a huge bug in ms.net where the default margins are 
1195         interpreted as centimeters (?), when in fact they are set in inches. When 
1196         loading the page setup dialog initially (ms.net), the default margins 
1197         are set to 1 inch, and the dialog shows them with value 10, when in fact 
1198         it should be 25 (properly converted). Our dialog doesn't have this bug.
1199         
1200         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
1201         RectangleF.
1202         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
1204 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1206         * ListView.cs:
1207         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
1208         items.
1210 2007-05-28  Andreia Gaita  <avidigal@novell.com>
1212         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
1213         an IntPtr on csc (it builds fine on mcs, could it be a compiler
1214         bug?), convert the ptr to Int32 first.
1216 2007-05-28  Jackson Harper  <jackson@ximian.com>
1218         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
1219         recieved, we will exit the dnd tracking loop.
1221 2007-05-28  Jackson Harper  <jackson@ximian.com>
1223         * X11Dnd.cs: Keep tracking until the xdnd finished event is
1224         recieved. TODO: I should probably stick a timer on the dropped
1225         event, and finish the drag if the XDND Finished event never shows
1226         (because some apps don't seem to send it).
1228 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
1230         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
1231         #81733.
1233 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1235         * MonthCalendar.cs: Only mark the keypresses we actually handle as
1236           handled.
1238 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1240         * MonthCalendar.cs: Set the size after initializing all the relevant
1241           variables. Fixes #81742.
1243 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1245         * KeyEventArgs.cs: Fix typo.
1247 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
1249         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
1250         to match MS. Fixed MinDate to only accept value less than or equal
1251         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
1252         Removed TODO's that are now verified by unit tests.
1254 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
1256         * TreeNodeCollection.cs: Minor corrections to exceptions to match
1257         MS.
1259 2007-05-25  Jackson Harper  <jackson@ximian.com>
1261         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
1262         it's own message loop.
1263         * XplatUIX11.cs: Remove some of the dnd hooks
1265 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
1267         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
1268         instead of MinimizedWindowSize.
1270 2007-05-25  Jackson Harper  <jackson@ximian.com>
1272         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
1274 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1276         * KeyEventArgs.cs: Added SuppressKeyPress.
1277         * Control.cs: Added support for SuppressKeyPress.
1279 2007-05-24  Andreia Gaita  <avidigal@novell.com>
1281         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
1282         problems with PieChart. suppress_validation should not be a counter,
1283         if there are several BeginInit calls, the first EndInit will 
1284         activate validation. Fix exceptions thrown by set_Value.
1285         * UpDownBase.cs: ValidateText only if it's the user editing it.
1287 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1289         * ListControl.cs: FilterItemOnProperty should return the filtered
1290         item proeprty even if DataSource is null. The same applies for
1291         GetItemText. Fixes #80427.
1293 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
1295         * Control.cs: If a control doesn't have a parent when it's Dock is
1296         set, but it has children, it needs to do a layout.  Fixes some nested
1297         controls issues.  [Fixes bug #81199]
1299 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1301         * ComboBox.cs: If there are few items in the drop down list, make it
1302           the exact size the items need, no bigger. Fixes #81612.
1304 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
1306         * Application.cs: When we have captured the keyboard for a menu,
1307         check for mouse down events in case we need to close the menu.
1308         * Control.cs, Form.cs: Remove mouse down checks for menus.
1310 2007-05-24  Jackson Harper  <jackson@ximian.com>
1312         * TextControl.cs: Handle tabs in non multiline mode a little
1313         differently.
1315 2007-05-24  Jackson Harper  <jackson@ximian.com>
1317         * TextControl.cs: We need to manually break apart tabbed text and
1318         move the tabs, since the system.drawing tabbing mechanism relies
1319         on tab stops.
1320         * TextBoxBase.cs: Move the caret properly when the user enters a
1321         tab.
1323 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
1325         * ContainerControl.cs: Don't check CanSelect before calling
1326         ProcessMnemonic.
1327         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
1328         release a KeyboardActive on click if it's not ours.
1330 2007-05-23  Andreia Gaita  <avidigal@novell.com>
1332         * ColumnHeader.cs: Add TypeConverter
1334 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1336         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
1338 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1340         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
1342 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1344         * LinkLabel.cs: Implement public Padding property.
1346 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1348         * LinkLabel.cs: Implement public FlatStyle.
1350 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
1352         * Control.cs: Apply patch from George to call parent.PerformLayout
1353         when Visible is changed.  [Fixes bugs #81118, 81718]
1355 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1357         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
1359 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1361         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
1363 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1365         * ContextMenu.cs: Implement Collapse.
1367 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
1369         * ToolBarButton.cs: Implement Name.
1371 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
1373         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
1374         use current_item, it prevents some NRE. Fixes #81675.  
1376 2007-05-22  Andreia Gaita  <avidigal@novell.com>
1378         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
1379         without updating the text.
1381 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
1383         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
1384         without calling DeleteObject.  [Should fix bug #81709]
1386 2007-05-22  Jackson Harper  <jackson@ximian.com>
1388         * RichTextBox.cs: Set the line endings correctly, when flushing
1389         RTF text.
1391 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
1393         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
1394          {Width=0,Height=0}.
1396 2007-05-22  Jackson Harper  <jackson@ximian.com>
1398         * TreeView.cs: Setting top with a null node should set to the very
1399         top.
1401 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1403         * Form.cs: ShowDialog: destroy the handle when message loop is
1404           finished, matches MS behaviour. Refactor parts of WmClose into
1405           RaiseCloseEvents, that only raises events if they haven't already
1406           been raised. Fixes #81688 and #81521.
1407         * Application.cs: Don't call close on the form when exiting a modal
1408           loop, it will raise all the (Form)Closed/Closing events again if
1409           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
1410           which doesn'r raise any events it they have been raised before.
1412 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
1414         * Control.cs: Add OnPrint.
1415         * ToolStrip.cs: Add GetChildAtPoint.
1416         * ToolStripContainer.cs: Add OnRightToLeftChanged.
1417         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
1419 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
1421         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
1423 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1425         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
1426           isn't visible anymore. Fixes #81651.
1428 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1430         * Control.cs: WmShowWindow: Update children's z-order after setting
1431           their parent. SetParent may show the window, thereby corrupting
1432           z-order, since the window will be shown on top.
1433         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
1434           multiple (and redundant) WM_SHOWWINDOW messages.
1435         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
1436           event has already been raised.
1437         * Form.cs: Change is_changing_visible_state to a counter, since
1438           SetVisibleCore can be called recursively. CreateHandle: when
1439           creating mdi children, send (De)Activated events.
1440         * MdiClient.cs: Update use of is_changing_visible_state.
1441         * Application.cs: OnThreadException: Surround exception handling with
1442           try/finally to ensure we always reset the error-handling state
1443           before leaving.
1445 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1447         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
1448           (#81704).
1450 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1452         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
1453         SmallIcon views, now that we have a standarized horizontal spacing.
1455         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
1456         4, just like the other views (Match .Net).
1458 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
1460         * Control.cs: Delay calculating anchor distances until we actually layout.
1461         Always query the WM for the actual size and location it put us at instead of
1462         only when we send negative values.
1463         [Fixes bugs #81694, 81695]
1465 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1467         * Application.cs: Avoid a possible stack overflow when trying to exit
1468           the application.
1470 2007-05-19  Marek Safar  <marek.safar@gmail.com>
1472         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
1473         enum value.
1475 2007-05-19  Andreia Gaita  <avidigal@novell.com>
1477         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
1478         * NumericUpDownAcceleration.cs, 
1479           NumericUpDownAccelerationCollection.cs: Added 2.0
1480           implementation.
1482 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
1484         * RichTextBox.cs: Recalculate the document after the ScrollBars
1485         property is changed. Fixes bug #81681.
1487 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
1489         * DataObject.cs: Implement 2.0 methods.
1491 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1493         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
1494         in the center of the checkbox, not in the left-top corner. 
1495         Fixes #80037.
1497 2007-05-18  Jackson Harper  <jackson@ximian.com>
1499         * RichTextBox.cs: Recalculate the document after the scrollbars
1500         property is changed.
1501         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
1502         81486.
1504 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1506         * CreateParams.cs: Make HasWindowManager marginally faster.
1507         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
1508           into Hwnd so that other drivers can use it as well.
1509         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
1510           the default location from Hwnd. Fixes MDI client windows always
1511           showing up at (0,0) in Windows (Win32 won't set the default
1512           location since the window styles aren't correct).
1514 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
1516         * TreeView.cs: Modified DoubleBuffered to just use the base
1517         implementation.
1519 2007-05-18  Jackson Harper  <jackson@ximian.com>
1521         * TreeView.cs: Set the top node to the last child node when
1522         expanding all
1523         - When we get focus, if there is no selected node, use the top
1524         node.
1526 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
1528         * KeysConverter.cs: Add CanConvertTo.
1529         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
1530         * LinkConverter.cs: Added.
1532 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1534         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
1535         it prevents error when file dont have write access. Fixes #81669 and #81667.  
1537 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1539         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
1540         button text. Fixes #79640.  
1542 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1544         * Control.cs: According to MSDN controls created in the designer theres 
1545         keyboard accelerators visible by default. So included check for design
1546         in ShowKeyboardCuesInternal.  
1548 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1550         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
1551         text. Fixes #81621.  
1553 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1555         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
1556         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
1558 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
1560         * Control.cs: Finish implementation of UI State using WmChangeUIState
1561         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
1562         in some controls to check for show_keyboard_cues to draw accell keys "_".  
1564 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1566         * ListBox.cs: When calculating the horizontal scrollbar
1567         in single column mode, don't use values less than 0 for
1568         Maximum. Fixes #81474.
1570 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1572         * ListBox.cs: Throw the some missing exceptions in
1573         ListBox.ObjectCollection methods.
1575 2007-05-17  Jackson Harper  <jackson@ximian.com>
1577         * TextBoxBase.cs: Recalculate the document when the word wrap
1578         value has changed. This fixes 81488.
1580 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
1582         * Clipboard.cs: Implement missing GetText overload.
1584 2007-05-17  Chris Toshok  <toshok@ximian.com>
1586         * Control.cs (CheckDataBindings): remove the binding_context arg
1587         to binding.Check.
1589         * CurrencyManager.cs (OnItemChanged): fix this now that
1590         BindingManagerBase is fixed. also remove the comment telling where
1591         the fix should go.  We set transfering_data to true/false around
1592         the call to PushData to keep UpdateIsBinding from being called.
1593         (ListChangedHandler): remove the extra OnMetaDataChanged call for
1594         PropertyDescriptorAdded in the 1.1 case.  The extra call is
1595         actually generated by System.Data generating 2 metadata changed
1596         events of its own per column add.  The fix should go there.  Add a
1597         comment to that affect in our test's Assert.Ignore.
1599         * BindingManagerBase.cs: Rework PullData and PushData slightly.
1600         we keep a boolean flag (transfering_data) that keeps us from
1601         calling UpdateIsBinding multiple times if we re-enter either of
1602         them.
1604         * ControlBindingsCollection.cs (AddCore): remove the
1605         binding_context arg to binding.Check.
1607         * Binding.cs (IsBinding): don't check if we're binding here, just
1608         return our cached value.  we update it in UpdateIsBinding.
1609         (Check): don't take the binding_context arg, we'll just use our
1610         control's.  Also, for some reason MS doesn't use the data member
1611         field when getting the bindingmanager for this binding.  it just
1612         uses the datasource.  Make this method callable multiple times,
1613         and only do the is_null_desc stuff if manager.Position != -1 (so
1614         we don't get an exception accessing manager.Current).
1615         (UpdateIsBinding): move the code from IsBinding here.
1616         (PositionChangedHandler): call Check here to we can initialize
1617         things that require a non- -1 position.
1619 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
1621         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
1622         control.
1624 2007-05-17  Andreia Gaita  <avidigal@novell.com>
1626         * TabControl.cs: Add 2.0 methods and events, including
1627         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
1628         * TabPage.cs: Add 2.0 methods
1630 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
1632         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
1633         keyboard_cues is properly handled by message method.  
1635 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
1637         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
1639 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
1641         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
1643 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
1645         * Control.cs: 
1646         - WmUpdateUIState added to handle state changes, it make call to
1647         OnChangeUICues event.
1648         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
1649         SystemInformation.
1651 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
1653         * ImageKeyConverter.cs: Added.
1654         * TreeViewImageKeyConverter.cs: Added.
1656 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1657         
1658         * ToolTips.cs: Update Text if SetToolTip is called for a control
1659         already showing the tooltip, as well as restarting its timer; show
1660         tooltip if we are inside the control bounds by the time of calling
1661         SetToolTip. Inside ShowTooltip remove the check to not show the 
1662         tooltip again for the active control (it is allowed by .Net to 
1663         show the tooltip on the same control multiple times).
1665 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1667         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
1669 2007-05-16  Andreia Gaita <avidigal@novell.com> 
1671         * ContainerControl.cs: only process tab key if there are no 
1672         modifier keys present, otherwise the control does the 
1673         tab processing, if it needs to. Fixes #81622
1674         * TabControl.cs: Fixes calculation for which tab to select on
1675         shift+ctrl+tab.
1677 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1679         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
1681 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
1683         * Control.cs: Make IsInputCharInternal to allow controls to
1684         override it and still match MS API.
1685         * TextBoxBase.cs: Override IsInputCharInternal and always
1686         return true.
1687         [Fixes bug #81616]
1689 2007-05-15  Jackson Harper  <jackson@ximian.com>
1691         * TextBox.cs: Disable some of the menu options when using a
1692         readonly textbox.
1694 2007-05-15  Jackson Harper  <jackson@ximian.com>
1696         * TextBox.cs:
1697         * TextBoxBase.cs:
1698         * RichTextBox.cs: Some new 2.0 methods
1700 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
1702         * FileDialog.cs: On 1.0 profile, do not support multidotted 
1703         extensions.
1705 2007-05-14  Jackson Harper  <jackson@ximian.com>
1707         * TextBoxBase.cs: Implement some of the new 2.0 methods.
1708         * RichTextBox.cs: We need to override these methods on 2.0.
1709         * MaskedTextBox.cs: These are implemented now
1710         * TextControl.cs: This was off by one.
1712 2007-05-14  Jackson Harper  <jackson@ximian.com>
1714         * TextControl.cs: Because the line endings are including in the
1715         text, we don't need to add them in anymore.
1717 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
1719         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
1720         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
1722 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
1724         * ToolBar.cs: Adjust size to default size when button theres no text and
1725         image, it fixes remaining issues from #81524.
1727 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
1729         * ToolBar.cs: 
1730         - When not flat call redraw to recalculate sizes on creare handle to match
1731         win32 behavior.
1732         - Revert 77220 because it causes some regressions in toobar
1733         button.
1735 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1737         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
1738           now actually enters a usable state.
1740 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
1742         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
1743         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
1744         3 buttons.
1746 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
1748         * ToolBar.cs: Save default_size on create handle to use later for buttons
1749         without text, needed to mimic win32 behavior.
1751 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
1753         * ToolBar.cs: Fix button layour to best fit width or height according to
1754         vertical or not. Fixes #81524.
1756 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
1758         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
1759         toolbar size info because different styles theres different sizes.
1760         Fixes #81522.
1762 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1764         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
1765         if we are using checkboxes, checked is true, and we have less
1766         than two images in StateImageList; for the 1.1 in the same scenario
1767         draw the first image if we have at least one image in StateImageList.
1768         Fixes part of #81191.
1770 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
1772         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
1773         the owner's Items collection on merge.
1775 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
1777         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
1778         * ToolStripItemCollection.cs: Lots of fixes to when events get called
1779         and parent/owner gets changed based on gert's unit tests.
1781 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1783         * MaskedTextBox.cs: Started implementing parts of it.
1785 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1787         * ListView.cs: When clicking the checkbox on the items
1788         take into account the double clicks even if we have only
1789         one image in StateImageList (only for 1.0/1.1). Also 
1790         generate an extra change of checked state when we receive
1791         the second click on checkbox (match .Net behaviour). 
1792         Fixes part of #81191.
1794 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
1796         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
1798 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
1800         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
1801         even if OnLoad is overriden and base.OnLoad is not called.
1802         [Fixes bug #81582]
1804 2007-05-10  Andreia Gaita  <avidigal@novell.com>
1806         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
1807         shame. (I blame my ever-persisting and annoying cold)
1809 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
1811         * ListView.cs: Don't eat navigation keys.  Let them flow through to
1812         KeyDown/KeyPress routines.  [Fixes bug #81569]
1814 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
1816         * ListView.cs: When handling keys for selecting the item based off
1817         keyboard input, do not consider keys pressed with Alt or Control.  Also,
1818         correctly handle keys when the Shift key is down. [Fixes bug #81578]
1820 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
1822         * Control.cs: When using UseWaitCursor, we have to store the requested
1823         Cursor to use when UseWaitCursor is turned off.
1825 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
1827         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
1828         to false.
1829         * Application.cs: Use PreProcessControlMessage instead of
1830         PreProcessMessage.
1831         * PreProcessControlMessage.cs: Make internal for 1.1.
1833 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1835         * Control.cs: Add InternalContains focus property, which hast the same
1836         functionality of ContainsFocus, but also including implicit controls.
1837         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
1838         since we need to know if the focus is contained in our implicit
1839         ItemControl when calculating Layout. Fixes part of #80888.
1841 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
1843         * ToolTip.cs: Remove center form string alignment as it must be align to
1844         left.
1846 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
1848         * ToolStripItemCollection.cs: Set the new item's parent and owner
1849         in Insert like we do in Add.  [Fixes bug #81568]
1851 2007-05-08  Jackson Harper  <jackson@ximian.com>
1853         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
1854         - Off by one error in SetTop
1855         - Disable DoubeBuffering
1856         
1857 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1859         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
1860           control as much as necessary in order to make it entirely visible,
1861           instead of centering the control in the container (matches MS
1862           behaviour). CalculateCanvasSize: we need to take the current scroll
1863           position into account when calculating the maximum canvas,
1864           otherwise the following scenario will fail: resize so that the
1865           scrollbars appear, use the scrollbars to scroll, resize again
1866           smaller, and now the canvas size is too small. Recalculate: when
1867           showing scrollbars make sure they start off at 0, and try to scroll
1868           the active control into view. Fixes #79540. HandleScrollBar: don't
1869           scroll anywhere if the scrollbar isn't visible.
1871 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1873         * ListView.cs: When focus changed, call Layout/Invalidate
1874         in the focused item to update the selected state (should show
1875         entire label when ListView is focused, and a part of it if is not).
1876         * ListViewItem.cs: When doing layout for LargeIcon, take into account
1877         for displaying the entire label not only the Focused state of the
1878         item, but also the Focused state of the ListView (match .Net
1879         behaviour).
1881 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
1883         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
1884         Implement UseWaitCursor. 
1886 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
1887         Applying contributed patch from Sergey Volk.
1889         * Clipboard.cs: Implement SetDataObject retry logic and new overload
1890         of SetDataObject.
1891         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
1893 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
1895         * Control.cs: Implement DrawToBitmap.
1897 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
1898         Applying contributed patch from Stefan Noack.
1899         
1900         * Control.cs: Add [Get|Set]AutoSizeMode.
1902 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
1904         * MdiClient.cs: Unmerge menus when the last child is closed.
1906 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
1908         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
1909         * ToolStripManager.cs: Call Merge on DropDowns.
1910         [Fixes bug #81477]
1912 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1914         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
1915           uints.
1916         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
1917           visibility. We can't create forms visible, since we have to set the
1918           owner before making the form visible (otherwise Win32 will do
1919           strange things with task bar icons). The problem is that we set the
1920           internal is_visible to true before creating the control, so
1921           is_changing_visible_state is the only way of determining if we're
1922           in the process of creating the form due to setting Visible=true -
1923           this works because SetVisibleCore explicitly makes the form
1924           visibile afterwards anyways. Fixes #80775.
1926 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1928         * ThemeWin32Classic.cs: When drawing ListViewItems,
1929         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
1930         or LargeIcon _and_ item is not focused (match .Net behaviour).
1932 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
1934         * Control.cs, Form.cs: Fix some obsolete method warnings.
1936 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
1938         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
1939         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
1941 2007-05-04  Andreia Gaita  <avidigal@novell.com>
1943         * ContainerControl.cs: Fix active_control attribution when going
1944         up the parent chain so that the first parent container gets the control
1945         and the rest of the parent containers get the child containers (skips
1946         non-containers). Fixes #80729
1948 2007-05-04  Randolph Chung  <tausq@debian.org>
1950         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
1951         [Fixes bug #81499]
1953 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1955         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
1956           takes a size parameter, since the CreateParam's size isn't true for
1957           minimized forms. Fixes #81518,
1959 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1961         * Form.cs: Add OnDeactivateInternal.
1962         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
1964 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1966         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
1967           accessing the parent. Fixes #81508.
1969 2007-05-03  Chris Toshok  <toshok@ximian.com>
1971         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
1972         2.0 block, pass listposition + 1 to ChangeRecordState when a row
1973         was added before the current listposition.  Fixes the
1974         TestInsertRowBeforeCurrent unit test.
1976 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
1978         * Application.cs: Add RaiseIdle.
1979         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1980         XplatUIX11.cs: Implement RaiseIdle.
1982 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
1983         corcompare work: N - Z
1984         * NotifyIcon.cs
1985         * ProgressBar.cs
1986         * RadionButton.cs
1987         * ScrollableControl.cs
1988         * SplitContainer.cs
1989         * SplitterPanel.cs
1990         * StatusBar.cs
1991         * SystemInformation.cs
1992         * TabControl.cs
1993         * TableLayoutControlCollection.cs
1994         * TableLayoutPanel.cs
1995         * TabPage.cs
1996         * ToolBar.cs
1997         * ToolBarButton.cs
1998         * ToolStrip.cs
1999         * ToolStripComboBox.cs
2000         * ToolStripContainer.cs
2001         * ToolStripContentPanel.cs
2002         * ToolStripDropDown.cs
2003         * ToolStripDropDownItem.cs
2004         * ToolStripDropDownMenu.cs
2005         * ToolStripItem.cs
2006         * ToolStripItemCollection.cs
2007         * ToolStripMenuItem.cs
2008         * ToolStripPanel.cs
2009         * ToolStripSplitButton.cs
2010         * ToolTip.cs
2011         * TreeNode.cs
2012         * TreeNodeCollection.cs
2013         * TreeNodeMouseHoverEventArgs.cs
2014         * TreeView.cs
2016 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
2018         * ContextMenu.cs: Add public method Show with alignment property to 2.0
2019         stuff. Thanks aatdark for the patch. 
2021 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
2023         * GridItem.cs: Implement 2.0 Tag property.
2025 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
2027         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
2028         count instead of Nodes.Length.  [Fixes bug #81448]
2030 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
2032         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
2033         [Fixes bug #81506]
2035 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
2036         corcompare work: A - M
2037         * BindingNavigator.cs
2038         * Button.cs
2039         * ButtonBase.cs
2040         * CheckBox.cs
2041         * Control.cs
2042         * FlowLayoutPanel.cs
2043         * Form.cs
2044         * Label.cs
2045         * LinkLabel.cs
2046         * ListView.cs
2048 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
2050         * Application.cs: Give toolstrips a chance to process mnemonics.
2051         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
2052         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
2053         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
2055 2007-05-01  Jackson Harper  <jackson@ximian.com>
2057         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
2058         wider area too.
2059         - Don't set the BoundsSpecified
2061 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
2063         * Application.cs: When using the toolstrip shortcut mechanism, allow the
2064         message to pass through to a regular control if it hosted by a toolstrip.
2065         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
2066         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
2068 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
2070         * TextRenderer.cs: Use the flags argument when using the MeasureString
2071         fallback algorithm.
2073 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
2075         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
2076         the MDI menu item.  [Fixes bug #81483]
2078 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
2080         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
2081         string. When setting Name to null, use zero-length string instead.
2083 2007-04-29  Andreia Gaita  <avidigal@novell.com>
2085         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
2086         DeselectTab). Implement missing 2.0 TabPageCollection methods
2087         (Add, ContainsKey, RemoveByKey, IndexOfKey)
2089 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
2091         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
2093 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
2095         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
2096         Fixes bug #81479. Include details of exception when LoadFile fails.
2098 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
2100         * DrawListViewSubItemEventArgs.cs: Added missing setter
2102 2007-04-27  Andreia Gaita  <avidigal@novell.com>
2104         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
2105         Hide methods (not complete). Implement missing 2.0 OnPopup event.
2107 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2109         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
2110         removed in ly last commit (it was breaking the Label edit feature).
2112         * ThemeWin32Classic.cs: When drawing a ListViewItem use
2113         StringAlignment.Near for LineAlignment (match .Net).
2115 2007-04-27  Andreia Gaita  <avidigal@novell.com>
2117         * TabControl.cs: Change SetTab so it adds the tabpage to the list
2118         of controls if it isn't already there - was blowing up when doing
2119         tabcontrol.TabPages[i]=new TabPage(). 
2120         SetTab now does a replace by removing the page at the index. 
2121         Add a new InsertTab method that inserts a page in a given index 
2122         instead of replacing. 
2123         Implements TabPageCollection.Insert(int, TabPage).
2125 2007-04-27  Chris Toshok  <toshok@ximian.com>
2127         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
2128         internal handler that can be invoked from our subclasses.)  Also,
2129         add a comment to PushData about how we need to fix it.
2131         * CurrencyManager.cs: tons of changes here.  trying to get things
2132         matching the behavior of .net wrt event orders (ItemChanged,
2133         CurrentChanged, PositionChanged.)  I've implemented a private .net
2134         symbol (ChangeRecordState) that appears in stack traces because
2135         it's actually easier to do this than to effective inline all its
2136         various behaviors at every call site.
2138         * RelatedPropertyManager.cs: guard against an exception here by
2139         not using parent.Current if the position is set to -1 (if the
2140         parent datasource is cleared, for instance).
2142         * Binding.cs: don't parse data in PushData (this might be wrong,
2143         but it jives with MS's behavior.)  Also, don't call PushData when
2144         we get a CurrentChanged event.
2146 2007-04-27  Andreia Gaita  <avidigal@novell.com>
2148         * WebBrowser.cs,
2149           WebBrowserBase.cs,
2150           WebBrowserSiteBase.cs,
2151           HtmlDocument.cs: Added stubbed out classes, no real implementations 
2152           yet.
2154 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
2156         * MainMenu.cs: In draw method without parameters call draw method with 
2157         PaintEvent, another one (just rect) adjust rectangle and we dont need it
2158         as Rect property is already adjusted. Fixes #80694.
2160 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
2162         * Application.cs: Need to handle keyboard menu deselection here.
2163         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
2164         navigation, allowing keyboard to work on X11.
2165         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
2167 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
2169         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
2170         menu bar. It fixes some drawing issues in menu bar.
2172 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
2174         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
2175         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
2176         when <alt> key is pressed.
2178 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
2180         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
2181         example just set visible to false and make this prevent from other problems.
2182         In SystrayAdd always remove pending expose. Fixes #81072.
2184 2007-04-26  Marek Safar  <marek.safar@gmail.com>
2186         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
2187         value is set.
2189 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
2191         * ListView.cs: Added three missing 2.0 events and corresponding
2192         EventHandlers. Added the OwnerDraw property.
2193         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
2195 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
2197         * DrawListViewItemEventArgs.cs
2198         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
2200 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
2202         * TextControl.cs: Fixed typo in constructor
2204 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
2206         * Application.cs: Create a shortcut path so that currently selected
2207         MenuStrips can intercept keyboard events without having focus.
2208         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
2209         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
2210         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
2211         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
2212         generate WM_SYSCOMMAND message in X11 for other platforms.
2213         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
2214         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
2215         * ToolStripSplitButton.cs: Add DefaultItem property.
2216         
2217 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
2219         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
2220         fixes some menu draw problem on Windows with border diferent from default
2221         it also fixes #81403.
2223 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2225         * Form.cs: Refactor WndProc into separate methods, just like Control is
2226           doing it.
2228 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2230         * Control.cs: set_Text: move the call to the driver into a seperate
2231           virtual method so that Form can override it.
2232         * MaskedTextBox.cs: Corcompare fixes.
2233         * Form.cs: Override UpdateWindowText and only update the styles if the
2234           form has been shown (fixes #81405).
2236 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
2238         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
2239         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
2240         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
2241         the form lost focus or another control was clicked.
2243 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
2245         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
2246         fixed.
2248 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2250         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
2251           DrawListViewItemEventHandler.cs,
2252           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
2253           Added.
2254         * X11Structs.cs: More ToString implementation.
2256 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
2258         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
2259         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
2261 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2263         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
2264           handle.
2265         * FormCollection.cs: Don't add a form if it's already in the
2266           collection.
2267         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
2268           according to behaviour and MSDN. The ownerWin32 is the active
2269           window at the moment when we call ShowDialog, not the context's
2270           main form (the context's main form may open another form that opens
2271           a form with ShowDialog, the win32 owner is the second form). Add
2272           and remove forms to the Application.OpenForms in other places to
2273           better match MS behaviour. Add an IsActive property that raises
2274           On(de)Activated only if the active state has changed (we were
2275           raising OnDeactivated before OnActivated while creating forms).
2276         * Application.cs: Refactor Enabling/Disabling of windows for modal
2277           dialog loops out to separate methods, and restore the thread
2278           context when we quit the method. Fixes #81407.
2280 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2282         * ListView.cs: In ItemControl.HandleClicks, also fire 
2283         2.0 MouseClick or MouseDoubleClick events on the parent,
2284         not only the Click/DoubleClick events.
2286 2007-04-24  Andreia Gaita  <avidigal@novell.com>
2288         * TableLayoutSettings.cs: 
2289         - Added a GetControls method and a support structure to help the 
2290         TypeConverter to enumerate the controls for     serialization. 
2291         - Added a new serialization constructor. 
2292         - Added a isSerialized flag initialized to true on the 
2293         serialization constructor so that the TableLayoutPanel.LayoutSettings 
2294         setter does not throw the designed NotSupportedOperation exception
2295         when the object is built through deserialization.
2296         - Implemented GetObjectData
2297         
2298         * TableLayoutPanel.cs: Added check on LayoutSettings.
2300 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2302         * ListView.cs: Report Click and DoubleClick events to the parent
2303         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
2304         from breaking the click count state when using dialog forms (Control
2305         reports the clicks in a similar fashion). In the previous behaviour
2306         the last WM_LBUTTONUP message in a  double click was sent to the
2307         ListView's form, instead of the ListView, which was breaking the click
2308         count for it. Fixes #80387.
2310 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
2312         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
2314 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
2316         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
2317         us from created dropdowns for menu items that do not have subitems.
2318         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
2319         Check HasDropDownItems before calling DropDown so a dropdown will not be
2320         created if it isn't needed.
2322 2007-04-24  Jackson Harper  <jackson@ximian.com>
2324         * TreeView.cs: Set the first node to the selected node when we get
2325         focus if there is no selected node.
2327 2007-04-24  Andreia Gaita  <avidigal@novell.com>
2329         * MimeIcon.cs: remove using blocks so that image streams are
2330         not disposed of. Fixes #80151
2332 2007-04-24  Jackson Harper  <jackson@ximian.com>
2334         * TextBoxBase.cs: Fixup the height of textboxes when the control
2335         is created.
2337 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
2339         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
2340         for each ToolStripItem when the parent's RightToLeftChanged is called.
2342 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2344         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
2345           Fixes #80163.
2346         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
2347           property, so that the setter can be overriden too.
2348         * TextBox.cs: Change GetContextMenuInternal() to use
2349           ContextMenuInternal.
2351 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2353         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
2354           #81406.
2356 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2358         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
2359           #81406.
2361 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2363         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
2364           avoid duplicate work. Mostily skeleton code, it's not working at
2365           all yet.
2367 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
2369         * NotifyIcon.cs : stub for MouseClick event
2370         * Application.cs: stub for SetUnhandledExceptionMode
2372 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
2374         * BindingNavigator.cs : Initial (partial) implementation
2376 2007-04-23  Jackson Harper  <jackson@ximian.com>
2378         * TreeView.cs: Do not create the treeview's handle when setting
2379         the scroll position.
2380         - ExpandAll needs to compute the scrollbars so it knows which
2381         position to set the bar too.
2382         * TreeNode.cs: 
2383         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
2385 2007-04-23  Jackson Harper  <jackson@ximian.com>
2387         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
2388         key. Fixes #81408.
2390 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
2392         * ToolStripItem.cs: Make GetImageSize internal.
2393         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
2394         need to draw an item.  Fixes a reported issue where images on menus
2395         that were not 16x16 were drawing incorrectly.
2397 2007-04-21  Miguel de Icaza  <miguel@novell.com>
2399         * Padding.cs: Use the converter, fixes the resgen2 issue with
2400         XMLNotePad. 
2402 2007-04-21  Jackson Harper  <jackson@ximian.com>
2404         * TreeView.cs: Dont try to unhighlight the selected node if there
2405         isn't a selected node.
2407 2007-04-21  Jackson Harper  <jackson@ximian.com>
2409         * UpDownBase.cs:
2410         * TextBoxBase.cs:
2411         * ListView.cs:
2412         * ListBox.cs:
2413         * TreeView.cs: Use the InternalBorderStyle property to set the
2414         initial border style, this forces the client rectangle to be sized
2415         correctly.
2417 2007-04-20  Jackson Harper  <jackson@ximian.com>
2419         * TreeView.cs: Simplify scrolling to the last node after expanding
2420         all.
2421         - Fix some off by ones with setting the bottom.
2423 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
2425         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
2426         that.  We were incorrectly doing it the other way around.  Also,
2427         update ClientSize if we change the BorderStyle before the control
2428         is created.
2430 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
2432         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
2433         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
2434         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
2435         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
2436         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
2437         Caption to CaptionHeight.
2438         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
2439         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
2440         and FixedFrameBorderSize to return value from current XplatUI driver.
2441         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
2442         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
2443         and FixedFrameBorderSize using win32 API. Renamed Caption to
2444         CaptionHeight.
2445         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
2446         * SystemInformation.cs: Fixed typo in BorderSize.
2448 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
2450         * XplatUI.cs: Added MenuAccessKeysUnderlined.
2451         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
2452         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
2453         returning false.
2454         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
2455         value from XplatUI driver.
2456         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
2457         SystemParametersInfo.
2458         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
2459         override.
2460         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
2461         returning false.
2463 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2465         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
2467 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2469         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
2471 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
2473         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
2474         MenuStrips that contain ToolStripSeparators.
2476 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2478         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
2479           DefineStdCursorBitmap.
2480         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
2481           has been created off a standard cursor. This is used to get a
2482           bitmap of the standard cursor when Draw or DrawStretched is called
2483           in order to draw the cursor.
2484         * X11Structs.cs: Added XcursorImage and XcursorImages.
2485         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
2486           DefineStdCursorBitmap.
2487         * Cursors.cs: Update all relevant creations of Cursor to use the new
2488           internal constructor.
2490 2007-04-19  Jackson Harper  <jackson@ximian.com>
2492         * TextBox.cs: Move the has_been_focused into the base control, so
2493         some of the text adding methods can manipulate it (probably time
2494         for a better name for this flag too).
2495         - Call a new version of selectall that doesn't scroll
2496         * TextBoxBase.cs: When we append text, if the document is empty,
2497         don't scroll.  If the document has text already, we scroll to the
2498         end of the appended text.
2499         - When the text is changed, we reset the has_been_focused, so the
2500         next time the control gets focused, all the text is selected.
2502 2007-04-19  Jackson Harper  <jackson@ximian.com>
2504         * TextControl.cs: Move the margins to the document, add a method
2505         so the margin sizes can be updated.
2506         * TextBoxBase.cs: When the border style is changed, update the
2507         border sizes.
2509 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
2511         * Control.cs: Respect DefaultPadding.
2512         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
2513         padding into account.
2514         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
2516 2007-04-19  Jackson Harper  <jackson@ximian.com>
2518         * TextControl.cs: Oops, we need to use the ClientRect not the
2519         bounds here.
2521 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2523         * ListView.cs: In ItemControl.ItemsMouseDown, take into
2524         account the double clicks when CheckBoxes are used and
2525         the pointer is inside the checkbox. Fixes part of #81191.
2527 2007-04-18  Jackson Harper  <jackson@ximian.com>
2529         * TextControl.cs: Pressing the end key shouldn't move the caret
2530         past the line ending.
2531         * TextBoxBase.cs: We can still delete if we are in the line
2532         ending and the combine will just kill the existing line ending.
2534 2007-04-18  Jackson Harper  <jackson@ximian.com>
2536         * TextControl.cs: We can't move lines, then invalidate their
2537         bounds, we need to get the old bounds and combine that with the
2538         new bounds.
2539         * TextBoxBase.cs: Before combining two lines for a delete, we need
2540         to invalidate the area of the old line, since that will be moved
2541         in the combine operation.
2543 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
2545         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
2546         with transparent background. Fixes #80482.
2548 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
2550         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
2551         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
2552         [Fixes bug #81391]
2554 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2556         * CreateParams.cs: Add a couple of helper methods and do a less string
2557           concatenation in ToString.
2558         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
2559           overload that takes a Control parameter, since this method may be
2560           called before a control is assigned to the hwnd (from
2561           CreateWindow), and update CreateWindow to use the new overload. In
2562           GetMenuOrigin subtract the title bar from the y position if the
2563           form has a window manager (since we're painting it and not X).
2564         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
2565           CreateParams to calculate the origin (since border sizes may vary).
2566           In ScreenToMenu only subtract the title height if we actually have
2567           a title.
2568         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
2569           mdi children never have menus of themselves.
2570         * InternalWindowManager.cs: Implement menu handling like form does.
2571           Added GetMenuOrigin to calculate the menu origin, can't use the
2572           CreateParams from the form like normally since it's lying.
2573         * Hwnd.cs: Implement GetBorderSize better (in the sense more
2574           windows-like) and add Inflate and comparison operators to the
2575           Borders type. When calculating MenuOrigin and it's a form with a
2576           window manager, use the window manager to calculate it.
2578 2007-04-17  Chris Toshok  <toshok@ximian.com>
2580         * Control.cs (CreateControl): turns out in 2.0 we don't need this
2581         OnBindingContextChanged thing here.  It's only generated from
2582         ContainerControl.OnCreateControl.  Fixes a newly written unit test
2583         - BindingTest.BindingContextChangedTest4.
2584         
2585 2007-04-17  Jackson Harper  <jackson@ximian.com>
2587         * ScrollBar.cs: When setting values, make sure the current
2588         position stays within the new values range.
2590 2007-04-17  Chris Toshok  <toshok@ximian.com>
2592         * Control.cs (CreateControl): talk about a bizarre corner case.
2593         Don't emit OnBindingContextChanged here if we're a parentless
2594         control (i.e. if we're a form.).  Fixes
2595         BindingTest.BindingContextChangedTest2.
2597 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
2599         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
2600         from win32. Fixes #81255.
2602 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
2604         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
2605         already present in CalculateButtonTextAndImageLayout.
2607 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2609         * XplatUIX11.cs: When setting min/max size for a window we need to
2610           translate the coordinates to x coordinates. Create an overload of
2611           SetWindowMinMax that takes a CreateParams handling this, and change
2612           SetWMStyles to call this function (can't use Control.FromHandle in
2613           the SetWindowMinMax to get the control/CreateParams from the handle
2614           because the handle might not have been assigned to the control
2615           yet). Fixes #81371.
2617 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2619         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
2620         if StateImageList is non-null and it has less than two items (match MS
2621         behaviour). Also, in HandleNavKeys handle the Space key, calling
2622         the new ToggleItemsCheckState method, which tries to change the
2623         checked state of the selected items. Fixes part of #81191.
2625 2007-04-16  Jackson Harper  <jackson@ximian.com>
2627         * RichTextBox.cs: namespace cleanup.
2629 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
2631         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
2633 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
2635         [Fixes #79447]
2636         * Control.cs: Call invalidate in set_Region.
2638         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
2639         it dont works here.
2641 2007-04-16  Jackson Harper  <jackson@ximian.com>
2643         * TextBoxBase.cs: When enter is pressed, we need to update all
2644         lines below the current.
2646 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
2648         * MdiClient.cs: Implement implicit menu merging for MDI
2649         children.  When a child form is active, if it has a menustrip
2650         and the parent form has a MainMenuStrip, automatically merge
2651         the menus.
2653 2007-04-15  Andreia Gaita  <avidigal@novell.com>
2655         * TabControl.cs: Refactored sizing methods to not repeat
2656         code all over the place. Tab bounds are now calculated
2657         as if alignment is top and single line, and only when 
2658         setting the bounds are the positions adjusted according
2659         to alignment. Replaced hardcoded positions, spacings and
2660         paddings by getting the values the ThemeEngine. 
2661         Fixes #79619.
2662         
2663         * Theme.cs: Change TabControl properties and methods so
2664         that all start with TabControl*. Added more properties
2665         to help remove hardcoded values on tabcontrol.
2666         Add CPDrawBorder3D declaration so the Theming classes
2667         can access it.
2668         
2669         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
2671         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
2672         on the Theming namespace, and call the appropriate methods here.
2673         Change CPDrawBorder3D to public.
2675 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2677         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
2678         the control after firing the OnMouseUp event, instead of sending
2679         the message before the mentioned event. This is so we can match the
2680         MS behaviour. Fixes part of #80385.
2682 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
2684         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
2685         RightToLeft property.
2687 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
2689         * ToolStrip.cs: Add properties and internal methods to support merging.
2690         * ToolStripItem.cs: Add MergeAction and MergeIndex.
2691         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
2692         not trigger reparenting or layouts.
2693         * ToolStripManager.cs: Add Merge and RevertMerge methods.
2694         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
2695         is hosting the overflow menu.
2697 2007-04-13  Jackson Harper  <jackson@ximian.com>
2699         * TextControl.cs: Set the line ending correctly for the first
2700         inserted line.
2702 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
2704         * Theme.cs: Update GetMethod to get the new definition for 
2705         KnownColors.Update (and fix theme color updates).
2707 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
2709         * MessageBox.cs: Fix some test and button position.
2711 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2713         * Form.cs: Consider the implicit controls in
2714         GetRealChildAtPoint. We need it since this method
2715         is called on Form when handling the some messages in
2716         WndProc, and need to consider those implicit ones too.
2717         Fixes #80385.
2719 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
2721         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
2722         if there are no ShortcutKeys set.
2723         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
2724         set, use it when painting.
2726 2007-04-12  Jackson Harper  <jackson@ximian.com>
2728         * TextControl.cs: Fix some off-by-one issues in line duplication
2729         and insertion in the undo manager. Also, overwrite the first tag
2730         of a line on insert, if it is just a zero lengthed tag. This
2731         prevents us from getting an extra stranded tag at the beginning of
2732         the first line.
2734 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
2736         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
2737         to calculated proper size including when handle was not created yet.
2739 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2741         * MdiWindowManager.cs: When moving a form, allow the form to be moved
2742           when the mouse is outside of it's parent's client rectangle. Fixes
2743           #79982 (take 3, part 2).
2745 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2747         * X11Structs.cs: Add a few ToString() overrides.
2748         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
2749           the window location in a window-manager independent way. Reworked
2750           FrameExtents, it now actually works. Reworked AddConfigureNotify
2751           and ReparentNotify handling to use GetTopLevelWindowLocation
2752           instead of the earlier, more hacky solution. Reworked SetWMStyles,
2753           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
2754           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
2755           for all other windows (fixes #81281 part 1), a toolwindow is hidden
2756           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
2757           and generally refactored to do as few calculations as possible
2758           inside the lock.
2760 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
2762         * Theme.cs: Change "reflective-contract" between MWF and SD to 
2763         minimize # of calls, avoid Color serialization and avoid updating 
2764         every "known colors" each time a single one is updated.
2766 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
2768         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
2769         when not readonly and the text is explicitly set. Code style updates.
2770         * DataGridTableStyle.cs: Removed extra line.
2771         * DataGrid.cs: Code style updates. Removed extra whitespace.
2772         * DataGridColumnStyle.cs: Code style updates. Removed extra 
2773         whitespace.
2775 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2777         * XplatUIX11.cs: Added comment that "fixes" #80021.
2779 2007-04-09  Jackson Harper  <jackson@ximian.com>
2781         * TextControl.cs: We don't need this -1 on the line count anymore.
2783 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
2785         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
2786         entered value to underlying type, and convert it back to a string to
2787         apply formatting. Modified GetFormattedValue to use TypeConverter
2788         if available.
2790 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
2792         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
2793         Use SubItems property when we want to ensure there's at least one
2794         subitem. Modified SubItems property to ensure there's always at least
2795         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
2796         the NRE's reported by MS.
2798 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
2800         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
2801         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
2802         Spaces to tabs. Removed extra tabs.
2804 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
2806         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
2807         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
2809 2007-04-06  Jackson Harper  <jackson@ximian.com>
2811         * TextBoxBase.cs: When a delete removes a line, recalculate all
2812         lines below that line (they need to get offsets setup correctly)
2813         and invalidate.
2815 2007-04-05  Jackson Harper  <jackson@ximian.com>
2817         * TextControl.cs: We need to invalidate across the width of the
2818         document when we are invalidating multiple lines.
2819         * TextBoxBase.cs: Don't delete into the line ending.
2821 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2823         * ListView.cs: Restore the check for the MouseHover event
2824         in ListView. It looks like the ListView fires more than one MouseHover
2825         event when HoverSelection is true  _only_ in weird-corner scenarios, but
2826         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
2827         event.
2829 2007-04-05  Mike Kestner  <mkestner@novell.com>
2831         * ListView.cs : raise MouseDown before updating selection.
2832         [Fixes #80373 tab 1&3]
2834 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
2836         * ToolStripRenderer.cs: Add static method to mirror image.
2837         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
2838         and RightToLeftAutoMirrorImage.
2839         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
2841 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
2843         * ToolStripSplitStackLayout.cs: Support Alignment property.
2844         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
2846 2007-04-05  Jackson Harper  <jackson@ximian.com>
2848         * TextControl.cs: Move around the line endings when crossing line
2849         boundaries.
2850         - When combining lines, strip the ending text off the first line.
2852 2007-04-05  Jackson Harper  <jackson@ximian.com>
2854         * TextControl.cs:
2855         * TextBoxBase.cs: Try to never move the cursor into the line
2856         ending.
2857         
2858 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
2860         * ToolStripItem.cs: Make sure we aren't firing mouse events when
2861         the item is disabled.  Also add a few missing methods.
2863 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2865         * ListView.cs: We don't need the MouseEnter/MouseLeave check
2866         to fire just one MouseHover event when HoverSelection is true, since
2867         .Net does fire more than one MouseHover event in that scenario. Also,
2868         fix the selection in HoverSelection, by invoking UpdateMultiSelect
2869         if MultiSelect is true, instead of only setting ListViewItem.Selected.
2870         Finally, we need to reset the Hover logic in MouseMove, even when we
2871         don't have a selected item.
2873 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
2875         * ToolStrip.cs: Add several missing methods, properties, and events.
2877 2007-04-04  Chris Toshok  <toshok@ximian.com>
2879         * DataGridTextBoxColumn.cs: set the bounds of the text box to
2880         (0,0,0,0) in Commit, as MS does.
2882         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
2883         make sure we set CurrentRow on a row header click *before* calling
2884         Select.  This moves the current cell (and the textbox) to the new
2885         row.  The call to Select then hides the textbox, giving us the
2886         correct behavior.  Fixes #80362.
2888         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
2889         (ListChangedHandler): reorder the position/current changed events,
2890         and call UpdateIsBinding in the ItemAdded case.
2892         * GridColumnStylesCollection.cs: add some columns events, one of
2893         which raises the CollectionChanged event.
2895 2007-04-04  Jackson Harper  <jackson@ximian.com>
2897         * TextControl.cs: When we delete multiple selection lines
2898         invalidate the selection area, don't need to do that for single
2899         lines because the final update view will handle it.
2901 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
2903         * Control.cs: When we CreateControl, we need to also create all of the
2904         control's children.  The child's OnLoad must also fire before the parent's
2905         OnLoad.  Fixes the toolbox size in PDN.
2907 2007-04-04  Jackson Harper  <jackson@ximian.com>
2909         * TextBoxBase.cs: When the user presses enter, insert a line
2910         ending into the text. (Maybe this would be a good spot for
2911         Environment.NewLine).
2912         * TextControl.cs: Remove undo manager hack, line endings get
2913         inserted properly now.
2914         
2915 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
2917         * MenuAPI.cs: 
2918         - Remove unneeded parameters in UpdateCursor.
2919         - Fix UpdateCursor to check if menu is active.
2920         - Call UpdateCursor when menu deactivate my click.
2921         [Fixes remaining issues from #80410]
2923 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
2925         * Control.cs: GetRealChildAtPoint method added, it make an
2926         recursive child control search for the point. 
2928         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
2929         menu.
2931         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
2933 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
2935         * Form.cs: Fix mouse position when send back mouse event after closes
2936         menu.
2938 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
2940         * Form.cs: Simplify the BUTTONDOWN for active tracker.
2942 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
2944         * Control.cs: Fix an issue where if a user resized a control inside
2945         a sizing method like OnResize, we would overwrite their explicit
2946         value.  Also, only call DefaultSize once in the constructor instead
2947         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
2948         nothing actually changed.
2950 2007-04-03  Jackson Harper  <jackson@ximian.com>
2952         * TextControl.cs: Don't attempt to copy text for lines with no
2953         text in them (technically this shouldn't happen, but we aren't
2954         always inserting line endings when we should be).
2956 2007-04-03  Jackson Harper  <jackson@ximian.com>
2958         * TextBoxBase.cs: Calculate the scrollbars before calculating the
2959         document, because this sets some of the document size properties
2960         that are needed.
2962 2007-04-03  Jackson Harper  <jackson@ximian.com>
2964         * TextBoxBase.cs: We need to calculate maximums even if this is
2965         not a multiline control, because the maxs are used for scrolling.
2966         - Display the caret after doing a page up/down, we need to
2967         manually display it because a proper CaretMoved event isn't
2968         triggered (this is because of the way the math is done to
2969         determine how far to scroll).
2971 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
2973         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
2974         (ToolBar was relying on SetBoundsCore to default the values sent 
2975         base off of BoundsSpecified.)
2977 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2979         * DateTimePicker.cs: Change Text so that when a null value or empty
2980           string is assigned to the test we always raise ValueChanged and
2981           TextChanged (earlier implementation would only raise ValueChanged
2982           if the current date value was different from DateTime.Now).
2984 2007-04-03  Andreia Gaita <avidigal@novell.com> 
2986         * ButtonBase: Call update after invalidation, fixes #80194
2988 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2990         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
2991           #79335.
2993 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2995         * XplatUIX11.cs: SetWMStyles: If the control is a form with
2996           FormBorderStyle = None, don't give the window any decorations.
2997           Fixes #81276.
2999 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3001         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
3002         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
3003           to check for is a mix of several styles (such as WS_CAPTION for
3004           instance).
3005         * Control.cs: Don't paint an area bigger than the client area when
3006           painting the background colour. Add an internal GetCreateParams.
3007           Update calls to XplatUI.CalculateWindowRect due to API change.
3008         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
3009           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
3010           the size if it hasn't been handled by any windows. When creating
3011           and moving windows, X wants the location of the entire window, but
3012           the size of the client window, so add
3013           TranslateClientRectangleToXClientRectangle,
3014           TranslateWindowSizeToXWindowSIze and
3015           TranslatedXWindowSizeToWindowSize to cope with this, and call them
3016           before every window creation and move. Update CalculateWIndowRect
3017           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
3018           In AddConfigureNotify don't do anything if the hwnd is a zombie
3019           (fixes the BadWindow we were getting while running the tests),
3020           always calculate the offsets when it's a parentless window, not
3021           only when reparented, and translate the window size, since we're
3022           getting the client size of the whole window, excluding entire
3023           window.
3024         * Theme.cs: Added BorderSizableSize.
3025         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
3026           anymore. Update calls to XplatUI.CalculateWindowRect due to API
3027           chang
3028         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
3029           change. Fake the window styles here instead of in XplatUIWin32 so
3030           that all back-ends get the same window styles (and it's Form that's
3031           deciding when to use wm, not the Win32 backend anyways)
3032         * Hwnd.cs: Completely reworked GetWindowRectangle and
3033           GetClientRectangle - they are now passed a CreateParams and they
3034           only use Style and ExStyle to determine the rectangles (they should
3035           now work just like Win32AdjustWindowRectEx - though quite a few
3036           special cases are probably missing). They should also be 100%
3037           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
3038           == rect), and all numbers (borders, menu sizes) are taken from the
3039           current theme. Added a GetBorders helper function that will return
3040           the borders for any given CreateParams (including captions and
3041           menus), and GetBorderSize that returns the given border size only.
3042         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
3043           Hwnd.GetClientRectangle.
3045 2007-04-02  Chris Toshok  <toshok@ximian.com>
3047         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
3048         logic between the values we present to the user and the values
3049         which are stored in the column's property.  Also, don't call
3050         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
3052 2007-04-02  Jackson Harper  <jackson@ximian.com>
3054         * TextBoxBase.cs: Scroll faster!
3056 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
3058         * StatusStrip.cs: Layout fixes for PDN.
3059         * ToolStrip.cs: Set item's available to true, and placement to main when
3060         added.
3061         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
3062         changing in setter before doing any work, add InternalVisible.
3063         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
3064         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
3065         infinite loop.
3067 2007-04-02  Jackson Harper  <jackson@ximian.com>
3069         * TextBox.cs: LBUTTON does not make the textbox select all of it's
3070         text on focus.
3072 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3074         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
3075           Makes ToolStripComboBoxes show up again.
3077 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3079         * ListView.cs: Add a hover_pending field in ListView
3080         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
3081         cycle (we are resetting the MouseHover logic in XplatUI
3082         to handle HoverSelection). Fixes #80429.
3084 2007-04-02  Jackson Harper  <jackson@ximian.com>
3086         * TextControl.cs: Make sure the attributes get set on the last
3087         tag.
3088         - Still have to do the end tag if we have stepped all the ways to
3089         the end.
3091 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
3093         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
3094         on an internal libgdiplus call when the information is already 
3095         available via the public API.
3097 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3099         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
3100           control is removed from a control collecftion.
3101         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
3102           Fixes FormPropertyTest (failed on rare occasions).
3103         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
3104           of Win32SetParent (when changing from no parent to a parent it
3105           might add the new parent's location in screen coordinates to this
3106           window's location).
3107         * Form.cs: Rework ChangingParent once again, now the handle is
3108           recreated whenever a FormWindowManager is added or removed (that is
3109           whenever a normal form is parented or abandoned). Also change
3110           CreateParams so that all non-toplevel windows always get the
3111           specified sice (StartupPosition is never considered for
3112           non-TopLevel forms).
3113         * ContainerControl.cs: Add ChildControlRemoved, the container control
3114           needs to be notified when a control is removed from it's
3115           collection, in the case the removed control is the active control.
3117 2007-04-02  Jackson Harper  <jackson@ximian.com>
3119         * RichTextBox.cs: Use the new methods for setting the font and
3120         color, these methods set the specified attribute without
3121         overriding the other attributes.
3123 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
3125         * ToolStripPanel.cs: Fixes for better layouts in PDN.
3127 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
3129         * TextBox.cs: Added internal ChangeBackColor method to special-case
3130         Color.Empty. Added check for invalid ScrollBars value.
3131         * TextBoxBase.cs: Added internal ChangeBackColor method.
3132         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
3133         internal ChangeBackColor method to special-case Color.Empty. Added
3134         check for invalid ScrollBars value.
3136 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
3138         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
3140 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
3142         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
3143         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
3144         [Based on submitted patch from Olivier Duff.]
3146 2007-03-30  Jackson Harper  <jackson@ximian.com>
3148         * TextBox.cs: Only select all on initial focus if the user has not
3149         specified a selection area.
3151 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
3153         * UserControl.cs: Override CreateParams.
3155 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3157         [ Fixes #80995 ]
3159         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
3160         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
3161           check for is a mix of several styles (such as WS_CAPTION for instance).
3162         * Control.cs: Don't paint an area bigger than the client area when painting
3163           the background colour. Add an internal GetCreateParams. Update calls to
3164           XplatUI.CalculateWindowRect due to API change.
3165         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
3166           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
3167           hasn't been handled by any windows. When creating and moving windows, X
3168           wants the location of the entire window, but the size of the client
3169           window, so add TranslateClientRectangleToXClientRectangle,
3170           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
3171           to cope with this, and call them before every window creation and move.
3172           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
3173           removing DeriveStyles). In AddConfigureNotify don't do anything if the
3174           hwnd is a zombie (fixes the BadWindow we were getting while running the
3175           tests), always calculate the offsets when it's a parentless window, not
3176           only when reparented, and translate the window size, since we're getting
3177           the client size of the whole window, excluding entire window.
3178         * Theme.cs: Added BorderSizableSize.
3179         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
3180           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
3181         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
3182           Fake the window styles here instead of in XplatUIWin32 so that all
3183           back-ends get the same window styles (and it's Form that's deciding when
3184           to use wm, not the Win32 backend anyways)
3185         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
3186           they are now passed a CreateParams and they only use Style and ExStyle
3187           to determine the rectangles (they should now work just like
3188           Win32AdjustWindowRectEx - though quite a few special cases are probably
3189           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
3190           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
3191           sizes) are taken from the current theme. Added a GetBorders helper
3192           function that will return the borders for any given CreateParams
3193           (including captions and menus), and GetBorderSize that returns the given
3194           border size only.
3195         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
3196           Hwnd.GetClientRectangle.
3198 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3200         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
3201           layout of the mdi children is handled by CreateParams. Fixes
3202           #79964,
3204 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
3206         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
3207         processed.
3209         * Form.cs: When active tracker mouse down is not processed, send event 
3210         back to control inside mouse position. [Fixes #81227]
3212 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
3214         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
3215         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
3216         stealing focus from the active form on Windows.  (Control will be made
3217         visible in ShowWindow.)
3219 2007-03-29  Mike Kestner  <mkestner@novell.com>
3221         * ImageList.cs : add internal Changed event.
3222         * ListView.cs : hook up to StateImageList.Changed to perform
3223         invalidations when the the state icon list changes. [Fixes #81191]
3225 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
3227         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
3228         to prevent tooltips from stealing focus from the active form on Windows.
3230 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
3232         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
3234         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
3236 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
3238         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
3239         balloons.
3241 2007-03-29  Jackson Harper  <jackson@ximian.com>
3243         * TextControl.cs: When deleting text from non multiline textboxes,
3244         we need to update the entire document, because line offsets will
3245         be shifting.
3247 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
3249         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
3250         added to theme, now we can create themes that uses diferent notify engines
3251         like notification-daemon from galago project or growl for Mac OS.
3253 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
3255         * NotifyIcon.cs: Prevent Balloon to show in task bar.
3257 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
3259         * XplatUIX11.cs: Prevent system to open more than one balloon.
3261         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
3262         some compiler warning messages.
3264 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
3266         [Fixes #79149]
3268         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
3270         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
3271         implemented, this methods is used by NotifyIcon.BalloonWindow class.
3273         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
3274         systems.
3276 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3278         * ListViewItem.cs: Forgot to make Invalidate internal.
3280 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3282         * ListView.cs: Add a InvalidateSelection method to
3283         invalidate methods which are currently selected, and call
3284         it when setting FullRowSelect and HideSelection, instead of
3285         calling Redraw.
3287 2007-03-28  Chris Toshok  <toshok@ximian.com>
3289         * XplatUIX11.cs (UnmapWindow): reindent this block.
3291         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
3292         the selection_start if we're moving the selection (that is, not
3293         extending it). Fixes bug #80461.
3295 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
3297         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
3298         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
3299         create private ControlCollection.
3301 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
3303         * Control.cs: We need to call OnVisibleChanged for our implicit
3304         children as well as our normal children.  Fixes scrollbars in
3305         comboboxes not showing up.
3307 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
3309         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
3310         the check for IsHandleCreated first.  The check in CreateHandle is not
3311         good enough because CreateHandle can be overriden, and the override 
3312         should not be called if the handle is already created.
3314 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
3316         * ToolStrip.cs: Remove MonoTODO for tooltips.
3317         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
3318         * ToolStripContainer.cs: Add custom ControlCollection class.
3319         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
3320         * ToolStripDropDown.cs: Add some missing properties/methods.
3321         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
3322         * ToolStripItem.cs: Remove MonoTODO for tooltips.
3323         * ToolStripManager.cs: Add IsShortcutDefined.
3324         * ToolStripOverflow.cs: Override LayoutEngine.
3325         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
3326         * ToolStripSeparator.cs: Add ImageKey.
3328 2007-03-28  Jackson Harper  <jackson@ximian.com>
3330         * TextControl.cs: If a char delete removes a line ending, we need
3331         to update the ending style.
3332         - Make sure the line ending calcs get called.
3334 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3336         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
3337           it was making the new code not work. Fixed a typo in the new code
3338           as well. Fixes #79826.
3340 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3342         * XplatUIWin32.cs:
3343         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
3344         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
3345         - SystrayBalloon method implemented.
3346         [Add support for notifyicon balloon on win32, #79149]
3348 2007-03-27  Mike Kestner  <mkestner@novell.com>
3350         * ThemeWin32Classic.cs : update StateImageList selection to mirror
3351         the ms behavior when only one image is added to the list.
3352         [Fixes #81191]
3354 2007-03-27  Jackson Harper  <jackson@ximian.com>
3356         * TextControl.cs: Improvements to non multiline line ending
3357         drawing/measuing.
3359 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3361         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
3363 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3365         * NotifyIcon.cs: 
3366         - Balloon message handling added.
3367         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
3369         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3370         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
3371         to SystrayBalloon to me like other Systray method, also a
3372         handle parameter added.
3374 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3376         * ListView.cs: Show scrollbars even when items.Count == 0
3377         but the columns Width is bigger than the ListView.Width.
3378         Also, when columns.Count == 0 set layout_wd and layout_ht
3379         to the ClientRectangle values, so we don't show any scrollbar
3380         in that case.
3382 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3384         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
3386 2007-03-27  Jackson Harper  <jackson@ximian.com>
3388         * RichTextBox.cs: The RTF library decodes the text properly for us
3389         now.
3391 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3393         * ListView.cs: Display HeaderControl even when columns.Count == 0.
3394         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
3395         ListView header (HeaderControl), instead of Control.BackColor.
3397 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
3399         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
3400         Fixes tab control issues where controls would not show up because they
3401         never received their OnVisibleChanged call.
3403 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3405         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
3406         BalloonTipShown).
3408 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
3410         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
3411         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
3412         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
3413         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
3414         the handle.  Fix WindowState by using the internal variable until we are 
3415         sure that we've been shown.
3416         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
3417         max or min.
3418         [Fixes bug #81198]
3420 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3422         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
3423           (at least borders). Fixes #79386 on Linux (with a small difference
3424           in behaviour: when trying to resize a caption-less window metacity
3425           shows the sysmenu. Resizing is still possible though).
3426         * XplatUIWin32.cs: When setting window styles send request an extra
3427           WM_NCCALCSIZE when it's a form without title (due to no text and no
3428           caption), since Win32 seems to calculate it wrong the first time we
3429           get the message, though the second time things work as they should.
3430         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
3431           newly reparented window might show up unparented. Update
3432           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
3433           there's no title text. Fixes #79386.
3435 2007-03-27  Mike Kestner  <mkestner@novell.com>
3437         * ListBox.cs : don't perform invalidations if the handle hasn't been
3438         created.  [Fixes #80753]
3440 2007-03-27  Mike Kestner  <mkestner@novell.com>
3442         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
3443         [Fixes #80428]
3445 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
3447         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
3448         needed to implement Balloon.
3450 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3452         * ListViewItem.cs: In the constructors that take
3453         an array of strings, don't use ListViewSubItemCollection.AddRange
3454         method to add items, since we need to have a different behaviour (in
3455         the constructors we add an item for each null string, opposed to
3456         the behaviour of AddRange, which adds nothing).
3458 2007-03-26  Andreia Gaita  <avidigal@novell.com>
3460         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
3462 2007-03-26  Jackson Harper  <jackson@ximian.com>
3464         * TextControl.cs: Draw and measure line endings when in non
3465         multiline mode.
3466         - When searching the text, count the end of the last line as a
3467         word boundary.
3469 2007-03-26  Jackson Harper  <jackson@ximian.com>
3471         * RichTextBox.cs: The selection_start and selection_end don't
3472         really track the correct tags for the selection. So we'll manually
3473         compute the correct tag here.
3475 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3477         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
3478           and Continuous styles. Fixes #79469.
3480 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
3482         * ToolStrip.cs: Implement Tooltips.
3483         * ToolStripItem.cs: Create internal method for determining tooltip.
3485 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
3487         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
3489 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
3491         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
3492         it prevents a problem thak keeps icon visible after application 
3493         closes on win32.
3495 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
3497         * NotifyIcon.cs: Balloon properties and methods created.
3499         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3500         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
3502 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
3504         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
3506 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
3508         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
3509         parameter indicates which aspects were explicit/user-set.
3510         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
3512 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
3514         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
3515         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
3516         SmallChange, and Value (2.0).
3517         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
3519 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3521         * ListView.cs: Always set item_control.Width in LayoutDetails
3522         if View is Details. Setting it later in CalculateScrollBars
3523         in a not-so-corner scenario (the sum of columns width is
3524         not bigger than the ListView width when handle is created, and then
3525         that sum gets bigger by increasing the width of the columns)
3526         causes a very weird recursion path (which shouldn't be happening,
3527         since header_control sets it in CalculateScrollBars too). This bug
3528         appeared after Chris' fixes for handle created issues, so probably
3529         it's related to some handle-creation time.
3531 2007-03-23  Chris Toshok  <toshok@ximian.com>
3533         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
3534         case where there's an add row, just so we don't end up in a case
3535         where it's not displayed (this happens when the row is partially
3536         obscured).  Fixes bug #79574.
3538 2007-03-23  Jackson Harper  <jackson@ximian.com>
3540         * TextControl.cs:
3541         * TextBoxBase.cs:
3542         * RichTextBox.cs: Preserve line endings in the lines text buffer,
3543         also added an enum that represents the line ending type. 
3545 2007-03-23  Andreia Gaita  <avidigal@novell.com>
3547         * NumericUpDown.cs: Fix logic so Text and Value properties are not
3548         messed with in every method call, but only from DownButton, 
3549         UpButton, UpdateEditText() and ValidateText. Fixes #80346
3551 2007-03-23  Chris Toshok  <toshok@ximian.com>
3553         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
3554         format objects if the format spec is "".  Fixes bug #80889.
3556 2007-03-22  Miguel de Icaza  <miguel@novell.com>
3558         * ToolStripPanel.cs (Join): added stubs to build PDN3
3560         * Control.cs (AutoScrollOffset): Add.
3562         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
3563         property, its only implemented for Win32, on X11 it defaults to
3564         some hardcoded value.
3566         * ToolStripItem.cs (AllowDrop): Add property
3568 2007-03-22  Mike Kestner  <mkestner@novell.com>
3570         * ListView.cs : in FullRowSelect Details mode, only enable box
3571         selection if the user clicks over the "item" column outside of the
3572         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
3574 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3576         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
3577           handle is not created yet.
3578         * Form.cs: Select: Don't call CreateHandle if the handle is already
3579           created, avoids a stack overflow on Windows when we are recreating
3580           controls.
3581         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
3582           they are made visible, and override AfterTopMostControl to keep
3583           them on top when other controls are brought to front.
3584           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
3585           or force_*scroll_visible is true (old implementation always shows
3586           scrollbars when needed, no matter what auto_scroll was set to).
3587         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
3588           IsHandleCreated check.
3590 2007-03-22  Andreia Gaita  <avidigal@novell.com>
3592         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
3593         row or col separator.
3594         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
3596 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
3598         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
3600 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
3602         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
3603         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
3604         every time. Fixes #80410.
3606 2007-03-22  Chris Toshok  <toshok@ximian.com>
3608         * BindingSource.cs (AddNew): partially implement.
3610         remove a couple of NotImplementedException's
3611         to get bug #81148 closed.
3613 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
3615         [Fixes #80380]
3616         
3617         * Control.cs:
3618         - UpdateCursor method added to update the screen cursor.
3619         - GetAvailableCursor method added to return cursor for enabled tree,
3620         it searches for cursor on control and it's parent's for enabled control.
3621         - Call UpdateCursor method on setter of Cursor property.
3622         - On setter of Enabled call UpdateCursor when it is false, we need to
3623         change cursor to normal (or to this parent cursor) because cursor 
3624         setting theres no effect to disabled controls.
3625         - Some minor source changes to follow the coding style guidelines.
3627         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
3628         controls.
3630 2007-03-22  Chris Toshok  <toshok@ximian.com>
3632         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
3633         generates.
3635 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3637         * XplatUIX11.cs: Implement default locations for forms.
3638         * Form.cs: Completely rework startup location for forms. Fixes #79964.
3639         * Hwnd.cs: Add previous_child_startup_location (to track the current
3640           startup location for any child forms of the current form) and
3641           previous_main_startup_location (to track the startup location for
3642           the current toplevel form).
3644 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
3646         * Control.cs: Don't trigger a layout if an implicit control is added
3647         that isn't visible.  Also, don't notify the owner when an implicit control
3648         is added.  (Owners shouldn't even know about their implicit controls.)
3650 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
3652         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
3653         to save some re-layouts.
3655 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
3657         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
3658         [Fixes #81203]
3660 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
3662         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
3663         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
3665 2007-03-21  Mike Kestner  <mkestner@novell.com>
3667         * ListView.cs : disable selection update for non-left button clicks
3668         with mods and over selected items.  [Fixes #80524]
3670 2007-03-20  Jackson Harper  <jackson@ximian.com>
3672         * TextControl.cs:
3673         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
3674         \r\r\n, \n.
3676 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3678         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
3679           very probably a more complicated calculation there. Update the
3680           textbox' ForeColor and BackColor when the ComboBox' colors are
3681           changed. Change the border change in LayoutComboBox to only affect
3682           the textbox, not all the calculations there. Seems to fix most of
3683           #79436.
3685 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3687         * ComboBox.cs: Handle Home and End keys as well as all combinations of
3688           modifiers + navigation keys as input keys, enables advanced text
3689           selection in the combobox (like Shift+Left Arrow for instance).
3690           ComboTextBox now overrides Focused and returns whatever
3691           ComboBox.Focused returns, since it really should be focused
3692           whenever the ComboBox is. Fixes #80795. Also make the border around
3693           the text box one pixel bigger, as mentioned in #79436.
3695 2007-03-20  Jackson Harper  <jackson@ximian.com>
3697         * TreeView.cs: Don't offset the images, this was causing some
3698         artifacts when expanding/collapsing with images that were the
3699         exact height of the treenode.
3701 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3703         * TrackBar.cs: Query the theme for the correct value when the mouse
3704           moves and the thumb is pressed. 
3705         * Theme.cs: Added TrackBarValueFromMousePosition
3706         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
3707           implementation was updating the trackbar value when drawing, now
3708           the drawing methods only draw. Fixes #80900. Refactored the
3709           calculations out to TrackBarValueFromMousePosition and
3710           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
3711           according to the mouse position whenever it wants to. Changed the
3712           light coloured pen when drawing the thumb from ControlLight to
3713           ControlLightLight, because the ControlLight is the same colour as
3714           the background so the 3D effect is lost. 
3716 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
3718         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
3719         defined. Fixes #80784.
3721 2007-03-20  Marek Habersack  <mhabersack@novell.com>
3723         * ContextMenuStrip.cs: align with the change introduced in
3724         revision 74664.
3726 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
3728         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
3729         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
3730         in SetTopmost.
3732 2007-03-19  Chris Toshok  <toshok@ximian.com>
3734         * Control.cs (WmPaint): don't make use of the Handle property
3735         after an event is emitted, as the user could have closed the
3736         form/destroyed the control.  Store the Handle in a local variable
3737         and make use of that.  Fixes bug #80768.
3739 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
3741         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
3742         behavior in X11 environments.
3744 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
3746         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
3747         because on setter of topmost we dont call SetTopmost when handle is not
3748         created.
3750 2007-03-20  Jackson Harper  <jackson@ximian.com>
3752         * TextControl.cs: Need to use SelectionLength () not
3753         selection_length, since that var is reset to -1.
3754         - Draw the caret when we don't have focus.
3755         * TextBox.cs: The selectall actually doesn't occur until the first
3756         focus.
3757         * TextBoxBase.cs: Need to update the caret position after a
3758         selectall.
3759         
3760 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3762         * ListView.cs: Enable scrolling when using Tile view.
3764 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
3766         [Fixes #80902]
3768         * XplatUIDriver.cs: Abstract SetOwner method created.
3770         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
3771         must be implemented and was masked as todo.
3773         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
3774         GWL_HWNDPARENT.
3776         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
3777         cheking for null owner to remove transient. The SetTopmost will be change
3778         on a decond step.
3780         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
3781         SetTopmost. Now owned forms will work properly in win32 and X11.
3783 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3785         * MdiWindowManager.cs: Update function name.
3786         * Form.cs: After closing a form MdiParent is always null.
3787         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
3788           better what it should do: necessary book-keeping when the form is
3789           closed, it should not close the form itself.
3791 2007-03-19  Andreia Gaita  <avidigal@novell.com>
3793         * ListViewItem.cs: Fix back and fore color. The subitems only
3794         use their own colors if they are set, otherwise use the listview's
3795         colors. Don't set default colors on constructor for subitem.
3796         Fixes #79315.
3798 2007-03-19  Mike Kestner  <mkestner@novell.com>
3800         * ListView.cs : make box selection for Details views with 
3801         FullRowSelect conform to MS behavior when clicking in the "item" 
3802         column and clicking outside the defined columns.
3803         [Fixes case 5-6 of #80374]
3805 2007-03-19  Chris Toshok  <toshok@ximian.com>
3807         * ScrollableControl.cs: create the controls from within the ctor,
3808         but don't actually add them until our handle is created.  this
3809         fixes a NRE possibility jpobst found (if you override OnLayout in
3810         a subclass, it's called before your ctor).  Also, add a
3811         IsHandleCreated guard to UpdateSizeGripVisibility as well.
3813 2007-03-19  Jackson Harper  <jackson@ximian.com>
3815         * TextBox.cs: Reduce the amount of invalidation we do.
3816         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
3817         some of them are true by default on MS.
3818         - Add some functions to reduce the amount of invalidates we do.
3819         * TextControl.cs: Less invalidation.
3821 2007-03-19  Chris Toshok  <toshok@ximian.com>
3823         [ Fixes #81773, and *seems* to fix #81553 as well ]
3825         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
3826         AccumulateDestroyedHandles.  We need to do it *after* we send
3827         WM_DESTROY, as the user's code can access Control.Handle in
3828         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
3829         move the WM_DESTROY/zombie handling to before the call to
3830         XDestroyWindow.  For some reason without this ordering
3831         FormTest.RecreateHandle hangs.  This ordering is semantically
3832         equivalent, however, as XDestroyWindow is async anyway.
3834 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
3836         * RichTextBox.cs: Reset backcolor_set after setting default.
3838 2007-03-19  Chris Toshok  <toshok@ximian.com>
3840         * ScrollableControl.cs: the scroll position should not effect the
3841         canvas size.  commit patch from georgegiolfan@yahoo.com, which
3842         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
3843         
3844 2007-03-19  Chris Toshok  <toshok@ximian.com>
3846         * ScrollableControl.cs: clean this up a bit.  create the
3847         scrollbars in the ctor and just show/hide them as needed.  Also,
3848         make hscroll_visible/vscroll_visible internal to Recalculate, and
3849         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
3850         everywhere else.  This seems to fix the scrollbars appearing
3851         beneath the content for me (i have *no* idea why that is,
3852         however.)
3854 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
3856         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
3857         some redundacy for stuff in Anchor and Dock that base will take care of.
3858         [Fixes #80762]
3860 2007-03-19  Mike Kestner  <mkestner@novell.com>
3862         * ListView.cs : make box selection for Details views without 
3863         FullRowSelect dependent on the text bounds, not item bounds.
3864         * ListViewItem.cs : add an internal property to obtain the TextBounds
3865         in Details view.  [Fixes case 1-4 of #80374]
3867 2007-03-19  Andreia Gaita  <avidigal@novell.com>
3869         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
3870         we're < 2.0. #78448 && #80316
3872 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
3874         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
3875         have the same style available as the previously selected one.  Also,
3876         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
3878 2007-03-19  Jackson Harper  <jackson@ximian.com>
3880         * TextControl.cs: Add an alignment property that all new lines
3881         will be given.
3882         - Make sure to use the align shift when calculating the line's X
3883         position.
3884         * TextBox.cs: Set the alignment on the document as well as on all
3885         the document lines.
3887 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3889         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
3890           throw if setting the parent of an mdichild that already has an
3891           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
3892           AssemblyProductAttribute in the assembly, use the type's namespace (as
3893           MS seems to do). CreateControl: don't create the handle if the control
3894           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
3895           create handle if the control is not a form. Change FocusInternal to
3896           virtual so that it can be overriden by Form.
3897         * TextBox.cs: Update call to FocusInternal.
3898         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
3899           form is not a toplevel form when it's a mdi child, so update is_toplevel
3900           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
3901           hasn't been created. Show (IWin32Window): Don't allow this overload for
3902           toplevel windows. CenterToParent/CenterToScreen/Select: create the
3903           handle as MS does. SetVisibleCore: if called on a MdiChild and the
3904           parent isn't visible yet, save the visibility and restore it when the
3905           parent is made visible.
3906         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
3907           methods, since the visibility of the scrollbars can be changed from
3908           several places, not only from AutoScroll.
3909           [Fixes #81179]
3911 2007-03-19  Jackson Harper  <jackson@ximian.com>
3913         * RichTextBox.cs: Enable shortcuts by default.
3914         * TextBoxBase.cs: Add conditional shortcuts.  
3916 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
3918         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
3920 2007-03-19  Chris Toshok  <toshok@ximian.com>
3922         [ Fixes bug #80604]
3923         
3924         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
3925         swallow the message we're waiting on, instead of delivering it, as
3926         this is only used for the WM_SHOWWINDOW raised from
3927         MapWindow/UnmapWindow, and the message needs to be generated
3928         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
3929         before doing the Map/Unmap.  Also make sure that the Hwnd is still
3930         alive after the message has been handled.
3932         *before* the window is shown.
3934         * Control.cs (CreateControl): guard a few more things inside the
3935         if (!is_created) block, as we might end up being called again -
3936         yay .net.
3937         (WmShowWindow): call CreateControl if we're showing the control.
3939 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3941         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
3942           controls without a handle if they have any parent with a handle. In
3943           Dispose add a check whether the handle is created or not before
3944           calling BeginInvoke, this removes the need of the extra disposing
3945           parameter (which was bogus anyway since it didn't prevent the
3946           invoke from happening, it only skipped the check for an existing
3947           handle, meaning that the invoke would call on an inexistent
3948           handle).
3950 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
3952         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
3953         appears in taskbar.
3955 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
3957         * MessageBox.cs:
3958         - Fixed a problem that dont show help button for messages with 3 buttons.
3959         - Refactory button size and position calculations, now dont use fixed 
3960         values, also fixed button sizes (#80043) and form's border space.
3961         - AddButton method created, now all other AddButton methods call this one.
3962         - Some other source code cosmetic changes.
3964 2007-03-18  Jackson Harper  <jackson@ximian.com>
3966         * RichTextBox.cs: Don't do this all fonts must match check if
3967         there is only one char selected.
3969 2007-03-18  Jackson Harper  <jackson@ximian.com>
3971         * TreeView.cs: ScrollWindow works properly now, so we don't need
3972         to screw around with the scroll area.  This fixes some artifacts
3973         when expanding and collapsing.
3975 2007-03-18  Jackson Harper  <jackson@ximian.com>
3977         * TextBoxBase.cs: Allow updating the selection position when the
3978         cursor is outside the textarea, but we have a capture.
3979         * TextControl.cs: A special case for when the cursor is outside
3980         the bounds of the TB.
3981         
3982 2007-03-18  Jackson Harper  <jackson@ximian.com>
3984         * TextBoxBase.cs: Remove image pasting code for now.  There is no
3985         way to get an image on the clipboard right now anyways.
3986         * TextControl.cs:
3987         * RichTextBox.cs: Use the new RTF Picture class for pictures.
3989 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
3991         * MessageBox.cs:
3992         - Set window properties in constructor intead of on CreateParams.
3993         - Remove topmost from Window ExStyle.
3994         - Set ShowInTaskbar to false.
3995         - Set form border to FixedDialog.
3996         - Some cosmetic changes and remove unneeded comments.
3997         - It fixes itens 2,3 and 4 of bug #80043.
3999 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
4001         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
4002         none was explicitly set. Fixes part of bug #79949.
4004 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
4006         * ToolStripComboBox.cs: Add AutoComplete*.
4008 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
4010         * ToolStripComboBox.cs: Add FlatStyle.
4012 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
4014         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
4015         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
4017 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4019         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
4020           CheckBox.cs, RadioButton.cs, BindingSource.cs,
4021           DataGridColumnStyle.cs: Remove warnings.
4023 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4025         * Menu.cs: MergeMenu: Check menu argument for null before looping over
4026           it.
4027         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
4028           visibility of mdi child forms. FormSizeChangedHandler: update the
4029           maximized size if size has changed while maximized.
4030         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
4031           creating the handle.
4032         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
4033           avoid creating the handle if not created.
4034         * XplatUI.cs: Update debug output.
4035         * XplatUIStructs.cs: Added ToString's for a couple of structs.
4037 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
4039         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
4040         ProcessCmdKey().
4041         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
4042         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
4043         Implement keyboard shortcuts.
4045 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
4047         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
4048         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
4049         ColorDialog and all derived classes.
4051 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
4053         [ Fixes bug #79828 ]
4055         * ToolBar.cs:
4056         - Rename ToolBarButtonInfor to ToolBarItem.
4057         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
4058         - Maintain an array of ToolBarItem, used instead of ToolBarButton
4059         collection to be able add same button more than one time on a toolbar.
4060         - Refactory all properties and methods to use ToolBarItem. 
4062         * ToolBarButton.cs: 
4063         - Remove all propeties and methods that is now in ToolBarItem.
4064         - Rectangle propery now gets the rectangle from first ToolBarItem to
4065         mimic win32 behavior.
4066         - Size calculation and layout methods also removed.
4068         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
4069         ToolBarItem instead of ToolBarButton to right drawing buttons when
4070         same button/separator was added more than one time to ToolBar.
4072         * ThemeNice.cs: Same as above. 
4074 2007-03-15  Andreia Gaita  <avidigal@novell.com>
4076         * XplatUIX11.cs: Fire extra MouseMove events right after
4077         MouseDown and MouseUp, emulating win32's <censored> behaviour
4078         for apps that rely on it.
4080 2007-03-15  Jackson Harper  <jackson@ximian.com>
4082         * TextControl.cs:
4083         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
4084         it is drawn on the controls client window and there is no NC
4085         area.
4086         - Set the background color to gray on 2.0 when we are readonly.
4088 2007-03-15  Chris Toshok  <toshok@ximian.com>
4090         [ Fixes bug #81144 ]
4091         
4092         * XplatUIX11.cs: implement VirtualScreen independently of
4093         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
4094         property.
4096 2007-03-15  Chris Toshok  <toshok@ximian.com>
4098         * Hwnd.cs: add an internal field for the cached_window_state.
4100         * XplatUIX11.cs: cache the window state, invalidating the cache
4101         (and thus re-querying the X server) only when we see an update to
4102         the _NET_WM_STATE property.
4104 2007-03-15  Chris Toshok  <toshok@ximian.com>
4106         * BindingSource.cs: get a lot of the unit tests working.
4108 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
4110         * Control.cs: Modify UpdateStyles to store distances when bounds >=
4111         0 instead of just bounds > 0.  [Fixes bug #80912]
4113 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
4115         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
4116         and methods.
4118 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
4119         
4120         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
4121         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
4122         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
4123         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
4125 2007-03-15  Chris Toshok  <toshok@ximian.com>
4127         [ Fixes #81101 ]
4128         
4129         * Control.cs: add Ivan's fix for 81101, with a slight modification
4130         - you can set control.Target to null.
4132 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
4134         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
4135         HideDropDown, use Hide instead to prevent an NRE.
4136         [Fixes bug #81147]
4138 2007-03-14  Jackson Harper  <jackson@ximian.com>
4140         * TextBoxBase.cs: Mess with the creation stuff a little. We need
4141         to calculate the document before the handle is created, in some
4142         cases. (Actually just one case).
4144 2007-03-14  Jackson Harper  <jackson@ximian.com>
4146         * TextBoxBase.cs: Need to display the caret after letting the base
4147         wndproc handle the focus methods, because the caret display
4148         methods check the focus state.
4149         - Try to display the caret after updating it's position with SelectWord.
4150         - Don't need to do an immediate update on this recalc, since there
4151         will be an invalidate anyways.
4153 2007-03-14  Jackson Harper  <jackson@ximian.com>
4155         * TreeView.cs: Some workarounds so that we can match event order a
4156         little better.
4158 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
4160         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
4161         #80803. Avoid NullReferenceException when Control does not have
4162         parent. Fixed different blinkstyle issues. Only subscribe to Tick
4163         event a single time. Only draw error icon when control is created and
4164         visible. Fixes failing unit tests.
4166 2007-03-14  Andreia Gaita  <avidigal@novell.com>
4168         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
4169         Selecting events. Fire Leave and Enter events when changing tabs.
4171 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
4173         * TreeView.cs: Add TreeViewNodeSorter.
4174         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
4176 2007-03-14  Chris Toshok  <toshok@ximian.com>
4178         * Form.cs: go ahead and remove the RecreateHandles that jpobst
4179         removed earlier and I had him add back it.  It turns out metacity
4180         *does* in fact handle the MOTIF_WM_HINTS property changing, it
4181         just doesn't redraw the window titlebar until you resize the
4182         window.  This also means we aren't recreating the entire window
4183         hierarchy on X when you change this property.  And it looks better
4184         on windows, too.
4186 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4188         * ListViewItem.cs:
4189         * ListView.cs: Collecting selection information
4190         is now done in SelectedIndexCollection rather than in
4191         SelectedListViewItemCollection. This is done so we can
4192         have the selection information code in one single place
4193         (virtual mode selection information entirely depends on
4194         SelectedIndexCollection).
4196 2007-03-13  Miguel de Icaza  <miguel@novell.com>
4198         * ErrorProvider.cs: Add stubs for ISupportInitialize
4200 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4202         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
4203         in the right order with the right values, from the Checked property, 
4204         just as MS does (instead of triggering them from ListView).
4206         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
4208 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4210         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
4211         the correct handler in OnItemCheck method (ItemCheckEventHandler 
4212         instead of EventHandler). This used to throw an InvalidCastException.
4214 2007-03-13  Jackson Harper  <jackson@ximian.com>
4216         * TextBoxBase.cs: Calculate the document before the handle is
4217         created, so there isn't an extra invalidate called.
4219 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
4221         * Form.cs: Don't set owner in ShowDialog until we are sure
4222         that we aren't going to throw an exception.  [Fixes bug #80773]
4224 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
4226         * TreeView.cs: Make it compile.
4228 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4230         * Control.cs: Another place we don't call SizeFromClientSize.
4231         * Form.cs: Another place we don't call SizeFromClientSize.
4232         [Fixes bug #81125]
4234 2007-03-12  Jackson Harper  <jackson@ximian.com>
4236         * TreeView.cs: Basically emulating some strangness here with
4237         exanding nodes and setting node positions when windows aren't
4238         created.
4239         - Also attempting to walk the node tree less than previously, and
4240         just use visible order calculations for determining offsets.
4241         - oops made scrolling backwards.
4242         * TreeNode.cs: We need to start nodes with a zero visible order,
4243         because the order calcs are based on the first nodes order.
4245 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4247         * Form.cs: Don't exit the program if RecreateHandle is called on
4248         the main form.
4250 2007-03-12  Chris Toshok  <toshok@ximian.com>
4252         * XEventQueue.cs: remove the use of PostQuitState.
4254         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
4255         WM_QUIT message in GetMessage, return false (and if we're in the
4256         nested WaitForHwndMessage, repost the WM_QUIT message).
4258 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4260         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
4261         or the MaximizeBox properties.  [Part of bug #80640]
4263 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
4265         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
4266         no links.
4268 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4270         * ToolStripItem.cs: Fix some tests I broke by checking Visible
4271         instead of visible.
4273 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
4275         * FileDialog.cs: Use text of File name combobox to determine what
4276         files the user selected. Added tokenizer to parse the file names.
4277         Fixes bug #81123.
4279 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4281         * Control.cs: We can't call SizeFromClientSize in the constructor,
4282         but we still need to do the same work, so make an internal version.
4283         [Fixes bug #80621]
4285 2007-03-12  Jackson Harper  <jackson@ximian.com>
4287         * TreeView.cs:
4288         * TreeNode.cs:
4289         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
4290         IsExpanded.
4292 2007-03-12  Jackson Harper  <jackson@ximian.com>
4294         * TextBoxBase.cs: Now that the handles are being created a little
4295         later, we need to make sure that the document is recalculated when
4296         the handle is created.
4298 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
4300         * Theme.cs: GetLinkFont abstract method added.
4301         
4302         * LinkLabel.cs: 
4303         - Remove CalcTrimRectangle, no longer needed.
4304         - Factor also remove, position issues must be fixed in libgdiplus.
4305         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
4306         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
4307         care about font used to draw links.
4308         - Set TabStop to true when control is "Selectable", control is selectable
4309         when have one or more links. Fixes #80501 (test case is also added).
4310         - Set the LinkArea values after links change, LinkArea values must be
4311         based in first link position and size, a test case was created.
4312         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
4313         the attribute must be true LinkArea.Length > 0. The same was applied to
4314         TabStop.
4315         
4316         * ThemeWin32Classic.cs: 
4317         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
4318         in draw method.
4319         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
4320         color change.
4321         - Draw focus rectangle for every parts focused, including parts that 
4322         is on another line, its because regions returns various rectangles
4323         and not only one. Needed to mimic W32 look.
4324         - Uses Graphics.Clip to delimite region painted, it mean that now 
4325         complete text is passed to DrawString, with this we solve layout
4326         issues without create another text renderer.
4327         - Uses Region.Intersect to fix some flickers problems, now only needed
4328         parts will redrawed.
4329         - This changes fixes #79614 and some other unreported issues, on Linux 
4330         some layout problems still remain, the problem is under 
4331         MeasureCharacterRanges but it is an libgdiplus bug.
4333 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
4335         * TextBox.cs: Set for foreground color.
4336         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
4337         this is already done in Control.
4339 2007-03-10  Jackson Harper  <jackson@ximian.com>
4341         * TextBox.cs: Set the background color, but reset the
4342         backcolor_set flag which is just for the user setting the
4343         background color.
4345 2007-03-09  Chris Toshok  <toshok@ximian.com>
4347         * Control.cs: really remove the call to XplatUI.SetVisible from
4348         CreateHandle(), like I said I did when I merged the branch.
4350         * BindingSource.cs: implement some more of this stuff.
4352 2007-03-09  Jackson Harper  <jackson@ximian.com>
4354         * TextBox.cs: Don't explicitly set our background colors.
4355         * TextControl.cs:
4356         * TextBoxBase.cs: Draw readonly text.
4357         - Need to invalidate when backcolor or readonly are changed.
4358         
4359 2007-03-09  Jackson Harper  <jackson@ximian.com>
4361         * TextBoxBase.cs: Don't set the forecolor until the handle is
4362         created.
4363         - Do not raise OnPaint, and removed some old debug code.
4365 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
4367         * ScrollableControl.cs: Fix mouse wheel scrolling.
4369 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
4371         * Control.cs: Wire up MouseDoubleClick event.
4373 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
4375         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
4376         top or bottom.
4377         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
4378         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
4379         item is added.  This logic was moved to ToolStrip.OnItemAdded.
4380         [Fixes bug #81090]
4382 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4384         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
4386 2007-03-08  Jackson Harper  <jackson@ximian.com>
4388         * TreeView.cs: Show the correct image for selected node (this used
4389         to work, not sure how the code got deleted). Also implemented 2.0 feature
4390         SelectedImageKey.
4392 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4394         * ListView.cs:
4395         * ListViewItem.cs: Cache index in items when retrieving them
4396         in VirtualMode.
4398 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
4400         * ToolStripItem.cs: Don't return the explicit_size if we are using 
4401         AutoSize.  Fixes invalidation issue when user has explicitly set a
4402         size and has AutoSize = true.
4404 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
4406         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
4408 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
4410         * DataGridView.cs: Remove event handler from DataView when a
4411         DataTable is used as DataSource.
4413 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
4415         * Control.cs: Create internal setter for client_size to allow it to be
4416         set without triggering resizing code.
4417         * Form.cs: Calculate client_size in constructor, only change client_size
4418         in FormBorderStyle property if Handle has been created.
4419         [Fixes #80574, #80791]
4421 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
4423         * SystemInformation.cs: Add TerminalServerSession.
4425 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
4427         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
4428         TreeView code.
4430 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
4432         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
4433         Handle before we were supposed to.  Now checks ActivateOnShow property
4434         in Control.
4435         * Control.cs: Add internal ActivateOnShow property.
4436         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
4437         for ActivateOnShow.
4438         * Hwnd.cs Remove no longer needed no_activate field.
4440 2007-03-07  Jackson Harper  <jackson@ximian.com>
4442         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
4443         2.0 properties
4444         * DrawTreeNodeEventHandler.cs: Add
4445         * DrawTreeNodeEventArgs.cs: Correct default value.
4446         
4447 2007-03-07  Chris Toshok  <toshok@ximian.com>
4449         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
4450         to be called before NativeWindow.WndProc.  Put the HwndCreating
4451         magic there to hook up our Hwnd's to handles.
4453 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
4455         * DataGridView.cs: Comment out debug code.
4457 2007-03-07  Chris Toshok  <toshok@ximian.com>
4459         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
4460         to make the rest of the world happy]
4462         * Control.cs (CreateHandle): there's no need to call
4463         XplatUI.SetVisible here, it's effectively done by
4464         XplatUI.CreateWindow on X now, and always was on windows.
4466         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
4467         shortcircuit out of the loop if we have a message loop running on
4468         this thread.
4470         [Changelog from merge]
4472         2007-03-05  Chris Toshok  <toshok@ximian.com>
4474                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
4475                 causes handle creation.
4477         2007-02-28  Chris Toshok  <toshok@ximian.com>
4479                 * ApplicationContext.cs: Add a flag to make sure we only raise the
4480                 ThreadExit event once (ExitThreadCore can be indirectly called
4481                 from a few places.)  I don't like the additional flag, but it
4482                 makes the event ordering/count correct.
4484                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
4485                 without locking the collection.  An enumerator doesn't give us any
4486                 protection from modification anyway.  Lock the thread hash and
4487                 replace the complicated enumerator loop with a foreach.
4488                 (Application.CloseForms): make internal so it can be called from
4489                 ApplicationContext.  This should probably be moved to MWFThread.
4490                 (Application.ExitThread): don't call MWFThread.Current.Exit()
4491                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
4492                 when the runloop exits (in response to WM_QUIT.)
4493                 (Application.RunLoop): add a comment (and check) for
4494                 context.MainForm being null after setting context.MainForm.Visible
4495                 = true.  This is because you're perfectly free to dispose of a
4496                 form in VisibilityChanged.  Chalk this up to another case where we
4497                 need to synchronously generate WM_ACTIVATE from Control.Show.
4498                 Also, add handling for WM_QUIT here so we'll exit the loop.
4499                 
4500                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
4501                 fact that we don't wait if we're only unmapping the whole_window
4502                 makes me a bit nervous, but it doesn't seem to cause any problems
4503                 yet.
4505                 also, add a comment about the stupid, broken and wrong resetting
4506                 of PostQuitState to false in GetMessage().
4508                 In PostQuitMessage, we need to add a WM_QUIT message to the
4509                 thread's queue.  We use the FosterParent to get the right
4510                 handle/hwnd/queue.
4512                 Lastly, in SetVisible, we need to unmap both windows, since the
4513                 waiting only happens when we're unmapping the client window.  So
4514                 now, the *only* time we unmap just the whole_window is in the hack
4515                 for resizing a control to 0,0.
4516                 
4517         2007-02-21  Chris Toshok  <toshok@ximian.com>
4519                 * Application.cs (CloseForms): rewrite this so that we don't
4520                 modify the list while we're traversing it.
4522         2007-02-20  Chris Toshok  <toshok@ximian.com>
4524                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
4525                 of OnHandleCreated.
4526                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
4527                 handle is created.  otherwise we'll create it here.
4528                 (VerticalScrollEvent): same here.
4530                 * Application.cs (CloseForms): call Form.Dispose, don't post
4531                 WM_CLOSE_INTERNAL.
4533                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
4534                 here. Application should Dispose() of the Form's.
4536                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
4537                 WM_DESTROY as well.
4538                 (MapWindow,UnmapWindow): only actually do the waiting for
4539                 SHOWWINDOW if the control we're dealing with is a Form.
4540                 (CreateWindow): if the control isn't a form, SendMessage
4541                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
4543                 * Control.cs (SetVisibleCore): always use is_visible here, not
4544                 value.  If we use value, we can end up re-setting something
4545                 visible if, for instance, you do Control.Hide() in a delegate
4546                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
4548         2007-02-20  Chris Toshok  <toshok@ximian.com>
4550                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
4551                 the message we need.  PeekMessage returning false should not be a
4552                 condition under which we exit the loop.
4554         2007-02-15  Chris Toshok  <toshok@ximian.com>
4556                 * Control.cs (Refresh): only refresh if we've got a handle and are
4557                 visible.
4558                 (CreateAccessibilityInstance): CreateControl() here.
4559                 (UpdateChildrenZOrder): complicate the code loop even more by
4560                 taking into account controls that haven't had their handle
4561                 created, and those that aren't visible.  But on the flip side,
4562                 simplify the code by splitting it into two loops.  one which
4563                 builds up the list of child controls we're interested in, and the
4564                 other that sets the z order of those children.
4566         2007-02-14  Chris Toshok  <toshok@ximian.com>
4568                 * Control.cs: Control.AccessibilityObject causes the control to be
4569                 created, not just the handle.
4571         2007-02-14  Chris Toshok  <toshok@ximian.com>
4573                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
4574                 problem on X where a window might have its handle created (and be
4575                 visible) while the window is unmapped.  calling XConfigureWindow
4576                 on an unmapped window is bad, and generates X errors.
4578         2007-02-13  Chris Toshok  <toshok@ximian.com>
4580                 * Control.cs (CreateHandle): don't loop over our children setting
4581                 their parent here.  do it when in WndProc when we're shown.
4582                 (UpdateChildrenZOrder): make this internal so we can call it from
4583                 ScrollableControl.
4584                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
4585                 creating its handle.  Also, remove the calls to PerformLayout from
4586                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
4587                 OnVisibleChanged only seems to be called directly here for the
4588                 toplevel control.  It's propagated down the window hierarchy by
4589                 calls to child.OnParentVisibleChanged.
4590                 (OnVisibleChanged): don't do layout here - it's done (oddly
4591                 enough, according to a glance at stack traces on ms.net..) in
4592                 ScrollableControl.
4593                 
4594                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
4595                 z order of our children before calling PerformLayout.
4597         2007-02-12  Chris Toshok  <toshok@ximian.com>
4599                 [big change, fixes #80020]
4600                 
4601                 * AccessibleObject.cs: we need to make owner internal again to fix
4602                 some of ControlAccessibleObject.
4604                 * Control.cs: lots of changes here.  add support for WM_CREATE,
4605                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
4606                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
4607                 we create child controls.  leave the MonoTODO's for the
4608                 accessibility calls, but fix the exceptions so the tests pass.
4610                 Add the InvalidOperationExceptions to Invoke methods, and remove a
4611                 couple of InvokeInternal methods we aren't using.
4612                 
4613                 Also, add a couple of CreateHandle calls in places where we know
4614                 the handles are being created but our code doesn't reference
4615                 .Handle.
4617                 Make SetVisibleCore call OnVisibleChange if the handle isn't
4618                 created.  If the handle is created, we rely on XplatUI.SetVisible
4619                 generating the event synchronously.
4620                 
4621                 Lastly, make sure we don't use this.Handle inside CreateHandle,
4622                 because we can call back into client (and that code can dispose of
4623                 the control).
4625                 * XplatUIStructs.cs: misc/cleanup.
4627                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
4628                 although we don't populate the wParam properly.
4629                 (CreateWindow): generate WM_CREATE.
4630                 (MapWindow,UnmapWindow): make these calls synchronous, at great
4631                 performance expense (particularly in the unmap case), to match
4632                 win32 behavior.
4634                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
4635                 to call it.
4636                 (set_MdiParent): don't recreate the handle unless it's been
4637                 created already.
4638                 
4639                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
4640                 it's created.
4642                 * NativeWindow.cs: this is probably the weirdest part of the
4643                 patch.  We need a way to link up the window being created to the
4644                 WM_CREATE message.  Since we can only be creating one window at a
4645                 time on a given thread, we keep track of a per-thread reference so
4646                 we can dispatch it properly.  We also need to keep track of the
4647                 Hwnd currently being created so that the win32 backend doesn't
4648                 have problems.
4649                 
4650                 * XplatUIWin32.cs: a similar change to the one we made in
4651                 NativeWindow.cs.
4653 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
4655         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
4656         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
4657         to draw the menu shortcut string.
4659 2007-03-07  Jackson Harper  <jackson@ximian.com>
4661         * TreeNode.cs: Add the 2.0 collapse method.
4663 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
4665         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
4667 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
4669         * DataGridView.cs: Change DataSource will clear column and row
4670         lists. Call Invalidate() to reflect DataSource change.
4672 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
4674         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
4675         and a new row is added to it.
4677 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
4679         * DataGridView.cs: Add columns when DataSource is en empty list but
4680         is a System.Data.DataView (from a System.Data.DataTable).
4682 2007-03-06  Andreia Gaita  <avidigal@novell.com>
4684         * Label.cs: Implement AutoEllipsis (2.0)
4686 2007-03-06  Jackson Harper  <jackson@ximian.com>
4688         * TreeView.cs: Implement 2.0 TopNode setter property.
4689         - Use a local var instead of the skipped_nodes field for computing
4690         how many nodes to skip.  Otherwise we won't scroll because the
4691         valuechanged handler checks if skipped_nodes is equal to the new
4692         value.
4693         - Implement 2.0 Sort method.
4694         - Add useless 2.0 DoubleBuffer property
4695         - Implement 2.0 LineColors property.  Lets you change the color of
4696         the lines in the tree. Terribly useful for creating non cohesive
4697         desktops.
4698         - Implement 2.0 image key feature.
4700 2007-03-06  Jackson Harper  <jackson@ximian.com>
4702         * TreeView.cs: We can't get the bounds of the nodes before raising
4703         the AfterSelect event, because that event could change the node's
4704         bounds (scrolling, font change, etc).
4706 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4708         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
4709         * Form.cs: Don't recreate handle when creating FormWindowManager, just
4710           update window styles. In CreateParams us VisibleInternal instead of
4711           VIsible to get the actual visible flag set for this form.
4712         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
4713           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
4714           handle the case when the form is already maximized, in which case
4715           it should be restored. Fixes #81043.
4717 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4719         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
4721 2007-03-05  Jackson Harper  <jackson@ximian.com>
4723         * TreeViewHitTestInfo.cs: implement.
4725 2007-03-05  Jackson Harper  <jackson@ximian.com>
4727         * InternalWindowManager.cs: class status fix.
4729 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4731         * InternalWindowManager.cs: All windows that have a parent
4732         are confined to their parent when they're being moved.
4733         Fixes #80822.
4735 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
4737         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
4738         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
4740 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4742         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
4743           buttons invisible before deciding which ones should be visible
4744           (fixes minimize/maximize buttons showing up in toolwindows). Remove
4745           an unused variable.
4746         * InternalWindowManager.cs: Remove warning.
4748 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4750         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
4751         to throw an InvalidOperationException is virtual mode is being used.
4753 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
4755         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
4756         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
4757         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
4758         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
4759         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
4760         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
4762 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4764         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
4765           driver.KeyboardDelay from XplatUI.KeyboardDelay 
4766         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
4767           (patch by Sergey Volk)
4769 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4771         * ToolWindowManager.cs: Added, contains logic for
4772           tool windows.
4773         * CreateParams.cs: Add a few helper methods and an
4774           internal variable to know which control the CreateParams belongs
4775           to.
4776         * Control.cs: Call Form.ChangingParent when the
4777           parent is about to be changed.
4778         * XplatUIX11.cs: DeriveStyles (): Set
4779           caption_height for all windows that have captions and are children.
4780           Update to use ToolWindowManager instead of InternalWindowManager
4781           for ToolWindows.
4782         * XplatUIWin32.cs: Set fake window styles for all
4783           windows that have window managers.
4784         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
4785           now duplicated for mdi windows when they are
4786           maximized, first for the buttons the window itself has, then for
4787           the buttons that appear in the menu bar. Makes things a little
4788           easier). Updated UpdateWindowDecorations, SetWindowState and the
4789           mouse eventhandlers accordingly.
4790         * Form.cs: Add ChangingParent (), contains the
4791           logic of what should happen when the parent changes. In MdiParent
4792           don't set things that ChangingParent () is doing. When handling
4793           WM_CLOSE, we can close the form if there are any other modal forms
4794           and the current form is a descendent of the modal form.
4795         * InternalWindowManager.cs: A lot of refactoring,
4796           the title buttons are now extracted to a separate container class
4797           that takes care of all button code (clicks, tooltips, etc). Moved
4798           Iconic|Maximized|Normal Bounds properties to this class from
4799           MdiWindowManager, so that the window state logic can succeed for
4800           other than mdi wm's. Implemented general window state change logic.
4801           Moved CreateButtons to ThemeWin32Classic, since the theme might
4802           override which buttons are available when as well as the exact
4803           location.
4804         * FormWindowManager.cs: Added, contains logic for
4805           normal forms.
4806         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
4807           which buttons go where (and if they are at all visible). 
4808           Removed special handling of maximized windows, since they aren't special. 
4809           In DrawManagedWindowDecorations don't try to draw the text if it is
4810           empty.
4811         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
4812           use whatever the wm gives us.
4814 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
4816         * ButtonBase.cs: Add 2.0 properties.
4817         * Button.cs: Override Draw for 2.0.
4818         * Control.cs: Add Entered and Selected properties.
4819         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
4820         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
4821         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
4822         buttons.
4823         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
4825 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
4827         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
4829 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
4831         * XplatUIWin32.cs: Register a new class with Windows each time we get
4832         a new ClassStyle.  [Fixes bugs #79432, #80817]
4833         * Controls.cs: Set the correct ClassStyle in CreateParams.
4834         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
4836 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
4838         * ListView.cs: Add fireEvent argument to ReorderColumn since the
4839         ColumnReordered event must not be signaled when modifying DisplayIndex
4840         of a ColumnHeader. Added internal ReorderColumns method which takes
4841         care of drawing, and updating the internal DisplayIndex of the
4842         ColumnHeader. Added AddColumn method which is invoked from
4843         ColumnHeaderCollection when adding or inserting columns, and which
4844         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
4845         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
4846         Recalculated dispay indices after removing a ColumnHeader.
4847         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
4848         match MS. Allows last display index to be returned after ListView
4849         is disposed. Update actual location of ColumnHeader when DisplayIndex
4850         is modified.
4852 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
4854         * LinkLabel.cs: Improve CalcTrimRectangle.
4855         
4856         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
4858 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
4860         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
4861         get rectangle as a result value.
4863 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
4865         * LinkLabel.cs: Theres some diferences between rectangle return from 
4866         MeasureCharacterRanges and the area used for DrawString to fix this 
4867         CalcMeasurementFactor method was created, it calcules the diferences
4868         to be use later to adjust rectangle in draw operations. Fixes #80473.
4869         
4870         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
4871         to adjust draw rectangle.
4873 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
4875         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
4876         text and some other changes to reduce and optimize source code.
4878 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
4880         * RadioButton.cs: Implement 2.0 event.
4881         * RelatedImageListAttribute.cs: Implement new class.
4883 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
4885         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
4887 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
4889         * CheckBox.cs: Implement 2.0 functionality.
4891 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4893         * ListView.cs: Refactor Add and AddRange methods of
4894         ListViewItemCollection, to not update the ListView
4895         everytime an item is added in AddRange. Also move the update
4896         code to a new CollectionChanged method, and call it
4897         from other methods that need it as well (this should also fix some
4898         bugs when Sorting is used).
4900 2007-02-27  Jackson Harper  <jackson@ximian.com>
4902         * TextControl.cs: Try to never let the caret stay in a non-text
4903         tag.
4904         * TextBoxBase.cs: Update the caret.
4906 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
4908         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
4909         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
4910         delete POINT structure, duplicate of one in XplatUIStructs.
4911         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
4913 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
4915         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
4916         edit box since otherwise the Label would immediately be set (even if
4917         the user did not modify the label). In OnKeyDown set Handled to true
4918         if Return or Escape was pressed. In ColumnHeaderCollection unlink
4919         columns that are to be removed. In ListViewItemCollection unlink items
4920         that are to be removed.
4922 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
4924         * TextRenderer.cs: If we set a GDI clip region, we need to clear
4925         it when we are done.  [Fixes bug #80949]
4927 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
4929         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
4931 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4933         * ListView.cs: I forgot to commit the changes for ListView 
4934         in my previous patch.
4936 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
4938         * Clipboard.cs: Partially implement an overload of SetDataObject.
4939         * Form.cs: Implement ShowWithoutActivation.
4940         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
4942 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4944         This is a first set of changes to make the Virtual mode works,
4945         by avoiding the retrieval of ListViewItem instances until
4946         draw time.
4948         * ListView.cs: Store item position in the ListView instead of the
4949         ListViewItem, this way we don't request the Bounds property of
4950         ListViewItem inside the ListView calculations, as well as cache the item
4951         size in item_size field. Store indexes instead of ListViewItem
4952         instances in the matrix used by icon view. Add a ItemMatrixLocation
4953         struct to hold the row and col info of the matrix info.
4955         * ListViewItem.cs: Don't store the location anymore, and only cache
4956         the rectangles for GetBounds. Use the ListView.GetItemLocation
4957         method to retrieve the actual location.
4959 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
4961         * TextRenderer.cs: Add clipping support, thanks to George.
4962         [Fixes bug #80949]
4964 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
4966         * ListViewItem.cs: Cancel label edit when item is removed from 
4967         ListView.
4968         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
4969         event before the edit textbox is displayed.  Added CancelEdit method
4970         which is used end to editing while ignoring the value set by the
4971         user. In EndEdit, set focus to ListView to avoid losing focus to
4972         other controls. In ListViewItemCollection.Clear, cancel editing of
4973         any of the items.  In Remove, cancel editing of item being removed.
4974         Avoid udplicate code by modifing RemoveAt to invoke Remove.
4976 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
4978         * FileDialog.cs: Update FSEntry when move is successful. Fixes
4979         bug #80948.  
4981 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
4983         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
4984         compatible with non X11 systems. Fixes #80901.
4986 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
4988         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
4989         whether the item should be unselected and reselect. We do no want this
4990         when we're starting to edit the label. Do not fire the 
4991         SelectedIndexChanged event from ListView when its already been fired
4992         by modifying ListViewItem.Selected. Fixes bug #80943.
4994 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
4996         * TextRenderer.cs: Previos commit logic was backwards.
4998 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
5000         * TextRenderer.cs: Don't add padding on MeasureText if we were
5001         sent the NoPadding flag.
5003 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
5005         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
5006         after DrawButton. To prevent image overlaps button borders SetClip and 
5007         ResetClip added before and after draw image. Fixes #79129.
5009 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
5011         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
5012         window size, it fix problem when you run under win32 that theres
5013         Size diferent than ClientSize. Also fix controls size and positions
5014         to mimic Win32. Fixes #80837.
5016 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
5018         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
5019         menu area to fix some problems for non X11 systems. Fixes #80613.
5021 2007-02-22  Jackson Harper  <jackson@ximian.com>
5023         * TreeNode.cs: When a node is expanded, set its is_expanded flag
5024         even if it doesn't have any children.
5026 2007-02-22  Jackson Harper  <jackson@ximian.com>
5028         * TreeView.cs: Calculate the top node 'on the fly', this
5029         eliminates issues where you need to click on the tree before
5030         scrolling it to get the top node computed correctly.
5031         * TreeNodeCollection.cs: We don't need to mess with the top node
5032         anymore.
5034 2007-02-22  Jackson Harper  <jackson@ximian.com>
5036         * DataGridViewRow.cs: Fix typo so height can actually be set.
5037         Patch by Peter Grimm.
5039 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
5041         * FileDialog.cs: Fixed support for renaming files and directories.
5042         * ListView.cs: Do not lose focus when edit is canceled. Process
5043         Escape as regular key (to prevent closing of dialogs).
5045 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
5047         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
5048         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
5050 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
5052         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
5053         did not modify label.
5054         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
5055         modified the text. Reset Label when user presses Escape in edit mode.
5056         Move focus to ListView after having cancelled or finished editing the
5057         label.
5059 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
5061         * ComboBox.cs: Removed unnecessary initializations. Marked items field
5062         private. Clear textbox when Text is set to null and SelectedIndex is
5063         already -1.
5064         * FileDialog.cs: Removed unnecessary initializations. Removed 
5065         workarounds for ComboBox bugs that are now fixed. Modified
5066         DefaultExt, InitialDirectory and Title property to change null to
5067         zero-length string in getters. Avoid directly accessing fields.
5069 2007-02-20  Jackson Harper  <jackson@ximian.com>
5071         * TextControl.cs: Remove RecalAlignments call, that was some
5072         debugging leftovers.
5073         - Don't use the line indent when we shouldn't.
5074         * RichTextBox.cs: Add support for paragraph left indents.
5076 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5078         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
5079         Seems like the class status pages doesn't catch params differences.
5081 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
5083         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
5085 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
5087         * ComboBox.cs: Setting Text should have no effect if item text of
5088         selected item exactly matches value. First lookup text using
5089         case-sensitive comparison, and fallback to case-insensitive comparison.
5090         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
5091         allow startIndex to be last index. Changed ArgumentOutOfRangeException
5092         paramname to match MS. Restart from first item if string is not found
5093         after startIndex. Fixed paramname of ArgumentNullException that is
5094         thrown for null value in ObjectCollection.Contains.
5096 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
5098         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
5100 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5102         * ListControl.cs: In SelectedValue use value.Equals to compare for
5103         equality instead of ==, otherwise it will fail for strings.
5104         Fixes #80794.
5106 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5107         
5108         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
5109         since the caret won't show up unless ShowSelection is true. 
5110         Fixes #80795.
5112 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5114         * Application.cs: When disabling all forms but the main form, do not
5115           disable any descendants of the main form (such as mdi children or
5116           other parented forms). Fixes #80822 on Windows.
5117         * Form.cs: If we have a parent, set the WS_CHILD style.
5118         * Control.cs: Update the window styles if the control whose parent has
5119           changed is a form (the WS_CHILD style has to be switched).
5121 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
5123         * XplatUIStructs.cs: MsgUIState structure added.
5125 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
5127         * FileDialog.cs: Removed need for separate fileName field. On 2.0
5128         profile, do not check filename(s) for illegal character if filename(s)
5129         were set non-interactively but always check on 1.0 profile. Fixed NRE
5130          in DefaultExt and only strip off first leading dot. Improve exception
5131         message when invalid Filter is set. Do not ignore InitialDirectory if
5132         it does no exist. Store specified Title, and if empty use default
5133         title (depending on type of dialog). Added an internal DialogTitle 
5134         property for retrieving dialog title. Fixed logic of displayed dir to
5135         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
5136         string as its buggy.
5137         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
5138         FileName is a zero-length string (it can never be null). Override 
5139         DialogTitle property to set default title of dialog box.
5140         * SaveFileDialog.cs: Override DialogTitle property to set default
5141         title of dialog box.
5143 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
5145         * FileDialog.cs: Modify default text of filename and filetype labels
5146         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
5147         after we've updated the SelectedIndex. Fixes part of bug #80887.
5148         * SaveFileDialog.cs: Set text of filetype label.
5150 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5152         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
5153         label field. Needed by latest Jackson's fixes for ListView.
5155 2007-02-16  Andreia Gaita  <avidigal@novell.com>
5157         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
5158         print preview images.
5160 2007-02-16  Jackson Harper  <jackson@ximian.com>
5162         * ListView.cs: Make AfterLabelEdit work correctly.
5163         * FileDialog.cs: After changing the name of the folder, we have to
5164         make sure that it is created, or that we pop up an error because
5165         it already exists.
5167 2007-02-16  Jackson Harper  <jackson@ximian.com>
5169         * X11Dnd.cs: Implement aliases on mime handlers, so things like
5170         System.String are mapped to text.
5171         - Handle dataobjects, getting all the possible formats out of them
5172         - We dont need the drag event args before we give feedback. This
5173         allows feedback cursors to be immediate before selections have
5174         been converted.
5176 2007-02-16  Jackson Harper  <jackson@ximian.com>
5178         * TextBoxBase.cs: Modified the method for inserting images to
5179         taking a line and position instead of tag and position.
5180         * RichTextBox.cs: Handle PngBlip data by inserting the png image
5181         into the RTF file.
5182         * TextControl.cs: Allow images to be inserted as the first tag of
5183         a line.
5184         - Fix some off by one issues when we assume the first tag is a
5185         text tag, not an image tag.
5187 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5189         * ListView.cs: Set focus to ListView when ItemControl gets a
5190         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
5191         Fixes part of #80467.
5193 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5195         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
5196           validate Text input (if null or empty string reset Value to default
5197           value). Fixes #80830.
5199 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5201         * ListView.cs: Set owner as null for columns and items when
5202         Dispose is invoked. Fixes #80607.
5204 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
5206         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
5207         showing DropDowns, don't show a Grip when doing Flow layout.
5208         [This fixes the toolbox in PDN 2.72.]
5209         * ToolStripItem.cs: Add Anchor property and some internal properties to
5210         reduces needed changes to FlowLayout.
5211         * ToolStripOverflow.cs: Remove unused variable.
5212         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
5213         use it in the layout calculations.
5215 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
5217         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
5218         reported in #79640.
5219         
5220         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
5221         size calculation.
5223 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
5225         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
5226         MeasureString format, it can make button very large in some cases, it is
5227         strange but is what win32 do.
5229 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
5231         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
5232         size calculation.
5234         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
5235         rendering, the value is based on MenuAccessKeysUnderlined.
5237 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
5239         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
5240         for most themes.
5241         
5242         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
5243         
5244         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
5245         and use MenuAccessKeysUnderlined instead.
5247 2007-02-13  Andreia Gaita  <avidigal@novell.com>
5249         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
5250         A selected control would not get a Focus call if:
5251                 - the default active control of the container is the same as
5252                   the one that was selected
5253                 - we are switching from one container to another
5254         Under these conditions, the container being selected already has
5255         an active_control, which is the same as the one being activated, 
5256         so set_ActiveControl would always return and not send the Focus
5257         call. Fix to check if the currently active control of the container
5258         is actually focused.
5260 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
5262         * StatusStrip.cs: Implement the spring layout.
5263         * ToolStripControlHost.cs: Make sure the hosted control's visibility
5264         always matches the host.
5265         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
5266         and TextAfterImage.
5268 2007-02-13  Andreia Gaita  <avidigal@novell.com>
5270         * Control.cs: Code reorganization only.
5271           - Reorganize the WndProc cases so that each case has it's own handling method, 
5272           to help with the no-line-numbering stack traces.
5273           - Formatting changes (it's vstudio's fault, really :p)
5275 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5277         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
5278           Thread.CurrentUICulture to match DateTimePicker's (and MS)
5279           behaviour.
5281 2007-02-12  Jackson Harper  <jackson@ximian.com>
5283         * RichTextBox.cs:
5284         * TextBox.cs: By default we have a non multiline document
5285         - use the multiline property instead of the internal variable
5286         * TextBoxBase.cs: Treat multiline and non multiline the same in
5287         most places.
5288         - Use the documents multiline flag instead of tracking it ourself
5289         * TextControl.cs: Attempt at getting multiline to match MS
5290         behavior.  Lines now track an offset, which is either their X or Y
5291         offset depending on whether or not we are in multiline mode.
5292         - Update all the methods to understand that lines have an X value.
5293         - Fix crash in Undo::Duplicate when empty lines are deleted.
5295 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
5297         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
5298         code moved to properties PreferredHeight and PreferredWidth. It solve the
5299         all problems when preferred sizes must be recalculated. Fixes #80801.
5301 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
5303         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
5304         font height when compatible_text_rendering is false. Partially fix #80801.
5306 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
5308         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
5310 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
5312         * Form.cs: Improved exception messages in ShowDialog.
5314 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
5316         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
5317         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
5318         if not set. Fixes bug #80764. Avoid accessing current_settings field
5319         directly.
5321 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
5323         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
5324         false.
5326         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
5327         public in 2.0 and for easy maintenance and dont break compatibility it is 
5328         internal in 1.1.
5329         
5330 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
5332         * ToolStripItem.cs: Implement using images from ImageList.
5334 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5336         * DateTimePicker.cs: Change default date-formatting culture from
5337           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
5338           seems to be the way MS does it.
5340 2007-02-08  Andreia Gaita  <avidigal@novell.com>
5342         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
5343         (the 6 was cut off on the right side)
5345 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
5347         * Form.cs: Tell MenuStrips to close when the form is clicked.
5348         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
5349         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
5350         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
5351         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
5352         support for Overflow, where items that do not fit are automatically
5353         reparented to a drop down menu.
5354         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
5355         Also: fixes bug #80747.
5357 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5359         * ComboBox.cs: Remove warning (unused code).
5360         * ScrollableControl.cs: Remove warning for 1.1 profile.
5362 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5364         * Form.cs: Remove a warning.
5366 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5368         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
5369           'g' specifier, not documented anywhere, but seems to always show up
5370           as a single space (might have something to do with the DateTime 'g'
5371           specifier, which is the era format, but since DateTimePicker can't
5372           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
5373           won't crash if the format has an unmatched quote. Now shows
5374           single-character formats correctly. Fixes #80744.
5376 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
5378         * StatusStrip.cs: Stretch property needs to call base.Stretch,
5379         not this.Stretch to fix stack overflow. [Fixes bug #80760]
5381 2007-02-07  Chris Toshok  <toshok@ximian.com>
5383         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
5384         background color.  it overwrites the background image we've
5385         already painted.  Fixes #80599.
5387 2007-02-07  Chris Toshok  <toshok@ximian.com>
5389         * DataGrid.cs: return immediately from Edit() when there are no
5390         columns.  Fixes #80662.
5392 2007-02-07  Chris Toshok  <toshok@ximian.com>
5394         * MessageBox.cs: fix #80625.  don't always show the Help button in
5395         2.0.  use the displayHelpButton parameter to determine if we
5396         should show it. Also, make the internal show_help field private.
5398 2007-02-07  Chris Toshok  <toshok@ximian.com>
5400         * Control.cs (SetVisibleCore): check in the proposed patch for
5401         80604, and set is_visible before calling CreateControl.
5403 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
5405         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
5406         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
5407         on it.
5409 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
5411         * MenuAPI.cs: hotkey_active internal field added, it is required because
5412         we need to know when hotkeys must be draw, before this change a keystate
5413         Navigating was used but we can have menu in navigating state without
5414         hotkeys. Fixes #80694.
5415         
5416         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
5418 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5420         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
5421           corresponding events and methods to be internal for 1.1 profile and
5422           public for 2.0 profile (required by SizeGrip).
5423         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
5424           implicit control list). Don't set the size nor the location of the
5425           SizeGrip anymore as it's not needed.
5426         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
5427           draw directly on the captured control (fixes #80656). Removed
5428           ShowGrip (it wasn't used anywhere), redraw (always true), added
5429           GetDefaultSize and GetDefaultRectangle to calculate defaults.
5430         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
5431           be called from SizeGrip.
5433 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5435         * Timer.cs: Throw ArgumentException if Interval <= 0.
5437 2007-02-05  Jackson Harper  <jackson@ximian.com>
5439         * TreeView.cs: We need to check scrollbar visibility when window
5440         visibility is updated, because non visible trees don't ever add
5441         scrollbars.
5442         * Cursor.cs: We want the override cursor to be reset to NULL when
5443         we set current cursor to the default cursor.
5445 2007-02-05  Jackson Harper  <jackson@ximian.com>
5447         * TextControl.cs: Don't have crlfs when we are non multiline.
5448         - Consolidate the line position.
5450 2007-02-05  Jackson Harper  <jackson@ximian.com>
5452         * X11Keyboard.cs: BACK+CTRL gets a special char code.
5454 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5456         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
5457           handling LeaveNotify->NotifyUngrab in order to send
5458           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
5459           after calling XUngrabPointer, so we call WindowUngrabbed directly
5460           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
5461         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
5462           MouseCaptureChanged correctly. Also create handles if changing
5463           Capture (matches MS behaviour).
5465 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5467         * SizeGrip.cs: Make the last change 2.0 only.
5469 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5471         * SizeGrip.cs: If resizing and the capture is lost, revert any size
5472           changes to initial size (fixes #80597).
5474 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5476         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
5478 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5480         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
5481           background) and only allow dragging if enabled. This way the
5482           sizegrip can be used to fill the open square that otherwise would
5483           have been shown in the bottom right corner of ScrollableControl
5484           when ScrollableControl is not suppose to support sizing.
5485         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
5486           sizegrip is shown and enabled, and hook up with necessary events.
5488 2007-02-01  Chris Toshok  <toshok@ximian.com>
5490         * DataGridTextBoxColumn.cs: clean up the
5491         GetFormattedString/GetColumnValueAtRow combination of functions.
5492         Also fix UpdateUI, and the initial state of
5493         IsInEditOrNavigateMode.
5495         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
5496         aren't supposed to scroll the textbox here, we're supposed to
5497         scroll the datagrid.
5499 2007-02-01  Chris Toshok  <toshok@ximian.com>
5501         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
5502         setting the position.
5504 2007-02-01  Chris Toshok  <toshok@ximian.com>
5506         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
5507         here, since the most recent focus fixes keep us from generating
5508         the Leave event when our textbox gets focus.
5509         (Edit): we should be passing null for the column style's
5510         instantText parameter.
5511         
5512 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
5514         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
5515         raised.  Fixes menu text/icons not showing up in PDN.
5517 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5519         * Control.cs: Remove code in constructor that makes every
5520         control with WS_CHILD set have initial location -1, -1.
5522 2007-01-31  Jackson Harper  <jackson@ximian.com>
5524         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
5525         XplatUIX11.
5526         * XplatUIX11.cs: Give teh keyboard to teh dnd.
5528 2007-01-31  Jackson Harper  <jackson@ximian.com>
5530         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
5531         - Remove some debug code.
5533 2007-01-31  Jackson Harper  <jackson@ximian.com>
5535         * XplatUIX11.cs: If you set the override cursor during a grab, it
5536         should actually override the grab cursor.  This comes into play
5537         when you are setting custom cursors in a DND feedback method.
5539 2007-01-31  Jackson Harper  <jackson@ximian.com>
5541         * X11Dnd.cs: Add support for handling the QueryContinue and
5542         GiveFeedback events.
5543         - Cancel drag and drop actions when the escape key is clicked.
5544         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
5545         can handle the ESCAPE key.
5546         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
5547         done when dnd events are continued after the button is released.
5548         - Add a new helper method so that dnd can translate key events.
5550 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
5552         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
5553         make it more obvious what is happening.
5555 2007-01-30  Jackson Harper  <jackson@ximian.com>
5557         * XplatUIX11.cs: Don't break when handling button release in drag
5558         and drop operations. We need that BUTTONUP message to get through
5559         so capture is released.
5560         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
5561         this is handled automatically when the mouse is down.
5563 2007-01-30  Jackson Harper  <jackson@ximian.com>
5565         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
5566         is closed, so we need to make sure that we aren't changing the
5567         dialog result when the OK (Open or Save) button has been clicked
5568         and we are closing the window ourselves.  Note we don't need to
5569         worry about the cache being written in this case, because it was
5570         already done in the previous FilOk call.
5572 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5573         
5574         * DateTimePicker.cs: Remove a warning.
5575         * ComboBox.cs: Remove a couple of warnings.
5577 2007-01-29  Chris Toshok  <toshok@ximian.com>
5579         * XplatUIX11.cs: don't crash, and remove the icon if the user has
5580         set one, if SetIcon is passed a null icon.
5582 2007-01-29  Andreia Gaita  <avidigal@novell.com>
5584         * TextBox.cs: Redraw when the password characters changes
5585         * TextControl.cs: Check if textbox has a password char and draw 
5586         a line of password chars instead of the text in the line. LineTag gets 
5587         an extra Draw() method which allows document.Draw to override the text 
5588         that will be drawn. Removes 1024 char limitation on length of passworded 
5589         lines.
5591 2007-01-29  Jackson Harper  <jackson@ximian.com>
5593         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
5594         single chars is not.
5596 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
5598         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
5599         one pixel.  Fix a StackOverflowException caused by an overload wrongly
5600         calling itself.
5602 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
5604         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
5605         also remove ProcessArrowKey and put the code inside ProcessKeys.
5607 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
5609         * PaddingConverter.cs: Added.
5611 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5612         
5613         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
5614         ShowPanels is false (fixes #80600). Only draw up to 127 characters
5615         of text (fixes #80601). For panels clip the text to draw to the
5616         panel (fixes #80603).
5618 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5620         * ComboBox.cs: Fixed implementation of ResetText.
5622 2007-01-25  Jackson Harper  <jackson@ximian.com>
5624         * TextControl.cs: For the last char of a line we need to use the
5625         line size, not that chars width, since it won't actually be
5626         computed since the right side of a char is based on the start of
5627         the left side of the next char, and the next char does not exist.
5629 2007-01-25  Chris Toshok  <toshok@ximian.com>
5631         * Splitter.cs: fix the new unit tests, and reindent some switch
5632         statements.
5634 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5636         * ComboBox.cs: Implemented 2.0 methods and events.
5637         * TextBoxBase.cs: Added OnTextUpdate, so that
5638         ComboBox.ComboTextBox can inform ComboBox of it.
5640 2007-01-25  Jackson Harper  <jackson@ximian.com>
5642         * TextControl.cs: Respect ShowSelection when deciding whether or
5643         not to display the caret, this allows comboboxes to have carets
5644         when the combotextbox does not have focus.
5646 2007-01-25  Jackson Harper  <jackson@ximian.com>
5648         * TextControl.cs: Add a Suspend/Resume for updating, basically the
5649         same as the Suspend/Resume for recalc, except this will do actual
5650         Invalidates.
5651         - New Undo manager, works much like the MS version.
5652         - Implemented Redo
5653         * TextBoxBase.cs: The Cut operation is undoable.
5655 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5656         
5657         * TextBoxBase.cs: Don't antialias text. Makes it look way better
5658         on Windows (no difference on Linux).    
5660 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5662         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
5663         we don't want to activate any windows. Fixes #79433.
5665 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
5667         - ButtonBase.cs: Fix capitalization of parameter: disposing.
5668         [Fixes bug #80609]
5670 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
5672         * FileDialog.cs:
5673         - Move to using System.ComponentModel.EventHandlerList
5674         - Replace Refresh with Invalidate
5675         - Clear the mime filecache on closing
5676         - Some other memory reducing work. After beeing closed FD now uses
5677           only about 300 KB for the fdo mime stuff plus the memory of the
5678           cached icons.
5679         * Mime.cs: Changed coding style and removed unnecessary commented
5680         code. Some more memory memory reducing work.
5682 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5684         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
5685         a few other missing 2.0 properties.
5686         * Theme.cs: Added DrawFlatStyleComboBox.
5687         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
5689 2007-01-24  Chris Toshok  <toshok@ximian.com>
5691         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
5692         wake_waiting flag, not just when there's data to be read.  if we
5693         don't, then future wakeup's won't reach us and we'll be doomed to
5694         wait for the entire 1 second timeout forever (unless there are X
5695         events to be had).
5697 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
5699         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
5700         until you pass Items.Count, not Items.Count - 1 like 1.1.
5702 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
5704         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
5706 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
5708         * ToolStripContainer.cs: The recent Dock fix exposed that I was
5709         adding the panels in the wrong order.
5711 2007-01-24  Jackson Harper  <jackson@ximian.com>
5713         * TextBoxBase.cs: When we move the caret we also need to move the
5714         selection, this fixes some random crashing after doing select
5715         text, unselect, delete a char, paste.
5717 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5719         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
5721 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
5723         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
5724         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
5725         * ToolBar.cs: Force redraw in BackgroundImageChanged.
5727 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
5729         * ToolBar.cs:
5730         - Implement support for vertical toolbars. Fixes #80539;
5731         - Call LayoutToolBar when resize, it fix some other problems in layout.
5732         - Rename requested_height to requested_size, as we can have width on it
5733         when toolbar is vertical.
5734         - Create a private property "Vertical" that uses Dock to verify when 
5735         toolbar is vertical or not.
5736         - Set ControlStyles when change Dock property.
5737         - Refactory in LayoutToolBar to have better variables names and to support
5738         vertical toolbars.
5739         - Fixes default value for ButtonSize when button count is equal zero, size
5740         must be (39, 36) test case writed.
5742 2007-01-23  Chris Toshok  <toshok@ximian.com>
5744         * Control.cs: fix the checks so that they work correctly for mdi
5745         parents/children.
5747 2007-01-23  Chris Toshok  <toshok@ximian.com>
5749         * Control.cs: ControlCollection seems to have super-secret
5750         abstraction breaking knowledge of Mdi containers.  allow MdiClient
5751         to add toplevel controls.
5753 2007-01-23  Chris Toshok  <toshok@ximian.com>
5755         * Control.cs: throw an ArgumentException if a toplevel control is
5756         added to our control collection from ControlCollection.Add, as
5757         well as from ControlCollection.IList.Add.  This fixes the
5758         ControlSetTopLevelTest.TestTopLevelAdd unit test.
5760         Also, in ControlCollection.IList.Add, don't through an
5761         ArgumentNullException, throw an ArgumentException, when value ==
5762         null.  This matches MS.
5764 2007-01-23  Chris Toshok  <toshok@ximian.com>
5766         * BindingSource.cs: initial, incomplete, implementation of
5767         BindingSource.
5769 2007-01-23  Jackson Harper  <jackson@ximian.com>
5771         * TextControl.cs:
5772         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
5773         that I can fix a broken unit test (TextBoxTest::ClearUndo)
5774         
5775 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
5777         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
5779 2007-01-23  Andreia Gaita  <avidigal@novell.com>
5781         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
5782         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
5783         IndexOfKey() for 2.0
5785 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5787         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
5788         to prevent it from changing z-order.
5789         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
5790         leave UI updates in MdiWindowManager.
5791         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
5792         1 sized (NC handling goes weird on Linux otherwise).
5793         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
5794         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
5795         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
5796         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
5797         and SetWindowState(s) to allow for changing the size of an activated child
5798         before activating it (reduces a lot of flicker).
5800 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
5802         * Form.cs: Changing FormBorderStyle has different semantics based
5803         on whether the Form is visible or not.  If not visible, don't change
5804         the Size.  But InvalidateNC needs to be called to force the window
5805         to pick up the changes and redraw itself.  [Fixes bug #80574]
5807 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
5809         [Moma work]
5810         * ContainerControl.cs: ProcessCmdKey.
5811         * ErrorProvider.cs: new constructor.
5812         * Form.cs: fix AutoValidateEvent compiler warning.
5813         * Label.cs: fix OnAutoSizeChanged compiler warning.
5814         * MenuStrip.cs: fix CanOverflow compiler warning.
5815         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
5816         * TextBox.cs: Dispose.
5817         * ToolStrip.cs: CanOverflow, re-enable double buffering.
5818         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
5819         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
5820         * ToolStripItem.cs: Overflow, RightToLeft properties.
5822 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5824         * Form.cs: Move the layout of the main form to MdiWindowManager.
5825         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
5826         do a layout of the main window to update MdiClient's client area to
5827         the right area. Fixes #80533. Remove the calculation of nc size, 
5828         it was just wrong and the correct one is the same as for 
5829         InternalWindowManager. 
5831 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
5833         * Control.cs: Setting Anchor or Dock needs to reset the other
5834         to its default.  [Fixes bug #80556]
5836 2007-01-20  Chris Toshok  <toshok@ximian.com>
5838         * CheckedListBox.cs: class status changes.
5840         * ScrollableControl.cs: same.
5842         * RichTextBox.cs: same.
5844         * ContainerControl.cs: same.
5846         * ListView.cs: same.
5848         * NotifyIcon.cs: same.
5850         * MenuStrip.cs: same.
5852         * RadioButton.cs: same.
5854         * CheckBox.cs: same.
5856         * PrintPreviewDialog.cs: same.
5858         * Form.cs: same.
5860 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
5862         * TreeNode.cs: Apply Alan's patch for Name property.
5864 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5865         
5866         * Form.cs: Implemented SizeGripStyle.
5867         * SizeGrip.cs: Check for minimum and maximum size for the
5868         control being resized and only resize if size has actually
5869         changed.
5871 2007-01-19  Chris Toshok  <toshok@ximian.com>
5873         * DataGridColumnStyle.cs: stop setting _readonly in the
5874         PropertyDescriptor setter.  fixes a unit test failure.
5876         also, rename ParentReadOnly to TableStyleReadOnly, and have it
5877         just consult our table style (if we have one).  We don't need to
5878         consult the datagrid readonly attribute because that's passed in
5879         as the _ro arg to Edit.  this simplifies things a little.
5880         
5881         * DataGrid.cs: use CurrentColumn instead of
5882         current_cell.ColumnNumber just to simplify some of the code.
5884         switch the order of some things in the CurrentCell setter to keep
5885         the previous cell from getting a textbox again -
5886         EnsureCellVisibility causes scrolling to happen, which calls Edit.
5887         So we need to set the new cell before calling it.
5888         
5889         call Edit in OnEnter, as does Microsoft.
5890         
5891         also, make sure the current table style isn't the one we create
5892         initially when checking to see if it's different than the one
5893         we're setting it to in BindColumns (this fixes #80421).
5895         * GridTableStylesCollection.cs: table styles can have "" for a
5896         mapping name.  part of the fix for #80421.
5898         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
5899         Edit significantly.
5901 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
5903         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
5904         and less GDI object leaky-er.
5906 2007-01-18  Andreia Gaita  <avidigal@novell.com>
5908         * LinkLabel.cs: Add opaque control style
5910 2007-01-18  Jackson Harper  <jackson@ximian.com>
5912         * TextControl.cs: Calculate width properly.
5913         - Don't store the tag's X offset, this can be figured out very
5914         easily.
5915         - When getting the caret tag make sure to get the last empty tag.
5917 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
5919         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
5920         [Fixes bug #79959]
5922         * Control.cs: Color.Empty shouldn't count for previous transparent
5923         redraw changes.
5925 2007-01-18  Jackson Harper  <jackson@ximian.com>
5927         * TextBox.cs:
5928         * RichTextBox.cs:
5929         * TextControl.cs: Starting to merge in some pieces of my older
5930         undo work.  Basically just some slight cleanup of the undo API.
5932 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5934         * TrackBar.cs: Fix signature of RightToLeftLayout.
5935         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
5936         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
5937         * Application.cs: Implemented UseWaitCursor.
5939 2007-01-18  Jackson Harper  <jackson@ximian.com>
5941         * TextControl.cs: We can't skip tags if any part of the tag is
5942         visible.
5944 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
5946         * ContainerControl.cs: Override OnLayout.
5948 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
5950         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
5952         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
5953         everything else.
5955 2007-01-18  Chris Toshok  <toshok@ximian.com>
5957         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
5958         (leftover from the container_selected days, I'd wager).  fixes bug
5959         #80546.
5961 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
5963         * Control.cs: Apply patch from George to fix the new testcase on
5964         bug #80451.  We can't just check for Color.Transparent, we need 
5965         to check if the back color's alpha channel is < 255.
5967 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
5969         * Form.cs: Move setting show_icon = true to before the constructor
5970         so that the base constructor has that information when it calculates
5971         the form's size.  Was causing forms to be (6, 6) bigger than they
5972         were supposed to be.  Thanks for catching this Rolf!
5974 2007-01-18  Jackson Harper  <jackson@ximian.com>
5976         * TextControl.cs: When replacing a selection we need to invalidate
5977         from the initial selection start, because selection start is moved
5978         to the end of the replacement.
5980 2007-01-18  Andreia Gaita  <avidigal@novell.com>
5982         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
5984 2007-01-18  Chris Toshok  <toshok@ximian.com>
5986         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
5987         I just added.
5989 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
5991         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
5992         layout methods and properties from ToolBarButton must be available
5993         into ToolBarButtonInfo.
5995 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
5997         * Control.cs: If the control has a transparent background, we
5998         need to refresh it when it moves and when it's parent's background
5999         image changes.  [Fixes bug #80451]
6001 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
6003         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
6005 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
6007         * XplatUIWin32.cs: Implement proper double buffering for Windows.
6008         [Fixes bug #80447, and probably speeds up things as well]
6010 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6012         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
6013         * XplatUIWin32.cs: We need to recalculate NC size after changing 
6014         window style to toolwindow (otherwise the client rectangle will be
6015         3 pixels to small for some reason).
6016         * MdiWindowManager.cs: Revert NC size calculations to match how
6017         they are calculated only based on window styles (to match
6018         Win32AdjustWindowRectEx, since otherwise when setting size or 
6019         location, Control will call Win32AdjustWindowRectEx to update client 
6020         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
6021         calculate a different value of client size causing another paint 
6022         (and flickering))
6023         * InternalWindowManager.cs: When moving or resizing a window only
6024         update size or location if they actually changed.
6025         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
6026         (seems to match Windows behaviour better). Cleaned up 
6027         ManagedWindowDecorations to draw what's needed and nothing else
6028         (was drawing borders and lines where they shouldn't be)
6029         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
6030         (style = 0xFFFF) and takes into account caption height when 
6031         calculating window rectangle.   
6033 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
6035         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
6036         can be added to toolbar multiple times, we need to maintain a list of 
6037         button information for each positions.
6039 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
6041         * ToolBar.cs: Some small stetic changes.
6043 2007-01-16  Jackson Harper  <jackson@ximian.com>
6045         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
6046         that allow us to have nested recalc = false blocks.
6047         - Add paste support for images in the RichTextBox
6048         * RichTextBox.cs: flush the text after the color is changed, so
6049         the change takes effect.
6050         - Use SuspendRecalc
6051         - Some extra debugging info
6052         * TextControl.cs: Tags no longer track their length, it is just
6053         computed from the next tags length, this makes things a little
6054         simpler and reduces places that we have to track length changes.
6055         - Refactored the linetag class a little so we could make it
6056         a base class for different kinds of tags
6057         - Created a image tag, a tag that can have a single image inserted
6058         into it
6059         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
6060         that we can call suspend multiple times.
6061         - Add some debugging methods
6063 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6065         * MdiClient.cs: Add ActivatePreviousChild for 
6066         mdi child window navigation.
6067         * Form.cs: Use MdiClient.ActivateNextChild/
6068         ActivatePreviousChild instead of Form.SelectNextControl
6069         to select the next/previous child since 
6070         SelectNextControl doesn't do it in the same order
6071         as mdi children should do it.
6073 2007-01-16  Chris Toshok  <toshok@ximian.com>
6075         * Control.cs: remove container_selected field.
6077 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6079         * MdiClient.cs: Update main form's ActiveChild when
6080         updating keyboard focus for the mdi child.
6082 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
6084         * Control.cs: PreferredSize fix.
6086         * Form.cs: Add several 2.0 events, properties, and methods.
6088 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
6090         * Form.cs: Provide meaningful message when MdiParent is assigned a
6091         Form that is not an MdiContainer.
6093 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6095         * MdiClient.cs: Update main form's ActiveChild when
6096         activating a mdi child.
6098 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6100         * MdiWindowManager.cs: Fix NRE when merging menus and main form
6101         doesn't have a menu.
6103         * Form.cs: Request NCRecalc after creating a mdi child window.
6104         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
6105         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
6106         
6107         * MdiClient.cs: Add new method SendFocusToActiveChild that either
6108         sends keyboard focus to the active child, or to the MdiClient
6109         if there are no child forms.
6110         
6111 2007-01-15  Chris Toshok  <toshok@ximian.com>
6113         * ListView.cs: drop the *Internal overrides, just do our work in
6114         ItemControl's WndProc instead.
6116         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
6117         of the various controls, and forward the events properly (in the
6118         same manner as MS) from the textbox to the UpDown.  Also the
6119         ActiveControl of the UpDownBase gets set properly now.  Finally,
6120         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
6122         * NumericUpDown.cs: set Text in the ctor.
6124         * DomainUpDown.cs: call UpdateEditText in the ctor.
6125         
6126         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
6127         so even a Selectable = false textbox can be focused if you click
6128         in it.  Go figure.
6130         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
6131         just add their handling in their respective WndProc's.  Also add
6132         an explicit FocusInternal method that doesn't consult CanFocus
6133         before calling Select(this).
6135         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
6136         do our work in WndProc instead.
6138         * TabControl.cs: same.
6140         * ComboBox.cs: same.
6142 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
6144         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
6145         Fixes #80006.
6147 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6149         * ListViewItem.cs:
6150         * ThemeWin32Classic.cs: Don't draw the item text outside
6151         item bounds in Details view, as well as use trimming.
6152         Fixes bug #80376.
6154 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
6156         * Form.cs: Implement Form.ShowIcon.
6157         
6158         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
6159         null, which when combined with the DlgModalFrame window style removes
6160         the icon from the title bar.
6162 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
6164         * Control.cs: Call OnMouseClick after OnClick. (2.0)
6166 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
6168         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
6169         menu when mdi child windows theres a menu, uses insert to get icon
6170         at first position. Partially fix #80006.
6172 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
6174         * Clipboard.cs: Implement 2.0 methods.
6176 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
6178         * Menu.cs: Implement Insert method of MenuItemCollection class
6179         to fix MenuMerge.
6181 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6183         * ListView.cs: Implement 2.0 FindItemWithText method.
6185 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
6187         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
6188         to calculate menu bar size. Fixes #80290.
6190 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
6192         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
6194 2007-01-11  Chris Toshok  <toshok@ximian.com>
6196         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
6197         initial form.
6199 2007-01-11  Chris Toshok  <toshok@ximian.com>
6201         * LinkLabel.cs: make sure to call base.Select in our Select method
6202         if it turns out we're going to be selected (i.e. if we have a link
6203         that is going to receive focus).  That way our container's
6204         ActiveControl is updated properly.
6206 2007-01-11  Chris Toshok  <toshok@ximian.com>
6208         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
6209         they have 1 or more links.  this fixes the crash gert reported.
6211 2007-01-11  Andreia Gaita  <avidigal@novell.com>
6213         * ContainerControl.cs: Remove ContainerSelected flag, not needed
6214         anymore.
6216         * Control.cs (Controls.Add): Check if control to be added to the collection
6217         is a top level control, and throw an ArgumentException if it is.
6218         Remove ContainerSelectedFlag, not needed anymore.
6220         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
6221         top most control doesn't activate the form. This fixes a problem in the
6222         MessageBox, where the default button wouldn't get focus because the form
6223         was activated before being Loaded - when the Owner is set, SetTopMost is
6224         called, and it would activate it.
6226 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
6228         * Button.cs: When clicked and setting the parent form's DialogResult,
6229         use FindForm instead of Parent, since parent could be a container
6230         control and not the Form.  Fixes bug #80495.
6232 2007-01-10  Chris Toshok  <toshok@ximian.com>
6234         * Form.cs: move the call to SendControlFocus into the same
6235         is_loaded check.
6237 2007-01-10  Chris Toshok  <toshok@ximian.com>
6239         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
6240         It breaks in the face of the new ActiveControl stuff, and should
6241         be unnecessary.
6243         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
6244         activecontrol's focus if it's not already set, after we set
6245         ActiveControl, but before we call OnActivated.  Re-fixes #79667
6246         after the previous focus/active control fixes regressed it.
6248         * Control.cs: reindent some code.
6249         
6250 2007-01-10  Chris Toshok  <toshok@ximian.com>
6252         * Splitter.cs: clearing some outstanding changes from my tree.
6253         Replace all accesses (not writes) to the internal dock_style field
6254         with the Dock property.
6256 2007-01-10  Chris Toshok  <toshok@ximian.com>
6258         * Control.cs: make FireEnter, FireLeave, FireValidating, and
6259         FireValidated virtual.
6261         * Form.cs: override and don't chain up calls to FireEnter and
6262         FireLeave.
6264 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6266         * ListView.cs: Add more text padding space when using
6267         auto resize for columns (the previous value didn't work fine).
6269         * ThemeWin32Classic.cs: Update text position inside columns,
6270         to match the appeareance of .Net.
6272         * ColumnHeader.cs: When using auto resize, only the Width should
6273         depend on the sub items, not the Height. Also, set width after
6274         auto resizing (the value of Width should never remain as -1 or -2).
6276 2007-01-10  Chris Toshok  <toshok@ximian.com>
6278         * Application.cs: fix compilation errors when debug is enabled.
6280 2007-01-10  Chris Toshok  <toshok@ximian.com>
6282         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
6283         add some nice ascii art pictures and explanation of the process).
6284         (GetMostDeeplyNestedActiveControl): new utility function we need
6285         because our ActiveControl can refer to a child container with its
6286         own ActiveControl.
6288         * Form.cs (OnActivated): remove the call to SelectActiveControl
6289         from here, since you can override this method and not chain up,
6290         and winforms still sets the active control.
6291         (OnCreateControl): also remove the unnecessary SelectActiveControl
6292         call from here.
6293         (WndProc): it's actually called from the WM_ACTIVATE block, just
6294         before calling OnActivated.
6296         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
6297         inside the else.  the ActiveControl setter will end up setting
6298         focus on @control.  This keeps us from setting it again (and
6299         generating an extra LostFocus/GotFocus pair).
6300         (Select (bool, bool)): reindent.
6302 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
6304         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
6305         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
6306         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
6307         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
6308         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
6309         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
6310         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
6311         ToolStripTextBox.cs: Another wave of corcompare work.
6313 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6315         * ColumnHeader.cs: Implement 2.0 AutoResize method using
6316         the Width property.
6318         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
6319         methods by callling Column.AutoResize method on columns.
6321 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
6323         * Control.cs: Provide proper implementations of PreferredSize
6324         and GetPreferredSize (2.0).
6326 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
6328         * Form.cs: Remove one character (!) to make my previous OnClosing
6329         stuff work for modal windows like MessageBox.
6331 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6333         * ListView.cs:
6334         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
6335         ListView.Columns to get the last displayed column. Fixes #80452.
6337 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
6339         * Label.cs, LinkLabel.cs: Source code identation fixes.
6341 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
6343         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
6344         we dont need to invalidate only borders because when we invalidate four
6345         border lines the invalidate's generates a complete redraw of button, 
6346         because it now invalidate a complete rect some other redraws operations
6347         are fixed. Fixes #80196.
6348         
6349         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
6350         Remove ToolBarInvalidateEntireButton as it is not used.
6352 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
6353         
6354         * Form.cs: Make sure that both OnClosing and OnFormClosing are
6355         called for 2.0 profile.
6356         * CloseReason.cs: Make class internal for 1.1.
6358 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
6360         * ToolStripManager.cs: Implement FindToolStrip functionality.
6361         * ToolStrip.cs: Register and unregister with ToolStripManager.
6363 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
6365         * Control.cs: This was messy.  2.0 moves much of ControlCollection
6366         to ArrangedElementCollection.  Implemented this with as few #if's as 
6367         possible (which is still too many).
6369 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
6371         * Control.cs: Implement SizeFromClientSize() [2.0].
6373 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
6375         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
6376         use Theme.BorderSize to calculate area instead of static value 1, 
6377         by the way use new BorderStaticSize instead     Border3DSize when 
6378         border_static is true. Fixes #79537.
6379         
6380         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
6381         
6382         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
6383         it is not needed.
6385 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
6387         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
6389 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
6391         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
6392         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
6393         
6394         * Hwnd.cs: 
6395         - border_static field added, it will used to define when a control 
6396         theres 3D border but it must be static (thin).
6397         - In GetWindowRectangle use Theme.BorderSize to calculate area 
6398         instead of static value 1, by the way use new BorderStaticSize instead
6399         Border3DSize when border_static is true.
6401         * XplatUIX11.cs, XplatUIOSX.cs: 
6402         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
6403         
6404         * Theme.cs: BorderStaticSize field added.
6406 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
6408         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
6410 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
6412         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
6413         mimic same behavior than win32 that set border only in CreateParams,
6414         it fix problems under CreateParams overrides. Fix #79442 and partial
6415         fix #79537.
6416         
6417         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
6418         of thi control you must call recreate handle. 
6419         
6420         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
6421         need to do anything as RecreateHangle will take care about borders.
6423 2007-01-05  Mike Kestner  <mkestner@novell.com>
6425         * ListView.cs: hack to eliminate Lost/Got focus notifications on
6426         cycles between the ItemControl and parent.  Fixes #80388.
6428 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
6430         * Control.cs: Lazy init layout engine. Do not directly use 
6431         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
6433 2007-01-05  Chris Toshok  <toshok@ximian.com>
6435         * DataGrid.cs: don't forceably rebind columns in SetDataSource
6436         unless our list manager has changed (i.e. unless we have reason to
6437         believe our columns have changed).  Fixes #80422.
6438         
6439         also, disable the call do BindColumns in
6440         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
6441         1.1 the event isn't raised in response to a column addition on a
6442         table.)
6444 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
6446         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
6447         that inheritors can not call it if they choose.  Fixes bug #80456.
6449 2007-01-05  Andreia Gaita  <avidigal@novell.com>
6451         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
6452         doesn't blow up with a null exception on marshalling.
6453         
6454 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
6456         * Control.cs: Implement several 2.0 protected properties and methods.
6457         Ensure that all necessary events are being called when properties
6458         are set.
6460 2007-01-05  Mike Kestner  <mkestner@novell.com>
6462         * ListView.cs: implement PgUp/PgDn for Details view.  Also
6463         fixes First/LastVisibleIndex to use the item_control.ClientRect 
6464         instead of the parent control.  Fixes #80378.
6466 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
6468         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
6469           determine whether to use yard-pound or not (bug #78399).
6471 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
6473         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
6474         problems. So it is time to bring back the old popupbutton colors.
6476 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6478         * ColumnHeader.cs:
6479         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
6480         property by using the internal information of the
6481         columns order in ListView.
6483 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
6485         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
6486         Add 2.0 Tag properties.
6488         * LinkArea.cs: Add 2.0 ToString method.
6490 2007-01-03  Chris Toshok  <toshok@ximian.com>
6492         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
6493         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
6494         when we're editing, which fixes #80047.
6496 2007-01-03  Chris Toshok  <toshok@ximian.com>
6498         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
6499         #80404.
6501 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
6503         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
6504         property and implementation.
6506         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
6507         for MdiWindowListItem property.
6509         * ToolStripDropDown.cs: Don't consider hidden menu items while
6510         laying out the menu.
6512 2007-01-03  Andreia Gaita  <avidigal@novell.com>
6514         * SendKeys.cs: window handle is not needed in win32, so just
6515         get the active window for X after parsing keys and don't use
6516         it when building the message; it is passed by parameter to the 
6517         Xplat method and used there to build the message instead. Also,
6518         wait for events to be processed on SendWait, as opposed to Send,
6519         which doesn't wait :) Playing with threads and Send() completely 
6520         hangs on ms.net, only SendWait() works.
6521         
6522         XplatUIX11.cs
6523         X11Display.cs: Check for valid window handle.
6525 2007-01-03  Jackson Harper  <jackson@ximian.com>
6527         * TextControl.cs: Need to prevent wrap calculations when replacing
6528         text (this was there before i removed it accidently).
6529         - Don't update the cursor during the positioning, just set it to
6530         selection_start at the end of the operaion.
6532 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6534         * Control.cs:
6535         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
6536         
6537 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6539         * MonthCalendar.cs: Added Click and DoubleClick events again,
6540         but this time they only hide Control's Click and DoubleClick.
6541         
6542 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
6544         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
6545         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
6547 2007-01-02  Jackson Harper  <jackson@ximian.com>
6549         * TextBoxBase.cs: We move the caret with the split now, so we
6550         don't need to explicitly move the caret after splitting.  This
6551         fixes the caret bumping down an extra line on Enter.
6553 2007-01-02  Miguel de Icaza  <miguel@novell.com>
6555         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
6556         2.72). 
6558         * ScrollableControl.cs: Add Scroll event.
6560 2007-01-02  Mike Kestner  <mkestner@novell.com>
6562         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
6563         to fix all hdr height padding codepaths.  Fixes #80207.
6565 2007-01-02  Chris Toshok  <toshok@ximian.com>
6567         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
6568         setting it to the Control defaults anyway, and it being after the
6569         Dock set was screwing up layout.
6570         (set_Dock): don't short circuit out of setting base.Dock.  Also,
6571         no need to call UpdateStatusBar here, as it'll be re-layed out if
6572         it needs to be.
6574 2007-01-02  Mike Kestner  <mkestner@novell.com>
6576         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
6577         to header height for width == -1. Fixes the rest of #80207.
6579 2007-01-02  Mike Kestner  <mkestner@novell.com>
6581         * ListView.cs: rework the mouse event forwarding everaldo added
6582         to translate the coordinates to the parent control not
6583         raise the parent events until after we've done our work. Hover
6584         needs more work, in the case where HoverSelection is on, because
6585         the item control receives more than one MouseHover per Enter
6586         event, so we need to ensure only the "first" hover gets forwarded.
6587         Opening a minor bug for that.
6589 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
6591         * CheckedListBox.cs: Fixed SelectionMode to match MS.
6592         * ListControl.cs: Implemented AllowSelection property. Removed extra
6593         tabs.
6594         * ListBox.cs: Implemented AllowSelection property.
6596 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
6598         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
6599         SelectedItem, it prevent for errors when you must disable item
6600         before perform click. Fixes #80409.
6602 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
6604         * MenuAPI.cs: Prevent second level and beyond submenus to close
6605         until first level when move out side of popup.
6606         
6607 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
6609         * MenuAPI.cs:
6610         - Down submenu positin in three pixels.
6611         - Closes sub menu when mouse leaves from menu. Fixes #80402.
6613 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
6615         * ThemeWin32Classic.cs:
6616         - Fix popup menu size adding one pixel on the top.
6617         - Down menu item border from two to one to mimic Win32.
6618         - Some source identation fixes. 
6620 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
6622         * ThemeWin32Classic.cs: Use float numbers to calculate size and
6623         position of menu arrows, it fix wrong arrow size.
6625 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
6627         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
6628         instead of line, it simplify draw operation and fix it using 3D
6629         borders to mimic Win32.
6631 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
6633         * StatusStrip.cs: Add implementation of the sizing grip.
6635         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
6636         StatusStrip rendering.
6638 2006-12-31  Chris Toshok  <toshok@ximian.com>
6640         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
6641         override the layout style (anchor/dock) of the control.  assign to
6642         Dock instead.  Fixes bug #80416.
6644         * ToolStrip.cs: same.
6646 2006-12-31  Andreia Gaita  <avidigal@novell.com>
6648         * ContainerControl.cs: Use ContainerSelected flag to check if 
6649         a Container is directly selected, or if Select is called on a 
6650         non-container. If a container is directly selected, focus events 
6651         should not be raised.
6652         Apply #80411 patch to throw exception on set_ActiveControl if 
6653         control is the same as the current one.
6654         
6655         * Control.cs: Use ContainerSelected flag (see above).
6656         Add invalidation check to raise event but not invalidate if 
6657         dimensions are 0.       
6658         Apply #80411 patch.
6659         
6661 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
6663         * MenuAPI.cs: After click, dont close popup menu when menu is
6664         ContextMenu. Fixes #80399.
6666 2006-12-30  Chris Toshok  <toshok@ximian.com>
6668         * ContainerControl.cs: make sure we throw the exception if the
6669         container control doesn't contain the control we're setting
6670         ActiveControl to.
6672 2006-12-30  Chris Toshok  <toshok@ximian.com>
6674         * Control.cs (SetTopLevel): fix the exception raised by
6675         SetTopLevel for child controls.
6676         (set_Anchor): call UpdateDistances when setting the anchor type.
6677         This fixes bug #80336.
6679 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
6681         * Theme.cs: For now, revert back to 8pt font.
6683 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
6685         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
6686         Fixes #80395.
6688 2006-12-29  Chris Toshok  <toshok@ximian.com>
6690         * Control.cs: reorder the code in OnResize to give the same event
6691         ordering as MS.
6693 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6695         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
6696         TileHorizontally and TileVertically.
6697         
6698 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
6700         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
6701         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
6702         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
6703         Corrected copyright and email adress.
6705 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
6707         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
6708         of Exception in FullPath property if no TreeView is associated with
6709         the TreeNode.
6711 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
6713         * Theme.cs: Marked default_font as private, and initialize it in ctor
6714         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
6715         on 2.0 profile.
6716         * ThemeGtk.cs: Removed default_font intialization.
6717         * ThemeWin32Classic.cs: Removed default_font initialization.
6719 2006-12-28  Chris Toshok  <toshok@ximian.com>
6721         * Control.cs: fix a couple of place where we were creating handles
6722         more aggressively than we should be.  Fixes ControlRefresh unit
6723         tests.
6725 2006-12-28  Chris Toshok  <toshok@ximian.com>
6727         * Control.cs: contrary to what the comment said, Control.Dock does
6728         not supercede Control.Anchor - the last one you assign to decides
6729         the layout behavior.  so we need to keep track of which was the
6730         last set.  Also, fix some of the affected property arguments in
6731         PerformLayout calls, and remove an redundant parent.PerformLayout
6732         call in OnResized.
6734         Add a VisibleInternal property, which returns is_visible.  We
6735         can/should get rid of all the usage of this field elsewhere.
6737 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6738         
6739         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
6740         control style, not DoubleBuffer. Added UseDoubleBuffering property
6741         that indicates whether doublebuffering is enabled and supported.
6742         (comment from and code based on Gert Driesen's patch in #80324).
6743         Fixes #80324.
6745 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6746         
6747         * Control.cs: Fixed a NRE.
6749 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6751         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
6752         for 2.0.
6754 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6756         * Control.cs: Rewrote double buffering, now a seperate
6757         class handles all the buffering, no Graphics is disposed of
6758         until the painting is finished (earlier implementation 
6759         would crash if the control was resized in the OnPaint, 
6760         since it would cause the double buffer to be recreated
6761         and the old one disposed), a separate Graphics is 
6762         created for every paint (MS behaviour and anyways the state
6763         of the Graphics would have to be saved and restored otherwise)
6764         
6765         * XplatUIDriver.cs: 
6766         * XplatUIX11.cs:
6767         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
6768         so that we can get the graphics for the back buffer without
6769         having to create a new one and remove the offscreen_dc parameter
6770         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
6771         
6772 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6774         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
6775         Also make virtual all the key-related methods.
6777         * ListViewItem.cs: Make virtual the key related methods for
6778         ListViewSubItemCollection.
6780 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6782         * ListView.cs:
6783         * ListViewItem.cs:
6784         * ThemeWin32Classic.cs:
6785         * Theme.cs: Initial support for Tile view in ListView,
6786         as well as the implementation of the required bits for it (Item
6787         and Subitem).
6789 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
6791         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
6792         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
6793         Provide useful exception messages.
6795 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6797         * TrackBar.cs: Remove a warning.
6798         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
6799         when used by DateTimePicker, fixes #80287. This also requires that 
6800         MonthCalendar implements it's own drawing for the yearly updown control,
6801         otherwise the Capture tracking would be too complicated. Removed the Click 
6802         and DoubleClick events (according to comments they were hiding the base class
6803         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
6804         raise these events, not that they cannot be raised. It is possible to raise 
6805         them by calling OnClick and OnDoubleClick). Added two internal fields in 
6806         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
6807         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
6808         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
6809         event, no longer needed.
6810         
6811 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
6813         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
6814         true if new value differs from current value.
6816 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
6818         * Control.cs: ControlCollection.Count must be public. Fixed build of
6819         unit tests.
6821 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
6823         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
6825 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
6827         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
6829 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
6831         * Control.cs: Invalidates control including when Width and Height is 
6832         equal zero or is not visible, only Paint event must be care about 
6833         this. Fixes #79913.
6835 2006-12-26  Chris Toshok  <toshok@ximian.com>
6837         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
6838         more corcompare work.
6840         * DataGridView.cs: fix compiler warning.
6842         * ColumnHeader.cs: some corcompare work, and also take the
6843         opportunity to make the internal fields private.
6845         * ListView.cs: fix the fallout from the above field change.
6847 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
6849         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
6850         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
6851         ToolStripTextBox.cs: Fixes to events and corcompare.
6853 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
6855         * ListView.cs: Call owner.OnMousexx event to propagate events from
6856         item to ListView. Fixes #80367.
6858 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
6860         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
6861         if value is less than one. ItemHeight should not be set to a value
6862         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
6863         Removed extra tabs.
6865 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
6867         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
6868         * ToolStripStatusLabel.cs: Add Spring for Moma.
6870 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
6872         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
6873         Fixed code formatting. Removed debug code.
6874         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
6876 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
6878         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
6879         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
6880         ArgumentOutOfRangeException if ColumnCount is negative. In 
6881         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
6882         less than 4 or higher than 32768.
6883         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
6884         Fixed FormatProvider to return CurrentCulture unless explicitly set.
6885         Fixed IsFormatProviderDefault to return true if FormatProvider has
6886         not been explicitly set.
6888 2006-12-25  Chris Toshok  <toshok@ximian.com>
6890         * Application.cs: add a couple of 2.0 events.
6892 2006-12-25  Chris Toshok  <toshok@ximian.com>
6894         * Control.cs: fix compiler warning.
6896         * AxHost.cs: corcompare fixes.
6898         * ApplicationContext.cs: corcompare fixes.
6900 2006-12-25  Chris Toshok  <toshok@ximian.com>
6902         * Control.cs: only update dist_right/dist_bottom if the
6903         width/height is > 0.  this fixes anchored controls being resized
6904         smaller until they disappear and then resized larger again.
6906 2006-12-25  Chris Toshok  <toshok@ximian.com>
6908         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
6909         since they're nothing more than X/Left and Y/Top, respectively.
6911         Also, move back to a per-control Bitmap/Graphics for
6912         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
6913         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
6914         Height.
6916 2006-12-25  Miguel de Icaza  <miguel@novell.com>
6918         * MessageBox.cs: Implemented overload that takes a new "bool
6919         displayHelpButton" by adding a new internal field "show_help".
6920         When clicked this will raise the HelpRequested on the owner or the
6921         main form. 
6923         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
6924         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
6926         * ListView.cs: Add support ColumnWidthChanged and
6927         ColumnWidthChanging. 
6929         Add support for ColumnReordered event.
6930         (ReorderColumn): Add NET_2_0 specific support for cancelling the
6931         reorder.
6933         Very nice codebase!
6935         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
6937         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
6939 2006-12-24  Chris Toshok  <toshok@ximian.com>
6941         * GridTablesFactory.cs: 2.0 corcompare work.
6943         * ToolStripContainer.cs: add "override" to
6944         ContextMenuStripChanged, and remove the local event object.
6946         * ToolStripDropDown.cs: same with a couple properties.
6948         * ToolStripPanel.cs: same with AutoSizeChanged event.
6950         * TextBoxBase.cs: add "override" to AutoSizeChanged.
6952         * Form.cs: add the remaining 2.0 events, and do some corcompare
6953         attribute work.
6955         * DateTimePicker.cs: add "new" to padding.
6957         * ButtonBase.cs: use Control's use_compatible_text_rendering.
6959         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
6961         * DataGridView.cs: PaddingChanged is overridden.
6963 2006-12-24  Chris Toshok  <toshok@ximian.com>
6965         * Control.cs: corecompare work here too.
6967         * DataGridViewElement.cs, DataGridView.cs,
6968         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
6969         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
6970         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
6971         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
6972         work.
6974 2006-12-24  Miguel de Icaza  <miguel@novell.com>
6976         * Control.cs: Switched the error message on the console for a
6977         todo.  A review of the code will have to cope with this anyways
6978         (since its a large feature, it is in our radar) and it was
6979         producing too much output when running PDN.
6981         * ToolStripComboBox.cs: Set the text when the SelectedIndex
6982         changes.  Applications depend on this (PDN 2.72)
6984 2006-12-23  Chris Toshok  <toshok@ximian.com>
6986         * TableLayoutSettings.cs: finish up the corcompare work for this
6987         class.
6989 2006-12-23  Chris Toshok  <toshok@ximian.com>
6991         * Control.cs: make SetImplicitBounds internal, do some futzing
6992         with LayoutEngine so that it's available in 1.1, and remove the
6993         entire duplicated code mess from PerformLayout.  Use
6994         System.Windows.Forms.Layout.DefaultLayout instead.
6996         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
6998 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
7000         * Form.cs: Add MainMenuStrip property.
7002 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
7004         * Control.cs: Add ContextMenuStrip property and implementation.
7005         Fix ContextMenu implementation to show menu centered on control when
7006         activated using the keyboard instead of showing at screen (0,0).
7008         * ToolStripDropDown.cs: Fix needed overload of Show ().
7010 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
7012         * Menu.cs: Name property added for 2.0 profile.
7013         
7014 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
7016         * Menu.cs: Update information about FindMenuItem, method to be
7017         implemented soon.
7019 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
7021         * MenuAPI.cs: When deselect items deselect also selected subitems.
7022         
7023 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
7025         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
7026         FindSubItemByCoord to found itens that is not active, also an
7027         cheking added to FindSubItemByCoord to search for items only 
7028         in visible popup windows. Fixes #80274.
7030 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
7032         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
7033         internal property, it be care about change ExStyle. 
7035 2006-12-22  Andreia Gaita  <avidigal@novell.com>
7037         * ContainerControl.cs: set activeControl for parent forms up the 
7038         tree when the new activecontrol is a container.
7039         When validating the active control, if it is a container, also
7040         raise up the validation for it's active control. Fixes #80280
7041         
7042         * Control.cs: Add internal property flag and check to prevent
7043         Focus events from getting raised when Select() is called for
7044         a ContainerControl. There are still too many focus events being
7045         raised at the moment though.
7046         Cleaned up the code a bit.
7048 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7050         * Control.cs: Added all missing 2.0 events.and
7051         fixed a couple of corcompare issues.
7052         * TrackBar.cs: Implemented missing 2.0 bits.
7053         * MonthCalendar.cs, 
7054         * DateTimePicker.cs, 
7055         * MdiClient.cs: Fixed some corcompare issues.
7057 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
7059         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
7060         SplitterPanel.cs: corecompare work.
7062 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
7064         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
7065         Clean up warnings for BackgroundImageChanged and PaddingChanged
7066         events now that they are implemented in Control.cs.
7068 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
7070         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
7071         
7072         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
7073         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
7074         of TableLayoutPanel and supporting cast.
7076 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7078         * XplatUIWin32.cs: 
7079         - GrabWindow now confines the mouse pointer to the confine window.
7080         - Added Win32ClipCursor and Win32GetClipCursor.
7082         * Control.cs: 
7083         - Added CaptureWithConfine to be able to capture and confine 
7084         mouse pointer.
7085         
7086         * InternalWindowManager.cs: 
7087         - Call CaptureWithConfine instead of Capture if we're an
7088         MdiChild (fixes #79982).
7090 2006-12-21  Chris Toshok  <toshok@ximian.com>
7092         * DataGrid.cs: guard against the initial state of selection, where
7093         selection_start == -1.  make sure we only select from index >= 0.
7094         Fixes bug #80291.
7096 2006-12-21  Chris Toshok  <toshok@ximian.com>
7098         * Control.cs: we don't need to be so draconian with
7099         UpdateDistances, and we thusly don't need to call it before
7100         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
7102 2006-12-21  Daniel Nauck  <dna@mono-project.de>
7104         * ComboBox.cs,
7105         TextBox.cs: Implemented AutoComplete properties.
7107 2006-12-20  Chris Toshok  <toshok@ximian.com>
7109         * DataGridView*.cs: some corecompare work.
7111 2006-12-20  Jackson Harper  <jackson@ximian.com>
7113         * XplatUIX11.cs: We need to hide the caret when deleting it,
7114         otherwise you get carets left lying around everywhere.
7115         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
7116         prevents getting some weird half drawn caret tracers when
7117         scrolling.
7118         * TextControl.cs: Attempt to reduce the number of times we need to
7119         recreate the caret.
7121 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
7123         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
7125 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7127         * DateTimePicker.cs:
7128         - Implemented missing 2.0 bits.
7129         - Changed some default values to match MS.
7130         
7131 2006-12-20  Jackson Harper  <jackson@ximian.com>
7133         * TextBoxBase.cs: When changing the font across the document we
7134         can't recalculate after changing each line, since that will cahnge
7135         the line count.
7136         - PreferredHeight is a little different than i thought.
7137         - When backspacing, move the caret before we do the actual char
7138         delete, because when that delete crosses a wrap boundary the
7139         positional information will change.
7141 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7143         * Control.cs: Added some missing 2.0 bits: 
7144         BackgroundImageLayout, BackgroundImageLayoutChanged, 
7145         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
7146         add IBindableComponent and IDropTarget implementation.
7147         
7148         * MonthCalendar.cs: 
7149         - Added all missing 2.0 features:
7150         BackgroundImageLayout, RightToLeftLayout, 
7151         OnHandleDestroyed, RightToLeftLayoutChanged, 
7152         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
7153         PaddingChanged.
7154         - Rewrote all the BoldDate code, it was completely broken.
7155         - Fixed all the tests (the tests can now be re-enabled, the
7156         problems were not with the tests, but with the control, it was
7157         mostly broken).
7158         
7159         * DateTimePicker.cs: Changed the location where the 
7160         MonthCalendar is shown.
7161         
7162 2006-12-19  Chris Toshok  <toshok@ximian.com>
7164         * DataGridView.cs: add IDropTarget implementation.
7166         * ToolStripPanel.cs: add IDropTarget implementation.
7168 2006-12-19  Jackson Harper  <jackson@ximian.com>
7170         * TextControl.cs: soft now means something different than what it
7171         used to mean, we want to move the caret regardless of whether or
7172         not this break was soft (would we really have wanted the caret
7173         to not move with the break in the old context?)
7174         * TreeView.cs: Make sure we factor in the vert scrollbar when
7175         calculating the horizontal scrollbar's maximum.
7177 2006-12-19  Andreia Gaita  <avidigal@novell.org>
7179         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
7180         check for keywords in alternate casing, close bug #80049.
7182 2006-12-19  Chris Toshok  <toshok@ximian.com>
7184         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
7185         methods (which all do nothing).
7187         * IDropTarget.cs: add the 4 missing methods.
7189 2006-12-19  Chris Toshok  <toshok@ximian.com>
7191         * TableLayoutRowStyleCollection.cs: corcompare work.
7192         
7193         * TableLayoutSettings.cs: same.
7195         * TableLayoutStyle.cs: same.
7197         * TableLayoutColumnStyleCollection.cs: same.
7199 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
7201         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
7202         TableLayoutPanel I've had in my local tree for way too long.
7204 2006-12-19  Miguel de Icaza  <miguel@novell.com>
7206         * TableLayoutSettings.cs: Finish the public API (still needs all
7207         the logic to update on changes). 
7209         * TableLayoutPanelCellPosition.cs: new file.
7210         
7211         * TableLayoutRowStyleCollection.cs,
7212         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
7213         TableLayoutSettings.cs: Track the final 2.0 table api.
7215 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7217         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
7218         and Image List 2.0 members for ColummnHeader.
7219         * ListView.cs: Add key-related 2.0 methods for
7220         ColumnHeaderCollection.
7222 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
7224         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
7225         ArgumentNullException if items argument is null. Ignore null item in
7226         arrays. Removed extra tabs.
7228 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
7230         * MonthCalendar.cs: Fixed InvalidCastException.
7232 2006-12-19  Jackson Harper  <jackson@ximian.com>
7234         * TextControl.cs: Don't increment the position here.
7235         - When calculating char positions only add in the line break size
7236         for hard line breaks.
7238 2006-12-19  Andreia Gaita  <avidigal@novell.org>
7240         * SendKeys.cs: Changed some things to match ms.net behaviour
7241         when parsing shifted capital letters.
7242         
7243         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
7244         Add window handle as parameter to SendInput. X11 needs the 
7245         window handle, and the handle being passed      to it in the keys 
7246         queue is the active control handle (which windows needs), not 
7247         the window handle.
7248         
7249         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
7250         to support SendKeys on X.       
7251         
7252         * X11Keyboard: Implement helper method to lookup a linux keycode
7253         given the virtual keycode. Added table of keycode-2-virtualkey
7254         values to support this.
7256 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7258         * ListView.cs: Add support for SelectedIndexCollection
7259         and SelectedItemCollection 2.0 methods. Implement support
7260         for ImageKey too.
7261         * ListViewItem.cs: Add support for ListViewSubItemCollection
7262         2.0 methods. Also, fix an incorrect behavior of AddRange method
7263         (it shouldn't call Clear).
7264         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
7266 2006-12-19  Jackson Harper  <jackson@ximian.com>
7268         * RichTextBox.cs: 
7269         * TextBoxBase.cs: New args for FormatText
7270         * TextControl.cs: Rewrote the main drawing method, this version
7271         feels a little easier to understand and debug to me.  Hopefully it
7272         does to others also
7273         - Fix FormatText to OR in the new formating values.  Added
7274         FormatSpecified param, basically this works in the same way as
7275         BoundsSpecified in Control.
7276         - Set the caret properties when the caret is positioned.
7277         - When wrapping text make sure that we calculate the width of the
7278         last character
7279         - when calculating alignments we might have wrapped down to the
7280         next line, so don't search for an individual tag, search for the
7281         end of the line
7282         - We need to invalidate the selection area when we replace the
7283         selection.
7284         
7285 2006-12-19  Daniel Nauck  <dna@mono-project.de>
7287         * Application.cs: add Restart () 2.0 support
7289 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
7291         * MenuItem.cs: Invalidate menu item rectangle after change Enable
7292         property. Fixes #80268.
7293         
7294 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
7296         * MenuAPI.cs: Dont trigger select event when closes top menu
7297         item. Fixes #80270.
7299 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
7301         * MenuAPI.cs: When you click on menuitem only trigger onselect
7302         event for top menu itens. Fixes #80271.
7303         
7304 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7306         * MdiWindowManager.cs: Make IconicBounds depend on
7307         the bottom of MdiClient, not the top (fixes #80267)
7308         
7309 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7311         * MdiClient.cs: Added missing 2.0 attribute
7313 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7315         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
7316         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
7318 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
7320         * MenuAPI.cs: Fix click when menuitem is not popup,
7321         this regression was caused by last commit (#80272).
7323 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
7325         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
7326         fire click event or close menu. Fixes #80272.
7328 2006-12-17  Daniel Nauck  <dna@mono-project.de>
7330         * ListViewHitTestInfo.cs: add
7332 2006-12-17  Daniel Nauck  <dna@mono-project.de>
7334         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
7335         * FlatButtonAppearance.cs: add
7336         * DockingAttribute.cs: add
7338 2006-12-17  Chris Toshok  <toshok@ximian.com>
7340         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
7341         and rebind our columns when it does - this way, if you make
7342         changes to the DataTable (or set the Table attribute on a DataView
7343         after setting it as the DataGrid's DataSource, the changes are
7344         made visible.)  Fixes bug #80107.
7346 2006-12-17  Daniel Nauck  <dna@mono-project.de>
7348         * ListViewGroup.cs: add internal Location property for layouting.
7349         * Theme.cs: add abstract ListViewGroupHeight function.
7350         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
7352 2006-12-16  Andreia Gaita  <avidigal@novell.com>
7354         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
7355         Added reset of selected index to 0 when adding first tab page.
7356         Fixes #80264
7357         
7358         * NumericUpDown.cs: Fix NET_2_0 check
7360 2006-12-16  Daniel Nauck  <dna@mono-project.de>
7362         * ListViewGroup.cs: fixed DefaultValueAttribute value
7364 2006-12-16  Daniel Nauck  <dna@mono-project.de>
7366         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
7368 2006-12-15  Miguel de Icaza  <miguel@novell.com>
7370         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
7371         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
7372         ScrollableControl.cs: Add a handful of methods that are
7373         overwritten in 2.0 
7375 2006-12-15  Chris Toshok  <toshok@ximian.com>
7377         * XplatUIWin32.cs: initial implementation of the Reversible
7378         drawing functions.  there are some problems.  DrawReversibleFrame
7379         doesn't seem to work at all for Dashed FrameStyle, and in the
7380         Thick case there are drawing errors at the corners (we probably
7381         need to bind Rectangle instead of doing moveto/lineto's.)
7383 2006-12-16  Andreia Gaita  <avidigal@novell.com>
7384         
7385         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
7386         to send blocks of key messages. Send accumulates keys to send with Flush, 
7387         while SendWait sends all keys immediately.
7388                 
7389         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
7390         XplatUIX11.cs,  XplatUIX11-new.cs:
7391         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
7392         to Win32 SendInput.
7393         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
7394         
7395         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
7396         testing for ms.net on this class is very tricky, as the tests run too fast 
7397         to allow the hook to release, essentially freezing the keyboard and the 
7398         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
7399         category :p
7401 2006-12-16  Daniel Nauck  <dna@mono-project.de>
7403         * Padding.cs: fixed serialization compability to MS ("_var" field names),
7404                         added missing attributes.
7406 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7408         * ListViewGroup.cs: Added missing attributes.
7409         * ListViewGroupCollection.cs: Added missing attributes.
7411 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7413         * ListViewItem.cs: fixed ListViewSubItem text property.
7415 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7416         
7417         * Control.cs: Added missing 2.0 attributes
7418         
7419 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7420         
7421         * MdiClient.cs: Added missing 2.0 attribute.
7422         * MonthCalendar.cs: Added some missing 2.0 attributes 
7423         and properties.
7424         
7425 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7427         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
7429 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
7431         * MainMenu.cs: Add the new 2.0 constructor to help out people
7432         using the MainMenu in VS2005.
7434 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7435         
7436         * MdiChildContext.cs: Removed it, no longer used.
7437         * MdiClient.cs: Added missing 2.0 attributes.
7438         
7439 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7440         
7441         * InternalWindowManager.cs: Fix a NullRef with previous 
7442         changes for toolwindows.
7443         
7444 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7446         * Control.cs: 
7447         - Added AfterTopMostControl to allow for certain controls 
7448         to always stay on top when normal controls are brought to 
7449         front.
7450         
7451         * XplatUIWin32.cs: 
7452         - (DrawInversibleRectangle): Get window rectangle from Win32 
7453         in stead of from control, since Win32 doesn't calculate
7454         screen coords correctly from control's Location if it 
7455         have docked siblings.
7456         
7457         * MdiWindowManager.cs:
7458         - Correct the control menu popup location when clicked on
7459         the maximized form icon. (fixes #80223.1)
7460         - Don't show moving rectangle if mouse hasn't moved from
7461         the original clicked point.
7462         - Removed FormGotFocus handler (not used).
7463         - Calculate the control buttons location from the main
7464         window's size and not client size (fixes #79770).
7465         - Form is now closed when the form icon is double-clicked
7466         (fixes #79775). 
7467         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
7468         
7469         * InternalWindowManager.cs:
7470         - Moved some MDI-only methods to MdiWindowManager.
7471         - Removed unused properties and methods.
7472         - Unified method naming for methods handling wm messages.
7473         - Moved all message handling to seperate methods for
7474         each message.
7475         
7476         * ThemeWin32Classic.cs:
7477         - DrawManagedWindowDecorations now draws the title bar 
7478         with a gradient brush.
7479         - Add a CPDrawButtonInternal that allows us to specify
7480         light, normal and dark colors for the buttons (control 
7481         buttons for MDI children were drawn with the same light
7482         color as the background, therefore loosing the 3D effect).
7483         
7484         * SizeGrip.cs:
7485         - Add a CapturedControl property that is used to 
7486         determine the control to resize (defaults to parent). 
7487         Needed for MdiClient, since its SizeGrip's parent is
7488         MdiClient, but the control to resize is the main form.
7489         
7490         * MdiClient.cs:
7491         - Set SizeGrip's CapturedControl to the main form in order
7492         to resize the main form and not the MdiClient.
7493         - Override AfterTopMostControl to leave the scrollbars 
7494         always on top.
7496 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7498         * ListView.cs: fixed ListViewItemCollection AddRange and
7499                         implemented ListViewItemCollection AddRange 2.0 support.
7501 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7503         * ListViewGroup.cs: Add.
7504         * ListViewGroupCollection.cs: Add
7505         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
7506         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
7507                                 stub for ImageKey 2.0 support.
7509 2006-12-14  Mike Kestner  <mkestner@novell.com>
7511         * ListView.cs: add text padding to the autocalculation for columns
7512         of width -2.  Fixes #80207.
7514 2006-12-14  Mike Kestner  <mkestner@novell.com>
7516         * ListView.cs: add some index guarding for partial row navigation 
7517         logic.  Fixes #80250.
7519 2006-12-14  Mike Kestner  <mkestner@novell.com>
7521         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
7522         are added or inserted to the collection.  Fixes #81099.
7524 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
7526         * MenuAPI.cs: Closes menu when right click out side of popup
7527         it fix problem in ContextMenu and MainMenu. Fixes #80252.
7529 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7531         * ListViewItem.cs: Fix dumb error.
7533         * ListView.cs: Add Find and ContainsKey methods in 
7534         ListViewItemCollection, and also return true for IsReadOnly
7535         and IsFixedSize (changes for 2.0). 
7537 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
7539         * Control.cs: Allow Region to be set to null.
7541 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7543         * MdiWindowManager.cs: Remove unused (commented out) code.
7544         * Form.cs: When the MdiChild is maximized, the form needs 
7545         WM_NCMOUSELEAVE, so request it.
7546         * InternalWindowManager.cs: 
7547         - Added tooltips to control buttons.
7548         - Removed duplicated control button handling code.
7549         - Removed unused (commented out) code.
7550         
7551 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
7553         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
7554         was used because we must set cursor without trigger ChangeCursor event
7555         and without change Cursor control property. Fixes #79963.
7557 2006-12-12  Andreia Gaita  <avidigal@novell.com>
7558         
7559         * Control.cs: Check if Region setter value is null, and ignore
7561 2006-12-12  Jackson Harper  <jackson@ximian.com>
7563         * TextControl.cs: We were almost always drawing one more line then
7564         needed, since the GetLineByPixel will return the last line found
7565         at that pixel. In most cases though, we were invalidating up to
7566         the junction between two lines.
7567         - Improve debug code.
7569 2006-12-12  Chris Toshok  <toshok@ximian.com>
7571         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
7572         and FillReversibleRectangle.
7574         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
7575         and FillReversibleRectangle.
7577         * XplatUIWin32.cs: add stubs which do nothing for
7578         DrawReversibleFrame, DrawReversibleLine, and
7579         FillReversibleRectangle.
7581         * XplatUIOSX.cs: add stubs which raise NIE for
7582         DrawReversibleFrame, DrawReversibleLine, and
7583         FillReversibleRectangle.
7585         * XplatUIX11.cs: add working implementation for
7586         DrawReversibleFrame, DrawReversibleLine, and
7587         FillReversibleRectangle.
7588         
7589         * ControlPaint.cs: implement DrawReversibleFrame,
7590         DrawReversibleLine, and FillReversibleRectangle, by calling into
7591         the appropriate XplatUI method.
7593 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7595         * Form.cs: Make MdiClient have the focus even if it's
7596         not selectable, since it should receive WM_KEY* and WM_MOUSE 
7597         messages. Fixes #79907.
7598         
7599 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7601         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
7602         queried after the window is created.
7603         
7604         * XplatUIX11.cs: Added SendParentNotify to implement 
7605         WM_PARENTNOTIFY logic. Fixes #79965.
7606         
7607         * Control.cs: Added MakeParam.
7608         
7609 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7611         * MdiClient.cs: Resume Layout before setting window
7612         states (fixes #80201).
7614 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7616         * MenuAPI.cs: Deselect a menu item after performing
7617         the click (fixes #80197).
7619 2006-12-11  Jackson Harper  <jackson@ximian.com>
7621         * TextBoxBase.cs: We need to cap this value, since Maximum -
7622         ViewPortHeight can be less than zero.
7623         - Only do selection with the left mouse button.
7624         * TextBox.cs: Don't tell the world that we have a context menu.
7625         * Control.cs: New method so that we can control whether or not the
7626         context menu is visible outside MWF.
7628 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
7630         * ToolBarButton.cs: Fix text positon. 
7632 2006-12-11  Miguel de Icaza  <miguel@novell.com>
7634         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
7636         * Control.cs (DoubleBuffered): Add implementation.
7638         * Application.cs (OpenForms): Add.
7640 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
7642         * Form.cs: Use opacity instead of Opactiy to determine if we need
7643         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
7645 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
7647         * Control.cs: Fix NRE if Control.Site was set to null.
7649 2006-12-11  Chris Toshok  <toshok@ximian.com>
7651         * Control.cs: ControlCollection.Remove should return if the arg is
7652         null, and ControlCollection.SetChildIndex should raise a ANE.
7654 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
7656         * Control.cs: Verify value set for Dock property. Code formatting
7657         updates.
7659 2006-12-11  Jackson Harper  <jackson@ximian.com>
7661         * TextControl.cs: Draw the caret and the selection when a flag is
7662         set on the owner.
7663         * TextBoxBase.cs: We want to draw the caret and the selection for
7664         TextBox but not for TextBoxBase.
7665         - If the window is resized and scrolling is no longer needed (the
7666         whole doc is visible) set the scroll position to zero.
7667         - The default SelectWord (the one TextBox uses) should move the
7668         caret to the end of the word.
7669         - SelectAll moves the caret to the end of the selection.
7670         * TextBox.cs: We don't selectall on focus, we just do it when the
7671         control is created.
7672         
7673 2006-12-11  Mike Kestner  <mkestner@novell.com>
7675         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
7677 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7679         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
7680         2.0 support.
7681         * ListViewItem.cs: Add Name 2.0 property.
7683 2006-12-11  Andreia Gaita  <avidigal@novell.com>
7685         * TabControl.cs: Set visibility on selected or default tab 
7686         when tabcontrol handle is created, so that it's contents
7687         actually show up (duh). Fixes #80193
7688         Don't redraw the control if there is no handle created, as
7689         the selected index might be completely invalid. Added some tests
7690         to check for this.
7692 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
7694         * ToolBar.cs: Uses maximun width and height of all buttons as 
7695         button rectangle when ButtonSize specified, it looks strange but
7696         is what happens in Win32. Fixes #80189.
7698 2006-12-11  Jackson Harper  <jackson@ximian.com>
7700         * TextControl.cs: Need to track undo levels ourself, since
7701         compound actions will mess them up.
7703 2006-12-10  Andreia Gaita  <avidigal@novell.com>
7705         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
7706         SelectedIndex value is changed (even if it's not valid).
7707         Reset SelectedIndex to 0 when the handle is created and if
7708         the current index is invalid.
7709         Fixes SelectdeIndex unit tests and #80128
7711 2006-12-08  Chris Toshok  <toshok@ximian.com>
7713         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
7714         calls EndEdit, it needs to be called before we set current_cell to
7715         its new value.  Otherwise, we end up committing the value in the
7716         textbox to the new cell as well.  Fixes bug #80160.
7718 2006-12-08  Chris Toshok  <toshok@ximian.com>
7720         * Form.cs (set_CancelButton): if the button's DialogResult is
7721         None, set it to Cancel.  Fixes bug 80180.
7723 2006-12-08  Jackson Harper  <jackson@ximian.com>
7725         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
7726         to watch ourselves when setting the canvas size and setting the
7727         scrollbar values.
7729 2006-12-08  Chris Toshok  <toshok@ximian.com>
7731         * DataGrid.cs: comment out the two MakeTransparent calls for the
7732         time being so people using trunk (and not 1.2.2) on windows can
7733         actually use the datagrid.  This deals with bug #80151.
7735 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
7737         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
7738         Graphics.DrawImage (image, int, int, int, int) overload instead
7739         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
7740         the dpi difference and was blurring images it drew.
7741         [Fixes bug #79960]
7743 2006-12-08  Chris Toshok  <toshok@ximian.com>
7745         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
7746         rowcnt is 0 (such as with an empty datasource), and make sure we
7747         initialize not_usedarea.Y to cells.Y, so we don't draw over the
7748         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
7750 2006-12-08  Chris Toshok  <toshok@ximian.com>
7752         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
7753         grid.
7755 2006-12-08  Chris Toshok  <toshok@ximian.com>
7757         [ Fixes bug #80167 ]
7758         
7759         * ThemeWin32Classic.cs: don't draw the image if the button's flat
7760         style is FlatStyle.System.
7762         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
7763         ButtonBase.flat_style private, and switch uses of it to the public
7764         property.
7765         
7766 2006-12-08  Chris Toshok  <toshok@ximian.com>
7768         [ Fixes bug #80121 ]
7769         
7770         * ThemeWin32Classic.cs: center the caption text in the datagrid
7771         when we draw it.
7773         * DataGrid.cs: lessen the amount we add to the caption height from
7774         6 to 2.  6 was making it huge.
7776 2006-12-08  Andreia Gaita  <avidigal@novell.com>
7778         * UpDownBase: Handle MouseWheel call directly instead of capturing
7779         the inner textbox's OnMouseWheel. Fixes #80166
7781 2006-12-08  Jackson Harper  <jackson@ximian.com>
7783         * TextControl.cs: We need to invalidate the textbox when we empty
7784         it (how had this not been discovered before?)
7786 2006-12-08  Jackson Harper  <jackson@ximian.com>
7788         * TextBoxBase.cs: Reworked the mouse down code so I could get it
7789         to behave like MS, we now ignore the eventargs.Click and just
7790         track state ourself, which we were already doing anyways.
7791         - Constrain the double click handler to the double click size.
7792         
7793 2006-12-08  Chris Toshok  <toshok@ximian.com>
7795         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
7796         direction if that scrollbar isn't shown.  fixes bug #80158.
7798 2006-12-08  Andreia Gaita  <avidigal@novell.com>
7800         * NumericUpDown.cs: Update value on getter. Fixes #79950
7802 2006-12-08  Chris Toshok  <toshok@ximian.com>
7804         * MenuItem.cs: add back in the event cloning code.  I didn't know
7805         how to do it in the face of the EventHandlerList work i'd done
7806         last week.  Fixes bug #80183.
7808 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
7810         * Control.cs: Add an invalidate to the BackgroundImage setter.
7811         [Fixes 80184]
7813 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
7815         * ToolStrip*: Add some small properties reported by MoMA, fix event
7816         firing and default properties based off of unit tests, and add some
7817         attributes based off of the class status page.
7819 2006-12-07  Jackson Harper  <jackson@ximian.com>
7821         * TextBoxBase.cs: Take HideSelection into account when determining
7822         whether or not to show the selection.
7823         * RichTextBox.cs: After inserting the RTF into the document move
7824         the cursor to the beginning of the document.
7826 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
7828         * Control.cs: Remove static ArrayList "controls" which maintained
7829         a reference to every control created.
7830         * Application.cs: Create a static FormCollection to maintain a reference
7831         to every form created.  Use it in places that formerly enumerated through
7832         the controls one looking for forms.
7833         * Form.cs: Add and remove self from above FormCollection.
7835 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
7837         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
7838           not libgdk (though it makes me wonder why I didn't have any
7839           problems)
7841 2006-12-07  Chris Toshok  <toshok@ximian.com>
7843         [ you had to know this was coming after that last commit...]
7844         
7845         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
7846         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
7847         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
7848         XCopyArea).
7850 2006-12-07  Chris Toshok  <toshok@ximian.com>
7852         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
7853         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
7854         all the behavior we need for double buffering.
7856         * XplatUIDriver.cs: implement the 3 double buffer methods using a
7857         client side Bitmap, just like the old Control-based double buffer
7858         code did.  The methods are virtual, so each XplatUI driver
7859         subclass can replace the implementation to use a faster, platform
7860         specific approach.
7862         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
7863         double buffer code, and clean things up a bit in the process.
7865 2006-12-06  Chris Toshok  <toshok@ximian.com>
7867         * Control.cs: reindent WndProc.
7869 2006-12-06  Chris Toshok  <toshok@ximian.com>
7871         [ I wanna be like BenM when I grow up ]
7872         
7873         * Hwnd.cs: create a single static Graphics object on the static
7874         Bitmap we create.  use this for our text measurements.
7876         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
7877         This was causing us to allocate a backbuffer for every control,
7878         even when it wasn't flagged as double buffered.  Instead use the
7879         single graphics instance.  This might have implications for
7880         multithreaded applications.  If we run into problems we can switch
7881         to creating 1 Graphics per control, on the static Hwnd bitmap.
7883         this change nets us a 7M savings in private dirty mappings when
7884         running FormsTest.exe.
7886 2006-12-06  Chris Toshok  <toshok@ximian.com>
7888         * ListView.cs: the BackgroundImage override is just to set
7889         attributes.  chain up to base.BackgroundImage.
7891         * RichTextBox.cs: same.
7893         * ToolBar.cs: same, but we need to also redraw the toolbar when it
7894         changes, so instead a handler for BackgroundImageChanged.
7895         
7896         * Control.cs: make background_image private.
7898 2006-12-06  Chris Toshok  <toshok@ximian.com>
7900         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
7901         sure we even need this assignment, but roll with it for now.
7903         * Control.cs: make the cursor field private.
7905 2006-12-06  Chris Toshok  <toshok@ximian.com>
7907         * Form.cs: we don't need to explicitly set ImeMode to
7908         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
7909         behavior in the face of ImeMode.Inherit.
7911         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
7912         change the ctor's assignment to use ImeMode instead of ime_mode.
7914         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
7915         ImeModeInherit.  Only check for the parent's imemode (and return
7916         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
7917         This fixes the button unit test, which sets both ImeMode and
7918         DefaultImeMode to ImeMode.Disable.
7920         also make the ime_mode field private.
7922 2006-12-06  Chris Toshok  <toshok@ximian.com>
7924         * Control.cs: make control_style private.
7926         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
7927         setting the styles to true, then setting them to false instead of
7928         reverting to their previous values.
7930         also, call SetStyle on the scrollbars instead of using
7931         control_style directly.
7933 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
7935         * FormCollection.cs: Implement. [2.0]
7937 2006-12-06  Chris Toshok  <toshok@ximian.com>
7939         * Control.cs: make tab_stop private.
7941         * Label.cs: set TabStop, not tab_stop.  reformat some event
7942         add/remove methods to make them more compact.
7944 2006-12-06  Chris Toshok  <toshok@ximian.com>
7946         * RadioButton.cs: fix TabStop handling.
7948 2006-12-06  Chris Toshok  <toshok@ximian.com>
7950         * TextBox.cs: remove the explicit assignments to has_focus.
7951         Control does that.
7953         * ButtonBase.cs: remove the assignment to has_focus.  Control will
7954         manage that.
7955         
7956 2006-12-06  Chris Toshok  <toshok@ximian.com>
7958         * ButtonBase.cs: remove all uses of is_enabled from this code.
7959         it's always true when any of the code containing the checks is
7960         executed.
7962 2006-12-06  Chris Toshok  <toshok@ximian.com>
7964         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
7965         with different semantics (some are present in both 1.1 and 2.0
7966         profiles) so that we match MS's behavior in our unit tests.
7968 2006-12-06  Jackson Harper  <jackson@ximian.com>
7970         * TextControl.cs: Make this operation undoable.
7971         * TextBoxBase.cs: Factor the border width into the preferred
7972         height.
7973         - implement Modified as per the spec.
7975 2006-12-06  Chris Toshok  <toshok@ximian.com>
7977         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
7979 2006-12-06  Chris Toshok  <toshok@ximian.com>
7981         * Control.cs: make right_to_left and context_menu fields private.
7983 2006-12-06  Chris Toshok  <toshok@ximian.com>
7985         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
7986         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
7987         Control.child_controls private.  switch all uses over to
7988         Control.Controls.
7990 2006-12-06  Chris Toshok  <toshok@ximian.com>
7992         * System.Windows.Forms/GroupBox.cs,
7993         System.Windows.Forms/AccessibleObject.cs,
7994         System.Windows.Forms/ErrorProvider.cs,
7995         System.Windows.Forms/Control.cs,
7996         System.Windows.Forms/UpDownBase.cs,
7997         System.Windows.Forms/ScrollBar.cs,
7998         System.Windows.Forms/DateTimePicker.cs,
7999         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
8000         System.Windows.Forms/ToolTip.cs,
8001         System.Windows.Forms/RadioButton.cs,
8002         System.Windows.Forms/LinkLabel.cs,
8003         System.Windows.Forms/Splitter.cs,
8004         System.Windows.Forms/TextBoxBase.cs,
8005         System.Windows.Forms/ToolStripTextBox.cs,
8006         System.Windows.Forms/ContainerControl.cs,
8007         System.Windows.Forms/ThemeWin32Classic.cs,
8008         System.Windows.Forms/SizeGrip.cs,
8009         System.Windows.Forms/ToolStripDropDown.cs,
8010         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
8011         private.  switch all uses over to Control.Parent.
8013 2006-12-06  Chris Toshok  <toshok@ximian.com>
8015         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
8016         Control does this before calling emitting these events.
8018         * TabControl.cs: same.
8020         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
8021         Control.client_rect.
8023         * ButtonBase.cs: use the ClientSize property instead of the
8024         client_size field.
8026         * ScrollableControl.cs: same.
8028         * Control.cs: another pass at making properties private.  also,
8029         move the initialization of tab_stop to the ctor.
8031 2006-12-05  Andreia Gaita <avidigal@novell.com>
8033         * TabControl.cs: Let the selected index be set freely if the 
8034         control handle is not yet created.
8036 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
8038         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
8039         internal until I can rewrite DefaultLayout.
8040         * ToolStrip.cs: Fix build error and some general cleaning.
8041         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
8042         Fix build errors caused by making some of Control's fields private.
8044 2006-12-05  Jackson Harper  <jackson@ximian.com>
8046         * TextControl.cs: Redo Insert a little so that it use IndexOf
8047         instead of Split, this prevents it from messing up on things like
8048         \n\n\n. Also more effecient since the split array doesn't need to
8049         be created.
8050         * TextBoxBase.cs: AppendText doesnt handle multiline and non
8051         multiline text differently, this is the first of many fixes that
8052         will make multiline/non-multiline the same thing as far as the
8053         TextBoxBase is concerned.
8054         - Don't split the text and insert lines, this can lose some line
8055         endings (like is the last line a soft or hard break). Instead use
8056         the new Insert.
8057         - Fix an off by one when combining all the lines in the Text
8058         getter.
8059         - Remove separate multiline handling from the Text getter/setter.
8061 2006-12-05  Chris Toshok  <toshok@ximian.com>
8063         * ButtonBase.cs: a few changes:
8065         - don't reinitialize internal Control fields in the ctor when they
8066         have the same values as Control sets them.
8068         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
8069         this before calling those methods.
8071         - we don't need to call Refresh for anything.  use Invalidate
8072         instead.
8074         - OnEnabledChanged doesn't need to redraw at all - Control.cs
8075         calls Refresh in its OnEnabledChanged.
8076         
8077         - several of the events we were registered for in the ctor to
8078         redraw ourselves already include calls to Invalidate in the
8079         property setters that raise the events.  remove the extra
8080         invalidation.
8082         - reformat a switch statement that was 83274658 columns wide.
8083         
8084 2006-12-05  Mike Kestner  <mkestner@novell.com>
8086         * ComboBox.cs: fix a unit test regression from a TextBox
8087         SelectionLength return of -1 when there's no selection.  
8089 2006-12-05  Chris Toshok  <toshok@ximian.com>
8091         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
8092         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
8093         cleaning up some of the internal Control fields being used by
8094         subclasses.
8096 2006-12-05  Mike Kestner  <mkestner@novell.com>
8098         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
8099         listbox after AddImplicit calls since it defaults to hidden. Add a 
8100         hack to preserve requested heights across DropDownStyle changes.
8102 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
8104         * PropertyGrid.cs: Hide FindFirstItem method from public API.
8106 2006-12-05  Chris Toshok  <toshok@ximian.com>
8108         * DataGridView.cs: fix compiler warnings.
8110         * PrintControllerWithStatusDialog.cs: same.
8112         * ToolBar.cs: same.
8114         * FolderBrowserDialog.cs: same.
8116         * Splitter.cs: same.
8118         * DataGridViewComboBoxCell.cs: same.
8120         * XplatUIWin32.cs: same.
8122         * PictureBox.cs: same.
8124         * Win32DnD.cs: same.
8126         * PageSetupDialog.cs: same.
8128         * FileDialog.cs: same.
8130         * PrintDialog.cs: same.
8132         * DataGridTextBoxColumn.cs: same.
8134         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
8136 2006-12-05  Chris Toshok  <toshok@ximian.com>
8138         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
8139         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
8140         System.ComponentModel.EventHandlerList work.
8142 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
8144         * DrawTreeNodeEventArgs.cs: Added.
8146 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8147         
8148         * InternalWindowManager.cs: Remove an unused field.
8149         
8150 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8152         * InternalWindowManager.cs:
8153         - Save the point where the title bar is clicked.
8154         
8155         * MdiWindowManager.cs:
8156         - Only allow moving of the window as long as the 
8157         clicked point on the title bar does not get out of
8158         MdiClient's rectangle. Fixes #79982.
8159         
8160         * MdiClient.cs:
8161         - Added Horizontal/VerticalScrollbarVisible.
8162         - Simplified the scrollbar sizing algorithm.
8163         - Cache the difference in scrolled value in
8164         H/VBarValueChanged and move the calculation out
8165         of the for loop.
8167 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8169         * Control.cs: Make the Console.WriteLine in WndProc 
8170         write more info.
8172 2006-12-05  Chris Toshok  <toshok@ximian.com>
8174         * ToolStripManager.cs, ToolStripButton.cs,
8175         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
8176         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
8177         ToolStripSplitButton.cs, ToolStripSeparator.cs,
8178         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
8179         ToolStripProgressBar.cs, ToolStripContainer.cs,
8180         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
8181         to using System.ComponentModel.EventHandlerList.
8183 2006-12-04  Chris Toshok  <toshok@ximian.com>
8185         * LinkLabel.cs: fix up compiler warnings.
8187         * TableLayoutSettings.cs: same.
8189         * TreeView.cs: same.
8191         * ToolBar.cs: same.
8193         * TabControl.cs: same.
8195         * RichTextBox.cs: same.
8197         * ListViewItem.cs: same.
8199         * PropertyGrid.cs: same.
8201         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
8203         * ToolTip.cs same.
8205         * TextRenderer.cs: fix up compiler warnings.
8207         * Label.cs: same.
8209         * Form.cs: corcompare fixes.
8211         * PictureBox.cs: fix up compiler warnings.
8213         * ImageListStreamer.cs: same.
8215         * TrackBar.cs: corcompare fix.
8217         * Control.cs: fix up compiler warnings.
8219         * SplitterPanel.cs: same.
8221         * NumericTextBox.cs: same.
8223         * ImageList.cs: same.
8225         * StatusStrip.cs: same.
8227         * ProgressBar.cs: corcompare fix.
8229         * ToolStripButton.cs: fix up compiler warnings.
8231         * ToolStripStatusLabel.cs: same.
8233         * ToolStripSplitButton.cs: same.
8235         * ToolStripSeparator.cs: same.
8237         * ToolStripProgressBar.cs: same.
8239         * ToolStripDropDownMenu.cs: same
8241         * ToolStripDropDown.cs: same.
8243         * ToolStripDropDownButton.cs: same.
8245         * ToolStrip.cs: same.
8247         * ToolStripControlHost.cs: same.
8249         * ToolStripContentPanel.cs: same.
8251         * ToolStripDropDown.cs: same.
8253         * ToolStripContainer.cs: same.
8255         * ToolStripPanel.cs: same, and add "new" where we need it to work
8256         with the new ArrangedElementCollection.
8258         * ToolStripItemCollection.cs: add "new" where we need it to work
8259         with the new ArrangedElementCollection.
8261 2006-12-04  Andreia Gaita <avidigal@novell.com>
8263         * TabControl.cs: Fix default tab selection to after TabControl
8264         gets focus and not before. Fixes #80128
8266 2006-12-04  Chris Toshok  <toshok@ximian.com>
8268         * DataGridTableStyle.cs: remove the gross calling of
8269         datagrid.Refresh from here.  It's a broken idea and it doesn't
8270         work anyway.
8272         * DataGrid.cs: instead, just register/unregister from the
8273         DataGridTableStyle events in CurrentTableStyle.  we play it
8274         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
8275         even though some would most likely not require it.  Fixes bug
8276         #80115 (and one portion of #80117 as a side effect).
8278 2006-12-04  Chris Toshok  <toshok@ximian.com>
8280         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
8281         so the textbox (if any) goes away.  Fixes bug #80117.
8283 2006-12-04  Chris Toshok  <toshok@ximian.com>
8285         * DataGridColumnStyle.cs: set the column's readonly property
8286         initially based on the property descriptor's IsReadOnly.  Fixes
8287         bug #80044.
8289 2006-12-04  Chris Toshok  <toshok@ximian.com>
8291         * ComboBox.cs: wrap the dropdown style changing work in
8292         SuspendLayout/ResumeLayout.  Fixes bug #79968.
8294 2006-12-04  Jackson Harper  <jackson@ximian.com>
8296         * TextBoxBase.cs: Fix off by one, since these are one-based.
8297         * TextBox.cs: Select all the text when we get focus.  The TextBox
8298         does this but the RTB does not.
8300 2006-12-04  Chris Toshok  <toshok@ximian.com>
8302         * DataGridTextBoxColumn.cs: remove some spew.
8304         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
8305         but some part of me is saying "it shouldn't be here.."  At any
8306         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
8307         setting the value.
8309 2006-12-04  Chris Toshok  <toshok@ximian.com>
8311         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
8312         to reassign the propertydescriptor.
8314 2006-12-04  Jackson Harper  <jackson@ximian.com>
8316         * TextBoxBase.cs:
8317         * TextControl.cs: Remove some unused variables.  Maybe this will
8318         patch things up between mike and I.
8319         - don't split lines less then one char wide, if the viewport is
8320         that small text won't be visible anyways.
8321         
8322 2006-12-04  Jackson Harper  <jackson@ximian.com>
8324         * TextBoxBase.cs: Default selection length is -1, need to do some
8325         more testing on windows to see when this is used for the property.
8326         - Redid the Lines [] property to that we properly remove soft line
8327         breaks
8328         - added support for preserving carriage returns
8329         -  CanUndo is not a variable like 'is undo enabled' it just returns
8330         true if there is undo operations available.
8331         - AppendText doesn't need to grab the last tag itself anymore,
8332         this happens automatically when we move the cursor.
8333         * TextControl.cs: Add CompoundActions to the undo class. This
8334         allows combining the other operations into one big option.  ie a
8335         paste will combine { delete old, insert new, move cursor }
8336         - Add InsertString undo operation
8337         - New method for deleting multiline text
8338         - Add carriage returns to lines. So we can preserve carriage
8339         returns when text is 'roundtripped'
8341 2006-12-04  Chris Toshok  <toshok@ximian.com>
8343         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
8344         minimum 0.  Fixes the scrollbar exception in bug #80136.
8346 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8348         * MdiClient.cs: 
8349         * MdiWindowManager: Removed unused fields and methods.
8350         
8351 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8352         
8353         * StatusBar.cs: Update all panels when a AutoSize=Contents
8354         panel needs updating.
8355         
8356         * StatusBarPanel.cs: Remove twidth and only use initialize.
8357         Fixes #80031.
8358                 
8359 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8361         * Form.cs: When a form's MdiParent is set add it directly
8362         on top of the z-order in stead of relying on MdiClient's
8363         ActivateChild to do it. Fixes #80135.
8364         
8365         * MdiClient.cs: 
8366         - Remove original_order, mdi_child_list is already doing
8367         the same thing.
8368         - Create mdi_child_list on construction in
8369         stead of first use (avoids a few null checks).
8371         * MenuItem.cs: Use an already existing list of mdi children
8372         to get the correct order of children and remove the other
8373         redundant list.
8375 2006-12-04  Chris Toshok  <toshok@ximian.com>
8377         * PropertyGridView.cs: cached_splitter_location is only used in
8378         !DOUBLEBUFFER code.
8380         * PropertyGrid.cs: implement the ComComponentNameChanged event
8381         using Events, hoping that would fix the warning.  Looks like a
8382         compiler bug instead (#80144).
8384         * PropertyManager.cs: remove unused method.
8386 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
8388         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
8389         include parentesis to fix expression evaluation. Fixes #79634.
8391 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
8392         
8393         * MenuAPI.cs:
8394         - Changes to fix behavior in Menu control, some reported in #80097
8395         and other detected during behavior refactory like a select event
8396         problems.
8397         - Remove unneded "if's" conditions.
8398         - Created an internal to flag when popup is active in control, we need 
8399         it because in .NET you can have menu active but without popup active
8400         when you active menu using popup without visible items.
8401         - Mimic win32 behavior for Select and Popup events.  
8402         - Dont open popup menu when you dont have visible subitems.
8403         - Do nothing when click on disabled menu item.
8404         - Some small changes to follow the coding style guidelines.
8405         - Unselect menu only when another control gives focus. Fixes #80097.
8406         - Remove unused code.
8407         
8408         * MenuItem.cs: internal VisibleItems method to check if menu
8409         theres visible subitems, it will be usefull to fix some 
8410         behavior in Menu control.
8411         
8412 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
8413         
8414         * Timer.cs: Tag property for 2.0 profile.
8415         
8416 2006-12-01  Chris Toshok  <toshok@ximian.com>
8418         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
8419         
8420         * Win32DnD.cs: comment out some unused fields.
8422         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
8423         some unused properties/methods.
8425         * XplatUIX11.cs: fix MousePosition so we override the base class's
8426         property instead of conflicting with it.
8428         * PictureBox.cs: comment out some unused fields
8430         * OSXStructs.cs: make some struct fields public.
8432         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
8433         MousePosition so we override the base class's property instead of
8434         conflicting with it.
8436         * X11Dnd.cs: comment out some unused fields
8438         * X11DesktopColors.cs: fix some struct field visibility to quiet
8439         the compiler.
8441         * X11Dnd.cs: remove some debug code.
8443         * ThemeClearlooks.cs: comment out unused field.
8445         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
8447         * ThemeGtk.cs: comment out some unused pinvokes.
8449         * Timer.cs: remove some unused fields.
8451         * ThemeClearlooks.cs: comment out unused field.
8453         * UpDownBase.cs: comment out unused field.
8455         * DataObject.cs: comment out unused field.
8457         * DataGridBoolColumn.cs: reomve unused field.
8459         * DataGrid.cs: remove unused field.
8461         * Cursor.cs: remove old ToBitmap code.
8463         * ControlPaint.cs: remove unused method.
8465         * ScrollBar.cs: remove unused fields.
8467         * ComboBox.cs: remove unused field, and chain up to
8468         AccessibleObject ctor.
8470         * ListBox.cs: remove unused field.
8472         * ButtonBase.cs: wrap a couple fields in NET_2_0.
8474         * GridEntry.cs: remove unused fields.
8476         * Binding.cs: remove unused fields.
8478         * AxHost.cs: remove unused method.
8480         * ContainerControl.cs: remove unused field.
8482         * ScrollableControl.cs: remove unused fields.
8484 2006-12-01  Chris Toshok  <toshok@ximian.com>
8486         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
8487         the Where/WhereString stuff.  it's easy enough to CWL
8488         Environment.StackTrace.
8490         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
8491         unused private fields.
8493 2006-12-01  Jackson Harper  <jackson@ximian.com>
8495         * TextControl.cs: Do not update the view while inserting multiline
8496         text. If we update the view we might wrap lines, before entering
8497         the new lines, which causes the new line insertion calculations to
8498         be totally fubared.
8499         - Remove an old TODO
8500         - Make debug output a little nicer
8501         
8502 2006-12-01  Chris Toshok  <toshok@ximian.com>
8504         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
8506 2006-12-01  Chris Toshok  <toshok@ximian.com>
8508         [ fix the majority of the CS0108 warnings we've been suppressing ]
8509         
8510         * TreeView.cs: mark BackgroundImageChanged as 'new'.
8512         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
8513         to "LayoutToolBar" to quiet mcs.
8514         
8515         * TabControl.cs: mark our ControlCollection class as 'new'.
8517         * TextBoxBase.cs: mark some events as 'new'.
8519         * Splitter.cs: TabStop is 'new'.
8521         * ControlBindingsCollection.cs: mark a few methods as new since
8522         they change the visibility from protected to public.
8524         * RadioButton.cs: DoubleClick -> base class, and remove unused
8525         HaveDoubleClick.
8527         * MonthCalendar.cs: ImeMode property -> base class, and mark many
8528         events as new.
8530         * NumericUpDown.cs: TextChanged -> base class.
8532         * CheckedListBox.cs: mark our ObjectCollection class as new to
8533         quiet mcs.
8535         * FolderBrowserDialog.cs: make HelpRequest event new and have it
8536         muck with the base class.
8538         * StatusBar.cs: fix some mcs warnings about Update being the same
8539         name as a base class method.
8541         * RichTextBox.cs: mark some events as new, and make them do things
8542         to the base class impl.
8544         * UserControl.cs: mark TextChanged as new, and have it manipulate
8545         base.TextChanged.
8547         * UpDownBase.cs: mark some things new.
8549         * CheckBox.cs: mark DoubleClick "new", and add some text about
8550         what we need to look at.
8552         * Panel.cs: make the events "new", and manipulate the base
8553         version.  these are just here for attributes.
8555         * AccessibleObject.cs: make owner private.
8557         * Control.cs: deal with AccessibleObject.owner being private.
8558         cache our own copy if we need it.
8560         * Button.cs: add "new" to the DoubleClickEvent.
8562         * ListBox.cs: no need to track our own has_focus here.  let
8563         Control.has_focus do it for us.  Also some other work to clear up
8564         warnings about not overriding base class methods of the same name.
8565         
8566         * ComboBox.cs: clear up some warnings about not override base
8567         class methods of the same name.
8569 2006-12-01  Chris Toshok  <toshok@ximian.com>
8571         * Form.cs: flag a few things as "new" to quiet some of the mcs
8572         warnings.
8574         * AxHost.cs: same.
8576         * PrintPreviewDialog.cs: same.
8578         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
8579         now DGV isn't so horrible on the class status page.  also, move
8580         all events to using System.ComponentModel.EventHandlerList.  my
8581         wrists hurt.
8583 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8585         * MdiWindowManager.cs:
8586         - Set form to active mdi child if shown,
8587         and update the active mdi child to the next 
8588         remaining child in the z-order if the form is hidden.
8590         * Form.cs: 
8591         - Track if the form has been visible and if its 
8592         visibility is beeing changed, so that the MdiClient
8593         can properly decide the ActiveMdiChild. The MdiClient 
8594         cannot track this since the form can change visibility 
8595         before MdiClient is created.
8597         * MdiClient.cs:
8598         - Don't activate anything of the parent form is changing
8599         its visibility.
8600         - Rework ActiveMdiChild to only return visible mdi 
8601         children and take into account several other corner 
8602         cases.
8604 2006-12-01  Chris Toshok  <toshok@ximian.com>
8606         * IBindableComponent.cs: new 2.0 interface.
8608 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
8610         * DataGrid.cs: Font for caption area is bold by default.
8612 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
8614         * Menu.cs: Tag property for 2.0.
8615         
8616 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
8618         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
8619         
8620 2006-12-01  Chris Toshok  <toshok@ximian.com>
8622         * TreeView.cs: doh, the Begin* events should be
8623         TreeViewCancelEventHandler.
8625 2006-12-01  Chris Toshok  <toshok@ximian.com>
8627         * Form.cs: Form.ControlCollection already stores off the
8628         form_owner field.  don't access the base class's internal "owner"
8629         field.
8631         * Control.cs: make all the fields in Control.ControlCollection
8632         private.  there's no need for any internal fields here.
8634 2006-12-01  Chris Toshok  <toshok@ximian.com>
8636         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
8637         OnHandleCreated.  Fixes bug #80109.
8639 2006-12-01  Chris Toshok  <toshok@ximian.com>
8641         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
8642         SplitContainer.cs, Control.cs, StatusStrip.cs,
8643         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
8644         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
8645         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
8646         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
8647         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
8648         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
8649         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
8650         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
8651         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
8652         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
8654         do most of the work to convert our code over to use
8655         System.ComponentModel.Component.Events for
8656         adding/removing/dispatching events.
8659 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
8661         * DataGridView.cs: Fix an ArgumentNullException reported 
8662         twice today in IRC.
8664 2006-11-30  Mike Kestner  <mkestner@novell.com>
8666         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
8667         grabbed listbox.  Fixes #80036 and #80101.
8669 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
8671         * Message.cs: Changed ToString() to match MS.
8672         
8673 2006-11-30  Jackson Harper  <jackson@ximian.com>
8675         * TextBoxBase.cs: You can still change the selected text on a read
8676         only textbox.
8677         * TextControl.cs: Lower magic number for wrap calculations. This
8678         lets text get closer to the right (far) edge.
8680 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
8682         * Control.cs: Tweak 2.0 layout properties.
8683         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
8684         * TextRenderer.cs: Add a new overload.
8685         * ToolStrip*: Huge amount of changes and new features.
8687 2006-11-30  Mike Kestner  <mkestner@novell.com>
8689         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
8690         scroll range correct.  Fixes #79994.
8692 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
8694         * MdiWindowManager.cs: Update main form's text when
8695         a form is closed. (fixes #80038)
8696         
8697 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
8699         * ToolBar.cs:
8700         - Fix an regression in ButtonSize.
8701         - Get ImeMode default value change to "Disable".
8702         - Get ShowTooltips default value change to true, default value is 
8703         "false" but after make a test in .NET we get "true" result as default.
8704         
8705 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
8707         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
8709 2006-11-29  Chris Toshok  <toshok@ximian.com>
8711         * XplatUIWin32.cs (GetWindowTransparency): check return value of
8712         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
8713         SetWindowTransparency hasn't been called.
8715 2006-11-29  Chris Toshok  <toshok@ximian.com>
8717         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
8718         if it's supported.
8719         (set_AllowTransparency): reorder things a little so that the
8720         WS_EX_LAYERED style is removed properly.
8722 2006-11-29  Chris Toshok  <toshok@ximian.com>
8724         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
8725         
8726         * Form.cs: only call the XplatUI transparency method (get/set) if
8727         SupportsTransparency says it's supported. Otherwise fallback to
8728         doing nothing (in the set case) or returning the instance field we
8729         cache (in the get case).
8731         * XplatUIStructs.cs: add TransparencySupport flag enum.
8732         
8733         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
8734         change to SupportsTransparency.
8736         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
8737         TransparencySupport.None from SupportsTransparency.
8739         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
8740         TransparencySupport.Set from SupportsTransparency.
8742         * XplatUIWin32.cs: implement GetWindowTransparency calling
8743         GetLayeredWindowAttributes, and implement SupportsTransparency by
8744         checking whether or not both
8745         GetWindowTransparency/SetWindowTransparency are available
8746         entrypoints.  We need to do this since SetWindowTransparency is
8747         available as of win2k, but GetWindowTransparency requires winxp.
8748         yay win32 api.
8750         * XplatUI.cs: Add GetWindowTransparency, and change
8751         SupportsTransparency to allow for either/both Get/Set.
8753 2006-11-29  Chris Toshok  <toshok@ximian.com>
8755         * DataGrid.cs: keep from going into an infinite loop redrawing a
8756         datagrid that has no datasource.  Fixes bug #80033.
8758 2006-11-29  Chris Toshok  <toshok@ximian.com>
8760         * MenuItem.cs: fix the NRE when we assign text (and therefore call
8761         Invalidate) before the mainmenu has been assigned to a control.
8763 2006-11-29  Chris Toshok  <toshok@ximian.com>
8765         * DataGrid.cs: detect when we should be double the double click
8766         row/column autosize stuff, although that codepath has yet to be
8767         written.  part of the work for bug #79891.
8769 2006-11-29  Chris Toshok  <toshok@ximian.com>
8771         * Binding.cs (SetControl): fix unit test.
8773 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8775         * PageSetupDialog.cs: Validate the margins and set them in
8776         PageSettings. 
8777         * NumericTextBox.cs: New class to mimic the behavior of the
8778         textboxes used in the printing dialogs.
8780 2006-11-29  Andreia Gaita  <avidigal@novell.com>
8781         
8782         * Form.cs: Revert previous change (remove call UpdateBounds
8783         from form constructor), because it messes with the handle creation
8784         order, and that one needs lots and lots of love.
8785         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
8786         for valid printer and throw InvalidPrinterException if document
8787         is set but printer not valid), adding a MonoTODO. Once 
8788         handle creation is done properly, we can put this back in.
8790 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
8792         * MenuItem.cs: Create a invalidate method for menu item, to be
8793         calling from set text, it make text changes to imadiate update
8794         on screen. Fixes #80013. 
8795         
8796 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
8798         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
8799         fixes bug #80070 and some other problem on toolbar buttons
8800         layout.
8802 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
8804         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
8805         with dotted brush.      Fixes #79564
8806         
8807 2006-11-28  Andreia Gaita  <avidigal@novell.com>
8809         * Form.cs: Removed call to UpdateBounds on Form
8810         constructor, it was causing a call to CreateHandle
8811         before it was supposed to.
8812         * PrintControllerWithStatusDialog: Applied patch
8813         by Chris Toshok to hide controller when there are
8814         no printers available.
8815         PrintDialog.cs: initialize printer settings to 
8816         null - correct DefaultValues test #5
8817         * PrintPreviewControl.cs: Move PrintController
8818         initialization to GeneratePreview
8819         * PrintPreviewDialog.cs: 
8820         - Remove Preview generation     from Document_set(). It is 
8821         called on OnPaint
8822         - Throw InvalidPrinterException on CreateHandle if
8823         a Document is set but there are no printers or 
8824         printer is not valid.
8825         * ThemeWin32Classic: don't paint PrintPreviewControl
8826         if there is nothing to paint    
8828 2006-11-28  Miguel de Icaza  <miguel@novell.com>
8830         * Form.cs: Add another popular method.
8832         * TabPage.cs: ditto.
8834 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8836         * MenuItem.cs: Fixed a warning.
8837         * InternalWindowManager: Fixed a warning.
8839 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8841         * MenuItem.cs:
8842         - When cloning a menu also clone MdiList and clone the 
8843           window menu items properly (as the forms and menuitems
8844           are kept in an internal hashtable, these need updating 
8845           as well)
8846         - Rewrote the window menu code, menu items are added in the
8847           order the forms were added to their parent, and they are
8848           updated every time the window menu is shown (before the
8849           list was only generated once, in the current order of the
8850           forms, and would never be updated). A checkmark is shown
8851           next to the item corresponding to the active mdi child.
8853 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8855         * XplatUIStructs.cs: 
8856         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
8857         
8858         * XplatUIWin32.cs: 
8859         - Added TME_NONCLIENT to TMEFlags.
8860         - Handles WM_NCMOUSEMOVE in GetMessage to 
8861           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
8863         * MdiWindowManager:
8864         - Now merges mdi child menu to parent menu when maximized.
8865         - Recalculate NC areas of both mdi child and mdi parent. 
8866           Fixes #79757 (4).
8867           on window state and size changes.Fixes #79844 (3).
8868         - Handle WM_NCCALCSIZE to properly calculate borders.
8870         * Form.cs:
8871         - Add/remove to the mdi containers list of mdi children 
8872           in the order they are added.
8873         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
8874           to the maximized mdi child.
8875         
8876         * InternalWindowManager.cs:
8877         - Only execute a click on the control buttons on the mouse up,
8878           not on the mouse down. Show the state of the button 
8879           (was only showing Normal state, never Pressed state). The
8880           pressed button now follows the mouse (if you click the Close 
8881           button and move the mouse over the Maximize button, the 
8882           Maximize button will be shown as pressed). Since Win32 does
8883           not generate WM_NCLBUTTONUP if you release the button outside
8884           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
8885           it as a mouse up.
8886         
8887         * ThemeWin32Classic.cs:
8888         - Draw a missing border around mdi child forms. Fixes #79844 (2).
8890         * MdiClient.cs:
8891         - Added a list of forms which contains the order the forms are
8892           added to the mdi parent.
8893         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
8894         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
8895         - If the active form changes set the scrollbars to the top
8896           of the Z order, otherwise the form could hide them.
8897         - Scrollbars are now sized according to ClientSize, not 
8898           to Size, and they take into account the other scrollbar
8899           to determine maximum.
8900         
8901 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
8902         
8903         * XplatUI.cs:
8904         * XplatUIDriver.cs:
8905         * XplatUIX11.cs:
8906         * XplatUIWin32.cs:
8907         * XplatUIOSX.cs:
8908         - Added RequestAdditionalWM_NCMessages for windows to 
8909           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
8910           Currently only implemented in XplatUIWin32.
8912 2006-11-27  Chris Toshok  <toshok@ximian.com>
8914         * Hwnd.cs: only add the hwnd to the windows hash in
8915         set_WholeWindow and set_ClientWindow if whole_window/client_window
8916         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
8918 2006-11-27  Mike Kestner  <mkestner@novell.com>
8920         * ComboBox.cs: remove redundant OnDropDown call.  It is called
8921         from the ComboListBox.ShowWindow code. Fixes #79969.
8923 2006-11-27  Chris Toshok  <toshok@ximian.com>
8925         * Hwnd.cs: remove the setters for ExposePending and
8926         NCExposePending - noone uses them.
8928 2006-11-27  Jackson Harper  <jackson@ximian.com>
8930         * TextControl.cs: new param for ReplaceSelection which determines
8931         whether we select the new selection, or set the cursor to the end
8932         of the new selection.
8933         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
8934         pasting, select the new text.
8935         * RichTextBox.cs: Use new param for ReplaceSelection.
8937 2006-11-27  Jackson Harper  <jackson@ximian.com>
8939         * TextBoxBase.cs: Set the selection to the caret after the caret
8940         is moved, otherwise they get out of sync.
8942 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
8944         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
8945         it fixes #80015
8947 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
8949         * ThemeWin32Classic.cs: 
8950         - Fix toolbar drop down arrow position.
8951         - Fix drop down appearance when ToolBar.Appearance is normal,
8952         it fixes #80018.
8953         
8954 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
8956         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
8957         * Control.cs: Same.
8958         * UpDownBase.cs: Same.
8959         * ButtonBase.cs: Same.
8960         * ScrollBar.cs: Same.
8961         * TrackBar.cs: Same.
8962         * PictureBox.cs: Same.
8963         * UserControl.cs: Same.
8964         * Label.cs: Same.
8965         * ListControl.cs: Same.
8966         * TextBoxBase.cs: Same.
8967         * ListView.cs: Same.
8968         * RichTextBox.cs: Same.
8969         * TreeView.cs: Same.
8971 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
8973         * PrintDialog.cs:
8974         - Text label for where 
8975         - Text label comment was not shown
8977 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
8979         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
8981 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
8983         * InternalWindowManager.cs: 
8984         - Handle WM_PARENTNOTIFY to activate the form
8985         if any child control is clicked.
8986         - The form is only sizable if not minimized.
8988         * MdiWindowManager.cs:
8989         - Save the IconicBounds if the form is moved.
8990         - Rework SetWindowState, now the window bounds 
8991         are stored only if the old window state is Normal.
8992         
8993         * MdiClient.cs:
8994         - In SetWindowStates store the old window state if 
8995         the window is maximized and restore window state if
8996         the window looses focus.
8997         - Don't handle any scrollbar value changes if 
8998         initializing the scroll bars. Fixes #79771.
8999         - Reworked ArrangeIconicWindows. Current algorithm
9000         tests bounds agains all other minimized windows, if
9001         any intersections create new bounds (going left to 
9002         right, bottom to top) and then test again. When 
9003         successful the bounds are saved and never computed
9004         again. Fixes #79774.
9006 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
9008         * InternalWindowManager.cs: Added HandleTitleBarUp.
9010 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
9012         * NumericUpDown.cs: In .NET 1.1, user entered text is still
9013         hexadecimal in ParseUserEdit.
9015         
9016 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
9018         * MdiWindowManager.cs: 
9019         - Handle a click on the form's icon to show the 
9020         system menu (when maximized). Fixes #79775.
9021         - Change the existing click handler for the form's
9022         icon when not maximized to show on MouseUp.
9023         Fixes #79776.
9025         * Form.cs: In OnResize only layout the mdi child's
9026         parent if it actually has a parent. Might not if
9027         the window is closing.
9030 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
9032         * MdiClient.cs: Ignore active MDI client for text of parent, if
9033         child has no text set.
9035 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
9037         * ToolBar.cs: Fixed ToString to match MS.
9039 2006-11-22  Andreia Gaita  <avidigal@novell.com>
9041         * NumericUpDown: 
9042         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
9043         update inner values on set. Fixes #79966.
9044         - Override OnLostFocus to update value on NET 2. Fixes #79950.
9045         - Fix hexadecimal parsing.
9046         
9047         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
9048         parent. Fixes #79957
9050 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9052         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
9053         the actual size has to be queried, since if height /
9054         width is negative Win32 changes it to 0. 
9055         Fixes #79999 on Windows.
9056         
9057         * XplatUIX11.cs: Set height / width to 0 if negative
9058         in SetWindowPos. Fixes #79999 on Linux.
9059         
9060 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
9062         * ThemeWin32Classic.cs: Fix text redenring when button is
9063         pressed.
9065 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
9067         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
9068         and later navigate by mouse. Fixes #79528.
9070 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
9072         * ToolBar.cs: Set default value for TabStop to false in
9073         constructor, it fixes remaining behavior of bug #79863.
9075 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9077         * MdiWindowManager.cs:
9078         * InternalWindowManager.cs:
9079         - Moved a few methods specific to Mdi from 
9080         InternalWindowManager to MdiWindowManager.
9081         Fixes #79996.
9082         
9083 2006-11-21  Chris Toshok  <toshok@ximian.com>
9085         * XplatUIOSX.cs: stub out InvalidateNC.
9087         * XplatUIWin32.cs: implement InvalidateNC using the call I found
9088         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
9090         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
9092         * XplatUIDriver.cs: add InvalidateNC abstract method.
9094         * XplatUI.cs: add InvalidateNC.
9096 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
9098         * ToolBar.cs: Invalidate complete button area when pressed status 
9099         was changed.
9100         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
9101         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
9102         by 1 when button is pressed.
9104 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
9106         * ToolButton.cs: Invalidate middle of DropDown button when
9107         ToolBar theres DropDownArrows.
9108         * ThemeWin32Classic.cs: Change position of DropDown arrow and
9109         fix DropDown drawing operations.
9111 2006-11-20  Chris Toshok  <toshok@ximian.com>
9113         * NativeWindow.cs: fix the formatting of functions ('{' on the
9114         following line), and enable the thread exception dialog.
9116         * Application.cs: remove the duplicate exception catching from
9117         here.
9119 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
9121         * Toolbar.cs: Triggers button click event when click on icon
9122         of dropdown ToolBarButton. Fixes #79912.
9123         
9124 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9126         * Theme.cs:
9127         * ThemeWin32Classic.cs:
9128         - Added a property WindowBorderFont to enable themeing
9129           of mdi child windows' Text.
9130           
9131 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9133         * InternalWindowManager.cs:
9134         * Form.cs:
9135         * MdiClient.cs:
9136         * MdiWindowManager.cs: 
9137         - If mdi child is maximized, set mdi parent's
9138           text to "Parent - [Child]". Fixes #79770.
9139         - If there is any maximized mdi child windows, only the active 
9140           window (and any new windows) is maximized, the rest are normal.
9141         - On a WindowState change only save mdi child's window bounds 
9142           if the old window state was normal. Fixes #79774.
9143         - The scroll bars are now calculated on hopefully all
9144           necessary events. Fixed #79771 / #79844->6 / #79906.
9145         - MdiClient.SizeScrollBars() now takes into account docked 
9146           controls in the parent when calculating available space.
9147         - InternalWindowManager now always repaints the entire title
9148           area. Fixes #79844->1/4/5.
9149         - Added RequestNCRecalc on mdi child windowstate changes.
9150           Fixes #79772.
9152 2006-11-20  Mike Kestner  <mkestner@novell.com>
9154         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
9155         in the MouseUp handler of the listbox and move the return handling
9156         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
9158 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
9160         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
9162 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
9164         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
9165           working in 1.2.x anymore. So, updated.
9167 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
9169         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
9170         NumberGroupSeparator of current culture instead of assuming en-US.
9171         Fixed bug #79967.
9173 2006-11-17  Mike Kestner  <mkestner@novell.com>
9175         * Control.cs: Add the concept of implicit bounds setting so that
9176         dock/undock round trips preserve explicitly set size/locations.
9177         Fixes #79313.
9179 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
9181         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
9182           can't handle those filters. (Fixes bug #79961)
9184 2006-11-17  Chris Toshok  <toshok@ximian.com>
9186         [ fixes the exit/crashes associated with #79835.  it's clearly
9187         suboptimal though, we need to figure out a better way to solve
9188         this. ]
9189         
9190         * PrintPreviewControl.cs: deal with the new invalid printer
9191         exceptions.
9193         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
9194         and return false (so CommonDialog.ShowDialog doesn't actually show
9195         the form.)
9197         * PrintDialog.cs: enable/disable the Ok button depending on
9198         whether or not the printer is valid.
9200         * CommonDialog.cs (ShowDialog): only actually show the form if
9201         RunDialog returns true.
9203 2006-11-17  Jackson Harper  <jackson@ximian.com>
9205         * TextControl.cs: When soft splitting a line, mark it as a soft
9206         split line. Also carry over the current line break to the next
9207         line.
9209 2006-11-17  Chris Toshok  <toshok@ximian.com>
9211         * XplatUIX11.cs: when scrolling a window with an invalid area, we
9212         only want to shift the part of the invalid area that overlaps the
9213         area we're scrolling.  we also don't want to clear the invalid
9214         area unless the invalid area was entirely contained within the
9215         scrolling area.
9217 2006-11-16  Chris Toshok  <toshok@ximian.com>
9219         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
9220         also make sure to free the memory returned by XGetWindowProperty
9221         in GetText().
9223         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
9225 2006-11-16  Chris Toshok  <toshok@ximian.com>
9227         * XplatUI.cs: add a new super secret way to get at the totally
9228         unsupported X11 backend.
9230 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
9232         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
9234 2006-11-16  Jackson Harper  <jackson@ximian.com>
9236         * TreeView.cs: Allow more explicit setting of top node position
9237         for scrollbars. Slower algo, but more accurate.
9238         - CollapseAll should maintain the current top node.
9239         * TextBoxBase.cs: When positioning the caret, use the line, pos
9240         method, since the x, y method does not grab the correct tag, and
9241         the caret height never gets set correctly. (Maybe I should just do
9242         away with the caret having its own height, and always use the
9243         carets current tag for height).
9245 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
9247         [Fixes 79778, 79923]
9249         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
9250         Parent to the FosterParent instead.
9252 2006-11-16  Jackson Harper  <jackson@ximian.com>
9254         * TreeView.cs: Need to recalc the topnode when we expand or
9255         collapse. The scrolling methods can't handle this on their own,
9256         since they use differences between the last scroll position, and
9257         those difference get completely messed up since we are expanding
9258         nodes.  This problem should probably be fixed in the scrolling
9259         methods, so they can figure out exactly where they are, but this
9260         will slow things down a little.
9261         * ThemeWin32Classic.cs: Special case for groupboxes with empty
9262         strings, makes nunit-gui look a lot nicer.
9264 2006-11-16  Chris Toshok  <toshok@ximian.com>
9266         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
9267         the broken multithreaded event handling we have in here.  File
9268         this entry under "Why we should move to the new X11 backend".
9270         Any thread can make it into UpdateMessageQueue, which gets events
9271         from the X socket - some of which could belong to hwnds being
9272         managed by a different thread.  We can also have multiple threads
9273         in UpdateMessageQueue at the same time, with each one reading from
9274         the X socket.  This leads to many problems, with the following
9275         solutions:
9277         We can't use hwnd.Queue.Enqueue anywhere in here and must use
9278         EnqueueLocked.
9280         The MotionNotify compression we do can't work across threads
9281         (without locking the entire queue, perhaps) since we call
9282         hwnd.Queue.Peek, so we just punt and don't compress motion events
9283         unless the owning thread is the one which got the X event.
9285         ConfigureNotify is another fun one, since it modifies the hwnd's
9286         bounds and then enqueues the event.  We add a lock to Hwnd which
9287         is held when setting configure_pending to true (and enqueuing the
9288         event).
9290         There is a race wrt the wake socket.  we need to make sure that
9291         only 1 thread is waiting on that socket, or else a thread could
9292         sleep waiting for data that never comes.  It's difficult (but not
9293         impossible) to make happen, because it seems to require something
9294         like the following:
9296             1. Thread 1 polls on wake_receive
9297         
9298             2. poll returns saying there's data to be read on
9299                wake_receive.
9300         
9301             3. Thread 2 polls on wake_receive and immediately returns
9302                saying there's data to be read.
9304             4. Thread 2 reads the wakeup byte from wake_receive
9306             5. Thread 1 attempts to read the wakeup byte from
9307                wake_receive.
9309             6. Thread 2 exits (due to a form closing, perhaps).
9311             7. Thread 1 blocks forever.
9312         
9313         Fun, eh?
9315         Fixing the Expose handling isn't done yet, and the races inherent
9316         in that piece of code are responsible for the drawing mistakes you
9317         see when generating expose events in a MT app (like NPlot).  This
9318         one is the likely to be the hardest to bandaid, and it doesn't
9319         appear to cause anything but drawing problems.  The other issues
9320         caused apps to exit or hang.
9322         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
9323         called from a different thread than the one that should be calling
9324         these functions.
9326         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
9328 2006-11-15  Chris Toshok  <toshok@ximian.com>
9330         * Application.cs: null out the context's MainForm when we exit
9331         RunLoop.  Fixes a newly checked in unit test as well as the last
9332         ODE from bug #79933.
9334 2006-11-15  Chris Toshok  <toshok@ximian.com>
9336         * Form.cs (set_Owner): allow a null value so we can clear the
9337         form's owner.
9338         (Dispose): set all our owned_form's Owner properties to null, and
9339         clear the owned_forms collection.
9340         (WM_CLOSE): clean up this a little bit.. still not right though.
9342         * ApplicationContext.cs: OnMainFormClosed should only call
9343         ExitThreadCore if the main form isn't recreating.  Fixes unit
9344         test.
9346 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
9348         [Fixes 78346]
9350         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
9352 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
9354         [Fixes 79433]
9356         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
9357         keep popup window types from stealing focus from the main form
9358         on Windows.
9360         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
9362         * MenuAPI.cs: Set above flag to true.
9364 2006-11-15  Chris Toshok  <toshok@ximian.com>
9366         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
9367         the button being released is not in wParam.
9369 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
9371         * Form.cs: Add the released button to MouseEventArgs.Button
9372         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
9373         on Win32.
9375 2006-11-15  Chris Toshok  <toshok@ximian.com>
9377         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
9378         GetText().  untested because it's unused in our implementation.
9379         Control.Text always caches the text, even if
9380         ControlStyles.CacheText is not set.
9382         fixes bug #79939.
9384 2006-11-15  Chris Toshok  <toshok@ximian.com>
9386         [ fixes #79933 ]
9387         
9388         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
9389         message.  no hiding, no disposing.
9391         in the WM_CLOSE handler, hide the form if it's modal.
9393 2006-11-15  Chris Toshok  <toshok@ximian.com>
9395         * XplatUIX11.cs: use AddExpose instead of sending a message.
9396         fixes textbox border drawing.
9398 2006-11-15  Chris Toshok  <toshok@ximian.com>
9400         * PropertyGridView.cs: keep from crashing on mouse move/down when
9401         the property grid is empty.
9403 2006-11-14  Jackson Harper  <jackson@ximian.com>
9405         * TextControl.cs: Make PageUp and PageDown more like the MS
9406         versions.
9407         * TextBoxBase.cs: When we set the text property position the
9408         cursor at the beginning of the document.
9410 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9412         * Form.cs: if a mdi child's WindowState has changed
9413         before it's creation, it would display wrong control
9414         buttons.
9415         
9416 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
9418         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
9419           (Fixes bug #79927)
9421 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9423         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
9424         the window gets to paint its borders even if the window is
9425         getting smaller.
9426         
9427         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
9428         otherwise the old control buttons would still be painted 
9429         if the window gets bigger.
9430         
9431         * PaintEventArgs.cs: add an internal method so that the clip 
9432         rectangle can be changed.
9433         
9434 2006-11-13  Chris Toshok  <toshok@ximian.com>
9436         [ fixes bug #79745 ]
9437         
9438         * NotifyIcon.cs: lots of cleanup.
9440         * X11Structs.cs: add an enum for XEMBED messages.
9442         * XplatUIX11.cs: reindent one of the giant switch statements, it
9443         was taking up an additional tab stop, and this file is already way
9444         too wide for my laptop's screen.
9446         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
9447         we get it, resize the hwnd to the WMNormalHints max_width/height.
9449 2006-11-13  Jackson Harper  <jackson@ximian.com>
9451         * TextBoxBase.cs: Compute the value changes for the mouse wheel
9452         teh simple way.
9454 2006-11-13  Chris Toshok  <toshok@ximian.com>
9456         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
9457         #79898.  force a reference to the Region to stick around so the
9458         unmanaged object isn't collected (rendering our handle in the MSG
9459         stale).
9461 2006-11-13  Chris Toshok  <toshok@ximian.com>
9463         * XplatUIX11.cs: fix #79917 for window managers which support
9465         using XStoreName on the raw utf8, and we need to convert to
9466         COMPOUND_TEXT if it's non-latin1.
9468 2006-11-13  Chris Toshok  <toshok@ximian.com>
9470         * Form.cs (set_DialogResult): we need to set closing to false if
9471         we're setting our result to None.  fixes bug #79908.
9473 2006-11-13  Jackson Harper  <jackson@ximian.com>
9475         * TextControl.cs: When formatting text, compute the adjusted tag
9476         lengths correctly, using FindTag for the end tag instead of trying
9477         to figure it out outselves.
9478         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
9479         the item, ItemHeight doesn't work, because trees with large
9480         imagelists use those for their height
9481         * TreeView.cs: ActualItemHeight factors in the image height
9482         - compute left edge of checkboxes correctly
9483         - when expanding/collapsing move the bottom down one pixel, so we
9484         aren't moving part of the node
9486 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9488         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
9489         stack in PaintEventStart so that it won't get disposed by the gc
9490         before reaching PaintEventEnd.
9492 2006-11-13  Jackson Harper  <jackson@ximian.com>
9494         * TextBoxBase.cs: Don't select the word if we are on a line with
9495         no text.
9496         - We don't need to position the caret on mouse up, since the mouse
9497         move handler should be doing this
9498         - When double clicking a blank line, the caret is advanced to the
9499         next line.
9501 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
9503         * TreeNodeCollection.cs: Avoid duplicating indexer code.
9505 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
9507         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
9508         Fixes part of bug #79910.
9510 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
9512         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
9513           (bug #79903). Some minor string updates to match ms.
9515 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
9517         * FileDialog.cs: Don't add an extension if the filename
9518           already ends with that extension.
9520 2006-11-10  Jackson Harper  <jackson@ximian.com>
9522         * TreeView.cs: Use the currently highlighted node for the
9523         BeforeSelect event.
9524         * TextBoxBase.cs: There is no need to expand selection on
9525         MouseMove.
9526         - CanUndo means 'is there any undo operations', not 'is undo
9527         allowed on this textcontrol. Fixed ClearUndo unit test.
9529 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
9531         * Button.cs: only perform click when button is Selectable (so as 
9532         not to activate default buttons when they're disabled)
9533         
9534         * Control.cs: Rewrite of the SelectNextControl and related 
9535         methods. HandleClick now selects next control if the current one
9536         is being disabled.
9537         
9538         * Form.cs: OnActivated selects next active control only if Load 
9539         has already occurred. If Load hasn't run, there's no point in 
9540         selecting here, Load might change the state of controls.
9541         
9542         * FocusTest.cs: Tests marked as working again for these fixes
9544 2006-11-10  Chris Toshok  <toshok@ximian.com>
9546         * XplatUIX11.cs: a couple of fixes.
9548         - use XInternAtoms with almost all the atoms we need to register,
9549         instead of many, many calls to XInternAtom.  should help a bit on
9550         startup time, at the expense of making the code look a little
9551         worse.
9553         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
9554         isn't reparented (which seems to be a clue that we're running fon
9555         compiz) and they have an Owner form.  This fixes the tool windows
9556         in paint.net when running under compiz.
9558         - when setting the opacity of a window, support both the case
9559         where the window has been reparented and also when it hasn't been.
9560         Since compiz/beryl doesn't seem to reparent windows, and these are
9561         the only window managers which support translucency, I'm not sure
9562         why we need the hwnd.reparented case at all.. but leave it in.
9563         now we get translucent windows in paint.net under compiz/beryl.
9565 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
9567         * FileDialog.cs: Always return the value for FilterIndex that
9568           was set. Internally convert it to values that make sense.
9570 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
9571         
9572         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
9574 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
9576         * Toolbar.cs: Change default value of DropDownArrows to true, the 
9577         signature still using false to make it compatible with MS but the 
9578         initial value is true. Fixes #79855.
9580 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
9582         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
9583           only available on Linux.
9585 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
9587         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
9588         reduce number of calls to redraw method during toolbar creation.
9590 2006-11-09  Mike Kestner  <mkestner@novell.com>
9592         * ListView.cs : raise SelectedIndexChanged when an item is selected
9593         programmatically via the Item.Selected property.  Gert's nice 
9594         ListViewSelectedIndexChanged test fixture now runs clean.
9596 2006-11-09  Mike Kestner  <mkestner@novell.com>
9598         * ListView.cs : raise SelectedIndexChanged when a selected item is
9599         removed from the item collection using Remove or RemoveAt.
9601 2006-11-09  Mike Kestner  <mkestner@novell.com>
9603         * ListView.cs : raise SelectedIndexChanged once per selected item
9604         for compat with MS.  Fixes #79849+.
9606 2006-11-09  Chris Toshok  <toshok@ximian.com>
9608         * TabControl.cs: initialize row_count to 0, and set it to 1 when
9609         we need to (if we have any tab pages).  Fixes unit test.
9611 2006-11-09  Chris Toshok  <toshok@ximian.com>
9613         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
9614         width is 0, not 3.  Fixes a unit test.
9616 2006-11-09  Mike Kestner  <mkestner@novell.com>
9618         * ListView.cs : use Implicit scrollbars so that focus isn't 
9619         stolen from the listview when they are clicked. Fixes #79850.
9621 2006-11-09  Chris Toshok  <toshok@ximian.com>
9623         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
9624         have a root item.  Fixes #79879.
9626 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
9628         * FileDialog.cs:
9629           - Fix ToString ()
9630           - An ArgumentException is now thrown if a wrong filter
9631             is applied (matches ms). The previous filter doesn't change
9632             anymore if an exception is thrown.
9633           - Changing the FileName property also affects FileNames
9634         * ColorDialog.cs: The length of the CustomColors array is always
9635           16. It doesn't matter if we use a smaller array or null to update
9636           or change the custom colors property.
9637         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
9638           for RootFolder if we get a undefined value.
9640 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9642         * StatusBarPanel.cs: 
9643         - Width is set to MinWidth if Width is smaller than
9644         MinWidth. Fixes #79842.
9645         - MinWidth now always overrides Width (MSDN says MinWidth
9646         is set to Width when AutoSize = None, but they do not 
9647         behave like that).
9648         - Style has now the the correct default value.
9649         
9650 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9652         * TrackBar.cs: 
9653         - The control is completely invalidated on 
9654         Got/LostFocus to draw the focus rectangle correctly.
9655         - When AutoSize then height is always 45 (width for 
9656         vertical controls).
9657         
9658         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
9659         on the mouse when moved and it doesn't move when grabbed
9660         until the mouse moves as well. Also fixed some wrong 
9661         calculations when clicking on the thumb (control thought
9662         click was outside of thumb and didn't grab it).
9663         Fixes some of the issues in #79718.
9665 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
9667         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
9669 2006-11-08  Chris Toshok  <toshok@ximian.com>
9671         * PropertyGridView.cs: only call ToggleValue if the item is not
9672         readonly.
9674 2006-11-08  Jackson Harper  <jackson@ximian.com>
9676         * TextBoxBase.cs: The RichTextBox and textbox have very different
9677         word selection methods.  Implement the textbox's simple word
9678         selection here, and let the RichTextBox override and provide it's
9679         own.
9680         - Don't do extra selection on mouseup
9681         * RichTextBox.cs: Use the documents word selection algorithm, I
9682         think ideally, this function will be pulled into the
9683         RichTextBox.cs code someday.
9685 2006-11-08  Chris Toshok  <toshok@ximian.com>
9687         * RootGridEntry.cs: new class to represent GridItemType.Root.
9689         * CategoryGridEntry.cs: reformat, and add boilerplate.
9690         
9691         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
9692         returns the UI parent anyway, and we need special handling to
9693         implement the GetTarget method in the face of it.  Also, implement
9694         Select().
9696         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
9697         a root grid item, and use that instead of PropertyGrid.grid_items.
9698         Also, make use of TypeConverters (and add limitted support for
9699         ICustomTypeDescriptors) when initially populating the grid.
9700         Arrays now show up more or less properly.
9702 2006-11-08  Chris Toshok  <toshok@ximian.com>
9704         * Application.cs: set the modal dialog to non modal after we close
9705         it.  Fixes bug #79866.
9707 2006-11-08  Jackson Harper  <jackson@ximian.com>
9709         * TextControl.cs: When combining lines carry over the line end
9710         style from the end line.
9711         - Invalidate the selected area when setting it, if it is visible.
9712         * TextBoxBase.cs: Only rich text box can do full line selects.
9713         - Make sure to set the cursor position when there is a click,
9714         otherwise two clicks in separate areas could cause a large chunk
9715         to be selected.
9717 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
9719         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
9720         Fixes #79863.
9722 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
9724         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
9725         time. Remove tooltips when ToolButton click events.  Fixes #79856.
9727 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
9729         * MenuAPI.cs: Ignore right click for menu actions and fixes
9730         menu border when clicked.  Fixes #79846.
9732 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
9734         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
9735         MouseState after create wParam for message, this fixes mouse button 
9736         equal none in mouse up events.
9737         
9738 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
9740         * Control.cs : Focus() now calls Select to set the Container's
9741         Active Control and to give it focus. To avoid infinite recursion
9742         (because ActiveControl also calls Focus at one point), a check 
9743         is made in Focus with the help of a new internal variable
9744         is_focusing.
9746 2006-11-07  Mike Kestner  <mkestner@novell.com>
9748         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
9749         if there's a selection.  Fixes #79849.
9751 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
9753         * PropertyGrid.cs: Avoid fixed height of help description label.
9754         Fixes part of bug #79829.
9756 2006-11-07  Chris Toshok  <toshok@ximian.com>
9758         * XplatUIX11.cs: fix #79790 again, by using the
9759         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
9761 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
9763         * ToolBar.cs: Fix left click checking.
9765 2006-11-07  Chris Toshok  <toshok@ximian.com>
9767         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
9769 2006-11-07  Chris Toshok  <toshok@ximian.com>
9771         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
9772         PropertyManager unit tests.
9774         * PropertyManager.cs: make property_name internal.
9776 2006-11-07  Chris Toshok  <toshok@ximian.com>
9778         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
9779         pass a unit test.  Also, don't set image_index to anything in
9780         response to setting the ImageList property.
9782 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
9784         * ToolBar.cs: Ignore click events when mouse button is not a
9785         left button, only accepts other button for dropdown menus.  
9786         Fixes #79854.
9788 2006-11-07  Chris Toshok  <toshok@ximian.com>
9790         * DataGrid.cs: make the back and parent row buttons a little less
9791         ugly.
9793 2006-11-07  Jackson Harper  <jackson@ximian.com>
9795         * TextBoxBase.cs: When converting to Text don't put line breaks in
9796         for soft line breaks.
9797         * TextControl.cs: There is an initial "fake" line in the document,
9798         this is now a soft break line, so that an extra line feed doesn't
9799         get added to the end of documents.
9801 2006-11-07  Chris Toshok  <toshok@ximian.com>
9803         [ fix bug #79778 ]
9804         
9805         * CurrencyManager.cs: if the list is readonly, don't bother
9806         checking if IBindingList.AllowNew is true.
9808         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
9809         for non-DataRowView datasources..  or rather, make it not crash.
9810         (DataGridPaintRelationRow): make sure we limit the row painting to
9811         the area not covered by the row header, and make our cell width at
9812         least large enough to cover the relation area.  This allows grids
9813         that have relations but no rows to render correctly.
9814         (DataGridPaintRowContents): same type of changes here.
9815         (SetDataSource): move back to always calling
9816         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
9817         navigating back through relations.
9818         (HitTest): handle the case where we have no cells but have
9819         relations.  Right now we generate a hit in cell 0 of whatever the
9820         row is, not sure if this is strictly correct, but it works for our
9821         purposes.
9822         
9823         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
9824         bother doing anything.
9826 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
9828         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
9829         early version of StatusStrip.  Not responsible for eaten
9830         application or firstborn children.
9832 2006-11-06  Chris Toshok  <toshok@ximian.com>
9834         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
9835         call GetTabRect with a -1 index.  Fixes #79847.
9837 2006-11-06  Jackson Harper  <jackson@ximian.com>
9839         * TreeNodeCollection.cs: Update scrollbars after clearing.
9841 2006-11-06  Chris Toshok  <toshok@ximian.com>
9843         * NumericUpDown.cs: fix the ToString method for some unit test
9844         love.
9846 2006-11-06  Chris Toshok  <toshok@ximian.com>
9848         * PropertyGrid.cs:
9849         - set the initial SelectedGridItem if we can.
9851         - Exclude non-mergable properties only if we're merging > 1
9852         object.  Merging 1 object isn't really merging, obviously.
9854         - Handle PropertySort.NoSort just like Alphabetical, which is
9855         wrong of course, but at least gets things on the screen.
9856         
9857         * PropertyGridView.cs:
9858         - Add method "FindFirstItem" which finds the first property grid
9859         item, so we can select it by default.
9861         - make use of GridEntry.CanResetValue.
9863         - Don't call RedrawBelowItemOnExpansion here anymore, the
9864         individual GridEntry's will do that.
9866         - Remove the ITypeDescriptorContextImpl internal class.
9867         
9868         * GridEntry.cs:
9869         - this class needs to implement ITypeDescriptorContext, as it's
9870         what MS's PropertyDescriptorGridEntry does, which means we can
9871         remove the ITypeDescriptorContextImpl internal class from
9872         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
9874         - keep a reference to our PropertyGridView, and move the call to
9875         RedrawBelowItemOnExpansion here from PGV.  This means
9876         programmaticly setting Expanded actually does something visible.
9878         - add a CanResetValue() function which takes into account our
9879         possibly multiple "selected_objects" in the merged case.  Shifting
9880         PropertyGridView to use this method fixes another unreported
9881         crasher found running the test for #79829.
9883         - when Top or Bounds is updated, make sure the PropertyGridTextBox
9884         is updated to reflect this.
9886         * CategoryGridEntry.cs: the ctor takes the PGV now.
9887         
9888 2006-11-06  Jackson Harper  <jackson@ximian.com>
9890         * TextControl.cs: These are 1 based.
9891         * TextBoxBase.cs: When setting the selected text, don't change the
9892         selected text tags, this is done by ReplaceText, just position the
9893         cursor at the end of the new text.
9895 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
9897         * ListView.cs: Allow label edit only when, when LabelEdit is
9898           set to true.
9900 2006-11-06  Jackson Harper  <jackson@ximian.com>
9902         * TextControl.cs: If a suitable wrapping position isn't found,
9903         just wrap right in the middle of a word.
9905 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
9907         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
9908           bug #79820.
9910 2006-11-06  Jackson Harper  <jackson@ximian.com>
9912         * TreeView.cs: Can't use the VisibleCount property when setting
9913         scrollbar heights, because this doesn't take into account whether
9914         or not the horz scrollbar just came visible.
9916 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
9918         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
9919         activated.  Fixes #79369, #79832.
9921 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
9923         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
9924           had to remove support for links that point to a directory. FileInfo
9925           returns no usefull information (means, the directory they point to)
9926           for such links. Replaced some empty string ("") with String.Empty.
9928 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9930         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
9931         NullReferenceException when attempting to remove node that is not in
9932         collection. Throw NullReferenceException when null is passed to 
9933         Remove. Allow first element of the collection to be removed. Fixes
9934         bug #79831.  In GetEnumerator ().Current return null if positioned 
9935         before the first element of the collection. In GetEnumerator ().Reset,
9936         position before first element of the collection.
9938 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9940         * PropertyGrid.cs: To match MS, remove default title and description
9941         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
9942         buttons.
9944 2006-11-04  Chris Toshok  <toshok@ximian.com>
9946         * Theme.cs: add a Clamp method, just for kicks.
9948         * ThemeWin32Classic.cs: clamp all color components to [0..255].
9950 2006-11-04  Chris Toshok  <toshok@ximian.com>
9952         * Form.cs: if the form isn't visible, Close() does nothing.
9954 2006-11-03  Chris Toshok  <toshok@ximian.com>
9956         * Form.cs (Close): if the form is modal, don't Dispose of it, only
9957         Hide it.
9958         (WndProc): don't Dispose after handling the WM_CLOSE message.
9960         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
9961         them as such, instead of using casts from Control to Form.  Also,
9962         don't Dispose of the modal dialog when we fall out of the loop -
9963         Close() it instead.
9965         fixes bug #79813.
9967 2006-11-03  Chris Toshok  <toshok@ximian.com>
9969         * Control.cs (Dispose): only go through the dispose thing if we're
9970         @disposing, and we haven't already been disposed.  Fixes bug
9971         #79814.
9973         * Form.cs: no reason to call "base.Dispose()" here instead of
9974         "Dispose()".
9976 2006-11-03  Mike Kestner  <mkestner@novell.com>
9978         * ComboBox.cs : use ToString instead of casts in AddItem for
9979         sorting functionality.  Fixes #79812.
9981 2006-11-03  Chris Toshok  <toshok@ximian.com>
9983         * Application.cs: pave the way for actually using the thread
9984         exception dialog.  it's ifdefed out at the moment.
9986 2006-11-03  Chris Toshok  <toshok@ximian.com>
9988         * ThreadExceptionDialog.cs: until we get a better layout, actually
9989         hide the details textbox and label when we shouldn't see them.
9991 2006-11-03  Jackson Harper  <jackson@ximian.com>
9993         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
9994         multiline textboxes anymore.  This method also determines the
9995         width/height of a textboxes canvas area.
9996         - Sorta a revert of the last patch.  For multiline just position
9997         the controls, then bail.  This way the scrollbar width won't be
9998         altered.
10000 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
10002         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
10003         it dont need.  Fixes #79537.
10005 2006-11-02  Jackson Harper  <jackson@ximian.com>
10007         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
10008         send the status after firing the DndOver event.
10010 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10012         * TrackBar.cs: Now orientation only switches height / width if
10013         the control's handle is created (Win32 does it like this). Also 
10014         fixed a typo in ToString() for a test to pass, changed the 
10015         exception thrown in set_LargeChange and set_SmallChange to 
10016         match Win32 behaviour, and added TrackBar tests to the unit 
10017         tests.
10019 2006-11-02  Chris Toshok  <toshok@ximian.com>
10021         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
10022         not _NET_WM_STATE_NO_TASKBAR.
10024 2006-11-02  Jackson Harper  <jackson@ximian.com>
10026         * TextControl.cs: Increment count by one, since in the update view
10027         count - 1 is used.
10029 2006-11-02  Jackson Harper  <jackson@ximian.com>
10031         * TextBoxBase.cs: Use client rectangle not bounds for checking if
10032         the mouse is in the client rectangle (duh).
10034 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10035         
10036         * TrackBar.cs: Fixed trackbar jumping around when clicking
10037         on it - the trackbar was not detecting correctly at which
10038         side of the thumb the click was done. (fixes #79718)
10040 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
10042         * ListBox.cs: scroll visible area when change SelectedIndex to
10043         a non visible area.  Fixes #79481.
10045 2006-11-01  Jackson Harper  <jackson@ximian.com>
10047         * TextControl.cs: When replacing the selection move the selection
10048         start/end/anchor to the end of the new text.
10050 2006-11-01  Jackson Harper  <jackson@ximian.com>
10052         * XplatUIWin32.cs: When setting the parent change the controls
10053         visibility to it's visibility flag, not to it's old parents
10054         visibility (.Visible walks the parent chain).
10056 2006-11-01  Chris Toshok  <toshok@ximian.com>
10058         * XplatUIX11.cs: revert the #79790 fix, as the simple.
10059         XSetTransientForHint fix breaks paint .net's tool windows.  more
10060         work needed for that one.
10062 2006-11-01  Chris Toshok  <toshok@ximian.com>
10064         * ScrollBar.cs: throw ArgumentException instead of Exception in
10065         LargeChange/SmallChange setters.  fixes unit tests.
10067 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
10069         * ContainerControl.cs: reverted rev.67183 (which was itself
10070         a reversion of rev.66853... eh).
10071         
10072         * Control.cs: Fixes Reflector hang by changing Focus() call
10073         to what it was before rev.66643 (calling Select() here sets 
10074         ActiveControl, which in some situations calls back Focus and 
10075         eventually does a stack overflow). Temp fix.    
10076         Changes to GetNextControl() to not look for children to select when
10077         parent cannot be selectable (so it looks for siblings instead)  
10078         
10079 2006-10-31  Mike Kestner  <mkestner@novell.com>
10081         * CheckedListBox.cs : off by one error in returned index from
10082         ObjectCollection.Add.  Fixes #79758.
10084 2006-10-31  Chris Toshok  <toshok@ximian.com>
10086         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
10087         calls for the textbox/spinner, to keep from recursing to the point
10088         where we crash.  Fixes #79760.
10090 2006-10-31  Chris Toshok  <toshok@ximian.com>
10092         * ListControl.cs (set_SelectedValue): don't throw exceptions on
10093         null/"" value, just return.  matches ms's behavior and fixes some
10094         failing tests.
10096 2006-10-31  Chris Toshok  <toshok@ximian.com>
10098         * Control.cs (set_Capture): make a logic a little easier to
10099         follow.
10101         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
10102         if it's being destroyed.  A necessary fix surely, but a bandaid
10103         also, to fix the stuck capture problem in bug #78413.
10105 2006-10-31  Chris Toshok  <toshok@ximian.com>
10107         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
10108         convention of clearing hwnd.ClientRect when we set the
10109         width/height (so it'll be recalculated by Hwnd).
10111 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
10113         * ContainerControl.cs: reversed Contains check from
10114         ActiveControl due to hanging problems. This fix
10115         partly regresses #79667 (button does not have
10116         initial focus), so this might be a symptom for 
10117         a larger parenting problem (set_ActiveControl
10118         is being called but the child control does
10119         not have the parent set yet?)   
10120         
10121 2006-10-31  Mike Kestner  <mkestner@novell.com>
10123         * MenuAPI.cs : fix keynav when menu is click activated.
10125 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
10127         * ToolStrip*: Version 0.2.
10129         * MenuStrip.cs: Version 0.1.
10131         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
10133 2006-10-30  Chris Toshok  <toshok@ximian.com>
10135         [ fixes the oversized notify icon issue in bug #79745 ]
10136         
10137         * NotifyIcon.cs: scale the icon down to the size we're given by
10138         the XplatUI layer (this would be faster if we did it once instead
10139         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
10140         since it's never invoked.
10142         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
10143         pixels high by default, so let's hardcode our systray icon to that
10144         size.  The SYSTEM_TRAY protocol should really have a way for
10145         client apps to query for the correct icon size.. but oh well.  A
10146         couple of patches to deal with the screwy client_window ==
10147         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
10148         instance, and also make sure we don't XSelectInput twice).
10150 2006-10-30  Chris Toshok  <toshok@ximian.com>
10152         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
10153         recreating forms.  Control recreation is the bane of my existence.
10154         Fix it in a way that keeps everyone happy.
10156 2006-10-30  Chris Toshok  <toshok@ximian.com>
10158         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
10159         just non-CHILD ones.  otherwise sometimes scrollbars end up with
10160         client_windows not being resized to the proper size (ReportBuilder
10161         shows this extremely well).
10163 2006-10-30  Chris Toshok  <toshok@ximian.com>
10165         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
10166         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
10167         showing up in the gnome taskbar.  Fixes bug #79790.
10169 2006-10-30  Chris Toshok  <toshok@ximian.com>
10171         * ApplicationContext.cs: guard against a NRE.
10173         * Application.cs: null out the old MainForm for the context, so we
10174         don't try to use it again once it's disposed.  Fixes bug #79783.
10176 2006-10-30  Chris Toshok  <toshok@ximian.com>
10178         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
10179         BindingContext, set the data source directly, otherwise do the
10180         lazy approach - the actual ListManager will be created when we get
10181         a BindingContext. Fixes bug #79700.
10183 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
10185         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10186           XplatUIX11.cs: Remove old 2 parameter SetVisible.
10188         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
10190 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
10192         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
10193         of SetVisible that allows a window to be shown, but not activated.
10194         This is needed on Windows for MenuStrip, and can probably be used
10195         with MainMenu and ComboBox to fix the focus stealing issues on
10196         Windows.
10198         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
10200 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
10202         * PictureBox.cs: Fix the output of the ToString method.
10204 2006-10-29  Chris Toshok  <toshok@ximian.com>
10206         * Control.cs (get_TopLevelControl): fix bug #79781.
10208 2006-10-29  Chris Toshok  <toshok@ximian.com>
10210         * ListControl.cs (set_DataSource): throw Exception here, not
10211         ArgumentException, to match MS behavior.
10213 2006-10-29  Chris Toshok  <toshok@ximian.com>
10215         * Form.cs: remove the try-catch's around calls to GetWindowState.
10216         We can just check the return value.
10218         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
10219         Instead return -1.
10221         * XplatUI.cs: Add note about additional return value for
10222         GetWindowState.
10224 2006-10-29  Chris Toshok  <toshok@ximian.com>
10226         * Control.cs (CreateHandle): when we create our handle, we also
10227         create the handles of our child controls.  Fixes one of the
10228         Control unit tests (CH11).
10230 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
10232         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
10234 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
10236         * ThemeClearlooks.cs: A little speedup.
10238 2006-10-27  Chris Toshok  <toshok@ximian.com>
10240         * Control.cs: implement Control.FromChildHandle in a way that
10241         matches the docs (and fixes the failed test.)
10243 2006-10-27  Chris Toshok  <toshok@ximian.com>
10245         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
10246         comments).
10248         * DataGrid.cs: implement ResetForeColor such that the tests
10249         succeed.
10250         
10251 2006-10-27  Chris Toshok  <toshok@ximian.com>
10253         * ToolBarButton.cs: setting text/tooltiptext to null results in it
10254         being set to "".  Fixes bug #79759.
10256 2006-10-27  Jackson Harper  <jackson@ximian.com>
10258         * TextControl.cs: We need to clear the entire selection area when
10259         setting the start, otherwise multiline selections are still
10260         visible.
10262 2006-10-26  Chris Toshok  <toshok@ximian.com>
10264         * PropertyGridView.cs: 
10266         - ifdef all the code specific to the double
10267         buffer case, and provide some alternatives in the non-doublebuffer
10268         code, which makes heavy use of XplatUI.ScrollWindow to move things
10269         around without having to invalidate (and cause flicker).  There
10270         are still some drawing problems in the non-doublebuffered case, so
10271         DOUBLEBUFFER is defined by default.
10273         - Fix the way dropdowns are handled.  now we explicitly watch for
10274         the events which might cause the dropdown to close, and break out
10275         of the nested event loop there.  This gets rid of all Capture
10276         code, at the expense of the Msg special casing.  Seems to work,
10277         though, and fixes bug #79743.
10279 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
10280         * Control.cs: SetIsRecreating now recreates implicitly added
10281         child controls as well. Finally fixes #79629. The flag passed to 
10282         SetIsRecreating has also been removed since it wasn't used.
10283         
10284 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10286         * PageSetupDialog.cs: Clean some code, fix some bits, 
10287         add some checks, and add a printer sub-dialog.
10289 2006-10-26  Chris Toshok  <toshok@ximian.com>
10291         * PropertyGrid.cs: make set_SelectedObject call
10292         set_SelectedObjects, and move the duplicate logic to the
10293         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
10295         * PropertyGridView.cs: hide the textbox when we get a
10296         SelectedObjectsChanged event.
10298         Fixes bug #79748.
10300 2006-10-26  Chris Toshok  <toshok@ximian.com>
10302         * PropertyGridView.cs: deal with the type converter not supporting
10303         GetStandardValues() or GetStandardValues() returning null, which
10304         is does in the default case.  Fixes #79742.
10306 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
10308         * CheckedListBox.cs: nunit no longer crashes when selecting 
10309         Project/Edit menu option
10310         
10311 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
10313         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
10314         is no menu selected. fixes #79739
10316 2006-10-25  Chris Toshok  <toshok@ximian.com>
10318         * PropertyGridView.cs: factor out the splitter invalidation code
10319         into the SplitterPercent setter, and for kicks implement the
10320         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
10321         amount in either direction.
10323 2006-10-25  Chris Toshok  <toshok@ximian.com>
10325         * PropertyGridView.cs: do some cleanup of the brush used to draw
10326         text - read only fields should be grayed out.  not sure how to do
10327         this with the textbox, though.  but the textbox's should also be
10328         readonly now at least.  Also, hide/show the textbox when resizing
10329         the control.
10330         
10331         * CursorConverter.cs: use System.Reflection when getting the
10332         properties of Cursors, as TypeDescriptor.GetProperties isn't
10333         returning static properties.
10335 2006-10-25  Chris Toshok  <toshok@ximian.com>
10337         * PropertyGridView.cs: factor out the up/down handling, and reuse
10338         it for page up/down.  also add End/Home support.
10340 2006-10-25  Chris Toshok  <toshok@ximian.com>
10342         * PropertyGridView.cs:
10344         - ensure the selected grid item is visible in the scrolled area,
10345         fixes bug #79572.
10347         - fix Keys.Down handling when you're on the last item in the
10348         propertygrid.
10350 2006-10-25  Mike Kestner  <mkestner@novell.com>
10352         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
10353         clicks too.  Fixes #79725.
10355 2006-10-24  Chris Toshok  <toshok@ximian.com>
10357         * PropertyGrid.cs: use property.Converter instead of
10358         TypeDescriptor.GetConverter(property.PropertyType), so we catch
10359         TypeConverters declared on the property as well as on the
10360         PropertyType.  Fixes bug #79678.
10362 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
10364         * MimeIcon.cs, Mime.cs:
10365           Fallback to the default platform handler if no shared mime info
10366           stuff exists (fixes #79693).
10368 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
10369         * ContainerControl.cs: Incorrect contains check in ActiveControl 
10370         from previous fix (duh).
10372 2006-10-20  Chris Toshok  <toshok@ximian.com>
10374         * PropertyGridView.cs: the dropdown should be MIN(number of items
10375         in list, 15).  Fixes #79551.
10377 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
10378         Fixes #79384, #79394, #79652, #79667
10379         * Application.cs: 
10380         
10381         - Modal windows are now destroyed in the proper order for windows
10382         
10383         * ContainerControl.cs:
10384         
10385         - ActiveControl setter has more conditions on when to return:
10386                 - if we're reselecting the active control, but it actually
10387                 didn't have focus (window hidden or some such), it runs
10388                 - if the active control being selected doesn't actually 
10389                 exist in the container, it returns
10390         
10391         * Form.cs
10392         
10393         - The ShowDialog now gets the current form as the owner when
10394         invoking without parameters, and correctly activates the owner 
10395         when returning
10396         
10397         * MessageBox.cs
10398         
10399         - MessageBox now catches the Escape key to exit
10401 2006-10-20  Chris Toshok  <toshok@ximian.com>
10403         * PropertyGridView.cs: fix a number of issues (bug #78565, and
10404         most of bug #79676):
10406         - you can navigate around the property grid with the arrow keys.
10408         - the dropdown is sized properly when the pg has a vertical
10409         scrollbar.
10411         - fix the indentation for subentries, and properly select the
10412         entire label rect.
10414         - fix the gray bar's drawing (only draw it to the last element,
10415         not for the height of the control.  Also make sure we draw that
10416         last horizontal grid line.
10418         - use the same mechanism the datagrid uses wrt the editing textbox
10419         when scrolling/resizing/etc.  Namely, we hide it first, do the
10420         operation, then show it again (if it's still visible).
10421         
10422         - aggressively remove a lot of unnecessary refreshes (and also
10423         calls to Invalidate(). call more limited variants, and only redraw
10424         what we need.)
10425         
10426         * PropertyGrid.cs:
10428         - when we're populating the merged collection, fill in the UI
10429         parent with either the passed in item, or the category item we
10430         create.
10432         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
10434         * GridItem.cs: drop some fully qualified names.
10435         
10436         * GridEntry.cs: add a "UIParent", which is basically the parent
10437         treenode.
10439         * GridItemCollection.cs: add an IndexOf method.
10441 2006-10-20  Mike Kestner  <mkestner@novell.com>
10443         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
10444         a working win32 NC invalidation mechanism, we can't invalidate
10445         menus.  [Fixes #79705]
10447 2006-10-20  Mike Kestner  <mkestner@novell.com>
10449         * ListBox.cs : don't update the VScrollbar if the list is empty,
10450         just hide it.  [Fixes #79692]
10452 2006-10-20  Jackson Harper  <jackson@ximian.com>
10454         * RichTextBox.cs: Handle some special chars better, and don't skip
10455         the entire group when we encounter a special char that we don't
10456         handle correctly.
10458 2006-10-18  Chris Toshok  <toshok@ximian.com>
10460         * PropertyGridView.cs: address a number of issues from bug #79676,
10461         mostly of the cosmetic variety.
10463         - The highlight rectangle for indented items not extends all the
10464         way to the left.
10466         - Indented items aren't indented so much.
10468         - the dropdown is properly sized width-wise if the pg has a
10469         vertical scrollbar.
10471 2006-10-18  Chris Toshok  <toshok@ximian.com>
10473         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
10474         systray stuff is rather convoluted to begin with.
10476         systray icons are a single window for some reason (that I haven't
10477         figured out yet), and for them, client_window == whole_window.
10478         Given the way the tests are structured elsewhere to determine
10479         which paints are pending (client vs. nc), that situation will
10480         always yield PAINT, not NCPAINT.  So, if we have a pending
10481         nc_expose and no pending expose, remove the hwnd from the paint
10482         queue, and also set nc_expose_pending to false, to keep us from
10483         blocking further expose's adding the hwnd to the paint queue.
10485         phew.  like i said, a rather convoluted change.  Fixes the
10486         notifyicon repaint issues in bug #79645.
10488 2006-10-18  Chris Toshok  <toshok@ximian.com>
10490         * Form.cs: when getting the backcolor of the form, don't get
10491         base.BackColor, as this allows parents to influence the background
10492         color.  This breaks mdi forms.  Instead, if the background_color
10493         is empty, return the default.
10495 2006-10-18  Chris Toshok  <toshok@ximian.com>
10497         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
10498         to being private instead of internal static.
10500         * Control.cs: remove all the stupid ParentWaitingOnRecreation
10501         crap, it wasn't working for more deeply nested controls anyway,
10502         and we already have the is_recreating flag - use that instead.
10503         Before calling DestroyHandle in RecreateHandle, recurse through
10504         the control tree setting it to true.  this returns the recreate
10505         code to much of its original simplicity, while now guaranteeing we
10506         actually recreate everything we're supposed to.  This change gets
10507         fyireporting actually showing mdi children.
10509 2006-10-17  Chris Toshok  <toshok@ximian.com>
10511         * Form.cs: remove some debug spew, and collapse some duplicate
10512         code at the end of SetClientSizeCore.
10514         * XplatUIX11.cs: 
10515         - add some more debug spew here too wrt Destroy handling.
10516         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
10517         in Control's handling of WM_DESTROY.
10518         - Remove the handling of zombie window DestroyNotifies from the
10519         event loop - we don't need it.  Now the only DestroyNotifies we
10520         actually handle are ones generated by X.
10521         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
10522         match gtk's (functioning) handling of this. This keep metacity
10523         from leaving droppings in the form of wm borders with no window
10524         contents all over the place.
10526         * Control.cs:
10527         - add a bunch of debug spew wrt control recreation.
10528         - fix a bug where we weren't tracking Visible properly on
10529         recreated hwnds.
10530         - fixed the WM_PAINT double buffer handling to support re-entrant
10531         calls (yes, i know it's gross, but it's happening to us).
10533 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
10534         * ThemeWin32Classic.cs: changed drawing of selected days
10535         to make them look better.
10537 2006-10-16  Chris Toshok  <toshok@ximian.com>
10539         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
10540         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
10542         * XplatUIX11.cs: move away from using hwnd.client_dc and
10543         hwnd.non_client_dc and on to a stack of dc's (and in window's
10544         case, PAINTSTRUCT's), so we can deal with nested Paint calls
10545         without puking or not disposing of Graphics objects.
10547         * XplatUIOSX.cs: same.
10549         * XplatUIWin32.cs: same.
10551 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
10553         * FileDialog.cs: Don't call on_directory_changed inside
10554           OnSelectedIndexChanged (it changes the SelectedIndex too).
10555           Instead move it to OnSelectionChangeCommitted.
10557 2006-10-13  Chris Toshok  <toshok@ximian.com>
10559         * XplatUIX11.cs: more Destroy work.  the current code does the
10560         following things, in order:
10562         1. Enumerates all handles of all controls at or below the one
10563         being destroyed, in pre-order.  As it is doing this, it marks the
10564         handles as zombie and clears all references to them.
10565         
10566         2. calls XDestroyWindow on the window passed in.
10568         3. SendMessage's WM_DESTROY to all he handles in the accumulated
10569         list.
10571 2006-10-13  Chris Toshok  <toshok@ximian.com>
10573         * XplatUIX11.cs: set hwnd.zombie to true before calling
10574         SendMessage (WM_DESTROY).  this keeps us from marking the new
10575         window a zombie, and also keeps us from calling sendmessage at
10576         all.
10578 2006-10-13  Jackson Harper  <jackson@ximian.com>
10580         * TextControl.cs: Do not show the caret and selection at the same
10581         time.  Reduces ugliness by 35%.
10583 2006-10-13  Chris Toshok  <toshok@ximian.com>
10585         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
10586         zombie after we do the recursive call, so we actually do call
10587         SendMessage on the children controls.
10588         (GetMessage): if we find a pending paint event for a zombie hwnd,
10589         remove the hwnd from the paint queue, or else it will always be
10590         there (and we'll effectively loop infinitely)
10592 2006-10-13  Mike Kestner  <mkestner@novell.com>
10594         * MenuItem.cs : add Selected format under keynav too.
10595         Fixes #79528.
10597 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10599         * PropertyGrid.cs: Fixed some NRE's and small difference between our
10600         implementation and that of MS.
10602 2006-10-13  Chris Toshok  <toshok@ximian.com>
10604         * Control.cs (OnInvalidated) only futz with the invalid_region if
10605         the control is double buffered.  this fixes the apparent hang in
10606         the ListView unit tests.  Someone needs to make the
10607         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
10609 2006-10-13  Chris Toshok  <toshok@ximian.com>
10611         * PropertyGridView.cs:
10613         - do a little refactoring so that only one place calls
10614         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
10615         else call that.  Also make it Refresh, since there are redraw bugs
10616         otherwise (we should take a look at that...)
10618         - do a little more refactoring work to share the body of code
10619         involved with the drop down.  it was duplicated in the code
10620         dealing with the listbox handling and in the code dealing with the
10621         UITypeEditors.
10623         - add a Capture to the dropdown form's control once it's
10624         displayed, and add a MouseDown handler that checks to make sure
10625         the position is inside the control.  If it's not, close the
10626         dropdown.  This fixes #78190.
10628         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
10629         if the value is different than the initial value.
10630         
10631 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
10633         * Control.cs: see #78650
10634         - Fixed GetNextControl for several cases:
10635                 - Changed FindFlatForward to return 
10636                 correct sibling control when more than one
10637                 control has same TabIndex as the currently 
10638                 focused one.
10639                 - Changed FindFlatBackward to loop children
10640                 from last to first and apply same logic as in
10641                 FindFlatForward
10642                 - Changed FindControlForward to search for
10643                 children when control is not a container
10644                 but has children, or search for siblings if
10645                 control is a container...
10646                 - Changed FindControlBackward   to continue
10647                 searching for child controls when hitting 
10648                 Panel-like parents
10649                 
10650         - Fixed Focus method to update ActiveControl
10651         (FocusTest.FocusSetsActive failure)
10652         
10653         * TabControl.cs:
10654         - Focus rectangle now refreshes when gaining
10655         or losing focus
10656         - Removed grab for Tab key on IsInputKey that 
10657         was keeping tab navigation from working (#78650)
10659 2006-10-13  Chris Toshok  <toshok@ximian.com>
10661         * PropertyGridView.cs:
10662         - Rewrite SetPropertyValue to loop over SelectedGridItem's
10663         SelectedObjects.
10665         - Deal with GridItem.Value == null a few places.
10667         * PropertyGrid.cs: 
10668         - replace the PopulateGridItemCollection with a pair of methods
10669         which compute the intersection of all the properties in the
10670         SelectedObjects array.  Fixes #79615.
10672         - Throw ArgumentException from set_SelectedObjects if there's a
10673         null in the array.
10675         - Add GetTarget method which can be used to traverse up the
10676         GridItem.Parent chain.  It depends on the assumption that
10677         selected_objects for different GridEntries are always in the same
10678         order (a safe assumption).  Use this method and loop over all the
10679         selected objects in the entry when calling RemoveValueChanged and
10680         AddValueChanged.
10681         
10682         * GridEntry.cs: Make this handle multiple selected objects.
10683         .Value returns null if not all the selected objects share the same
10684         value.
10686 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
10687         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
10688           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
10689           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
10690           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
10691           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
10692         add additional functionality.
10694 2006-10-12  Mike Kestner  <mkestner@novell.com>
10696         * ErrorProvider.cs : new ToolTipWindow ctor sig.
10697         * HelpProvider.cs : new ToolTipWindow ctor sig.
10698         * ToolTip.cs : remove ToolTip param from Window sig since it is
10699         not used.
10700         * ToolBar.cs : add tooltip support.  Fixes #79565.
10702 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
10704         * ComboBox.cs: move the events in set_SelectedIndex to 
10705         after the call to HighlightIndex in order to avoid 
10706         possible recursion and subsequent problems with the call
10707         to HighlightIndex and include a range check in 
10708         set_HighlightIndex. Fixes #79588
10709         
10710 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
10712         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
10713         to ui thread's settings instead of sunday. 
10714         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
10716 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
10718         * DateTimePicker.cs
10719         * MonthCalendar.cs
10720         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
10721         and implement missing functionality (selecting different parts 
10722         of the date and edit them individually with the keyboard).
10723         
10724 2006-10-11  Chris Toshok  <toshok@ximian.com>
10726         * Control.cs (OnInvalidated): fix NRE relating to last change.
10728 2006-10-11  Chris Toshok  <toshok@ximian.com>
10730         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
10731         atoms in _NET_WM_STATE here if the window is maximized.  We need
10732         to do this because we're *replacing* the existing _NET_WM_STATE
10733         property, so those atoms will be lost otherwise, and any further
10734         call to GetWindowState will return Normal for a window which is
10735         actually maximized.  Fixes #79338.
10737 2006-10-11  Jackson Harper  <jackson@ximian.com>
10739         * TextControl.cs: Special case for setting selection end to
10740         selection start, we basically kill the anchor.
10741         - some todo comments.
10743 2006-10-11  Chris Toshok  <toshok@ximian.com>
10745         * Control.cs: switch to using an "invalid_region" to track which
10746         parts of the image buffer need updating.  This is more code than
10747         the simple fix from r66532.  That version just attempted to always
10748         fill the entire buffer on redraw, which turns out to be
10749         inefficient when invalidating small rectangles.  This version
10750         simply adds the invalid rectangle to the invalid region.  When we
10751         get any WM_PAINT message we see if it can be filled using the
10752         image buffer, and if it can't (if the paint event's clip rectangle
10753         is visible in the invalid region) we first fill the image buffer.
10754         So, the image buffer is still a cache, we just fill it lazily.
10756         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
10757         need it any longer.
10759 2006-10-11  Chris Toshok  <toshok@ximian.com>
10761         * XplatUIX11.cs (SetWindowPos): we need to update both position as
10762         well as size after calling XMoveResizeWindow.  This keeps us from
10763         ignoring future SetWindowPos calls.  Fixes the disappearing
10764         DateTimePicker in the ToolBarDockExample from bug #72499.
10766 2006-10-11  Chris Toshok  <toshok@ximian.com>
10768         * TextBoxBase.cs: reorder things a bit when it comes to
10769         resizing-causing-recalculation.  we were recalculating the
10770         document when our position was changed, which shouldn't happen.
10771         We only care about size changes.  Clear up some more redundant
10772         recalculation calls while I'm at it.  This makes the toolbar dock
10773         example snappy when you're just dragging toolbars around (since it
10774         causes a relayout whenever you move one.)
10776 2006-10-11  Chris Toshok  <toshok@ximian.com>
10778         * ToolBarButton.cs (get_Rectangle): this only returns
10779         Rectangle.Empty if Visible == false, or Parent == null.
10780         Parent.Visible doesn't matter.
10782 2006-10-10  Chris Toshok  <toshok@ximian.com>
10784         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
10785         by .net 1.1, so switch to an internal method instead.
10787 2006-10-10  Chris Toshok  <toshok@ximian.com>
10789         * Control.cs (WM_PAINT): when a control is double buffered we draw
10790         initially to the ImageBuffer and then copy from there.  But when a
10791         parent control which has child controls is double buffered, the
10792         initial drawing doesn't encompass the entire ClientRectangle of
10793         the parent control, so we end up with uninitialized bits (this is
10794         easily seen by dragging the top toolbar in
10795         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
10796         manually set the ClipRectangle of the paint_event (only the one we
10797         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
10798         of the nastiness in bug #72499.
10800         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
10801         which we use in Control.cs's WM_PAINT handling.
10803 2006-10-10  Jackson Harper  <jackson@ximian.com>
10805         * TextBoxBase.cs: Finish off the autoscrolling stuff.
10807 2006-10-10  Chris Toshok  <toshok@ximian.com>
10809         * Cursor.cs: Apply a slightly different patch to the one suggested
10810         in #79609.
10812 2006-10-10  Jackson Harper  <jackson@ximian.com>
10814         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
10815         not the parent form.
10816         * TextControl.cs: use difference in old line count vs new count to
10817         calculate how many lines were added, this takes into account soft
10818         line breaks properly.
10820 2006-10-10  Chris Toshok  <toshok@ximian.com>
10822         * LinkLabel.cs: don't call MeasureCharacterRanges against a
10823         rectangle located at 0,0 and the size of the text.  Use
10824         ClientRectangle instead.  This fixes rendering of non-left aligned
10825         link labels.
10827 2006-10-10  Jackson Harper  <jackson@ximian.com>
10829         * TextBoxBase.cs: When we set the selection start position the
10830         caret.
10831         * TextControl.cs: Need to update the caret when we decrement it to
10832         zero.
10833         - Make sure that the selection_visible flag gets reset to false if
10834         the selection isn't visible.  Before this you could get it set to
10835         visible by changing the selection start, then changing the end to
10836         equal the start.
10838 2006-10-09  Jackson Harper  <jackson@ximian.com>
10840         * TreeView.cs: Don't update scrollbars when we aren't visible.
10841         * TreeNodeCollection.cs: Only need to update scrollbars if being
10842         added to an expanded visible node or the root node.
10844 2006-10-09  Chris Toshok  <toshok@ximian.com>
10846         * XplatUIX11.cs (SendMessage): fix NRE.
10848 2006-10-09  Jackson Harper  <jackson@ximian.com>
10850         * TextBoxBase.cs: Implement horizontal autoscrolling.
10851         * TextControl.cs: Add a movement types that allows moving forward
10852         and backwards without wrapping.
10854 2006-10-09  Mike Kestner  <mkestner@novell.com>
10856         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
10857         with focus "expansion" of labels.  Fixes #79532 and then some.
10858         * ThemeWin32Classic.cs : add LineLimit to ListView label format
10859         when wrapping.
10861 2006-10-09  Jackson Harper  <jackson@ximian.com>
10863         * TextBoxBase.cs: Set the default max values to MaxValue since
10864         we use the scrollbar for autoscrolling and the default value is
10865         100.  If we don't do this the caret won't keep up with typing
10866         after about 18 characters.
10867         * TextControl.cs: Make sure the selection is offset by the
10868         viewport x.  This fixes selection when using auto scrolling.
10870 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
10871         
10872         * Form.cs: The active control should be selected after the 
10873         OnLoad so that any child control initialization that affects
10874         the selection is done. Fixes #79406
10876 2006-10-06  Chris Toshok  <toshok@ximian.com>
10878         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
10879         to have no evil effects.
10881         - Stop selecting StructureNotifyMask on non-toplevel windows.
10883           The only way children should be resized is by using the SWF api,
10884           and we already send WM_WINDOWPOSCHANGED messages in those cases.
10885           Toplevel windows can be interacted with via the window manager,
10886           and so we keep the input mask there.
10888           The other event StructureNotifyMask gives us (that we care
10889           about) is DestroyNotify.  The code is already structured such
10890           that it assumes we won't be getting a DestroyNotify event for
10891           the window we pass to XDestroyWindow (which is what
10892           StructureNotifyMask is supposed to guarantee.)  So, that code
10893           shouldn't be affected by this either.
10895         - Stop selecting VisibilityChangeMask altogether.
10897           We weren't doing anything with the resulting events anyway.
10898         
10899         This vastly reduces the number of X requests and events we see
10900         when resizing/laying out a large ui.
10902 2006-10-06  Chris Toshok  <toshok@ximian.com>
10904         * ScrollableControl.cs (DisplayRectangle): we need to take into
10905         account the DockPadding regardless of whether or not auto_scroll
10906         == true.  rework this slightly to this effect, and fix bug #79606,
10907         and part of #72499 (you can now see the drag handles and drag
10908         toolbars around).
10910 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
10912         * ListViewItem.cs: Collections of selected and checked items are now
10913         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
10914         we mark the collection "dirty".
10915         * ListView.cs: Marked collections readonly. Modified UpdateSelection
10916         to only clear SelectedItems when a new item is selected and MultiSelect
10917         is enabled. CheckedItems and SelectedItems now subscribe to Changed
10918         event of ListViewItemCollection, and mark its list dirty whenever
10919         that event is fire. This allows us to return selected/checked items 
10920         in the same order as they are in the Items collection. This matches
10921         the MS behavior.
10923 2006-10-06  Chris Toshok  <toshok@ximian.com>
10925         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
10926         right mouse clicks.  Fixes bug #79593.
10928 2006-10-06  Chris Toshok  <toshok@ximian.com>
10930         * Splitter.cs: doh, fix splitters that don't want to cancel the
10931         movement when you drag them.  Also, impose the limits on the
10932         values we send to the SplitterMovingEvent.  Fixes #79598.
10934 2006-10-06  Jackson Harper  <jackson@ximian.com>
10936         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
10937         since we use this for auto scrolling also.
10939 2006-10-05  Chris Toshok  <toshok@ximian.com>
10941         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
10942         beginning to think that most datagrid column types don't need this
10943         method.  Fixes bug #79392.
10945 2006-10-05  Chris Toshok  <toshok@ximian.com>
10947         * DataGrid.cs: move back to a more lazy scheme for creating the
10948         CurrencyManager, so we aren't updating it every time you set
10949         either DataSource or DataMember.  Also, don't call
10950         RecreateDataGridRows if the currency manager hasn't changed.
10952 2006-10-05  Chris Toshok  <toshok@ximian.com>
10954         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
10955         emitted, SelectedIndex should already be updated.  Fixes bug
10956         #78929.
10958 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
10960         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
10961           ToolStripTextBox.cs: Initial commit.
10962         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
10964 2006-10-05  Jackson Harper  <jackson@ximian.com>
10966         * TabControl.cs: We need to invalidate the tab control area when
10967         new ones are added (duh).
10969 2006-10-03  Chris Toshok  <toshok@ximian.com>
10971         * Form.cs (ProcessDialogKey): if the focused control is in this
10972         form and is a button, call its PerformClick method here.  Fixes
10973         #79534.
10975 2006-10-04  Jackson Harper  <jackson@ximian.com>
10977         * TabPage.cs: Ignore setting of Visible, and add an internal
10978         method for setting the controls visibility.  TabPage's Visible
10979         property is a little strange on MS, this seems to make us
10980         compatible, and fixes cases where people set all the tab pages to
10981         visible.
10982         * TabControl.cs: Use the new internal setting on tab pages
10983         visibility.
10985 2006-10-03  Mike Kestner  <mkestner@novell.com>
10987         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
10989 2006-10-03  Mike Kestner  <mkestner@novell.com>
10991         * ListView.cs : use is_visible instead of Visible to check if 
10992         scrollbars should be placed/sized.  Also some max_wrap_width
10993         love for LargeIcon view.  [Fixes #79533]
10995 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
10997         * TextControl.cs :
10998           Make set_TextAlign() do actually update the align. Fixed #78403.
11000 2006-10-03  Chris Toshok  <toshok@ximian.com>
11002         * DataGrid.cs: fix a crash when switching datasources if the
11003         vertical scrollbar is at someplace other than Value = 0.  Also,
11004         reduce the number of recalculation passes we do in SetDataSource
11005         from 2 to 1.
11007 2006-10-03  Jackson Harper  <jackson@ximian.com>
11009         * TextBoxBase.cs: Move the if value the same bail check up, we
11010         don't want to empty the document if it is already empty, this
11011         seems to severly mess up the caret.  TODO: I should probably fix
11012         the empty statement to update teh caret somehow.
11014 2006-10-03  Chris Toshok  <toshok@ximian.com>
11016         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
11017         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
11018         reflection, an internal row type, properties on said type, etc.)
11019         will work with our datagrid.  Fixes #79531.
11021 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
11023         * FileDialog.cs: Don't crash if a path is not accessible
11024           (System.UnauthorizedAccessException). Fixes #79569.
11025         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
11026           a ':' too. Return unknown icon for those paths/files.
11028 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
11030         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
11031         GetContainerControl returns null.
11033 2006-10-02  Chris Toshok  <toshok@ximian.com>
11035         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
11036         call to XGetWindowAttributes instead of "handle".  fixes an X
11037         error using notifyicon after the NotifyIconWindow to Form base
11038         class switch.
11040 2006-10-02  Chris Toshok  <toshok@ximian.com>
11042         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
11043         server grab and looping we need to do to get down to the most
11044         deeply nested child window.
11045         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
11046         QueryPointer again after the WarpPointer so we can generate a
11047         proper (fake) MotionNotify event to be enqueued in the destination
11048         window's queue.
11049         (GetCursorPos): call QueryPointer.
11051         Fixes #79556.
11053 2006-10-02  Jackson Harper  <jackson@ximian.com>
11055         * NotifyIcon.cs: Derive the notify icon from a form, so things
11056         like FindForm work on it.
11057         - Swallow the WM_CONTEXTMENU message, since that is generated on
11058         mouse down, and context menu is a mouse up kinda guy.  I believe
11059         the correct fix here is probably to make the notify icon entirely
11060         NC area, but this seems to work fine for anyone not manipulating
11061         WndProc.
11063 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
11065         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
11066           ToolStripItemCollection.cs, ToolStripLabel.cs,
11067           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
11068           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
11069           Initial implementation.
11070         * TextRenderer.cs: Provide padding to MeasureText.
11072 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
11074         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
11075         of ButtonBaseAccessibleObject. Fix bug #79552.
11077 2006-10-02  Jackson Harper  <jackson@ximian.com>
11079         * MdiWindowManager.cs: When maximizing use the containers client
11080         rect, not it's bounds, so nc area is accounted correctly.
11081         - Use the parent form's size for the menu position, since the
11082         client isn't always the full form size.
11084 2006-10-01  Chris Toshok  <toshok@ximian.com>
11086         * ScrollableControl.cs: make sure neither right_edge or
11087         bottom_edge are < 0, since they're used as LargeChange for the
11088         horiz/vert scrollbars respectively.  Fixes #79539.
11090 2006-10-01  Chris Toshok  <toshok@ximian.com>
11092         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
11093         the xplatuix11 code can cause us to destroy/recreate our handle.
11095         * XplatUIX11.cs
11096         (SystrayAdd):
11097         - this code can be invoked many times for the same Hwnd.  Make
11098           sure we only destroy the client window once (the first time this
11099           method is called).  This fixes bug #79544.
11100         - Remove the call to the improperly bound XSync.  why we had two
11101           bindings to this, I will never know, but this call resulted in
11102           events being discarded from the queue(!).
11103         - correct a misunderstanding of _XEMBED_INFO - the second atom is
11104           not our current state but the state we wish to be in.  So, 0 if
11105           we don't want to be mapped.  Change it to 1.
11106         (SystrayRemove): The XEMBED spec makes mention of the fact that
11107         gtk doesn't support the reparent of client windows away from the
11108         embedder.  Looking at gtksocket-x11.c seems to agree with this.
11109         The only avenue we have for removing systray icons is to destroy
11110         them.  We don't want the handle to go away for good, though, so
11111         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
11112         #79545.
11113         
11114 2006-10-01  Chris Toshok  <toshok@ximian.com>
11116         * Form.cs (WndProc): inline the native_enabled variable usage into
11117         the cases in which it's used.  Fixes #79536.
11119 2006-09-29  Mike Kestner  <mkestner@novell.com>
11121         * ListView.cs : toggle the selection state for ctrl clicks in 
11122         multiselect mode. [Fixes #79417]
11124 2006-09-29  Mike Kestner  <mkestner@novell.com>
11126         * ListView.cs : kill CanMultiSelect and refactor the selection
11127         code to support multiselection in the absence of mod keys. Steal
11128         arrow/home/end keys by overriding InternalPreProcessMessage to
11129         restore regressed keynav behavior.
11130         [Fixes #79416]
11132 2006-09-29  Jackson Harper  <jackson@ximian.com>
11134         * MdiClient.cs: Repaint the titlebars when the active window is
11135         changed.
11137 2006-09-29  Chris Toshok  <toshok@ximian.com>
11139         * Application.cs: when entering a runloop with a modal, make sure
11140         the hwnd is enabled.  Fixes #79480.
11142 2006-09-29  Chris Toshok  <toshok@ximian.com>
11144         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
11145         when ListManager.CanAddRows == false, bump us back one.
11147         * DataGridColumnStyle.cs (ParentReadOnly): remove the
11148         listmanager.CanAddRows check.  This makes ArrayLists uneditable
11149         using a datagrid, which is not right.
11150         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
11151         is an IEditable, but call property_descriptor.SetValue regardless.
11152         fixes #79435.
11154 2006-09-29  Chris Toshok  <toshok@ximian.com>
11156         * DataGridBoolColumn.cs: we need to test equality in the face of
11157         possible null values (as is the case with the default NullValue).
11158         This patch keeps us from crashing in that case.
11160 2006-09-29  Jackson Harper  <jackson@ximian.com>
11162         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
11163         here, since it will get called for every node collection in the
11164         tree. This is now done in the treeview once the sorting is
11165         finished.
11166         * TreeView.cs: Recalculate the visible order, and update the
11167         scrollbars after sorting, set the top nope to the root so that the
11168         recalc actually works.
11170 2006-09-29  Chris Toshok  <toshok@ximian.com>
11172         * LinkLabel.cs: more handling of the default link collection in
11173         the face of LinkArea manipulation.  The default link collection
11174         contains 1 element (start=0,length=-1).  If the user sets LinkArea
11175         to anything and the links collection is the default, clear it.
11176         Then only add the link if its nonempty.  Fixes #79518.
11178 2006-09-29  Chris Toshok  <toshok@ximian.com>
11180         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
11181         piece correctly when we hit a '\n'.  Fixes #79517.
11183 2006-09-29  Chris Toshok  <toshok@ximian.com>
11185         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
11186         change the binding of gdk_init_check to take two IntPtr's, and
11187         pass IntPtr.Zero for both of them.  Fixes #79520.
11189 2006-09-29  Mike Kestner  <mkestner@novell.com>
11191         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
11192         [Fixes #78779]
11194 2006-09-28  Jackson Harper  <jackson@ximian.com>
11196         * XplatUIX11.cs: When translating NC messages make sure we go from
11197         whole window to screen, not client window to screen.
11198         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
11199         method doesn't exist
11200         - Skip over controls that aren't forms when arranging.
11202 2006-09-28  Jackson Harper  <jackson@ximian.com>
11204         * XplatUIWin32.cs: Clip the rect to the parent window.
11205         * XplatUIStructs.cs: Add clipping modes struct.
11206         * InternalWindowManager.cs: New private method that factors title
11207         bar heights in when calculating the pos of an NC mouse message.
11208         - Use SendMessage to force a paint when the form's size is changed
11209         instead of painting the decorations immediately.
11210         - Don't let the NC button click messages get to DefWndProc,
11211         because they will attempt to handle windowing themself, and this
11212         messes up z-order (it will put them in front of the scrollbars).
11213         * XplatUIX11.cs: Make sure that we don't reset window managers if
11214         we already have one (ie the window is an MDI window).
11216 2006-09-28  Chris Toshok  <toshok@ximian.com>
11218         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
11219         menu code really needs going over.
11221 2006-09-27  Chris Toshok  <toshok@ximian.com>
11223         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
11224         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
11225         window is maximizable.  So, we need to make sure that even if we
11226         clear the border/wm frame of those functions, they're still
11227         available (basically, we remove the decoration without removing
11228         the function).  Half the fix for #79338.
11230 2006-09-27  Chris Toshok  <toshok@ximian.com>
11232         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
11233         Fixes bug #79515.
11235 2006-09-27  Chris Toshok  <toshok@ximian.com>
11237         * Splitter.cs: reorder things a bit so that we don't actually
11238         draw/move the splitter until after calling OnSplitterMoving.  This
11239         lets users cancel/disallow the movement by explicitly setting
11240         event.SplitX/SplitY.  Fixes #79372.
11242 2006-09-27  Jackson Harper  <jackson@ximian.com>
11244         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
11245         because it is most likely on a window being destroyed, and that
11246         will give us an X11 error.
11248 2006-09-27  Chris Toshok  <toshok@ximian.com>
11250         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
11251         the dropdown button now toggles between showing and hiding the
11252         dropdown.  Also, get rid of dropdown_form_showing and just use
11253         dropdown_form.Visible.  We still don't do a grab, but I'll leave
11254         that part to someone who has handled Capture-fu before.
11256 2006-09-27  Chris Toshok  <toshok@ximian.com>
11258         * DataGrid.cs: return false if alt isn't pressed when '0' is
11259         pressed.  this keeps the '0' key from being swallowed, and fixes
11260         bug #79350.
11262 2006-09-27  Chris Toshok  <toshok@ximian.com>
11264         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
11265         Calling Refresh (in response to a scrollbar event) screws up the
11266         scrollbar painting.  Fixes bug #78923.
11268 2006-09-27  Chris Toshok  <toshok@ximian.com>
11270         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
11271         then insert into hashtable" blocks threadsafe.
11273 2006-09-27  Chris Toshok  <toshok@ximian.com>
11275         * MessageBox.cs (CreateParams): the styles should be |'ed with our
11276         baseclass's, since otherwise the
11277         ControlBox/MinimizeBox/MaximizeBox assignments above have no
11278         effect.  This gets the close button back in messageboxes.
11280 2006-09-27  Chris Toshok  <toshok@ximian.com>
11282         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
11283         flag, not just != 0.  this makes flags that are actually multiple
11284         bits (like WS_CAPTION) work.  fixes bug #79508.
11286 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
11288         * PageSetupDialog.cs: add support for getting and settings the 
11289         paper size, source and orientation.
11291 2006-09-26  Chris Toshok  <toshok@ximian.com>
11293         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
11294         and caption == "", we need to remove the resize handles as well as
11295         the title bar.
11297         * Control.cs (set_Text): turns out that setting Text on a form
11298         should change the WM styles on the window, since if ControlBox ==
11299         false, the only way to get a window border is to have a non-""
11300         Text property.  check winforms/forms/text.cs for an example.  so,
11301         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
11302         update both window styles and title.  This fixes a lot of dialogs
11303         (including the preferences dialog in MonoCalendar.)
11305 2006-09-26  Chris Toshok  <toshok@ximian.com>
11307         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
11308         control isn't a Form), call Win32ShowWindow to hide the window,
11309         but don't update the control Visible property.  When we reparent
11310         back to a parent control, call SetVisible in order for the
11311         window's visibility to be reinstated.
11313         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
11314         the FosterParent.
11316         * Control.cs (ControlCollection.Remove): remove that value.Hide()
11317         call for good, since it breaks MonoCalendar (and other things I'm
11318         sure.) Also, set all_controls to null *after* the owner calls,
11319         which end up regenerating it.
11320         (ChangeParent): allow new_parent to be == null, passing
11321         IntPtr.Zero down to XplatUI.
11323         this fixes #79294 the right way.
11325 2006-09-26  Mike Kestner  <mkestner@novell.com>
11327         * GridEntry.cs : internal SetParent method.
11328         * PropertyGrid.cs : attach to property changed on the proper
11329         target if we have a hierarchical grid with subobjects. Setup
11330         GridItem.Parent for hierarchical items.
11331         * PropertyGridView.cs : Set value on the correct target for
11332         hierarchical grids. [Fixes #78903]
11334 2006-09-26  Chris Toshok  <toshok@ximian.com>
11336         * Control.cs (ChildNeedsRecreating): this should return true if
11337         either we're being recreated and the child is in our list, or our
11338         parent is waiting for our recreation.
11340 2006-09-26  Chris Toshok  <toshok@ximian.com>
11342         * Control.cs (ControlCollection.Remove): reinstate the
11343         value.Hide() call as suggested in bug #79294.
11345 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
11347         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
11348         coordinates (versus a relative move).
11350 2006-09-26  Chris Toshok  <toshok@ximian.com>
11352         * Control.cs: rework child recreation a little bit.  It turns out
11353         that we race between the DestroyNotify the WM_DESTROY message.  If
11354         the parent gets its DestroyNotify before the child gets the
11355         WM_DESTROY message, the child ends up not recreating (since the
11356         parent finishes its recreation on DestroyNotify, and the child
11357         checks ParentIsRecreating.)
11359         So, instead we store off a list of all the child controls which
11360         need to be recreated when the parent control starts to recreate
11361         itself.  Then, when child controls get their WM_DESTROY message we
11362         check to see if they're in the parent's pending recreation list,
11363         and if so, we recreate.  This removes all dependency on ordering
11364         from the code and fixes the initial MonoCalendar upgrade dialog.
11365         
11366 2006-09-26  Jackson Harper  <jackson@ximian.com>
11368         * TextControl.cs: Use the Line to get the length of the line,
11369         since soft line breaks can change the end line.
11371 2006-09-26  Chris Toshok  <toshok@ximian.com>
11373         * Control.cs (ControlCollection.AddImplicit): don't add the
11374         control again if it's already in one of our lists.  This keeps us
11375         from adding controls over and over again for comboboxes when their
11376         handle gets recreated (as the combobox adds implicit controls in
11377         OnHandleCreated).  Fixes the X11 errors in bug #79480.
11379 2006-09-26  Jackson Harper  <jackson@ximian.com>
11381         * TextControl.cs: When deleting characters make sure that any
11382         orphaned zero lengthed tags get deleted.
11383         - Fix ToString for zero lengthed tags.
11385 2006-09-25  Jackson Harper  <jackson@ximian.com>
11387         * TextControl.cs: When getting a tag at the location there can be
11388         multiple tags at the same spot, these are 0-lengthed tags that
11389         appear when extra formatting has been stuck in a location.  We
11390         need to pull out the last of these 0 lengthed tags.
11392 2006-09-25  Jackson Harper  <jackson@ximian.com>
11394         * TextControl.cs: Fix print out in debug method.
11395         * TextBoxBase.cs: When text is set bail if we are setting to the
11396         previous value.
11397         
11398 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
11400         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
11401           It is now possible to change the selected index in a FontXXXListBox
11402           with the up and down arrow keys from the FontXXXTextBoxes.
11403           Also, send the FontXXXTextBox mouse wheel event to the corresponding
11404           FontXXXListBoxes to match ms.
11406 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
11408         * SystemInformation.cs: Return a clone of the theme's MenuFont because
11409         anyone can dispose it, anytime. All other properties returns enums, 
11410         structs or basic types so they don't need such tricks.
11412 2006-09-22  Jackson Harper  <jackson@ximian.com>
11414         * XplatUI.cs:
11415         * XplatUIWin32.cs:
11416         * Clipboard.cs:
11417         * DataFormats.cs:
11418         * XplatUIOSX.cs:
11419         * XplatUIDriver.cs: Update interface to add a primary selection
11420         flag, so the driver can use the primary selection buffer if
11421         needed.
11422         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
11424         * RichTextBox.cs: We need to supply the data object to paste now
11425         (so we can choose to supply CLIPBOARD or PRIMARY).
11426         * TextBoxBase.cs: Supply data object to paste (see above).
11427         - Middle click uses the primary selection data object.
11428         
11429 2006-09-21  Chris Toshok  <toshok@ximian.com>
11431         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
11432         of SetWMStyles.  It's still a rat's nest and is largely
11433         order-dependent which I dislike immensely.  This also fixes the X
11434         button disappearing from toplevel forms.
11436 2006-09-21  Mike Kestner <mkestner@novell.com>
11438         * ListBox.cs: move Jordi's click/dblclick raising code to the
11439         mouse up handler.
11441 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
11443         * ListBox.cs: Fixes 79450
11445 2006-09-21  Mike Kestner <mkestner@novell.com>
11447         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
11448         to deal with people updating the TreeNodeCollection after the tree
11449         is disposed.  "Fixes" 79330.
11451 2006-09-20  Jackson Harper <jackson@ximian.com>
11453         * TextControl.cs: Push the cursor record onto the undo stack
11454         before the delete action. This fixes 78651.
11456 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
11458         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
11459         CreateParams. Fixes 79329.
11461 2006-09-19  Chris Toshok  <toshok@ximian.com>
11463         * XplatUIX11.cs: a couple of blanket code massage passes to clean
11464         things up a bit.  First, get rid of the NetAtoms array (and the NA
11465         enum), and just embed the atoms as static fields.  Also, add a
11466         couple of functions (StyleSet and ExStyleSet) to clean up all the
11467         bitmask testing of styles.
11469         * X11Structs.cs: remove the NA enum, not needed anymore.
11470         
11471 2006-09-19  Chris Toshok  <toshok@ximian.com>
11473         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
11474         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
11475         added cleanup to get MessageBox titles appearing again, which were
11476         broken by my earlier fix for caption-less/ControlBox-less windows.
11478 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
11480         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
11481           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
11482           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
11483           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
11484           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
11485           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
11486           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
11487           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
11488           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
11489           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
11490           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
11491             Inital import.
11492         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
11493           ToolStripButton.cs: Stubs needed for above.
11494         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
11496 2006-09-15  Chris Toshok  <toshok@ximian.com>
11498         * XplatUIX11.cs:
11499         - make the MessageQueues hashtable Synchronized.
11500         
11501         - SendMessage: if the Hwnd is owned by a different thread, use the
11502         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
11503         thread.  Fixes bug #79201.
11505 2006-09-15  Chris Toshok  <toshok@ximian.com>
11507         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
11508         ControlBox == false, we disallow maximize/minimize/close.  If the
11509         form Caption is "" we also disallow move (and get rid of the Title
11510         decoration).  Unfortunately, regardless of how things are set,
11511         we're stuck with the Title and WM menu.
11513 2006-09-15  Chris Toshok  <toshok@ximian.com>
11515         * Application.cs: add locking around the static message_filters
11516         ArrayList, part of #79196.
11518 2006-09-15  Chris Toshok  <toshok@ximian.com>
11520         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
11521         Form.ControlBox == false, the window has no titlebar nor resize
11522         handles.  fixes bug #79368.
11524 2006-09-15  Chris Toshok  <toshok@ximian.com>
11526         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
11527         >= 0.  Fixes bug #79370.
11529 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
11530         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
11531         * Control.cs:
11532             Add properties: LayoutEngine, Margin, DefaultMargin.
11533             Add method: GetPreferredSize.
11534             Move layout logic from PerformLayout to layout engines. 
11536 2006-09-13  Chris Toshok  <toshok@ximian.com>
11538         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
11539         fix for #79326 broke #78718, so this change addresses that.
11541         - in SendWMDestroyMessages remove the call to
11542         CleanupCachedWindows, since we might be recreating the control and
11543         need to maintain the references to right Hwnd handles.  Also, set
11544         the zombie flag to true for each of the children in the hierarchy
11545         instead of calling hwnd.Dispose.  This will cause GetMessage to
11546         ignore all events for the window except for DestroyNotify.
11548         - In GetMessage, ignore messages except for DestroyNotify for
11549         zombie hwnds.
11550         
11551         * Control.cs: revert the is_recreating fix from the last
11552         ChangeLog.  It's definitely "right", but it breaks switching from
11553         an MDI form to a non-MDI form.  Will need to revisit that.
11555         * Hwnd.cs: add a zombie flag, which means "the
11556         client_window/whole_window handles are invalid, but we're waiting
11557         for the DestroyNotify event to come in for them".  Set the flag to
11558         false explicitly if setting WholeWindow/ClientWindow, and also
11559         when Disposing.
11560         
11561 2006-09-13  Chris Toshok  <toshok@ximian.com>
11563         * XplatUIX11.cs: rework window destruction slightly.
11565         - when destroying the windows associated with a control, we don't
11566         need 2 separate XDestroyWindow calls.  Just the one for the
11567         whole_window (or for client_window if whole_window is somehow
11568         IntPtr.Zero -- can this happen?) is enough.
11570         - reworked SendWMDestroyMessages slightly, so we always dispose
11571         the child control hwnd's after sending the messages.
11572         
11573         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
11574         the two places it was used (one was even using hwnd.Handle and the
11575         other hwnd.client_window.  ugh), adding another call in
11576         SendWMDestroyMessages.  We need this new call because now the
11577         DestroyNotify events in the queue will be ignored for the child
11578         controls (as their hwnd's were disposed, and the window id's
11579         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
11581         - this fixes bug #79326.
11583 2006-09-13  Chris Toshok  <toshok@ximian.com>
11585         * Control.cs: don't always set is_recreating to false at the end
11586         of RecreateHandle, since sometimes we're not done (and won't be
11587         until WndProc handles the WM_DESTROY message).  Also, set
11588         is_recreating to false in the WM_DESTROY handling code.  Part of
11589         the fix for bug #79326.
11591 2006-09-13  Miguel de Icaza  <miguel@novell.com>
11593         * X11DesktopColors.cs: Start the droppage of debugging messages.
11595         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
11597 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
11599         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
11601 2006-09-12  Chris Toshok  <toshok@ximian.com>
11603         * DataGrid.cs (get_ListManager): if the list_manager is null, try
11604         to create it using SetDataSource.  Fixes bug #79151.
11606 2006-09-11  Chris Toshok  <toshok@ximian.com>
11608         * XEventQueue.cs: add a DispatchIdle property.
11610         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
11611         either the queue is null, or the queue has DispatchIdle set to
11612         true.
11613         (DoEvents): set queue.DispatchIdle to false around the
11614         peek/translate/dispatch message loop in this method.  This keeps
11615         Application.Doevents from emitting idle events.  Part of the fix
11616         for #78823.
11618 2006-09-11  Chris Toshok  <toshok@ximian.com>
11620         * DataGrid.cs (set_DataSource): make this work for both the
11621         winforms/datagrid test and ReportBuilder.  It seems as though when
11622         we've created a ListManager (or maybe it's if we have a
11623         BindingContext?), when we set the DataSource it clears the
11624         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
11625         #79333.
11627 2006-09-11  Chris Toshok  <toshok@ximian.com>
11629         * XplatUIX11.cs: deal with queue being null, which happens in all
11630         the Clipboard functions.  Fixes one of the two problems mentioned
11631         in #78612.
11633 2006-09-11  Chris Toshok  <toshok@ximian.com>
11635         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
11636         button on various spots (including outside the menu) works closer
11637         to MS, and doesn't crash.  Fixes #79343.
11639 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
11641         * ListView.cs: Do not initialize item_sorter in init. To match MS,
11642         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
11643         and the internal comparer is set. When a new ListViewItemSorter is set,
11644         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
11645         was specified. No further processing is necessary if SortOrder is set
11646         to it's current value. If Sorting is modified to None, and View is
11647         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
11648         (either custom or our internal ItemComparer) to null, on 1.0 profile
11649         only set item_sorter to null if its our internal IComparer. If Sorting
11650         is modified to Ascending or Descending, then use our internal IComparer
11651         if none is set, and if the current IComparer is our internal one then:
11652         on 2.0 profile always replace it with one for new Sorting, and on 1.0
11653         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
11654         Enum.IsDefined to verify whether a valid View value is specified in
11655         its setter. Automatically sort listview items when listview is
11656         created. In Sort, do nothing if ListView is not yet created, or if
11657         no item_sorter is set (no Sorting was set, Sorting was explicitly set
11658         to None or ListViewItemSorter was set to null). Added Sort overload
11659         taking a bool to indicate whether the ListView should be redrawn when
11660         items are sorted (we use this in ListViewItemCollection to avoid double
11661         redraws). Modified our internal IComparer to take the sort order into
11662         account. In Add and AddRange methods of ListViewItemCollection, also
11663         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
11664         view), but use overload with noredraw option to avoid double redraw.
11665         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
11666         true when View is Tile, and do the same when attempting to set View to
11667         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
11668         for selected/checked indices, as it involves overhead when sorting is
11669         done while these collections are not used all that often. Instead
11670         we'll build the indices on demand. Modified IList implementation of
11671         CheckedIndexCollection to use public methods if object is int.
11672         Modified CheckedListViewItemCollection to hide checked items if
11673         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
11674         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
11675         IList implementation in SelectedIndexCollection to use public methods
11676         if object is int. Modified SelectedListViewItemCollection to hide
11677         selected items if listview is not yet created.
11678         * ListViewItem.cs: CheckedIndices list no longer needs to be
11679         maintained separately (see ListView changes). Also clone font, fixes
11680         test failure.
11682 2006-09-11  Mike Kestner  <mkestner@novell.com>
11684         * ComboBox.cs: if we are updating the contents of the currently
11685         selected index, refresh the control or the textbox selection.
11686         [Fixes #79066]
11688 2006-09-11  Mike Kestner  <mkestner@novell.com>
11690         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
11691         the 'specified' logic has been moved there.  This seems like a bug 
11692         in Control.cs, since our current SetBoundsCore completely ignores 
11693         the specified parameter.  Peter's commit seems to indicate that is 
11694         the way the MS control implementation works.  [Fixes #79325]
11696 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
11698         * XplatUI.cs: Set default_class_name to be composed
11699         of current domain id. This allows MWF to be loaded in multiple
11700         domains on Win32.
11702 2006-09-09  Miguel de Icaza  <miguel@novell.com>
11704         * X11Keyboard.cs: If we are unable to obtain the input method, do
11705         not call CreateXic to create the input context.   Should fix
11706         #78944/79276.
11708 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
11710         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
11711           Simplified gnome support by adding more pinvokes to get the
11712           icon for a file or mime type.
11714 2006-09-08  Jackson Harper  <jackson@ximian.com>
11716         * MenuAPI.cs: Deslect popup context menu items before closing the
11717         window, so that you don't see the previously selected item
11718         selected when you reopen the menu.
11719         * TextControl.cs: Update the cursor position even if we don't have
11720         focus.  This fixes typing in things like the ComboBox.  I'm not
11721         totally sure we should always set the visibility if we don't have
11722         focus, but couldn't find any corner cases where the cursor showed
11723         up when it shouldn't.
11725 2006-09-08  Chris Toshok  <toshok@ximian.com>
11727         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
11728         our arrays are length 256.  & 0xff before indexing.  Fixes the
11729         crash in bug #78077.
11730         
11731 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11733         * ThemeWin32Classic.cs: 
11734         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
11735         is true. Handle that check box too.
11737 2006-09-07  Chris Toshok  <toshok@ximian.com>
11739         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
11740         79244.
11742 2006-09-07  Chris Toshok  <toshok@ximian.com>
11744         * Control.cs: in set_BackColor only do the work if
11745         background_color != value.
11747         * XplatUIX11.cs: move the clearing of invalid areas (both client
11748         and nc) to the same block of code where we set (nc_)expose_pending
11749         to false.  That is, move it from PaintEventEnd to PaintEventStart,
11750         so things that cause invalidates from within OnPaint will trigger
11751         another call to OnPaint.  Fixes bug #79262.
11753 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
11755         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
11756         * FileDialog.cs: Fix typo
11758 2006-09-07  Jackson Harper  <jackson@ximian.com>
11760         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
11761         for tab pages if they have any.
11763 2006-09-06  Mike Kestner  <mkestner@novell.com>
11765         * Splitter.cs: use the "current" rect when finishing drag handle
11766         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
11768 2006-09-06  Mike Kestner  <mkestner@novell.com>
11770         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
11771         support offset splitters. [Fixes #79298]
11773 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
11775         * Mime.cs: Fixed a bug that could override the global mime type
11776           result.
11778 2006-09-05  Jackson Harper  <jackson@ximian.com>
11780         * TabControl.cs: Better calculation method for setting the slider
11781         pos. Prevents crashes on really wide tabs.
11782         - Draw Image on tab pages if an image list is used.
11784 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11786         * MonthCalendar.cs: When Font changes, the Size should be
11787         updated to fit the new font's space requirements.
11789 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
11791         * ListBox.cs: If the items are cleared with Items.Clear set
11792           top_index to 0.
11794 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11796         * MonthCalendar.cs: Handle arrow keys as input keys. Also
11797         fire DateChanged event instead of DateSelected event when
11798         the date was changed by keyboard interaction.
11800 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11802         * DateTimePicker.cs: Handle DateChanged for the associated
11803         month_calendar control, and set month_calendar.Font from 
11804         OnFontChanged method, as well as resize the height of the
11805         control when needed. Make PreferredHeight proportional.
11807 2006-09-01  Chris Toshok  <toshok@ximian.com>
11809         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
11810         properties.
11812         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
11814 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
11816         * FileDialog.cs: Set ClientSize instead of window size, to allow space
11817           for decorations (Fixes #79219)
11819 2006-09-01  Mike Kestner  <mkestner@novell.com>
11821         * ComboBox.cs: first stab at sorting plus some selection handling
11822         fixes to bring us more in line with MS behavior.  Also switches back
11823         to index based selection.  Alternative patches for index-based 
11824         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
11825         and latency@gmx.de on bug 78848.  I assume they were similar to this
11826         code I've had simmering in my tree forever.
11827         [Fixes #78848]
11829 2006-09-01  Chris Toshok  <toshok@ximian.com>
11831         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
11832         when setting list position guard against ending up with a -1 index
11833         (the other part of the fix for #78812).  Should probably make sure
11834         we don't need the analogous fix in the ItemDeleted case.
11836         * DataGrid.cs:
11837         - in SetDataSource, work around the fact that the way
11838         OnBindingContextChanged is invoked will cause us to re-enter this
11839         method.  I'll remove the hack once I investigate
11840         OnBindingContextChanged.
11842         - fix the logic in set_DataSource and set_DataMember (basically
11843         what to do if the other of the two is null.)
11844         
11845         - in OnListManagerItemChanged, we need to take into account the
11846         edit row when deciding whether or not to call RecreateDataGridRows
11847         (part of the fix for #78812).
11849 2006-09-01  Jackson Harper  <jackson@ximian.com>
11851         * Splitter.cs: Don't do anything if there is no control to affect
11852         (prevents us from crashing in weird tet cases).
11853         * TreeView.cs: Bounding box for the mouse movement reverting
11854         focus/selection back to previously selected node.  This matches
11855         MS, and makes the tree a lot more useable.
11856         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
11857         use clipping so they are not drawn.  This fixes when the control
11858         is set to have a transparent background, or if it was over an
11859         image.
11861 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
11863         * MimeIcon.cs: Improved handling for reading default icons when
11864           using gnome (2.16 made it necessary). Check and read svg icons
11865           first, then 48x48 and then 32x32 icons.
11867 2006-08-31  Chris Toshok  <toshok@ximian.com>
11869         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
11870         visible.
11872         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
11873         ProcessKeyPreview.  Fixes part of #77806.
11875         * DataGrid.cs: big patch.
11877         - revert the queueing up of DataSource/DataMember if inside
11878         BeginInit/EndInit calls.  That's not the way the datagrid achieves
11879         its delayed databinding.  Instead, call SetDataSource in
11880         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
11881         #78811.
11883         - Also, it wasn't mentioned in #78811, but the test case exhibits
11884         behavior that was lacking in our datagrid implementation - Columns
11885         that have mapping names that don't exist in the datasource's
11886         properties aren't shown.  Yuck.  To fix this I added the bound
11887         field to the column style, and basically any calculation to figure
11888         out anything about columns uses a loop to find the bound columns.
11889         still need to investigate if I can cache an array of the bound
11890         columns or if the indices must be the same.
11892         - When setting CurrentCell, we no longer abort if the cell being
11893         edited was in the add row.  This fixes the other part of #77806.
11895         - The new code also fixes #78807.
11896         
11897         * ThemeWin32Classic.cs: perpetrate the same disgusting
11898         column.bound field hack, and only render bound fields.
11900 2006-08-31  Chris Toshok  <toshok@ximian.com>
11902         * DataGridColumnStyle.cs: add bound field.  this field is true if
11903         the datasource has a property corresponding to the mapping name.
11905         * DataGridTableStyle.cs: set the bound field on the column styles
11906         depending on whether or not we have a column for that property.
11908 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
11910         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
11911           splitter control (fixes #79228)
11913 2006-08-31  Chris Toshok  <toshok@ximian.com>
11915         * DataGridColumnStyle.cs: we need to delay the assignment of
11916         property descriptor until the last possible moment due to the lazy
11917         databinding stuff in the datagrid.  Also, fix the exceptions
11918         thrown by CheckValidDataSource to match MS.
11920 2006-08-31  Jackson Harper  <jackson@ximian.com>
11922         * Form.cs: When activated select the active control, if there is
11923         no active control, we select the first control.
11924         * XplatUIX11.cs: If there is no focus control when we get a
11925         FocusIn event, find the toplevel form and activate it.  This
11926         occurs when you popup a window, it becomes the focus window, then
11927         you close that window, giving focus back to the main window.
11929 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11931         * MonthCalendar.cs: 
11932         * ThemeWin32Classic.cs: Cache Font in bold style, as well
11933         as StringFormat with Center alignments in MonthCalendar,
11934         instead of creating new ones when drawing the control. 
11935         Also, draw the month name in bold style.
11937 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
11939         * Control.cs:
11940           - PerformLayout(): It would seem MS performs the fill even if the 
11941             control is not visible (part of #79218 fix)
11942           - ResetBackColor(): Use the setter to reset the color, to allow
11943             overriders to catch the change.
11944         * Form.cs:
11945           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
11946           - CreateHandle(): dito (part of $79218 fix)
11947           - Don't set an icon if we have a dialog
11948         * ScrollableControl.cs:
11949           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
11950           - ScrollIntoView(): No need to scroll if control is already visible
11951             (resolves fixme and fixes #79218)
11953 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11955         * MonthCalendar.cs: Change proportions in SingleMonthSize
11956         to match the aspect of the original control.
11958 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
11960         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
11961           get updated when they get maximized.
11963 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
11965         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
11967 2006-08-29  Chris Toshok  <toshok@ximian.com>
11969         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
11971 2006-08-29  Jackson Harper  <jackson@ximian.com>
11973         * TreeView.cs: Need to track selected node and highlighted node,
11974         they aren't always the same thing, when the mouse is down on a
11975         node it is hilighted, but not selected yet.
11976         - Do the HideSelection stuff right
11977         - Need to focus on rbutton mouse down. And redraw selection when
11978         right click is mouse upped.
11980 2006-08-29  Mike Kestner  <mkestner@novell.com>
11982         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
11983         when SubItems.Count < Columns.Count.  [Fixes #79167]
11985 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
11987         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
11989 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
11991         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
11992           from X. Only send based on ConfigureNotify if we don't have the
11993           correct location in hwnd (if the window manager moved us)
11995 2006-08-28  Mike Kestner  <mkestner@novell.com>
11997         * ListView.cs: remove a TODO. 
11998         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
11999         [Fixes ListView part of #79166]
12001 2006-08-28  Mike Kestner  <mkestner@novell.com>
12003         * ListView.cs: move wheel handler to parent since it is focused
12004         instead of the item_control now.  [Fixes #79177]
12006 2006-08-28  Mike Kestner  <mkestner@novell.com>
12008         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
12009         when the control is focused. [Fixes #79171]
12011 2006-08-28  Mike Kestner  <mkestner@novell.com>
12013         * ListView.cs: size the item and header controls for empty and
12014         unscrollable views.
12015         * ThemeWin32Classic.cs: draw disabled backgrounds.
12016         [Fixes #79187]
12018 2006-08-28  Chris Toshok  <toshok@ximian.com>
12020         * Form.cs: remove unused "active_form" static field.
12022         * Hwnd.cs: lock around accesses to static windows collection.
12024         * Application.cs: lock threads in Exit ().
12026 2006-08-28  Chris Toshok  <toshok@ximian.com>
12028         * NativeWindow.cs: lock around accesses to window_collection.
12029         
12030 2006-08-28  Chris Toshok  <toshok@ximian.com>
12032         * Control.cs: err, fix this the right way, by locking on controls
12033         when using it.  not by making it synchronized.
12035 2006-08-28  Chris Toshok  <toshok@ximian.com>
12037         * Control.cs: make the static "controls" field synchronized, as it
12038         gets updated from multiple threads.
12040 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
12042         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
12043           Prevent other threads from exiting when calling thread sets quit state.
12044         * XEventQueue.cs: Added PostQuitState property
12046 2006-08-27  Chris Toshok  <toshok@ximian.com>
12048         * AsyncMethodData.cs: add a slot for the window handle.
12050         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
12051         window (the destination control's window, not the foster window).
12053         * Control.cs (BeginInvokeInternal): store the window's handle in
12054         the AsyncMethodData.
12055         
12057 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
12059         * XplatUIX11.cs:
12060           - PostQuitMessage: Removed resetting S.D display handle, we might have
12061             another loop started after calling PostQuitMessage (Fixes #79119)
12062           - Created destructor to reset S.D handle
12064 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
12066         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
12068 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12070         * TextControl.cs (Insert): Update the caret position even if we don't
12071           have a handle yet, just don't call the driver in that case.
12072         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
12073           to the end of the new selection text (Fixes #79184)
12075 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12077         * Form.cs (Activate): Only activate if the handle is created)
12078         * Control.c:
12079           - Mark window as invisible when it's disposed
12080           - Check if window handle is created when setting window visible, 
12081             instead of relying just on the is_created variable
12082           - Check if object is disposed when creating the control (Fixes #79155)
12084 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12086         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
12087           when allowing layout again. Otherwise we re-generate the anchoring 
12088           distance to the border again and actually alter what the user wanted
12089           This is ugly, it'd be better if we used DisplayRectangle instead of
12090           ClientRectangle for Control.UpdateDistances, but that causes us to
12091           have other problems (initial anchoring positons would be wrong)
12092           (Fixes #78835)
12094 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12096         * Control.cs:
12097           - The size and location setters shouldn't go directly to 
12098             SetBoundsCore, but to SetBounds, which triggers layout on the
12099             parent, then calls SetBoundsCore. (Related to fix for #78835)
12100           - SetBounds: Moved actual location update code into this function
12101             from SetBoundsCore, to match MS. Added call to PerformLayout if
12102             we have a parent (to trigger resizing of anchored parents if the 
12103             child size has changed (see testcase for #78835) 
12104         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
12105           new control code
12106         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
12108 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12110         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
12111           System.Drawing when a toplevel window gets closed; there might
12112           be other toplevel windows belonging to the same app (Fixes #78052)
12114 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
12116         * FileDialog.cs: After reading FileDialog settings from mwf_config
12117           use Desktop prefix only if a real folder doesn't exist anymore.
12118         * FontDialog.cs: Added char sets.
12119           It is now possible to select the font, size or style with the
12120           textboxes.
12122 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
12124         * PrintPreviewDialog.cs: Use assembly name constants.
12126 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12128         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
12129           scrollbar from whacking it's buttons)
12131 2006-08-24  Chris Toshok  <toshok@ximian.com>
12133         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
12134         in this patch (aggregating setting Left/Top/Width/Height to
12135         setting Bounds on the scrollbars), but the crux of the fix is in
12136         Recalculate, where we scroll by the remaining scroll_position if
12137         we're hiding a scrollbar.  The 2*$5 reward in the comment is
12138         serious.
12140 2006-08-24  Jackson Harper  <jackson@ximian.com>
12142         * MdiClient.cs:
12143         * MdiWindowManager.cs: If the form is made a non-mdi window we
12144         need to remove the form closed event so that closing forms works
12145         correctly.
12147 2006-08-24  Jackson Harper  <jackson@ximian.com>
12149         * Control.cs: Make IsRecreating internal so that the driver can
12150         check it
12151         - Temporarily remove the Hide when controls are removed, its
12152         making a whole bunch of things not work because visibility isn't
12153         getting reset elsewhere correctly
12154         * Form.cs: Need to do a full handle recreation when the mdi parent
12155         is set.
12156         * XplatUIX11.cs: If we are recreating handles don't dispose the
12157         HWNDs.  What was happening is the handles were being recreated in
12158         SendWMDestroyMessages, but then flow continued on in that method
12159         and destroyed the new handles.
12161 2006-08-23  Jackson Harper  <jackson@ximian.com>
12163         * Form.cs: MdiClient is always at the back of the bus
12164         * Control.cs: When the order of items in the collection is changed
12165         we need to reset the all_controls array
12166         - do the same sorta setup thats done when adding a control when a
12167         control is set on the collection.
12169 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12171         * TextBoxBase.cs (get_Text): Return an empty array if our document
12172           is empty (fixes #79052)
12174 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12176         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
12177           on WM_SYSCHAR messages (fixes #79053)
12179 2006-08-23  Chris Toshok  <toshok@ximian.com>
12181         * DataGrid.cs: fix flickering when scrolling vertically.
12183 2006-08-23  Chris Toshok  <toshok@ximian.com>
12185         * DataGrid.cs (EndEdit): only invalidate the row header when we
12186         need to.
12188 2006-08-23  Chris Toshok  <toshok@ximian.com>
12190         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
12191         methods.  fixes the flicker when scrolling around.
12193 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12195         * FileDialog.cs: Making sure the control is created before we get a 
12196           chance to use it with BeginInvoke (Fixes #79096)
12198 2006-08-23  Chris Toshok  <toshok@ximian.com>
12200         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
12201         width to use when painting the rows.
12203 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12205         * TextBoxBase.cs:
12206           - Throw ArgumentException if a negative value is passed to SelectionLength
12207           - Update the selection end if start is moved. end needs to be always
12208             after start. (Fixes #79095)
12209           - Track selection length; MS keeps the selection length even if start
12210             is changed; reset on all other operations affection selection
12212 2006-08-22  Jackson Harper  <jackson@ximian.com>
12214         * TreeView.cs: Make sure both scrollbars get displayed and sized
12215         correctly when the other bar is visible.
12216         - Use the original clip rectangle for checking if the area between
12217         the two scrollbars is visible, not the viewport adjusted clipping
12218         rectangle.
12220 2006-08-22  Jackson Harper  <jackson@ximian.com>
12222         * Binding.cs: We don't use IsBinding because it requires the
12223         control to be created, which really shouldn't be necessary just to
12224         set a property on the control.
12226 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12228         * ComboBox.cs: Some CB.ObjectCollection methods must throw
12229         ArgumentNullReferenceException when the argument is null.
12231 2006-08-21  Jackson Harper  <jackson@ximian.com>
12233         * Timer.cs: Track the thread that the timer is started in (NOT
12234         CREATED), this way messages for it will only be triggered on its
12235         queue.
12236         * XEventQueue.cs: Track the timers here, this makes timers per
12237         thread, like MS.
12238         * XplatUIX11.cs: The timers are moved to the XEventQueue.
12240 2006-08-19  Chris Toshok  <toshok@ximian.com>
12242         * XplatUIX11.cs: after further communication with pdb, we get the
12243         best of both worlds.  SetZOrder working for un-Mapped windows, and
12244         no X errors for un-mapped windows.
12246 2006-08-19  Chris Toshok  <toshok@ximian.com>
12248         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
12249         as it was causing pdn toolbars to not have the correct stacking.
12251 2006-08-18  Mike Kestner  <mkestner@novell.com> 
12253         * ListView.cs : guard against negative ClientArea.Width in scrollbar
12254         calculation.  Not sure why control should ever be setting a negative
12255         width though.  Fixes #78931.
12257 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12259         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
12260         null items in ObjectCollection class.
12261         * ListBox.cs.: Likewise.
12263 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
12265         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
12266           as the base method in ThemeWin32Classic should work fine.
12267           Fixed bug #78607.
12269 2006-08-18  Jackson Harper  <jackson@ximian.com>
12271         * Binding.cs: When validating if the value entered doesn't convert
12272         properly reset to the old value.
12273         * RadioButton.cs: Don't fire click when we get focus.
12275 2006-08-18  Jackson Harper  <jackson@ximian.com>
12277         * FileDialog.cs: Paint the selection on the directory combobox the
12278         same way as on MS. 
12280 2006-08-17  Jackson Harper  <jackson@ximian.com>
12282         * ErrorProvider.cs: Don't allow the error control to be selected.
12283         * Control.cs: Don't send the SetFocus messages, the control
12284         activation will do this, and if we do it blindly here validation
12285         does not work.
12287 2006-08-17  Jackson Harper  <jackson@ximian.com>
12289         * Control.cs:
12290         * ContainerControl.cs: Make validation events fire in the correct
12291         order.  TODO: For some reason the first validation event is not
12292         getting fired.
12294 2006-08-17  Mike Kestner  <mkestner@novell.com> 
12296         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
12298 2006-08-17  Mike Kestner  <mkestner@novell.com> 
12300         * ComboBox.cs : implement scroll wheel support for popped-down
12301         state. Fixes #78945. 
12303 2006-08-17  Jackson Harper  <jackson@ximian.com>
12305         * TreeView.cs: Specify treeview actions (old patch that didn't get
12306         committed for some reason).
12307         - Don't let the mouse wheel scroll us too far.  Just want to make
12308         the bottom node visible, not scroll it all the ways to the top.
12310 2006-08-17  Jackson Harper  <jackson@ximian.com>
12312         * XplatUIX11.cs: Mouse wheel events go to the focused window.
12314 2006-08-17  Mike Kestner  <mkestner@novell.com> 
12316         * ComboBox.cs : don't do mouseover selection in simple mode.
12318 2006-08-16  Jackson Harper  <jackson@ximian.com>
12320         * Form.cs: Fire the closing events for all the mdi child windows
12321         when a window is closed.  If the cancel args are set to true, the
12322         main window still gets the event fired, but it doesn't not close.
12323         * MdiWindowManager.cs: Do this closing cleanup in a Closed
12324         handler, instead of when the button is clicked, so cancelling the
12325         close works correctly.
12326         * ComboBox.cs: Send the mouse down to the scrollbar.
12328 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12330         * ListBox.cs: When passing 'null' to SelectedItem,
12331         set SelectedIndex to -1, to unselect items. This is the
12332         observed behaviour in .Net.
12334 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
12336         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
12337           MS flags saying there won't be any. (fixes #78800)
12338         * Control.cs (HandleClick): Made virtual
12340 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
12342         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
12343           cultures. Fixed bug #78399.
12345 2006-08-16  Jackson Harper  <jackson@ximian.com>
12347         * Form.cs: Use the MdiClients MdiChildren property to access
12348         MdiChildren instead of creating the array from the child controls.
12349         * MdiClient.cs: Maintain a separate array of the mdi children, so
12350         that insertion order is maintained when the Z-order is changed.
12352 2006-08-16  Mike Kestner  <mkestner@novell.com> 
12354         * ListView.cs : add an ItemComparer and default to it for sorting.
12355         Fixes #79076, but sorting needs a complete overhaul to be compat with
12356         MS.
12358 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
12360         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
12362 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
12364         * Hwnd.cs (Mapped): Properly traverse the tree
12366 2006-08-15  Chris Toshok  <toshok@ximian.com>
12368         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
12369         pass manager.Current.GetType() to ParseData.  It has to be the
12370         property type.  So, hold off doing the ParseData until we're in
12371         SetPropertyValue where we know the type.  This fixes the crash in
12372         #78821 but the textbox is still empty.
12374 2006-08-15  Chris Toshok  <toshok@ximian.com>
12376         * DataGrid.cs:
12377         - when we're scrolling, only call Edit() again if the
12378         current cell is still unobscured. Fixes bug #78927.
12379         - when handling mousedown on a cell, ensure the cell is visible
12380         before calling Edit.
12381         - remove the properties from DataGridRow, and remove the
12382         DataGridParentRow class altogether.
12383         
12385 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
12387         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
12388           fire OnTextChanged by ourselves. There's no point calling base,
12389           we don't set the base value anywhere else. Fixes #78773.
12391 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12393         * ListBox.cs: Call CollectionChanged when modifying
12394         an item from Items indexer, to update the actual items
12395         in the list box.
12397 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12399         * PrintDialog.cs: Small fixes for focus and a pair of checks,
12400         to match .Net behaviour.
12402 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
12404         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
12406 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
12408         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
12410 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
12412         * MessageBox.cs: Prevent potential NRE exception.
12413         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
12415 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
12417         * MessageBox.cs: Calculate the owner of a messagebox, also make
12418           it topmost. Fixes #78753
12420 2006-08-14  Chris Toshok  <toshok@ximian.com>
12422         * XplatUIX11.cs: A couple of fixes so that metacity will let us
12423         programmatically move windows.  first, set the PPosition hint as
12424         well as the USPosition hint.  Second include some code from pdb
12425         that sets the window type to NORMAL when we set the transient for
12426         hint.  This is because, in the absence of a window type, metacity
12427         thinks any window with TransientFor set is a dialog, and refuses
12428         to let us move it programmatically.  fascists.
12430 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
12432         * XplatUIX11.cs: When setting normal hints, take into consideration
12433           an different hints previously set so we don't delete them (fixes #78866)
12435 2006-08-12  Chris Toshok  <toshok@ximian.com>
12437         * ToolBarButton.cs: make Layout return a boolean, if something to
12438         do with the button's layout changed.
12440         * ToolBar.cs:
12441         - add another parameter to Redraw, @force, which all existing
12442           calls set to true.
12443         - make the Layout function return a boolean which is true if the
12444           layout has actually changed.  Redraw now uses this (and @force)
12445           to determine when to invalidate.  At present the only place
12446           where @force can be false is the call from OnResize, when
12447           background_image == null.  So, resizing a toolbar when the
12448           layout doesn't change results in no drawing.
12450 2006-08-12  Chris Toshok  <toshok@ximian.com>
12452         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
12453         the VScrollBar and HScrollbar reversed.  oops.
12455         * DataGrid.cs: fix the logic that assigns sizes to the implicit
12456         scrollbars.  we were assigning them twice (once in
12457         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
12458         therefore causing two scrollbar resizes (and redraws?) to happen
12459         per grid resize.
12461 2006-08-12  Chris Toshok  <toshok@ximian.com>
12463         * ToolBarButton.cs: redraw the entire button if the theme tells us
12464         to.
12466         * Theme.cs: add ToolBarInvalidateEntireButton.
12468         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
12469         buttons, just the border.
12471         * ThemeNice.cs: redraw the entire toolbar button since we need to
12472         draw the highlight image.
12474         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
12475         we need to redraw the entire button (not just the border).
12477 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
12479         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
12480           for vertical bars. Fixes the mismatches shown by #78513
12482 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
12484         * FileDialog.cs: If a saved/remembered path doesn't exist
12485           anymore, fall back to "Desktop".
12487 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
12489         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
12490           parent. It's apparently legal to not have one
12491         * XplatUIX11.cs:
12492           - SetZOrder: Don't try to set Z-Order on an unmapped window
12493           - CreateWindow: 0,0 are legal coordinates for a window. don't move
12494             it unless the coordinates are negative
12496 2006-08-10  Mike Kestner  <mkestner@novell.com>
12498         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
12499         when setting to null per msdn docs.  Fixes #78854.
12501 2006-08-10  Chris Toshok  <toshok@ximian.com>
12503         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
12504         flickering by setting a clip rectangle on the Graphics when we
12505         need to redraw just a particular menuitem.  Also, rename "OnClick"
12506         to "OnMouseDown" to reflect what it actually is.
12507         
12508         * Form.cs: track the OnMouseDown change.
12510 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
12512         * CommonDialog.cs: Properly inherit the CreateParams from the form
12513           and only change what we need. Fixes #78865
12515 2006-08-10  Chris Toshok  <toshok@ximian.com>
12517         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
12518         flickering in flat mode (and most of the flickering in general) by
12519         only invalidating the button border (and not the entire rectangle)
12520         when the state changes.  A couple of cases still flicker:
12521         ToggleButtons, and the dropdown arrow case when the user mouse
12522         ups.
12524 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
12526         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
12527           for german keyboards. Numlock state shouldn't affect the behaviour
12528           of the Del key. Fixes bug #78291.
12530 2006-08-10  Chris Toshok  <toshok@ximian.com>
12532         * ListControl.cs: remove the items.Clear line from BindDataItems,
12533         as this is the first thing done by both subclasses in their
12534         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
12535         passed -1, refresh the list.  This gets databinding working when
12536         the datasource is set on the list before the datasource is
12537         populated (as in wf-apps/ReportBuilder.)
12539         * ComboBox.cs: remove the argument to BindDataItems.  This call
12540         should really go away, and be initiated by the ListControl code.
12542         * ListBox.cs: same.
12544 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
12546         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
12547           if no data is in the document when the control is displayed
12549 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
12551         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
12552           yes (fixes #78806)
12553         * TextControl.cs: 
12554           - PositionCaret: Allow positioning of caret but don't call methods 
12555             requiring a handle if the window isn't created yet
12556           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
12557           - owner_HandleCreated: Don't position the caret, just update it's 
12558             location. User might have already set a different position
12560 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
12562         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
12563           windows. Screws up the returned coordinates for child windows. 
12564           Fixes #78825. I'm hoping this doesn't break something, since the
12565           code was explicitly put in 8 months ago, but no bug was attached.
12566           Menus still seem to work properly.
12568 2006-08-08  Chris Toshok  <toshok@ximian.com>
12570         * DataGrid.cs: make BeginInit/EndInit actually do what they're
12571         supposed to do - delay data binding until the EndInit call.  Also,
12572         make the table style collection's CollectionChangeAction.Refresh
12573         work properly.
12575         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
12576         (with action = Refresh) when a consituent table's MappingName is
12577         changed.
12579 2006-08-08  Chris Toshok  <toshok@ximian.com>
12581         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
12582         Invalidate, since changing the text can change the size of the all
12583         toolbar buttons.
12585 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
12587         * Form.cs (AddOwnedForm): Still need to add the form to our listif
12588           we don't have it yet
12590 2006-08-08  Chris Toshok  <toshok@ximian.com>
12592         * PrintControllerWithStatusDialog.cs: don't .Close() the status
12593         dialog, as this causes X errors later on, since we actually
12594         destroy the window.  Instead, .Hide() it.
12596 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
12598         * ComboBox.cs: Added focus reflection for popup window
12599         * XplatUIX11.cs: 
12600           - Removed transient setting for non-app windows for now, not sure it
12601             was needed
12602           - Fixed logic checking if we have captions when deciding 
12603             override_redirect, WS_CAPTION is two bits and a 0 check was not
12604             sufficient
12605           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
12606             complicated
12607         * Form.cs: 
12608           - AddOwnedForm: Don't just add the form to the list, call the property
12609             to ensure the driver is informed about the ownership as well
12610           - CreateHandle: Set the TopMost status in the driver if we have an owner
12611         * XplatUI.cs: Fixed debug statement
12613 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
12614         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
12615           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
12616           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
12617           TrackBarRenderer.cs: Make constructor private.
12618         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
12619         * ProfessionalColorTable.cs: Make properties virtual.
12621 2006-08-06  Duncan Mak  <duncan@novell.com>
12623         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
12624         is not changing.
12626 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
12627         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
12628           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
12629           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
12630           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
12631           Initial import of new 2.0 classes.
12633 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
12634         * Application.cs: Add 2.0 VisualStyles properties.
12636 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
12637         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12638           XplatUIX11.cs: Create property to allow access to existing private
12639           variable "themes_enabled"
12641 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12643         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
12644         file size, as otherwise our class libraries fail using windows. Fixes
12645         bug #78759.
12647 2006-08-04  Jackson Harper  <jackson@ximian.com>
12649         * Form.cs:
12650         * XplatUIX11.cs: Move the toolwindow window manager creation into
12651         the X11 driver, this way on win32 we can let windows create/handle
12652         the toolwindows.
12654 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12656         * PrintDialog.cs: Remove some redundant checks, add some others,
12657         clean some code, and move the focus to the text boxes when the
12658         values are incorrect.
12660 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
12662         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
12664 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
12666         * NumericUpDown.cs: Setting the Minimum and Maximum is now
12667           handled correctly. Fixes bug #79001.
12669 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12671         * PrintDialog.cs: The "Copies" numeric up down must have
12672         set the Minimum property to 1; only if the value is bigger
12673         than 1, activate "Collate" check box. This is the behaviour of .Net.
12674         Also modify the Document elements only if it is not null.
12676 2006-08-03  Jackson Harper  <jackson@ximian.com>
12678         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
12679         length. (We have a larger array then actual node count).
12680                 
12681 2006-08-03  Jackson Harper  <jackson@ximian.com>
12683         * ComboBox.cs: Don't show selection by default.
12684         - The SelectAll isn't needed here, since the focus code should do
12685         that
12686         - DDL style lists to manual selection drawing, so when they
12687         get/lose focus they have to invalidate.
12689 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
12691         * TextBoxBase.cs: Don't always show all selections by default.
12693 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
12694         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
12695           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
12696           Fixed various typos.
12698 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
12700         * Control.cs: Removing the controls in a ControlCollection with
12701           Clear now hides the controls as expected. Fixes bug #78804. 
12703 2006-08-03  Jackson Harper  <jackson@ximian.com>
12705         * Control.cs: Revert previous focus patch, it breaks reflector.
12707 2006-08-03  Jackson Harper  <jackson@ximian.com>
12709         * ComboBox.cs: Cleanup selection and focus with the combobox.
12710         This also eliminates some duplicated keyboard code, since now
12711         everything is handled by the main class.
12712         - Make list selection work on mouse up instead of down, to match
12713         MS.
12715 2006-08-02  Jackson Harper  <jackson@ximian.com>
12717         * Control.cs: Setting focus needs to go through the whole
12718         selection mechanism.
12720 2006-08-02  Chris Toshok  <toshok@ximian.com>
12722         * PrintPreviewDialog.cs: change MinimumSize to use
12723         base.MinimumSize so it works.
12725 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
12727         * TextControl.cs:
12728           - UpdateCaret: Added sanity check in case caret isn't defined yet
12729           - Line.Delete: Now updating selection and caret markers if we're
12730             transfering a node (Properly fixes #78323)
12731           - SetSelectionEnd: Added sanity check
12732         * TextBoxBase.cs: Removed broken attempt to fix #78323
12734 2006-08-01  Chris Toshok  <toshok@ximian.com>
12736         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
12737         Close() call is handled in Form, not here.
12739 2006-08-01  Chris Toshok  <toshok@ximian.com>
12741         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
12742         layout/rendering.
12744         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
12745         for sizes < 100% zoom.  The code now aggressively attempts to keep
12746         from calling document.Print (), and tries not to use the scaling
12747         g.DrawImage whenever possible (it still does if you scale to >
12748         100%, since usually that involves huge images).
12750         * PrintPreviewControl.cs: hook up the close button.
12752 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
12753         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
12754           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
12755           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
12756           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
12757           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
12758           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
12759           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
12760           Removed [Serializable] for 2.0 Event Handlers.
12762 2006-07-31  Jackson Harper  <jackson@ximian.com>
12764         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
12765         * TextControl.cs: Uncomment out the body of this method.
12767 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
12769         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
12770           standard cursors.
12772 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
12774         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
12775           that embed TextBox and need selections visible even if textbox is not
12776           focused to enforce that behaviour.
12777         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
12778           selection drawing
12780 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
12782         * TextControl.cs:
12783           - Added new SetSelectionStart/SetSelectionEnd overloads
12784           - Fixed viewport width assignment to be accurate
12785           - Adjusted alignment line shift calculations to allow cursor on right
12786             aligned lines to be always visible at the right border (like MS)
12787         * TextBoxBase.cs:
12788           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
12789           - TextBoxBase_SizeChanged: recalculating canvas on size changes
12790           - CalculateScrollBars: Use ViewPort size instead of window size, to
12791             properly consider space occupied by the border and scrollbars 
12792             (Fixes #78661)
12793           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
12794             calculations; no longer leaves artifacts
12795           - CaretMoved: Adjusted window scrolling to match MS and fixed several
12796             calculation bugs (Still missing right/center align calculations)
12798 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
12800         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
12801           use of both scroll rect and clip rect, as they do the same.
12803 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
12805         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
12806           in the event handler (fixes #78912)
12808 2006-07-31  Chris Toshok  <toshok@ximian.com>
12810         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
12811         grid.ListManager.Count, since grid.ListManager might be null.
12812         This of course begs the question "why are we drawing rows for a
12813         grid with no list manager (and therefor no rows)?"  Fixes the
12814         crash in bug #78929.
12816 2006-07-31  Chris Toshok  <toshok@ximian.com>
12818         * RelatedPropertyManager.cs: Don't always chain up to the parent
12819         ctor.  instead, call SetDataSource if the parent's position is !=
12820         -1.  Fixes the crash in #78822.
12822 2006-07-31  Chris Toshok  <toshok@ximian.com>
12824         * DataGrid.cs (get_ListManager): use field instead of property
12825         accessors for datasource and datamember.
12826         (RowsCount): make internal again.
12827         (OnMouseDown): end edits before resizing columns/rows.
12828         (OnMouseUp): restart edits after resizing columns/rows.
12830 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
12832         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
12833           This fixes the situation where the last set cursor is displayed
12834           whenever the mouse is over scrollbars.
12836 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12838         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
12839         Document properties, as well as initial values.
12841 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
12843         * XplatUIWin32.cs (SetBorderStyle): Setting both border
12844           and ClientEdge results in a 3-pixel border, which is
12845           wrong.
12847 2006-07-28  Jackson Harper  <jackson@ximian.com>
12849         * TreeNodeCollection.cs: Fix the clear method.
12850         - Fix the Shrink also
12852 2006-07-27  Jackson Harper  <jackson@ximian.com>
12854         * TreeView.cs: Make sure the visible order is computed when we
12855         attempt to size the scrollbars (for trees that mess with the
12856         scrolling when they shouldn't.
12857         - Make sure to give the scrollbars valid values.
12859 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
12861         * XplatUIX11.cs: Move motion compression code to where it
12862           has less performance impact
12864 2006-07-26  Jackson Harper  <jackson@ximian.com>
12866         * UpDownBase.cs: When the control is selected make the child
12867         controls non selectable, so that a click on them won't do a
12868         focus/unfocus cycle.
12869         - Don't give focus to the text box when the spinner is selected.
12870         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
12872 2006-07-26  Chris Toshok  <toshok@ximian.com>
12874         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
12875         satisfied with this solution.  If the bitmaps are small, we should
12876         just cache them in the PrintPreviewDialog and draw them here.
12877         Also, the layout is broken for the 2-up and 3-up cases.
12879         * Theme.cs: add PrintPReviewControlPaint.
12881         * PrintPreviewDialog.cs: first pass implementation.
12883         * PrintPreviewControl.cs: first pass implementation.  No
12884         scrollbars yet.
12886         * PrintDialog.cs: only validate fields if that particular portion
12887         of the UI is enabled.  Also, set the document's controller to a
12888         PrintControllerWithStatusDialog wrapping the document's print
12889         controller.
12891         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
12892         bring up a SaveFileDialog (i hope we don't want to match the
12893         behavior of the crappy windows file entry) and set the
12894         PrinterSettings.PrintFileName accordingly.
12896 2006-07-26  Jackson Harper  <jackson@ximian.com>
12898         * ContainerControl.cs: Add a field that disables auto selecting
12899         the next control in a container when the container is activated.
12900         * UpDownBase.cs: Don't select the text box when the up down is
12901         selected.
12903 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
12905         * XEventQueue.cs: Added methods for peeking (used for compression
12906           of successive events)
12907         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
12908           mouse move events (fixes #78732)
12910 2006-07-25  Jackson Harper  <jackson@ximian.com>
12912         * UpDownBase.cs: Use an internal class for the textbox so that we
12913         can control focus.  the updown control should always have focus,
12914         if either the text area or the buttons are clicked.
12915         - Send the key messages to the textbox, since it never actually
12916         has focus
12917         - Activate and decativate the textbox caret.
12919 2006-07-24  Jackson Harper  <jackson@ximian.com>
12921         * Control.cs: Use the directed select when selecting a control,
12922         this way the container controls override will get called and the
12923         whole ActiveControl chain will get triggered.  TODO: probably need
12924         to make sure this gets done everywhere instead of the old
12925         Select(Control).
12926         * ContainerControl.cs: Implement the directed Select method to
12927         find and activate the correct child control.    
12928         
12929 2006-07-22  Mike Kestner  <mkestner@novell.com>
12931         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
12932         menu handling code so that clicks without a grab work too.
12933         [Fixes #78914]
12935 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
12937         * FileDialog.cs: Enable the BackButton when dirstack has one element.
12938           Added some small optimizations.
12940 2006-07-21  Matt Hargett  <matt@use.net>
12942         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
12944 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
12946         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
12947           tests pass and match MS in some strange border cases.
12949 2006-07-21  Chris Toshok  <toshok@ximian.com>
12951         * ThemeWin32Classic.cs: handle drawing of the relation links and
12952         parent row buttons.
12954         * Theme.cs: change args to DataGridPaintParentRow.
12956         * DataGrid.cs: Don't use controls for the relation links and
12957         parent buttons, so we have to handle all their interactions in
12958         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
12959         when we're navigating through child tables, so we can reinstate
12960         selection, expanded state, current cell, etc.
12962 2006-07-20  Chris Toshok  <toshok@ximian.com>
12964         * ToolBar.cs: When we redraw a button, for whatever reason,
12965         there's no reason to redraw the entire toolbar.  Also, don't call
12966         Control.Refresh from within Redraw, as it's much heavier than
12967         Invalidate (which is really what we want).
12969 2006-07-20  Chris Toshok  <toshok@ximian.com>
12971         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
12972         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
12973         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
12974         traces from within a debug IBindingList datasource
12975         (in mono/winforms/datagrid) for *days*, I've finally gotten things
12976         to work in a similar fashion.
12978 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12980         * ListBox.cs: Don't call Sort () when setting 
12981         the Sorted property to false (avoid an unnecessary sort).
12983 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12985         * ListControl.cs: DataSource should throw an ArgumentException
12986         instead of a normal exception when the argument is not of the 
12987         correct type.
12989 2006-07-20  Mike Kestner  <mkestner@novell.com>
12991         * Control.cs: add InternalPreProcessMessage to allow us to steal
12992         key events before MWF gets its paws on them.  Adapted from a
12993         suggestion by eno.
12994         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
12995         up/down/left/right navigation. Override the new internal control
12996         method to steal the events since they never make it to WndProc.
12997         * ToolBarButton.cs: don't worry about pushed when setting hilight
12998         since the drawing code prefers pushed to hilight. Invalidate on 
12999         Hilight changes. Fixes #78547 and #78525.
13001 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
13003         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
13004           the canvas size. Fixes #78868
13006 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
13008         * Splitter.cs: Track requested split position until first layout
13009           is performed. Fixes #78871
13011 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
13013         * Application.cs: Removed code that forces 1.x for the version
13014           number if the version started with 0. Not sure why that code was
13015           there and I couldn't find any bugs that indicated we needed it.
13016           Fixes #78869
13018 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
13020         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
13021           ResetDefaults(), just write some output to the console until it's
13022           implemented. Fixes bug #78907 for now. Eliminated two warnings.
13024 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
13026         * PropertyGridView.cs: set StartPosition of drop down forms
13027         so they appear in correct initial spot.  Fixes #78190.
13029 2006-07-19  Mike Kestner  <mkestner@novell.com>
13031         * ThemeWin32Classic.cs: use parent background color when drawing
13032         flat toolbars.  Restructure the conditionals to make sure non-flat
13033         non-Divider toolbars are filled too.  Fixes #78837.
13035 2006-07-19  Mike Kestner  <mkestner@novell.com>
13037         * ListBox.cs: Sort on collection changes even if the handle
13038         isn't created yet.  Fixes #78813.
13040 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13042         * ListControl.cs: DisplayMember should never be null,
13043         and now we assign String.Empty when null is passed to it (this
13044         is the .Net way).
13046 2006-07-17  Mike Kestner  <mkestner@novell.com>
13048         * ListViewItem.cs: restructure Font and subitem Font handling 
13049         to hold a specific font and refer back to owner on null.
13050         Fixes #78761.
13052 2006-07-17  Mike Kestner  <mkestner@novell.com>
13054         * ToolBar.cs: bandaid for side-effect of previous patch which was
13055         discarding explicit heights for non-AutoSize toolbars.  Need to
13056         extend my format tester to deal with AutoSize=false. Fixes #78864.
13058 2006-07-15  Jackson Harper  <jackson@ximian.com>
13060         * LabelEditTextBox.cs:
13061         * TreeView.cs: Use a new LabelEdit class for node editing, this
13062         class automatically 'closes' itself when it gets the enter key or
13063         loses focus.
13064         - Use the client rectangle when setting the trees scrollbars, so
13065         border style is taken into account.
13066         
13067 2006-07-14  Jackson Harper  <jackson@ximian.com>
13069         * TreeNode.cs:
13070         * TreeView.cs: Make the editing work similar to MSs, firing the
13071         events correctly and ending edits correctly.
13073 2006-07-14  Mike Kestner  <mkestner@novell.com>
13075         * ToolBarButton.cs:
13076         * ToolBar.cs: layout restructuring and redraw enhancements to support
13077         formatting changes gracefully, like setting TextAlign, ImageList, 
13078         ButtonSize, and Appearance.  Handles explicit button sizing quirks
13079         of the MS controls.  Things like flat toolbars ignoring button size
13080         but becoming constant sized at the largest button's size.  Normal
13081         toolbars with an image set cannot be shrunk smaller than the image,
13082         but text can be clipped/ignored.
13083         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
13084         is zero.  Seems like DrawString should be smart enough to not put
13085         anything on screen though. Also trim labels and ellipsize at the char
13086         boundary, not word.
13087         Fixes #78711 and #78483.
13089 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
13091         * FolderBrowserDialog.cs: Disable "New Folder" button and
13092           "New Folder" contextmenu menuitem if a folder like "My Computer"
13093           is selected.
13095 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
13097         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
13098         * FolderBrowserDialog.cs:
13099           - Use MWFConfig to store and read size and position settings
13100           - Added code to create a new folder (button or context menu).
13101             Use TreeView labeledit to change the name of the new folder.
13103 2006-07-14  Jackson Harper  <jackson@ximian.com>
13105         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
13106         when the tree is scrolled we end editing.
13108 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
13110         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
13111           Down arrows
13113 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
13115         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
13116         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
13117         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
13118         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
13119         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
13120         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
13121         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
13122         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
13123         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
13124         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
13125         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
13126         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
13127         ListViewItemSelectionChangedEventHandler.cs,
13128         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
13129         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
13130         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
13131         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
13132         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
13133         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
13134         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
13135         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
13136         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
13137         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
13138         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
13139         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
13140         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
13141         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
13142         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
13143         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
13144         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
13145         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
13146         WebBrowserNavigatingEventHandler.cs, 
13147         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
13149 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
13151         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
13152         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
13153         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
13154         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
13155         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
13156         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
13157         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
13158         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
13159         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
13160         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
13161         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
13162         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
13163         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
13164         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
13165         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
13166         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
13167         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
13168         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
13169         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
13170         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
13171         ListViewItemStates.cs, MaskFormat.cs: Added
13173 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
13175         * PropertyGridView.cs: Fix keyboard navigation of drop down.
13176         Patch from eno for bug 78558.
13177         
13178 2006-07-13  Jackson Harper  <jackson@ximian.com>
13180         * TreeView.cs: When an edit is finished make sure that the
13181         selected node is visible.
13182         - When setting the top/bottom use the scrollbars is_visible, so
13183         everything will be set correctly even if the tree isn't visible
13184         yet.
13186 2006-07-13  Jackson Harper  <jackson@ximian.com>
13188         * ComboBox.cs: Revert the item->index part of my previous patch.
13189         * TreeView.cs: Use LostFocus instead of Leave for detecting when
13190         the edit box has lost focus (duh).
13191         - Just make the edit box not visible when we get return, that will
13192         take the focus, which will call EndEdit
13193         * TreeNode.cs When we start editing, notify the treeview.
13195 2006-07-12  Jackson Harper  <jackson@ximian.com>
13197         * ComboBox.cs: Clear out old items before setting the item list.
13198         This prevents databound controls from having their items added
13199         twice.
13200         - Switch the combobox to use indices whereever possible instead of
13201         using Item's.  This allows usto navigate through lists that have
13202         more then one item with the same string value (ie a, b, b, a).
13203         - Scroll the listboxes scrollbar when a non visible item is
13204         highlighted
13205         - Allow keypress to cycle through all the possible values. For
13206         example if you have b1, b2, b3 and hold down the B key all the
13207         values will be cycled through.
13208         
13209 2006-07-12  Jackson Harper  <jackson@ximian.com>
13211         * TextBoxBase.cs:
13212         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
13213         this using the internal methods.
13214         * Control.cs: Add OnGotFocusInternal.  A new method that allows
13215         controls to "override" OnGotFocus and change focus behavior if
13216         needed.
13217         - Same thing for LostFocus
13218         * ComboBox.cs: Pass off focus to the text control properly.
13220 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
13222         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
13223         * FolderBrowserDialog.cs: Almost a complete rewrite.
13224           - Better support for Environment.Specialfolders
13225           - Added support for MWFVFS
13226           - Made setting SelectedPath work
13228 2006-07-12  Jackson Harper  <jackson@ximian.com>
13230         * Control.cs: Optimze getting all the controls.
13232 2006-07-11  Jackson Harper  <jackson@ximian.com>
13234         * ContainerControl.cs: Override SETFOCUS in the container control,
13235         so that it is not selected on mouse click.
13237 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
13239         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
13240           Hopefully we will have a better way once all of focus is complete.
13242 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
13244         * ThemeWin32Classic.cs: Commented out some debug code and fixed
13245           a compile error with csc.
13247 2006-07-11  Jackson Harper  <jackson@ximian.com>
13249         * Control.cs: When hiding a control only select the next control
13250         if the current control was focused.
13251         - Don't handle enter/leave when setting/killing focus, this is
13252         done by the container control.
13253         - Remove is_selected, it's not needed anymore.
13254         - Add utility methods for selecting a child control, and for
13255         firing the Enter/Leave events.
13256         * ContainerControl.cs: When a control is activated fire the
13257         enter/leave events.
13258         - Don't wrap when processing the tab key, so that focus can be
13259         moved outside of the container.
13260         - Use the correct active control
13262 2006-07-11  Jackson Harper  <jackson@ximian.com>
13264         * ComboBox.cs: Remove some debug code that was blinding me.
13265         * UpDownBase.cs: These controls actually aren't implicit, they are
13266         visible to the user.
13268 2006-07-10  Chris Toshok  <toshok@ximian.com>
13270         * DataGrid.cs: move back to the is_adding boolean field.  god i
13271         hate this is_editing/is_adding/is_changing stuff.
13273 2006-07-10  Chris Toshok  <toshok@ximian.com>
13275         * DataGridTableStyle.cs: just check if the property type is bool.
13276         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
13277         Don't use CanRenderType.
13279         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
13280         if our text == NullText.  Remove CanRenderType.
13282         * DataGridBoolColumn.cs: nuke CanRenderType.
13284         * DataGrid.cs: reenable some code to end the current edit inside
13285         of set_CurrentCell.  This fixes the other 1.1.16 regression.
13286         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
13287         Also, remove the visible_row_count arg from CalcRowHeaders, since
13288         we don't need to worry about the actual height of the area.
13290 2006-07-10  Chris Toshok  <toshok@ximian.com>
13292         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
13293         mode, just return.
13295         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
13296         the real sense of the IsInEditOrNavigateMode property (true =
13297         navigate, false = edit).  Also, update OnKeyPress to reflect this.
13299         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
13300         column style exists, we still need to set its property descriptor
13301         to match up with our list manager.
13303 2006-07-10  Chris Toshok  <toshok@ximian.com>
13305         * ThemeWin32Classic.cs: implement the new row/header painting
13306         approach.  The parent row painting will likely go away and
13307         replaced with label controls, but the rest seems to work ok (and
13308         efficiently).
13310         * Theme.cs: change the way we draw datagrid rows.  we don't draw
13311         the row headers as a block now.  Instead we draw them in the
13312         normal draw-row loop.  Add some calls for drawing parent rows and
13313         relation rows.
13315         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
13316         a default table style.  Set the defaults from ThemeEngine.Current,
13317         not SystemColors.  Fix lots of misc issues with property setters.
13319         * DataGrid.cs: move loads of style information out of this class
13320         as it's being duplicated with DataGridTableStyle.  keep track of a
13321         special DataGridTableStyle for the properties we used to mirror
13322         here.  Switch all the style properties to access this table style
13323         instead of instance fields of this class.  Also add a internal
13324         class to represent parent rows (more needs to be stored here, like
13325         the selection state from the parent table, as well as the
13326         expansion state.)  Also, for datasources with relations, do the
13327         right thing for collapse/expand, and add support for the
13328         navigation/parent row buttons.
13330         Lastly, fix the crash in the 1.1.16 build.
13332         * GridTableStylesCollection.cs: make the explicit interface
13333         implementations call the class's methods as opposed to duplicating
13334         them.
13336         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
13337         0 so the text doesn't jump around when we move the cursor.
13339 2006-07-10  Jackson Harper  <jackson@ximian.com>
13341         * TextBoxBase.cs:
13342         * ListBox.cs: Match MS's ToString (this makes debugging focus
13343         stuff infinitely easier).
13345 2006-07-10  Jackson Harper  <jackson@ximian.com>
13347         * Control.cs (SelectNextControl): When checking the control's
13348         parent use this instead of ctrl.parent so that null can be passed
13349         to SelectNextControl. (I have unit tests for this).
13350         - Remove unused var.
13352 2006-07-10  Chris Toshok  <toshok@ximian.com>
13354         * CurrencyManager.cs: correct one regression, the removal of the
13355         finalType field.  Also, add a MonoTODO on CanAddRows, implement
13356         Refresh() correctly, and fix some event emission in
13357         ListChangedHandler.
13359 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
13361         * FileDialog.cs: Don't use brackets for new folders if they exist
13362           under *nix. Instead use -(number of existing folders +1).
13364 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
13366         * FileDialog.cs:
13367           - Fixed really nasty bug #78771
13368           - Don't block the whole GUI when reading directories with a lot of
13369             entries. Use an other thread instead and call BeginInvoke to
13370             update the ListView in MWFFileView
13372 2006-07-07  Chris Toshok  <toshok@ximian.com>
13374         * Control.cs (Dispose): release any Capture when disposing.
13376 2006-07-07  Chris Toshok  <toshok@ximian.com>
13378         * LinkLabel.cs (Select): if we chain up to the parent, set
13379         focused_index to -1 so we'll search for the first available link
13380         the next time the user tabs into us.  Also, if the direction is
13381         backward and focused_index == -1, start the search from the last
13382         element.
13384 2006-07-07  Chris Toshok  <toshok@ximian.com>
13386         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
13387         is beyond the end of the text, don't do anything.
13388         (CreateLinkPieces): set our ControlStyles.Selectable based on
13389         whether or not we have any links.
13390         (Link.Invalidate): use a loop instead of foreach.
13391         (Link.set_Start): null out owner.sorted_links so it'll be
13392         recreated by CreateLinkPieces.
13394 2006-07-06  Chris Toshok  <toshok@ximian.com>
13396         * LinkLabel.cs: revert the SetStyle change.
13398 2006-07-06  Chris Toshok  <toshok@ximian.com>
13400         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
13401         (OnEnableChanged): s/Refresh/Invalidate
13402         (OnGotFocus): if we have a focused index already, refocus it (so
13403         if we mouse out/in to the window it'll focus the right link).
13404         (OnKeyDown): move the tab handling out of here.
13405         (OnLostFocus): don't set focused_index to -1, so we can refocus it
13406         when we lose focus.
13407         (OnMouseDown): don't Capture here - Control handles it.  Also,
13408         focus the active link.
13409         (OnMouseUp): don't deal with Capture.
13410         (OnPaintBackgroundInternal): remove.
13411         (OnTextAlignChanged): CreateLinkPieces before calling the
13412         superclass's method.
13413         (OnTextChanged): call CreateLinkPieces before calling superclass's
13414         method.
13415         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
13416         move around.
13417         (Select): implement this, moving the selection between different
13418         links, and call parent.SelectNextControl if we don't have another
13419         link to focus in the given direction.
13420         (CreateLinkPieces): call Invalidate instead of Refresh.
13421         
13422 2006-07-06  Chris Toshok  <toshok@ximian.com>
13424         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
13425         new LinkLabel internals.
13427         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
13428         over pieces looking for active/focused/etc links.  also, deal with
13429         runs of text (and links) with embedded \n's in them, and use
13430         MeasureCharacterRanges instead of MeasureString to figure out the
13431         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
13432         two-step.
13434 2006-07-04  Jackson Harper  <jackson@ximian.com>
13436         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
13437         XKB or key auto repeat, do it manually.  Without key auto repeat,
13438         when a key is held down we get key press, key release, key press,
13439         key release, ... with auto repeat we get key press, key press, key
13440         press ..., and then a release when the key is actually released.
13442 2006-07-03  Jackson Harper  <jackson@ximian.com>
13444         * TabControl.cs:
13445         * ThemeWin32Classic.cs: Tabs do not obey normal background color
13446         rules, they are always control color regardless of the background
13447         color.
13449 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
13451         * FileDialog.cs: Added internal class MWFConfig.
13452           Removed Registry support and replaced it with support for the new
13453           MWFConfig class. See MWFConfig comments for more information.
13455 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
13457         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
13458           rectangle. Added some patches from eno from bug #78490 and fixed
13459           the arrow position for small up and down CPDrawScrollButtons.
13461 2006-06-30  Jackson Harper  <jackson@ximian.com>
13463         * InternalWindowManager.cs: Remove some debug code.
13464         * Form.cs: When an MdiParent is set to null, the window is
13465         "detatched" and becomes a normal window.
13466         * MdiClient.cs: Don't bring the new child form to the front until
13467         it is activated (setting it as active does this), this makes the
13468         previously active forms titlebar get redrawn as inactive.
13470 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
13472         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
13473           with later controls
13475 2006-06-29  Mike Kestner  <mkestner@novell.com>
13477         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
13478         arrow in keynav state.  Fixes #78682.
13480 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
13482         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
13483           order (fixes #78393)
13485 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
13487         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
13488           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
13489           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
13490           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
13491           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
13492           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
13493           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
13494           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
13495           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
13496           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
13497           enumerations (FlagsAttribute, SerializableAttribute, added/removed
13498           values)
13500 2006-06-28  Mike Kestner  <mkestner@novell.com>
13502         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
13504 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
13506         * PropertyGrid.cs,
13507           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
13508           item lines from other area (It also makes BackColor consistent and
13509           compatible with .NET). Fixed bug #78564.
13511 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
13513         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
13514         Patch from Eno for #78555.
13516 2006-06-27  Chris Toshok  <toshok@ximian.com>
13518         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
13520         * DataGridColumnStyle.cs: same.
13522         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
13523         
13524         * DataGridDrawingLogic.cs: nuke.
13526 2006-06-27  Chris Toshok  <toshok@ximian.com>
13528         * DataGridTableStyle.cs: clean up the constructors, and build the
13529         list of child relations for this table.  I have no idea if this is
13530         where we should be doing it (it probably isn't), but since we're
13531         already iterating over the properties..
13533         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
13534         struct and array for keeping track of row information, similar to
13535         what's shown in a hack on
13536         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
13538         * Theme.cs: be consistent about the naming of DataGrid methods,
13539         prefering ColumnWidths and RowHeights over columnsWidths and
13540         RowsHeights.
13542         * ThemeWin32Classic.cs: same, and also add support for variable
13543         sized rows (and the +/- expansion icons for related rows).
13545 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
13547         * TextBoxBase.cs: Applied Eno's patch from #78660
13549 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
13551         * Form.cs (ScaleCore): We don't want to scale our form if it's
13552           state is minimized or maximized, but we still need to scale our
13553           child windows. Also, added try/finally block to ensure layout
13554           gets reset (Fixes #78697)
13556 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
13558         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
13560 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
13562         * Form.cs: Fixed c+p error and added check to resize form if minimum
13563           size is bigger than current size (Fixes #78709)
13565 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
13567         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
13569 2006-06-26  Mike Kestner  <mkestner@novell.com>
13571         * ComboBox.cs: only do Keypress handling in the combo when there  
13572         are items in the collection. Fixes #78710.
13574 2006-06-26  Chris Toshok  <toshok@ximian.com>
13576         * Binding.cs: make this work bi-directionally.  also, clear up
13577         other mixups between Push/Pull Data (e.g. we're supposed to pull
13578         data when validating).
13580         * BindingManagerBase.cs: trim some fully qualified collection
13581         types.
13583         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
13585 2006-06-23  Chris Toshok  <toshok@ximian.com>
13587         * PropertyManager.cs: It appears (according to the unit tests)
13588         that PropertyManager doesn't use
13589         PropertyDescriptor.AddValueChanged to track propery value changes
13590         in its datasource, but uses the same scheme as Binding, where it
13591         looks for a <Property>Changed event and binds to it.
13593         Also, according to the docs, IsSuspended always returns false for
13594         a property manager with a non-null datasource.
13596 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
13598         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
13599           need to update the actual DialogResult. (Fixes #78613)
13601 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
13603         * Form.cs (ShowDialog): Release any captures before running the
13604           new message pump (fixes #78680)
13606 2006-06-22  Mike Kestner  <mkestner@novell.com>
13608         * ListView.cs: Layout column widths properly in details mode even 
13609         if HeaderStyle.None is set.  Fixes #78691.
13611 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
13613         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
13615 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
13617         * Control.cs (ContainsFocus): Using new driver method to get focused
13618           window, instead of trying to use internal tracking var, which can
13619           recursion issues (Fixes #78685)
13620         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
13621           XplatUIWin32.cs: Added GetFocus method to return focused window
13623 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13625         * ColorDialog.cs: when the mouse button is pressed inside the color
13626         matrix, don't let the cursor move out of it until the button is
13627         released, which is the behavior on windows. Changed 'colours' by
13628         'colors' to use the same word consistently.
13630 2006-06-21  Chris Toshok  <toshok@ximian.com>
13632         * DataGrid.cs: add in some basic navigation stuff (navigating to a
13633         child relation and back, using a stack).  Also, remove
13634         GetDataSource and the code that calls it - it's not needed.  Also,
13635         track CurrencyManager.ListName's removal.
13637 2006-06-21  Chris Toshok  <toshok@ximian.com>
13639         * CurrencyManager.cs: push some of the original type checking from
13640         BindingContext.CreateBindingManager to here, and remove some of
13641         the finalType stuff.  Need more tests to make sure I've got the
13642         ListName part right, and we might need more in SetDataSource.
13644         * PropertyManager.cs: add a ctor that takes just the datasource,
13645         and no property name.  Make SetDataSource work with a null
13646         property_name, and make Current return the data_source if the
13647         property descriptor is null.  this makes 'string foo = "hi";
13648         BindingContext[foo].Current' return "hi" as it should.
13650         * RelatedCurrencyManager.cs: make this code more generic - there's
13651         no reason the parent manager has to be CurrencyManager, and
13652         there's no reason to pass the DataRelation.  It suffices to use a
13653         BindingManagerBase and PropetyDescriptor.
13655         * RelatedPropertyManager.cs: make a similar change here.
13656         
13657         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
13658         flower I knew it could be.
13660 2006-06-20  Chris Toshok  <toshok@ximian.com>
13662         * PropertyManager.cs: the PropertyChangedHandler is invoked when
13663         data in the source has changed and we need to update the control,
13664         so s/PullData/PushData.
13666         * CurrencyManager.cs: Refresh is meant to update the control from
13667         data in the datasource.  So, s/PullData/PushData.
13669         * BindingContext.cs: add more ugliness (we weren't handling the
13670         case where data_source = DataTable and data_member = column_name).
13672         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
13673         from the perspective of the datasource.  PullData pulls from the
13674         control, PushData pushes to the control.
13676 2006-06-20  Chris Toshok  <toshok@ximian.com>
13678         * BindingContext.cs: rewrite the CreateBindingManager code to
13679         handle navigation paths more or less properly.  This could
13680         definitely stand some more work, in particular to push the
13681         recursion up to the toplevel.  But that relies on fixes in other
13682         places (System.Data comes to mind).
13684         Also, move to a flat hashtable (and encode the twolevel nature of
13685         the dictionary into the hash key).  This lets us implement the
13686         IEnumerable.GetEnumerator method.
13688         * RelatedCurrencyManager.cs: new class.  Update our view based on
13689         our relation and our parent CurrencyManager's position.
13691         * CurrencyManager.cs: split out some logic from the ctor into
13692         SetView, so it can be called from the new RelatedCurrencyManager
13693         subclass.
13695         * RelatedPropertyManager.cs: new class.  Update our datasource
13696         based on the position of our parent CurrencyManager.
13698         * PropertyManager.cs: split out some logic from the ctor into
13699         SetDataSource, so it can be called from the new RelatedDataSource
13700         subclass.  Also, make the Current getter return the value
13701         of the PropertyDescriptor, not the data_source.
13703         * Binding.cs: no need to duplicate the string splitting code here.
13705 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
13707         * Control.cs:
13708           - set_Enabled: OnEnabledChanged is not called if the inherited state 
13709             of the control is not altered, even though  we might be changing the
13710             internal state of the control (#78458)
13711           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
13712             OnEnabledChanged, to allow easy altering of any child window state
13713           - OnEnabledChanged: Added code to enable/disable driver window state
13714           - OnParentEnabledChanged: Instead of firing the event, call 
13715             OnEnabledChanged, which will fire the event and also a) set driver
13716             window state and pass the enabled state to any grandchildren (#78458)
13718 2006-06-19  Jackson Harper  <jackson@ximian.com>
13720         * InternalWindowManager.cs: We don't set the cursor explicitly
13721         thats done via the response to NCHITTESTs.
13722         - Don't need to adjust for titlebar heights anymore, the
13723         coordinates are coming in the correct coordinates now (see peters
13724         last patch).
13727 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
13729         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
13730           being translated relative to whole window, instead of client window.
13731           That caused broken offsets on mouseclick (and caused gas for our
13732           InternalWindowManager)
13734 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
13736         * TextControl.cs:
13737           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
13738           - Undo(): Added replay of cursor move on DeleteChars action; added
13739             calling Undo() again if a recorded cursor move is invalid (to
13740             ensure that some action is performed on Undo)
13741         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
13743 2006-06-16  Jackson Harper  <jackson@ximian.com>
13745         * MdiClient.cs: Instead of just sizing maximized windows when
13746         there is a resize we also have to adjust the Y of minimized
13747         windows, so they stay pinned to the bottom of the mdi container.
13748         - Eliminate separate tracking of the active control, we can just
13749         get this from the controls collection.
13750         - Paint the decorations for the newly activated titlebar so we get
13751         a pretty blue bar.
13752         * InternalWindowManager.cs:
13753         * ThemeWin32Classic.cs: Minimized windows get all three buttons
13754         even if they are a tool window.
13755         
13756 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
13758         * TextControl.cs (Undo): Handle non-existent cursor locations in the
13759           undo buffer, these can happen when text was deleted and the cursor
13760           was recorded first. Since we will also have a recorded cursor
13761           after the delete this is not an issue. (Fixes #78651)
13763 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
13765         * AccessibleObject.cs: Remove dependence on Control.is_selected;
13766           instead properly track control states internally (allows us to
13767           remove is_selected from Control)
13769 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13771         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
13772         whose width is not a multiple of 8.
13774 2006-06-13  Jackson Harper  <jackson@ximian.com>
13776         * MdiClient.cs:  Only maximize the next child if the current one
13777         is maximized.
13779 2006-06-13  Chris Toshok  <toshok@ximian.com>
13781         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
13782         modified.  Also, guard against grid or grid_drawing being null in
13783         Invalidate.
13785         * DataGrid.cs: Reformat tons of getters/setters.  In the
13786         DataMember setter, just call SetNewDataSource instead of
13787         duplicating some of its functionality.  In SetNewDataSource, don't
13788         check ListManager for null, since the property getter creates the
13789         object if needed.
13791         * DataGridTableStyle.cs: don't set TableStyle or call
13792         SetDataGridInternal on the column here, it's done in
13793         GridColumnStylesCollection.Add.
13795         * GridColumnStylesCollection.cs: fix all the explicit interface
13796         implementations to just call our methods.  Nuke AddInternal() and
13797         move the body of it to Add().  Also, add a call to
13798         column.SetDataGridInternal to Add().
13800         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
13801         base()+duplicate code.  Also, use the Format property instead of
13802         format to generate an Invalidate ala MS.  Lastly, create the
13803         textbox here, unconditionally.
13804         (set_Format): call Invalidate.
13805         (get_TextBox): no need to call EnsureTextBox.
13806         (Commit): remove the message box.
13807         (Edit) remove the call to EnsureTextBox.
13808         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
13809         (EnterNullValue): no need to check textbox for null.
13810         (HideEditBox): no need to check textbox for null.
13811         (SetDataGridInColumn): add the textbox to the grid's controls.
13812         (EnsureTextBox): nuke.
13813         
13814 2006-06-13  Jackson Harper  <jackson@ximian.com>
13816         * MdiWindowManager.cs: Hook up to the maximized menus paint event
13817         and redraw the buttons when needed. Unhook when the window is
13818         unmaximized.
13819         * MainMenu.cs: Add an internal Paint event, the mdi window manager
13820         needs this so that it can redraw its buttons when the menu is
13821         repainted.
13822         * InternalWindowManager.cs:
13823         * Form.cs: The method order has changed for DrawMaximizedButtons,
13824         so that it can be a PaintEventHandler.
13825         
13826 2006-06-13  Jackson Harper  <jackson@ximian.com>
13828         * MdiClient.cs: When we close a maximized mdi window, the next mdi
13829         window is activated and maximized, even if it wasn't before.
13830         - When  a new window is activated repaint the decorations of the
13831         old one, so that it no longer has the Active "look" (the blue
13832         titlebar).
13833         * InternalWindowManager.cs: Open up CreateButtons to base classes
13834         so they can recreate the buttons on state changes.
13835         - If a window is maximized give it all three buttons
13836         * MdiWindowManager.cs: Create the titlebar buttons when the state
13837         is changed, this is needed because a toolwindow will not have all
13838         three buttons until it is maximized.
13840 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
13842         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
13843           Fixed bug #78609.
13845 2006-06-12  Jackson Harper  <jackson@ximian.com>
13847         * KeysConverter.cs: Make sure we handle the Ctrl special case
13848         if its the only key.
13849         
13850 2006-06-12  Jackson Harper  <jackson@ximian.com>
13852         * Theme.cs: Add a method to get the size of a managed window
13853         toolbar button.
13854         * InternalWindowManager.cs: Remove the ButtonSize property, this
13855         should be retrieved from the theme.
13856         * MdiWindowManager.cs: Get the button size from the theme
13857         * ThemeWin32Classic.cs: Make the method to get the managed window
13858         titlebar button size public.
13859         - Handle the different button sizes of maximized toolwindows
13860         (should match any maximized window).
13861         - Get the titlebar height from the theme, not the WM (which gets
13862         it from the theme).
13864 2006-06-12  Jackson Harper  <jackson@ximian.com>
13866         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
13867         event down to the mdi window manager.
13868         - Expose some extra stuff to base classes
13869         - Make sure to end the Capture on an NC Mouse up, so that we can
13870         get double clicks properly, and the sizing doens't stick.
13871         - When doing PointToClient contain it in the workable desktop
13872         area, this prevents windows from changing size when the cursor is
13873         pulled outside of the working area while sizing.
13874         * MdiWindowManager.cs: When we get a double click maximize the
13875         window.
13876         - Reset the cursor after handling mode changes.
13878 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
13880         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
13881           current desktop, instead of just assuming a 0, 0 origin. This
13882           is needed for our internal window manager, to know the top
13883           margin of the desktop
13885 2006-06-12  Chris Toshok  <toshok@ximian.com>
13887         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
13888         we need this to get rid of the selected background in the bool
13889         column.
13890         (CancelEditing): move the ConcedeFocus call to above the Abort
13891         call.  Also, set is_changing to false and invalidate the row
13892         header if we were changing before.
13893         (ProcessKeyPreviewInternal): remove, since noone outside this
13894         class calls it anymore.  Roll the code into ProcessKeyPreview.
13895         (EndEdit): remove the internal version.
13896         (InvalidateCurrentRowHeader): make private.
13898         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
13899         Keys.Escape handling (and with it the last call to
13900         DataGrid.EndEdit from outside the class.)
13903 2006-06-12  Chris Toshok  <toshok@ximian.com>
13905         * DataGridTextBox.cs (.ctor): isedit defaults to false.
13906         (OnKeyPress): set isedit to true.
13907         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
13908         already handled by the grid.
13910         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
13911         right.  ugh.
13912         (set_DataSource): SetDataSource always returns true, so stop
13913         putting it in an if statement.
13914         (EndEdit): get rid of some {}'s
13915         (ProcessGridKey): return true in case Keys.Escape.
13916         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
13917         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
13918         PositionChanged, stopped connecting to CurrentChanged.
13919         (GetDataSource): simplify this a bunch.
13920         (SetDataSource): change return type from bool to void.
13921         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
13922         to this, and make sure we don't set ListManager.Position inside
13923         set_CurrentCell.
13924         (OnListManagerItemChanged): if we're passed an actual index,
13925         redraw that row.
13927         * CurrencyManager.cs (set_Position): don't call PullData here.
13929 2006-06-09  Jackson Harper  <jackson@ximian.com>
13931         * TreeNode.cs:  Recalculate the visible order before doing the
13932         Expand/Collapse Below calls, because those calls generate an
13933         expose.
13934         - Reduce calls to the TreeView property, which is mildly expensive
13935         by using a local var.
13936         * Form.cs: Layout the MDI child windows when creating the parent
13937         form.
13938         - Don't use the internal constructor anymore
13939         * MdiClient.cs: use the parent form width/height (if available)
13940         when laying out the child windows, we do this because the
13941         mdiclient isn't docked yet when the initial layout is done.
13942         - Don't need an internal constructor anymore.
13944 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13946         * FileDialog.cs: handle access errors when trying to create a folder
13947         or changing to a directory. No need to initialize out parameters.
13949 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
13951         * FileDialog.cs: Append a number when creating a new folder if the
13952           folder already exists (use parenthesis instead of square brackets)
13954 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
13956         * FileDialog.cs:
13957           - Disabled registry support for windows and added better registry
13958             error checking for other systems (need to investigate why it
13959             works perfectly on my system)
13960           - If a folder already exist show an error MessageBox instead of
13961             trying to create an indexed name.
13962           - Fixed a non intentional typo.
13964 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13966         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
13968 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
13970         * FileDialog.cs: When creating a new folder don't crash if the
13971           folder already exists.
13973 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
13975         * FileDialog.cs: Allmost a complete rewrite.
13976           - added a "virtual" file system that handles the differences
13977             between unix and windows file systems (especially the directory
13978             structure). Moved most of the directory and file handling code
13979             into the vfs.
13980             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
13981             UnixFileSystem and FSEntry.
13982           - Recently used folder/directory, size, location and used file names
13983             (file name ComboBox) are now stored in the registry and get read
13984             before the dialog shows up (fixes part 6 of bug #78446).
13985           - Creation of new folders/directories is now possible (context menu
13986             or ToolBar). Added TextEntryDialog for this that fills in the gap
13987             until ListView.LabelEdit works.
13988           - Fixed cursor handling (bug #78527) and focus handling for
13989             PopupButtonPanel
13990           - Various "Search in" ComboBox enhancements. The content of the
13991             dropdown listbox now almost matches ms.
13992           - Changed the behaviour when the user switches to SpecialFolder
13993             Recent to show the ListView in View.Details.
13994           - Beside using the ToolBar to change the View property of the
13995             file ListView it is now possible to use the context menu too.
13997 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
13999         * ComboBox.cs: Don't create a new ObjectCollection when an item
14000           gets inserted. Just insert the item in the existing object_items
14001           ArrayList.
14003 2006-06-08  Jackson Harper  <jackson@ximian.com>
14005         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
14006         that the treeview and root node checks are done also, this fixes a
14007         regression i caused in the unit tests.
14009 2006-06-07  Wade Berrier <wberrier@novell.com> 
14011         * RichTextBox.cs: More ISO8859-1 -> unicode
14013 2006-06-07  Mike Kestner  <mkestner@novell.com>
14015         * ComboBox.cs : use items to hold highlight/selection so that
14016         collection insertions don't require synchronization.
14018 2006-06-07  Jackson Harper  <jackson@ximian.com>
14020         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
14021         routine.  We now always keep the sized edge at the cursor instead
14022         of computing movement and adjusting rects.  There is one buglet
14023         with this method though when the cursor is moved over area that
14024         the window can not expand too (such as the toolbars on the desktop).
14026 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14028         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
14029         here. Fixes crash on startup in AlbumSurfer.
14031 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
14033         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
14034           values
14036 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14038         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
14039         statement to avoid calling XNextEvent which will block if another thread
14040         took the event that we were expecting. Fixes bug #78605.
14042 2006-06-07  Mike Kestner  <mkestner@novell.com>
14044         * ListView.cs : isolated checkbox clicking from the selection logic.
14045         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
14047 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14049         * Form.cs: Check that the value passed to Form.DialogResult
14050         is a valid enum value.
14052 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14054         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
14055         Computer'. Clicking it in the network view goes to 'My Computer'.
14056         Added CIFS filesystem type. Display the mount point of filesystems.
14057         Avoid duplicate mount points (happens for me with CIFS);
14059 2006-06-06  Jackson Harper  <jackson@ximian.com>
14061         * InternalWindowManager.cs: Draw the maximized windows buttons
14062         when resizing.
14064 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14066         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
14067         all other dialogs. Fixes bug #78585.
14069 2006-06-06  Mike Kestner  <mkestner@novell.com>
14071         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
14072         Only invalidate checkbox on checkstate changes to avoid flicker.
14073         * ListBox.cs : avoid unselect/select when clicking selected item.
14074         avoid reselection flicker for already multiselected items.
14075         Fixes #78382.
14077 2006-06-06  Jackson Harper  <jackson@ximian.com>
14079         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
14080         the parent form so that the menu is removed if needed.
14082 2006-06-06  Mike Kestner  <mkestner@novell.com>
14084         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
14085         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
14087 2006-06-06  Mike Kestner  <mkestner@novell.com>
14089         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
14092 2006-06-06  Jackson Harper  <jackson@ximian.com>
14094         * Control.cs: Use the property (instead of the field) to get the
14095         default cursor so it is instantiated correctly.
14096         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
14097         resizes so we need to manually repaint the window decorations here.
14098         - Set the titlebar button locations as soon as they are created,
14099         otherwise they are not set correctly on win32.
14100         
14101 2006-06-06  Chris Toshok  <toshok@ximian.com>
14103         * CurrencyManager.cs (set_Position): call PullData before
14104         OnCurrentChanged.
14105         (AddNew): after calling IBindingList.AddNew, update our
14106         listposition, and call OnCurrentChanged/OnPositionChanged (without
14107         calling PullData).
14108         (OnCurrentChanged): remove the call to PullData from here.
14109         (OnItemChanged): remove the call to PushData from here.
14110         (OnPositionChanged): change the test from == null to != null to
14111         match the other methods.
14112         (ListChangedHandler): the grossest part of the patch.  Implement
14113         this such that it passes the unit tests in CurrencyManagerTest and
14114         the output more or less matches that of MS's implementation.
14116 2006-06-06  Mike Kestner  <mkestner@novell.com>
14118         * ListView.cs : only update check state on single click.
14119         * ThemeWin32Classic.cs : fix focus drawing for details view without
14120         fullrowselect.  Fixes #78454.
14121         * XplatUIX11.cs : fix for double click emission.
14123 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
14125         * PropertyGridView.cs : Applied Atsushi's patch to fix
14126         font dialog bug  (#78197).
14128 2006-06-05  Jackson Harper  <jackson@ximian.com>
14130         * TreeNode.cs: Compute the next node for expanding/collapsing
14131         correctly. We now factor in nodes without a NextNode
14132         correctly. (Fixes somes cases in nunit-gui).
14133         * InternalWindowManager.cs: Set the bounds when updating the
14134         virtual position of a tool window.
14135         
14136 2006-06-05  Chris Toshok  <toshok@ximian.com>
14138         * DataGrid.cs: rename cached_currencymgr to list_manager.
14139         (set_CurrentCell): move SetCurrentCell code here, and clean it up
14140         some.
14141         (CurrentRow, CurrentColumn): single accessors so we can make the
14142         cursor movement code a lot easier to understand.
14143         (CurrentRowIndex): implement this in terms of CurrentRow.
14144         (BeginEdit): clean this up a bit.
14145         (CancelEditing): sort out the is_editing/is_changing/is_adding
14146         stuff a little.
14147         (EndEdit): minor changes.
14148         (OnKeyDown): add a comment about a (most likely) unnecessary
14149         check.
14150         (OnMouseDown): cancel editing when we click on a row header.  And
14151         use the CurrentRow setter, not CurrentCell.
14152         (ProcessDialogKey): directly call ProcessGridKey.
14153         (UpdateSelectionAfterCursorMove): factor out this common block of
14154         code (it's used everywhere that we move the cursor by updating row
14155         or column).
14156         (ProcessGridKey): pretty substantial overhaul.  Use the
14157         CurrentRow/CurrentColumn properties to make the code a lot more
14158         readable.  Only use the CurrentCell property when we have to
14159         modify both row and column at once.  Tab behavior is still broken,
14160         and Delete is untested.
14161         (Select): if we have no selected rows, set selection_start to
14162         @row.
14163         (EditCurrentCell): rename EditCell this.  It was only ever invoked
14164         with CurrentCell as the arg, so drop the arg and rename it.
14166         * DataGridColumnStyle.cs: clean up the constructors a little, and
14167         drop CommonConstructor().
14169         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
14170         actually get notified when the user hits it.
14171         (ProcessKeyMessage): *substantially* simplify this method.
14172         There's no reason (that I can see) for the textbox to be making
14173         calls into the datagrid at all.  Remove all of them but the ones
14174         for Enter handling.  those will take some more work.
14176         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
14177         calling HideEditBox.
14178         (HideEditBox): if we have an active textbox, render it invisible
14179         without causing a re-layout of the datagrid.
14181 2006-06-05  Mike Kestner  <mkestner@novell.com>
14183         * ListView.cs : fix NRE crasher when focuseditem is cleared by
14184         collection changes by resetting it to Items[0].  Fixes #78587.
14186 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14188         * MessageBox.cs: if the height of the text is larger than the icon_size,
14189         use that. Fixes bug #78575.
14191 2006-06-05  Jackson Harper  <jackson@ximian.com>
14193         * TreeView.cs: Fix line drawing when scrolling.  To do this each
14194         node is basically responsible for drawing its entire horizontal
14195         area.  When drawing a node it draws its parent node lines if
14196         needed.
14197         - Adjust the clip area to the viewport rectangle
14198         - Fix Left/Right key handling to match MS. (It expand/collapses
14199         and moves to parents/first child but does not move selection to
14200         sibling nodes).
14201         - Fix SetTop to work with new bound calculation code
14202         - When scrollbars are no longer needed we need to reset scrolling
14203         vars and recalculate the visible order so the redraw is correct
14204         * TreeNode.cs: We can't expand/collapse nodes with no children.
14206 2006-06-03  John Luke  <john.luke@gmail.com> 
14208         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
14209         so the colors work without dev packages
14210         
14211 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
14213         * Control.cs 
14214           - Select: Implemented to just use activate. Seems to match MS 
14215             behaviour closest. Documented to only do actual control walking 
14216             based on it's parameters if in a container control so I moved 
14217             the code there.
14218           - Removed selection check logic from our internal Select() method
14219         * ContainerControl.cs:
14220           - Select: Moved selection logic from Control here, since MS documents
14221             that containers obey the bool arguments. No longer calling base
14223 2006-06-02  Jackson Harper  <jackson@ximian.com>
14225         * TreeView.cs: If the selected node isn't changed when we get
14226         focus update the previously selected node so that we see the
14227         selection box.
14229 2006-06-02  Mike Kestner  <mkestner@novell.com>
14231         * ComboBox.cs: restructure grab and general mouse event handling.
14232         Make the composite control raise mouse events like it was a single
14233         control for leaves/enters/motion/up/down events.  fix dropdown list
14234         coordinate mangling and refactor it into the scrollbar subclass to
14235         reduce code duplication.  Fixes #78282 #78361 and #78457.
14237 2006-06-02  Mike Kestner  <mkestner@novell.com>
14239         * ScrollBar.cs: remove Capture setting/clearing, as it happens
14240         automatically in the Control.WndProc.
14242 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14244         * FileDialog.cs: fix crash when running SharpChess, which sets the
14245         FilterIndex to 2 with only one Filter.
14247 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14249         * ToolBar.cs: add SizeSpecified property.
14250         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
14251         try to figure out our real size, otherwise fallback to what the
14252         container says.
14254 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
14256         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
14257         * Control.cs (WndProc): MS always calls the DefWndProc to pass
14258           up the event
14260 2006-06-01  Mike Kestner  <mkestner@novell.com>
14262         * ListView.cs: revamp the focus management in ListView.  It still
14263         causes churn of LostFocus/GotFocus emissions on clicks, but it's
14264         better than not handling focus at all.  Will revisit when pdb feels
14265         the general focus handling is solid.  Fixes #78526.
14267 2006-06-01  Jackson Harper  <jackson@ximian.com>
14269         * TreeView.cs: Set the default border style in the constructor.
14270         - Move painting to use OnPaintInternal instead of capturing
14271         WM_PAINT, this is the correct way of doing things
14272         - UpdateBelow shouldn't invalidate the scrollbar area
14273         - Cap the top on update below in case the node was above the top
14274         of the viewport rectangle.
14275         - ExpandBelow and Collapse below need to obey Begin/End Update.
14276         * TreeNode.cs: Make is_expanded internal so the treenode
14277         collection can change it without firing the whole event chain.
14278         * TreeNodeCollection.cs: When clearing all the child nodes make
14279         sure to recalc the visible order.
14280         - Improve algo for remove the top node
14282 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
14284         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
14285           SendMessage directly calling window procedures, which in turn might
14286           call SetFocus()
14288 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
14290         * Control.cs: Don't handle WM_SETFOCUS if the same window already
14291           has focus (works around X11 sending a FocusIn after our SetFocus)
14292         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
14294 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
14296         * Mime.cs: Fix for the NET_2_0 build.
14297           NameValueCollection needs StringComparer now.
14299 2006-05-31  Chris Toshok  <toshok@ximian.com>
14301         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
14302         return (via an out parameter) the starting X of the column.
14303         (UpdateVisibleColumn): track change to FromPixelToColumn.
14304         (HitTest): add a ColumnResize case here.
14305         (DrawResizeLine): new function, probably poorly named.
14307         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
14308         only need to keep one reference.
14309         (set_ListManager): same.
14310         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
14311         Also, add support for HitTestType.ColumnResize.
14312         (OnMouseMove): add column resize behavior here, and change the
14313         cursor to the correct one as we move around the datagrid.
14314         (OnMouseUp): terminate the column resize if we're resizing.
14315         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
14316         for the current cell.
14317         (ConnectListManagerEvents): use cached_currencymgr.
14318         (DisconnectListManagerEvents): fill this in, using
14319         cached_currencymgr.
14320         (SetCurrentCell): remove cached_currencymgr_events handling.
14321         (SetDataMember): only call DisconnectListManagerEvents if
14322         cached_currencymgr is != null.
14323         (SetDataSource): same.
14324         (OnListManagerCurrentChanged): cached_currencymgr_events ->
14325         cached_currencymgr.
14327 2006-05-31  Jackson Harper  <jackson@ximian.com>
14329         * BindingManagerBase.cs: Remove somedebug code that creeped into
14330         SVN.
14331         * TreeNode.cs: We get the indent level dynamically right now, so
14332         don't track it as a member.
14333         * TreeNodeCollection.cs: Make sure all nodes added to the list
14334         have parents, treeviews/topnodes setup properly.
14335         - Don't attempt to track indent level.
14337 2006-05-30  Jackson Harper  <jackson@ximian.com>
14339         * BindingContext.cs: Create the currency manager tables here.
14340         This allows us to more easily create null tables (when bad data
14341         members are used), and more easily create related currency
14342         managers.
14343         * CurrencyManager.cs: All the table creation stuff is done by the
14344         binding context now.
14345         - Current should throw an exception if listposition is -1.
14346         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
14347         been bound yet.
14349 2006-05-30  Mike Kestner  <mkestner@novell.com>
14351         * ListView.cs: allow reexpansion of zero-width column headers.
14352         Fixes #78528.
14354 2006-05-28  Chris Toshok  <toshok@ximian.com>
14356         * CurrencyManager.cs (get_Current): after the late binding
14357         listposition = -1 fix, we need to guard against it here and return
14358         null, otherwise we raise an exception (which is swallowed
14359         elsewhere, and breaks datagrid databinding.)
14361 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
14363         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
14364           than WM_SYSKEY, don't throw if get something unexpected (#78507)
14366 2006-05-26  Jackson Harper  <jackson@ximian.com>
14368         * ControlPaint.cs:
14369         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
14370         values, it's faster and it's all we care about (we don't care if
14371         the names aren't equal).
14372         * KeyboardLayouts.cs: Eliminate some dead code.
14373         - Lazy init things
14374         * X11Keyboard.cs: Lazy init keyboard detection.
14375         - Cleanup access modifiers a little.
14377 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
14379         * XplatUIX11.cs: Once again, attempting to get layout just right.
14381 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
14383         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
14384           the sizes of each link section, that will result in sizes that
14385           match DrawString's layout (Fixes #78391)
14387 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
14389         * FileDialog.cs: If AddExtension property is true autocomplete the
14390           extensions in SaveFileDialog correctly. Fixes bug #78453.
14391           Set MyNetwork and MyComputer to "C:\" for windows. This should
14392           fix part 8 of bug #78446 for now.
14394 2006-05-26  Chris Toshok  <toshok@ximian.com>
14396         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
14397         invalidate the current row header if we need to, but presumably
14398         we'll invalidate the row corrsponding to the bounds or
14399         editingControl.
14400         (GridHScrolled): switch back to this method, as it's part of the
14401         public api.  *sigh*.
14402         (GridVScrolled): same.
14403         (OnMouseWheel): hack up something that more or less works.  Call
14404         GridHScrolled/GridVScrolled directly, instead of duplicating much
14405         of their code here.
14406         (EnsureCellVisibility): reinstate a bunch of this code, since we
14407         can't just set the scrollbar Value and expect to do all the work
14408         in the ValueChanged handler.  Also, Call Update() after scrolling
14409         in one direction so the other XplatX11.ScrollWindow call has the
14410         proper stuff in the proper places.
14411         (EditCell): set is_editing to true before calling .Edit.
14413         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
14414         don't bother comparing first.
14415         (OnKeyPress): call grid.ColumnStartedEditing before calling
14416         base.OnKeyPress.  this will set is_changing and invalidate the row
14417         header if necessary.
14418         (ProcessKeyMessage): for WM_CHAR messages, call
14419         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
14420         and WM_KEYDOWN.
14421         
14422         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
14423         it's done in the DataGrid.
14424         (NextState): call grid.ColumnStartedEditing, which takes care of
14425         invalidating the row header (and setting is_changing).
14427         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
14428         here.  it's done in the DataGrid.
14430 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14432         * Control.cs: allow changing the cursor when the mouse position is
14433         out of bounds but Capture is set.
14434         * LinkLabel.cs: handle the case when the mouse button is pressed on the
14435         linklabel but released somewhere else.
14437 2006-05-25  Jackson Harper  <jackson@ximian.com>
14439         * TreeView.cs: When we get focus if there is no selected node make
14440         it the top node
14441         - Remove some uneeded setup code from Draw.
14442         * TreeNodeCollection.cs: If the tree doesn't have a top node when
14443         a new node is inserted make the new node the top.
14444         * XplatUIX11.cs:
14445         * Timer.cs: Use Utc time so that no local time zone stuff needs to
14446         be used (should be faster).
14447         
14448 2006-05-25  Chris Toshok  <toshok@ximian.com>
14450         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
14451         problem with the last commit.
14453 2006-05-25  Chris Toshok  <toshok@ximian.com>
14455         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
14456         need the invalidate call here, while scrolling right-to-left via
14457         the left arrow key (i.e. moving the editing cell while scrolling).
14459         * DataGrid.cs (.ctor): remove the initialization of
14460         ctrl_pressed/shift_pressed.  We no longer track them using key
14461         up/down handlers, but by using Control.ModifierKeys.  Also, switch
14462         to using ValueChanged handlers on the scrollbars instead of
14463         Scrolled event handlers.  This simplifies a bunch of the scrolling
14464         code.
14465         (GridHValueChanged): rename from GridHScrolled, and change it to
14466         work with the new event args.
14467         (GridVValueChanged): same.
14468         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
14469         (OnMouseWheel): actually scroll the datagrid.  Don't change the
14470         selected cell.
14471         (ProcessGridKey): correct all the keyboard navigation stuff I
14472         could find.  Ctrl up/down/left/right/home/end work now.
14473         (EnsureCellVisibility): correct method name spelling.  Also,
14474         simplify this a touch by not explicitly calling the
14475         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
14476         scrollbar value.
14477         (OnKeyUpDG): no need for this method now.
14478         
14479 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14481         * LinkLabel.cs: display the OverrideCursor when hovering the label.
14482         Fixes bug #78392.
14484 2006-05-25  Chris Toshok  <toshok@ximian.com>
14486         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
14487         r61019.
14489 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
14491         * Application.cs: Moved setting of is_modal and closing to before
14492           we create the control, to allow the event handlers called as a
14493           result of creation affect closing. Also removed Gonzalo's previous
14494           change to setting DialogResult, the behaviour has been moved to 
14495           Form.ShowDialog()
14496         * Form.cs: 
14497           - ShowDialog(): Removed explicit creation of the form, let RunLoop
14498             handle it instead
14499           - ShowDialog(): If no dialog result is set, we need to return Cancel
14500           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
14501             the close is cancelled
14503 2006-05-25  Jackson Harper  <jackson@ximian.com>
14505         * StatusBar.cs: We only need to update the sizes of the other
14506         panels when we have auto size contents.  Also we are only updating
14507         the contents of the panel, not the borders, so compensate for the
14508         border width (TODO: get this width from the theme somehow).
14509         * TreeView.cs: Scrollable is true by default
14510         - Use invalidate instead of refresh where needed
14511         - Factor the scrollable value into scrollbar updating
14512         - Update the scrollbars if the Scrollable property is altered
14513         - Update the selected node if its ImageIndex is changed
14514         - Handle null nodes in UpdateNode (mainly so we don't have to
14515         check if selected is null when updating it
14516         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
14517         are factored into the visible count
14518         - Use VisibleCount for clarity in the code
14519         - When the font is changed we need to recurse through all the
14520         nodes and invalidate their sizes
14521         
14522 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14524         * Application.cs: set the DialogResult to fixed when the main form is
14525         hidden or destroyed while being modal.
14527 2006-05-25  Miguel de Icaza  <miguel@novell.com>
14529         * Theme.cs: Use Tangoified messagebox icons. 
14531         (GetSizedResourceImage): Also cope with width = 0 and do not
14532         trigger a warning in that case (0 means "give me your icon from
14533         the resouce, no special size needed).
14535 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
14537         * Application.cs: Leave runloop if the the main modal form is 
14538           hidden (fixes #78484)
14540 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
14542         * BindingContext.cs : reject null datasource in Contains() and
14543           Item[].
14544         * CurrencyManager.cs : check data_member validity when data_source
14545           is dataset. When it is late binding, the initial position is -1.
14547 2006-05-24  Jackson Harper  <jackson@ximian.com>
14549         * TreeNodeCollection.cs: Dont't recalculate the visible order on
14550         inserted nodes that aren't visible.  This changes the
14551         max_visible_order which confuses scrollbar settings.
14552         - Use the enumerator to get the prev node instead of duplicating
14553         code.
14554         * TreeView.cs: Use new method for setting scrollbar values
14555         - Don't set the bounds every time the scrollbar is updated
14556         - When updating below the root node use an invalidate instead of a
14557         refresh to prevent the child controls (scrollbars) from being
14558         refreshed. (UpdateBelow still needs to be reworked anyways).
14559         - Reenable SetBottom now that visible orders are set correctly,
14560         added some debug code incase we ever get bad values there again.
14561         - Set the scrollbar max to 2 less then the max value, this
14562         compensates for the max value being one above the node count, and
14563         for scrollbars adding one extra "notch".
14564         - When drawing image nodes if there is an imagelist we draw the
14565         first image in the list if the supplied image index is out of the
14566         image list's bounds.
14567         
14568 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
14570         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
14571           we receive a size change from the WM (Fixes #78503)
14573 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
14575         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
14576           rectangle (Fixes #78501)
14578 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
14580         * ButtonBase.cs: 
14581           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
14582             as a bitfield.
14583           - Fixed MouseMove to no longer switch pressed state unless the left
14584             mouse button is pressed. Atsushi provided the original patch (#78485)
14585           
14586 2006-05-24  Jackson Harper  <jackson@ximian.com>
14588         * ScrollBar.cs: New internal methods that allow us to change a
14589         couple values on the scrollbar (the most common case is maximum
14590         and large change) without getting multiple invalidates.
14592 2006-05-24  Chris Toshok  <toshok@ximian.com>
14594         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
14595         (Edit): save off the original state in oldState, and set
14596         grid.is_editing to true.
14597         (OnKeyDown): abort editing if escape is pressed.  also, call
14598         NextState if space is pressed.
14599         (OnMouseDown): call NextState.
14600         (NextState): factor out shared code from OnKeyDown and OnMouseDown
14601         here.  Also, only invalidate the row header once (on the initial
14602         is_changing switch) to save on redraws.
14604 2006-05-24  Chris Toshok  <toshok@ximian.com>
14606         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
14607         if the value in the cell is different than it was before.  This
14608         keeps us from triggering a layout when we move around a datarid
14609         with a highlighted cell.
14610         (Edit): suspend layout when creating/positining the text box, and
14611         resume passing false so we don't ever actually re-layout.
14612         (ReleaseHostedControl): same.
14613         (EnsureTextBox): reformat slightly, and set WordWrap to false.
14615         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
14616         control-key sequences should go to the datagrid - remove that
14617         lock.  Also, modify the conditions under which we move between
14618         cells when moving the cursor within a cell, and remove the "this"
14619         and "base" from field accesses.  We weren't even consistent, given
14620         they all were in the base class.
14622 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
14624         * Binding.cs : (.ctor)
14625           An obvious NRE fix for BindingTest.CtorNullTest().
14627 2006-05-23  Chris Toshok  <toshok@ximian.com>
14629         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
14630         them between lines.  This fixes some quirks editing cells in the
14631         datagrid.
14633 2006-05-23  Jackson Harper  <jackson@ximian.com>
14635         * TreeView.cs: Use begin/end update when doing expand/collapse all
14636         so that we don't get flicker on the scrollbar.
14638 2006-05-23  Jackson Harper  <jackson@ximian.com>
14640         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
14641         treenode calculations to be independant of the painting code. To
14642         do this nodes track a visible order which is calculated by the
14643         treeview.
14644         - Call new methods for expanding/collapsing nodes.  These methods
14645         use scrollwindow so we don't have to update everything below the
14646         node.
14647         * TreeView.cs: Refactored drawing and scrolling code.  We don't
14648         need to update nodes when drawing anymore or calculate scrollbar
14649         stuff.
14650         - Added new methods for expanding/collapsing nodes. These methods
14651         use ScrollWindow so as to not have to redraw all the nodes below.
14652         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
14653         we add/remove nodes or sort.
14654         - Handle removing the selected and the top node properly.
14656 2006-05-23  Chris Toshok  <toshok@ximian.com>
14658         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
14659         maybe this should actually happen in the datagrid code?
14660         (EndEdit): no need to invalidate anything, given that
14661         ReleaseHostedControl causes the datagrid to relayout, which
14662         invalidates everything anyway.
14664         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
14665         in SetCurrentCell).
14666         (set_SelectionBackColor): call InvalidateSelection instead of
14667         Refresh.
14668         (set_SelectionForeColor): same.
14669         (BeginEdit): Flesh this out a bit.
14670         (CancelEditing): only do any of this if we're editing/adding.
14671         (EndEdit): same.
14672         (OnMouseDown): there's no need to cancel editing here, it's done
14673         in SetCurrentCell.
14674         (SetCurrentCell): only invalidate the current row header if it's a
14675         different row than the new one.
14676         (ShiftSelection): fix this to work like MS does.
14677         (ResetSelection): factor out the invalidation of selected_rows to
14678         InvalidateSelection.
14679         (SetDataSource): cancel any editing that's going on.
14681         * DataGridColumnStyle.cs
14682         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
14683         call the non-interface version.
14685         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
14686         header rectangle with the clip rectangle so we don't redraw the
14687         entire header for just a small area.  Gets rid of the last flicker
14688         when horizontally scrolling.
14689         (DataGridPaintRow): same.
14691 2006-05-23  Mike Kestner  <mkestner@novell.com>
14693         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
14694         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
14695         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
14696         Critical bug report.
14698 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
14700         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
14701           and this fixes #78493
14703 2006-05-23  Miguel de Icaza  <miguel@novell.com>
14705         * Theme.cs (GetSizedResourceImage): Scale images if the proper
14706         size is not found.  
14707         
14708         * FileDialog.cs: Do not change the background for the side bar as
14709         it wont work nicely with the theme, and also reduces the artifacts
14710         in rendering the icons (which I want to fix too).
14712         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
14713         resources, not resgen resources. 
14715         (PlatformDefaultHandler): Pull images using the new API.
14717 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
14719         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
14720           a reference to the hwnd and will not remove it unless there are
14721           no pending exposures (fixes #78341)
14722         * XplatUI.cs: Improved debug
14724 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
14726         * MenuAPI.cs : don't handle OnClick event when it was not the left
14727           button. Fixed bug #78487.
14729 2006-05-23  Mike Kestner  <mkestner@novell.com>
14731         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
14732         prefer submenus to the top menu for item lookup, to avoid popping down
14733         top-row items.
14735 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
14737         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
14738           Graphics.FillRectangle as the visual results are really bad (even
14739           on win). We now draw perfect arrows (and perfect shadows when the
14740           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
14741           Pen.DashPattern to draw the dots of each line.
14743 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
14745         * FileDialog.cs: Update the filename combobox when navigating through
14746           the ListView with the cursor keys. Fixes part 7 of bug #78446.
14748 2006-05-22  Mike Kestner  <mkestner@novell.com>
14750         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
14751         Fixes #78463.
14753 2006-05-22  Mike Kestner  <mkestner@novell.com>
14755         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
14756         requests. Fix a misspelled parameter and a copy paste exception error
14757         in Select.
14759 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
14761         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
14762           to get the same width/height (5/13) on X11 as the default font has on
14763           win32. This means that our DefaultFont emSize is smaller than the 
14764           the MS SWF equivalent (even thought the width/height stays the same)
14766 2006-05-20  Jackson Harper  <jackson@ximian.com>
14768         * MdiClient.cs:
14769         * MdiWindowManager.cs:
14770         * InternalWindowManager.cs: Make sure to use the border width from
14771         the theme.
14773 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
14775         * PrintDialog.cs: Implements printer details
14777 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
14779         * FileDialog.cs: Added focus handling for PopupButtonPanel.
14780           Fixes part 1 and 2 of bug #78446
14782 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
14784         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
14785           instead of sticking to the first ever calculated value
14787 2006-05-19  Mike Kestner  <mkestner@novell.com>
14789         * ComboBox.cs: fix mouse motion selection to use MousePosition and
14790         PointToClient, since Capture is set. Fixes #78344.
14792 2006-05-19  Mike Kestner  <mkestner@novell.com>
14794         * ListView.cs: match MS behavior in Details view where items are not
14795         drawn if Columns.Count == 0. 
14796         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
14797         Use a separate pen to draw the check, since changing the width affects
14798         the box as well.  Fixes #78454.
14800 2006-05-18  Miguel de Icaza  <miguel@novell.com>
14802         * ListView.cs: ArgumentOutOfRangeException, single versions of the
14803         exception should throw the name of the invalid argument.
14805         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
14806         there are no files listed. 
14808 2006-05-18  Jackson Harper  <jackson@ximian.com>
14810         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
14811         up.
14813 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
14815         * Control.cs: Brought back our old UpdateZOrder method as a private
14816           function and switched our calls from UpdateZOrder to the new one.
14817           This fixes the Paint.Net canvas disappearing bug.
14819 2006-05-18  Jackson Harper  <jackson@ximian.com>
14821         * Theme.cs:
14822         * ThemeWin32Classic.cs:
14823         * InternalWindowManager.cs: Move the drawing into the theme,
14824         expose everything the theme should need from the window manager.
14826 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
14828         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
14829           from the call to NativeWindow to avoid walking up the parent chain
14830           further than needed (speeds up setting cursors and avoids setting
14831           the wrong cursor if a parent has another cursor defined)
14832         * Cursor.cs: When loading an icon as cursor, MS uses the center of
14833           the icon as hotspot, not what's contained as hotspot in the icon
14834           file. This fixes the perceived drawing offset seen with Paint.Net
14835         
14836 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
14838         * XplatUIX11.cs: 
14839           - Store the calculated rectangle in Hwnd object and use it when 
14840             setting the client size
14841           - Force Toolwindows to always be type Dock, to ensure they're on top
14843 2006-05-18  Mike Kestner  <mkestner@novell.com>
14845         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
14846         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
14847         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
14848         Substantial refactoring to remove confusing nested classes. Coding
14849         standard and Get+Set->property refactorings.  Shift to index based
14850         highlighting in ComboListBox instead of constantly using IndexOf and
14851         Items[]. Add invalidations on resize for DropDownList to fix ugliness
14852         in FileDialog growth.  Draw borders manually since Simple mode needs
14853         to look like two independent controls.  Make listbox border
14854         conditional to DropDownStyle.  Improved OwnerDraw support.
14856 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
14858         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
14859         Don't set the disposed graphics to null, so we can throw the "right"
14860         exception if the graphics is reused later (added a flag to avoid 
14861         double disposing). Some behaviours are different under 2.0 and are
14862         filled under bug #78448.
14864 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
14866         * Control.cs: When double-buffering is enabled, we need to reset
14867           our graphics context between paint calls. Otherwise, any 
14868           transformations and other alterations on the context will 
14869           become cumulative (#77734)
14871 2006-05-18  Mike Kestner  <mkestner@novell.com>
14873         * ListView.cs: do focused item selection like MS on clicks. 
14874         Rework focus handling for ItemControl so LostFocus invalidates as
14875         well.
14876         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
14877         the ListView ItemControl has focus.
14879 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
14881         * XplatUIX11.cs: If client_window ends up being width or height zero
14882           due to border settings, move it off window inside whole_window (#78433)
14884 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
14886         * Mime.cs: Shrink the mime file cache correctly.
14888 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
14890         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
14892 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
14894         * XplatUIX11.cs (AddExpose): More sanity checks
14896 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
14898         * XplatUIX11.cs:
14899           - AddExpose: Don't add expose ranges outside the size of our
14900             window
14901           - Cast opacity values to Int32 to avoid crashes with certain
14902             values
14903           - Added disabled code paths that protect against illegal cross-
14904             thread painting (Developers.exe)
14906 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
14908         * ProgressBar.cs: Invalidate the control when it's resized
14909           since block size is based on control size. (#78388)
14911 2006-05-16  Miguel de Icaza  <miguel@novell.com>
14913         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
14914         of setting the incoming argument to the "reset" value, we set the
14915         this.datamember to string.empty (before we were invalidating the
14916         incoming data).   
14918         Fixes 78420
14920 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
14922         * Form.cs: Only apply transparency settings after the form
14923           is created. (Fixes #77800)
14925 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
14927         * ApplicationContext.cs: Grab the HandleDestroyed event so
14928           we know when to fire OnMainFormClosed 
14930 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
14932         * Application.cs: Introduced sub-class to allow tracking of
14933           threads and centralized triggering of the event mess for
14934           ThreadExit, AppExit, etc..  (#76156)
14936 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
14938         * MimeIcon.cs:
14939           - Do not return a null icon index value for a mime subclass.
14940             Instead try the main mime type class too.
14941           - Seems that some newer distributions don't have a link to some
14942             gnome default icons anymore. So check the default gnome dir too.
14943           
14945 2006-05-16  Jackson Harper  <jackson@ximian.com>
14947         * MdiClient.cs: Don't paint the parent background image if we have
14948         our own background image.
14950 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
14952         * Control.cs:
14953           - PerformLayout: Do not shrink space filled by DockStyle.Fill
14954             controls, all filled controls are supposed to overlap (#78080)
14955           - UpdateZOrder is supposed to update the control's z-order in the
14956             parent's z-order chain. Fixed to behave like that
14957           - BringToFront: Removed obsolete code
14958           - SendToBack: Simplyfied
14959           - SetChildIndex: Trigger layout calculations when Z-order changes
14960             since layout is done by z-order
14962 2006-05-16  Chris Toshok  <toshok@ximian.com>
14964         [ fixes bug #78410 ]
14965         * DataGrid.cs (set_AlternatingBackColor): use
14966         grid_drawing.InvalidateCells instead of Refresh().
14967         (set_BackColor): call grid_drawing.InvalidateCells.
14968         (set_BackgroundColor): use Invalidate instead of Refresh.
14970         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
14971         invalidate the cell area.
14973 2006-05-15  Chris Toshok  <toshok@ximian.com>
14975         [ fixes bug #78011 ]
14976         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
14977         on to DataGridPaintRow.
14978         (DataGridPaintRow): take a clip argument, and only draw the cells
14979         which intersect it.  same with the not_usedarea.
14981         * Theme.cs (DataGridPaintRow) add @clip parameter.
14983         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
14984         XplatUI.ScrollWindow.
14985         (ScrollToRow): same.
14987         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
14988         with last column which was causing a gray swath to appear with the
14989         XplatUI.ScrollWindow code.
14991 2006-05-15  Chris Toshok  <toshok@ximian.com>
14993         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
14994         use XplatUI.ScrollWindow.
14995         (VerticalScrollEvent): use XplatUI.ScrollWindow.
14997 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
14999         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
15001 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
15003         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
15004           file since there are no equivalent X11 cursors
15006 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
15008         * MonthCalendar.cs : DateTimePicker should reflect selected date
15009           on mouse*up*, not mouse*down*. Fixed originally reported part of
15010           bug #76474.
15012 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
15014         * TabControl.cs : When argument index is equal or more than tab
15015           count, just ignore. Fixed bug #78395.
15017 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
15019         * Control.cs: Dispose all child controls when control is diposed (#78394)
15021 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
15023         * ColorDialog.cs: Finally it is possible to select the color with
15024           the text boxes
15026 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
15028         * PrintDialog.cs: Fix typo
15030 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
15032         * PrintDialog.cs: PrintDialog is not resizable
15033         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
15034           color. Made some ToolBar drawing methods protected virtual.
15036 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
15038         * PrintDialog.cs: Implementation of the PrintDialog
15040 2006-05-12  Chris Toshok  <toshok@ximian.com>
15042         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
15043         thumb, instead use MoveThumb.  This has the side effect of making
15044         most of the other thumb moving machinery use MoveThumb as well.
15045         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
15046         need to actually invalidate the rectangle where the new thumb will
15047         go.
15048         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
15049         We force an Update() after, so it's not as fast as it could be,
15050         but at least there's zero flicker and no droppings.
15051         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
15052         (UpdateThumbPos): add another argument (dirty), which says whether
15053         or not to calculate/add dirty regions which we later invalidate.
15054         For cases where we know we're going to use MoveThumb, we pass
15055         false for this.  Otherwise, pass true.
15057 2006-05-12  Jackson Harper  <jackson@ximian.com>
15059         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
15060         the status bar.
15061         
15062 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
15064         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
15065           and GetClipRegion methods and UserClipWontExposeParent property.
15066         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
15067           overriding UserClipWontExposeParent property, setting to false, since
15068           Win32 handles the required expose messages to draw our clipped parent
15069           areas internally
15070         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
15071           PaintEventStart to set the user clip region if set.
15072         * Control.cs: 
15073           - Now internally tracking the Region for the control since we need to
15074             store it if the handle is not yet created and only set it when it
15075             becomes created. Before setting the region forced handle creation
15076           - Added code to draw the parents underneath a user-clipped region
15077         * Hwnd.cs: Added UserClip property
15079 2006-05-12  Chris Toshok  <toshok@ximian.com>
15081         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
15082         (set_Maximum): same.
15083         (set_Minimum): same.
15084         (set_SmallChange): same.
15085         (OnMouseUpSB): remove the call to refresh when releasing the
15086         thumb.  We shouldn't need it.
15087         
15088 2006-05-12  Miguel de Icaza  <miguel@novell.com>
15090         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
15091         AutoSize set to None, we do not need to relayout everything, we
15092         just need to invalidate the current region.
15094         (Draw): Do not draw the entire ClientArea, just redraw the
15095         clip area being passed.
15097         * MdiClient.cs: Make MdiClient constructor with the Form argument
15098         internal. 
15100 2006-05-12  Jackson Harper  <jackson@ximian.com>
15102         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
15103         parents background image,  but strangely not their own.
15104         - (DrawStatusBarPanel): Take into account horizontal alignment
15105         when drawing the strings and icons.
15107 2006-05-12  Mike Kestner  <mkestner@novell.com>
15109         * ListBox.cs: avoid invalidations for focus when the collection is
15110         empty. 
15112 2006-05-12  Chris Toshok  <toshok@ximian.com>
15114         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
15115         invalidate the entire thumb area.  Call InvalidateDirty which
15116         limits the redraw to the thumb itself and surrounding pixels.
15118         * XplatUIX11.cs (ScrollWindow): optimize copying.
15119         
15120 2006-05-12  Chris Toshok  <toshok@ximian.com>
15122         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
15123         Figure out the positioning/layout in a single pass instead of
15124         multiple recursive invocations.  Speeds up the initial display of
15125         the data grid.  Also, make many things private that were
15126         originally public but unused outside this class.
15128 2006-05-11  Jackson Harper  <jackson@ximian.com>
15130         * MdiClient.cs: Improved layout code.
15132 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
15134         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
15135           not SelectedObject.
15137 2006-05-11  Chris Toshok  <toshok@ximian.com>
15139         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
15140         union of that will always be {0,0,width,height}.
15142 2006-05-11  Jackson Harper  <jackson@ximian.com>
15144         * Form.cs: Match MS's DefaultSize for forms (they must have
15145         changed the size in sp2).
15147 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
15149         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
15151 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
15153         * TextControl.cs : Fixed bug #78109. This incorrect position
15154           comparison caused crash on automatic line split.
15155         * TextBoxBase.cs : reduce duplicate code.
15157 2006-05-10  Jackson Harper  <jackson@ximian.com>
15159         * MdiClient.cs: Active form is only sent to the back when using
15160         the Next form functionality, when a form is clicked the current
15161         active shouldn't be sent to the back.
15162         - Layout the mdi windows when the container is first made visible.
15163         * Form.cs: Give the MdiClient a ref to the containing form when we
15164         create it.
15165         
15166 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
15168         * LinkLabel.cs : link_font could be uninitialized, so populate one
15169           before actual use. Fixed bug #78340.
15171 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
15173         * XplatUIX11.cs : clipboard format native value is IntPtr.
15174           Fixed bug #78283.
15176 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
15178         * Control.cs: 
15179           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
15180             which is passed up the parent chain by DefWndProc
15181           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
15182             to DefWndProc (#77956)
15183         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
15185 2006-05-10  Jackson Harper  <jackson@ximian.com>
15187         * MdiClient.cs: We need to remove the controls from the mdi
15188         collection, when we close the window.
15189         * MdiWindowManager.cs: Special handling of closing mdi windows.
15190         * InternalWindowManager.cs: Make the close method virtual so the
15191         mdi window manager can handle it specially.
15193 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
15195         * DataGrid.cs:
15196           - Recalculate grid when the data source has changed
15197           - Matches styles provided by user from all data sources types
15198         * DataGridTableStyle.cs: For columns that provided by the user set the
15199         with the preferred value is there was unassigned.
15200         * CurrencyManager.cs: throw OnItemChanged event
15202 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
15204         * PictureBox.cs: Don't animate until handle is created. Start animation
15205           when handle is created.
15207 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
15209         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
15210           current codebase.
15211         * XEventQueue.cs: We don't need to provide the extra info
15213 2006-05-10  Jackson Harper  <jackson@ximian.com>
15215         * MdiClient.cs: If the mdi clients parent form has a background
15216         image set, we draw that background image for the mdi area's
15217         background.
15219 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
15221         * TextBoxBase.cs: Set IBeam cursor (#78347)
15223 2006-05-10  Mike Kestner  <mkestner@novell.com>
15225         * ToolBar.cs: fix some text padding issues with ButtonSize
15226         calculation. Update the default size to match MS documentation.
15227         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
15228         button size. Fixes #78296.
15230 2006-05-10  Mike Kestner  <mkestner@novell.com>
15232         * ListBox.cs: use is_visible for scrollbar positioning in case the
15233         control isn't on screen yet.  Fix off by one with Right vs Width
15234         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
15235         
15236 2006-05-10  Jackson Harper  <jackson@ximian.com>
15238         * X11Dnd.cs: Drop to a control with another control on top of it.
15239         * ToolBar.cs: Work on a copy of the buttons list, so that it can
15240         be modified in click handlers. TODO: Look for similar problems in
15241         other controls.
15243 2006-05-09  Jackson Harper  <jackson@ximian.com>
15245         * Form.cs: Window managers need the old window state when setting
15246         window state now.
15247         * InternalWindowManager.cs: Allow the base mdi window manager to
15248         handle more of the MDI only stuff (like maximize buttons).
15249         * MdiWindowManager.cs: Fix some snafus in changing the window
15250         state.  Add all the menu functionality, for both popup and
15251         maximized menus.
15252         * MdiClient.cs: When a new form is selected the currently
15253         activated form is sent to the back, this matches MS.
15254         - Implement a new method to activate the next mdi child window.
15256 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
15258         * Control.cs: 
15259           - Added new InternalCapture method to allow controls to prevent
15260             the capture behaviour on the click handlers
15261           - Switched to use InternalCapture
15262         * ComboBox.cs:
15263           - Using InternalCapture to prevent mouse captures from being released
15264             on mouse button release (Fixes #78100)
15265         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
15266           returns Form borders if a caption is present. (Fixes #78310)
15268 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
15270         * TreeNode.cs: Changed serialization .ctor to not require every field
15271           to be present. (#78265)
15272         * OwnerDrawPropertyBag.cs: Added serialization .ctor
15274 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
15276         * MimeIcon.cs: for is faster than foreach for strings.
15278 2006-05-05  Mike Kestner  <mkestner@novell.com>
15280         * CheckedListBox.cs: update check handling code to not use selected.
15281         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
15282         behavior for visual feedback, motion response, shift/ctrl handling,
15283         and properly deal with all 4 selection modes. Updates to bounds
15284         handling logic.  Add scroll wheel support. [Fixes #77842]
15286 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
15288         * ListView.cs:
15289           - Moved adding of Implicit controls into .ctor. That way, subsequent
15290             creation of the controls will not cause them to think they are 
15291             toplevel windows (fixes #78200 header problem)
15292           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
15293           - Switched visibility setting of header control to use internal field
15294             to avoid triggering handle creation
15295           - Now checking if handle is created before causing a refresh when items
15296             are added (This makes us now match handle creation time with MS)
15297         * Splitter.cs: Removed loading of private splitter cursor, switched to
15298           Cursors version now that that is loading the right ones
15299         * Cursors.cs: Load proper splitter cursors from resources
15300         * Cursor.cs: Added second method of loading resource cursors for the 
15301           VS.Net users amongst us
15303 2006-05-05  Mike Kestner  <mkestner@novell.com>
15305         * ListView.cs: give header_control a minimum size based on the
15306         ListView size.
15308 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
15310         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
15311           window seems to do that with metacity, so set that type. (#78120)
15313 2006-05-05  Mike Kestner  <mkestner@novell.com>
15315         * ListViewItem.cs: fix Details mode checkbox layout bug.
15316         * ThemeWin32Classic.cs: draw a ListView column header for unused space
15317         at the end of the header, if it exists. [Fixes for #78200]
15319 2006-05-04  Jackson Harper  <jackson@ximian.com>
15321         * MdiClient.cs: Add a helper property to get the container form.
15322         * MdiWindowManager.cs: We have to make sure to use the menu origin
15323         when drawing the icons and buttons, this fixes maximized window
15324         icons/buttons on win32.
15325         * InternalWindowManager.cs: Reset the restore captions when a
15326         window goes from Maximized to Minimized and vice versa. Move the
15327         DrawMaximizedButtons into the MdiWindowManager source, tool
15328         windows can't be maximized. NOTE: This could use a little
15329         refactoring if time ever permits.
15330         
15331 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
15333         * TextBox.cs: Add MWFCategoryAttributes
15334         * TextBoxBase.cs: Add MWFCategoryAttributes
15335         * Form.cs: Add MWFCategoryAttributes
15337 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
15339         * Control.cs: Add MWFCategoryAttributes
15340         * ScrollableControl.cs: Add MWFCategoryAttributes
15342 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
15344         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
15345           Divider is true. Fix a little glitch in PropertyToolBar
15346           drawing code
15348 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
15350         * Control.cs:
15351           - Dispose: Call base.Dispose, this causes the disposed event
15352             to be fired (and probably other, more important stuff)
15353           - SetVisibleCore: Set is_visible to true after creating the
15354             window so that the window still gets created invisible (if
15355             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
15356             to generate a WM_ACTIVE message
15357         * Form.cs: Call Dispose when we want to destroy the window, instead of
15358           just destroying the handle (Dispose will do that for us)
15359         * XplatUIX11.cs:
15360           - RootWindow also needs a queue, so we can properly process the
15361             property change events from RootWindow (like Activate)
15362           - Generatic synthetic WM_ACTIVE message when the active window is
15363             being destroyed
15365 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
15367         * LinkLabel.cs: Trigger a recalc of our label dimensions when
15368           bounds are changed
15370 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
15372         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
15373           for determining width and height (image might not be assigned if
15374           we're drawing an imagelist)
15376 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
15378         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
15379         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
15380           height from system
15381         * Theme.cs: No longer returns hardcoded menu height, instead calls
15382           new driver method
15383         * Form.cs (OnLoad): Scaling happens before triggering Load events 
15384           on MS (# 78257)
15386 2006-05-01  Mike Kestner  <mkestner@novell.com>
15388         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
15390 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
15392         * TextBoxBase.cs: Removed Fixme
15393         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
15395 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
15397         * XplatUIX11.cs:
15398           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
15399             the rectangle relative to the parent, considering borders. We
15400             don't really want that.
15401           - ScrollWindow: Fixed warning to be more understandable
15402         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
15403           scrollbars and scroll only the visible area
15404         * RichTextBox.cs: Removed debug output
15406 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
15408         * NumericUpDown.cs (Text): Just use base
15409         * UpDownBase.cs: Ensure txtView is created before using it
15411 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
15413         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
15414           casting to IntPtr to avoid 64bit overflow errors
15416 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
15418         * Control.cs:
15419           - AllowDrop: Don't force handle creation.
15420           - CreateHandle: Added call to tell driver if we're allowed to drop
15422 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
15424         * FileDialog.cs: Remember the last directory not only for the
15425           current instance but also for new FileDialog instances.
15427 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
15428         
15429         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
15430           broke sending async messages
15432 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
15434         * XplatUIX11.cs:
15435           - ScrollWindow: Fixed method. We finally generate expose events again
15436             for scrolled areas. This was causing 'garbage' when scrolling
15437             textbox and other controls that used ScrollWindow
15438           - Switched from using the regular queue for paint events to the MS 
15439             model of 'generating' paint events when the queue is empty.
15440             We use the new XQueueEvent.Paint subclass to store which windows
15441             need painting.
15442           - AddExpose now takes the x/y/width/height of the exposed area
15443             and inserts the window into the paint queue if not already there
15444           - InvalidateWholeWindow: Switched to use new AddExpose method
15445           - UpdateMessageQueue: Added which queue to monitor for paint events
15446           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
15447             the unlikely case nothing above handles it. We reset the expose
15448             pending states to get them off the queue.
15449           - GetMessage: Now pulls a paint event if no other events are in the
15450             queue
15451           - Invalidate: Switched to new AddExpose method
15452           - PeekMessage: Updated to understand pending paint events
15453           - UpdateWindow: Fixed logic bug. We were only updating if the window
15454             didn't need updating. Also switched to sending WM_PAINT directly,
15455             like MS does.
15456         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
15457           and random access Remove(). The random access is needed to handle
15458           UpdateWindow() where a WM_PAINT is sent directly without accessing
15459           the queue.
15460         * ScrollBar.cs: Added Update() calls to cause immediate updates to
15461           allow for better feedback when scrolling. Scrollbars are small and
15462           the immediate update should make it 'feel' more responsive without
15463           slowing things down. ScrollBar still needs it's invaliate logic
15464           updated to not always invalidate the whole bar on certain changes.
15466 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15468         * Control.cs:
15469         (BackColor): if the control does not support a transparent background,
15470         return the default backcolor when the parent backcolor is transparent.
15472 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
15474         * Application.cs: Updated to new StartLoop/GetMessage API
15475         * RichTextBox.cs: Provide some output on RTF parsing errors
15476         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
15477           new queue_id argument to GetMessage and PeekMessage to allow faster
15478           handling of per-thread queues in drivers.
15479         * Hwnd.cs: Added Queue tracking and property
15480         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
15481         * XEventQueue.cs: Added thread trackingA
15482         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
15483         * XplatUIX11.cs:
15484           - Implemented new per-thread queue
15485           - GetMessage: Fixed return/break behaviour on several cases. We were
15486             returning stale messages in some cases, instead of just processing
15487             the next message
15489 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
15491         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
15493 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
15495         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
15496           fixed off-by-one comparisons between Width/Height and Right/Bottom.
15498 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
15500         * PropertyGridView.cs: Fix drop down width.
15502 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
15504         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
15505           a mess in DrawToolBar, so I removed one of them.
15507 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
15509         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
15510           needed (clip). Otherwise we get artifacts.
15512 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
15514         * FixedSizeTextBox.cs: Added constructor to allow specifying which
15515           dimension is fixed
15516         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
15517           and switched FixedSizeTextBox to only be fixed vertical (#78116)
15518         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
15519           if it matches the scale base font (avoids unneeded scaling)
15521 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
15523         * X11DesktopColors.cs: One gtk_init_check should be enough
15525 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
15527         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
15528           match MS behaviour
15530 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
15532         * TextBoxBase.cs: 
15533           - Generate OnTextChanged for Backspace even if we're only deleting
15534             the current selection
15535           - When setting the Text property, only select all text if the
15536             control does not have focus when it is being set. Otherwise
15537             just place the cursor at the beginning of the control
15539 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
15541         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
15542           Added a little helper to draw PropertyGrid ToolBar with a different
15543           border and a different BackColor.
15544         * PropertyGrid.cs: Some background parts didn't get painted with the
15545           correct background color. Added a class that helps us to draw the
15546           correct border for PropertyGridView and a class that helps us to
15547           draw ToolBars with a different backcolor
15548         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
15550 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
15552         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
15553         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
15555 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
15557         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
15558           into the palette entries. Also, since we're working on a copy
15559           we needed to copy the palette back onto the bitmap.
15560         * Cursor.cs: Same fix as XplatUIWin32.cs.
15562 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
15564         * ImageListStreamer.cs: Need to read the var (or we're off)
15566 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
15568         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
15569           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
15570           TextBoxBase.cs: Unused var fixes
15571         * AxHost.cs: Small 2.0 fix
15572         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
15573           as it seems that is what at least Metacity expects. This will make
15574           icons show up on 64bit platforms. We still have some 64bit size
15575           issues, though, since the startup app window size still won't match.
15577 2006-04-25  Mike Kestner  <mkestner@novell.com>
15579         * *.cs: cleanup newly reported exception var unused warnings.
15581 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
15583         * ThemeWin32Classic.cs: Button image alignment now matches exactly
15584           ms
15586 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
15588         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
15589           image. The image position is always the same, no matter if the
15590           button is pressed or not.
15592 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
15594         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
15595           selection and set the correct filename for SaveFileDialog.
15596           Patch by Emery Conrad.
15598 2006-04-24  Mike Kestner  <mkestner@novell.com>
15600         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
15601         check for item.X outside the ClientRect instead of item.Y. Fixes
15602         #78151.
15604 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15606         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
15607         trust that value blindly and do some sanity check. Fixes bug #77814.
15609 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15611         * ImageListStreamer.cs: save the mask as a 1bpp image.
15613 2006-04-21  Mike Kestner  <mkestner@novell.com>
15615         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
15616         pass Checked and Indeterminate to the Theme Engine. Improve
15617         encapsulation with ListBox.
15618         * ListBox.cs: Keep a StringFormat instead of calculating it every item
15619         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
15620         nested types.  Move all CheckState functionality to CheckedListBox.
15621         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
15622         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
15623         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
15624         single base list. Fix scrollbar sizing and placement to mirror MS.
15625         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
15626         used.
15627         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
15628         for CheckedListBox by using new DrawItemState info.  Center the
15629         checkboxes on the items. Use new StringFormat property.
15631 2006-04-18  Jackson Harper  <jackson@ximian.com>
15633         * Form.cs: MdiChildren don't do default locations the same way as
15634         regular forms.  This prevents a crash when trying to position the
15635         mdi windows.
15637 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
15639         * PropertyGridTextBox.cs: Formatting, copyright
15640         * PropertiesTab.cs: Formatting
15641         * PropertyGrid.cs: Formatting
15642         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
15643           click toggling of values
15644           
15645 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
15647         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
15648         * Control.cs (.ctor): verify_thread_handle is static, don't reset
15649           every time a control is created
15650         * Application.cs: Removed obsolete EnableRTLMirroring method
15652 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
15654         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
15655         SelectedIndex to -1. Fixes bug #78121.
15657 2006-04-17  Jackson Harper  <jackson@ximian.com>
15659         * Binding.cs: Handle null values for Current and BindingContext.
15660         This occurs when binding is a little delayed.
15661         * CurrencyManager.cs: return null for Current when there are no
15662         items in the list.
15663         - Hookup to the listchanged event on the DataView and update
15664         bindings when the list is changed.  This fixes late binding of
15665         controls.
15667 2006-04-17  Jackson Harper  <jackson@ximian.com>
15669         * X11Dnd.cs:
15670         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
15671         Ringenbach.
15673 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
15675         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
15676           place
15677         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
15678           with the correct ButtonState
15680 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
15682         * XplatUIX11.cs: Improved distinguishing between window types to
15683           tell the WM a type closer to what the app wants (Fixes #78107)
15685 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
15687         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
15688           GrabHandle
15690 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
15692         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
15693           drawing code to reflect the size grip changes
15695 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15697         * ImageListStreamer.cs: fix handling of the mask that follows the main
15698         bitmap when deserializing and serialize it properly. The generated mask
15699         should better be a 1bpp image, but I'll do that later.
15701 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
15703         * FileDialog.cs: Show something in the DirComboBox on *nix if the
15704           path doesn't fit into some of our Current.Places
15706 2006-04-13  Jackson Harper  <jackson@ximian.com>
15708         * ComboBox.cs: Use borders instead of drawing our own decorations,
15709         try to obey correct rules for heights.
15710         * Theme.cs:
15711         * ThemeNice.cs:
15712         * ThemeClearLooks.cs:
15713         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
15714         this is now handled by borders.
15715         - Remove unused DrawListBoxDecorationSize method.
15716         
15717 2006-04-13  Mike Kestner  <mkestner@novell.com>
15719         * MenuAPI.cs: null guarding for the disbled click check fixes crash
15720         reported by Alex.
15722 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
15724         * ThemeWin32Classic.cs: 
15725           - Fixed CPDrawStringDisabled
15726           - Corrected drawing of disabled menu items
15727           - Fixed drawing of disabled radio buttons (bug #78095)
15728           - Draw check in a disabled CheckBox with color ControlDark 
15730 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
15732         * Form.cs: Use the provided width when calculating the menu size;
15733           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
15734           and ClientSize.Width won't be updated yet
15735         * Application.cs: Use Visible instead of Show() to make form visible,
15736           this way we create the handle later and menusize is considered
15738 2006-04-12  Mike Kestner  <mkestner@novell.com>
15740         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
15741         reporting.
15743 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
15745         * TextBox.cs: Implemented context menu
15747 2006-04-12  Mike Kestner  <mkestner@novell.com>
15749         * ListView.cs: implement box selection. fixes #77838.
15750         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
15752 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
15754         * XplatUIX11.cs: Added setting of window type when transient window
15755           is created (metacity would move it otherwise)
15756         * X11Structs.cs: Added WINDOW_TYPE atoms
15757         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
15758           background (the control is Opaque but still wants transparent
15759           backgrounds)
15761 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
15763         * Control.cs: Added OnPaintBackgroundInternal to allow controls
15764           that set Opaque but don't mean it (like all ButtonBase-derived
15765           controls) to still draw their background
15766         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
15767           the background
15769 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
15771         * Control.cs (PaintControlBackground): Set the graphics object
15772           on our PaintEvent to null to prevent it from being disposed
15773           when the PaintEvent gets disposed
15775 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
15777         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
15778         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
15780 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
15782         * Control.cs: 
15783           - Added transparency check to BackColor property. Transparent
15784             backgrounds are only allowed if the control styles permit it
15785           - Added recursive painting of parent control background and
15786             foreground if a control with a transparent backcolor is drawn
15787             (Thanks to Tim Ringenback for providing his 'hack' as a base
15788              for this patch) Fixes #77985 and #78026.
15789           - Added Opaque style check before calling OnPaintBackground, no
15790             need to draw the background if the control is opaque
15791           - Removed ControlAccessibleObject owner variable (inherited from
15792             base, no need to define again)
15793           - Added some documentation links explaining the drawing events
15794             and styles
15796 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
15798         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
15799           that the affected control is the located at the left border of our
15800           parent (Fixes #77936)
15802 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
15804         * TextBoxBase.cs: When rendering disabled or readonly controls,
15805           draw the background with 'Control' instead of 'Window' color as
15806           long as the user hasn't specifically set a color
15808 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
15810         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
15811           since that won't be updated if the user types text (only if it's
15812           programatically set)
15814 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
15816         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
15817           layout changes do to app-triggered resizes will have the proper
15818           display rectangle for layout
15820 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
15822         * ThemeWin32Classic.cs:
15823           - Make use of the SystemBrushes and SystemPens wherever possible
15824           - Corrected some highlight colors
15825           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
15826             drawing
15827         * Theme.cs: Added Empty field to CPColor struct
15829 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
15831         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
15832           is displayed when calculating the display rectangle. Thanks to Mike
15833           for teaching me the err of my ways.
15835 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
15837         * ScrollableControl.cs:
15838           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
15839             (instead of 0,0) and we now return the real width/height instead of
15840             just the clientrectangle, adjusted for padding. The rectangle is
15841             now cached and created by the new CalculateDisplayRectangle method.
15842           - Created new CalculateDisplayRectange method, which basically does
15843             what get_DisplayRectangle() did originally, but now using the 
15844             right edge instead of DisplayRectangle to determine the size of
15845             our scrollbars
15846           - get_Canvas(): Fixed it to properly calculate canvas for 
15847             right/bottom controls which seem to be placed to the right/bottom
15848             of any controls that have a fixed location
15849           - Removed TODO that's taken care of
15850           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
15851             and SetDisplayRectLocation according to new MSDN2 docs
15852           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
15853             event when that is called, this is added for compatibility
15854           - ScrollControlIntoView(): Implemented.
15855           - Switched scrollbars to be implicit, they shouldn't be selectable
15856         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
15857           call it when the active control is set/changed
15858         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
15859         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
15860           implicit_control variable (used for native Win32 message generation)
15861         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
15862           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
15863         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
15864         * XplatUIStructs.cs: Added ScrollBarCommands enum
15866 2006-04-10  Jackson Harper  <jackson@ximian.com>
15868         * ButtonBase.cs:
15869         * CheckedListBox.cs:
15870         * ComboBox.cs:
15871         * DataGrid.cs:
15872         * DataGridView.cs:
15873         * Form.cs:
15874         * GroupBox.cs:
15875         * ListBox.cs:
15876         * PrintPreviewControl.cs:
15877         * ProgressBar.cs:
15878         * PropertyGrid.cs:
15879         * Splitter.cs:
15880         * StatusBar.cs:
15881         * TrackBar.cs:
15882         * UpDownBase.cs: Fixup base event overrides.
15883         
15884 2006-04-06  Mike Kestner  <mkestner@novell.com>
15886         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
15887         all user-initiated value changes to min <= value <= max-thumbsz+1.
15888         (set_Value): check for vert/horiz when calculating new thumb position.
15889         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
15890         like MS does.
15891         (OnMouseMoveSB): refactor the thumb dragging code and refine
15892         invalidation logic to reduce flicker.
15893         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
15894         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
15895         (UpdateThumbPosition): small code readability cleanup
15897 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
15899         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
15900           different
15902 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
15904         * ThemeNice.cs: Use a better graphics effect when a button is pressed
15906 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
15908         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
15909         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
15910           This dramatically reduces the number of Pen.Dispose calls. 
15911           Where possible call ResPool methods only once instead of calling it
15912           over and over again (for example for the same color).
15914 2006-04-06  Mike Kestner  <mkestner@novell.com>
15916         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
15917         Also remove an unused private field on the collection. Fixes #77972.
15919 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
15921         * ThemeNice.cs: Added ToolBar drawing code
15923 2006-04-06  Mike Kestner  <mkestner@novell.com>
15925         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
15926         I'm assuming that means we need to look up the toplevel for the
15927         provided control. Fixes the crash trace in #77911 but exposes another
15928         crash in some strange reflection usage in NDocGui.
15930 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
15932         * ThemeNice.cs: Gave it a little silver touch and added Images
15933           method
15934         * FontDialog.cs: FontDialog is not resizable
15935         * FileDialg.cs: Added SizeGripStyle.Show
15937 2006-04-05  Jackson Harper  <jackson@ximian.com>
15939         * KeyboardLayouts.cs: Remove warning.
15941 2006-04-05  Jackson Harper  <jackson@ximian.com>
15943         * Control.cs: Enable OnPaintInternal so we can use it for drawing
15944         all of our controls instead of Paint +=.
15945         * ListBox.cs:
15946         * ListView.cs:
15947         * MenuAPI.cs:
15948         * MessageBox.cs:
15949         * NotifyIcon.cs:
15950         * ProgressBar.cs:
15951         * ScrollBar.cs:
15952         * Splitter.cs:
15953         * StatusBar.cs:
15954         * TabControl.cs:
15955         * TextBoxBase.cs:
15956         * ToolBar.cs:
15957         * TrackBar.cs:
15958         * UpDownBase.cs:
15959         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
15960         use OnPaintInternal. Remove Width/Height and Visible checks in
15961         paint handler, this is done at a higher level now.
15962         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
15963         * PaintEventArgs.cs: Add a handled flag so controls that don't
15964         want anymore painting after OnPaintInternal can make sure OnPaint
15965         isn't called.
15967 2006-04-05  Mike Kestner  <mkestner@novell.com>
15969         * Form.cs: fix the menu WndProc hacks to respect the native enabled
15970         state of the form, so that we don't process events when Modal dialogs
15971         are up. Fixes #77922.
15973 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
15975         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
15976           checking is done.
15978 2006-04-05  Mike Kestner  <mkestner@novell.com>
15980         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
15982 2006-04-05  Mike Kestner  <mkestner@novell.com>
15984         * ListView.cs (HeaderMouseMove): null guarding for the over column
15985         when setting up the drag_to_index.  Fixes #78015.
15987 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
15989         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
15990           in the taskbar. Transient windows seem to accomplish that.
15992 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
15994         * Form.cs:
15995           - Re-enabled CreateParams.X/Y code for FormStartPosition
15996           - Added code for manual placement when creating the Control
15997           - Incomplete patch to treat MDI forms differently when
15998             setting the ClientSizeCore. (Still need to figure out handling
15999             x/y coords there)
16000         * XplatUIX11.cs:
16001           - When we're explicitly setting the X/Y position of a non-Child
16002             window, let the WM know. Metacity really wants this.
16004 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
16006         * ThemeNice.cs: Added CPDrawButton
16008 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
16010         * ThemeNice.cs: Changed the color for focused buttons and activated
16011           the arrows for small scroll buttons.
16013 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
16015         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
16016           anymore. Changed some method modifiers to protected (virtual)
16017         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
16018           changes
16019         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
16020           Updated drawing of menus, buttons and progressbars; added
16021           CPDrawBorder3D 
16023 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16025         * ImageListStreamer.cs: implemented serialization/deserialization
16026         of the images.
16028 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
16030         * ThemeWin32Classic.cs:
16031           - Removed all the DrawFrameControl stuff; CPDrawButton,
16032             CPDrawCheckBox and CPDrawRadioButton are now handled directly
16033             inside the methods
16034           - Updated and corrected the drawing code of CPDrawButton,
16035             CPDrawCheckBox and CPDrawRadioButton to better match ms
16036           - Updated theme checkbox and radiobutton code to use the CP*
16037             methods
16039 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
16041         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
16042           bug is fixed
16044 2006-03-31  Jackson Harper  <jackson@ximian.com>
16046         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
16047         sometimes.
16048         * UpDownBase.cs: Don't CreateGraphics manually, use a
16049         Refresh. Ideally we would invalidate the correct areas here.
16051 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
16053         * XplatUIX11.cs: 
16054           - We now track the mapping state of windows. If a window (or 
16055             one of it's parents) is not mapped we no longer permit
16056             WM_PAINT messages to be generated since we'd otherwise get 
16057             lots of BadMatch X errors. Jackson did all the work figuring
16058             out the problem.
16059           - Destroying the caret if the window it's contained in is 
16060             destroyed. Can't use regular DestroyCaret method since it
16061             might fall into a drawing function (trying to remove the
16062             caret) and with that generate new BadMatch errors. Again,
16063             Jackson tracked this down.
16064           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
16065             make sure we send the messages to all windows. (The old code
16066             would send the WM_DESTROY to the window, and then all child
16067             windows would be 'gone' because the WM_DESTROY handle lookup
16068             would no longer find the destroyed window)
16069         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
16070         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
16072 2006-03-31  Jackson Harper  <jackson@ximian.com>
16074         * ScrollableControl.cs: Dont recalc if we are not visible.
16076 2006-03-31  Mike Kestner  <mkestner@novell.com>
16078         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
16079         the visibility branch.
16081 2006-03-31  Jackson Harper  <jackson@ximian.com>
16083         * ScrollBar.cs: Cap values when incrementing/decrementing.
16085 2006-03-31  Mike Kestner  <mkestner@novell.com>
16087         * MenuAPI.cs: setup menu.tracker for popup/context menus.
16088         * ToolTip.cs: guard against timer expirations with no active control.
16089         Not sure why it happened.
16091 2006-03-31  Mike Kestner  <mkestner@novell.com>
16093         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
16094         text.
16095         * ToolTip.cs: Position the tooltip based on where the cursor is at
16096         popup time, not at MouseEnter time.  Add a Down state so that we don't
16097         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
16098         positioning offset. Lookup DisplaySize at positioning time, since it
16099         can theoretically change during invocation.
16100         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
16101         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
16103 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
16105         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
16106           Fixes behaviour when the Text property of the box is String.Empty
16108 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
16110         * XplatUIX11.cs: Only send mouseleave for our client windows, not
16111           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
16112           a window)
16114 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
16116         * FileDialog.cs: Visual enhancement for the popup buttons in 
16117           PopupButtonPanel
16119 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
16121         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
16122           code
16124 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
16126         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
16127           highlighted menu items to match ms
16129 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
16131         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
16133 2006-03-30  Mike Kestner  <mkestner@novell.com>
16135         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
16136         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
16137         go active to account for HotLight to Selected transition.
16138         * MenuItem.cs: add internal Selected prop. Fill out the Status
16139         property by calculating it from item info. Add HotLight,
16140         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
16142 2006-03-30  Mike Kestner  <mkestner@novell.com>
16144         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
16146 2006-03-29  Jackson Harper  <jackson@ximian.com>
16148         * Form.cs: Implement TODO.
16150 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
16152         * PrintPreviewDialog.cs: Implemented missing methods and events; still
16153           missing proper dialog setup in the constructor
16155 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
16157         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
16158         * Control.cs:
16159           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
16160           - Fixed ResetBindings and removed TODO
16161           - Added check for cross-thread calls to get_Handle()
16162           - Added Marshaller attribute for set_Font to satisfy class status
16163         * FontDialog.cs: Removed TODOs that seemed implemented
16164         * UpDownBase.cs: Removed unneeded TODO and Fixme
16165         * MessageBox.cs: Implemented support for Default button and removed TODO
16166         * FileDialog.cs: Removed obsolete TODO
16167         * DomainUpDown.cs: Removed obsolete TODO
16168         * ButtonBase.cs: Removed obsolete TODO
16169         * XplatUIWin32.cs: Removed obsolete TODO
16170         * Form.cs:
16171           - Removed obsolete TODO
16172           - Calling CheckAcceptButton when the acceptbutton is changed to allow
16173             internal status updates
16174           - Making sure the active control is selected when the control is created
16175         * CurrencyManager.cs: Removed obsolete TODO
16177 2006-03-29  Mike Kestner  <mkestner@novell.com>
16179         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
16180         of PrintPreviewDialog and RichTextBox.
16182 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
16184         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
16185           DarkDark, Light and LightLight colors for a specific color
16186         * ThemeWin32Classic.cs:
16187           - Use Button drawing code to draw RadioButtons and CheckBoxes with
16188             Appearance = Button 
16189           - Make use of the new ResPool helper CPColor
16190           - Draw ProgressBar and StatusBar with correct 3D borders
16192 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
16194         * ColorDialog.cs: Return selected color. Fixes bug #77940.
16196 2006-03-28  Mike Kestner  <mkestner@novell.com>
16198         * ListView.cs: fix Icon layout to plan for scrollbar widths when
16199         calculating col/row counts.
16201 2006-03-28  Mike Kestner  <mkestner@novell.com>
16203         * ColumnHeader.cs:
16204         * ListView.cs:
16205         * ListViewItem.cs:
16206         * Menu.cs: 
16207         switch to explicit interface method implementation for some methods
16208         corcompare identifies as inconsistent with MS.
16210 2006-03-28  Mike Kestner  <mkestner@novell.com>
16212         * MainMenu.cs: 
16213         * Menu.cs:
16214         add a few missing methods from the class status output.
16216 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
16218         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
16219           correct.
16221 2006-03-28  Mike Kestner  <mkestner@novell.com>
16223         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
16225 2006-03-27  Mike Kestner  <mkestner@novell.com>
16227         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
16228         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
16230 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
16232         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
16234 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
16236         * ThemeWin32Classic.cs:
16237           - GroupBox: Inserted a little gap between the text and the lines
16238             on the right side
16239           - Made the code in CPDrawBorder3D more readable
16240           - Corrected the drawing location of the up and down arrows in 
16241             CPDrawScrollButton
16243 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
16245         * ControlPaint.cs: Corrected line widths in DrawBorder for
16246           ButtonBorderStyle Inset and Outset
16248 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
16250         * ThemeWin32Classic.cs:
16251           - Rewrote the totally broken CPDrawBorder3D method. That was
16252             one of the main problems for the terrific ThemeWin32Classic
16253             look
16254           - Updated and corrected Button drawing
16255           - Correct the dimensions of the SizeGrip to match ms ones
16256           - Removed a small drawing glitch in DrawComboBoxEditDecorations
16257         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
16258           Border3DStyle.Sunken to match ms.
16260 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
16262         * ThemeWin32Classic.cs: First small part of the "de-uglify
16263           ThemeWin32Classic" effort, SizeGrip
16265 2006-03-24  Jackson Harper  <jackson@ximian.com>
16267         * XplatUIX11.cs: Give a max idle time of one second, this matches
16268         MS and forces an Idle event every second when there are no other
16269         events in the queue.
16271 2006-03-24  Mike Kestner  <mkestner@novell.com>
16273         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
16274         * ListView.Item.cs: fix layout issues with null image lists and images
16275         smaller than checkbox size.
16276         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
16277         mode like MS does.  It's weird, but consistent.  ;-)
16278         Fixes #77890.
16280 2006-03-24  Mike Kestner  <mkestner@novell.com>
16282         * ListView.cs: Scroll wheel support for the item control.  Fixes
16283         #77839.
16285 2006-03-23  Jackson Harper  <jackson@ximian.com>
16287         * ScrollableControl.cs: Special case negative sized areas, not
16288         zero.
16289         * MonthCalendar.cs: Save the rect of the clicked date so we can
16290         use it for invalidation.
16291         - Try to cut down on the number of invalidates
16292         - Invalidate the rect the mouse is over and was over when moving
16293         the mouse, so we get the focus box following the cursor.
16295 2006-03-23  Mike Kestner  <mkestner@novell.com>
16297         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
16298         focus rectangle drawing. Fixes #77835.
16300 2006-03-23  Mike Kestner  <mkestner@novell.com>
16302         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
16303         the if and else if and reverting back to the original == check on the
16304         None conditional.
16306 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
16308         * FontDialog.cs: Update the example panel if the selected index of
16309           the fontListBox changes.
16311 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
16313         * FileDialog.cs: Make FileDialog remember which directory it was in
16314           last in the same execution.
16316 2006-03-22  Mike Kestner  <mkestner@novell.com>
16318         * FileDialog.cs: make the DropDownMenu on the toolbar display
16319         RadioChecks since they are mutually exclusive and that's what MS does.
16321 2006-03-22  Mike Kestner  <mkestner@novell.com>
16323         * Theme.cs: add Color param to CPDrawMenuGlyph.
16324         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
16325         checks and radio marks and arrows are visible on highlighted items.
16326         * ControlPaint.cs: update to use new Theme signature.
16328 2006-03-22  Mike Kestner  <mkestner@novell.com>
16330         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
16331         is active. Fixes #77870.
16333 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
16335         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
16336           to be focused/selected after startup
16338 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
16340         * ColorDialog.cs: 
16341           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
16342             CustomColors and ShowHelp properties
16343           - Some internal rewrites to get better results when using the
16344             ColorMatrix
16346 2006-03-22  Mike Kestner  <mkestner@novell.com>
16348         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
16349         HoverSelection.  Fixes #77836.
16351 2006-03-22  Mike Kestner  <mkestner@novell.com>
16353         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
16354         ToggleButtons.  (De)Sensitize the Back button around a stack count of
16355         1, not 0.  Update ButtonSize based on a pixel count of the win32
16356         control.  Adjust the toolbar size/location for new button size.
16358 2006-03-22  Jackson Harper  <jackson@ximian.com>
16360         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
16361         true.
16362         * ScrollBar.cs: When doing increments and decrements we need to
16363         set the Value property so that ValueChanged gets raised. A
16364         possible optimization here would be to make an internal SetValue
16365         that doesn't invalidate immediately.
16366         * ToolTip.cs: Tooltips get added to their container (when
16367         supplied) so they get disposed when the container is disposed.
16368         - Don't create tooltips for String.Empty. This prevents all these
16369         little 2-3 pixel windows from showing up when running nunit-gui
16370         and driving me mad.
16371         * Form.cs: Don't set topmost when setting the owner if the handles
16372         haven't been created yet.  The topmost set will happen when the
16373         handles are created.
16375 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
16377         * XplatUIX11.cs:
16378           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
16379           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
16380             visible (to allow them to recalculate their sizes)
16382 2006-03-21  Mike Kestner  <mkestner@novell.com>
16384         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
16385         methods. Removed a ton of redundant code.  Still not really happy with
16386         the border rendering, but I think that's mainly because of the
16387         ControlDarkDark being black instead of a dark grey. Depending on how 
16388         close we want to be, we might want to revisit those color choices.
16389         Among the new features added during the refactor were DropDownArrow
16390         pressed rendering, Disabled image rendering.  Proper flat appearance
16391         boundary rendering.  Removed the Divider and Wrapping dividers since I
16392         can't figure out any combination of themes and conditions to make the
16393         MS control draw a horizontal line on a toolbar despite what the
16394         Divider property docs indicate.
16395         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
16396         conditions and incorrect layout.  Updated to coding standard.
16397         * ToolBarButton.cs: refactored layout and positioning code from
16398         ToolBar to here.  Invalidate wherever possible instead of forcing
16399         redraws of the whole toolbar. 
16400         (Known remaining issues: explicit ButtonSize smaller than provided
16401         images.)
16403 2006-03-21  Mike Kestner  <mkestner@novell.com>
16405         * ContextMenu.cs (Show): use the position parameter instead of just
16406         showing at the MousePosition.
16408 2006-03-21  Jackson Harper  <jackson@ximian.com>
16410         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
16411         control handle this.
16412         * TreeNodeCollection.cs: If we are clearing the root node we need
16413         to reset top_node so calcs can still happen.
16414         * ThemeWin32Classic.cs: This is a Flags so we need to check
16415         properly.
16416         
16417 2006-03-21  Jackson Harper  <jackson@ximian.com>
16419         * DataGrid.cs: Create columns when the binding context has been
16420         changed.
16421         * X11Structs.cs: Keysyms are uints.
16422         - Add size to fix build.
16424 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
16426         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
16427           XplatUIOSX.cs: 
16428           - Added ResetMouseHover method to allow controls to retrigger
16429             hovering if they need it more than once
16430           - Implemented MouseHoverTime and MouseHoverSize properties
16431         * Timer.cs: Start() must reset the interval
16432         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
16433           properties
16435 2006-03-21  Jackson Harper  <jackson@ximian.com>
16437         * X11Keyboard.cs: improved layout detection. Move the nonchar
16438         tables into this file.
16439         * KeyboardLayouts.cs: Move the tables into resource files.
16441 2006-03-21  Mike Kestner  <mkestner@novell.com>
16443         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
16445 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
16447         * Mime.cs: Various speed optimizations. Looking up mime types
16448           is now 2 times faster than before
16450 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
16452         * CreateParams.cs: Added internal menu field
16453         * Control.cs: 
16454           - Switched call order for UpdateBounds; now we always call
16455             the one that also takes ClientSize, and we're calculating the 
16456             client size via driver method in the others. The previous
16457             method of tracking client size by difference wasn't working
16458             for forms where even the starting client size wouldn't match
16459             the overall form size (due to borders) (Part of fix for #77729)
16460           - CreateParams(): Do not use parent.Handle unless the handle is
16461             already created. Causes havoc with Nexxia and throws off our
16462             creation of controls
16463         * XplatUIX11.cs:
16464           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
16465           - Switched handling of ConfigureNotify over to new PerformNCCalc 
16466             method (consolidates code)
16467           - Changed RequestNCRecalc to use new PerformNCCalc method
16468           - Added calls to RequestNCRecalc when menus and borders are changed
16469             to allow app to set NC size. (Part of fix for #77729) This matches
16470             when MS send a WM_NCRECALC on Win32 windows.
16471           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
16472             (Part of fix for #77729). This matches what MS does, they also
16473             send that message when the form is made visible.
16474           - XException.GetMessage: Improved usability of X errors by including
16475             a translation of the window into Hwnd and Control class
16476           - Improved debug info for window creation, reparenting and destruction
16477           - Created helper method WindowIsMapped() [Currently not used]
16478         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
16479         * Form.cs:
16480           - CreateParams: Now setting our menu on the new internal menu field
16481           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
16482             avoid calculating the same property twice
16483         * Hwnd.cs:
16484           - Improved usability of ToString() for debugging purposes
16485           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
16486             determine the height of the menu, instead of just the font. This
16487             required to also create a graphics context and to keep a bmp 
16488             around (for performance reasons)
16490 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
16492         * MenuAPI.cs: Added OnMouseUp method
16493         * Form.cs:
16494           - Now remembering the requested client size, avoids size errors
16495           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
16496             instead of base if the menu is active. This is required due to
16497             control now capturing and releasing on down/up and it would
16498             prematurely release our menu capture
16500 2006-03-17  Jackson Harper  <jackson@ximian.com>
16502         * KeyboardLayouts.cs: Add the czech layouts.
16504 2006-03-16  Jackson Harper  <jackson@ximian.com>
16506         * Control.cs: Use the viewport space when sizing not the controls
16507         client size, so things like ScrollableControl that effect the
16508         viewport size (when scrollbars are added) are computed correctly.
16509         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
16510         of ManagerEntrys.
16511         - Handle creating BindingManagers for null data sources.
16512         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
16513         source, otherwise when rows are added they are added to the 'fake'
16514         datasource and we will crash when trying to set the position in
16515         those rows.
16516         - Use Implicit scrollbars on the datagrid so they arent
16517         selectable.
16518         
16519 2006-03-16  Jackson Harper  <jackson@ximian.com>
16521         * Binding.cs:
16522         * InternalWindowManager.cs:
16523         * MdiWindowManager.cs:
16524         * X11Keyboard.cs: I really want Mike to love me again (fix
16525         compiler warnings).
16527 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
16529         * DataGrid.cs:
16530           - OnMouseDown: Switch to editing mode when clicking on the cell
16531                          even if we're clicking on the cell that's currently 
16532                          selected
16533           - ProcessGridKey: Left/Right now wrap like MS.Net does
16534           - ProcessGridKey: Tab now knows to add a new row when tab is
16535                             pressed in the cell of the last column of the 
16536                             last row
16537           - ProcessGridKey: Enter now adds another row  if pressed in the last
16538                             row and selectes the new row, same column cell
16539           - ProcessGridKey: Home/End navigate columns, not rows, like 
16540                             originally implemented
16541           - Broke ProcessKeyPreview code out into an extra Internal method
16542             so it can be called from the edit code
16543         * DataGridTextBox.cs (ProcessKeyMessage):
16544           - Switched to accept Tab keypresses
16545           - Added F2 handling to allow jumping to the end of the edited cell
16546           - Added logic to allow moving caret left/right inside edited cell
16547             and making the edited cell jump when the caret hits cell borders
16548           - Tab and Enter are now passed to the datagrid after being handled
16549         * TextBoxBase.cs:
16550           - Removed capture code now that Control handles it
16551           - set_SelectionStart now ensures caret is visible
16553 2006-03-16  Jackson Harper  <jackson@ximian.com>
16555         * TrackBar.cs: Debackwards the increment/decrement for handling
16556         mouse clicks on the bar with vertical trackbars.
16557         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
16558         bottom to match MS.
16560 2006-03-16  Mike Kestner  <mkestner@novell.com>
16562         * ListView.cs: make shift/ctrl keyboard and mouse selection 
16563         consistent with the MS control. Fix a bug in
16564         SelectedListViewItemCollection.Clear that was pissing me off for the
16565         better part of a day because the collection was being altered
16566         underneath us as we walked the list.
16568 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
16570         * Control.cs: Not sure how we could miss this so long, but it seems
16571           that MS.Net has Capture set all the way from before calling 
16572           OnMouseDown through sending the mouse events until after
16573           OnMouseUp. This will fix DataGrid's selection being set to end
16574           at the location of the MouseUp.
16576 2006-03-15  Jackson Harper  <jackson@ximian.com>
16578         * BindingContext.cs: Check the binding after its added so that it
16579           can initialize the binding managers and hookup to events.
16580         * Binding.cs: Data members seem to sometimes include rows/cols in
16581           the format Row.Column we now take this into account.
16582           - Hookup to the position changed event so we can update the
16583           control when the position has changed in the data set.
16584         * CurrencyManager.cs: Take into account the row/col naming
16585           convention when creating dataset tables.
16586         * BindingContext.cs: Using a newer better way of storing
16587           datasource/datamember pairs.  Hopefully this better matches MS for
16588           looking up binding managers.
16591 2006-03-15  Jackson Harper  <jackson@ximian.com>
16593         * BindingContext.cs: The currency manager needs the data member
16594         name, if the member is a data set we use the name to find the
16595         correct table.
16596         * CurrencyManager.cs: When creating the list prefer an IList over
16597         an IListSource.
16598         - Attempt to create a DataTable from a DataSet (TODO: might need
16599         some better error checking here, although MS doesn't seem to have much)
16600         - If we have a DataTable create a view and use it as our list.
16602 2006-03-15  Mike Kestner  <mkestner@novell.com>
16604         * ListView.cs: keep a matrix of the icon mode layout to facilitate
16605         keyboard navigation. Support Up/Down/Left/Right selection correctly
16606         for all 4 View modes.
16607         * ListViewItem.cs: add internal row/col fields for icon layouts.
16609 2006-03-15  Jackson Harper  <jackson@ximian.com>
16611         * TabControl.cs: Redraw the tabs when we resize so their newly
16612         calculated sizes are drawn on screen.
16613         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
16614         composite characters.
16615         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
16616         - filter events so that composite characters can be created
16617         patches by peter
16618         * X11Structs.cs: Add XIMProperties enum.
16620 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
16622         * Control.cs (BringToFront, SendToBack): Don't use window or handle
16623           unless it's created
16625 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
16627         * Control.cs (PerformLayout): We don't need to consider visiblity
16628           for anchoring, only for docking. This fixes 'whacky' alignment
16629           in listbox and other controls that use implicit scrollbars after
16630           the previous PerformLayout patch
16631         * ListBox.cs: Switched to use implicit scrollbars
16632           
16633 2006-03-14  Mike Kestner  <mkestner@novell.com>
16635         * ToolBar.cs: 
16636         * VScrollBar.cs:
16637         - chain up the "new event" overrides to base and use
16638         OnEvent to raise them.  Part of fix for bug #76509.
16640 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
16642         * FileDialog.cs: Do not select an item in the parent directory
16643           on backspace
16645 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
16647         * Control.cs (PerformLayout): It would seem that we considered
16648           invisible windows for our layout. Not quite the right thing
16649           to do. Now we don't any longer, thereby fixing bug #76889.
16651 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
16653         * Control.cs (CanFocus): I goofed. A control can have focus 
16654           even though it's not selectable. Made it match MS docs.
16656 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
16658         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
16659           center by default (fixes #76895)
16660         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
16661           all uses of Border3DSides.All with the explicit ORd together
16662           Left|Right|Top|Bottom because I assume that nobody was aware 
16663           that All also implies a center fill. Most places I checked had
16664           a fill right above.
16665         * ProgressBarStyle.cs: Added
16667 2006-03-13  Mike Kestner  <mkestner@novell.com>
16669         * ListView.cs: fix breakage in drag shadow header positioning 
16670         from Peter's csc compilation fix.
16672 2006-03-13  Mike Kestner  <mkestner@novell.com>
16674         * ListView.cs: fix NRE produced by backspacing twice in a focused
16675         FileDialog.
16677 2006-03-13  Mike Kestner  <mkestner@novell.com>
16679         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
16681 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
16683         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
16684           be changed
16685         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
16686           the allowed size before making programmatic size changes
16688 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
16690         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
16691           set, metacity is broken and will still use the emty sizes in 
16692           the struct. (Fix for #77089)
16694 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
16696         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
16697           WindowExStyles and marked both enums as Flags
16698         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
16699           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
16700           to match WindowStyles split
16701         * XplatUIX11.cs:
16702           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
16703           - Updated to match WindowStyles split
16704         * XplatUIWin32.cs:
16705           - Fixed FosterParent creation, was using ExStyle on the Style field
16706             (This should help with Popup focus issues)
16707           - Updated to match WindowStyles split
16709 2006-03-13  Jackson Harper  <jackson@ximian.com>
16711         * MdiWindowManager.cs: Use the system menu height. Fixes some
16712         strange sizing issues.
16714 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
16716         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
16717         * TextBoxBase.cs:
16718           - Scroll to caret after inserting text (#77672)
16719           - Make scroll range one pixel higher, fixes off-by-one error (and
16720             makes underlines visible on the last line)
16722 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
16724         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
16725           the keyboard state from being stuck with keys in 'pressed' state when
16726           focus is switched away via keyboard
16727         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
16728           reset the keyboard if no X11 KeyUp events are expected to come
16729         * X11Structs.cs: Switched type of Visible to bool to match driver
16731 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
16733         * TextControl.cs:
16734           - Switched caret to be just 1 pixel wide, matches MS and looks less
16735             clunky
16736           - Moved caret display 1 pixel down from the top of the control
16737             to improve view
16738           - InsertCharAtCharet: Update the selection start if moving the caret
16739             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
16740           - No longer always creating the caret when the caret methods are
16741             called. Only the actual ShowCaret/HideCaret will do that now
16742           - Only setting caret visible if the owner control has focus
16743           - UpdateView: Added invalidation-shortcut logic for center and right 
16744             aligned text. Previously we'd update all according to the left
16745             logic which caused drawing errors. Also fixed height of invalidated
16746             areas, now properly invalidating the whole area (was off-by-one)
16747           - owner_HandleCreated: Always generate the document when the
16748             handle is created; this ensures that 
16749         * TextBoxBase.cs:
16750           - Fixed situation where caret would disappear under the right
16751             window border, also improved scrolling behaviour on left-
16752             aligned textboxes
16753           - Fixed right-aligned textboxes to have a border to the
16754             right instead of the caret being under the right border
16755         * XplatUIX11.cs:
16756           - Switched from 'nested' to simple visible/not visible tracking 
16757             for caret (part of fix for #77671)
16758           - No longer passing through translated FocusIn/FocusOut messages
16759             since we were notifying too often and the wrong windows. Instead
16760             we just notify our focussed window of receiving or loosing focus
16761         * XplatUIWin32.cs: Switched from 'nested' show/hide 
16762           counting for caret to simple visible yes/no behaviour (part of 
16763           fix for #77671)
16765 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
16767         * Mime.cs: Remove debug code...
16769 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
16771         * MimeGenerated.cs: Removed
16772         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
16773           and subclasses) from /usr/(local/)share/mime and
16774           $HOME/.local/share/mime.
16776 2006-03-10  Jackson Harper  <jackson@ximian.com>
16778         * MdiWindowManager.cs: Recalc the NC area when a window is
16779         maximized/restored so that the menu area is drawn on forms that
16780         don't have a menu.
16782 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
16784         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16785           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
16786           us to force a WM_NCCALCRESIZE message being sent. This is needed
16787           for MDI maximizing.
16789 2006-03-10  Jackson Harper  <jackson@ximian.com>
16791         * Form.cs: We need to use the ActiveMenu when calculating menu
16792         height.
16793         - Fix nullref when the window manager hasn't been created yet.
16794         * Control.cs: Fix nullref when we try to bring a control to the
16795         front that has no parent.
16796         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
16797         height.
16798         - Add a dummy item to the maximized menu so it always has the
16799         correct height. Otherwise when there are no menus we don't get our
16800         icon and buttons.
16801         
16803 2006-03-10  Jackson Harper  <jackson@ximian.com>
16805         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
16806         stuff.
16807         * Form.cs: Make the window_state internal so the window managers
16808         can track it.
16809         - When an MDI child is maximized let its window manager create the
16810         main menu (so it can add its icon).
16811         - Notify the window managers of state changes
16812         - Let the window manager paint its buttons and handle button
16813         clicks on the menu when it is maximized.
16814         * InternalWindowManager.cs: Move the prev_bounds into the mdi
16815         window manager, since tool windows don't use it, only mdi windows.
16816         - Tell the main form that we don't want it to handle NCPAINT
16817         itself to avoid extra painting.
16818         - Handle clicks on a maximized windows menu.
16819         - Handle window state changes
16820         - Handle minimize/maximize clicks correctly by setting the window state.
16821         * MdiWindowManager.cs: Add an icon menu that (the menu you get
16822         when clicking on the forms icon).
16823         - New method to create a forms maximized menu. This is its normal
16824         menu + an icon.
16825         - Handle window state changes.
16826         - Handle sizing of maximized windows.  Maximized windows are just
16827         drawn bigger then the parent visible area. All controls are still
16828         there, they are just outside the visible area (this matches windows).
16829         * MdiClient.cs: No scrollbars when a child window is maximized.
16830         - Let the children windows figure out how big they should be when
16831         sizing maximized windows.
16832         - Implement a version of ArrangeIconicWindows somewhat similar to
16833         Windows version.  There are some little differences, but I don't
16834         think any app will rely on the layout of minimized mdi windows.
16836 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
16838         * Padding.cs: Several fixes to allow compiling with csc 2.0
16840 2006-03-09  Jackson Harper  <jackson@ximian.com>
16842         * Menu.cs:
16843         * MenuItem.cs: Cheap hack so we can add items to the list without
16844         the events being raised.  This allows adding mdi items during
16845         drawing. TODO: Should probably find a better time to add the items.
16847 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
16849         * ThemeWin32Classic.cs:
16850           - CheckBox_DrawText: Added logic to not wrap if not enough space
16851             is available (Fix for bug #77727)
16852           - RadioButton_DrawText: Added logic not to wrap if not enough
16853             space is available (Fix for bug #77727). Also removed some
16854             duplicate code, DrawString always drawing the regular text
16855             before hitting the if statement.
16857 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
16859         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
16861 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
16863         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
16864         * ContainerControl.cs: Partial implementation of some 2.0 scaling
16865           methods. Moved the new 2.0 properties into alphabetical order with
16866           other properties and added MonoTODO tags
16868 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
16870         * AutoScaleMode.cs: Added. Fix build.
16872 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
16874         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
16875           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
16876           and was requiring premature handle creation for calls from above
16877         * Form.cs, Control.cs: Removed handle arguments from calls to
16878           CalculateClientRect()
16880 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
16882         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
16883           drag_column.column_rect is MarshalByRef and can't be used that way
16885 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
16887         * AxHost.cs: Added deserialization constructor for 
16888           AxHost+State (fixes 77743)
16890 2006-03-09  Mike Kestner  <mkestner@novell.com>
16892         * ListView.cs: 
16893         - Added column drag reordering for details view.
16894         - fixed behavior when mouse is dragged off column and
16895         AllowColumnReorder is false.
16896         * ColumnHeader.cs: clone the format too in Clone.
16897         * Theme.cs: add DrawListViewHeaderDragDetails method.
16898         * ThemeWin32Classic.cs:
16899         - impl new method for drawing drag column shadows and targets.
16900         - support column offset for details mode in DrawListViewItem.
16902 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
16904         * TextControl.cs: Reset the char_count when the document is cleared
16905           (Fixes bug reported on mono-winforms mailing list)
16907 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
16909         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
16910           of calling base we simply process the key ourselves, since both
16911           DefWindowProc and the handled method would set m.Result. 
16912           (Fixes #77732)
16914 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
16916         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
16917           method also moves the window; instead implemented a copy of
16918           Control.ScaleCore (Part of fix for #77456)
16919         * TextBoxBase.cs: 
16920           - Created new CreateGraphicsInternal method to allow providing
16921             a graphics context when no handle is created without triggering
16922             handle creation. (Part of fix for #77456)
16923           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
16924         * TextControl.cs: 
16925           - Switched Constructor to require TextBoxBase instead of Control (to
16926             allow uncast access to CreateGraphicsInternal)
16927           - Safeguarded use of owner.Handle property. No longer accessing it
16928             unless the handle is already created.
16929           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
16930           - Now triggering a recalc when owning control becomes visible
16931         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
16932           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
16933           premature handle creation (Part of fix for #77456)
16934         * Control.cs:
16935           - We now only destroy our double-buffering buffers when the
16936             control is resized or disposed, but not when visibility
16937             changes. (The code even re-created them twice every time)
16938           - Now requiring a redraw of the buffer on visibility changes
16939             (fixes bug 77654 part 2)
16940           - Not passing OnParentVisibleChanged up unless the control
16941             is visible
16942           - CanFocus: Fixed to match MS documentation
16943           - Focus: Fixed to return actual focus state and to check if
16944             setting focus is legal before setting it
16946 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
16948         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
16949           when to draw focus rectangle by looking at parent focus and
16950           selected state instead. This fixes TabPages on Linux sometimes
16951           having none or multiple focus rectangles.
16952         * XplatUIX11.cs (SetFocus): 
16953           - Don't set the focus if the same window already has focus
16954           - Use SendMessage instead of PostMessage (like it's Win32
16955             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
16956             to match MS behaviour
16957         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
16958           are not selectable.
16960 2006-03-07  Jackson Harper  <jackson@ximian.com>
16962         * PictureBox.cs: Revert line I accidently committed last week.
16964 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
16966         * Control.cs: 
16967           - Added new IsRecreating and ParentIsRecreating properties to
16968             allow testing if RecreateHandle has been called on ourselves
16969             or one of our parents
16970           - WndProc(WM_DESTROY): If our control handle is being recreated
16971             we immediately need to create the handle when receiving the
16972             destroy, that way our child windows find a valid parent handle
16973             when they themselves are being recreated upon WM_DESTROY receipt
16974             (fix for bug #77654 part 1)
16975         * XplatUIX11.cs:
16976           - DestroyWindow: WM_DESTROY must be sent to our own window before
16977             notifying any child windows. MS documents that child windows
16978             are still valid when WM_DESTROY is received. (Control now relies on
16979             this behaviour)
16980           - Added some fine-grain debug options
16982 2006-03-06  Jackson Harper  <jackson@ximian.com>
16984         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
16985         box and base calculations off this.
16986         * MdiChildContext.cs:
16987         * MdiWindowManager.cs: Don't need to ensure scrollbars here
16988         anymore.
16989         
16990 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
16992         * Splitter.cs: In situations where the affected control is added
16993           to the parent's control list after the splitter, we would not
16994           populate affected. Now we try populating it on mousedown, if
16995           it's not already set, and force it to be re-set whenever our
16996           parent changes.
16998 2006-03-03  Matt Hargett  <matt@use.net>
17000         * Control.cs: implement Control.Padding
17001         * Padding.cs: -Padding.All returns -1 when constructing with the
17002         implicit default ctor
17003         -Padding.ToString() matches MS.NET
17004         * ContainerControl.cs: implement
17005         ContainerControl.AutoScaleDimensions
17006         * ListControl.cs: implement ListControl.FormattingEnabled
17007         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
17008         * ButtonBase.cs:
17009         * TabPage.cs: Implement UseVisualStyleBackColor.
17010         * PictureBox.cs: Implement PictureBox.InitialImage.
17012 2006-03-03  Mike Kestner  <mkestner@novell.com>
17014         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
17015         event declarations to proxy to base event.
17016         * ListViewItem.cs: update to use ItemControl.
17017         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
17018         * ThemeWin32Classic.cs: update to new ListView theme API and fix
17019         column header label rendering for 0 width columns.
17021 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
17023         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
17024           that causes the control to be created. Fixes #77476.
17026 2006-03-02  Jackson Harper  <jackson@ximian.com>
17028         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
17029         expose_pending.
17031 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
17033         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
17034           passed in for the EventArgs (fixes #77690)
17036 2006-03-01  Jackson Harper  <jackson@ximian.com>
17038         * ScrollBar.cs: Refresh afterbeing resized.
17040 2006-02-28  Mike Kestner  <mkestner@novell.com>
17042         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
17043         Clean up a tracker compile warning.
17044         * MenuItem.cs: add internal PerformPopup method.
17045         [Fixes #77457]
17047 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
17049         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
17050           implicit expose) when the text is set to null
17052 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
17054         * RichTextBox.cs (FlushText): When newline is true, we always
17055           need to split the line, even if no text is on it and we may
17056           never eat newlines. (Fixes #77669)
17058 2006-02-28  Mike Kestner  <mkestner@novell.com>
17060         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
17061         and set Selected instead.
17062         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
17063         collections.
17065 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
17067         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
17069 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
17071         * FontDialog.cs:
17072           - Got rid of the panel. All controls are now directly added to
17073             the dialog form
17074           - It is now possible to set a font with the Font property
17075           - MinSize and MaxSize property do now what they should
17076           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
17077           - Searching and selecting a font with the font textbox works now,
17078             the same applies to the style and size textbox
17079           - Draw the correct 3D border in the example panel
17080           - Fixed a little mem leak (unused fonts didn't get disposed)
17081           - Many other internal updates/rewrites...
17082           - Fix typo
17084 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
17086         * TextControl.cs: 
17087           - InsertRTFFromStream: Added 'number of characters inserted' argument
17088           - set_SelectedRTF: Now using the number of characters to calculate
17089             the new location for the selection and cursor (x/y cannot be used
17090             due to potentially already wrapped text)
17092 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
17094         * TextControl.cs: Added property and implemented means to allow 
17095           disabling recalculation of a document (can be used to speed up
17096           multiple inserts and is needed to make RTF inserts predictable, see
17097           bug #77659)
17098         * RichTextBox.cs: Using the new NoRecalc property of Document to
17099           keep x/y insert locations predictable. Also makes it faster inserting
17100           large chunks of RTF
17102 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
17104         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
17105           it's easier for a child control to handle the other messages without
17106           having to duplicate the special functionality
17107         * TextBoxBase.cs
17108           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
17109             code to handle processing the key ourselves, in order to get 
17110             access to the result of KeyEventArgs.Handled. We now only call 
17111             ProcessKey if they key hasn't been handled already. Fixes #77526.
17112           - set_Text: If null or empty string is given, just clear the 
17113             document. Fixes part of #77526
17115 2006-02-27  Jackson Harper  <jackson@ximian.com>
17117         * SizeGrip.cs: Paint the background color before painting the grip
17118         so things look right.
17119         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
17121 2006-02-27  Mike Kestner  <mkestner@novell.com>
17123         * ListView.cs:
17124           - Restructure layout and invalidation model to remove a ton of
17125           flicker from the control and speed up performance in general.
17126           - Add manual column resize, flickers like crazy, but I already have
17127           some ideas on how I'll fix that. (#76822)
17128           - Merge the three Icon-based views into a single layout method.
17129           - Move item selection interaction logic from the item since 
17130           interaction with the collections is more appropriate to the view.
17131           - Deselection on non-item clicks.
17132         * ListViewItem.cs:
17133           - Encapsulate most of the layout. Add some internal props to trigger
17134           layout.  Move to a model where Items invalidate themselves instead
17135           of just invalidating the whole control every time something changes.
17136           - Invalidate on Text/Caption changes.
17137           - switch to an offset based layout model to avoid having to absolute
17138           position every element on item moves.
17139           - correct checkbox layout to conform to MS layout.
17140         * ThemeWin32Classic.cs:
17141           - refactor some column header drawing code.
17142           - fix string justification for column headers (#76821)
17143           - make SmallIcon labels top justified for compat with MS impl.
17144         * ThemeClearlooks.cs:
17145           - adjust to new ListViewItem internal checkbox bounds api.
17147 2006-02-27  Jackson Harper  <jackson@ximian.com>
17149         * Control.cs:  Change where implicit controls fall in the zorder.
17150         They are now on top of all children.
17151         - Synced AddImplicit code with Add
17152         - Removed unused enumerator.
17153         * SizeGrip.cs: Remove the TODO as its been TODONE.
17155 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
17157         * TextControl.cs(Insert): Combine the last lines unless the insertion
17158           string ends with \n\n, otherwise we leave one line too many (Fixes
17159           something I noticed with the testapp for #77526; the bug itself was
17160           already fixed in the previous checkin)
17162 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
17164         * RichTextBox.cs:
17165           - SelectionColor and SelectionFont methods no longer set absolute
17166             styles. Instead, the keep font or color respectively (This 
17167             resolves a long-standing FIXME in the code)
17168           - When flushing RTF text, the insert code now considers text trailing
17169             behind the insertion point (Fixes the bug where when replacing
17170             the selected text via SelectedRTF the remainder of the line behind 
17171             the selection would stay on the first insertion line)
17172         * TextBoxBase.cs:
17173           - AppendText now updates the selection points after inserting text
17174           - AppendText now ensures that the last tag (sometimes 0-length) of
17175             the document is used for the style information (Fixes part of 
17176             bug #77220)
17177         * TextControl.cs:
17178           - Created new FontDefiniton class to allow describing partial style
17179             changes
17180           - StreamLine() now takes a lines argument, to allow it to decide
17181             whether an encountered zero-length tag is the last in the document
17182             (which must be kept to not loose the font/color contained in it,
17183             for later appends)
17184           - Created Combine() and Split() methods for Marker structs, to 
17185             support marker updates due to reformatted documents (soft line
17186             wraps)
17187           - Implemented Document.CaretTag setter
17188           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
17189             of the last line (Not the cause, but also exposed by bug #77220)
17190           - Added LineTag argument to InsertString method, to allow callers
17191             to force a certain tag to be used (required to force use of the
17192             trailing zero-length tag of a document)
17193           - Now updating markers in Combine(), to avoid stale tag markers
17194           - Added some method descriptions to aid maintenance
17195           - Implemented new FormatText concept, allowing additive/subtractive
17196             formatting by only specifying the components that are to be 
17197             changed. This was needed for resolving the RTB.SelectedColor/
17198             RTB.SelectedFont fixmes
17199           - Added Break() support method to allow breaking up linetags (used
17200             for partial formatting)
17201           - Added GenerateTextFormat() method. It is used for partial 
17202             formatting and allows to generate a full font/color from given
17203             attributes and an existing tag.
17205 2006-02-26  Jackson Harper  <jackson@ximian.com>
17207         * XplatUIX11.cs:  Use the correct caption height.
17208         - Translate hittest coordinates to screen coords to match MS.
17209         * XplatUIWin32.cs: When we create MDI windows we need to reset
17210         some of the style flags, so we get a nice blank window, and can
17211         draw all the decorations ourselves.
17212         - Set a clipping rectangle on the non client paint event, the
17213         window manager drawing code needs one.
17214         * Form.cs: The window manager needs to know when the window state
17215         has been updated.
17216         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
17217         don't need to factor in border and title sizes in these
17218         methods. TODO: Remove the args and fix the call points.
17219         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
17220         properly.
17221         - Let the driver set the cursors.
17222         - Improve active window handling
17223         - Correct sizes for title bars and buttons.
17224         - Match MS drawing better
17225         * MdiWindowManager.cs: We don't need to handle border style
17226         updates specially anymore.
17227         - Check for scrollbars when windows are done moving
17228         - Handle Active properly.
17229         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
17230         correctly. I am spewing the exception though, so we don't hide the
17231         bugs.
17232         
17233 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
17235         * DataGridViewRowPostPaintEventArgs.cs,
17236           DataGridViewCellPaintingEventArgs.cs,
17237           DataGridViewRowCollection.cs,
17238           DataGridViewRowPrePaintEventArgs.cs,
17239           DataGridViewCell.cs: Clear a few warnings and implement a few
17240           exceptions that should be thrown.
17242 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
17244         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
17245           'inheriting' our parent's (non-default) cursor. (Part of
17246            the fix for #77479)
17248 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
17250         * XplatUIX11.cs: Fixed cast to make csc happy
17252 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
17254         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
17255           it's for the client area (part of fix for #77479 and needed
17256           for MDI window cursor handling)
17257         * XplatUIX11.cs
17258           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
17259             the appropriate default cursors and also passing the message
17260             up the parent chain 
17261           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
17262             for non-client areas
17264 2006-02-15  Jackson Harper  <jackson@ximian.com>
17266         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
17267         is a real MDI window
17269 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
17271         * X11DesktopColors.cs: Instead of checking the desktop session
17272           string for "KDE" check if it starts with "KDE"
17274 2006-02-10  Jackson Harper  <jackson@ximian.com>
17276         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
17277         systems).
17279 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
17281         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
17282           errors
17283         * ColorDialog.cs:
17284           - Got rid of the panel. All controls are now directly added to
17285             the dialog form
17286           - Changed to mono coding style
17288 2006-02-10  Jackson Harper  <jackson@ximian.com>
17290         * InternalWindowManager.cs: We don't need the set visibility to
17291         false hack anymore now that peter has written beautiful shutdown
17292         code.
17294 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
17296         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
17297           where already explicitly destroyed
17299 2006-02-10  Jackson Harper  <jackson@ximian.com>
17301         * MdiClient.cs: Handle the case where windows are too high or to
17302         the left and we need scrollbars.
17304 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
17306         * MimeIcon.cs: Added some icons
17307         * FileDialog.cs:
17308           - Fixed bug #77477
17309           - Got rid of the panel. All controls are now directly added to
17310             the dialog form
17311           - Changed to mono coding style
17312           - On Linux "My Computer" and "My Network" will now show some
17313             more usefull information. A new class, MasterMount, gathers
17314             this information from /proc/mount. Updated MWFFileView to make
17315             use of this information
17316           - Fixed a bug that caused FileDialog to crash when
17317             ".recently_used" file had a zero size
17318           - FilterIndex does now what it should
17319           - Some Refactoring
17320         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
17321             FileDialog changes
17323 2006-02-09  Jackson Harper  <jackson@ximian.com>
17325         * ComboBox.cs: Don't touch if null.
17327 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
17329         * Cursor.cs: 64bit safeness fix
17330         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
17332 2006-02-09  Jackson Harper  <jackson@ximian.com>
17334         * Form.cs: If a form is made into an MDI form update the styles so
17335         all the props can get set correctly.
17336         - Kill the mdi_container when we dont need it anymore.
17337         * InternalWindowManager.cs: Add missing NOT
17339 2006-02-08  Jackson Harper  <jackson@ximian.com>
17341         * InternalWindowManager.cs: Respek clipping when drawing MDi
17342         decorations.
17344 2006-02-08  Jackson Harper  <jackson@ximian.com>
17346         * Hwnd.cs: Add bits to track non client expose events.
17347         * XplatUIX11.cs: Track non client expose events on the hwnd. This
17348         gives us a proper invalid rect and will allow for some nice
17349         optimizations with NC client drawing
17350         - MDI windows are children windows, so move their style handling
17351         into the child window block.
17352         * InternalWindowManager.cs: Remove a state reset that was
17353         getting invoked at the wrong time. Fixes managed windows getting
17354         into a 'stuck' captured state.
17356 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
17358         * TextControl.cs (Document.ctor): Now initializing 
17359           selection_anchor. Fixes #77493
17361 2006-02-07  Jackson Harper  <jackson@ximian.com>
17363         * TrackBar.cs: The increment/decrements were backwards.
17365 2006-02-07  Mike Kestner  <mkestner@novell.com>
17367         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
17368         to the instance itself.
17370 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
17372         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
17373           on ulongs and pointers, the size differs between 32bit and 64bit
17374           systems. 
17376 2006-02-07  Mike Kestner  <mkestner@novell.com>
17378         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
17379         for 64 bit platforms to work around a metacity bug. 
17381 2006-02-07  Jackson Harper  <jackson@ximian.com>
17383         * TrackBar.cs: Process the input keys we need, and hookup to
17384         KeyDown instead of using WndProc, so we get key messages.
17386 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
17388         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
17389           machine we're on. 
17390         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
17391           we need to translate the XdndVersion atoms array before sending it
17393 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
17395         * XplatUIX11.cs: 
17396           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
17397             number of bits for the property, not the number of bytes. The
17398             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
17399             but would not crash since it specified 8 bits instead of 4 bits)
17400           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
17401             defined as XID -> long in the C headers)
17402           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
17403             references since those are now IntPtr to begin with
17404           - Switched all Atom.XXX 'int' casts to IntPtr casts
17405           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
17406           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
17407           - Added XChangeActivePointerGrab DllImport (for X11DnD)
17408         * X11Structs.cs:
17409           - Changed 'int' type for Atoms in XEvent structures to IntPtr
17410           - Changed atom in HoverStruct to be IntPtr
17411         * X11DnD.cs:
17412           - Removed local DllImports, switched code to use those from XplatUIX11
17413           - Removed/fixed casts related to the switch of Atom to be a IntPtr
17415 2006-02-06  Mike Kestner  <mkestner@novell.com>
17417         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
17418         method signatures in the import region.  There may still be some
17419         lingering struct marshaling issues, as I didn't drill down into those.
17420         Yet.
17422 2006-02-06  Jackson Harper  <jackson@ximian.com>
17424         * ComboBox.cs: Dont manually set the top_item, this is computed
17425         when the scrollbar position is set.
17427 2006-02-06  Mike Kestner  <mkestner@novell.com>
17429         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
17430         startup crashes on amd64.  There's other fixes needed.  All pinvoke
17431         usage of Atom needs to be mapped to IntPtr for example.  And there are
17432         likely other int/long issues to be addressed.
17434 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
17436         * FileDialog.cs: One more...
17438 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
17440         * FileDialog.cs: Next try
17442 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
17444         * FileDialog.cs: First part of fix for #77464
17446 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
17448         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
17449           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
17450           AcceptButton border drawing.
17452 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
17454         * Form.cs: Moved positioning of form after auto scaling is applied,
17455           otherwise it would possibly use wrong form size.
17457 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
17459         * Control.cs (RecreateHandle): No need to re-create any child
17460           controls, the child windows will get destroyed automatically by
17461           the windowing system or driver, and re-created when the handle
17462           is being accessed the first time. Fixes #77456
17463         * Form.cs: No longer setting the form to closing if the handle is 
17464           being recreated. This seems like the right thing to do, don't
17465           have a bug or testcase for this, though.
17467 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
17469         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
17470           controls to avoid unwanted side effects
17472 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
17474         * Control.cs: 
17475           - ScaleCore needs to scale the bounds, not the ClientSize of the 
17476             control. Fixes #77416.
17477           - DefaultSize is 0,0 for control
17478         * TextBoxBase.cs: 
17479           - DefaultSize is 100, 20
17480           - SetBoundsCore: Now enforcing the height, no matter if the provided
17481             height is more or less than the preferred one, as long as AutoSize
17482             is on
17483         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
17485 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
17487         * Control.cs:
17488           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
17489             call unless both performLayout is true *and* we have a pending
17490             layout change
17491           - ResumeLayout: MS does not completely nest Suspend and Resume,
17492             they bottom out at 0, fixed our code to match that.
17493           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
17494             SetBoundsCore, we were updating even when we shouldn't. This fixes
17495             swf-anchors mis-anchoring when resizing the app fast and lots.
17496           - UpdateDistances: Now only setting the left and top distance if 
17497             we have a parent and are not suspended, this is based on
17498             a suggestion by Don Edvaldson in bug #77355.
17499           - OnVisibleChanged: Fixed logic when to create the control. We may
17500             not create the control if we have no parent or if it's not visible;
17501             switched to using Visible property instead of is_visible field 
17502             since the property also considers parent states. This fixes a bug
17503             when starting Paint.Net
17505 2006-02-02  Jackson Harper  <jackson@ximian.com>
17507         * Form.cs: If the forms handle hasn't been created yet don't call
17508         into xplatui to make it top most, just set the topmost flag on the
17509         form in CreateParams
17510         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
17512 2006-02-01  Jackson Harper  <jackson@ximian.com>
17514         * ScrollableControl.cs: Refactored the Recalculate method a
17515         little, this wasn't handling all the variants of bottom and right
17516         bars needed to be added and added/removed based on their
17517         counterparts being added/removed (which changes the drawable
17518         size). Also we special case client widths and heights of 0 and
17519         don't add the scrollbar for those.
17521 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
17523         * XplatUIX11.cs: 
17524           - Added method to get AbsoluteGeometry(); currently unused, but might
17525             be used in the future, if we try again to figure out toplevel
17526             coordinates with some more crappy window managers
17527           - Added FrameExtents() method to retrieve the WM set decoration size
17528           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
17529             to deal with at least KDE, FVWM and metacity (Fixes #77092)
17530         * Hwnd.cs: 
17531           - Added whacky_wm tracking var for metacity
17532           - Added logic to have default menu height if the actual menu height
17533             has not yet been calculated (part of fix for #77426)
17534         * Form.cs: Keep track whether client size has been set and re-set 
17535           it if a menu is added/removed afterwards (Fixes #77426)
17537 2006-01-31  Jackson Harper  <jackson@ximian.com>
17539         * Control.cs: When a new Site is set on the component attempt to
17540         pull the AmbientProperties from it.
17542 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
17544         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
17545           in the background of the owning form. Fixes #77332
17547 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
17549         * MimeIcon.cs: Fix for #77409
17551 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
17553         * XplatUIX11GTK.cs: Initial import
17555 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
17557         * FixedSizeTextBox: fixes class signature
17559 2006-01-30  Jackson Harper  <jackson@ximian.com>
17561         * FixedSizeTextBox.cs: New internal class that represents a
17562         textBox that will not be scaled.
17563         * TreeView.cs:
17564         * ComboBox.cs:
17565         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
17566         standard TextBox.
17567                 
17568 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
17570         * XplatUIX11.cs: Retrieve default screen number instead of
17571           assuming 0. Attempted fix for #77318
17573 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
17575         * XplatUIWin32.cs: 
17576           - GetWindowPos: When a window is parented by FosterParent, use 
17577             the desktop instead of FosterParent as the base to get coordinates
17578           - CreateWindow: Don't make FosterParent the parent window for Popups
17579             if we don't want a taskbar entry, Popups automatically don't get one
17580         * Hwnd.cs: Need to call remove to actually remove the key from the
17581           hash table
17583 2006-01-30  Mike Kestner  <mkestner@novell.com>
17585         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
17587 2006-01-30  Jackson Harper  <jackson@ximian.com>
17589         * TreeView.cs:
17590         * TreeNode.cs: Raise events no matter how the treenode is
17591         checked. Patch by Don Edvalson.
17593 2006-01-30  Jackson Harper  <jackson@ximian.com>
17595         * TreeNode.cs: Signature fix.
17597 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
17599         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
17601 2006-01-20  Mike Kestner  <mkestner@novell.com>
17603         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
17604         event forwarding when menus are active.
17605         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
17606         Most of the patch is pdb's with a little rework.
17608 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
17610         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
17611           Removed GetMenuDC and ReleaseMenuDC methods; replaced
17612           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
17613         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
17614         * InternalWindowManager.cs: Added use of PaintEventStart/End to
17615           handling of WM_NCPAINT message, now passing the PaintEventArgs to
17616           the PaintWindowDecorations method
17617         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
17618         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
17619         * MenuAPI.cs: Made tracker window invisible
17620         * XplatUIWin32.cs:
17621           - Removed GetMenuDC and ReleaseMenuDC methods
17622           - Implemented the client=false path for PaintEventStart and
17623             PaintEventEnd
17625 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
17627         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
17628         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
17629           styles
17630         * Form.cs: 
17631           - MaximizeBox, MinimizeBox: Recreate the handle when setting
17632             the style
17633           - CreateParams: Reworked the styles to match MS look'n'feel,
17634             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
17635             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
17637 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
17639         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
17640           window is not mapped, since otherwise every form that's being 
17641           created is considered minimized, which is wrong.
17642         * Form.cs: Catching the exception and returning our internal value
17643           instead
17645 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
17647         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
17648           SetWindowMinMax() to have means to tell the driver about the minimum,
17649           maximum and maximized state window sizes. (Part of the fix for #76485)
17650         * Form.cs:
17651           - Implemented tracking of minimum and maximum window size, now calling
17652             new SetWindowMinMax() driver method to tell the driver (Part of the
17653             fix for #76485)
17654           - Finished handling of WM_GETMINMAXINFO method, now setting all values
17655             (Completes fix for #76485)
17656           - Calling new SetWindowMinMax driver method when the handle for a 
17657             form is created, to make sure the driver knows about it even if
17658             the values have been set before the window was created
17659           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
17660             to avoid messing up our anchoring calculations (partial fix
17661             for #77355)
17662         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
17663         * XplatUIX11.cs:
17664           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
17665           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
17666             (and presumably other freedesktop.org compliant WMs). Left the
17667             assumption unmapped=minimized, needed for SetVisible to work.
17668           - Now setting the window state when creating windows
17669           - Fixed SetVisible to consider/set the window state when mapping
17670             a Form. We cannot set the state before it's mapped, and we cannot
17671             use Form.WindowState once it's mapped (since it would ask the
17672             driver and get 'normal'. Therefore, we grab the state before
17673             mapping, map, and then set state.
17674           - Implmemented SetWindowMinMax method; Metacity does not seem to
17675             honor the ZoomHints, though.
17676         * XplatUIWin32.cs:
17677           - Removed MINMAXINFO (moved to XplatUIStructs)
17678           - Added SetWindowMinMax stub (on Win32 the only way to set that
17679             information is in response to the WM_GETMINMAXINFO message, which
17680             is handled in Form.cs)
17681           - Added logic to SetVisible to set the proper window state when a 
17682             form is made visible (fixes #75720)
17684 2006-01-26  Jackson Harper  <jackson@ximian.com>
17686         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
17687         same way we handle them with Invoke.
17689 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
17691         * Form.cs:
17692           - Added tracking of window state so CreateParams can return
17693             the appropriate style
17694           - Moved setting of WS_CAPTION style in CreateParams to allow
17695             styles without caption
17696         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
17697           control if the TextBox property is accessed. Fixes #77345
17698         * Control.cs:
17699           - get_Created: now uses is_disposed and is_created to determine
17700             return value (suggested by Jackson)
17701           - CreateHandle: No longer exits if the handle is being recreated
17702           - RecreateHandle: If the handle is not yet created call the 
17703             appropriate method to create either control or handle. If the
17704             control is already created CreateHandle will simply exit instead
17705             of just creating the handle
17706         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
17707           now SendMessage WM_DESTROY directly to the control when DestroyWindow
17708           is called.
17709         * XplatUIX11.cs: 
17710           - When DestroyWindow is called, instead of waiting for the 
17711             DestroyNotification from X11, we directly post it to the WndProc
17712             and immediately dispose the hwnd object.
17713             Same applies to DestroyChildWindows, and this obsoletes the
17714             expose_pending tracking. Contrary to Win32 behaviour we destroy our
17715             child windows before our own, to avoid X11 errors.
17716           - Removed the direct sending of WM_PAINT on UpdateWindow
17717         * XplatUIWin32.cs:
17718           - Reworked DoEvents and GetMessage to allow access to internal queue
17719             even when trying non-blocking access to the queue.  Fixes #77335. 
17720             Based on a patch suggestion by Don Edvalson. The new private
17721             GetMessage can now also be used as a backend for a PeekMessage
17722             frontend version.
17723         * XplatUI.cs: Improved debug output for CreateWindow
17725 2006-01-25  Jackson Harper  <jackson@ximian.com>
17727         * Help.cs: Allow param to be null. Patch by Don Edvalson.
17729 2006-01-24  Jackson Harper  <jackson@ximian.com>
17731         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
17732         when we have a MaxDropItems lower then the selected index.
17734 2006-01-24  Jackson Harper  <jackson@ximian.com>
17736         * Control.cs: Don't allow selection of non visible controls, allow
17737         selection of controls without parents.
17739 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
17741         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
17742         * DataGridDrawingLogic.cs: Add editing row only when is necessary
17744 2006-01-23  Jackson Harper  <jackson@ximian.com>
17746         * UpDownBase.cs: Make the textbox handle all the selection and
17747         tabbing. This fixes tabing to updown controls.
17749 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
17751         * TextBoxBase.cs: fixes exception thown the object was null
17753 2006-01-23  Jackson Harper  <jackson@ximian.com>
17755         * ButtonBase.cs: Just use the base CreateParams. They set
17756         visibility and enabled correctly.
17757         * ComboBox.cs:
17758         * TrackBar.cs:
17759         * MonthCalendar.cs: Lets let the base set as much of the
17760         createparams as possible so we don't have duplicate code all over
17761         the place.
17763 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
17765         * ThemeGtk.cs: Added TrackBar and some experimental code to
17766           get double buffering back
17768 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
17770         * DataGrid.cs: Allows row number set internally higher than the last
17771         when creating a new row. Restores the editing functionality.
17773 2006-01-20  Mike Kestner  <mkestner@novell.com>
17775         * MimeIcon.cs: delay Image creation until the icons are accessed
17776         instead of creating 190 scaled images on GnomeHandler startup.
17778 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
17780         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
17781           first call base before processing the event. Fixes #77279
17783 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
17785         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
17786           that the stride for the GDI bitmap would match the stride of
17787           a DIB or a Cursor.
17789 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
17791         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
17793 2006-01-19  Jackson Harper  <jackson@ximian.com>
17795         * ComboBox.cs: Hookup the text controls keydown event so we get
17796         those when the text control has the focus.
17798 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
17800         * Label.cs: Now using the base events instead of defining new ones;
17801           this allows us to just call the base properties without having to
17802           duplicate all base property logic 
17804 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
17806         * Label.cs: A label by default is not a tabstop (Fixes one of our
17807           failing nunit tests)
17809 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
17811         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
17812         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
17814 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
17816         * Cursor.cs: Reimplemented creating cursor bitmaps without using
17817           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
17818           This fixes #77218
17819         * XplatUIWin32.cs: 
17820           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
17821             constructor creates images that can't be saved. Part of the fix
17822             for #76103
17823           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
17824           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
17825             bug fix for handling window state in forms properly)
17827 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
17829         * ThemeGtk.cs: Simplify ScrollBar drawing
17831 2006-01-18  Jackson Harper  <jackson@ximian.com>
17833         * Splitter.cs: Set the default dock style for the splitter control
17834         in the constructor.
17836 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
17838         * ThemeGtk.cs: Corrected StateType and ShadowType for
17839           gtk_paint_box
17841 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
17843         * Control.cs: Make use of Theme.DoubleBufferingSupported
17844         * ThemeGtk.cs:
17845           - Added drawing for flat style buttons
17846           - Added ScrollBar drawing
17848 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
17850         * ThemeClearlooks.cs: Removed some unneeded code.
17851         * ThemeGtk.cs: First part of ThemeGtk enhancements.
17853 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
17855         * LinkLabel.cs: We need to update the hover drawing when
17856           leaving the control as well.
17858 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
17860         * DataGrid.cs: Clicking on non empty areas in the columns
17861            area was giving an exception
17863 2006-01-17  Jackson Harper  <jackson@ximian.com>
17865         * ThemeWin32Classic.cs:
17866         * ListView.cs: Do not draw/clip the headers when the header style
17867         is None.
17869 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
17871         * DataGrid.cs: Fixes 77260
17872         
17873 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
17875         * DataGrid.cs: Clicking on a column on a empty grid was giving
17876           an exception
17878 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
17880         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
17881           or any keypress will crash the grid.
17883 2006-01-17  Mike Kestner  <mkestner@novell.com>
17885         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
17886         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
17887         invisible/previously-visible items.
17888         [Fixes #76909]
17890 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
17892         * ThemeClearlooks.cs:
17893         - Added CL_Draw_Button method; now other theme controls that are 
17894           not derived from button or do not have a button can draw buttons
17895           too
17896         - Updated ComboBox drawing
17897         - Beautified RadioButton drawing
17898         - Corrected drawing of bottom and left tabs
17899         - Beautified DateTimePicker and MonthCalendar
17900         - Added CPDrawButton and CPDrawRadioButton
17902 2006-01-16  Jackson Harper  <jackson@ximian.com>
17904         * ComboBox.cs: Set the initial value of the scrollbar to the
17905         current index. Reduce the numbers of refreshs and IndexOfs called.
17907 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
17909         * FileDialog.cs: When the file listview is focused hitting the
17910           backspace key moves the fileview to the parent directory
17912 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
17914         * Form.cs: 
17915           - Added RecreateHandle call when changing taskbar visibility to 
17916             trigger reparenting in Win32 driver (Fixes #75719)
17917           - If a window has minimize or maximize buttons, it cannot have
17918             a help button
17919         * XplatUIWin32.cs:
17920           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
17921             the toplevel form with FosterParent (A toolwindow not on the
17922             taskbar) (Fixes #75719)
17923           - Made FosterParent a toolwindow
17925 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
17927         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
17929 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
17931         * ToolTip.cs: If SetToolTip is called from a control and the mouse
17932           is currently over that control, make sure that tooltip_window.Text
17933           gets updated
17935 2006-01-13  Mike Kestner  <mkestner@novell.com>
17937         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
17939 2006-01-13  Jackson Harper  <jackson@ximian.com>
17941         * TreeView.cs: On MS GetNodeAt never actually factors in the X
17942         value passed.  Also redraw the selected node when we recieve
17943         focus, so tabbing between trees works correctly.
17945 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
17947         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
17948           ~/.gconf/%gconf-tree.xml, so use
17949           .gconf/desktop/gnome/interface/%gconf.xml
17951 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
17953         * TextControl.cs: Draw text in gray if control is disabled
17955 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
17957         * TreeView.cs: Draw the focus rectangle outside the highlight, to
17958           make sure it's always visible. Fixes #76680.
17960 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
17962         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
17964 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
17966         * PageSetupDialog.cs: Added.
17967         * PrintDialog.cs: Attributes.
17968         * PrintPreviewControl.cs: Updates.
17969         * PrintPreviewDialog.cs: Updates.
17970         
17971 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
17973         * Control.cs: Undid my selection check fix, since it's not needed
17974         * TextBoxBase.cs:
17975           - Now considering the presence of hscroll/vscroll when sizing
17976             vscroll/hscroll respectively. Fixed bug #77077
17977           - Added Left/Up/Down/Right to IsInputKey list to prevent
17978             ContainerControl from stealing them. This fixes what I broke
17979             with my last checkin.
17981 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
17983         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
17984           I finally understand how the property can be set without a setter :-)
17986 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
17988         * Application.cs:
17989           - Switched RunLoop to use static Message.Create to create a 
17990             Message object
17991           - Added PreProcessMessage call in runloop for keyboard events; this
17992             is part of the fix for #77219, I overlooked this originally in the
17993             MSDN doc for PreProcessMessage
17994         * Control.cs:
17995           - Removed call to PreProcessMessage from handling of keyboard 
17996             messages; it's supposed to be done in the message pump
17997           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
17998             per MSDN documentation.
17999           - IsInputChar: All chars are input chars by default; removed the 
18000             parent calling chain, MS does not document that
18001           - PreProcessMessage: If IsInputChar is true, we want to return false
18002             to allow dispatching of the message
18003           - When selecting the next control, now also check that we're not
18004             selecting ourselves again and therefore return a false positive.
18005         * TextBoxBase.cs:
18006           - Tried to match return values for IsInputKey and ProcessDialogKey
18007             to what MS returns; moved processing of our special keys outside
18008             ProcessDialogKey since MS does not seem to return true on those.
18009           - Moved code that previously was in ProcessDialogKey into new private
18010             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
18011           - Reworked handling of WM_CHAR to not have to duplicate code from
18012             Control.cs anymore, instead we simply call down to base.
18013            
18014 2006-01-12  Jackson Harper  <jackson@ximian.com>
18016         * ComboBox.cs: We always need to refresh the text area when
18017         EndUpdate is called. Fixes the combobox in the file dialog.
18018         * Control.cs: Don't create the creator_thread until the controls
18019         handle is created.  Also in InvokeRequired we check if the
18020         creator_thread is null. This gives the effect of InvokeRequired
18021         returning true if the controls handle is not created yet, and
18022         matches MS.
18024 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
18026         * XplatUI.cs:
18027           - Added StartLoop() driver method. This is used to allow drivers to
18028             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
18029             loop for a particular thread
18030           - Added EndLoop() driver method. This is called once the message
18031             pump for the thread is shut down
18032           - Added SupportsTransparency method to allow the driver to indicate
18033             opacity support for windows
18034         * Form.cs:
18035           - Removed TODO attribute, completed AllowTransparency property
18036           - Added documented logic to Opacity
18037         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
18038           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
18039           versions of CompatibleTextRendering
18040         * X11Structs.cs: Added opacity atom to our atom enumeration
18041         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
18042           of a form might be set before it's reparented by the WM, and we need
18043           the opacity value without calling up to Form)
18044         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
18045           SupportsTransparency() driver methods
18046         * Application.cs: Now calling StartLoop and EndLoop driver methods
18047         * XplatUIX11.cs:
18048           - Added opacity atom registration
18049           - Added StartLoop()/EndLoop() methods. They're empty right now but
18050             will need to get implemented when we switch to a per-thread queue
18051           - Implemented SupportsTransparency() method
18052           - Implemented SetWindowTransparency() method
18053           - Added support for setting the opacity value when a window is
18054             reparented (since the opacity needs to be set on the WM frame)
18055         * XplatUIOSX.cs, XplatUIWin32.cs:
18056           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
18058 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
18060         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
18062 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
18064         * FileDialog.cs: Added ToolTip for MWFFileView
18065         * MimeIcon.cs: Rewrote GnomeHandler.
18066           - Get currently used gnome icon theme from
18067             ($HOME)/.gconf/%gconf-tree.xml
18068           - Make use of inherited icon themes
18069           - Support SVG icon themes like Tango via librsvg
18071 2006-01-12  Miguel de Icaza  <miguel@novell.com>
18073         Revert's Jackson's revert which broke 2.0 builds.   Fix both
18074         builds. 
18075         
18076         * Application.cs: Move the use_compatible_text_rendering outside
18077         the NET_2_0 define.  If we ever need to use the
18078         use_compatible_text_rendering on the individual controls they will
18079         access the variable from the common shared code paths.
18081 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
18083         * XplatUI.cs:
18084           - Added more granular debug options
18085           - Added method to print both window text and id
18086           - Switched debug output to use new Window() debug method
18087           - Added IsEnabled() driver method
18088           - Added EnableWindow() driver method
18089         * Form.cs:
18090           - Removed end_modal; no longer needed, new loop handles termination
18091             via 'closing' variable
18092           - If form is modal, setting DialogResult will now initiate loop
18093             termination via 'closing' variable
18094           - Added support for is_enabled/WS_DISABLED to CreateParams
18095           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
18096             does all the work
18097           - Removed code that's now in RunLoop from ShowDialog()
18098           - Added various documented sanity checks to ShowDialog()
18099           - Added handling of WM_DESTROY message; we set 'closing' on getting
18100             the message to indicate the message pump to terminate
18101           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
18102             send by the Application.ExitThread method. (We send the message
18103             to destroy the window after all other events have been
18104             processed through the queue, instead of destroying the handle 
18105             directly)
18106           - Moved code from Close() method to WM_CLOSE handler; added logic
18107             to only send close-related events if the form is not displayed
18108             modal
18109         * Splitter.cs (..ctor): Fixed typo in resource name
18110         * Control.cs:
18111           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
18112             brush now
18113           - set_Cursor: Now only setting calling into XplatUI if the handle for
18114             the control is already created; this avoids implict handle creation
18115             or crashes if it's not created
18116           - set_Enabled: Now setting the enabled state via the new driver method
18117             instead of just tracking it
18118           - CreateParams: Added logic to set WS_DISABLED based on enabled state
18119           - CreateControl: Reordered event firing and method calls to more
18120             closely fire events in the order MS does. Now setting the
18121             enabled state in the driver when creating the control.
18122           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
18123             match MS order
18124         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
18125           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
18126         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
18127         * Hwnd.cs:
18128           - Added tracking of window enabled state (get_Enabled/set_Enabled)
18129           - Added EnabledHwnd property to easily allow a driver to find the
18130             handle of the first enabled window in the parent chain (this is
18131             used by drivers to pass up input events of disabled windows)
18132         * XplatUIDriver.cs: Added IsEnabled() method
18133         * Application.cs:
18134           - Removed crude and obsolete exiting tracking variable
18135           - Removed internal ModalRun(); replaced by RunLoop()
18136           - Implemented private CloseForms() method to allow closing all 
18137             windows owned by a particular (or all) threads
18138           - Exit() now properly closes all windows without forcing the message
18139             pump to quit
18140           - Removed obsolete InternalExit() method
18141           - Changed Run() methods to use new RunLoop() message pump
18142           - Implemented new RunLoop() method for both modal and non-modal forms
18143         * CommonDialog.cs:
18144           - get_CreateParams: Added setting of WS_DISABLED
18145           - Simplified ShowDialog(); now all the work is done in RunLoop(),
18146             invoked via Form.ShowDialog()
18147         * NativeWindow.cs: We don't remove the window from the collection when
18148           the handle is destroyed; there might still be messages for it in the
18149           queue (mainly the resulting WM_DESTROY); instead it will be removed
18150           when Control calls InvalidateHandle in the WM_DESTROY handler
18151         * XplatUIX11.cs:
18152           - CreateWindow: Added logic to handle the WS_DISABLED window style
18153           - EnableWindow: Implemented based on Hwnd.Enabled
18154           - GetMessage: Reset PostQuitState so the method can be called again
18155           - Implemented support for disabled windows (passing messages to the
18156             first enabled parent) in handling all input messages
18157           - Added optimizations for handling Expose events
18158           - Implemeted new driver method IsEnabled()
18159           - Now always resetting paint pending tracking vars when we start paint
18160           - Re-implemented UpdateWindow via just sending a WM_PAINT message
18161         * XplatUIOSX.cs: Added IsEnabled method stub
18162         * XplatUIWin32.cs: Implemented new IsEnabled() method
18164 2006-01-11  Jackson Harper  <jackson@ximian.com>
18166         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
18167         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
18168         variables a little.
18169         * ColorDialog.cs: Clear out the old form before adding the new
18170         panel.  
18172 2006-01-11  Jackson Harper  <jackson@ximian.com>
18174         * X11Dnd.cs: Make sure to add all the text formats when adding
18175         strings to the data object.
18176         * TreeNodeCollection.cs: When adding to a sorted tree we need to
18177         do some redrawing too.  Also change the UpdateNode to an
18178         UpdateBelow so the newly added node gets painted.
18179         
18180 2006-01-11  Miguel de Icaza  <miguel@novell.com>
18182         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
18183         LinkLabel.cs, PropertyGrid.cs: Implement the
18184         UseCompatibleTextRendering property for 2.x
18186         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
18188 2006-01-11  Jackson Harper  <jackson@ximian.com>
18190         * TreeView.cs: Use the property for setting the selected node so
18191         the correct events get raised.
18192         * TreeNode.cs: Update the tree when the fore/back colours of a
18193         node are set.
18195 2006-01-10  Jackson Harper  <jackson@ximian.com>
18197         * TreeView.cs: Allow setting SelectedNode to null.
18199 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18201         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
18203 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18205         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
18207 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18209         * PrintDialog.cs: Added attributes and set default property values.
18211 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18213         * PrintControllerWithStatusDialog.cs: 
18214         Added PrintControllerWithStatusDialog.
18216 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18218         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
18219         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
18221 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18223         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
18225 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
18227         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
18228         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
18230 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
18232         * MimeIcon.cs: Added internal class SVGUtil.
18234 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
18236         * FileDialog.cs: Don't crash if there are two files with the
18237           same name but different locations.
18239 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
18241         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
18242         dates across multiple month grids. Used to not highlight entire 
18243         month, but does now.
18244         
18245 2006-01-06  Jackson Harper  <jackson@ximian.com>
18247         * MonthCalendar.cs: Removed DoEvents call to prevent a running
18248         message loop. Change timer intervals to numbers that seem more
18249         natural.
18251 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
18253         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
18254           object for location info since screen object is now implemented.
18256 2006-01-05  Jackson Harper  <jackson@ximian.com>
18258         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
18259         * AsyncMethodResult.cs: We no longer use a WeakReference for the
18260         AsyncMethodResult, this is because we ALWAYS want the
18261         ManualResetEvent to get set.
18262         * Control.cs: When disposing use an async invoke to call shutdown
18263         code, so that thigns don't block on the finalizer thread.  Also
18264         check if we even have a message loop before trying to send
18265         messages, if we don't then don't bother sending messages.
18266         - No more weak references for async methods
18267         * XplatUIDriver.cs: No more weak references for async methods.
18269 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18271         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
18272           returns two FontFamily with the same name
18274 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
18276         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
18277           drawing disabled text. Instead using the ColorGrayText color
18279 2006-01-04  Jackson Harper  <jackson@ximian.com>
18281         * TreeNode.cs: redraw the node when its image index is changed.
18283 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
18285         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
18286           time I checked there are no others like it.
18288 2006-01-04  Jackson Harper  <jackson@ximian.com>
18290         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
18291         this gives the behavoir I was looking for.
18292         * Control.cs: Special case Invoking EventHandlers, this matches MS
18293         and fixes part of bug #76326.
18295 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18297         * ThemeClearlooks.cs, FileDialog.cs:
18298           - Reflect the latest Theme class changes
18299           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
18300             with DateTime
18301             
18302 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18304         * Theme.cs: Cache UI resource images and resize them if needed
18306 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
18308         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
18309           is called. This fixes the crash in Nexxia when setting the font
18310           attributes in the chat. [However, RTF needs a look-over to make sure
18311           that all SelectionXXX methods handle the special case that selection
18312           is empty and therefore the change must be applied to all text starting
18313           at the cursor/selection start]
18315 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
18317         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
18318           XplatUIOSX.cs: Added SendMessage and PostMessage methods
18319         * X11Keyboard.cs: Switched to new way of calling PostMessage
18321 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
18323         * Theme.cs: Added theme interface for images to allow the theme to
18324           control what images are used for things like FileDialog, MessageBox
18325           icons, etc.
18326         * MessageBox.cs: Now uses the new Theme icon/image interfaces
18328 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
18330         * FileDialog.cs:
18331           - Removed some dead code
18332           - Opening a recently used file does work now
18333           - Small UI enhancements
18334           - Refactoring
18336 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
18338         * FileDialog.cs: Forgot too add __MonoCS__
18340 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
18342         * FileDialog.cs: We are able to read recently used files now let's
18343           go on and write them.
18345 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
18347         * FileDialog.cs: Breathe some life into "last open"/"recently used"
18348           button
18349         * MimeIcon.cs: Do a check for the top level media type also
18351 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
18353         * ThemeClearlooks.cs:
18354           - Added CPDrawStringDisabled
18355           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
18356             some chars if the text doesn't fit into text_rect
18357           - DrawListViewItem: If View = View.LargeIcon center the image;
18358             rewrote the drawing of ListViewItem.Text if View = 
18359             View.LargeIcon
18361 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
18363         * MimeIcon.cs: Use default KDE icon theme if there is no
18364           "48x48" directory for the current icon theme, fixes #77114
18365         * Mime.cs: Disable not working and actually not used code. 
18366         * ThemeWin32Classic.cs:
18367           - Replace "new SolidBrush" in GetControlBackBrush and
18368             GetControlForeBrush with ResPool.GetSolidBrush
18369           - Changed DrawListViewItem from private to protected virtual
18370         * FileDialog.cs:
18371           - Added form.MaximizeBox = true
18372           - Don't throw an exception if there is a broken symbolic link
18374 2005-12-23  Jackson Harper  <jackson@ximian.com>
18376         * TabControl.cs: Give the panels focus, keyboard navigation is
18377         fixed so this works correctly now.
18378         - We need these key events also.
18379         * ToolBar.cs: Remove some of the poor mans double buffering.
18380         
18381 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
18383         * ComboBox.cs: The internal TextBox now returns the focus.
18385 2005-12-23  Jackson Harper  <jackson@ximian.com>
18387         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
18389 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
18391         * Control.cs: Removed debug code
18392         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
18393           implicit children
18395 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
18397         * Control.cs: When creating the control, update the Z-order after
18398           all it's children are created, too. (Fixes nexxia not showing
18399           picturebox bug)
18401 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
18403         * Control.cs: Do not update the anchoring distances if layout is
18404           suspended, instead do it once layout is resumed
18406 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
18408         * Control.cs: 
18409           - After many hours of debugging, for both Jackson and
18410             myself, it turns out that it helps to set the parent of a control
18411             if you want to actually see it onscreen. In the spirit of that
18412             discovery, we're now setting the parent of the control and
18413             it's children when the control's handle is created. This fix
18414             will make Lutz Roeder's Reflector run happily. 
18415           - now just creating the handle instead of the whole control when
18416             getting a graphics context for the control.
18418 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
18420         * ScrollableControl.cs: When calculating the canvas, don't consider
18421           the scrollbar widths. Instead, predict if horizontal scrollbar
18422           will affect canvas when deciding on vertical display and vice versa.
18424 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
18426         * RichTextBox.cs: Set default RTF font for documents that don't
18427           have a font table (Fixes #77076)
18429 2005-12-22  Jackson Harper  <jackson@ximian.com>
18431         * TextBoxBase.cs: It's difficult to do, but you can have an empty
18432         clipboard. This prevents a NullRef in that case.
18433         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
18434         clipboard. PRIMARY is for the currently selected text only. (We
18435         should implement PRIMARY at some point.
18437 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
18439         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
18440           a Unicode function with a structure that was defined in Ansi way.
18441           This fixes #76942.
18443 2005-12-21  Jackson Harper  <jackson@ximian.com>
18445         * StatusBar.cs: Statusbar handles its fore/back colours on it's
18446         on. Because thats how it rolls. (and this avoids it using ambient
18447         colours).
18448         * ThemeWin32Classic.cs: Use the proper back color for filling.
18449         * Menu.cs: Use the system menu bar color for drawing menu
18450         bars. Using the window back color will bring ambient colours into
18451         the picture.
18453 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
18455         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
18456           Bitmaps were created and not disposed.
18458 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
18460         * Control.cs (CreateControl): Don't do anything if the control is
18461           already created, otherwise we'd fire the OnCreated event more than
18462           once
18464 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
18466         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
18467           will always match. Instead return -1. Fixes #76464.
18469 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
18471         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
18472           neither the beginning nor the end of the line (Fixes bug #76479)
18474 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
18476         * Control.cs:
18477           - ControlNativeWindow.ControlFromHandle(): Now handling situation
18478             where handle is invalid
18479           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
18480             instead of slower linear search
18481         * NativeWindow.cs: Don't remove the window from the hashtable until
18482           after the driver has destroyed it (since the driver might use
18483           Control.FromHandle to lookup the control object
18484         * Hwnd.cs: Added DestroyPending property to track if a window is 
18485           already destroyed as far as the driver is concerned and only hasn't
18486           yet notified the control
18487         * XplatUIX11.cs:
18488           - Activate(): Check if the window is still valid before using the 
18489             handle
18490           - Implemented DestroyChildWindow() method to mark child windows as
18491             destroyed when a window is destroyed. This prevents situations 
18492             where we might call an X method based on queued events for a
18493             window that already has been destroyed but we haven't yet pulled
18494             the destroy method from the queue.
18495           - Added a call to the new DestroyChildWindow() method to the drivers
18496             DestroyWindow code. Also now marking the destroyed window itself
18497             as pending
18499 2005-12-20  Jackson Harper  <jackson@ximian.com>
18501         * StatusBar.cs:
18502         * StatusBarPanel.cs: Don't calculate panel sizes on draw
18503         anymore. Just do them when needed, also track the rects of panels
18504         so that we can optimize refreshing more in the future.
18506 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
18508         * ColorDialog.cs: Fixed focus drawing in small color controls
18510 2005-12-19  Jackson Harper  <jackson@ximian.com>
18512         * InternalWindowManager.cs:
18513         * MdiWindowManager.cs: Cleanup some coordinate system changes so
18514         moving windows works properly.
18516 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
18518         * Control.cs: 
18519           - Removed call to InitLayout() from SetBoundsCore(); doc says
18520             it's only called when a control is added to a container
18521           - Split InitLayout logic, moved to separate UpdateDistances() method
18522             since we need to perform those calculations more often than just
18523             when adding the control to a container. (Needed to fix #77022)
18524           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
18525           - Reduced the OnBindingContextChanged events count, don't send them
18526             unless the control is created, we still aren't totally matching
18527             MS, but I can't quite figure out some of their rules
18529 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
18531         * ThemeClearlooks.cs: Corrected distance between ProgressBar
18532           stripes
18534 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
18536         * ThemeClearlooks.cs:
18537           - Updated ProgressBar drawing
18538           - Corrected drawing of ScrollBars and scroll buttons
18539           - Some temporary fixes for minor pixel artefacts
18541 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
18543         * Control.cs:
18544           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
18545             cause events to be sent in the same order as MS does.
18546           - Added ChangeParent() method to trigger various OnXXXChanged events
18547             that need to be fired when a parent changes (This is a reworking
18548             of the patch from r54254, with the X11 errors fixed)
18549           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
18550             since on MS we get OnLayoutChanged events when calling Clear()
18551           - Changed Enabled property to consider parent state as well, if a
18552             parent is not enabled, the control will not be either
18553           - Changed Parent property to simply call Controls.Add() since that
18554             now does all the work required, this way we avoid code duplication
18555           - Threw in a few OnBindingsContextChanged calls to try and match
18556             when MS sends them. We seem to send a few too many, though.
18557           - Added call to CreateControl when adding the control to a parent.
18558             We were never calling CreateControl. Still needs some work, in
18559             some places we treat HandleCreated and ControlCreated as equal, 
18560             which is wrong
18561           - Removed obsolete commented out code from UpdateZOrder()
18563 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
18565         * ThemeClearlooks.cs: Updated TrackBar drawing.
18567 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
18569         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
18571 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
18573         * FileDialog.cs: Add the Help button and the open readonly
18574           checkbox only if needed
18576 2005-12-16  Jackson Harper  <jackson@ximian.com>
18578         * Control.cs: Make sure we have an active menu before trying to
18579         process commands on it. Prevents menu-less forms from crashing
18580         when Alt is pressed.
18581         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
18582         Dieter Bremes.
18583         * RichTextBox.cs: Expand statement to help out gmcs and fix the
18584         2.0 build.
18586 2005-12-16  Jackson Harper  <jackson@ximian.com>
18588         * InternalWindowManager.cs: Don't translate tool windows screen
18589         coordinates. This fixes windows 'bouncing' around when being moved.
18591 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
18593         * TextBoxBase.cs:
18594           - MaxLength now treats 2^31-1 equal to unlimited length (this is
18595             not quite MS compatible, MS uses that number only for single line
18596             and 2^32-1 for multi-line, but I figure it won't hurt keeping
18597             the limit at 2GB)
18598           - Now enforcing the MaxLength limit when entering characters
18599           - Added argument to internal Paste() method to track if it's called
18600             from programatically or via keyboard, since keyboard driven pastes
18601             need to enforce max-length
18602           - Added logic to Paste to only paste as many chars as MaxLength 
18603             allows
18604         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
18605         * TextControl.cs:
18606           - Added Length property to return number of characters in document
18607           - Added private CharCount property which only tracks actual chars
18608             in the document (no linefeeds) and fires event when CharCount
18609             changes
18610           - Added tracking of character count to all methods that alter it
18611           - Added LengthChanged event to allow applications to subscribe
18612             to any changes to the document
18614 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
18616         * TextBox.cs: 
18617           - Removed local password_char field (moved to TextBoxBase)
18618           - Now setting the document's password var when password is
18619             set
18620         * TextBoxBase.cs:
18621           - Added password_char field (needed here so MultiLine can
18622             access it)
18623           - Added logic to MultiLine property setter to set the document's
18624             variable when password display is allowed
18625           - Removed debug code and made some debug code conditional
18626         * TextControl.cs:
18627           - Added RecalculatePasswordLine() method to handle special password
18628             char only lines
18629           - Added PasswordChar property, also added related tracking vars
18630           - Draw() method now uses local text var for grabbing text to draw,
18631             this var is set to line.text unless we're doing password display,
18632             then it is set to the pre-generated all-password-chars line
18633           - Added calling RecalculatePasswordLine() method for password lines
18635 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
18637         * Hwnd.cs: 
18638           - Added Reparented property to allow tracking of Window Manager
18639             reparenting actions (which affect X/Y calculations of toplevel 
18640             windows)
18641           - Made ToString() print window handles in hex
18642         * XplatUIX11.cs:
18643           - AddConfigureNotify(): Now uses reparented state off Hwnd to
18644             determine if X/Y needs offsetting
18645           - AddConfigureNotify(): Fixed offset calculations
18646           - Now adds ReparentNotify messages into the queue
18647           - Now processes ReparentNotify messages and causes a 
18648             WM_WINDOWPOSCHANGED message to be sent upstream if a window
18649             is reparented (as most likely it's X/Y coordinates are changed
18650             due to that)
18652 2005-12-14  Jackson Harper  <jackson@ximian.com>
18654         * XplatUIX11.cs: Tool windows still need to respek focus.
18656 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
18658         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
18659           have a working release
18661 2005-12-13  Jackson Harper  <jackson@ximian.com>
18663         * Form.cs: Update styles after setting the border style regardless
18664         of whether or not the window is using a window manager.
18666 2005-12-13  Jackson Harper  <jackson@ximian.com>
18668         * Form.cs: We now hook into an internal window manager instead of just an
18669         MDI subsystem, this is so we can have properly behaving tool windows.
18670         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
18671         * InternalWindowManager.cs: New internal class that acts as a
18672         window manager for tool windows and as a base for mdi windows.
18673         * MdiWindowManager.cs: New class that acts as a window manager for
18674         mdi windows.
18676 2005-12-12  Jackson Harper  <jackson@ximian.com>
18678         * Control.cs: Updates so we match behavoir for for implicit
18679         controls. Fixes explosions in MDI.
18681 2005-12-12  Jackson Harper  <jackson@ximian.com>
18683         * Control.cs: Implement Invalidate (Region).
18685 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
18687         * Control.cs: 
18688           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
18689             the same events as MS does. MS fires events for each property 
18690             except, for unknown reasons, Cursor, when the control is reparented. 
18691             I can't seem to totally match add/remove since MS also fires some 
18692             VisibleChanged events, which makes no sense. Consolidated the
18693             parenting code into a separate method so it can be called from
18694             both Add and Remove. set_Parent no longer needs any special logic
18695             as it calls the parent's add method which implicitly fires
18696             all events
18697           - Removed some obsolete code and debug output
18698           - Enabled state is inherited from parents, if this is enabled
18700 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
18702         * Form.cs: Removed commented out code
18704 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
18706         * Control.cs:
18707           - Added internal version of Invoke, with additional argument 
18708             indicating if we're calling it from a Dispose() handler. That
18709             way we can avoid BeginInvoke throwing an exception if we're
18710             calling for an already destroyed window.
18711           - Added a dispose argument to BeginInvokeInternal, and made the
18712             check if a valid window handle chain exists conditional on
18713             it not being a dispose call
18714           - Removed code in DestroyHandle to destroy our children. Since we
18715             now handle the WM_DESTROY message we will catch all our children
18716             being destroyed.
18717           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
18718         * Form.cs:
18719           - Added a field to track the application context of the form.
18720           - No need to set closing variable as response to WM_CLOSE, instead
18721             we destroy the window. We also call PostQuitMessage if the form
18722             has an application context (which makes it the main app form,
18723             which, when closed terminates the app)
18724         * XplatUI.cs:
18725           - Dropped Exit() method, it's naming was confusing
18726           - Added PostQuitMessage() which causes GetMessage to return false
18727             once the message queue is empty
18728         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
18729           PostQuitMessage()
18730         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
18731           no longer a valid XplatUI method, but left it in since it's used
18732           internally. Added empty PostQuitMessage() method.
18733         * MenuAPI.cs: Replaced call to Exit() with call to
18734           PostQuitMessage, even though this is probably no longer needed.
18735         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
18736         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
18737         * Application.cs:
18738           - Replaced call to XplatUI.Exit() with PostQuitMessage()
18739           - Removed old debug code that would call XplatUI for exception
18740             display, enabled standard exception handling (Still not enabled
18741             though, until NativeWindow's ExternalExceptionHandler define
18742             is removed
18743         * NativeWindow.cs:
18744           - Added internal method to allow control to update NativeWindow
18745             after a window has been destroyed
18746           - Added handling of already destroyed windows when calling i
18747             DestroyWindow
18748           - Added removal of handle from list on ReleaseHandle
18749         * XplatUIX11.cs:
18750           - Dropped GetMessageResult var and related code
18751           - Added PostQuitState to field to track if PostQuitMessage has been
18752             called
18753           - Dropped Exit() method
18754           - Added PostQuitMessage() method
18755           - GetMessage now will return false if PostQuitState is set and no
18756             more messages are in the queue.
18757           - Expose handler will no longer generate WM_PAINT messages if we are
18758             in PostQuitState since it's very likely any windows have already
18759             been destroyed, and since Hwnd won't get updated until we have
18760             processed the DestroyNotify we'd be causing X errors.
18761         
18762 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
18764         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
18765           Thanks to Mike for pointing out the err of my ways.
18767 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
18769         * Control.cs(PreProcessMessage): Moved menu handling back, but
18770           after all other key handling, to match MS (who handles Menu in
18771           DefWndProc)
18772         * Menu.cs (WndProc): Removed my brainfart
18774 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
18776         * Control.cs(PreProcessMessage): Removed special menu handling 
18777         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
18779 2005-12-07  Mike Kestner  <mkestner@novell.com>
18781         * Control.cs : special case SYSKEYUP so that we can adjust keynav
18782         state according in tracker.
18783         * Menu.cs : promote tracker field to base class and provide a tracker
18784         lookup capability.  Add/Remove shortcuts dynamically if the top menu
18785         has a tracker. Unparent items that are removed from the collection.
18786         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
18787         * Theme*.cs: add always_show_hotkeys field to support configurability
18788         of mnemonic display.  win32 doesn't show mnemonics until Alt is
18789         pressed.
18791 2005-12-07  Jackson Harper  <jackson@ximian.com>
18793         * MdiChildContext.cs: Use Control.ResetCursor.
18794         * Control.cs: ResetCursor needs to set the property so that the
18795         correct XplatUI call gets made.
18797 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
18799         * Control.cs: More fixes to make our key events match MS. We
18800           were not setting the modifier state on KeyData, and we were
18801           not generating any events when Alt was pressed with a key
18802           since handling of WM_SYSxxx was missing for the OnKey methods.
18804 2005-12-07  Jackson Harper  <jackson@ximian.com>
18806         * MdiChildContext.cs: reenable the sizing code.
18807         - When the mouse leaves a window reset its cursor.
18809 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
18811         * ThemeClearlooks.cs: Reflect latest Hwnd changes
18813 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
18815         * Hwnd.cs: Now using the theme 3d bordersize to calculate
18816           widths of Fixed3D borders
18818 2005-12-07  Jackson Harper  <jackson@ximian.com>
18820         * MdiClient.cs: Fix warnings. Earn Mike's love.
18822 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
18824         * ThemeClearlooks.cs:
18825           - Adjusted mouse over button color
18826           - Added first parts of CheckBox drawing
18827           - Added correct color for selected text background
18828           - Fixed ComboBox drawing
18829           - Added CPDrawBorder3D and CPDrawBorder
18831 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
18833         * XplatUIX11.cs: Added call to XBell for AudibleAlert
18835 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
18837         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
18838           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
18839           alert users via sound. We could add an enum arg with different
18840           types of alerts in the future
18842 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
18844         * Control.cs: Fix behaviour problems pointed out by Mike
18846 2005-12-05  Mike Kestner  <mkestner@novell.com>
18848         * StatusBarPanel.cs: add Invalidate method and hook it into all the
18849         prop setters.  Calls parent.Refresh for now, but could be maybe be
18850         optimized with an internal method on StatusBar at some point.
18851         [Fixes #76513]
18853 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
18855         * RichTextBox.cs: Implemented get_SelectionColor
18857 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
18859         * ThemeClearlooks.cs:
18860           - Removed dead code
18861           - Draw black button border only if button is Form.AcceptButton
18862           - Draw correct button color for pressed RadioButton if the mouse 
18863             has entered the button
18864           - Updated ProgressBar drawing!
18865           - Updated CPDrawSizeGrip drawing
18866           - Updated StatusBarPanel drawing
18868 2005-12-05  Mike Kestner  <mkestner@novell.com>
18870         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
18871         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
18873 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
18875         * ThemeClearlooks.cs: Initial check-in, activate with
18876           export MONO_THEME=clearlooks
18877         * ThemeEngine.cs: Added ThemeClearlooks
18879 2005-12-03  Mike Kestner  <mkestner@novell.com>
18881         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
18882         [Fixes #76897]
18884 2005-12-02  Jackson Harper  <jackson@ximian.com>
18886         * Form.cs: If the child form has no menu the default main menu is
18887         used as the active menu.
18889 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
18891         * ListBox.cs: Check if any items exist before trying to resolve 
18892           coordinates into items
18894 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
18896         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
18897           as the second color for the background hatch
18899 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
18901         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
18902         * RichTextBox.cs: FormatText position arguments are 1-based, now making
18903           sure that what we pass to FormatText is always 1-based. Fixes #76885
18905 2005-11-29  Miguel de Icaza  <miguel@novell.com>
18907         * NumericUpDown.cs (EndInit): When we are done initializing,
18908         reflect any updates on the UI.
18910 2005-12-02  Jackson Harper  <jackson@ximian.com>
18912         * ImplicitHScrollBar.cs:
18913         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
18914         their container controls.
18915         * TreeView.cs: Use the new implicit scrollbars.
18917 2005-12-02  Jackson Harper  <jackson@ximian.com>
18919         * TreeView.cs: Make top_node internal so the TreeNodeCollections
18920         can play with it.
18921         * TreeNodeCollection.cs: If we remove the topnode we need to
18922         update topnode to the next node in line.
18923         - When clearing nodes go through the same process as removing
18924         them, so they get depareneted and checked if they are top node.
18926 2005-12-01  Jackson Harper  <jackson@ximian.com>
18928         * TreeView.cs: When imagelists are used the image area is
18929         selectable as well as the text.
18930         - If there are no selected nodes select the first one.
18931         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
18932         so don't do it more then we need to.
18934 2005-12-01  Jackson Harper  <jackson@ximian.com>
18936         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
18937         that arrows can be scaled.
18939 2005-12-01  Jackson Harper  <jackson@ximian.com>
18941         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
18942         fail. Patch by Dieter Bremes
18944 2005-11-30  Jackson Harper  <jackson@ximian.com>
18946         * Form.cs: Property is 2.0 only
18947         * PrintDialog.cs: Signature fix.
18949 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
18951         * TextControl.cs: 
18952           - No longer artificially moves text 2 pixels down (now that we have
18953             borders this is no longer needed)
18954           - Added calcs for left, hanging and right indent
18956 2005-11-23  Mike Kestner  <mkestner@novell.com>
18958         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
18960 2005-11-30  Jackson Harper  <jackson@ximian.com>
18962         * MdiChildContext.cs: Set the cloned menus forms, as these don't
18963         get cloned as part of CloneMenu ().
18964         * Menu.cs: Make sure the parent of the items get set correctly
18965         when they are added.  And the owners are notified of the changes.
18966         * Form.cs: Create an ActiveMenu property, so that when MDI is used
18967         we can change the menu being displayed/handled by the form without
18968         changing the menu assosciated with the form.
18969         - Don't let Mdi children draw/handle menus.
18970         
18971 2005-11-30  Jackson Harper  <jackson@ximian.com>
18973         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
18974         a MenuChanged event. Just to make the API a little more
18975         consistent.
18976         * MainMenu.cs:
18977         * MenuItem.cs: Use the new OnMenuChanged
18978         * MdiChildContext.cs: Handle menu merging.
18979         * Form.cs: Implement MergedMenu.
18980         
18981 2005-11-30  Jackson Harper  <jackson@ximian.com>
18983         * Menu.cs: We were misusing Add. Add goes behind the specified
18984         index according to the docs, and does not replace the specified
18985         index. So I added an Insert method.
18987 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
18989         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
18990           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
18991           is for Jackson
18992         * RichTextBox.cs: Added calls to base for DnD events
18994 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
18996         * TextControl.cs:
18997           - Fixed drag-selection related crash; style fixes
18998           - Implemented undo class
18999             o Implemented method to capture document state for specified
19000               range in document tree
19001             o Implemented method to restore captured document state
19002             o Implemented cursor tracking
19003             o Implemented basic undo stack
19004           - Added undo cursor tracking to methods altering cursor location
19005           - Added undo tracking to selection deletion (still missing
19006             other text-altering hookups)
19007         * RichTextBox.cs:
19008           - Added SelectionLength property
19009           - Implemented CanPaste()
19010           - Implemented Paste()
19011           - Added missing protected methods
19012           - Fixed RTF->Document conversion; now uses font index 0 and color 
19013             index 0 as the default font for the parsed text
19014           - Fixed RTF<->Document font size translation
19015           - Fixed RTF generation, now properly handles cross-tag boundaries
19016             for single line selection
19017           - No longer always appends blank line to generated RTF
19018           - Removed TODOs
19019           - Added missing attributes
19020           - Hooked up undo-related methods
19021         * TextBoxBase.cs:
19022           - Implemented Copy()
19023           - Implemented Paste()
19024           - Implemented Cut()
19025           - Fixed caret mis-behaviour on backspace across line-boundaries
19027 2005-11-29  Jackson Harper  <jackson@ximian.com>
19029         * MdiClient.cs: Add a method for activating mdi children. Very
19030         basic right now. I imagine someday it might need more girth.
19031         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
19032         children windows names are added to the menu item.
19033         * ThemeWin32Classic.cs: Draw the arrow if the item is an
19034         mdilist. This happens regardless of whether or not there are any
19035         mdi windows to see in the list, and according to my tests happens
19036         before the items are even added. Also happens if there isn't even
19037         an mdi client to get windows from.
19039 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
19041         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
19042         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
19044 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
19046         * DataGridTableStyle.cs:
19047           - Create always the styles for the missing columns even if they are
19048             provided by the user (not default table style)
19049         * DataGrid.cs:
19050           - Fixes bug 76770
19051           - Fixes SetDataBinding (always re-attach source)
19052           - Fixes SetNewDataSource (only clear styles if they are not for 
19053             this source)
19054          -  Expands OnTableStylesCollectionChanged to handle style refresh 
19055             and remove properly
19057 2005-11-29  Jackson Harper  <jackson@ximian.com>
19059         * FileDialog.cs: Implement missing bits, remove some dead
19060         code.
19061         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
19062         creation of the panel so that the options set on the dialog are
19063         seen when the panel is created.
19064         * TreeView.cs: raise a click when items are clicked.
19065         
19066 2005-11-29  Jackson Harper  <jackson@ximian.com>
19068         * MdiClient.cs: Pass some signature methods through to base.
19070 2005-11-28  Jackson Harper  <jackson@ximian.com>
19072         * ListView.cs: Raise the click event when items are clicked.
19074 2005-11-28  Jackson Harper  <jackson@ximian.com>
19076         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
19077         a nullref.
19079 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
19081         * ThemeNice.cs: - Removed 1 pixel bitmaps
19082           - Use SmoothingMode.AntiAlias where it makes sense
19083             (ScrollButton arrow for example)
19084           - Enhanced Button focus drawing
19085           - Fixed ComboBox drawing (no artefacts anymore, focus
19086             rectangle is back again, reduced size of ComboButton, etc.)
19087           - Fixed RadioButton focus drawing for Appearence.Button
19088           - Slight ScrollButton redesign
19089           - Some LinearGradientBrush size fixes
19090           - GroupBoxes have now rounded edges
19091           - Fixed StatusBar drawing
19093 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
19095         * ThemeNice.cs: - Remove dead code
19096           - use correct background colors for menus, etc.
19097           - Fake pixel drawing with 1 pixel bitmaps
19099 2005-11-24  Jackson Harper  <jackson@ximian.com>
19101         * MdiClient.cs: Size the scrollbars when resizing the window.
19102         - Resize the maximized windows when the client is resized
19103         * Form.cs: Make the child context available
19104         
19105 2005-11-23  Jackson Harper  <jackson@ximian.com>
19107         * MdiChildContext.cs: Don't size windows if they are maximized.
19109 2005-11-23  Mike Kestner  <mkestner@novell.com>
19111         * ContextMenu.cs: use MenuTracker.
19112         * Control.cs: remove menu handle usage.
19113         * Form.cs: remove menu handle usage.
19114         * Hwnd.cs: remove menu handle usage.
19115         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
19116         motion and clicks to the new Tracker handlers.
19117         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
19118         and handle usage.
19119         * MenuAPI.cs: refactored to combine popup and menubar event handling.
19120         Killed the MENU and MENUITEM data types and associated collections
19121         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
19122         MenuTracker class that exposes the leftovers from the old MenuAPI
19123         static methods. Restructured Capture handling so that only one grab is
19124         done for the entire menu hierarchy instead of handing off grabs to
19125         submenus. Tracker now has an invisible control to Capture when active.
19126         * MenuItem.cs: add sizing accessors, kill Create
19127         and handle usage.
19128         * Theme.cs: remove menu handle and MENU(ITEM) usage.
19129         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
19130         MENU(ITEM). remove menu handle usage, use Menu directly.
19131         * XplatUIDriver.cs: remove menu handle usage.
19132         * XplatUIOSX.cs: remove menu handle usage.
19133         * XplatUIWin32.cs: remove menu handle usage.
19134         * XplatUIX11.cs: remove menu handle usage.
19136 2005-11-22  Jackson Harper  <jackson@ximian.com>
19138         * Hwnd.cs: Don't compute the menu size for
19139         DefaultClientRectangle.
19140         - Reenable menu sizes being computed for GetClienRectangle.
19141         * Form.cs: Remove comment of trechery
19142         
19143 2005-11-22  Jackson Harper  <jackson@ximian.com>
19145         * Hwnd.cs: The adjustments for the menu bar are made when it is
19146         attached to the form.
19148 2005-11-19  Jackson Harper  <jackson@ximian.com>
19150         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
19151         (just like on windows).
19153 2005-11-19  Jackson Harper  <jackson@ximian.com>
19155         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
19156         use real buttons anymore because they are in non client area. The
19157         one TODO here is that I need to somehow invalidate a section of
19158         the non client area.
19160 2005-11-18  Jackson Harper  <jackson@ximian.com>
19162         * Control.cs: Put the enum check back in now that MDI doesnt have
19163         to use this to set border styles.
19164         * Form.cs: Only set mdi child windows borders if the handle has
19165         been created.
19166         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
19167         this directly on to the driver.
19168         - Get the move start position before adjusting for the titlebar
19169         height, this fixes the windows "skipping" when they are first
19170         moved.
19172 2005-11-18  Jackson Harper  <jackson@ximian.com>
19174         * XplatUIX11.cs: Just compute the mdi borders separately as they
19175         don't totally match up with normal form borders.
19177 2005-11-18  Jackson Harper  <jackson@ximian.com>
19179         * Control.cs: Set WS_ styles for borders, so that the driver does
19180         not have to retrieve the control instance to figure out what kind
19181         of borders it should have.
19182         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
19183         driver can know its an mdi child easily.
19184         * XplatUIX11.cs: Get the border styles and whether the window is
19185         MDI from the Styles and ExStyles params instead of having to get a
19186         control. This prevents a chicken and egg problem.       
19188 2005-11-18  Jackson Harper  <jackson@ximian.com>
19190         * MdiClient.cs: Fix typo so scrollbars show up correctly.
19192 2005-11-18  Jackson Harper  <jackson@ximian.com>
19194         * MdiClient.cs: Calculate when to add and remove scrollbars
19195         correctly.
19196         * MdiChildContext.cs: Adjust the y position to take the titlebar
19197         into account.
19198         - No height for FormBorderStyle.None
19200 2005-11-18  Jackson Harper  <jackson@ximian.com>
19202         * Control.cs: Allow non enum values to be used for
19203         InternalBorderStyle.  MDI does this to set a special border style.
19204         - New utility methods for converting points to/from client coords
19205         - Add the newly created control to the Controls collection before
19206         updating its style. This way UpdateStyle can walk the control
19207         heirarchy to find the control if needed.
19208         so I don't need to create a new Point object all the time.
19209         * Form.cs: Let MDI windows handle their border styles.
19210         - Set styles on MDI windows so the correct title style is derived.
19211         * MdiChildContext.cs: Move all the painting and window handling
19212         into the non client area.
19213         - Use correct sizing and put correct buttons on frames based on
19214         the FormBorderStyle.
19215         - Notify the mdi client about scrolling
19216         - Need to handle the buttons ourselves now, because they are all
19217         in non client areas and we can't add controls there.
19218         * MdiClient.cs: Halfway to scrolling, this implementation is
19219         somewhat broken though, we need to check to make sure other
19220         windows aren't causing scrolling before removing the bars. Also
19221         the bars need to be drawn on top, maybe I can switch implicit
19222         controls to be on top.
19223         * Hwnd.cs: caption_height and tool_caption_height are now
19224         properties of an hwnd, this way they can be set by the driver
19225         based on the type of window they are.  In X11 the window manager
19226         handles the decorations so caption_height is zero unless its an
19227         MDI window.
19228         - Add 3 pixel borders for MDI windows (0xFFFF).
19229         - Get rid of some code duplication, have DefaultClientRectanle
19230         just call GetClientRectangle.
19231         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
19232         Hwnd now.
19233         - Set border styles differently for mdi windows.
19234         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
19235         Hwnd now.
19236         
19237 2005-11-15  Mike Kestner  <mkestner@novell.com>
19239         * Menu.cs: when adding an item to the collection, if item is already 
19240         parented, remove it from the parent.
19242 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
19244         * X11DesktopColors.cs: Added KDE support
19246 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
19248         * XplatUIWin32.cs: 
19249           - Clipboard methods now can translate Rtf format
19250           - No longer removes clipboard contents whenever a new format is added
19251             to allow placing multiple formats on the clipboard
19252         * Clipboard.cs: Clipboard now supports getting a IDataObject and
19253           will place all formats contained in it onto the clipboard. Also
19254           now cleans the clipboard before placing a new object onto it
19255         * RichTextBox.cs:
19256           - Implemented set_Rtf
19257           - Implemented set_SelectedRtf
19258           - Created InsertRTFFromStream() method to allow single code base
19259             for all properties and methods that insert RTF into document
19260           - Removed debug output
19261         * TextControl.cs:
19262           - Fixed Delete(int) to fix up line numbers
19263           - Fixed ReplaceSelection to combine start and end line
19264           - Fixed serious DeleteChars bug that would leave the document tree
19265             broken
19266           - Improved DumpTree with several logic checks to detect broken
19267             document trees
19268           - Removed debug lines
19269           - Fixed Caret.WordForward/WordBack moving code, now always also 
19270             updates caret.tag (fixes crash when word-selecting across tag
19271             boundaries via keyboard)
19272           - Added Insert() method for inserting multiline text into documents
19273           - Fixed DeleteChars() calculation errors that would cause a broken
19274             tag chain with multiple tag lines
19275           - DeleteChars() no longer crashes on multi-tag lines if not all tags
19276           - Split() no longer moves caret if split is at caret location
19277           - ReplaceSelection() now updates the cursor and re-displays it
19278           - ReplaceSelection() now uses new Insert() method to avoid code
19279             duplication
19280           - FormatText() can now handle formatting partial lines
19281         * TextBoxBase.cs:
19282           - Append now uses new TextControl.Insert() method (this avoids 
19283             duplicate code)
19284           - Implemented Ctrl-X (Cut) (
19285           - Implemented Ctrl-C (Copy)
19286           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
19287             regeneration when pasting text; roundtripping Copy&Paste within
19288             edit control still fails due to some calculation bugs in GenerateRTF)
19289           - The Delete key will now remove the current selection if it is visible
19290         * TextBox.cs: Removed debug lines
19291         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
19292           driver to be initialized and can't therefore be done via a static ctor)
19294 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
19296         * TextControl.cs: Added backend code for finding char arrays and strings
19297         * TextBoxBase.cs:
19298           - Added mouse wheel scroll support
19299           - Added support for VScroll and HScroll events
19300         * RichTextBox.cs:
19301           - Implemented all seven Find() variants
19302           - Implemented GetCharFromPosition()
19303           - Implemented GetCharIndexFromPosition()
19304           - Implemented GetLineFromIndex()
19305           - Implemented GetPositionFromCharIndex();
19306           - Implemented SaveFile for PlainText and UnicodeText
19307           - Fixed set_Font, now setting a new font applies that font to
19308             the whole document
19309           - Implemented generic Document to RTF converter
19310           - Implemented SaveFile for RichText format (still missing unicode
19311             conversion for non-ansi chars)
19312           - Implemented get_Rtf
19313           - Implemented get_SelectedRtf
19315 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
19317         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
19318           to allow any captures to be released before triggering OnClick. This
19319           way a click handler may capture the mouse without interference.
19320         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
19321           This way we send them even though X may not allow a grab (if the window
19322           isn't visible, for example)
19324 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
19326         * DataGridViewRowEventArgs.cs: DataGridView implementation
19327         * DataGridViewElement.cs: DataGridView implementation
19328         * DataGridViewComboBoxCell.cs: DataGridView implementation
19329         * DataGridViewDataErrorContexts.cs: DataGridView implementation
19330         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
19331         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
19332         * ImageLayout.cs: DataGridView implementation
19333         * DataGridViewComboBoxColumn.cs: DataGridView implementation
19334         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
19335         * DataGridViewSelectionMode.cs: DataGridView implementation
19336         * IDataGridViewEditingControl.cs: DataGridView implementation
19337         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
19338         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
19339         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
19340         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
19341         * DataGridViewColumnSortMode.cs: DataGridView implementation
19342         * DataGridView.cs: DataGridView implementation
19343         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
19344         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
19345         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
19346         * Padding.cs: DataGridView implementation
19347         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
19348         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
19349         * DataGridViewRowEventHandler.cs: DataGridView implementation
19350         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
19351         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
19352         * DataGridViewButtonCell.cs: DataGridView implementation
19353         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
19354         * DataGridViewEditMode.cs: DataGridView implementation
19355         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
19356         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
19357         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
19358         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
19359         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
19360         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
19361         * DataGridViewCellEventHandler.cs: DataGridView implementation
19362         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
19363         * DataGridViewCellStyleConverter.cs: DataGridView implementation
19364         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
19365         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
19366         * DataGridViewColumnEventArgs.cs: DataGridView implementation
19367         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
19368         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
19369         * QuestionEventArgs.cs: DataGridView implementation
19370         * IDataGridViewEditingCell.cs: DataGridView implementation
19371         * DataGridViewTriState.cs: DataGridView implementation
19372         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
19373         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
19374         * DataGridViewColumnCollection.cs: DataGridView implementation
19375         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
19376         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
19377         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
19378         * DataGridViewColumn.cs: DataGridView implementation
19379         * DataGridViewCellBorderStyle.cs: DataGridView implementation
19380         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
19381         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
19382         * DataGridViewRow.cs: DataGridView implementation
19383         * DataGridViewImageCellLayout.cs: DataGridView implementation
19384         * DataGridViewImageCell.cs: DataGridView implementation
19385         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
19386         * DataGridViewCheckBoxCell.cs: DataGridView implementation
19387         * DataGridViewHeaderCell.cs: DataGridView implementation
19388         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
19389         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
19390         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
19391         * DataGridViewTextBoxColumn.cs: DataGridView implementation
19392         * QuestionEventHandler.cs: DataGridView implementation
19393         * DataGridViewCellStyleScopes.cs: DataGridView implementation
19394         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
19395         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
19396         * DataGridViewCell.cs: DataGridView implementation
19397         * DataGridViewCellEventArgs.cs: DataGridView implementation
19398         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
19399         * DataGridViewCellStyle.cs: DataGridView implementation
19400         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
19401         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
19402         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
19403         * TextFormatFlags.cs: DataGridView implementation
19404         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
19405         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
19406         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
19407         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
19408         * DataGridViewButtonColumn.cs: DataGridView implementation
19409         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
19410         * HandledMouseEventArgs.cs: DataGridView implementation
19411         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
19412         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
19413         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
19414         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
19415         * DataGridViewRowCollection.cs: DataGridView implementation
19416         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
19417         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
19418         * DataGridViewHitTestType.cs: DataGridView implementation
19419         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
19420         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
19421         * DataGridViewColumnEventHandler.cs: DataGridView implementation
19422         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
19423         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
19424         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
19425         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
19426         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
19427         * DataGridViewContentAlignment.cs: DataGridView implementation
19428         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
19429         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
19430         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
19431         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
19432         * DataGridViewPaintParts.cs: DataGridView implementation
19433         * DataGridViewCellCollection.cs: DataGridView implementation
19434         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
19435         * DataGridViewImageColumn.cs: DataGridView implementation
19436         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
19437         * DataGridViewElementStates.cs: DataGridView implementation
19438         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
19439         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
19440         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
19441         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
19442         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
19443         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
19444         * DataGridViewRowHeaderCell.cs: DataGridView implementation
19445         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
19446         * DataGridViewTextBoxCell.cs: DataGridView implementation
19447         * DataGridViewBand.cs: DataGridView implementation
19448         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
19449         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
19450         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
19451         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
19452         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
19453         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
19454         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
19455         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
19456         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
19457         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
19458         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
19460 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
19462         * ThemeWin32Classic.cs: 
19463           - Draw the outside focus rectangle around buttons
19464           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
19465             doesn't use end caps for every dash of a line anymore. This
19466             workaround ignores the forecolor.
19468 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
19470         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
19471           endian safe.
19473 2005-11-07  Jackson Harper  <jackson@ximian.com>
19475         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
19477 2005-11-07  Jackson Harper  <jackson@ximian.com>
19479         * ScrollableControl.cs: Calculate the maximum and change vars
19480         (more) correctly so that scrollbars appear as a sensible size.
19482 2005-11-04  Jackson Harper  <jackson@ximian.com>
19484         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
19485         collection.
19486         * TreeView.cs: When the tree is sorted null out the top_node so
19487         that it is recalculated.
19488         - Use dotted lines instead of dashed lines to match MS better.
19490 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
19492         * ListView.cs: 
19493           - Implements key search for items. Useful when browsing files with FileDialog
19494           - When changing view mode or when clear the items reset scrollbar positions
19496 2005-11-04  Jackson Harper  <jackson@ximian.com>
19498         * CurrencyManager.cs: Implement the MetaDataChanged event, the
19499         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
19500         as to what the method may do as there is no real way of creating a
19501         derived CurrencyManager and calling the method. 
19503 2005-11-03  Jackson Harper  <jackson@ximian.com>
19505         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
19506         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
19507         method which seems to just be used internally to refresh the tabs.
19509 2005-11-03  Jackson Harper  <jackson@ximian.com>
19511         * TabControl.cs: Implement the remove method. Fix some broken
19512         comments.
19514 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
19516         * DateTimePicker.cs:
19517           - Added missing DateTimePickerAccessibleObject class
19518           - Added missing events
19519           - Added OnFontChanged method
19520         * Form.cs: Added missing attributes
19521         * TreeView.cs: Added missing attributes
19523 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
19525         * GridItemCollection.cs: Fix signatures
19527 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
19529         * XplatUI.cs: Updated build rev/date
19530         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
19531           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
19532         * Application.cs: Trigger context-specific ExitThread events
19534 2005-11-03  Jackson Harper  <jackson@ximian.com>
19536         * Menu.cs:
19537         * MainMenu.cs:
19538         * GridTableStylesCollection.cs:
19539         * Timer.cs:
19540         * TabPage.cs:
19541         * HelpProvider.cs:
19542         * StatusBar.cs:
19543         * MonthCalendar.cs: Signature fixes
19545 2005-11-03  Jackson Harper  <jackson@ximian.com>
19547         * TreeNodeCollection.cs: Remove should not be virtual.
19548         * TreeView.cs: Implement the last of the missing methods.
19550 2005-11-03  Jackson Harper  <jackson@ximian.com>
19552         * TreeNodeConverter.cs: Implement to get off my class-status back.
19554 2005-11-03  Jackson Harper  <jackson@ximian.com>
19556         * TreeView.cs: Hookup the bits for drag and drop.
19557         * TreeNode.cs: Don't cache the tree_view or index anymore, now
19558         that nodes can be moved from tree to tree easily this just causes
19559         all sorts of problems.
19560         * TreeNodeCollection: Don't need to give treenodes an index and
19561         treeview anymore when they are added, these are computed on the
19562         fly. Also make sure to remove a node before its added.
19564 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
19566         * TextControl.cs:
19567           - Added CaretSelection enum
19568           - Added comparison methods to Marker struct, makes selection code
19569             more readable
19570           - Added SelectionStart and SelectionEnd as 'moveable' location for
19571             the CaretDirection enum and handler
19572           - Added selection_prev variable to track optimized invalidation for
19573             word and line selection
19574           - Added SelectionVisible property (returns true if there is a valid 
19575             selection)
19576           - Switched CaretHasFocus to only display the caret if there is no
19577             visible selection
19578           - Avoiding StringBuilder.ToString to retrieve a single char, instead
19579             using the direct character index; should be much faster
19580           - Added various conditional debug statements
19581           - Fixed invalidation calculation for selection ranges
19582           - Added ExpandSelection() method to support word and line selection
19583           - Switched SetSelectionToCaret to use new Marker compare overloads
19584           - Added central IsWordSeparator() method to determine word 
19585             separators/whitespace and FindWordSeparator() to streamline common
19586             usage of IsWordSeparator()
19587         * TextBoxBase.cs:
19588           - Removed unneeded grabbed variable, it was just mirroring
19589             Control.Capture
19590           - No longer firing OnTextChanged event when Text setter is called,
19591             since the base will fire the event for us
19592           - Added handling of Ctrl-Up/Down selection
19593           - Added handling of Shift-Cursorkey selection
19594           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
19595             words
19596           - Added handling of Shift and Ctrl-Shift-Home/End selection
19597           - Removed some debug output
19598           - Added handling for single/double/tripple-click to place caret/
19599             select word/select line respectively (Fixes bug #76031)
19600           - Added support for drag expansion of word/line selection
19601         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
19602           current selection
19604 2005-11-02  Jackson Harper  <jackson@ximian.com>
19606         * X11Dnd.cs: If the drag is going to and from a MWF window just
19607         copy the data instead of sending it out through the X Selection
19608         mechanism.
19610 2005-11-02  Jackson Harper  <jackson@ximian.com>
19612         * X11Dnd.cs:
19613         * XplatUIX11.cs: When in a drag we don't want motion notify
19614         messages to get passed on to the other controls. This prevents
19615         mouse move messages from showing up in the drag source.
19617 2005-11-02  Jackson Harper  <jackson@ximian.com>
19619         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
19620         the correct button is release to end a drag.
19621         * XplatUIX11.cs: Make the button state internal so the drag system
19622         can access it.  Dragging needs to know about all button releases,
19623         not just left button.
19625 2005-11-02  Miguel de Icaza  <miguel@novell.com>
19627         * Form.cs (Icon): If the icon is null, reset the icon to the
19628         default value. 
19630         * Cursor.cs: When writing the AND-mask bitmap do not include the
19631         number of colors, but hardcode those to two (black and white),
19632         fixes the loading of color cursors (Paint Dot Net).
19634         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
19635         turn off autoscaling.
19637         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
19639 2005-11-02  Jackson Harper  <jackson@ximian.com>
19641         * X11Dnd.cs: Make sure to send a status message if the pointer
19642         enters a control that can not accept a drop, otherwise the cursor
19643         isn't updated correctly. Also tried to compress the lines of code
19644         a bit.
19646 2005-11-02  Jackson Harper  <jackson@ximian.com>
19648         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
19649         set actions correctly.  This isn't perfect as XDND and win32 have
19650         some differences on how you allow actions. I'll clear this up by
19651         adding a path for drag from MWF to MWF windows.
19652         * XplatUIX11.cs: Hook into the dnd system.
19654 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
19656         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
19657         previously shown but they are no longer need it. Very obvious when 
19658         browsing files with FileDialog.
19660 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
19662         * Control.cs: We always need to call OnPaintBackground. We pretty much
19663           ignore AllPaintingInWmPaint and always do the painting there, whether 
19664           it's set or not, since we always ignore the WM_ERASEBKGND message 
19665           (which we don't generate on X11). This fixes #76616.
19666         * Panel.cs: Removed unneeded background painting. This happens properly
19667           in Control.cs already
19669 2005-10-31  Mike Kestner  <mkestner@novell.com>
19671         * Menu.cs: Add items to collection before setting their index.
19672         * MenuItem.cs : add range checking with ArgumentException like MS.
19673         [Fixes #76510]
19675 2005-10-31  Jackson Harper  <jackson@ximian.com>
19677         * ListBox.cs: Invalidate if the area is visible at all not just
19678         contained in the visible rect. Fixes unselection of semi visible
19679         items.
19681 2005-10-31  Jackson Harper  <jackson@ximian.com>
19683         * Control.cs: Consistently name the dnd methods. Make them
19684         internal so we can override them to match some MS behavoir
19685         internally.
19686         * Win32DnD.cs: Use the new consistent names.
19688 2005-10-31  Jackson Harper  <jackson@ximian.com>
19690         * TreeView.cs: Don't draw the selected node when we lose focus.
19692 2005-10-31  Jackson Harper  <jackson@ximian.com>
19694         * X11Dnd.cs: We still need to reset the state even though a full
19695         reset isn't being done, otherwise status's still get sent all over
19696         the place.
19698 2005-10-31  Jackson Harper  <jackson@ximian.com>
19700         * Control.cs: Make the dnd_aware flag internal so the dnd
19701         subsystem can check it. Catch exceptions thrown in dnd handlers to
19702         match MS behavoir.
19703         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
19704         * X11Dnd.cs: Handle null data in the converters. Set the XDND
19705         version when sending a XdndEnter. Use the control/hwnd dnd_aware
19706         flags to reduce the number of dnd enters/status's sent.
19708 2005-10-31  Jackson Harper  <jackson@ximian.com>
19710         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
19712 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
19714         * PictureBox.cs: Fixes 76512
19716 2005-10-28  Jackson Harper  <jackson@ximian.com>
19718         * X11Dnd.cs: Early implementation to support winforms being a drag
19719         source for data on X11. Also restructured the converters so they
19720         can go both ways now.
19721         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
19722         
19723 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
19725         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
19726           clipboard requests
19728 2005-10-27  Jackson Harper  <jackson@ximian.com>
19730         * TreeNode.cs: Implement serialization so my DnD examples will work.
19732 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
19734         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
19735           TreeView.cs: Don't dispose objects that are not owned.
19736           
19737 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
19739         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
19740           should retrieve the current cursor and report that, but XplatUI
19741           doesn't (yet) have an interface for that (and I'm not sure I even
19742           can, on X11)
19743         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
19744           until any message loop processing is done (and the WM_SETCURSOR
19745           replaces the cursor to the proper one)
19746         * XplatUIX11.cs: 
19747           - Fixed override behaviour, we can't set the cursor globally on X11, 
19748             just for our windows.
19749           - Invalidating the System.Drawing X11 display handle when we are
19750             shutting down
19751         * Control.cs: Fix to make csc happy
19753 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
19755         * TextBoxBase.cs: 
19756           - get_Text: Add last line (without trailing newline) to returned
19757             value (Fixes 76212)
19758           - get_TextLength: Count last line in returned length
19759           - ToString: Call Text property instead of duplicating code
19761 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
19763         * ImageList.cs: Dispose ImageAttributes objects.
19765 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
19767         * ImageList.cs: Use attribute constructors with less arguments where
19768           possible.
19770 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
19772         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
19773           Use typeof instead of strings when assembly is referenced. Added
19774           some more comments.
19776 2005-10-21  Jackson Harper  <jackson@ximian.com>
19778         * ListView.cs: Raise a double click event. Also tried to somewhat
19779         fix when the selectedindexchanged event is raised. Its still
19780         broken though.
19782 2005-10-21  Jackson Harper  <jackson@ximian.com>
19784         * TreeView.cs: New method to invalidate the plus minus area of a
19785         node without invalidating the whole node (maybe this can be used
19786         in some more places).
19787         * TreeNodeCollection.cs: When adding to an empty node we need to
19788         invalidate its plus minus area so the little block shows up.
19789         
19790 2005-10-21  Jackson Harper  <jackson@ximian.com>
19792         * TreeView.cs: Make sure that when we invalidate a node the bounds
19793         are big enough to cover the selected box and the focus
19794         rectangle. Use a different colour for the lines connecting nodes
19795         so they show up with all themes.
19797 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
19799         * NativeWindow.cs: Don't call anything that could call into the driver,
19800           we might be on a different thread.
19802 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
19804         * Control.cs(Dispose): Since Dispose might run on a different thread,
19805           make sure that we call methods that could call into the driver via
19806           invoke, to avoid thread issues
19808 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
19810         * XplatUI.cs: Removed finalizer
19811         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
19812           not allowing to be called on the finalizer thread.
19814 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
19816         * ImageList.cs:
19817           - Reverted r51889 and r51891.
19818           - Added ImageListItem class that stores unmodified image items and image
19819             properties required to create list images until handle is created.
19820           - Added AddItem and moved image creation logic to AddItemInternal.
19821           - Added CreateHandle method that creates images based on unmodified items.
19822           - Added DestroyHandle that changes state to store unmodified items.
19823           - Add and AddStrip methods no more create handle.
19824           - ReduceColorDepth has no return value.
19825           - Dispose destroys handle.
19826           - Modified other methods to reflect the above changes.
19827           - Implemented key support.
19828           - Added profile 2.0 members and attributes.
19829           - Added private Reset and ShouldSerialize methods that provide the same
19830             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
19831             them as they are private.
19832           - Added some more comments about implementation details.
19834 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
19836         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
19838 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
19840         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
19842 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
19844         * DataGridDrawingLogic.cs: Fixes column hit calcultation
19845         * DataGridColumnStyle.cs: Remove debug message
19847 2005-10-20  Jackson Harper  <jackson@ximian.com>
19849         * TreeView.cs: We can always get input keys regardless of whether
19850         or not editing is enabled. They are used for navigation.
19852 2005-10-20  Jackson Harper  <jackson@ximian.com>
19854         * TreeNode.cs: Use the viewport rect for determining if a node
19855         needs to be moved for visibility. Don't use Begin/End edit. This
19856         calls a full refresh when its done.
19857         * TreeView.cs: New SetBottom works correctly.  Make the viewport
19858         rect property internal so the treenodes can see it. When clicking
19859         on a node we need to ensure that its visible because it might just
19860         be partly visible when clicked.
19862 2005-10-20  Jackson Harper  <jackson@ximian.com>
19864         * TreeNodeCollection.cs: Remove debug code.
19866 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
19868         * Datagrid.cs: Implements column sorting in Datagrid
19869         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
19871 2005-10-20  Jackson Harper  <jackson@ximian.com>
19873         * TreeNodeCollection.cs: Remove items properly. Update the correct
19874         area after removing them.
19876 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
19878         * Datagrid.cs: Should not call base.OnPaintBackground
19880 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
19882         * XplatUIX11.cs (GetMessage):
19883           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
19884             window instead of client window
19885           - Now properly calculates NC_xBUTTONUP message coordinates
19886           - ScreenToMenu now properly calculates it's coordinates of whole 
19887             window, since menus are in the whole window, not in the client
19888             window
19889           - Added WholeToScreen coordinate translation method
19891 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
19893         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
19894           want to return a message, loop back to the beginning of the function
19895           and grab the next real message to process instead.
19897 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
19899         * Splitter.cs: Properly set limits if no filler control is used
19901 2005-10-19  Jackson Harper  <jackson@ximian.com>
19903         * ColorDialog.cs: Don't show the help button if it is not enabled
19904         instead of disabling it (this is what MS does). Don't create the
19905         panel until the dialog is run, otherwise the vars (such as
19906         ShowHelp) are not set yet.
19908 2005-10-19  Jackson Harper  <jackson@ximian.com>
19910         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
19911         are reduced when adding nodes.
19912         * TreeNode.cs:
19913         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
19914         tree.
19915         
19916 2005-10-19  Jackson Harper  <jackson@ximian.com>
19918         * FolderBrowserDialog.cs: End editing our treeview so the window
19919         actually gets refreshed.
19921 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
19923         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
19924           Obsoleted handling of WM_ERASEBKGND, now always draws our background
19925           inside of WM_PAINT
19927 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
19929         * MenuAPI.cs: Returns after Hidding window
19930         * XplatUIX11.cs: Added TODO found while debugging menu issues
19932 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
19934         * XplatUIX11.cs: Do not re-map the whole window when it's size
19935           becomes non-zero unless it's supposed to be actually visible
19937 2005-10-18  Jackson Harper  <jackson@ximian.com>
19939         * TreeView.cs: We don't need to keep a count anymore.
19940         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
19941         use the Grow method.
19943 2005-10-18  Jackson Harper  <jackson@ximian.com>
19945         * TreeNodeCollection.cs: Insert is not supported on arrays, so
19946         implement it manually here.
19948 2005-10-18  Jackson Harper  <jackson@ximian.com>
19950         * ImageList.cs: Dont kill the list when the colour depth is
19951         changed, just change the colour depth of all the images.
19952         - Same goes for setting the image size. Just resize them all
19953         instead of killing the list softly.
19955 2005-10-18  Jackson Harper  <jackson@ximian.com>
19957         * Control.cs: Don't invalidate empty rectangles.
19959 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
19961         * ListViewItem.cs:
19962           - Adds checked item to the Checked/Item lists (where empty before)
19963           - Do not add items to the Selected lists if they are already present
19964         * ListView.cs:
19965           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
19966           - When deleting items make sure that we delete them for the Selected
19967           and Checked list also.
19969 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
19971         * Label.cs: Dispose objects no longer used
19972         * ThemeWin32Classic.cs: Dispose objects no longer used
19974 2005-10-18  Jackson Harper  <jackson@ximian.com>
19976         * TabControl.cs: Don't refresh the whole control when the tabs are
19977         scrolled, we just need to refresh the tab area.
19979 2005-10-17  Jackson Harper  <jackson@ximian.com>
19981         * XplatUIX11.cs: Compress code a little bit. Only calculate the
19982         after handle when we need it.
19984 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
19986         * Control.cs: When the parent size changes, recalculate anchor 
19987           positions. Partial fix for #76462
19989 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
19991         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
19992           drawn. Fixes #76462
19994 2005-10-17  Jackson Harper  <jackson@ximian.com>
19996         * MonthCalendar.cs: Don't create the numeric up down until our
19997         handle is created. Otherwise our handle is created in the
19998         constructor and we don't know if we are a WS_CHILD or WS_POPUP
19999         yet.
20001 2005-10-17  Jackson Harper  <jackson@ximian.com>
20003         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
20004         correctly.
20006 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
20007         * TreeNode.cs : small logical fix (was using local var instead of field)
20008         
20009 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
20011         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
20013 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
20015         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
20017 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
20019         * Control.cs: 
20020           - Re-implemented anchoring code. My first version was really broken.
20021             This fixes bug #76033. Unlike the previous implementation we will
20022             no longer have round errors since all numbers are calculated from
20023             scratch every time. Removed various anchor-related obsolete vars.
20024           - InitLayout no longer causes layout event firing and layout to be 
20025             performed
20027 2005-10-16  Jackson Harper  <jackson@ximian.com>
20029         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
20030         which was broken).
20032 2005-10-16  Jackson Harper  <jackson@ximian.com>
20034         * TabControl.cs: Remove debug code.
20036 2005-10-16  Jackson Harper  <jackson@ximian.com>
20038         * XEventQueue.cs: Increase the default queue size (very simple
20039         apps needed to grow the queue).
20040         * Hwnd.cs: No finalizer so we don't need to suppress
20041         finalization. Compute the invalid area manually so a new rectangle
20042         does not newto be created.
20043         * ScrollableControl.cs: Don't set any params (otherwise visibility
20044         isn't set correctly).
20045         * MdiChildContext.cs: New constructor takes the mdi parent so it
20046         doesn't have to be computed and avoids a crash on windows. Draw
20047         the window icon properly, and allow the text to be seen.
20048         * Form.cs: Use new MdiChildContext constructor. Make sure the
20049         child context isn't null in wndproc.
20050         * TabControl.cs: Don't set focus, this is muddling keyboard
20051         behavoir. Expand the tab rows when a window size increase will
20052         allow extra tabs to be seen. Don't allow tabs smaller than the
20053         width of a window to be scrolled out of view.
20054         * TreeNode.cs:
20055         * TreeView.cs: Use measure string to calculate a nodes width, the
20056         width is cached and only updated when the text or the font is
20057         changed. Don't check for expand/collapse clicks on the first level
20058         nodes if root lines are disabled.
20059         
20060 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
20062         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
20064 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
20066         * DataGridBoolColumn.cs: fixes warning
20068 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
20070         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
20071         to match more to match more precisely the MS Net behavior
20073 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
20075         * Hwnd.cs: Added field to track if window is mapped
20076         * XplatUIX11.cs: 
20077           - Unmap windows if they become 0-size, re-map when 
20078             they are >0 again; fixes #76035
20079           - Re-set our error handler after initializing X11Desktop
20080             to override any error handlers Gtk or whatever was called
20081             may have set.
20083 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
20085         * CheckedListBox.cs: Removed unused vars
20086         * ListView.cs: Fixed signatures
20087         * RichTextBox.cs: Removed unused vars
20088         * TextBoxBase.cs: Removed unused vars
20089         * XplatUIWin32.cs: Removed unused vars
20090         * XplatUIX11.cs: Removed unused vars
20091         * XplatUI.cs: Updated version and date to latest published
20093 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
20095         * Cursor.cs: Added private .ctor to work around a bug in
20096           resourceset (Thanks to Geoff Norton for the help on this)
20097         * SplitterEventArgs.cs: Made fields accessible so we don't
20098           waste boatloads of objects and can reuse the same one
20099           in Splitter
20100         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
20101           any captions and borders when generating screen coordinates
20102         * Splitter.cs: Reimplemented control, now fully complete, uses
20103           rubberband drawing, supports and obeys all properties, has
20104           proper cursors
20106 2005-10-13  Miguel de Icaza  <miguel@novell.com>
20108         * Form.cs (Form): Setup default values for autoscale and
20109         autoscale_base_size;  Make these instance variables, not static
20110         variables. 
20112         (OnLoad): on the first load, adjust the size of the form.
20114 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
20116         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
20117           width argument to DrawReversibleRectangle()
20118         * XplatUIWin32.cs, XplatUIX11.cs: 
20119           - Implemented width for DrawReversibleRectangle()
20120           - Added logic to DrawReversibleRectangle that recognizes a zero
20121             width or height and only draws a line in that situation
20122         
20123 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
20125         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
20126         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
20127         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
20128           method (it uses our FosterParent window to get a graphics context)
20130 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
20132         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
20133           and SetWindowBackground methods
20134         * Control.cs:
20135           - Setting proper ControlStyles
20136           - We no longer call XplatUI.SetWindowBackground and XplatUI.
20137             EraseWindowBackground, instead we draw the window background
20138             ourselves in PaintControlBackground. This behaviour is
20139             required to match MS, where, when OnPaintBackground is not
20140             called, the background is not drawn.
20141           - Removed unneeded Refresh() in set_Text
20142         * Hwnd.cs: Dropped the ErasePending support. No longer needed
20143         * XplatUIX11.cs:
20144           - Created DeriveStyles method to translate from CreateParams to
20145             FormBorderStyle and TitleStyle, also handles BorderStyle (which
20146             matches FormBorderStyle enum values)
20147           - Consolidated SetHwndStyles and CalculateWindowRect border/title
20148             style calculations into single DeriveStyles method
20149           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
20150             from redrawing the whole window on any resize or expose.
20151           - Fixed CreateWindow usage of SetWindowValuemask. Before not
20152             all styles were applied to our whole/client window appropriately
20153           - Removed EraseWindowBackground() and SetWindowBackground() methods
20154           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
20155             no longer clear/redraw the background through X
20156           - Removed handling of erase_pending bit, we have no use for it (or
20157             so it seems)
20158         * XplatUIOSX.cs:
20159           - Removed generation and handling of WM_ERASEBKGND message
20160           - Removed EraseWindowBackground() and SetWindowBackground() methods
20161           - Removed handling of hwnd.ErasePending flag
20162         * XplatUIWin32.cs:
20163           - Removed EraseWindowBackground() and SetWindowBackground() methods
20164           - We no longer call EraseWindowBackground on PaintEventStart, we 
20165             ignore the fErase flag, erasing is handled in Control in the
20166             background handler
20167         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
20168           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
20169           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
20170           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
20171           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
20172           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
20173           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
20175 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
20177         * PropertyGrids.cs: Get sub properties
20178         * PropertyGridView.cs: Fix drawing code
20180 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
20182         * ListBox.cs: Fixes 76383
20184 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
20186         * DataGridTextBoxColumn.cs: Sets location and size before attachment
20187         * ThemeWin32Classic.cs: Fixes border drawing and calculations
20188         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
20191 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
20193         * ComboBox.cs: Fixes border drawing
20195 2005-10-10  Miguel de Icaza  <miguel@novell.com>
20197         * MimeIcon.cs: Ignore errors if the file can not be read.
20199 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
20201         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
20202          - Fixed border calculations
20203          - Fixed horizontal scrolling in single column listboxes
20204          - Fixed drawing issues
20206 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
20208         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
20209           FormBorderStyle enum
20210         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
20211           code to determine FormBorderStyles from CreateParams
20212         * Form.cs:
20213           - Fixed bug where we'd set the wrong window styles if we were
20214             not creating an MDI window
20215           - Added call to XplatUI.SetBorderStyle when form borders are set
20216         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
20217         * Hwnd.cs:
20218           - Removed obsolete edge style
20219           - Switched from BorderStyle to FormBorderStyle
20220         
20221 2005-10-10  Jackson Harper  <jackson@ximian.com>
20223         * Form.cs: Use the property to get the window handle instead of
20224         accessing it directly. Prevents a null reference exception.
20226 2005-10-10  Jackson Harper  <jackson@ximian.com>
20228         * TreeView.cs: Don't adjust the rect given to DrawString now that
20229         our libgdiplus draws correctly.
20231 2005-10-08  Jackson Harper  <jackson@ximian.com>
20233         * TreeView.cs: Don't try to find the clicked on node if there are
20234         no nodes in the tree.
20236 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
20238         * RichTextBox.cs:
20240           restore
20242 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
20244         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
20245           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
20246           ErrorProvider.cs:
20247           Use ResPool for brushes and dispose System.Drawing objects that
20248           are not used anymore.
20250 2005-10-07  Jackson Harper  <jackson@ximian.com>
20252         * MdiChildContext.cs: Use the new borders instead of drawing them
20253         ourselves.
20255 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
20257         * Calling UpdateBounds after changing the window's BorderStyle 
20258         since the style can change the ClientSize
20260 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20262         * Control.cs: Made PaintControlBackground virtual
20263         * Panel.cs: Overriding PaintControlBackground instead of using paint
20264           event; paint event method was interfering with 'real' users of the
20265           event.
20267 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
20269         * ThemeWin32Classic.cs: remove border drawing since it is handled
20270         by the base control class now and was causing double border drawing.
20272 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20274         * Panel.cs: Redraw our background on paint. Not a pretty solution,
20275           but it does seem to match MS behaviour. This fixes bug #75324
20277 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20279         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
20280           somewhat hackish looking
20282 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
20284         * TextBoxBase.cs:
20285           - We now accept Enter even if AcceptEnter is false, if the containing
20286             form does not have an AcceptButton configured (fixes bug #76355)
20287           - Calculations are now fixed to no longer use Width/Height, but
20288             ClientSize.Width/Height, since we now support borders (this was
20289             a result of fixing borders and therefore bug #76166)
20290           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
20291             true (fixes bug #76354)
20292         
20293 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20295         * Control.cs: 
20296           - Defaulting BorderStyle and setting it in XplatUI when our window 
20297             is created
20298           - Added enum check to InternalBorderStyle setter
20299         * XplatUIX11.cs: 
20300           - Added drawing of window borders
20301           - Now properly calculates WM decorations offset for toplevel 
20302             windows (fixes bug #74763)
20303         * XplatUIWin32.cs: 
20304           - Implemented BorderStyles for windows (we're letting win32 draw 
20305             the border for us)
20306           - Fixed the signature for SetWindowLong
20307         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
20308           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
20309           setting borders
20310         * UpDownBase.cs: Remove drawing of borders, this is handled by
20311           the driver, outside the client area
20312         * ListView.cs: Removed bogus border calculations. The control should
20313           be oblivious to borders, since those are not part of the client
20314           area. 
20315         * X11DesktopColors.cs: Commented out (currently) unneeded variables
20316         * ThemeWin32Classic.cs: Removed border calculations from ListView 
20317           drawing code
20319 2005-10-06  Jackson Harper  <jackson@ximian.com>
20321         * MdiChildContext.cs: Clear out the old virtual position remove
20322         all the unneeded calls to CreateGraphics.
20324 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
20326         * TextControl.cs: Use proper color for highlighted text; fixes #76350
20328 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
20330         * Form.cs: 
20331           - Added loading and setting of our new default icon
20332           - Only set icon if window is already created
20334 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20336         * Label.cs:
20337           - Do not explicitly set the foreground and background colors, to
20338             allow inheriting from parents (fixes #76302)
20339           - Use Control's InternalBorderStyle property to deal with borders
20341 2005-10-06  Jackson Harper  <jackson@ximian.com>
20343         * MdiChildContext.cs: Use the new xplatui function to draw a
20344         reversible rect.
20346 2005-10-06  Jackson Harper  <jackson@ximian.com>
20348         * Form.cs: Add the parent before creating the child context cause
20349         we need the parent when setting up the child.
20351 2005-10-06  Jackson Harper  <jackson@ximian.com>
20353         * FolderBrowserDialog.cs: redo the tree population code so a
20354         second thread isn't used. Should be a lot faster and more stable
20355         now.
20357 2005-10-05  Jackson Harper  <jackson@ximian.com>
20359         * TreeView.cs: There are no expand/collapse boxes if the node has
20360         no children.
20362 2005-10-05  Jackson Harper  <jackson@ximian.com>
20364         * X11DesktopColors.cs: Get menu colours for the gtk theme.
20366 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
20368         * FileDialog.cs: Fix InitialDirectory
20370 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
20372         * ComboBox.cs:
20373                 - Fixes changing between styles
20374                 - Fixes simple mode
20375                 - Fixes last item crashing when navigating with keyboard
20377 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
20379         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
20381 2005-10-05  Jackson Harper  <jackson@ximian.com>
20383         * TreeView.cs: If updating the root node do a full refresh.
20384         * TreeNode.cs: The root node should be expanded by default. Also
20385         added a utility prop to tell if we are the root node.
20386         * TreeNodeCollection.cs: Only refresh if the node we are being
20387         added to is expanded. Also added a comment on a potential
20388         optimization.
20389         
20390 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
20392         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
20393           in dispose method. Fixes #76330
20395 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
20397         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
20399                 - Implements vertical and horizontal scrolling using XplatUI
20400                 - Fixes keyboard navagation
20401                 - Fixes EnsureVisible
20402                 - Drawing fixes
20403                 - Handles and draws focus properly
20406 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
20408         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
20409           Create handle. NET_2_0: Destroy handle when value is null.
20411 2005-10-03  Jackson Harper  <jackson@ximian.com>
20413         * ScrollBar.cs: My last scrollbar patch was broken. This is a
20414         revert and a new patch to prevent the thumb from refreshing so
20415         much.
20417 2005-10-02  Jackson Harper  <jackson@ximian.com>
20419         * ScrollBar.cs: Don't update position if it hasn't actually
20420         changed. This occurs when you hold down the increment/decrement
20421         buttons and the thumb gets to the max/min.
20423 2005-10-01  Jackson Harper  <jackson@ximian.com>
20425         * Form.cs:
20426         * MdiChildContext.cs:
20427         * MdiClient.cs: Implement ActiveMdiChild in Form.
20429 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
20431         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
20433 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
20435         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
20436           be found
20438 2005-09-30  Jackson Harper  <jackson@ximian.com>
20440         * ListBox.cs: Don't do a full refresh unless some data has
20441         actually changed.
20443 2005-09-30  Jackson Harper  <jackson@ximian.com>
20445         * TreeView.cs: Make sure that the checkboxes size is factored in
20446         even when not visible.
20448 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
20450         * FileDialog.cs: Fix Jordi's build break
20452 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
20454         * FileDialog.cs: 
20455                 - Use standard the Windows colours for the combobox as espected
20456                 - Dispose objects that use resouces when no longer need them
20458 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
20460         * X11DesktopColors.cs: Initial incomplete implementation
20461         * XplatUIX11.cs: Added call to initialize X11DesktopColors
20463 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
20465         * Theme.cs: 
20466           - Switched Theme color names to match the names defined in 
20467             System.Drawing.KnownColors. Life's hard enough, no need to make 
20468             it harder.
20469           - Added setters to all theme color properties so themes can set
20470             their color schemes. The setters also propagate the color changes
20471             to System.Drawing.KnownColors via reflection
20472         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
20473           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
20474           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
20475           use the new, more logical theme color names
20476         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
20477           post-NT colors
20478         * ThemeWin32Classic.cs:
20479           - Removed code to set the old classic Windows colors. Instead it
20480             now relies on the colors returned by System.Drawing.KnownColors
20481             which will be either modern static colors (Unix) or colors
20482             read from the user's configuration (Win32)
20483           - Updated to use the new, more logical theme color names
20484           - Switched DataGrid drawing code to use only Theme colors instead of
20485             a mix of System.Drawing.KnownColors and Theme colors
20486           - DrawFrameControl(): Removed code that fills the button area, the
20487             fill would overwrite any previous fill done by a control. This
20488             fixes bug #75338 
20489           - Added DrawReversibleRectangle() stub
20490         * ScrollableControl.cs: Set visible state to false when scrollbars
20491           are removed (pdn fix)
20492         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
20493           DrawReversibleRectangle() method to allow drawing primitive 
20494           'rubber bands'
20495         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
20497 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20499         * ImageList.cs: Add(Icon): Create handle.
20501 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
20503         * ListView.cs:
20504         * ThemeWin32Classic.cs:
20505                 - Fixes detail mode
20506                 - Sets clippings
20507                 - Issues with drawing
20509 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20511         * ImageList.cs: Moved RecreateHandle back to ImageList as event
20512           source has to be the ImageList.
20514 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20516         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
20518 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20520         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
20522 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20524         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
20526 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
20527         * GridItem.cs: Fixed TODOs
20528         * GridItemCollection.cs: Added ICollection interface
20530 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20532         * ImageList.cs: Resize icons when needed.
20534 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
20536         * ListViewItem.cs
20537                 - Fixes GetBounds and returns on screen rects
20538         * ListView.cs:
20539                 - Fixes vertical and horzintal scrolling of items
20540         * ThemeWin32Classic.cs:
20541                 - Fixes drawing
20542                 
20543 2005-09-29  Raja R Harinath  <harinath@gmail.com>
20545         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
20547 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
20549         * ImageList.cs: Added comments about handle creation. Moved Handle,
20550           HandleCreated and OnRecreateHandle implementations to ImageCollection.
20551           Handle is created in Add methods.
20553 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
20554          
20555         * DataGridDrawingLogic.cs: 
20556                 - Takes rows into account on Colum calculations
20557                 - Returns the column when clickig
20558         * DataGrid.cs:
20559                 - Fixes default HitTestInfo values
20560                 - Fixes HitTestInfo.ToString
20561                 - Fixes ResetBackColor          
20562         
20563 2005-09-28  Jackson Harper  <jackson@ximian.com>
20565         * MdiChildContext.cs: Obey rules for fixed sized windows (no
20566         sizing or cursor changes). Also added some temp code to draw the
20567         titlebars text (Makes dev a little easier).
20569 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
20571         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
20573 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
20574          
20575         * ListBox.cs: Fixes bug 76253
20577 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
20579         * ImageList.cs: Added comments about the current implementation. Added
20580           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
20581           Format32bppArgb to preserve transparency and can use Graphics.FromImage
20582           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
20583           with Bitmap.LockBits for better performance. Revised the whole file to
20584           match MS.NET behaviour and provide better performance. Non-public
20585           interface members are calling public members even when they throw
20586           NotSupportedException for better maintainability. Moved ColorDepth,
20587           ImageSize, ImageStream and TransparentColor implementations to
20588           ImageCollection for better performance as these properties are not used
20589           by ImageList.
20590         * ImageListStreamer.cs: Added a new internal constructor that takes an
20591           ImageList.ImageCollection and serializes Images based on
20592           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
20593           match ImageList property name.
20595 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
20597         * ListBox.cs: Fixes IndexFromPoint for last item
20599 2005-09-27  Jackson Harper  <jackson@ximian.com>
20601         * Form.cs: Set the position of new mdi children correctly.
20603 2005-09-27  Jackson Harper  <jackson@ximian.com>
20605         * MdiClient.cs: New mdi children need to be added to the back of
20606         the controls collection so the zorder is set correctly. Also add a
20607         count of all the child windows that have been created.
20609 2005-09-27  Jackson Harper  <jackson@ximian.com>
20611         * Form.cs (CreateParams): Setup MDI forms correctly.
20613 2005-09-27  Jackson Harper  <jackson@ximian.com>
20615         * MdiChildContext.cs:
20616         * MonthCalendar.cs:
20617         * UpDownBase.cs:
20618         * ListBox.cs:
20619         * ListView.cs:
20620         * TextBoxBase.cs:
20621         * TreeView.cs:
20622         * ScrollableControl.cs:
20623         * ComboBox.cs: Add implicit controls using the new implict control
20624         functionality in ControlCollection. Also try to block multiple
20625         control add in a suspend/resume layout to save some cycles.
20626         
20627 2005-09-27  Jackson Harper  <jackson@ximian.com>
20629         * Control.cs: Add functionality to the controls collection to add
20630         'implicit controls' these are controls that are created by the
20631         containing control but should not be exposed to the user. Such as
20632         scrollbars in the treeview.
20633         * Form.cs: The list var of the ControlsCollection is no longer
20634         available because of the potential of implicit controls getting
20635         ignored by someone accessing the list directly.
20637 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
20639         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
20640           loose it's parent. (Fixed bug introduced in r49103 when we added
20641           setting the child parent to null on Remove)
20643 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
20645         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
20646         * Splitter.cs: Added missing attributes for BorderStyle property.
20647         * TextBoxBase.cs: Marked Calculate* methods internal.
20648         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
20649         MS.NET.
20651 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
20652          
20653         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
20655 2005-09-25  Jackson Harper  <jackson@ximian.com>
20657         * TreeView.cs: Update the node bounds correctly regardless of
20658         whether the node is visible.
20660 2005-09-25  Jackson Harper  <jackson@ximian.com>
20662         * ImageList.cs: Don't dispose the image after it is added to the
20663         image list. Only reformat images that need to be resized.
20665 2005-09-25  Jackson Harper  <jackson@ximian.com>
20667         * ImageList.cs: Don't set the format when changing the image.
20669 2005-09-25  Jackson Harper  <jackson@ximian.com>
20671         * TreeView.cs: We can't just assume the node has a font. Use the
20672         treeviews font if no node font is available.
20674 2005-09-25  Jackson Harper  <jackson@ximian.com>
20676         * TreeView.cs: Allow the scrollbars to be reset with negative
20677         values.
20678         - Don't add scrollbars to negative sized windows.
20680 2005-09-23  Jackson Harper  <jackson@ximian.com>
20682         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
20683         old Mono.Posix. Also remove some stray code that shouldn't have
20684         been committed.
20686 2005-09-23  Jackson Harper  <jackson@ximian.com>
20688         * TreeView.cs: Attempt at proper sizing of the horizontal
20689         scrollbar. Also don't resize the scrollbars unless they are
20690         visible.
20692 2005-09-23  Jackson Harper  <jackson@ximian.com>
20694         * TreeView.cs: We don't need to expand the invalid area when the
20695         selection changes, as this is all drawn in the node's bounding
20696         box. The area needs to be expanded (previous typo was contracting
20697         it) when the focus rect moves.
20699 2005-09-23  Jackson Harper  <jackson@ximian.com>
20701         * TreeView.cs: Display the selection box under the correct
20702         circumstances. We were rendering white text with no selection box
20703         before.
20705 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
20707         * TextControl.cs(Split): Now updates selection start/end if it points 
20708           into a line that's being split. Fixes a FIXME and bug #75258
20710 2005-09-23  Jackson Harper  <jackson@ximian.com>
20712         * Binding.cs:
20713         * ListControl.cs: Don't use the path when retrieving binding
20714         managers from the binding context. My bat sense tells me that the
20715         path is only used on insertion.
20717 2005-09-22  Jackson Harper  <jackson@ximian.com>
20719         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
20721 2005-09-22  Jackson Harper  <jackson@ximian.com>
20723         * Splitter.cs: There are special cursors used for splitting.
20724         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
20726 2005-09-22  Jackson Harper  <jackson@ximian.com>
20728         * Splitter.cs: Change the cursor appropriately when the splitter
20729         is moused over, so the user actually knows there is a splitter
20730         there.
20732 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
20734        * Label.cs : Fix ToString method to give same output as MS.NET
20736 2005-09-22  Jackson Harper  <jackson@ximian.com>
20738         * TreeView.cs: Create the scrollbars when the handle is created
20739         and add them right away, just make them invisble. Also account for
20740         the window being shrunk vertically to the point that the vert
20741         scrollbar needs to be added.
20742         - Remove some 0.5 adjustments to get around anti aliasing issues.
20743         
20744 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
20745          
20746         * MainMenu.cs: Fixes default value
20747         * MenuItem.cs: Fixes default value
20749 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
20751         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
20753 2005-09-21  Jackson Harper  <jackson@ximian.com>
20755         * Control.cs: Don't try to set the border style on the window if
20756         it hasn't been created. When the window is created the border
20757         style will be used.
20759 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
20761         * Control.cs (Update): Don't call XplatUI if we don't have a
20762           window handle yet
20764 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
20766         * ContainerControl.cs: Instead of throwing an exception, print
20767           a one-time warning about Validate not being implemented
20768         * XplatUIWin32.cs: Removed debug output
20770 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
20772         * Control.cs: Only set XplatUI background if we expect the windowing
20773           system to handle the background. This stops controls that draw their
20774           own background from flickering
20776         * XplatUIX11.cs: Support custom visuals and colormaps for window 
20777           creation. This allows, amongst other things, using MWF X11 windows 
20778           with OpenGL.
20780 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
20782         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
20783           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
20784           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
20785           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
20786           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
20787           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
20788           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
20789           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
20790           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
20791           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
20792           GridColumnStylesCollection.cs, 
20793           IDataGridColumnStyleEditingNotificationService.cs,
20794           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
20795           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
20796           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
20797           TreeNodeCollection.cs, AmbientProperties.cs, 
20798           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
20799           DataObject.cs, ErrorProvider.cs, Splitter.cs,
20800           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
20801           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
20802           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
20803           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
20804           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
20805           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
20806           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
20807           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
20808           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
20809           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
20810           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
20811           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
20812           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
20813           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
20814           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
20815           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
20816           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
20817           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
20818           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
20819           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
20820           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
20821           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
20822           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
20823           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
20824           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
20825           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
20826           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
20827           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
20828           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
20829           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
20830           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
20831           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
20832           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
20833           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
20834           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
20836 2005-09-21  Jackson Harper  <jackson@ximian.com>
20838         * TreeNode.cs: Call Before/After Expand not Collapse when
20839         expanding.
20841 2005-09-20  Jackson Harper  <jackson@ximian.com>
20842         
20843         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
20845 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
20846          
20847         * ListViewItem.cs:
20848                 - Fixes bug 76120
20849                 - Fixes proper storing of subitems
20850                 - Fixes not updated items
20852 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
20854         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
20855           things if our window handle isn't created yet. Also disabled 
20856           debug for TextBoxBase
20858 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
20860         * MenuAPI.cs: Remove filtering of events to allow menu usage
20862 2005-09-20  Miguel de Icaza  <miguel@novell.com>
20864         * Cursor.cs: Allow null to be passed to Cursor.Current.
20866 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
20868         * ThemeWin32Classic.cs:
20869           - Change some private methods/fields to protected virtual so that 
20870             they can be accessed and overriden in derived classes
20871           - First refactoring of some methods. Derived themes now don't 
20872             need to duplicate the complete code from ThemeWin32Classic
20873         * ThemeNice.cs:
20874           - Added nice StatusBar
20875           - Derive from ThemeWin32Classic and not Theme
20876           - Removed duplicate ThemeWin32Classic code
20878 2005-09-20  Miguel de Icaza  <miguel@novell.com>
20880         * Control.cs (ControlCollection.Add): If the value null is passed
20881         the control is ignored. 
20883         Optimize this loop.
20885 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
20887         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
20888           PostQuitMessage state.
20889         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
20891 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
20893         * Application.cs: Our constructor will never get called, move 
20894           initialization to fields; fixes bug #75933
20896 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
20898         * FileDialog.cs :
20899                 - Allow files to be selected properly using file name
20900                 combo box.
20901                 - Add ability to change diretory (absolute / relative)
20902                 using file name combo box.
20904 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
20905          
20906         * ListBox.cs: 
20907                 - Fixes Multicolumn listboxes item wrong calculations
20908                 - Allows to click when only one item is in the listbox
20909                 - Fixes crash when no items using keyboard navigation
20911 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
20913         * ComboBox.cs: Reverted almost everything from the latest patch which
20914           broke ComboBox
20916 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
20917         
20918         * ToolTip.cs:
20919                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
20920         * ComboBox.cs:
20921                 - When DropDownStyle is Simple, it does not show scrollbar 
20922                 to the last item of the list.
20923                 - When DropDownStyle is Simple, it crashed when the list was 
20924                 scrolled down with the down cursor key.
20925                 - Fixed a bug that when DropDownStyle is DropDownList, the 
20926                 selected item was not shown.
20927                 - The position of the selected item was not preserved when 
20928                 the next dropdown happened.
20929         * ThemeWin32Classic.cs:
20930                 - Items were wrapped at the right end.
20931         * CheckedListBox.cs:
20932                 - Fixed Add method
20933         * ListBox.cs:
20934                 - Items should be fully shown.
20935                 - When resizing and vertical scrollbar disappeared, the item 
20936                 of index 0 should be on the top of the list.
20937                 - GetItemRectangle should consider the size of ver. scrollbar
20938         * StatusBar.cs:
20939                 - SizingGrip area should not be allocated when it is not 
20940                 displayed.
20941                 - Now it reflects MinWidth of the containing panel and 
20942                 fixed a crash that happens when its width becomes so small.
20944 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
20946         * CheckedListBox.cs: Fixes bug 76028
20947         * ListBox.cs: Fixes bug 76028
20949 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
20951         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
20952         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
20954 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
20956         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
20958 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
20960         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
20962 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
20964         * IRootGridEntry.cs: Added
20965         * PropertyGridCommands.cs: Added
20966         * PropertiesTab.cs: Added missing methods and property
20967         * PropertyGridView.cs: Made class internal
20968         * PropertyGridTextBox.cs: Made class internal
20970 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
20972         * MimeIcon.cs: Try to check some other environment variables
20973           if "DESKTOP_SESSION" returns "default"
20975 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
20977         * ThemeNice.cs: Corrected background colors (e.g. menus)
20978         * ColorDialog.cs: Use correct background colors for controls
20980 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
20982         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
20984 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
20986         * RichTextBox.cs: Added initial implementation
20987         * lang.cs: Removed. Was accidentally checked in long time ago
20988         * TODO: Removed. Contents were obsolete
20990 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
20991                                                                                 
20992         * PropertiesTab.cs : Added
20994 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
20995                                                                                 
20996         * PropertyGrid.cs : Update
20997         * PropertyGridView.cs : Update
20998         * System.Windows.Forms.resx : Added images and strings
21000 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
21002         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
21004 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
21006         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
21007           a busy loop right after the Ungrab the X11 display is otherwise 
21008           blocked
21010 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
21012         * ThemeWin32Classic.cs: Optimise the use of clipping
21014 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
21016         * DataGrid.cs: fixes recursion bug
21018 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
21020         * ThemeNice.cs: 
21021           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
21022           - Cleanup
21024 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
21026         * ThemeNice.cs: Draw nice ProgressBars
21028 2005-09-01  Miguel de Icaza  <miguel@novell.com>
21030         * VScrollBar.cs: Another buglet found by Aaron's tool. 
21032         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
21033         bug finder.
21035 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
21037         * ThemeNice.cs:
21038           - Added nicer menu drawing
21039           - Updated DrawTab
21040           - some refactoring
21042 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
21044         * CreateParams.cs (ToString): Made output match MS
21045         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
21046             handle is already created (to avoid forcing window creation)
21047         * XplatUIX11.cs: Set window text to caption after creating window,
21048           in case Text was set before window was created
21049         * Form.cs: Use this.Text instead of a static string as caption
21051 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
21053         * NotifyIcon.cs: Don't set the window to visible; this screws
21054           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
21055           OnPaint without a bitmap)
21056         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
21057           happen very often anyway; we could add the check to the WM_PAINT 
21058           event generation code
21060 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
21062         * NotifyIcon.cs: Fill the icon area with a background color, to 
21063           avoid 'residue' when transparent icons are drawn
21064         * XplatUIX11.cs:
21065           - Handle whole_window == client_window when destroying windows
21066           - SystrayAdd(): Set client_window to whole_window value to
21067             get mouse and other events passed to NotifyIcon
21069 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
21071         * Form.cs: Set proper default for Opacity property
21072         * NotifyIcon.cs:
21073           - ShowSystray(): Don't bother creating telling the OS
21074             about the systray item if no icon is provided
21075           - Now handles WM_NCPAINT message to deal with whole/client window
21076             split
21077           - Create window as visible to not get caught by Expose optimization
21078         * Hwnd.cs: Removed debug message
21079         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
21080           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
21081             PaintEventStart/End to use new client argument
21082         * TextBoxBase.cs:
21083           - Commented out debug messages
21084           - Switched PaintEventStart/End to use new client argument
21085         * XplatUI.cs: Added client window bool to PaintEventStart()/
21086           PaintEventEnd() calls, to support drawing in non-client areas
21087         * XplatUIDriver.cs: 
21088           - Added client window bool to PaintEventStart()/PaintEventEnd() 
21089             calls, to support drawing in non-client areas
21090           - Added conditional compile to allow using MWF BeginInvoke 
21091             on MS runtime
21092         * XplatUIX11.cs:
21093           - Added some conditional debug output
21094           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
21095             whole/client window split
21096           - Implemented handling of client argument to PaintEventStart()/End()
21097         * Control.cs:
21098           - Throw exception if BeginInvoke() is called and the window handle
21099             or one of the window's parent handles is not created
21100           - Added conditional compile to allow using MWF BeginInvoke on
21101             MS runtime
21102           - get_Parent(): Only sets parent if handle is created. This avoids
21103             forcing window handle creation when parent is set.
21104           - Now fires Layout and Parent changed events in proper order
21105           - Switched to use Handle instead of window.Handle for Z-Order setting,
21106             the get_Parent() patch above causes us to possibly get null for 'window'
21107           - Implemented handling of client argument to PaintEventStart()/End()
21108           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
21109             default handling)
21110           - Now sends a Refresh() to all child windows when Refresh() is called
21112 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
21114         * Form.cs: Added (non-functional) Opacity property
21115         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
21117 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
21118         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
21119           use export MONO_THEME=nice to activate it.
21120           Currently supported controls:
21121           - Button
21122           - ComboBox
21123           - ScrollBar
21124           - TabControl (TabAlignment.Top only, other will follow)
21125         * ThemeEngine.cs: Add theme nice
21126         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
21127           if enabled
21129 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
21131         * Splitter.cs: Resize docked control and its neighbor.
21133 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
21134         -- Making Windows with Menus layout correctly --
21135         * Form.cs : The first leg of the fix
21136                 Menu setter - adjust Client Size as needed to make space for the menu
21137                 SetClientSizeCore - doesn't call base version to be able to pass the 
21138                         menu handle to XplatUI.CalculateWindowRect
21139         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
21140         * XplatUIX11.cs: The critical second leg of the fix
21141                 GetWindowPos needs to use a recalculated client_rect
21142                 so that resizing the window doesn't break layout of child controls. 
21143                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
21144                 Lots of \t\n killed
21146 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21148         * Label.cs: Now properly recalculates width and height on Font and Text
21149           changes if AutoSize is set
21151 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
21152         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
21154 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
21156         * ImageList.cs: Makes ToString method compatible with MS
21158 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
21160         * MenuAPI.cs: fixes bug 75716
21162 2005-08-11 Umadevi S <sumadevi@novell.com>
21163         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
21165 2005-08-11 Umadevi S <sumadevi@novell.com>
21166         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
21168 2005-08-10  Umadevi S <sumadevi@novell.com>
21169         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
21171 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
21173         * Menu.cs: fixes bug 75700
21174         * MenuAPI.cs: fixes navigation issues
21176 2005-08-09  Umadevi S <sumadevi@novell.com>
21177         * CheckedListBox.cs - simple fix for GetItemChecked.
21179 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
21181         * ComboBox.cs: Serveral fixes
21182         * ListBox.cs: Serveral fixes
21184 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
21186         * ComboBox.cs: Fixes FindString methods and GetItemHeight
21187         * ListBox.cs: Fixes FindString methods
21189 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
21191         * DataGrid.cs: fixes bugs exposed by new tests
21193 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
21195         * Mime.cs: Compile Mono assembly references only if compiling
21196           with Mono (Allows to build with VS.Net again)
21198 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
21200         * Control.cs (PaintControlBackground): Draw background image
21201         corrrectly.
21202         (CheckForIllegalCrossThreadCalls): Stubbed.
21203         
21204         * Form.cs (OnCreateControl): Center when should be centered.
21205         
21206         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
21208 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
21210         * Binding.cs: Binding to properties should be case unsensitive
21212 2005-07-18 vlindos@nucleusys.com
21214         * DataGrid.cs: fixes setmember order
21216 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
21218         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
21219         * FileDialog.cs: FileDialog is now resizable and uses the new
21220           MimeIconEngine
21222 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
21224         * DataGridTextBoxColumn.cs: default value
21225         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
21226         * GridTableStylesCollection.cs: fixes checking MappingName
21227         * DataGridDrawingLogic.cs: fixes drawing logic issues
21228         * DataSourceHelper.cs: rewritten to make compatible with more data sources
21229         * DataGrid.cs: fixes    
21231 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
21233         * MimeGenerated.cs: Use case sensitive comparer for
21234           NameValueCollections
21236 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
21238         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
21239         * ThemeWin32Classic.cs: bug fixes, code refactoring
21240         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
21241         * DataGrid.cs: bug fixes, code refactoring
21242         * DataGridTextBox.cs: bug fixes, code refactoring
21243         * DataGridColumnStyle.cs:  bug fixes, code refactoring
21244         * Theme.cs:  bug fixes, code refactoring
21246 2005-07-01  Peter Bartok  <pbartok@novell.com> 
21248         * TextControl.cs: Quick fix for the reported crash on ColorDialog
21249           and other text box usage
21251 2005-07-01  Jackson Harper  <jackson@ximian.com>
21253         * TabControl.cs: Make sure the bottom of the tab covers the pages
21254         border.
21256 2005-06-30  Peter Bartok  <pbartok@novell.com> 
21258         * Form.cs (ShowDialog): Assign owner of the dialog
21259         * TextBoxBase.cs: Always refresh caret size when deleting, caret
21260           might have been moved to a tag with different height
21262 2005-06-30  Jackson Harper  <jackson@ximian.com>
21264         * Form.cs: Don't create an infinite loop when setting focus
21265         * MenuItem.cs: Don't dirty the parents if we don't have any
21267 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
21269         * LibSupport.cs: Rename
21271 2005-06-29  Peter Bartok  <pbartok@novell.com>
21273         * TextBoxBase.cs: Re-align caret after deleting a character
21274         * TextControl.cs:
21275           - DeleteChars(): Ensure that tag covers the provided position
21276           - StreamLine(): Drop reference for dropped tag
21278 2005-06-29  Peter Bartok  <pbartok@novell.com> 
21280         * TextControl.cs: 
21281           - Selections now work properly, anchoring at the initial location
21282             and properly extending in either direction (SetSelectionToCaret(),
21283             SetSelectionStart() and SetSelectionEnd())
21284           - No longer redraws the whole control on selection change, now
21285             calculates delta between previous and new selection and only
21286             invalidates/redraws that area
21287           - Fixed FindPos() math off-by-one errors
21288           - Changed DeleteChars() to verify the provided tag covers the
21289             provided position, selections may have a tag that doesn't cover
21290             the position if the selection is at a tag border
21291           - Fixed off-by-one errors in DeleteChars()
21292           - Added missing streamlining check in DeleteChars() to remove
21293             zero-length tags
21294           - Implemented Invalidate() method, now properly calculates exposures
21295             between two given lines/positions
21296           - Implemented SetSelection()
21297           - Obsoleted and removed FixupSelection()
21298           - Improved RecalculateDocument() logic, removing code duplication
21300 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21302         * LibSupport.cs: changes to match different input/output arguments.
21304 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21306         * LibSupport.cs: added libsupport.so init routine.
21308 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
21309         
21310         * ControlBindingsCollection.cs
21311                 - Throws an exception on null datasource when adding
21312                 - Checks for duplicated bindings when adding
21314 2005-06-28  Jackson Harper  <jackson@ximian.com>
21316         * TreeView.cs (OnKeyDown): Support left and right properly
21317         (navigates as well as expanding and collapsing.
21318         - Add support for Multiply, this expands all the selected nodes
21319         children.
21320         - Fix some tabbing.
21322 2005-06-28  Jackson Harper  <jackson@ximian.com>
21324         * TreeView.cs: Implement keyboard navigation, currently supports,
21325         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
21326         support for toggling checkboxes with the space bar.
21328 2005-06-28  Jackson Harper  <jackson@ximian.com>
21330         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
21331         tree.
21333 2005-06-28  Jackson Harper  <jackson@ximian.com>
21335         * TreeView.cs: Add missing event.
21337 2005-06-27  Peter Bartok  <pbartok@novell.com> 
21339         * TextControl.cs:
21340           - Made line ending size configurable (now allows for counting 
21341             lineendings as \n or \r\n)
21342           - Added margin to viewport to keep caret visible on right side
21343           - Fixed translation routines for line/pos to documentpos to consider
21344             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
21345           - Fixed some line-endings to be unix style
21346           - Fixed Document.FormatText to perform it's calculations 1-based
21347           - Added descriptions for a few methods that might otherwise get 
21348             used wrong
21349           - Added NOTE section with some basic conventions to remember at 
21350             the top of the file
21351           - Major fixup for RichTextBox selection drawing:
21352             * Fixed crashes when multiple tags on a single line were selected
21353             * fixed selection box drawing not overlaying text
21354             * fixed bogus offset calculation for tags not starting at index 1
21355             * Switched behaviour from using multiple Substrings of a 
21356               StringBuilder.ToString() to using multiple 
21357               StringBuilder.ToString(start, length) statements, hoping this is
21358               faster (kept original version commented out in the code, in case
21359               original version was faster)
21360         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
21361           alignment != Left
21362         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
21363           call it as well
21365 2005-06-27  Jackson Harper  <jackson@ximian.com>
21367         * TabControl.cs: Move to the left and right with the arrow
21368         keys. These keys don't cycle beyond first and last like
21369         tab. Refresh all the tabs when scrolling them to the left or
21370         right.
21372 2005-06-27  Jackson Harper  <jackson@ximian.com>
21374         * TabControl.cs:
21375           - ToString: Added method
21376           - CreateParams: Remove TODO and comment
21377           - OnKeyDown: Cycle through bounds properly.
21378           - SelectedIndex: Scroll to the right or left if we need to
21379           display the newly selected tab.
21381 2005-06-23  Jackson Harper  <jackson@ximian.com>
21383         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
21384         set.
21386 2005-06-23  Jackson Harper  <jackson@ximian.com>
21388         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
21389         CTRL-SHIFT-TAB, and HOME, END are there any others?
21391 2005-06-23  Jackson Harper  <jackson@ximian.com>
21393         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
21395 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
21396         
21397         * DataGridTextBoxColumn.cs: fixes and enhancements
21398         * ThemeWin32Classic.cs: fixes and enhancements
21399         * DataGridBoolColumn.cs:  fixes and enhancements
21400         * DataGridDrawingLogic.cs:  fixes and enhancements
21401         * CurrencyManager.cs: fixes and enhancements
21402         * DataGrid.cs: fixes and enhancements
21403         * DataGridColumnStyle.cs:  fixes and enhancements
21405 2005-06-22  Jackson Harper  <jackson@ximian.com>
21407         * TabControl.cs: Add some missing methods that just call into the
21408         base. Make the TabPageCollection's IList interface behave in the
21409         same manner as the MS implementation.
21411 2005-06-22  Peter Bartok  <pbartok@novell.com> 
21413         * TextControl.cs: Added sanity check
21414         * TextBoxBase.cs: 
21415           - Fixed wrapping behaviour, don't set wrap on single line controls
21416             (this fixes the breakage of colordialog introduced in an earlier
21417              checkin)
21418           - Added rudimentary support for autoscrolling right-aligned controls
21419             (still needs fixing, also, center alignment scroll is missing)
21421 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
21422         
21423         * ScrollBar.cs: Fixes thumbpos on Maximum values
21425 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
21426         
21427         * PropertyGridView.cs: Pass context information to UITypeEditors 
21429 2005-06-21  Peter Bartok  <pbartok@novell.com> 
21431         * TextBoxBase.cs:
21432           - Now calling PositionCaret with absolute space coordinates
21433           - Enabled vertical scrolling
21434           - Better tracking of scrollbar changes, tied into WidthChange
21435             event
21436           - Improved cursor tracking
21437           - Removed debug output
21438         * TextControl.cs:
21439           - PositionCaret coordinates are now works in absolute space, not 
21440             the canvas
21441           - Improved tracking of document size
21442           - Added events for width and height changes
21444 2005-06-21  Peter Bartok  <pbartok@novell.com>
21446         * Form.cs: Set focus to active control when form is activated
21447         * TextControl.cs: 
21448           - Added word-wrap functionality to RecalculateLine() 
21449           - Added some short function descriptions for VS.Net to aid in
21450             writing dependent controls
21451           - Added Caret property, returning the current coords of the caret
21452           - Added ViewPortWidth and ViewPortHeight properties
21453           - Added Wrap property
21454           - Added CaretMoved event
21455           - Removed some old debug code
21456           - Split() can now create soft splits
21457           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
21458           - Added method to format existing text
21459           - Fixed size/alignment calculations to use viewport
21460           - RecalculateDocument now can handle changing line-numbers while
21461             calculating lines
21463         * TextBox.cs:
21464           - Added some wrap logic, we don't wrap if alignment is not left
21465           - Added casts for scrollbar var, base class switched types to
21466             also support RichTextBoxA
21467           - Implemented handling of scrollbar visibility flags
21469         * TextBoxBase.cs:
21470           - Switched scrollbars type to RichTextBoxScrollBars to support
21471             RichTextBox
21472           - Added tracking of canvas width/height
21473           - Switched scrollbars to be not selectable (to keep focus on text)
21474           - Added central CalculateDocument() method to handle all redraw
21475             requirements
21476           - Added ReadOnly support
21477           - Added WordWrap support
21478           - Fixed handling of Enter key (we now treat it as a DialogKey)
21479           - Fixed caret positioning when h or v scroll is not zero
21480           - Fixed placing/generation of vertical scrollbar
21481           - Added CalculateScrollBars() method to allow updating scrollbar
21482             limits and visibility
21483           - Fixed handling of horizontal scroll
21484           - Added handling of vertical scroll
21485           - Implemented auto-'jump' when caret moves to close to a left or
21486             right border and there is text to be scrolled into view (currently
21487             there's the potential for a stack overflow, until a bug in
21488             scrollbar is fixed)
21490 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
21491         
21492         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
21494 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
21496         * Mime.cs:
21497         - added inodes.
21498         - return application/x-zerosize for files with size zero
21499           (if no extension pattern matches).
21500         - check matches collection for strings too.
21501         - return only the first mime type if the name value
21502           collection has more than one mime type.
21504 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
21505         
21506         * PropertyGrid.cs: Cleaned up some TODOs
21507         * PropertyGridView.cs: Added support for UITypeEditors
21509 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
21510         
21511         * DataGrid.cs: clears cached value
21513 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
21515         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
21516         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
21517         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
21518         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
21519         
21520 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
21522         * ThemeWin32Classic.cs: fixes colour
21524 2005-06-15  Peter Bartok  <pbartok@novell.com>
21526         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
21527         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
21528         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
21529         * Control.cs: Added some MWFCategory and MWFDescription attributes
21530         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
21532 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
21534         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
21535         usage
21537 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
21539         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
21540         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
21541         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
21542         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
21543         * DataGrid.cs: default datagrid settings for Default Styles, fixes
21544         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
21546 2005-06-13  Jackson Harper  <jackson@ximian.com>
21548         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
21549         isn't printed when the user enables dropping. (X11 does accept
21550         drops).
21551         
21552 2005-06-13  Jackson Harper  <jackson@ximian.com>
21554         * TreeView.cs: Remove some TODOS.
21556 2005-06-13  Jackson Harper  <jackson@ximian.com>
21558         * Form.cs: Hook into the mdi framework.
21559         * MdiClient.cs: Use the base control collections add method so
21560         parents get setup correctly. Set the default back colour and dock
21561         style.
21562         * MdiChildContext.cs: New class, this bad actor handles an
21563         instance of an MDI window. Right now there is only basic
21564         support. You can drag, close, and resize windows. Minimize and
21565         Maximize are partially implemented.
21567 2005-06-13  Jackson Harper  <jackson@ximian.com>
21569         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
21570         freaky when both vals are negative. NOTE: There are probably other
21571         places in XplatUIX11 that this needs to be done.
21573 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
21575         * DataGrid.cs: implement missing methods, move KeyboardNavigation
21576         * DataGridColumnStyle.cs: fixes signature
21578 2005-06-12  Jackson Harper  <jackson@ximian.com>
21580         * XplatUIX11.cs: Use sizing cursors similar to the ones on
21581         windows.
21583 2005-06-11  Jackson Harper  <jackson@ximian.com>
21585         * StatusBarPanel.cs: Signature cleanups. Implement
21586         BeginInit/EndInit.
21588 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
21590         * DataGridTextBoxColumn.cs: Honors aligment
21591         * GridColumnStylesCollection.cs: Contains is case unsensitive
21592         * GridTableStylesCollection.cs: several fixes
21593         * DataGridTableStyle.cs: default column creation
21594         * DataGridDrawingLogic.cs: fixes
21595         * CurrencyManager.cs: ListName property
21596         * DataGrid.cs: multiple styles support
21597         * DataGridColumnStyle.cs: fixes
21598         
21600 2005-06-10  Peter Bartok  <pbartok@novell.com>
21602         * Control.cs(Select): Moved SetFocus call to avoid potential
21603           loops if controls change the active control when getting focus
21604         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
21605           the up/down buttons
21607 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
21609         * ImageListConverter.cs: Implemented
21611 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
21613         * MonthCalendar.cs: Wired in NumericUpDown control for year
21615 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
21617         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
21618           DoubleClick events, since they are not meant to be fired.
21620 2005-06-09  Peter Bartok  <pbartok@novell.com>
21622         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
21623           Jonathan's standalone controls into MWF, implemented missing
21624           events, attributes and methods; added xxxAccessible classes
21625         * AccessibleObject.cs: Made fields internal so other classes
21626           can change them if needed
21628 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
21630         * UpDownBase.cs: Complete implementation
21631         * NumericUpDown.cs: Complete implementation
21632         * DomainUpDown.cs: Complete implementation
21634 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
21636         * DataGridTextBoxColumn.cs: drawing fixes
21637         * DataGridCell.cs: fixes ToString method to match MSNet
21638         * DataGridTableStyle.cs: fixes
21639         * DataGridBoolColumn.cs: fixes, drawing
21640         * DataGridDrawingLogic.cs: fixes, new methods
21641         * DataGridTextBox.cs: Keyboard and fixes
21642         * DataGrid.cs:
21643                 - Keyboard navigation
21644                 - Scrolling fixes
21645                 - Row selection (single, multiple, deletion, etc)
21646                 - Lots of fixes
21647         
21648 2005-06-07  Jackson Harper  <jackson@ximian.com>
21650         * ThemeWin32Classic.cs: Clear the background area when drawing
21651         buttons.
21653 2005-06-06  Peter Bartok  <pbartok@novell.com>
21655         * ImageListStreamer.cs: Fixed signature for GetData
21656         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
21657         * ComboBox.cs:
21658           - Added missing ChildAccessibleObject class
21659           - Added missing OnXXXFocus overrides, switched to using those
21660             instead of the event handler
21661         * Control.cs:
21662           - Added Parent property for ControlAccessibleObject
21663           - Fixed signatures
21664           - Fixed attributes
21665           - Added ResetBindings()
21666         * ListBindingConverter.cs: Implemented some methods
21667         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
21668         * ImageList.cs: Implemented basic handle scheme, removed TODOs
21669         * ContainerControl.cs: Fixed signature, now subscribing to the
21670           ControlRemoved event instead of overriding the handler, LAMESPEC
21671         * CurrencyManager.cs: Added missing attribute
21672         * MonthCalendar.cs: Added missing properties
21674 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
21676         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
21677         
21678 2005-06-06  Gaurav Vaish and Ankit Jain
21680         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
21681         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
21682         
21683 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
21685         * Control.cs: fixes CreateParams Width / Height.
21687 2005-06-05  Peter Bartok  <pbartok@novell.com>
21689         * Win32DnD.cs: Removed compilation warnings
21691 2005-06-05  Peter Bartok  <pbartok@novell.com>
21693         * Control.cs (CreateParams): Since we don't know if one of the
21694           properties we use is overridden, lets make sure if we fail accessing
21695           we continue with a backup plan
21697 2005-06-05  Peter Bartok  <pbartok@novell.com>
21699         * Win32DnD.cs:
21700           - Removed debug output
21701           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
21702             struct
21703           - Plugged resource leak
21704         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
21705           MS size
21707 2005-06-05  Peter Bartok  <pbartok@novell.com>
21709         * XplatUIWin32.cs: Removed DnD code
21710         * Win32DnD.cs: Implemented drop source and drop target functionality
21712 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21714         * UpDownBase.cs: remove duplicate addition of event, enable some code
21715         that was commented out.
21716         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
21717         Validate input when a key is pressed. It works fine now for every
21718         combination of Hexadecimal. Only missing some drawing love when sharing
21719         space with other controls.
21721 2005-06-04  Peter Bartok  <pbartok@novell.com>
21723         * Control.cs:
21724           - We need to pass a window for DragDrop, so enable callback events
21725           - Added DnD callback events when being a DragSource
21726         * XplatUI.cs (StartDrag): Added window handle argument
21727         * XplatUIDriver.cs (StartDrag): Added window handle argument
21728         * QueryContinueDragEventArgs: Made fields internally accessible so
21729           drivers can set them
21730         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
21731           can set them
21733 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
21735         * DataGridTextBoxColumn.cs: column text editing
21736         * DataGridTableStyle.cs: Respect columns styles created by the user
21737         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
21738         * DataGridBoolColumn.cs: bool column editing
21739         * DataGrid.cs: fixes to scrolling, properties, etc
21740         * DataGridTextBox.cs: handle keyboard
21741         * DataGridColumnStyle.cs: fixes
21743 2005-06-02  Jackson Harper  <jackson@ximian.com>
21745         * ImageListStreamer.cs: Somewhat broken implementation of
21746         GetObjectData. The RLE needs some work to match MS properly.
21748 2005-06-02  Jackson Harper  <jackson@ximian.com>
21750         * X11Dnd.cs: Attempting to keep at least one file in MWF
21751         monostyled.
21753 2005-06-02  Peter Bartok  <pbartok@novell.com>
21755         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
21756           that way
21758 2005-06-02  Peter Bartok  <pbartok@novell.com>
21760         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
21761         * XplatUI.cs: Added DoDragDrop() method
21762         * XplatUIDriver.cs: Added DoDragDrop() method
21764 2005-06-02  Jackson Harper  <jackson@ximian.com>
21766         * Splitter.cs: Implement BorderStyle.
21768 2005-06-02  Jackson Harper  <jackson@ximian.com>
21770         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
21771         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
21772         X11 using XDND.
21774 2005-06-02  Peter Bartok  <pbartok@novell.com>
21776         * DataObject.cs:
21777           - Added Data setter
21778           - Fixed broken insertion code for SetData, now also
21779             overwrites any existing entry of the same format name
21780         * Hwnd.cs: Added list of pointers that automatically gets
21781           freed when the window is disposed
21782         * XplatUI.cs: Call driver initialization method when loading
21783           a driver
21784         * Control.cs:
21785           - OnDragLeave takes EventArgs, not DragEventArgs
21786           - Added setting of WS_EX_ACCEPTFILES style when dropping is
21787             supported
21788           - Forces style update when drop state changes
21789         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
21790           not perfect since we cannot (yet) call the IDataObject.GetData()
21791           method, we keep getting 0x80004005 error, dunno why)
21793 2005-06-02  Peter Bartok  <pbartok@novell.com>
21795         * DragEventArgs.cs: Make fields internal so we can cache the
21796           object and re-set the fields from XplatUI
21798 2005-06-02  Jackson Harper  <jackson@ximian.com>
21800         * Control.cs: Add some internal methods so the DnD subsystem can
21801         raise DnD events. Also call into the driver when AllowDrop is set.
21802         * XplatUI.cs:
21803         * XplatUIDriver.cs: New method for setting whether or not a window
21804         is allowed to accept drag and drop messages.
21805                 
21806 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
21807         
21808         * ScrollBar.cs: Make sure that values sent in Scroll events
21809         are always between Maximum and Minimum.
21811 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
21813         * Menu.cs: Call MenuChanged when menuitem visibility has been
21814         changed.
21815         * MenuItem.cs: Rebuild menu when item is (not) visible.
21816         * MainMenu.cs: MainMenu has special MenuChanged.
21817         * Theme.cs: Caption and FrameBorderSize are not fixed.
21818         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
21819         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
21820         * XplatUIX11.cs,
21821         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
21822         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
21824 2005-05-30  Jackson Harper  <jackson@ximian.com>
21826         * DataFormat.cs: We can't statically initialize this stuff because
21827         it calls into the xplatui and could create a loop. So we lazy init
21828         it.
21830 2005-05-28  Jackson Harper  <jackson@ximian.com>
21832         * Control.cs: Proper implementation of Product(Name/Version).
21834 2005-05-27  Jackson Harper  <jackson@ximian.com>
21836         * DataObject.cs: Dont crash if no data is found.
21838 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
21839         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
21840                 as per status page, guessing it should be set to true
21842 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
21844         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
21845         * DataGridTableStyle.cs: set proper formatting text, def header text
21846         * ThemeWin32Classic.cs: new themable paramaters
21847         * DataGridBoolColumn.cs: paint check box, get data, fixes
21848         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
21849         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
21850         * DataGridColumnStyle.cs: fixes
21851         * Theme.cs: new themable paramaters
21852                 
21853 2005-05-26  Peter Bartok  <pbartok@novell.com>
21855         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
21857 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
21858         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
21860 2005-05-24  Peter Bartok  <pbartok@novell.com>
21862         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
21863           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
21864           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
21865           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
21866           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
21867           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
21868           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
21869           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
21870           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
21871           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
21872           missing attributes, etc
21873         * DataGridPreferredColumnWidthTypeConverter.cs: Added
21875 2005-05-24  Peter Bartok  <pbartok@novell.com>
21877         * Help.cs: Added, implemented trivial functions, throws up MessageBox
21878           when user tries to get help
21879         * DataObject.cs, DataFormats.cs, LinkArea.cs,
21880           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
21881           to suppress warnings
21882         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
21883           avoid unreachable code warning
21885 2005-05-20  Peter Bartok  <pbartok@novell.com>
21887         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
21889 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
21891         * DataGridTextBoxColumn.cs: Basic painting methods
21892         * DataGridTableStyle.cs: Set table style in the column
21893         * ThemeWin32Classic.cs: Use Theme for colors
21894         * DataGridDrawingLogic.cs: Implement more drawing
21895         * DataGrid.cs: drawing, theming, enhacements, fixes
21896         * DataGridColumnStyle.cs: fixes, drawing
21897         * Theme.cs: theming for Datagrid
21899 2005-05-20  Peter Bartok  <pbartok@novell.com>
21901         * Cursor.cs: Implemented GetObjectData() method
21903 2005-05-20  Peter Bartok  <pbartok@novell.com>
21905         * Cursors.cs: Added setting of cursor name
21906         * Cursor.cs:
21907           - Implemented constructors
21908           - Implemented Draw and DrawStretched
21909           - Implemented Current property
21910           - Implemented == and != operators
21911           - Implemented Dispose()
21912           - Implemented ToString
21913           - Added missing attributes
21914         * XplatUIX11.cs:
21915           - Added missing reset for OverrideCursor when DoEvents is called
21916           - Fixed creation of cursor, logic was wrong
21917         * XplatUIWin32.cs:
21918           - Added missing reset for OverrideCursor when DoEvents is called
21919           - Fixed creation of cursor, bit arrays were swapped
21920         * Clipboard.cs: Removed obsolete MonoTODO attribute
21922 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
21924         * ComboBox.cs: fixes OnSelectedItemChanged
21925         * ControlBindingsCollection.cs: fixes item range check
21927 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
21929         * UpDownBase.cs:
21930                 - Calc preferred height properly
21931                 - Implement missing properties
21932                 
21933         * NumericUpDown.cs: Implement missing events
21935 2005-05-19  Jackson Harper  <jackson@ximian.com>
21937         * TabControl.cs: New method that resizes the tab pages before
21938         redrawing them. This as needed as the control is double buffered
21939         and sizing will not be recalculated unless ResizeTabPages is
21940         called.
21941         * TabPage.cs: Set base.Text instead of Text in the constructor so
21942         that UpdateOwner does not get called. Use the new Redraw method of
21943         TabControl instead of Refresh so the sizing is recalculated.
21944         * ThemeWin32Classic.cs: Draw the text for button tabs.
21946 2005-05-19  Jackson Harper  <jackson@ximian.com>
21948         * Control.cs: Paint control background images. Fix typo where
21949         PaintControlBackground was not getting called correctly.
21951 2005-05-19  Peter Bartok  <pbartok@novell.com>
21953         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
21954           I can investigate, apparently I broke FileDialog
21956 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
21958         * AxHost.cs: Some simple properties.
21959         * Control.cs: window must be accessible after ctor.
21960         * Form.cs: Added TransparencyKey property.
21961         * TextBoxBase.cs: Implemented Clear. Text property can be null.
21962         * XplatUIWin32.cs: SetBorderStyle implemented.
21964 2005-05-18  Peter Bartok  <pbartok@novell.com>
21966         * DataObject.cs: Entries are not global but particular to the
21967           DataObject, now it behaves that way
21968         * XplatUIWin32.cs: Implemented Clipboard methods
21969         * Clipboard.cs: Implemented
21970         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
21971         * XplatUIOSX.cs: Updated to final clipboard prototypes
21972         * XplatUIX11.cs: Implemented Clipboard methods
21973         * XplatUIDriver.cs: Updated to final clipboard prototypes
21974         * XplatUIStructs.cs:
21975           - Added BITMAPINFOHEADER struct
21976           - Added ClipboardFormats enum
21977         * X11Structs.cs:
21978           - Added ClipboardStruct
21979           - Added Atom enum items for clipboard types
21980           - Fixed atom types for Selection event structures
21981         * DataFormats.cs:
21982           - Added internal properties and methods for drivers to enumerate
21983             all known formats
21984           - Switched initialization method to allow drivers to assign their
21985             own IDs even for the MS predefined clipboard IDs
21986         * XplatUI.cs: Updated to final clipboard interface
21988 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
21989         * PropertyGridView.cs: Fixed compiler warnings.
21991 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
21992         * PropertyGrid.cs: Added some event calls
21993         * PropertyGridView.cs: Change drawing code to use double buffering
21994         * PropertyGridTextBox.cs: Changed Text property name
21995         * GridItem.cs: Added Bounds property.
21996         * GridEntry.cs: Added Bounds property.
21998 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
22000         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
22001         since GetType() may not return the correct type if the object is
22002         a remoting proxy.
22004 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
22006         * TreeNodeCollection.cs: fixes get/set item ranges
22007         
22008 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
22010         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
22011                 
22012 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
22014         * ComboBox.cs: Fix item range comparation
22015         * ListView.cs: Fix item range comparation
22017 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
22019         * FontDialog.cs:
22020           - Clear example panel when OnPaint is called
22021           - Better solution for displaying the example panel text
22022           - Select default indexes in the ListBoxes
22024 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
22026         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
22028 2005-05-11  Peter Bartok  <pbartok@novell.com>
22030         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
22031         * SelectionRangeConverter.cs: Implemented
22032         * PropertyGrid.cs: Fixed attribute value
22033         * Control.cs:
22034           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
22035           - Added Sebastien Pouliot's CAS Stack Propagation fixes
22036         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
22037           that's common to all drivers. First methods to go there are
22038           Sebastien Pouliot's CAS Stack Propagation helper methods
22039         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
22040           Sebastien Pouliot for CAS Stack Propagation
22042 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
22044         * OSXStructs.cs:
22045           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
22047 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
22049         * DataGridTextBoxColumn.cs: fixed some members
22050         * GridColumnStylesCollection.cs: indexed column is case insensitive
22051         * DataGridTableStyle.cs: fixes
22052         * ThemeWin32Classic.cs: add new theme parameter
22053         * Theme.cs: add new theme parameter
22054         * DataGridDrawingLogic.cs: Datagrid's drawing logic
22055         * DataGrid.cs: fixes, new internal properties, etc.
22056         * DataGridColumnStyle.cs: allows to set grid value
22057         *
22059 2005-05-10  Peter Bartok  <pbartok@novell.com>
22061         * AccessibleObject.cs:
22062           - Removed MonoTODO attribute on help, method is correct
22063           - Fixed Bounds property
22064         * AxHost.cs: Moved MonoTODO
22065         * ButtonBase.cs: Now setting AccessibleObject properties
22066         * RadioButton.cs: Setting proper AccessibleObject role
22067         * CheckBox.cs: Setting proper AccessibleObject role
22068         * ControlBindingsCollection.cs: Added properties, methods and attributes
22069         * DataFormats.cs: Fixed awkward internal API, and changed to enable
22070           userdefined DataFormats.Format items as well
22071         * ListControl.cs: Removed data_member from the public eye
22072         * OpenFileDialog.cs:
22073           - Made class sealed
22074           - Added missing attributes
22075         * SaveFileDialog.cs: Added missing attributes
22076         * ImageListStreamer.cs: Fixed code that caused warnings
22077         * LinkLabel.cs: Removed unreachable code
22078         * TreeView.cs: Fixed code that caused warnings
22079         * PropertyGridView.cs: Fixed code that caused warnings
22080         * GridColumnStylesCollection.cs: Added missing attributes
22081         * GridTableStylesCollection: Added missing attribute
22082         * PropertyManager: Added .ctor
22083         * SecurityIDType: Added
22084         * DataObject.cs: Implemented class
22085         * LinkArea.cs: Added missing attribute
22087 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
22089         * RadioButton.cs: call base method to allow to fire OnClick event
22090         * UpDownBase.cs: OnMouseUp call base method
22091         * CheckedListBox.cs: call base method before returning
22092         * TrackBar.cs: call base method before returning
22093         
22095 2005-05-10  Peter Bartok  <pbartok@novell.com>
22097         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
22098           for messages
22100 2005-05-10  Peter Bartok  <pbartok@novell.com>
22102         * DataFormats.cs: Implemented
22103         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
22104           XplatUIX11.cs: Added Clipboard APIs
22105         * XplatUIWin32.cs: Implemented Clipboard APIs
22106         * FolderBrowserDialog.cs: Added missing event, attributes
22108 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
22110         * CheckBox.cs: call base method to allow to fire OnClick event
22112 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
22114         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
22116 2005-05-06  Peter Bartok  <pbartok@novell.com>
22118         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
22119         * Screen.cs: Implemented
22120         * HelpNavigator.cs: Added
22121         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
22122           property
22123         * HelpProvider.cs: Implemented all we can do until we have a CHM
22124           help library (which means that "What's This" does work now)
22126 2005-05-06  Jackson Harper  <jackson@ximian.com>
22128         * XplatUIX11.cs: Fix waking up the main loop.
22129                 
22130 2005-05-05  Peter Bartok  <pbartok@novell.com>
22132         * XplatUI.cs: Updated revision
22133         * Form.cs: Removed enless loop
22134         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
22135         * Label.cs (OnPaint): Added call to base.OnPaint()
22136         * ToolTip.cs: Made ToolTipWindow reusable for other controls
22137         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
22138         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
22139         * AxHost.cs: Added
22140         * ButtonBase.cs: Moved base.OnPaint() call to end of method
22141         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
22142           to ToolTip.ToolTipWindow for drawing and size methods; this allows
22143           reuse of ToolTipWindow by other controls
22144         * SizeGrip.cs: Moved base.OnPaint() call to end of method
22145         * XplatUIX11.cs: Now clipping drawing area (experimental)
22146         * PictureBox.cs: Moved base.OnPaint() call to end of method
22147         * Theme.cs: Fixed ToolTip abstracts to match new format
22148         * ErrorProvider.cs: Implemented
22150 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
22152         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
22153         * LinkLabel.cs:
22154                 - Adds cursors
22155                 - Handles focus
22156                 - Implements LinkBehavior
22157                 - Fixes many issues
22159 2005-05-03  Jackson Harper  <jackson@ximian.com>
22161         * ListView.cs: Calculate the scrollbar positioning on resize and
22162         paint, so they get put in the correct place.
22164 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
22166         * ColorDialogs.cs: The small color panels are now handled by
22167           SmallColorControl. This fixes drawing of the focus rectangle
22168           and adds a 3D border.
22170 2005-05-03  Peter Bartok  <pbartok@novell.com>
22172         * Control.cs: Modified version of Jonathan Chamber's fix for
22173           double-buffering
22175 2005-05-03  Jackson Harper  <jackson@ximian.com>
22177         * ListView.cs: Remove redraw variable. Control now handles whether
22178         or not a redraw needs to be done, and will only raise the paint
22179         event if redrawing is needed.
22181 2005-05-03  Jackson Harper  <jackson@ximian.com>
22183         * Splitter.cs: No decorations for the splitter form. Cache the
22184         hatch brush.
22186 2005-05-03  Jackson Harper  <jackson@ximian.com>
22188         * TreeView.cs: Use dashed lines to connect nodes. Use the
22189         ControlPaint method for drawing the focus rect instead of doing
22190         that in treeview.
22192 2005-05-02  Peter Bartok  <pbartok@novell.com>
22194         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
22196 2005-04-29  Jackson Harper  <jackson@ximian.com>
22198         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
22199         entire image buffer. Just clear the clipping rectangle.
22201 2005-04-29  Jackson Harper  <jackson@ximian.com>
22203         * ThemeWin32Classic.cs: Don't draw list view items that are
22204         outside the clipping rectangle.
22206 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
22208         * ListBox.cs: added horizontal item scroll
22210 2005-04-29  Jackson Harper  <jackson@ximian.com>
22212         * ThemeWin32Classic.cs: Remove some old debug code that was
22213         causing flicker with the new double buffering code.
22215 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
22217         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
22218         behave like combobox and comboboxlist (still not sure if this is
22219         correct though).
22221 2005-04-28  Jackson Harper  <jackson@ximian.com>
22223         * ThemeWin32Classic.cs: Don't fill the middle of progress
22224         bars. This fills areas outside of the clip bounds that don't need
22225         to be filled.
22227 2005-04-28  Jackson Harper  <jackson@ximian.com>
22229         * Control.cs: Don't expose functionality to touch the image buffers.
22230         * ProgressBar.cs:
22231         * ListView.cs: We do not need to (and no longer can) manipulate
22232         the image buffers directly. All of this is handled by Control.
22234 2005-04-28  Peter Bartok  <pbartok@novell.com>
22236         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
22237           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
22238           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
22240 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
22242         * Combobox:
22243                 - Adjust control's height for non-simple comboboxes (bug fix)
22244                 - Remove dead code
22245         * MenuAPI.cs: remove unused var
22246         * ScrollBar.cs: remove unsed var
22247                  
22248         * ListBox.cs: unselect items when clearing
22250 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
22252         * ListControl.cs: honors OnPositionChanged and default Selected Item
22253         * ListBox.cs: unselect items when clearing
22255 2005-04-27  Jackson Harper  <jackson@ximian.com>
22257         * X11Keyboard.cs: Initialize a default keyboard and give a warning
22258         if a "correct" keyboard is not found. This will make us not crash,
22259         but might give some users bad keyboard layouts...seems to be the
22260         same thing rewind does.
22262 2005-04-27  Jackson Harper  <jackson@ximian.com>
22264         * BindingManagerBase.cs: Attach the current/position changed
22265         handlers to their respective events.
22267 2005-04-27  Jackson Harper  <jackson@ximian.com>
22269         * Control.cs: Make sure that the first WM_PAINT does a full draw,
22270         not just a blit.
22271         * ThemeWin32Classic.cs: Don't fill the background for picture
22272         boxes. This could overright user drawing.
22273         * ComboBox.cs: Just fill the clipping rect not the entire client
22274         rect when drawing the background. This prevents pieces of the
22275         image buffer from getting overwritten and is theoretically faster.
22277 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
22279         * ComboBox.cs: Databinding support fixes, fire missing events
22280         * ListControl.cs: implement missing methods and properties, fixes
22281         * ThemeWin32Classic.cs: Databiding support on Drawing
22282         * CheckedListBox.cs: Databinding support fixes, fire missing events
22283         * ListBox.cs: Databinding support fixes, fire missing events
22284         
22285 2005-04-25  Peter Bartok  <pbartok@novell.com>
22287         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
22289 2005-04-25  Jackson Harper  <jackson@ximian.com>
22291         * TreeView.cs: Use the horizontal scrollbars height not width when
22292         determining how much of the client area is available.
22294 2005-04-25  Jackson Harper  <jackson@ximian.com>
22296         * Control.cs: Double buffering is handled differently now. As per
22297         the spec, the extra buffer is created in the WM_PAINT message and
22298         passed down to the control's drawing code.
22299         * GroupBox.cs:
22300         * Label.cs:
22301         * CheckBox.cs:
22302         * ProgressBar.cs:
22303         * RadioButton.cs:
22304         * ColorDialog.cs:
22305         * ComboBox.cs:
22306         * PropertyGridView.cs:
22307         * UpDownBase.cs:
22308         * MessageBox.cs:
22309         * MenuAPI.cs:
22310         * ListView.cs:
22311         * ButtonBase.cs:
22312         * SizeGrip.cs:
22313         * ScrollBar.cs:
22314         * ListBox.cs:
22315         * TrackBar.cs:
22316         * ToolBar.cs:
22317         * PictureBox.cs:
22318         * DateTimePicker.cs:
22319         * StatusBar.cs:
22320         * TreeView.cs: Update to new double buffering system.
22321         * MonthCalendar.cs: Uncomment block, as Capture is now
22322         working. Update to new double buffering
22323         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
22324         * PaintEventArgs.cs: New internal method allows us to set the
22325         graphics object. This is used for double buffering.
22326         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
22327         rectangle. The internal paint_area var has been removed from
22328         StatusBar. The clipping rect should be used instead.
22329         * Theme.cs: Give the PictureBox drawing method a clipping rect.
22330         * TabPage.cs: The RefreshTabs method was removed, so just call the
22331         tab controls Refresh method now.
22332         * TabControl.cs: Update to new double buffering. Make sure the
22333         handle is created before sizing the tab pages, otherwise we will
22334         get stuck in a loop.
22336 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
22338         * LinkLabel.cs: Fix typo, bug #74719; patch
22339           from Borja Sanchez Zamorano
22341 2005-04-22  Jackson Harper  <jackson@ximian.com>
22343         * TreeNode.cs: Implement Handle stuff.
22344         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
22346 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
22348         * DataGridTextBoxColumn.cs: call base constructors, fixes
22349         * GridColumnStylesCollection.cs: missing events, methods, and functionality
22350         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
22351         * DataGridTableStyle.cs: implements create default column styles
22352         * DataGridBoolColumn.cs: which types can handle
22353         * DataGrid.cs: missing methods, fixes, new functionality
22354         * DataGridColumnStyle.cs: fixes
22356 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
22357         * FolderBrowserDialog.cs:
22358         - Use a thread to fill the TreeView
22359         - Adjusted some sizes
22361 2005-04-19  Peter Bartok  <pbartok@novell.com>
22363         * LinkLabel.cs: (Re-)create the pieces when setting the Text
22364           property. Fixes #74360.
22366 2005-04-19  Jackson Harper  <jackson@ximian.com>
22368         * XEventQueue.cs: Lock when getting the lockqueue size.
22369         * PictureBox.cs: Call base OnPaint
22370         
22371 2005-04-19  Peter Bartok  <pbartok@novell.com>
22373         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
22374           messages were no longer being processed (this broke BeginInvoke)
22376           
22377 2005-04-18  Jackson Harper  <jackson@ximian.com>
22379         * TreeView.cs: buglet that caused node images to get drawn
22380         regardless of whether or not they were in the clipping rectangle.
22382 2005-04-18  Jackson Harper  <jackson@ximian.com>
22384         * CurrencyManager.cs: There are four rules for GetItemProperties:
22385         - If the type is an array use the element type of the array
22386         - If the type is a typed list, use the type
22387         - If the list contains an Item property that is not an object, use
22388         that property
22389         - use the first element of the list if there are any elements in
22390         the list.
22391         
22392 2005-04-17  Jackson Harper  <jackson@ximian.oom>
22394         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
22395         click. This handles offsets for scrolling properly and reduces
22396         memory. Also fixed GetNode to not offset now that TopNode works
22397         properly.
22398         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
22399         
22400 2005-04-17  Jackson Harper  <jackson@ximian.com>
22402         * CursorConverter.cs: Initial implementation.
22404 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
22406         * ListControl.cs: work towards complex data binding support on ListControl
22407         * CurrencyManager.cs: work towards complex data binding support on ListControl
22408         * ListBox.cs: work towards complex data binding support on ListControl
22411 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
22413         * GridTableStylesCollection.cs: fixes name and constructor
22414         * DataGridTableStyle.cs: fixes
22415         * DataGridBoolColumn.cs: fixes names and constructors
22416         * DataGrid.cs: define methods and properties. Some init implementations
22417         * DataGridCell.cs: define methods and properties. Some init implementations
22418         * GridTablesFactory.cs: Define methods and properties
22420 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
22422         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
22423         graphics port changes.  We still want the coordinates in global screen
22424         coordinates.
22426 2005-04-14  Jackson Harper  <jackson@ximian.com>
22428         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
22429         check plus minus or checkbox clicks unless those features are enabled.
22431 2005-04-14  Jackson Harper  <jackson@ximian.com>
22433         * TreeView.cs: Add methods for setting the top and bottom visible
22434         nodes. TreeNode::EnsureVisible uses these methods.
22435         * TreeNode.cs: Implement EnsureVisible
22437 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
22439         * Form.cs: Pospone menu assignation if the window has not been created yet
22440         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
22441         size and position
22443 2005-04-12  Jackson Harper  <jackson@ximian.com>
22445         * TreeView.cs: Set the TopNode properly when scrolling
22446         occurs. This has the added benifit of reducing the amount of
22447         walking that needs to be done when drawing. Also removed an old
22448         misleading TODO.
22449         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
22450         
22451 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
22453         * Timer.cs: fixes interval setting when the timer is already enabled
22454         
22455 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
22457         * FolderBrowserDialog.cs: First approach
22459 2005-04-09  Peter Bartok  <pbartok@novell.com>
22461         * FolderBrowserDialog: Added
22463 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
22465         * LinkLabel.cs: move drawing code into the theme
22466         * ThemeWin32Classic.cs: drawing code and painting background bugfix
22467         * Theme.cs: define DrawLinkLabel method
22469 2005-04-05  Jackson Harper  <jackson@ximian.com>
22471         * BindingContext.cs: Use weak references so these bad actors don't
22472         stay alive longer then they need to.
22474 2005-04-05  Jackson Harper  <jackson@ximian.com>
22476         * ListControl.cs: Basic implementation of complex databinding.
22477         * ComboBox.cs:
22478         * ListBox.cs: Add calls to ListControl databinding methods.
22480 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
22482         * FileDialog.cs:
22483           - Don't change PopupButtonState to Normal when the
22484             PopupButton gets pressed several times.
22485           - Renamed ButtonPanel to PopupButtonPanel
22487 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
22489         * ColorDialog.cs: Use cached objects instead of creating them
22490         * LinkLabel.cs: Use cached objects instead of creating them
22491         * Splitter.cs: Use cached objects instead of creating them
22492         * FontDialog.cs: Use cached objects instead of creating them
22493         * PropertyGridView.cs: Use cached objects instead of creating them
22494         * MessageBox.cs: Use cached objects instead of creating them
22495         * FileDialog.cs: Use cached objects instead of creating them
22496         * ThemeWin32Classic.cs: Use cached objects instead of creating them
22497         * TreeView.cs: Use cached objects instead of creating them
22498         
22499 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
22501         * Control.cs: use Equals to compare the font since no == op
22502         * ScrollBar.cs: use Equals to compare the font since no == op
22504 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
22506         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
22508 2005-04-01  Jackson Harper  <jackson@ximian.com>
22510         * Binding.cs: Implement IsBinding.
22511         * BindingManagerBase.cs:
22512         * PropertyManager.cs:
22513         * CurrencyManager.cs: Add IsSuspended property.
22515 2005-04-01  Jackson Harper  <jackson@ximian.com>
22517         * Binding.cs: Had some IsAssignableFrom calls backwards.
22519 2005-04-01  Jackson Harper  <jackson@ximian.com>
22521         * Binding.cs: Handle null data members when pulling data.
22522         * PropertyManager.cs: Handle the data member being a property that
22523         does not exist.
22525 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
22527         * DataGridTextBoxColumn.cs: fixes signature
22528         * DataGrid.cs: calls right constructor
22530 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
22532         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
22533         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
22534         * GridTableStylesCollection.cs: implements GridTableStylesCollection
22535         * DataGridTableStyle.cs: implements DataGridTableStyle
22536         * DataGridBoolColumn.cs: implements DataGridBoolColumn
22537         * DataGridTextBox.cs: implements DataGridTextBox
22538         * DataGridColumnStyle.cs: implements DataGridColumnStyle
22540 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
22542         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
22544 2005-03-29  Peter Bartok  <pbartok@novell.com>
22546         * Application.cs:
22547           - Properly implemented CompanyName property
22548           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
22549             returns a path that includes CompanyName, ProductName and
22550             Version (fixes bug #70330)
22552 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
22554         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
22555           fixes bug #72588.
22557 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
22559         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
22560         
22561           - Added ReadOnly CheckBox
22562           - Further refactoring: moved some code from Open-/SaveFileDialog
22563             to FileDialog
22565 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
22567         * OpenFileDialog.cs: Fixed CheckFileExists
22568         * FileDialog.cs:
22569           Moved FileView and DirComboBox outside FileDialog class.
22570           They can now be used outside FileDialog
22572 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
22574         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
22575         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
22577 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
22579         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
22580           - Added missing CreatePrompt property in SaveDialog
22581           - Overall SaveDialog handling should be better now
22582           - Added non standard ShowHiddenFiles property
22583           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
22584           - Added InitialDirectory and RestoreDirectory support
22586 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
22588         * FileDialog.cs: Made dirComboBox usable
22590 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
22592         * FileDialog.cs: Added Filter support (case sensitiv)
22594 2005-03-24  Jackson Harper  <jackson@ximian.com>
22596         * TabControl.cs: Need a couple more pixels for the lines.
22598 2005-03-23  Jackson Harper  <jackson@ximian.com>
22600         * TabControl.cs: Give the tab page focus when it is selected.
22602 2005-03-23  Jackson Harper  <jackson@ximian.com>
22604         * TabControl.cs: Account for the drawing of tabs borders when
22605         invalidating. If the slider was clicked dont do click detection on
22606         the tabs.
22608 2005-03-23  Jackson Harper  <jackson@ximian.com>
22610         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
22612 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
22614         * CategoryGridEntry.cs: Added
22615         * GridItem.cs: Added helper properties
22616         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
22617         * GridEntry.cs: Updated code for collection
22618         * PropertyGrid.cs: Cleaned up some formatting
22619         * PropertyGridView.cs: Added drop down functionality for enums.
22620         * GridItemCollection.cs: Added enumerator logic
22621         * PropertyGridEntry.cs: Added
22623 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
22625         * FileDialog.cs:
22626           - Removed unnecessary commented code
22627           - Fixed handling for entering the filename manually in the combobox
22629 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
22631         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
22633 2005-03-18  Peter Bartok  <pbartok@novell.com>
22635         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
22636           them being touching the border
22638 2005-03-18  Peter Bartok  <pbartok@novell.com>
22640         * TextControl.cs: Quick hack to center text better
22642 2005-03-18  Peter Bartok  <pbartok@novell.com>
22644         * ControlPaint.cs:
22645           - Don't throw NotImplemented exceptions, just print a notice once
22646             instead (requested by Miguel). This makes running existing SWF
22647             apps a bit easier
22648         * Control.cs:
22649           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
22650           - Added context menu trigger on right click
22651         * Panel.cs: Trigger invalidate on resize
22652         * StatusBar.cs:
22653           - Removed old double-buffer drawing
22654           - Added ResizeRedraw style to force proper update of statusbar
22655         * ListView.cs:
22656           - Removed debug output
22657         * ThemeWin32Classic.cs:
22658           - Fixed drawing of status bar, now draws Text property if there
22659             are no defined panels
22661 2005-03-18  Jackson Harper  <jackson@ximian.com>
22663         * ImageList.cs: When the image stream is set pull all the images
22664         from it.
22665         * ImageListStreamer.cs: Implement reading image list streams.
22667 2005-03-18  Peter Bartok  <pbartok@novell.com>
22669         * ThemeWin32Classic.cs (DrawPictureBox):
22670           - Fixed calculations for centered drawing
22671           - Fixed drawing for normal mode, not scaling the image on normal
22673 2005-03-18  Peter Bartok  <pbartok@novell.com>
22675         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
22676           textbox
22677         * FileDialog.cs:
22678           - Made Open/Save button the accept button for FileDialog
22679           - Tied the cancel button to the IButtonControl cancel button
22680           - Save/Open now properly builds the pathname
22681           - Now handles user-entered text
22682           - Preventing crash on right-click if no item is selected
22683           - Fixed Text property, now uses contents of textbox
22684           - Fixed SelectedText property, now just returns the text part that
22685             is selected in the text box
22687 2005-03-18  Jackson Harper  <jackson@ximian.com>
22689         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
22690         rect, make sure to de-adjust the interior rect after drawing the
22691         tab text.
22693 2005-03-18  Peter Bartok  <pbartok@novell.com>
22695         * MenuAPI.cs: Remove menu *before* executing selected action to
22696           prevent the menu from 'hanging around'
22697           
22698 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
22700         * XplatUIOSX.cs: Implemented WorkingArea property
22702 2005-03-17  Peter Bartok  <pbartok@novell.com>
22704         * XplatUIX11.cs: Fixed menu coord calculations
22705         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
22706           for calculating offsets
22708 2005-03-17  Peter Bartok  <pbartok@novell.com>
22710         * Hwnd.cs: Do not consider menu presence for default client
22711           rectangle location/size
22712         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
22713           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
22714           translation functions
22715         * FileDialog.cs: Fixed (what I presume is a) typo
22717 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
22719         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
22720           X access (avoids X-Async errors)
22722 2005-03-16  Jackson Harper  <jackson@ximian.com>
22724         * TabControl.cs: Raise the SelectedIndexChanged event.
22726 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
22728         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
22729           - Removed vertical ToolBar and replaced it with a custom panel
22730             (desktop and home button already work)
22731           - Added Help button (some controls get resized or relocated then)
22732           - Draw correct text depending on Open or Save.
22733           - Fixed some typos...
22735 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
22737         * ScrollBar.cs:
22738           - Only change Maximum and Minimum when need it (bug fix)
22740 2005-03-15  Peter Bartok  <pbartok@novell.com>
22742         * Form.cs: Use Handle for icon, to trigger creation if
22743           the window does not yet exist
22744         * Control.cs:
22745           - CanSelect: Slight performance improvement
22746           - Focus(): Preventing possible recursion
22747           - Invalidate(): Removed ControlStyle based clear flag setting
22748           - WM_PAINT: fixed logic for calling OnPaintBackground
22749           - WM_ERASEBKGND: Fixed logic, added call to new driver method
22750             EraseWindowBackground if the control doesn't paint background
22751         * XplatUIWin32.cs:
22752           - Moved EraseWindowBackground() method to internal methods
22753           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
22754             is sent via SendMessage on BeginPaint call on Win32
22755         * XplatUIX11.cs:
22756           - Added EraseWindowBackground() method
22757           - No longer sends WM_ERASEBKGND on .Expose, but on call to
22758             PaintEventStart, which more closely matches Win32 behaviour
22759           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
22760           - Fixed SetFocus() to properly deal with client and whole windows
22761         * Hwnd.cs: Added ErasePending property
22762         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
22763         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
22765 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
22767         * XplatUIOSX.cs:
22768           - Fix hard loop when timers exist.
22769           - Fix bugs with middle and right click for 3 button mice.
22771 2005-03-11  Peter Bartok  <pbartok@novell.com>
22773         * XplatUIX11.cs:
22774           - get_WorkingArea: Need to call X directly, GetWindowPos only
22775             returns cached data now
22776           - Added sanity check to GetWindowPos hwnd usage
22778 2005-03-11  Jackson Harper  <jackson@ximian.com>
22780         * BindingManagerBase.cs: This method isn't used anymore as
22781         PullData now updates the data in the control.
22783 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
22785         * Form.cs: fixes menu drawing on X11
22786         * MenuAPI.cs:  fixes menu drawing on X11
22788 2005-03-11  Peter Bartok  <pbartok@novell.com>
22790         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
22791           from Jonathan Gilbert; should fix bug #73606
22792         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
22793           in Screen coordinates. Thanks, Jordi.
22794         * Form.cs: Added missing attribute
22796 2005-03-11  Peter Bartok  <pbartok@novell.com>
22798         * Form.cs:
22799           - Rudimentary Mdi support
22800           - Removed outdated FormParent code
22801           - Implemented lots of missing properties and methods, still missing
22802             transparency support
22803           - Added missing attributes
22804           - Implemented support for MaximumBounds
22805           - Added firing of various events
22806         * XplatUI.cs: Added SetIcon() method
22807         * XplatUIDriver.cs: Added SetIcon() abstract
22808         * XplatUIOSX.cs: Stubbed out SetIcon() method
22809         * XplatUIX11.cs:
22810           - Implemented SetIcon() support
22811           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
22812           - Switched to unix line endings
22813         * XplatUIWin32.cs:
22814           - Made POINT internal so for can access it as part of MINMAX
22815           - Implemented SetIcon() support
22816           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
22817             native Mdi support again, might have to go managed)
22818         * Control.cs: Now fires the StyleChanged event
22819         * MdiClient.cs: Added; still mostly empty
22821 2005-03-10  Peter Bartok  <pbartok@novell.com>
22823         * SaveFileDialog.cs: Added emtpy file
22825 2005-03-08  Peter Bartok  <pbartok@novell.com>
22827         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
22828           in turn triggers OnCreateContro) when creating a handle for the
22829           first time.
22830         * TextControl.cs: Fixed endless loop in certain cases when
22831           replacing the current selection
22833 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
22835         * ScrollBar.cs:
22836           - Honors NewValue changes in Scroll events allowing apps to change it
22837           - Adds First and Last Scroll events
22838           - Fixes Thumb events
22840 2005-03-07  Peter Bartok  <pbartok@novell.com>
22842         * Hwnd.cs: Added DefaultClientRectangle property
22843         * XplatUI.cs: Now using the X11 driver Where() method, which provides
22844           more detailed debug information
22845         * XplatUIX11.cs:
22846           - Fixed size-change feedback loop, where we would pull an old size
22847             off the queue and mistakenly change our window's size to an
22848             earlier value
22849           - Now compressing ConfigureNotify events, to reduce looping and
22850             redraw issues
22851         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
22852           is called
22854 2005-03-07  Jackson Harper  <jackson@ximian.com>
22856         * Binding.cs: Push data pushes from data -> property. Check if the
22857         property is readonly when attempting to set it.
22859 2005-03-07  Jackson Harper  <jackson@ximian.com>
22861         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
22862         instead of IsSubclassOf. Pulling data now sets the value on the
22863         control.
22864         * PropertyManager.cs:
22865         * CurrencyManager.cs: Just need to pull data when updating now,
22866         because PullData will set the value on the control.
22868 2005-03-04  Jackson Harper  <jackson@ximian.com>
22870         * Binding.cs: Implement data type parsing and converting on pulled
22871         data. TODO: Are there more ways the data can be converted?
22873 2005-03-04  Jackson Harper  <jackson@ximian.com>
22875         * Binding.cs: Support <Property>IsNull checks. Also bind to the
22876         controls Validating method so we can repull the data when the
22877         control loses focus.
22879 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
22881         * ColumnHeader.cs:
22882           - Fixes null string format
22883           
22884         * ListView.cs:
22885           - Adds enum type checks
22886           - Fixes redrawing and recalc need after changing some properties
22887           - Fixes on focus_item set after the event
22888           - Fixes adding columns after the control has been created
22889           
22890         * ThemeWin32Classic.cs:
22891           - Fixes CheckBox focus rectangle
22892           - Fixes ColumnHeader drawing
22895 2005-03-03  Jackson Harper  <jackson@ximian.com>
22897         * Binding.cs: Bind to <Property>Changed events so we can detect
22898         when properties are changed and update the data.
22900 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
22902         * ImageList.cs:
22903           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
22904           - Fixes ImageList constructor with ImageList container
22905           - Fixes image scaling (wrong parameters at DrawImage)
22907 2005-02-02  Jackson Harper  <jackson@ximian.com>
22909         * Binding.cs: Make property searches case-insensitive. Eliminate
22910         some duplicated code.
22912 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
22914         * ComboBox.cs:
22915                 - Handle focus event
22916                 - Fix scrollbar events
22917                 - Discard highlighted item if remove it
22918                 - Fixes SelectedItem with strings
22920 2005-03-01  Peter Bartok  <pbartok@novell.com>
22922         * Control.cs:
22923           - Fixed Visible property, now follows (once again) parent chain
22924             to return false if any control in the chain is visible=false
22925           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
22926           - Fixed several places where is_visible instead of Visible was used
22927           - Implemented FIXME related to focus selection when setting focused
22928             control to be invisible
22930         * XplatUIWin32.cs: Now using proper method to find out if window is
22931           visible. Thanks to Jordi for pointing it out
22933 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
22935         * ComboBox.cs: show/hide scrollbar instead of creating it
22937 2005-02-27  Jackson Harper  <jackson@ximian.com>
22939         * CurrencyManager.cs: Add PositionChanged stuff.
22941 2005-02-27  Peter Bartok  <pbartok@novell.com>
22943         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
22944         * XplatUIOSX.cs: Added GetMenuOrigin() stub
22945         * XplatUIWin32.cs: Implemented GetMenuOrigin()
22946         * XplatUIX11.cs:
22947           - Implemented GetMenuDC()
22948           - Implemented GetMenuOrigin()
22949           - Implemented ReleaseMenuDC()
22950           - Implemented generation of WM_NCPAINT message
22951           - Implemented generation and handling of WM_NCCALCSIZE message
22952         * Form.cs: Added debug helper message for Jordi's menu work
22953         * Hwnd.cs:
22954           - Modified ClientRect property; added setter, fixed getter to handle
22955             setting of ClientRect
22956           - Added MenuOrigin property
22958 2005-02-26  Peter Bartok  <pbartok@novell.com>
22960         * XplatUIX11.cs:
22961           - Destroys the caret if a window that's being destroyed contains it
22962           - Ignores expose events coming from the X11 queue for windows that
22963             already are destroyed
22964           - Now uses the proper variable for handling DestroyNotify, before we
22965             marked the wrong window as destroyed
22966           - Improved/added some debug output
22968 2005-02-26  Peter Bartok  <pbartok@novell.com>
22970         * X11Keyboard.cs: Fixes to work on 64bit systems
22972 2005-02-26  Peter Bartok  <pbartok@novell.com>
22974         * Control.cs:
22975           - Now calling OnHandleDestroyed from DestroyHandle()
22976             instead of Dispose()
22977           - Removed bogus call to controls.Remove() from DestroyHandle()
22979 2005-02-26  Peter Bartok  <pbartok@novell.com>
22981         * Control.cs: Properly destroy child windows when our handle is
22982           destroyed
22984 2005-02-25  Peter Bartok  <pbartok@novell.com>
22986         * XplatUI.cs:
22987           - Added 'DriverDebug' define to allow tracing XplatUI API calls
22988           - Alphabetized Static Methods and Subclasses
22990         * XplatUIX11.cs:
22991           - Added XException class to allow custom handling of X11 exceptions
22992           - Created custom X11 error handler, tied into XException class
22993           - Added support for MONO_XEXCEPTIONS env var to allow the user
22994             to either throw an exception on X errors or continue running
22995             after displaying the error
22996           - Added handling of DestroyNotify message
22997           - Added handler for CreateNotify message (still disabled)
22998           - Improved (tried to at least) Where method to provide file and lineno
22999         * X11Structs.cs:
23000           - Added XErrorHandler delegate
23001           - Added XRequest enumeration (to suppor translation of errors)
23003 2005-02-25  Jackson Harper  <jackson@ximian.com>
23005         * PropertyManager.cs: Implement editing features
23006         * CurrencyManager.cs:
23007         * Binding.cs: First attempt at UpdateIsBinding
23008         * BindingManagerBase.cs: Call UpdateIsBinding before
23009         pushing/pulling data.
23011 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
23013         * MenuAPI.cs: Respect disabled items
23014         * ThemeWin32Classic.cs
23015                 - Caches ImageAttributes creation for DrawImageDisabled
23016                 - Fixes vertical menu line drawing
23017                 - Draws disabled arrows in disable menu items
23019 2005-02-24  Peter Bartok  <pbartok@novell.com>
23021         * Hwnd.cs:
23022           - Added UserData property to allow associating arbitrary objects
23023             with the handle
23024           - Fixed leak; now removing Hwnd references from static windows array
23025         * XplatUIWin32.cs:
23026           - Fixed Graphics leak in PaintEventEnd
23027           - Removed usage of HandleData, switched over to Hwnd class
23028         * HandleData.cs: Removed, obsoleted by Hwnd.cs
23030 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
23032         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
23033         * ScrollBar.cs: Fixes bug
23034         * TrackBar.cs: removes death code, clipping, mimize refreshes,
23035          keyboard navigation enhancements
23037 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
23039         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
23040         * GroupBox.cs: Add control styles
23041         * Label.cs: Add control styles
23042         * UpDownBase.cs: Add control styles
23043         * ListBox.cs: Add control styles
23044         * XplatUIWin32.cs: Fixes wrong parameter order
23047 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
23049         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
23051 2005-02-23  Jackson Harper  <jackson@ximian.com>
23053         * PropertyManager.cs: Implement property binding. This doesn't
23054         seem to work yet though as (I think) there are some bugs in
23055         System.ComponentModel.PropertyDescriptor.
23056         * BindingContext.cs: Use new PropertyManager constructor.
23058 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
23060         * ProgressBar.cs: use clip region in ProgressBar
23061         * ThemeWin32Classic.cs: use clip region in ProgressBar
23063 2004-02-22  Jackson Harper  <jackson@ximian.com>
23065         * BindingsCollection.cs: Remove some debug code.
23067 2005-02-22  Jackson Harper  <jackson@ximian.com>
23069         * BindingContext.cs:
23070         * ControlBindingsCollection.cs:
23071         * CurrencyManager.cs:
23072         * Binding.cs:
23073         * BindingManagerBase.cs: Initial implementation
23074         * BindingsCollection.cs: Add an internal contains method that the
23075         BindingManagerBase uses to ensure bindings aren't added twice to
23076         the collection.
23077         * PropertyManager.cs: Stubbed out.
23078         * Control.cs:
23079         * ContainerControl.cs: Hook up databinding
23080         
23081 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
23083         * XplatUIOSX.cs:
23084           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
23085           Fixed Invalidate/Update chain.
23086           Fixed tons of other minor bugs (this is almost a complete rewrite).
23088 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
23090         * ComboBox.cs: do subcontrol creation when the control is created
23092 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
23094         * Label.cs: fixes image drawing (image and imagelist)
23095         * ThemeWin32Classic.cs: cache brushes
23096         
23097 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
23099         * Form.cs: Move menu drawing code to Theme class
23100         * ComboBox.cs: Move ComboBox drawing code to Theme class
23101         * MenuItem.cs: Move menu drawing code to Theme class
23102         * MenuAPI.cs: Move menu drawing code to Theme class
23103         * ThemeWin32Classic.cs: New methods
23104         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
23105         * ListBox.cs: Move Listbox drawing code to Theme class
23106         * Theme.cs: New methods
23108 2005-02-20  Peter Bartok  <pbartok@novell.com>
23110         * Control.cs:
23111           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
23112             only process mnemonics on those)
23113           - Fixed event sequence for key handling; first calling
23114             ProcessKeyEventArgs now
23115         * TextBoxBase.cs:
23116           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
23117             for processing non-character keys
23118           - Fixed WM_CHAR to generate proper event sequence before processing
23119         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
23120           generation
23122 2005-02-19  Peter Bartok  <pbartok@novell.com>
23124         * UserControl.cs: Added TextChanged event; added attributes
23125         * SizeGrip.cs: Implemented resizing and optional display of grip
23126         * Form.cs: Fixed attribute
23127         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
23128           Changed meaning of ScrollWindow bool argument; instead of the
23129           clear attribute (which will be true usually anyway), it gives the
23130           option of moving child controls as well.
23131         * XplatUIX11.cs:
23132           - Changed to match new ScrollWindow argument
23133           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
23134             now handles the implicit parent window a WM puts around us
23135         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
23136           to work)
23137         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
23138         * TreeView.cs: Adjusted to new ScrollWindow arguments
23140 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
23142         * Form.cs: Menu integration with non-client area
23143         * MenuItem.cs: Menu integration with non-client area
23144         * MenuAPI.cs: Menu integration with non-client area
23146 2005-02-18  Peter Bartok  <pbartok@novell.com>
23148         * MethodInvoker.cs: Added
23149         * MdiLayout.cs: Added
23150         * SendKeys.cs: Started implementation
23151         * ErrorIconAlignment.cs: Added
23153 2005-02-18  Peter Bartok  <pbartok@novell.com>
23155         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
23156         * Form.cs: Added handling for Menu-related Non-client messages
23158 2005-02-17  Peter Bartok  <pbartok@novell.com>
23160         * UpDownBase.cs: Fixed typo, compilation errors
23161         * DomainUpDown.cs: Fixed attribute value
23163 2005-02-16  Miguel de Icaza  <miguel@novell.com>
23165         * UpDownBase.cs: Attach entry events.
23166         Propagate events.
23167         Add ForeColor property, Focused, InterceptArrowKeys (interception
23168         does not work yet).
23170 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
23172         * Form.cs:
23173                 - Redraw non client are on Setmenu
23174                 - Calc proper menu starting point
23176 2005-02-17  Peter Bartok  <pbartok@novell.com>
23178         * Application.cs: Fixed message_filter check
23180 2005-02-17  Peter Bartok  <pbartok@novell.com>
23182         * Application.cs: Now calls registered message filters
23183         * DockStyle.cs: Fixed attribute
23184         * Form.cs: Fixed attribute
23185         * Menu.cs: Fixed attribute
23186         * ToolTip.cs: Fixed attribute
23187         * TreeNode.cs: Added missing attributes and arranged in regions
23188         * PropertyGrid.cs: Fixed signatures
23189         * TreeNodeCollection.cs: Added attributes
23190         * Splitter.cs: Added missing attributes; arranged into regions
23191         * TabPage.cs: Added missing attributes; arranged into regions
23192         * TextBoxBase.cs: Added missing attributes
23193         * TextBox.cs: Added missing attributes
23194         * ArrangeDirection.cs: Added missing attributes
23195         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
23196         * ToolBarButton.cs: Fixed attributes
23197         * AnchorStyles.cs: Fixed attribute
23198         * TrackBar.cs: Fixed attributes
23199         * TabControl.cs: Added missing attributes and arranged into regions
23200         * ToolBar.cs: Fixed attribute
23201         * StatusBar.cs: Fixed signature, organized into regions and added
23202           attributes
23203         * StatusBarPanel.cs: Fixed attributes
23204         * ContentsResizedEventArgs.cs: Implemented
23205         * ContentsResizedEventHandler.cs: Implemented
23206         * DateBoldEventArgs.cs: Implemented
23207         * DateBoldEventHandler.cs: Implemented
23208         * UpDownEventArgs.cs: Implemented
23209         * UpDownEventHandler.cs: Implemented
23210         
23211 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
23213         * Form.cs: first Menu NC refactoring
23214         * MenuAPI.cs: first Menu NC refactoring
23215         
23216 2005-02-16  Peter Bartok  <pbartok@novell.com>
23218         * ImeMode.cs: Added missing attributes
23219         * Menu.cs: Fixed attribute
23220         * GroupBox.cs: Fixed attribute
23221         * Label.cs: Fixed attribute
23222         * ColorDialog.cs (RunDialog): Removed TODO attribute
23223         * ComboBox.cs: Fixed attributes
23224         * ListControl.cs: Added missing attributes
23225         * PropertyGrid.cs: Fixed attributes
23226         * Control.cs: Fixed attributes
23227         * ListViewItem.cs: Added TypeConverter attribute
23228         * NotifyIcon.cs: Fixed attributes
23229         * ListView.cs: Fixed attributes
23230         * ButtonBase.cs: Fixed attribute
23231         * ImageList.cs: Added missing attributes
23232         * ContainerControl.cs: Fixed signature
23233         * CheckedListBox.cs: Fixed attribute; added missing attributes
23234         * Panel.cs: Fixed attributes
23235         * PropertyTabChangedEventArgs.cs: Added missing attribute
23236         * PropertyValueChangedEventArgs.cs: Added missing attribute
23237         * Binding.cs: Fixed attribute
23238         * ListViewItemConverter: Implemented ListViewSubItemConverter class
23239         * ListBox.cs: Fixed attribute; added missing attributes;
23240         * ScrollableControl.cs: Added missing attributes
23241         * PictureBox.cs: Added missing attributes; implemented missing property
23242         * DateTimePicker.cs: Added missing attributes
23243         * Theme.cs (ToolWindowCaptionHeight): Fixed type
23244         * MonthCalendar.cs: Fixed attributes
23245         * StatusBarPanel.cs: Added missing attributes
23246         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
23248 2005-02-16  Peter Bartok  <pbartok@novell.com>
23250         * TextBoxBase.cs: The previous method to enforce height yet remember
23251           the requested high was less than ideal, this is an attempt to do
23252           it better.
23253         * Control.cs: Added comment about possible problem
23254         * Copyright: Updated format
23255         * GridItemType.cs: Fixed swapped values
23257 2005-02-15  Jackson Harper  <jackson@ximian.com>
23259         * BaseCollection.cs: Use property so we never access an
23260         uninitialized list. Also initialize the list in the property.
23262 2005-02-15  Peter Bartok  <pbartok@novell.com>
23264         * GroupBox.cs (ProcessMnemonic): Implemented
23265         * Label.cs (ProcessMnemonic): Implemented
23266         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
23267           hotkeys
23269 2005-02-15  Peter Bartok  <pbartok@novell.com>
23271         * RadioButton.cs (ProcessMnemonic): Implemented
23272         * CheckBox.cs (ProcessMnemonic): Implemented
23273         * Control.cs:
23274           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
23275             handling
23276           - Added internal method to allow calling ProcessMnemonic from other
23277             controls
23278         * ContainerControl.cs:
23279           - Started support for handling validation chain handling
23280           - Implemented ProcessMnemonic support
23281           - Added Select() call to Active, to make sure the active control
23282             receives focus
23283         * Form.cs: Setting toplevel flag for Forms (this was lost in the
23284           FormParent rewrite)
23285         * ThemeWin32Classic.cs:
23286           - DrawCheckBox(): Fixed stringformat to show hotkeys
23287           - DrawRadioButton(): Fixed stringformat to show hotkeys
23288         * CommonDialog.cs: Removed WndProc override, not needed
23290 2005-02-14  Peter Bartok  <pbartok@novell.com>
23292         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
23293           missed those in the rewrite
23295 2005-02-14  Miguel de Icaza  <miguel@novell.com>
23297         * NumericUpDown.cs (Increment, ToString): Add.
23298         (DecimalPlaces): implement.
23299         
23300         Add attributes.
23301         
23302         * UpDownBase.cs: Add the designer attributes.
23304 2005-02-13  Peter Bartok  <pbartok@novell.com>
23306         * Panel.cs: Removed border_style, now in Control
23307         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
23308           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
23310 2005-02-13  Peter Bartok  <pbartok@novell.com>
23312         * MouseButtons.cs: Added missing attributes
23313         * XplatUIStructs.cs: Added enumeration for title styles
23314         * LeftRightAlignment.cs: Added missing attributes
23315         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
23316           it compatible with Graphics.FromHwnd()
23317         * SelectedGridItemChangedEventArgs.cs: Fixed property type
23318         * Keys.cs: Added missing attributes
23319         * SelectionRange.cs: Added missing attributes
23320         * SelectionRangeConverter.cs: Added
23321         * XplatUI.cs:
23322           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
23323             ReleaseMenuDC methods
23324           - Renamed ReleaseWindow to UngrabWindow
23325           - Added proper startup notice to allow version identification
23326         * Form.cs:
23327           - Added missing attributes
23328           - Removed FormParent concept
23329         * Label.cs: Removed border_style field, now in Control
23330         * RadioButton.cs: Now properly selects RadioButton when focus is
23331           received
23332         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
23333         * Control.cs:
23334           - Added missing attributes
23335           - Added borderstyle handling
23336           - Removed FormParent concept support
23337           - Fixed calls to XplatUI to match changed APIs
23338           - Fixed bug that would case us to use disposed Graphics objects
23339           - Removed unneeded internal methods
23340           - PerformLayout(): Fixed to handle DockStyle.Fill properly
23341           - SelectNextControl(): Fixed to properly check common parents
23342         * TextBoxBase.cs: Removed border_style field (now in Control)
23343         * MessageBox.cs:
23344           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
23345             fixed calculations for form size
23346           - Added support for localized strings and icons
23347           - Improved form size calculations, added border
23348         * ListView.cs: Removed border_style field (now in Control)
23349         * X11Structs.cs: Moved several structs from X11 driver here
23350         * X11Keyboard.cs: Changed debug message
23351         * Application.cs: Removed FormParent concept support
23352         * CommonDialog.cs:
23353           - Resetting end_modal flag
23354           - Removed FormParent concept support
23355         * NativeWindow.cs: Removed FormParent concept support
23356         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
23357           Client area and Non-Client whole window to allow support for WM_NC
23358           messages
23359         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
23360           prevent using it until it supports Hwnd as per Geoff Norton's request
23361         * ToolBar.cs: Fixed drawing, was not doing proper drawing
23362         * PictureBox.cs: Removed border_style field, now in Control
23363         * XplatUIWin32.cs: Added new driver methods
23365 2005-02-12  Peter Bartok  <pbartok@novell.com>
23367         * OpacityConverter.cs: Implemented
23368         * Hwnd.cs: Internal class to support drivers that need to emulate
23369           client area/non-client area window behaviour
23371 2005-02-11  Peter Bartok  <pbartok@novell.com>
23373         * KeysConverter.cs: Implemented
23375 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
23377         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
23378         * LinkLabel: Added missing attributes
23379         * MainMenu.cs: fixes ToString
23380         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
23381         * ListBox.cs: fixes event position
23382         * TrackBar.cs: adds missing attributes and events
23383         
23384 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
23386         * MenuItem.cs: Use SystemInformation and bug fixes
23387         * MenuAPI.cs: Use SystemInformation and bug fixes
23389 2005-02-09  Jackson Harper  <jackson@ximian.com>
23391         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
23392         their keystate otherwise things like VK_MENU get stuck "on".
23394 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
23396         * ListBox.cs: Fixes AddRange bug
23397         
23398 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
23400         * ProgressBar.cs
23401                 - Add missing attributes
23402                 - Add missing method
23403                 
23404         * CheckedListBox.cs: Added missing attributes
23405                 - Add missing attributes
23406                 - Remove extra method
23407         
23408         * ComboBox.cs: Added missing attributes
23409         * VScrollBar.cs: Added missing attributes
23410         * ScrollBar.cs:  Added missing attributes
23411         * ListBox.cs: Fixes signature, add missing consts
23412         * LinkArea.cs:   Added missing attributes
23413         
23415 2005-02-08  Peter Bartok  <pbartok@novell.com>
23417         * Menu.cs: Added missing attributes
23418         * MainMenu.cs: Added missing attributes
23419         * GroupBox.cs: Added missing attributes
23420         * Label.cs: Added missing attributes
23421         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
23422         * ColorDialog.cs:
23423           - Added Instance and Options properties
23424           - Added missing attributes
23425         * Cursor.cs: Made Serializable
23426         * NotifyIcon: Added missing attributes
23427         * MenuItem.cs: Added missing attributes
23428         * TextBoxBase.cs: Implemented AppendText() and Select() methods
23429         * Panel.cs: Added Missing attributes
23430         * MonthCalendar.cs: Fixed CreateParams
23432 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
23433         
23434         * LinkLabel.cs:
23435                 - Fixes signature
23436                 - Fixes issues with links
23437                 - Adds the class attributes
23439 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
23440         
23441         * ComboBox.cs:
23442                 - Fixes button when no items available in dropdown
23443                 - Fixes repainting problems
23444                 - Adds the class attributes
23445                 
23446 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
23448         * XplatUIOSX.cs: Detect the menu bar and title bar height from
23449         the current theme.  Cache these on startup.
23451 2005-02-07  Jackson Harper  <jackson@ximian.com>
23453         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
23454         the scrollbar buttons when they are depressed.
23456 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
23458         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
23459         Get the display size from the main displayid.  We currently dont
23460         support multiple display configurations.
23462 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
23464         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
23466 2005-02-07  Miguel de Icaza  <miguel@novell.com>
23468         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
23470 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
23472         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
23474 2005-02-04  Jackson Harper  <jackson@ximian.com>
23476         * ThemeWin32Classic.cs: Respect the clipping rect when
23477         drawing. Only fill the intersection of clips and rects so there
23478         isn't a lot of large fills.
23479         * ScrollBar.cs: Pass the correct clipping rect to the theme
23480         engine. Remove some debug code.
23482 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
23483         
23484         * DateTimePicker.cs:
23485                 - Fixed crash on DateTime.Parse, use Constructor instead
23487 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
23488         
23489         * MenuItem.cs:
23490         * MenuAPI.cs:
23491                 - Owner draw support (MeasureItem and DrawItem)
23493 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
23494         
23495         *  Menu.cs:
23496                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
23497                 - Fixes MenuItems.Add range
23498         * MenuItem.cs:
23499                 - MergeMenu and Clone and CloneMenu functions
23501 2005-02-03  Jackson Harper  <jackson@ximian.com>
23503         * ScrollBar.cs: Make abstract
23504         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
23505         is abstract.
23507 2005-02-03  Jackson Harper  <jackson@ximian.com>
23509         * ScrollBar.cs: First part of my scrollbar fixups. This removes
23510         all the unneeded refreshes and uses invalidates with properly
23511         computed rects.
23513 2005-02-03  Peter Bartok  <pbartok@novell.com>
23515         * ComponentModel.cs: Added
23516         * IDataGridEditingService.cs: Added
23517         * Timer.cs: Added missing attributes
23518         * ToolTip.cs: Added missing attributes
23520 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
23522         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
23524 2005-02-03  Peter Bartok  <pbartok@novell.com>
23526         * ListBox.cs: Added missing attributes
23528 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
23529         
23530         * ListBox.cs:
23531                 - Fixes font height after font change
23532                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
23533                 
23534 2005-02-02  Peter Bartok  <pbartok@novell.com>
23536         * HandleData.cs: Introduced static methods to allow class
23537           to be more self-contained and track it's own HandleData objects
23538         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
23539           HandleData to use new static methods
23541 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
23543         * Combobox.cs:
23544                 - Fixes default size and PreferredHeight
23545                 - Missing events
23546                 - ObjectCollection.Insert implementation
23547                 
23548         * ListControl.cs
23549                 - Fixes signature
23550         * ListBox.cs:
23551                 - Several fixes
23552                 - ObjectCollection.Insert implementation
23553                 - No selection after clean
23554                 - Small fixes
23556 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
23558         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
23560 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
23562         * Combobox.cs:
23563                 - Caches ItemHeight calculation for OwnerDrawVariable
23564                 - Handles dropdown properly
23565                 - Fixes several minor bugs
23567 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
23569         * ListBox.cs:
23570                 - Fixes 71946 and 71950
23571                 - Fixes changing Multicolumn on the fly
23572                 - Fixes keyboard navigation on Multicolumn listboxes
23574 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
23575         
23576         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
23577         crash reporter log.
23579 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
23581         * XplatUIOSX.cs: Allow applications to actually exit.
23583 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
23585         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
23586         their parent at creation time rather than lazily later.  Fixes a major
23587         regression we were experiencing.
23589 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
23591         * ThemeWin32Classic.cs: more date time picker painting fixes
23592         * DateTimePicker.cs: more monthcalendar drop down fixes
23593         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
23595 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
23597         * ScrollBar.cs:
23598                 - When moving the thumb going outside the control should stop the moving
23599                 - Adds the firing of missing events
23600                 - Fixes no button show if Size is not specified
23601                 - End / Home keys for keyboard navigation
23603 2005-01-30  Peter Bartok  <pbartok@novell.com>
23605         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
23606           sanity check to prevent theoretical loop
23607         * XplatUIWin32.cs (SetVisible): Removed debug output
23608         * XplatUIX11.cs (SystrayChange): Added sanity check
23609         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
23610         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
23611           behaviour, valid until the X11 client window rewrite is done
23612         * TextBox.cs (ctor): Setting proper default foreground and background
23613           colors
23615 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
23617         * Theme: Added DrawDateTimePicker to interface
23618         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
23619         * DateTimePicker.cs: Created (still needs keys and painting code)
23620         * DateTimePickerFormat.cs: added
23621         * MonthCalendar.cs: fixed CreateParams for popup window mode
23622           
23623 2005-01-29  Peter Bartok  <pbartok@novell.com>
23625         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
23626           this should also the calculations for ligher/darker
23627         * Theme.cs: Fixed defaults for ScrollBar widths/heights
23629 2005-01-29  Peter Bartok  <pbartok@novell.com>
23631         * ArrangeDirection.cs: Added
23632         * ArrangeStartingPositon.cs: Added
23633         * SystemInformation.cs: Implemented
23634         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23635           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
23636           used by SystemInformation class
23637         * X11Strucs.cs: Added XSizeHints structure
23638         * MenuAPI.cs:
23639           - Fixed CreateParams to make sure the menu window is always visible
23640           - TrackPopupMenu: Added check to make sure we don't draw the
23641             menu offscreen
23643 2005-01-29  Peter Bartok  <pbartok@novell.com>
23645         * HandleData.cs: Added method for altering invalid area
23646         * TextBoxBase.cs: Implemented TextLength
23648 2005-01-28  Peter Bartok  <pbartok@novell.com>
23650         * XplatUIX11.cs: Improvement over last patch, not sending
23651           the WM_PAINT directly anymore, instead we scroll any pending
23652           exposed areas and let the system pick out the WM_PAINT later
23654 2005-01-28  Peter Bartok  <pbartok@novell.com>
23656         * SWF.csproj: Deleted, no longer used. Instead,
23657           Managed.Windows.Forms/SWF.csproj should be used
23658         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
23659           directly, to avoid a potential race condition with the next
23660           scroll
23662 2005-01-28  Peter Bartok  <pbartok@novell.com>
23664         * XplatUI.cs: Made class internal
23666 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
23668         * CheckedListBox.cs:
23669                 - Draw focus
23670                 - Fixed Drawing
23671                 - Missing methods and events
23673 2005-01-27  Peter Bartok  <pbartok@novell.com>
23675         * Application.cs (Run): Don't use form if we don't have one
23677 2005-01-27  Peter Bartok  <pbartok@novell.com>
23679         * TextBoxBase.cs (get_Lines): Fixed index off by one error
23681 2005-01-27  Peter Bartok  <pbartok@novell.com>
23683         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
23684         * GridItem.cs: Added; Patch by Jonathan S. Chambers
23685         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
23686         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
23687         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
23688         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
23689         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
23690         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
23691         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
23692         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
23693         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
23694         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
23696 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
23698         * Combobox.cs:
23699                 - Draw focus on Simple Combobox
23700                 - Fixes drawing issues
23701                 - fixes 71834
23703 2005-01-27  Peter Bartok  <pbartok@novell.com>
23705         * Form.cs:
23706           - Place window in default location, instead of hardcoded 0/0
23707           - Send initial LocationChanged event
23708         * Control.cs:
23709           - UpdateBounds after creation to find out where the WM placed us
23710           - Make sure that if the ParentForm changes location the Form
23711             is notified
23712         * XplatUIX11.cs: XGetGeometry will not return the coords relative
23713             to the root, but to whatever the WM placed around us.
23714             Translate to root coordinates before returning toplevel
23715             coordinates
23716         * XplatUIWin32.cs: Removed debug output
23717         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
23718           flag to GetWindowPos, to allow translation of coordinates on X11
23720 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
23722         * ListBox.cs: connect LostFocus Event
23724 2005-01-27  Peter Bartok  <pbartok@novell.com>
23726         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
23727           XplatUIX11.cs: Extended the Systray API
23728         * Form.cs: Removed debug output
23729         * Application.cs: Fixed focus assignment, always need to call
23730           XplatUI.Activate() since Form.Activate() has rules that may
23731           prevent activation
23732         * NotifyIcon.cs: Should be complete now
23733         * ToolTip.cs: Worked around possible timer bug
23735 2005-01-27  Jackson Harper  <jackson@ximian.com>
23737         * TabControl.cs:
23738         - Only invalidate the effected tabs when the
23739         selected index changes. This reduces drawing and gets rid of some
23740         flicker.
23741         - Only refresh if the tabs need to be shifted, otherwise only
23742         invalidate the slider button.
23743         - On windows the tabs are not filled to right if the slider is
23744         visible.
23745         
23746 2005-01-27  Jackson Harper  <jackson@ximian.com>
23748         * TabControl.cs: Only refresh on mouseup if we are showing the
23749         slider. Also only invalidate the button whose state has changed.
23751 2005-01-26  Peter Bartok  <pbartok@novell.com>
23753         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
23754         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
23755           and SystrayRemove() methods
23756         * XplatUIOSX.cs: Stubbed Systray methods
23757         * XplatUIX11.cs:
23758           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
23759             methods
23760           - Fixed broken XChangeProperty calls (marshalling messed up things)
23761         * X11Structs.cs: Added enums and structs required for Size hinting
23762         * NotifyIcon.cs: Added & implemented
23764 2005-01-26  Jackson Harper  <jackson@ximian.com>
23766         * TabControl.cs: Space vertically layed out tabs properly.
23768 2005-01-26  Peter Bartok  <pbartok@novell.com>
23770         * Form.cs (CreateClientParams): Always set the location to 0,0
23771           since we're a child window.
23773         * Control.cs (SetVisibleCore): Always explicitly setting the location
23774           of a toplevel window, apparently X11 doesn't like to move windows
23775           while they're not mapped.
23777 2005-01-26  Jackson Harper  <jackson@ximian.com>
23779         * TabControl.cs: Implement FillToRight size mode with vertically
23780         rendered tabs.
23782 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
23784         * ControlPaint.cs, ThemeWin32Classic.cs
23785                 - Fixes DrawFocusRectangle
23787 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
23789         * MenuAPI.cs:
23790                 - MenuBar tracking only starts when item is first clicked
23791                 - Fixes menu hidding for multiple subitems
23792                 - Unselect item in MenuBar when item Executed
23793                 - Fixes bug 71495
23795 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
23797         * ListControl.cs:
23798                 - IsInputKey for ListBox
23799         * ListBox.cs:
23800                 - Focus item
23801                 - Shift and Control item selection
23802                 - Implement SelectionMode.MultiExtended
23803                 - Fixes RightToLeft
23804         * ComboBox.cs:
23805                 - IsInputKey implemented
23806                 - Do not generate OnTextChangedEdit on internal txt changes
23807                 
23808 2005-01-23  Peter Bartok  <pbartok@novell.com>
23810         * AccessibleObject.cs: Partially implemented Select()
23811         * MonthCalendar.cs: Added missing attributes and events
23812         * Form.cs: Fixed CreateParams behaviour, now controls derived from
23813           form can properly override CreateParams.
23814         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23815           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
23816           Control performs Invalidate & Update
23817         * NativeWindow (CreateHandle): Added special handling for Form
23818           and Form.FormParent classes to allow overriding of From.CreateParams
23819         * Control.cs:
23820           - ControlNativeWindow: Renamed 'control' variable to more intuitive
23821             name 'owner'
23822           - ControlNativeWindow: Added Owner property
23823           - Removed usage of Refresh() on property changes, changed into
23824             Invalidate(), we need to wait until the queue is processed for
23825             updates, direct calls might cause problems if not all vars for
23826             Paint are initialized
23827           - Added call to UpdateStyles() when creating the window, to set any
23828             styles that CreateWindow might have ignored.
23829           - Added support for Form CreateParent overrides to UpdateStyles()
23830         * MessageBox.cs: Removed no longer needed FormParent override stuff,
23831           CreateParams are now properly overridable
23832         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
23833           CreateParams are now properly overridable
23835 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
23837         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
23838         OnTextBoxChanged.
23840         Capture LostFocus and OnTextBoxChanged.  The later introduces a
23841         recursive invocation that I have not figured out yet.
23843         Reset the timer when not using (it was accumulating).
23846         (OnTextBoxChanged): Set UserEdit to true here to track whether the
23847         user has made changes that require validation.
23849         Reset changing to avoid loops.
23851 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
23853         * NumericUpDown.cs: Display value at startup.
23855         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
23856         ValidateEditText.
23858         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
23859         filled in.  Added some basic parsing of text.
23861         Still missing the OnXXX method overrides, and figuring out the
23862         events that must be emitted.
23864         * UpDownBase.cs: Handle UserEdit on the Text property.
23865         
23866 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
23868         * ComboBox.cs:
23869           - Fixes IntegralHeight
23870           - ToString method
23872 2005-01-21  Jackson Harper  <jackson@ximian.com>
23874         * TabControl.cs: Set the SelectedIndex property when SelectedTab
23875         is set so that the page visibility is updated and the tabs are
23876         sized correctly.
23878 2005-01-21  Jackson Harper  <jackson@ximian.com>
23880         * TabControl.cs: Use cliping rectangle for blitting. Give the
23881         theme the clipping rect so we can do clipping while
23882         drawing. Remove some debug code.
23884 2005-01-21  Jackson Harper  <jackson@ximian.com>
23886         * TabPage.cs: Add a new method so tab pages can force the tab
23887         control to recalculate the tab page sizes.
23888         * TabControl.cs: UpdateOwner needs to make the tab control recalc
23889         sizes.
23891 2005-01-20  Jackson Harper  <jackson@ximian.com>
23893         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
23895 2005-01-20  Jackson Harper  <jackson@ximian.com>
23897         * TreeView.cs: Set the bounds for nodes properly. They were
23898         getting screwed up when checkboxes were not enabled, but images
23899         were.
23901 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
23903         * ListBox.cs:
23904                 - Owner draw support
23905                 - Fixes
23906                 
23907 2005-01-20  Jackson Harper  <jackson@ximian.com>
23909         * XplatUIStructs.cs: More misc keys
23910         * X11Keyboard.cs: Ignore some control keys.
23912 2005-01-20  Jackson Harper  <jackson@ximian.com>
23914         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
23915         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
23917 2005-01-19  Peter Bartok  <pbartok@novell.com>
23919         * Control.cs: Un-selecting the control when it is loosing focus
23921 2005-01-19  Jackson Harper  <jackson@ximian.com>
23923         * TreeView.cs: Hook up to the text controls leave event so we can
23924         end editing when the users clicks outside the text box.
23925         
23926 2005-01-19  Jackson Harper  <jackson@ximian.com>
23928         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
23929         get set in the conversion array.
23931 2005-01-19  Peter Bartok  <pbartok@novell.com>
23933         * Application.cs (ModalRun): Added a call to CreateControl to ensure
23934           focus is properly set
23935         * Button.cs:
23936           - Added missing attributes
23937           - removed styles, those are already set in the base class
23938         * ButtonBase.cs:
23939           - Added missing attributes
23940           - Added clip window styles
23941         * CheckBox.cs: Added missing attributes
23942         * CommonDialog.cs:
23943           - FormParentWindow.CreateParams: Added required clip styles
23944         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
23945           also filters modifier keys
23946         * MessageBox.cs:
23947           - Added assignment of Accept and Cancel button to enable Enter
23948             and Esc keys in MessageBox dialogs
23949           - FormParentWindow.CreateParams: Added required clip styles
23950         * RadioButton.cs: Added missing attributes
23951         * TextControl.cs: No longer draws selection if control does not
23952           have focus
23953         * TextBoxBase.cs:
23954           - Now draws simple rectangle around test area to make it obvious
23955             there's a control. This is a hack until we properly support borders
23956           - A few simple fixes to support selections better, now erases selected
23957             text when typing, and resets selection when using movement keys
23959 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
23961         * UpDownBase.cs: Added some new properties.
23963         * DomainUpDown.cs: Implement a lot to get my test working.
23965 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
23967         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
23969 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
23971         * OSXStructs (WindowAttributes): Fixed csc complaints
23973 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
23975         * XplayUIOSX.cs:
23976           OSXStructs.cs: Initial refactor to move enums and consts into
23977           OSXStructs and use them in the driver for greater readability.
23979 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
23981         * XplatUIOSX.cs: Initial support for Standard Cursors.
23982         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
23984 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
23986         * ComboBox.cs: ability to change style when the ctrl is already
23987         created, missing methods and events, bug fixes, signature fixes
23989 2005-01-19  Peter Bartok  <pbartok@novell.com>
23991         * Cursors.cs (ctor): Added ctor to fix signature
23993 2005-01-18  Peter Bartok  <pbartok@novell.com>
23995         * Button.cs: Implemented DoubleClick event
23996         * ButtonBase.cs:
23997           - Fixed keyboard handling to behave like MS, where the press of
23998             Spacebar is equivalent to a mousedown, and the key release is
23999             equivalent to mouseup. Now a spacebar push will give the same
24000             visual feedback like a mouse click.
24001           - Added missing attributes
24002           - Added ImeModeChanged event
24003           - Added support for generating DoubleClick event for derived classes
24004         * CheckBox.cs:
24005           - Implemented DoubleClick event
24006           - Added missing attributes
24007         * CommonDialog.cs: Added missing attribute
24008         * ContextMenu.cs: Added missing attributes
24009         * RadioButton.cs:
24010           - AutoChecked buttons do not allow to be unselected when clicked
24011             (otherwise we might end up with no selected buttons in a group)
24012           - Added missing attributes
24013           - Implemented DoubleClickEvent
24014         * ThreadExceptionDialog.cs: Enabled TextBox code
24016 2005-01-18  Peter Bartok  <pbartok@novell.com>
24018         * Form.cs: Removed debug output
24019         * Button.cs: Added support for DoubleClick method
24021 2005-01-18  Peter Bartok  <pbartok@novell.com>
24023         * Form.cs:
24024           - Added method to parent window that allows triggering size
24025             calculations when a menu is added/removed
24026           - set_Menu: Cleaned up mess from early days of Form and Control,
24027             now properly triggers a recalc when a menu is added/removed
24028           - Added case to select form itself as focused form if no child
24029             controls exist
24030           - Added PerformLayout call when showing dialog, to ensure properly
24031             placed controls
24032         * Control.cs:
24033           - Select(): Made internal so Form can access it
24034           - Focus(): Only call Xplat layer if required (avoids loop), and sets
24035             status
24036         * Application.cs (Run): Removed hack and calls PerformLayout instead
24037           to trigger calculation when Form becomes visible
24039 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
24041         * ComboBox.cs: fixes for ownerdraw
24043 2005-01-18  Peter Bartok  <pbartok@novell.com>
24045         * TextControl.cs:
24046           - Sentinel is no longer static, each Document gets it's own, this
24047             avoids locking or alternatively overwrite problems when more
24048             than one text control is used simultaneously.
24049           - Switched to use Hilight and HilightText brushes for text selection
24051         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
24053 2005-01-18  Peter Bartok  <pbartok@novell.com>
24055         * Control.cs:
24056           - Hooked up the following events:
24057                 o ControlAdded
24058                 o ControlRemoved
24059                 o HandleDestroyed
24060                 o ImeModeChanged
24061                 o ParentChanged
24062                 o TabStopChanged
24063                 o Invalidated
24064                 o SystemColorsChanged
24065                 o ParentFontChanged
24066                 o Move
24067           - Removed debug output
24068           - Added a call to the current theme's ResetDefaults when a color change
24069             is detected
24070         * Form.cs: Now setting the proper ImeMode
24071         * Theme.cs: Defined a method to force recreation of cached resources
24072           and rereading of system defaults (ResetDefaults())
24073         * ThemeWin32Classic.cs: Added ResetDefaults() stub
24075 2005-01-17  Peter Bartok  <pbartok@novell.com>
24077         * Control.cs: Added missing attributes
24079 2005-01-17  Jackson Harper  <jackson@ximian.com>
24081         * TreeNode.cs: Implement editing. Add missing properties selected
24082         and visible.
24083         * TreeView.cs: Implement node editing. Also some fixes to use
24084         Invalidate (invalid area) instead of Refresh when selecting.
24086 2005-01-17  Peter Bartok  <pbartok@novell.com>
24088         * Control.cs:
24089           - Implemented InvokeGotFocus() method
24090           - Implemented InvokeLostFocus() method
24091           - Implemented InvokePaint() method
24092           - Implemented InvokePaintBackground() method
24093           - Implemented InvokeClick() method
24094           - Implemented FindForm() method
24095           - Implemented RectangleToClient() method
24096           - Implemented ClientToRectangle() method
24097           - Implemented ResetBackColor() method
24098           - Implemented ResetCursor() method
24099           - Implemented ResetFont() method
24100           - Implemented ResteForeColor() method
24101           - Implemented ResetImeMode() method
24102           - Implemented ResetLeftToRight() method
24103           - Implemented ResetText() method
24104           - Implemented Scale() methods
24105           - Implemented ScaleCore() method
24106           - Implemented Update() method
24107           - Removed unused variables
24108           - Stubbed AccessibilityNotifyClients and
24109             ControlAccessibleObject.NotifyClients() methods (dunno what to do
24110             with those yet)
24111           - Now setting proper default for RightToLeft property
24112           - Fixed bug in SetClientSizeCore that would cause windows to get
24113             really big
24114           - Now sending Click/DoubleClick events
24115           - Now selecting controls when left mouse button is clicked on
24116             selectable control
24117         * AccessibleEvents.cs: Added
24118         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
24119         * XplatUIOSX.cs: Stubbed UpdateWindow() method
24120         * XplatUIWin32.cs: Implemented UpdateWindow() method
24121         * XplatUIX11.cs: Implemented UpdateWindow() method
24122         * Form.cs: Removed stray semicolon causing CS0162 warning
24123         * ThemeWin32Classic.cs: Fixed unused variable warnings
24124         * ScrollableControl.cs: Now calls base method for ScaleCore
24125         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
24126           style to avoid interference with internal click handler (which is
24127           different than standard Control click handling)
24128         * RadioButton.cs:
24129           - Now unchecks all sibling radio buttons when control is
24130             selected (Fixes #68756)
24131           - Removed internal tabstop variable, using the one inherited from
24132             Control
24134 2005-01-17  Jackson Harper  <jackson@ximian.com>
24136         * NavigateEventArgs.cs: Fix base type.
24137         * LinkLabel.cs: Sig fix
24138         
24139 2005-01-17  Jackson Harper  <jackson@ximian.com>
24141         * TreeView.cs: Only invalidate the effected nodes bounds when
24142         selecting nodes.
24144 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
24146         * XplatUIWin32.cs: fixes Win32 marshaling
24147         * XplatUIX11.cs: fixes method signature
24149 2005-01-17  Peter Bartok  <pbartok@novell.com>
24151         * XplatUIX11.cs: Clean up resources when we no longer need them
24153 2005-01-17  Peter Bartok  <pbartok@novell.com>
24155         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
24156           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
24157           and DestroyCursor() methods.
24158         * Cursor.cs: Partially implemented, now supports standard cursors;
24159           still contains some debug code
24160         * Cursors.cs: Implemented class
24161         * Control.cs:
24162           - WndProc(): Added handling of WM_SETCURSOR message, setting the
24163             appropriate cursor
24164           - Implemented Cursor property
24165           - Replaced break; with return; more straightforwar and possibly
24166             faster
24167           - Now properly setting the result for WM_HELP
24168         * X11Structs.cs: Added CursorFontShape enum
24169         * XplatUIStructs.cs:
24170           - Added StdCursor enum (to support DefineStdCursor() method)
24171           - Added HitTest enum (to support sending WM_SETCURSOR message)
24172         * XplatUIX11.cs:
24173           - Now sends the WM_SETCURSOR message
24174           - Implemented new cursor methods
24175         * XplatUIOSX.cs: Stubbed new cursor methods
24176         * XplatUIWin32.cs:
24177           - Implemented new cursor methods
24178           - Added GetSystemMetrics function and associated enumeration
24180 2005-01-15  Peter Bartok  <pbartok@novell.com>
24182         * Control.cs:
24183           - WndProc(): Now handles EnableNotifyMessage
24184           - SelectNextControl(): Fixed bug where if no child or sibling
24185             controls exist we looped endlessly
24187 2005-01-14  Jackson Harper  <jackson@ximian.com>
24189         * TreeView.cs: Recalculate the tab pages when a new one is added
24190         so that the proper bounding rects are created.
24192 2005-01-14  Jackson Harper  <jackson@ximian.com>
24194         * TreeView.cs: Draw a gray box instead of a grip in the lower
24195         right hand corner when there are both horizontal and vertical
24196         scroll bars.
24198 2005-01-14  Jackson Harper  <jackson@ximian.com>
24200         * Control.cs: When erasing backgrounds use FromHwnd instead of
24201         FromHdc when there is a NULL wparam. This occurs on the X driver.
24202         * XplatUIX11.cs: Set the wparam to NULL.
24204 2005-01-13  Jackson Harper  <jackson@ximian.com>
24206         * PictureBox.cs: Implement missing methods (except ToString, need
24207         to test that on windows) and events. When visibility is changed we
24208         need to redraw the image because the buffers are killed. When size
24209         is changed refresh if the sizemode needs it.
24211 2005-01-13  Peter Bartok  <pbartok@novell.com>
24213         * Control.cs (SelectNextControl): Was using wrong method to select
24214           a control
24216 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
24218         * ComboBox.cs: fixes dropstyle
24220 2005-01-13  Peter Bartok  <pbartok@novell.com>
24222         * Form.cs:
24223           - Implemented Select() override
24224           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
24225           - Now sets keyboard focus on startup
24226         * Control.cs (SelectNextControl): Now properly handles directed=true
24227         * TextBoxBase.cs:
24228           - WndProc: Now passes tab key on to base if AcceptTabChar=false
24229           - Added (really bad) focus rectangle (mostly for testing)
24230         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
24231           to enforce redraw on focus changes
24232         * ContainerControl.cs:
24233           - Fixed detection of Shift-Tab key presses
24234           - Fixed traversal with arrow keys
24235         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
24236           gonna keep this or if it's complete yet
24237         
24238 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
24240         * ComboBox.cs: missing properties, fixes
24242 2005-01-13  Peter Bartok  <pbartok@novell.com>
24244         * Panel.cs (ctor): Setting Selectable window style to off
24245         * Splitter.cs (ctor): Setting Selectable window style to off
24246         * GroupBox.cs (ctor): Setting Selectable window style to off
24247         * Label.cs (ctor): Setting Selectable window style to off
24249 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
24251         * UpDownBase.cs (InitTimer): If the timer has been already
24252         created, enable it.
24254         Use a TextBox instead of a Label.
24256 2005-01-12  Jackson Harper  <jackson@ximian.com>
24258         * TreeView.cs: Refresh the tree after sorting the nodes. Always
24259         draw the connecting node lines (when ShowLines is true).
24260         * TreeNode.cs: The nodes index can now be updated. This is used
24261         when a node collection is sorted.
24262         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
24263         insert or an existing unsorted node collection can be sorted.
24264         
24265 2005-01-12  Peter Bartok  <pbartok@novell.com>
24267         * ContainerControl.cs: Implemented ProcessDialogKeys()
24269 2005-01-12  Peter Bartok  <pbartok@novell.com>
24271         * Control.cs:
24272           - Implemented SelectNextControl() method
24273           - Several focus related bug fixes
24274           - Fixed Docking calculations to match MS documentation and
24275             behaviour
24277 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
24279         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
24280         bug fixes
24282 2005-01-12  Peter Bartok  <pbartok@novell.com>
24284         * Control.cs:
24285           - Fixed broken Contains() method
24286           - Implemented GetNextControl() method. Finally. This is the pre-
24287             requisite for focus handling.
24289 2005-01-12  Peter Bartok  <pbartok@novell.com>
24291         * OSXStrucs.cs: Added
24293 2005-01-12  Peter Bartok  <pbartok@novell.com>
24295         * XplatUIWin32.cs:
24296           - Removed PeekMessageFlags
24297           - Implemented SetWindowStyle() method
24298         * XplatUIStructs.cs: Added PeekMessageFlags
24299         * X11Structs: Added missing border_width field to XWindowChanges struct
24300         * XplatUIX11.cs:
24301           - PeekMessage: Now throws exception if flags which are not yet
24302             supported are passed
24303           - Implemented SetWindowStyle() method
24304           - Fixed SetZOrder to handle AfterHwnd properly
24305         * XplatUI.cs: Added SetWindowStyle() method
24306         * XplatUIDriver.cs: Added SetWindowStyle() abstract
24307         * Control.cs:
24308           - Implemented UpdateStyles() method
24309           - Implemented UpdateZOrder() method
24310         * XplatUIOSX.cs: Added SetWindowStyle() stub
24312 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
24314         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
24315         button mouse).
24318 2005-01-11  Jackson Harper  <jackson@ximian.com>
24320         * TreeView.cs: Still need to draw lines to siblings even if out of
24321         the current node is out of the clip.
24323 2005-01-11  Jackson Harper  <jackson@ximian.com>
24325         * TreeView.cs: When setting the hbar/vbar/grip position use
24326         SetBounds so that perform layout is only called once. Also suspend
24327         and resume layout so layout is only done once for all controls.
24328         - Removed some debug fluff
24329         * SizeGrip.cs: Call base implmentation in overriding methods.
24330         - When visibility is changed the drawing buffers are killed so we
24331         need to redraw.
24333 2005-01-11  Jackson Harper  <jackson@ximian.com>
24335         * TreeView.cs: Calculate the open node count while drawing. This
24336         saves us an entire tree traversal for every paint operation. Use
24337         a member var for the open node count so less vars are passed around.
24339 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
24341         * MonthCalendar.cs:
24342         - fixed selection to use mousemove, not mouse polling on timer
24343         * ThemeWin32Classic.cs
24344         - removed redundant unused variable "no_more_content"
24345         
24346 2005-01-11  Peter Bartok  <pbartok@novell.com>
24348         * XplatUIX11.cs (DoEvents): Needs to return when no more events
24349           are pending, so it now calls PeekMessage instead of GetMessage;
24350           implemented a incomplete version of PeekMessage
24351         
24352 2005-01-11  Peter Bartok  <pbartok@novell.com>
24354         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
24355           I18n issues
24356         * TextBoxBase.cs: Added sending of TextChanged event
24358 2005-01-10  Jackson Harper  <jackson@ximian.com>
24360         * TreeView.cs: Try not to draw outside the clipping rectangle on
24361         each node element.
24363 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
24365         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
24367 2005-01-10  Jackson Harper  <jackson@ximian.com>
24369         * TreeView.cs:
24370         - Implement fast scrolling. Now only the newly
24371         exposed nodes are drawn and the old image is moved using the
24372         XplatUI::ScrollWindow method.
24373         - Factor in height of nodes when calculating whether or not the
24374         node is in the clipping rect.
24376 2005-01-10  Jackson Harper  <jackson@ximian.com>
24378         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
24380 2005-01-10  Peter Bartok  <pbartok@novell.com>
24382         * Application.cs: Added temporary hack to resolve all our resize
24383           required issues on startup. This will get fixed properly at
24384           some point in the future
24386 2005-01-10  Jackson Harper  <jackson@ximian.com>
24388         * SizeGrip.cs: New internal class that is used as a sizing
24389         grip control...hence the name.
24391 2005-01-10  Peter Bartok  <pbartok@novell.com>
24393         * Control.cs: Implemented proper TabIndex handling, now assigning
24394           a tabindex when a control is added to a container
24395         * GroupBox.cs (ctor): Now sets the Container style bit, required
24396           for Control.GetNextControl()
24398 2005-01-09  Jackson Harper  <jackson@ximian.com>
24400         * TextBoxBase.cs: Clear window when scrolling (fixes build).
24402 2005-01-09  Peter Bartok <pbartok@novell.com>
24404         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
24405           XplatUIX11.cs: Added ability to control ScrollWindow expose and
24406           an overload for ScrollWindow to allow only scrolling a rectangle
24408 2005-01-09  Peter Bartok <pbartok@novell.com>
24410         * Form.cs:
24411           - Implemented SetDesktopBounds method
24412           - Implemented SetDesktopLocation method
24414 2005-01-08  Jackson Harper  <jackson@ximian.com>
24416         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
24417         the node count has changed, this removes to VScroll::Refresh calls
24418         when drawing.
24420 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
24422         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
24424 2005-01-07  Jackson Harper  <jackson@ximian.com>
24426         * TreeNode.cs: Just update the single node when it is
24427         checked. Don't refresh after toggling, the Expand/Collapse already
24428         handles this.
24429         * TreeView.cs: Respect clipping a little more when drawing. Try
24430         not to redraw things that don't need to be redrawn. Just hide the
24431         scrollbars when they are no longer needed instead of removing
24432         them, so they don't have to be created again and again.
24433         
24434 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
24436         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
24437         coordinates to window space to place the caret properly, FIXED.
24438         Implement GetWindowState & SetWindowState
24440 2005-01-06  Peter Bartok <pbartok@novell.com>
24442         * Form.cs:
24443           - Implemented ClientSize property
24444           - Implemented DesktopBounds property
24445           - Implemented DesktopLocation property
24446           - Implemented IsRestrictedWindow property
24447           - Implemented Size property
24448           - Implemented TopLevel property
24449           - Implemented FormWindowState property
24450         * Control.cs:
24451           - Implemented GetTopLevel() method
24452           - Implemented SetTopLevel() method
24453         * X11Structs.cs (Atom):
24454           - Added AnyPropertyType definition
24455           - Added MapState definiton and updated XWindowAttribute struct
24456         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
24457         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
24458         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
24459         * XplatUIWin32.cs:
24460           - Implemented GetWindowState() and SetWindowState() methods
24461           - Fixed Win32GetWindowLong return type
24462         * XplatUIX11.cs:
24463           - Introduced central function for sending NET_WM messages
24464           - Implemented GetWindowState() and SetWindowState() methods
24465         * TextBoxBase.cs (set_Lines):
24466           - Now uses Foreground color for text added via Text property (Duh!)
24467           - Added code to remember programmatically requested size (fixes
24468             behaviour when Multiline is set after Size)
24469           - Added AutoSize logic
24471 2005-01-06  Jackson Harper  <jackson@ximian.com>
24473         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
24475 2005-01-06  Jackson Harper  <jackson@ximian.com>
24477         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
24478         set to less then 0.
24480 2005-01-06  Jackson Harper  <jackson@ximian.com>
24482         * ScrollableControl.cs: Lazy init the scrollbars.
24483         
24484 2005-01-06  Jackson Harper  <jackson@ximian.com>
24486         * Theme.cs: Speed up getting pens and solid brushes, by using
24487         their ARGB as a hash instead of tostring and not calling Contains.
24489 2005-01-06  Peter Bartok <pbartok@novell.com>
24491         * Form.cs:
24492           - Implemented OnActivated and OnDeactivate event trigger
24493           - Implemented Activate() method
24494           - Fixed ShowDialog() to activate the form that was active before
24495             the dialog was shown
24496         * XplatUIX11.cs:
24497           - Added global active_window var that tracks the currently active
24498             X11 window
24499           - Now always grabs Property changes from the root window to always
24500             catch changes on the active window property
24501           - Added code to PropertyNotify handler to send Active/Inactive
24502             messages when state changes. This puts X11 and Win32 en par on
24503             WM_ACTIVATE notifications (except for double notifications when
24504             the user clicks away from our modal window to another one of our
24505             windows)
24507 2005-01-05  Jackson Harper  <jackson@ximian.com>
24509         * ImageList.cs: Implment ctor
24511 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
24513         * XplatUIOSX.cs: Implement Activate/SetTopmost
24515 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
24517         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
24519 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
24521         * XplatUIOSX.cs: Implement GetActive/SetFocus.
24523 2005-01-05  Peter Bartok <pbartok@novell.com>
24525         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
24526           XplatUIOSX.cs: Added GetActive method to return the currently
24527           active window for the application (or null, if none is active)
24528         * Form.cs:
24529           - Implemented ActiveForm
24530           - Commented out owner assignment for modal dialogs (causes problems
24531             on Win32, since the owner will be disabled)
24532           - Reworked some Active/Focus handling (still incomplete)
24533         * CommonDialog.cs: Commented out owner assignment for modal dialogs
24534           (causes problems on Win32, since the owner will be disabled)
24535         * IWin32Window: Added ComVisible attribute
24537 2005-01-05  Peter Bartok <pbartok@novell.com>
24539         * ToolTip.cs (WndProc): Enable setting focus now that we have the
24540           required XplatUI functions.
24542 2005-01-05  Peter Bartok <pbartok@novell.com>
24544         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
24545           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
24546           to implement focus and activation handling; still incomplete and
24547           with debug output
24549 2005-01-04  Peter Bartok <pbartok@novell.com>
24551         * TextBoxBase.cs: Changed access level for Document property to
24552           match switch to internal for TextControl
24554 2005-01-04  Peter Bartok <pbartok@novell.com>
24556         * AccessibleObject: Added ComVisible attribute
24558 2005-01-04  Jackson Harper  <jackson@ximian.com>
24560         * X11Keyboard.cs: Remove unneeded var.
24562 2005-01-04  Jackson Harper  <jackson@ximian.com>
24564         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
24565         but PAINT.
24566         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
24567         ClientMessage. This makes apps exit cleanly (more often).
24568         
24569 2005-01-04  Jackson Harper  <jackson@ximian.com>
24571         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
24572         handling focus, return correct colors and fonts,
24573         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
24574         handle selection, horizontal scrolling, and mouse interaction.
24576 2005-01-04  Peter Bartok <pbartok@novell.com>
24578         * ICommandExecutor.cs: Added
24579         * IDataGridColumnStyleEditingNotificationService.cs: Added
24580         * IFeatureSupport.cs: Added
24581         * IFileReaderService.cs: Added
24582         * IDataObject.cs: Added ComVisible attribute
24583         * AmbientProperties.cs: Added
24584         * BaseCollection.cs: Added missing attributes
24585         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
24586         * BaseCollection.cs: Added missing attributes
24587         * Binding.cs: Added TypeConverter attribute
24588         * BindingContext.cs: Added DefaultEvent attribute
24589         * BindingsCollection.cs: Added DefaultEvent attribute
24590         * Button.cs: Added DefaultValue attribute
24591         * DragEventArgs.cs: Added ComVisible attribute
24592         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
24593         * KeyEventArgs.cs: Added ComVisible attribute
24594         * KeyPressEventArgs.cs: Added ComVisible attribute
24595         * MouseEventArgs.cs: Added ComVisible attribute
24596         * NavigateEventArgs.cs: Added
24597         * NavigateEventHandler.cs: Added
24598         * FeatureSupport.cs: Added
24599         * OSFeature.cs: Added
24600         * Theme.cs: Added abstract Version property to support OSFeature
24601         * ThemeWin32Classic.cs: Added Version property to
24602           support OSFeature.Themes
24603         * ProgressBar.cs: Removed OnPaintBackground override, not required since
24604           the proper styles to avoid background drawing are set, also doesn't
24605           match MS signature
24606         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
24607         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
24608         * ScrollEventArgs.cs: Added ComVisible attribute
24609         * SplitterEventArgs.cs: Added ComVisible attribute
24610         * AccessibleSelection.cs: Added Flags attribute
24611         * Appearance.cs: Added ComVisible attribute
24612         * Border3DSide.cs: Added ComVisible attribute
24613         * Border3DStyle.cs: Added ComVisible attribute
24614         * BorderStyle.cs: Added ComVisible attribute
24615         * DragAction.cs: Added ComVisible attribute
24616         * ErrorBlinkStyle.cs: Added
24617         * ScrollEventType.cs: Added ComVisible attribute
24618         * AnchorStyles.cs: Added Editor attribute
24619         * DockStyle.cs: Added Editor attribute
24620         * HorizontalAlignment.cs: Added ComVisible attribute
24621         * HelpEventArgs.cs: Added ComVisible attribute
24622         * PaintEventArgs.cs: Added IDisposable
24624 2005-01-04  Peter Bartok <pbartok@novell.com>
24626         * TextControl.cs: Switched Line, LineTag and Document classes to
24627           internal
24629 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
24631         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
24632         Simple mode, fixes, IntegralHeight, etc.
24634 2005-01-04  Peter Bartok <pbartok@novell.com>
24636         * TextBoxBase.cs: Using proper font variable now
24638 2005-01-04  Peter Bartok <pbartok@novell.com>
24640         * Form.cs (ShowDialog): Set parent to owner, if provided
24641         * GroupBox.cs: Removed unused vars
24642         * TextControl.cs:
24643           - Added GetHashCode() for Document and LineTag classes
24644           - Removed unused variables
24645           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
24646             to allow translation between continuous char position and line/pos
24647         * CheckBox.cs: Removed vars that are provided by base class
24648         * RadioButton.cs: Removed vars that are provided by base class, added
24649           new keyword where required
24650         * LinkLabel.cs: Added new keyword where required
24651         * Control.cs (WndProc): Removed unused variable
24652         * TextBoxBase.cs:
24653           - Finished SelectionLength property
24654           - Implemented SelectionStart property
24655           - Implemented Text property
24656           - Removed unused vars
24657         * MessageBox.cs: Added new keyword where required
24658         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
24659           WndProc signature
24660         * MenuAPI.cs: Added new keyword where required
24661         * ButtonBase.cs: Removed vars that are provided by base class, added
24662           new keyword where required
24663         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
24664           argument to double, to allow compiling with csc 2.0 (Atsushi ran
24665           into this)
24666         * Application.cs (Run): Now triggers the ThreadExit event
24667         * CommonDialog.cs: Added new keyword where required; now properly sets
24668           parent (owner) for dialog
24669         * XplatUIX11.cs: Commented out unused vars
24670         * StatusBar.cs: Fixed signature for Text property
24671         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
24673 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
24675         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
24676         TrackBar.cs, MonthCalendar.cs: remove unused vars
24678 2005-01-03  Jackson Harper  <jackson@ximian.com>
24680         * ThemeWin32Classic.cs:
24681         * X11Keyboard.cs: Remove unused vars.
24683 2005-01-03  Peter Bartok  <pbartok@novell.com>
24685         * TextBox.cs:
24686           - set_Text: Tied into TextControl
24687           - set_TextAlignment: Tied into TextControl
24688         * TextControl.cs:
24689           - Added alignment properties and implemented alignment handling
24690             and drawing (still has a bug, not generating proper expose events)
24691           - Added new Line() constructor to allow passing the line alignment
24692           - Fixed selection setting, properly handling end<start now
24693           - Added aligment considerations to RecalculateDocument()
24694         * TextBoxBase.cs:
24695           - Now properly enforces control height for single line controls
24696           - Added support for CharacterCasing
24697           - Added IsInputKey override
24698           - Fixed Keys.Enter logic
24699           - Added SetBoundsCore override
24700           - Fixed mouse selection handling
24702 2005-01-03  Jackson Harper  <jackson@ximian.com>
24704         * TreeView.cs:
24705           - Collapse and uncheck all nodes when CheckBoxes is disabled.
24706           - Checkboxes are always aligned to the bottom of the node,
24707           regardless of item height.
24708           - Use the node bounds to draw the text so we can center it when
24709           the item height is greater then the font height.
24710           - Node::Bounds are only the text part of the node.
24711         * TreeNode.cs: New method to combine collapsing and unchecking all
24712           nodes recursively.
24714 2005-01-02  Jackson Harper  <jackson@ximian.com>
24716         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
24717         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
24718         tree when a check is changed. TODO: Only refresh the checked node.
24720 2004-12-30  Jackson Harper  <jackson@ximian.com>
24722         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
24723         * TreeNode.cs: When collapsing make sure to never collapse the
24724         root node.
24726 2004-12-29  Jackson Harper  <jackson@ximian.com>
24728         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
24729         
24730 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
24732         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
24734 2004-12-28  Peter Bartok  <pbartok@novell.com>
24736         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
24737           not yet assigned
24739 2004-12-28  Peter Bartok  <pbartok@novell.com>
24741         * Control.cs (WndProc): Added WM_HELP handler, now generates
24742           HelpRequested event
24743         * Form.cs: Added HelpButton property and required support code
24744         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
24746 2004-12-28  Peter Bartok  <pbartok@novell.com>
24748         * CommonDialog.cs:
24749           - Made DialogForm.owner variable internal
24750           - Added check to ensure owner form is set before setting
24751             owner properties in CreateParams
24753 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
24755         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
24756           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
24757           GetCursorPos.  Fix major visibility issues.  Rework the windowing
24758           system to support borderless/titleless windows (implements menus).
24759           Fix GetWindowPos.  Implement initial background color support for
24760           views.
24762 2004-12-28  Peter Bartok  <pbartok@novell.com>
24764         * Form.cs (get_CreateParams): Make sure we have an owner before using
24765           the owner variable. Implement proper default if no owner exists
24767 2004-12-28  Peter Bartok  <pbartok@novell.com>
24769         * In preparation for making Managed.Windows.Forms the default build target
24770           for System.Windows.Forms, the following stubbed files were added.
24771           Dialogs are currently being implemented by contributors and are only
24772           short-term place holders.
24773         * ColorDialog.cs: Initial check-in (minmal stub)
24774         * DataGrid.cs: Initial check-in (minimal stub)
24775         * DataGridLineStyle.cs: Initial check-in (minimal stub)
24776         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
24777         * DataGridTableStyle.cs: Initial check-in (minimal stub)
24778         * FontDialog.cs: Initial check-in (minimal stub)
24779         * FileDialog.cs: Initial check-in (minimal stub)
24780         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
24781         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
24782         * OpenFileDialog: Initial check-in (minimal stub)
24783         * IComponentEditorPageSite.cs: Initial check-in
24784         * Splitter.cs: Initial check-in (for Jackson)
24785         * SplitterEventArgs.cs: Initial check-in (for Jackson)
24786         * SplitterEventHandler.cs: Initial check-in (for Jackson)
24787         * TextBox.cs: Initial check-in; still needs some wiring to
24788           TextControl backend
24789         * Form.cs: Implemented ControlBox property
24790         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
24791         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
24792         * TextControl.cs: Added selection functionality; added todo header
24793         * TextBoxBase.cs:
24794           - Implemented Lines property
24795           - Implemented TextHeight property
24796           - Implemented SelectedText property
24797           - Implemented SelectionLength property
24798           - Implemented SelectAll method
24799           - Implemented ToString method
24800           - Removed and cleaned up some debug code
24801           - Implemented (still buggy) mouse text selection
24803 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
24805         * ComboBox.cs: Complete DropDownList implementation, fixes.
24807 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
24809         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
24810         * ComboBoxStyle.cs: ComboBoxStyle enum
24811         * ComboBox.cs: Initial work on ComboBox control
24813 2004-12-21  Peter Bartok  <pbartok@novell.com>
24815         * Control.cs (ctor, CreateParams): Moved setting of is_visible
24816           forward so that anything that creates a window gets the default,
24817           also no longer uses Visible property in CreateParams to avoid
24818           walking up the parent chain and possibly get the wrong visible
24819           status. Fixed IsVisible to no longer walk up to the parent.
24821 2004-12-21  Peter Bartok  <pbartok@novell.com>
24823         * Form.cs (ShowDialog): Unset modality for the proper window
24825 2004-12-20  Peter Bartok  <pbartok@novell.com>
24827         * CommonDialog.cs: Initial check-in
24829 2004-12-20  Peter Bartok  <pbartok@novell.com>
24831         * Control.cs (Visible): Now uses the parent window instead of the
24832           client area window for the property
24834         * Form.cs
24835           - ShowDialog(): Now uses the proper window for modality
24836           - The default visibility state for the form parent is now false. This
24837             will prevent the user from seeing all the changes to the form and
24838             its controls before the application hits Application.Run()
24839           - Removed some stale commented out code
24841         * NativeWindow.cs:
24842           - Added FindWindow() method to have a method to check for existence
24843             of a window handle
24844           - Added ability to override default exception handling (for example
24845             when debugging with VS.Net; to do this the ExternalExceptionHandler
24846             define must be set
24847           - Removed some useless debug output
24849         * XplatUIX11.cs:
24850           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
24851             not working as expected
24852           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
24853             property to allow switching back to the modal window if focus is
24854             given to another one of our windows (Application Modal)
24855           - Now only sets override_redirect if we create a window
24856             without WS_CAPTION
24857           - Moved EventMask selection before mapping of newly created window
24858             so we can catch the map event as well
24859           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
24860           - Added various Atom related DllImports
24861           - Implemented Exit() method
24862           - .ctor() : No longer shows window if WS_VISIBLE is not defined
24863             in the CreateParams
24865         * MessageBox.cs: Now properly deals with the FormParent window by
24866           providing an override the FormParent CreateParams property to
24867           set as POPUP instead of OVERLAPPED window.
24869 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
24871         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
24872         Minor code cleanup.
24874 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
24875         
24876         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
24878 2004-12-18  Peter Bartok  <pbartok@novell.com>
24880         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
24881           implementing SetModal() method
24883 2004-12-18  Peter Bartok  <pbartok@novell.com>
24885         * X11Structs.cs (XGCValues): Fixed type of function element
24886         * XplatUI.cs: Added ScrollWindow() method
24887         * XplatUIDriver.cs: Added ScrollWindow() abstract
24888         * XplatUIWin32.cs: Implemented ScrollWindow() method
24889         * XplatUIX11.cs: Implemented ScrollWindow() method
24890         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
24892 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
24894         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
24895         Some more keyboard support (INCOMPLETE)
24897 2004-12-17  Peter Bartok  <pbartok@novell.com>
24899         * TextControl.cs:
24900         - Added color attribute to line tags.
24901         - Added color argument to all functions dealing with tags
24902         - Added color argument support to various functions
24903         - Fixed miss-calculation of baseline/shift in certain circumstances
24905         * TextBoxBase.cs: Added new color option to test code
24907 2004-12-17  Jackson Harper  <jackson@ximian.com>
24909         * TreeNode.cs:
24910         * MonthCalendar.cs: Signature fixes
24912 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
24914         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
24915         keyboard event moved it.  Create a new graphics context for each paint resolves this
24917 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
24919         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
24920         Make caret exist and go blink blink.  Initial keyboard support.
24921         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
24922         works.
24924 2004-12-17  Jackson Harper  <jackson@ximian.com>
24926         * XplatUIStructs.cs: Updated set of virtual keycodes.
24927         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
24929 2004-12-17  Jackson Harper  <jackson@ximian.com>
24931         * XplatUIX11.cs: Prune old keyboard code.
24933 2004-12-17  Jackson Harper  <jackson@ximian.com>
24935         * XplatUIX11.cs: When generating mouse wparams get the modifier
24936         keys from the ModifierKeys property.
24938 2004-12-17  Jackson Harper  <jackson@ximian.com>
24940         * X11Keyboard.cs: Send up/down input when generating
24941         messages. Remove some unused vars.
24943 2004-12-17  Jackson Harper  <jackson@ximian.com>
24945         * TabControl.cs:
24946         * TreeView.cs: get rid of warnings.
24948 2004-12-17  Jackson Harper  <jackson@ximian.com>
24950         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
24952 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
24954         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
24955           CheckedListBox.cs: Implementation
24957 2004-12-17  Peter Bartok  <pbartok@novell.com>
24959         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
24961 2004-12-16  Peter Bartok  <pbartok@novell.com>
24963         * TextControl.cs:
24964           - InsertCharAtCaret(): Fixed start pos fixup
24965           - CaretLine_get: No longer derives the line from the tag, the tag
24966             could be stale if lines in the document have been added or deleted
24967           - RebalanceAfterDelete(): Fixed bug in balancing code
24968           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
24969           - Line.Streamline(): Now can also elminate leading empty tags
24970           - DumpTree(): Added a few more tests and prevented exception on
24971             uninitialized data
24972           - Added Debug section for Combining lines
24973           - Delete(): Now copies all remaining properties of a line
24974           
24975         * TextBoxBase.cs:
24976           - Left mousebutton now sets the caret (and middle button still acts
24977             as formatting tester, which must go away soon)
24978           - Added Debug section for Deleting/Combining lines
24979           - Fixed calculations for UpdateView after Combining lines
24981 2004-12-16  Peter Bartok  <pbartok@novell.com>
24983         * TextControl.cs: Now properly aligns text on a baseline, using the
24984           new XplatUI.GetFontMetrics() method. Simplified several calculations
24985         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
24986           defined
24988 2004-12-16  Peter Bartok  <pbartok@novell.com>
24990         * XplatUI.cs: Added GetFontMetrics() method
24991         * XplatUIDriver.cs: Added GetFontMetrics() abstract
24992         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
24993           into libgdiplus, our private GetFontMetrics function
24994         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
24995         * XplatUIWin32.cs: Implemented GetFontMetrics() method
24997 2004-12-16  Jackson Harper  <jackson@ximain.com>
24999         * XplatUIStruct.cs: Add enum for dead keys
25000         * X11Keyboard.cs: Map and unmap dead keys.
25002 2004-12-16  Jackson Harper  <jackson@ximian.com>
25004         * X11Keyboard.cs: Detect and use the num lock mask.
25006 2004-12-16  Peter Bartok  <pbartok@novell.com>
25008         * Control.cs (CreateGraphics): Added check to make sure the
25009           handle of the window exists before calling Graphics.FromHwnd()
25011 2004-12-16  Peter Bartok  <pbartok@novell.com>
25013         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
25014           contains a lot of code that's not supposed to be there for the
25015           real thing, but required for developing/testing the textbox
25016           backend.
25018 2004-12-16  Peter Bartok  <pbartok@novell.com>
25020         * TextControl.cs:
25021         - Fixed Streamline method
25022         - Added FindTag method to Line
25023         - Added DumpTree method for debugging
25024         - Added DecrementLines() method for deleting lines
25025         - Fixed UpdateView to update the cursor to end-of-line on single-line
25026           updates
25027         - Added PositionCaret() method
25028         - Fixed MoveCaret(LineDown) to move into the last line, too
25029         - Added InsertChar overload
25030         - Fixed InsertChar tag offset calculations
25031         - Added DeleteChar() method
25032         - Added Combine() method for folding lines
25033         - Fixed Delete() method, no longer allocates wasted Line object and
25034           now copies all properties when swapping nodes
25035         - Delete() method now updates document line counter
25037 2004-12-15  Jackson Harper  <jackson@ximian.com>
25039         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
25040         * X11Keyboard.cs: Expose the currently selected modifier keys
25041         through a property.
25043 2004-12-15  Peter Bartok  <pbartok@novell.com>
25045         * TextControl.cs: Initial check-in. Still incomplete
25047 2004-12-15  Jackson Harper  <jackson@ximian.com>
25049         * TreeNode.cs:
25050         * TreeView.cs: Fix build on csc (second time today ;-))
25052 2004-12-15  Jackson Harper  <jackson@ximian.com>
25054         * TreeView.cs: Store the treenodes plus/minus box bounds when it
25055         is calculated and use this for click testing.
25056         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
25058 2004-12-15  Jackson Harper  <jackson@ximian.com>
25060         * TreeView.cs: Pass the nodes image index to the image list when
25061         drawing that image.
25063 2004-12-15  Jackson Harper  <jackson@ximian.com>
25065         * X11Keyboard.cs: Set messages hwnd.
25066         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
25067         post_message calls.
25069 2004-12-15  Jackson Harper  <jackson@ximian.com>
25071         * X11Keyboard.cs: Fix to compile with csc.
25072         
25073 2004-12-15  Jackson Harper  <jackson@ximian.com>
25075         * X11Structs.cs: Add key mask values
25076         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
25077         * X11Keyboard.cs: New file - Extrapolates and interpolates key
25078         down/up foo into WM_CHAR foo
25079         * KeyboardLayouts.cs: Common keyboard layouts
25080         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
25081         post messages into the main queue.
25083 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
25085         * Button.cs: implement ProcessMnemonic
25086         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
25087           brushes everytime
25088         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
25089         * ButtonBase.cs: Show HotkeyPrefix (not the &)
25091 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
25092         
25093         * MonthCalendar.cs: Implemented click-hold for next/previous month
25094           and date selection
25095           
25096 2004-12-11  Peter Bartok  <pbartok@novell.com>
25098         * X11Structs.cs:
25099           - Added XKeyboardState (moved from XplatUIX11.cs)
25100           - Added XCreateGC related enums and structures
25101           - Added GXFunction for XSetFunction
25103         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
25105         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
25106           CaretVisible() calls
25108         * ToolTip.cs: Added code to prevent stealing focus from app windows
25110         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
25111           DestroyCaret, SetCaretPos and CaretVisible)
25113         * XplatUIX11.cs:
25114           - Added implementation for caret functions
25115           - Moved hover variables into a struct, to make it a bit easier
25116             on the eyes and to debug
25117           - Removed XKeyboardState (moved to XplatUIX11.cs)
25118           - Moved Keyboard properties into the properties region
25120         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
25121           call to get a graphics context for our control
25123         * XplatUIOSX.cs: Added empty overrides for the new caret functions
25125         * TreeView.cs: Fixed bug. No matter what color was set it would always
25126           return SystemColors.Window
25128         * XplatUIWin32.cs: Implemented caret overrides
25130 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
25132         * ListBox.cs: fire events, implement missing methods and properties,
25133         sorting.
25135 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
25137         * MonthCalendar.cs: invalidation bug fixing
25138         * ThemeWin32Classic.cs: paint fixing
25140 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
25142         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
25143         prepare the CGContextRef there now.
25145 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
25147         * MonthCalendar.cs:
25148           - optimisationL only invalidate areas that have changed
25149         * ThemeWin32Classic.cs:
25150           - only paint parts that intersect with clip_area
25152 2004-12-09  Peter Bartok  <pbartok@novell.com>
25154         * Application.cs: Undid changes from r37004 which cause problems
25155         on X11
25157 2004-12-09  Ravindra  <rkumar@novell.com>
25159         * ToolBar.cs: Added support for displaying ContextMenu
25160         attached to a button on ToolBar.
25161         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
25162         property.
25164 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
25166         * Label.cs: autosize works in text change and removes unnecessary
25167         invalidate
25169 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
25171         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
25172         remove warnings
25174 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
25176         * XplatUIOSX.cs: Added mouse move/click/grab support
25177         Remove some debugging WriteLines not needed anymore.
25178         Add window resizing/positioning.
25179         Fix visibility on reparenting.
25181 2004-12-08  Peter Bartok  <pbartok@novell.com>
25183         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
25185 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
25187         * XplatUIOSX.cs: Initial checkin
25188         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
25190 2004-12-03  Ravindra <rkumar@novell.com>
25192         * ListView.cs: Added some keybindings and fixed scrolling.
25193         ScrollBars listen to ValueChanged event instead of Scroll
25194         Event. This would let us take care of all changes being
25195         done in the scrollbars' values programmatically or manually.
25196         * ListView.cs (CanMultiselect): Added a check for shift key.
25197         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
25198         * ListViewItem.cs (Clone): Fixed. We need to make a copy
25199         of ListViewSubItemCollection as well.
25201 2004-12-06  Peter Bartok <pbartok@novell.com>
25203         * Control.cs (Parent): Added check and exception to prevent
25204         circular parenting
25206 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
25208         * ListBox.cs: implemented clipping, selection single and multiple,
25209         bug fixing
25211 2004-12-03  Ravindra <rkumar@novell.com>
25213         * ListView.cs (ListView_KeyDown):
25214         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
25215         when CTRL key is pressed.
25216         * ListViewItem.cs (Selected): Fixed setting the property.
25218 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
25220         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
25222         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
25223         MinimizeBox, ShowInTaskbar, TopMost properties.
25225         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
25226         will be implemented).
25228 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
25230         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
25232         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
25233         tests.
25234         
25235         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
25236         
25237         * TreeView.cs: BackColor is Colors.Window.
25239 2004-12-01  Jackson Harper  <jackson@ximian.com>
25241         * TreeView.cs: When resizing the tree if the user is making it
25242         smaller we don't get expose events, so we need to handle adding
25243         the horizontal scrollbar in the size changed handler as well as
25244         the expose handler.
25246 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
25248         * DrawItemState.cs: fixes wrong enum values
25250 2004-12-01  Jackson Harper  <jackson@ximian.com>
25252         * TreeView.cs: Resize the hbar as well as the vbar on resize.
25254 2004-12-01  Jackson Harper  <jackson@ximian.com>
25256         * NodeLabelEditEventArgs.cs:
25257         * NodeLabelEditEventHandler.cs:
25258         * OpenTreeNodeEnumerator.cs:
25259         * TreeNode.cs:
25260         * TreeNodeCollection.cs:
25261         * TreeView.cs:
25262         * TreeViewAction.cs:
25263         * TreeViewCancelEventArgs.cs:
25264         * TreeViewCancelEventHandler.cs:
25265         * TreeViewEventArgs.cs:
25266         * TreeViewEventHandler.cs: Initial implementation.
25268 2004-12-01  Ravindra <rkumar@novell.com>
25270         * ListView.cs (CalculateListView): Fixed scrolling related
25271         calculations. Also, removed some debug statements from other
25272         places.
25273         * ListViewItem.cs: Changed access to 'selected' instance variable
25274         from private to internal.
25275         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
25277 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
25279         * ThemeWin32Classic.cs: remove cache of brush and pens for
25280         specific controls and use the global system, fixes scrollbutton
25281         bugs (for small sizes, disabled, etc)
25282         
25283         * ScrollBar.cs: does not show the thumb for very small controls
25284         (as MS) and allow smaller buttons that the regular size
25286 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
25288         * UpDownBase.cs: Add abstract methods for the interface.
25289         Add new virtual methods (need to be hooked up to TextEntry when it
25290         exists).
25291         Add override methods for most features.
25292         Computes the size, forces the height of the text entry.
25294         * NumericUpDown.cs: Put here the current testing code.
25296         * Set eol-style property on all files that do not have mixed line
25297         endings, to minimize the future problems.  There are still a few
25298         files with mixed endings, and someone should choose whether they
25299         want to move it or not.
25301 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
25303         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
25304         System.Colors
25305         
25306 2004-11-30  Ravindra <rkumar@novell.com>
25308         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
25309         drawing and replaced use of SystemColors by theme colors.
25310         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
25311         * ListView.cs (ListViewItemCollection.Add): Throw exception when
25312         same ListViewItem is being added more than once.
25314 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
25316         * MonthCalendar.cs:
25317           - ControlStyles love to make the control not flicker
25318           
25319 2004-11-30  Peter Bartok  <pbartok@novell.com>
25321         * CharacterCasing.cs: Added
25323 2004-11-29  Peter Bartok  <pbartok@novell.com>
25325         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
25326           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
25327           I am removing these files as they conflict with already completed
25328           work. While it is fantastic to get contributions to MWF, I
25329           respectfully ask that everyone please coordinate their contributions
25330           through mono-winforms-list or #mono-winforms at this time. We're
25331           explicitly avoiding stubbing and don't want controls that don't have
25332           their basic functionality implemented in svn. Please also see
25333           http://www.mono-project.com/contributing/winforms.html
25336 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
25338         * Application.cs (ModalRun): Don't hang after exit.
25340         * Theme.cs: New TreeViewDefaultSize property.
25342         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
25343         with less hardcoded SystemColors constant.
25344         Implemented TreeViewDefaultSize.
25346         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
25347         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
25350 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
25352         * MonthCalendar.cs:
25353           - Fix NextMonthDate and PrevMonthDate click moving calendar
25355 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
25357         * MonthCalendar.cs:
25358           - Fix usage of ScrollChange Property when scrolling months
25360 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
25362         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
25363          - Fixes menu destroying
25364          - Support adding and removing items on already created menus
25366 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
25368         * MonthCalendar.cs:
25369           - Re-worked all bolded dates handling to match win32
25370         * ThemeWin32Classic.cs:
25371           - Fixed rendering with bolded dates
25373 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
25375         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
25376         - Horizontal scroolbar
25377         - Multicolumn
25378         - Fixes
25381 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
25383         * MonthCalendar.cs:
25384           - Fix Usage of MaxSelectionCount from SelectionRange
25385           - Fixed Shift + Cursor Selection
25386           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
25387           - Fixed normal cursor selection to be compat with win32
25388           - Fixed Shift + Mouse Click selection
25390 2004-11-24  Peter Bartok <pbartok@novell.com>
25392         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
25393         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
25394         * XplatUIX11.cs:
25395           - CreatedKeyBoardMsg now updates keystate with Alt key
25396           - Added workaround for timer crash to CheckTimers, Jackson will
25397             develop a proper fix and check in later
25398           - Implemented DispatchMessage
25399           - Removed calling the native window proc from GetMessage (call
25400             now moved to DispatchMessage)
25402         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
25403           the keydata (Fixes bug #69831)
25405         * XplatUIWin32.cs:
25406           - (DispatchMessage): Switched to return IntPtr
25407           - Added DllImport for SetFocus
25409 2004-11-24  Ravindra <rkumar@novell.com>
25411         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
25412         background drawing.
25413         * ListViewItem.cs: Fixed various properties, calculations
25414         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
25415         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
25416         and some internal properties. Fixed MouseDown handler and Paint
25417         method.
25419 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
25421         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
25423 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
25425         * ContainerControl.cs: correct accidental check in of local changes
25427 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
25429         * ThemeWin32Classic.cs:
25430                 - Fixed Drawing Last month in grid (sometimes not showing)
25431         * MonthCalendar.cs:
25432                 - Fixed title width calculation bug (makeing title small)
25434 2004-11-23  Peter Bartok <pbartok@novell.com>
25436         * XplatUIX11.cs:
25437           - Added generation of WM_MOUSEHOVER event
25438           - Added missing assignment of async_method atom
25439           - Fixed WM_ERASEBKGND; now only redraws the exposed area
25441 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
25443         * ThemeWin32Classic.cs:
25444                 - Fixed Drawing of today circle when showtodaycircle not set
25445                 - fixed drawing of first and last month in the grid (gay dates)
25446         * MonthCalendar.cs:
25447                 - Fixed Drawing of today circle
25448                 - Fixed drawing of grady dates
25449                 - Fixed HitTest for today link when ShowToday set to false
25450                 - Fixed DefaultSize to obey ShowToday
25452 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
25454         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
25455         * System.Windows.Forms/Theme.cs
25456         * MonthCalendar.cs: added for MonthCalendar
25457         * SelectionRange.cs: added for MonthCalendar
25458         * Day.cs: added for MonthCalendar: added for MonthCalendar
25459         * DateRangeEventArgs.cs: added for MonthCalendar
25460         * DateRangeEventHandler.cs: added for MonthCalendar
25462 2004-11-22  Ravindra <rkumar@novell.com>
25464         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
25465         property.
25467 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
25469         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
25470         event handler.
25471         
25472         * NumericUpDown.cs: Added new implementation.
25473         * UpDownBase.cs: Added new implementation.
25475         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
25476         implementations.
25477         
25478         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
25479         implementations.
25481         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
25482         methods.
25484 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
25486         * Timer.cs  (Dispose): Should call the base dispose when
25487         overriding.
25489 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
25491         * ScrollBar.cs: updates thumb position when max, min or increment
25492         is changed
25494 2004-11-21  Ravindra <rkumar@novell.com>
25496         * ListView.cs: Implemented item selection, activation and
25497         column header style. Fixed properties to do a redraw, if
25498         required. Added support for MouseHover, DoubleClick, KeyDown
25499         and KeyUp event handling and some minor fixes.
25500         * ListViewItem.cs: Fixed constructor.
25501         * ThemeWin32Classic.cs: Improved drawing for ListView.
25503 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
25505         * ThemeWin32Classic.cs: initial listbox drawing code
25506         * DrawMode.cs: new enumerator
25507         * ListControl.cs: stubbed class
25508         * ListBox.cs: initial implementation
25509         * Theme.cs: new methods definitions
25510         * SelectionMode.cs: new enumerator
25512 2004-11-17  Peter Bartok  <pbartok@novell.com>
25514         * XplatUIWin32.cs: Added double-click events to the class style
25515         * Control.cs (WndProc):
25516           - Added handling of click-count to MouseDown/ MouseUp events.
25517           - Added handling of middle and right mouse buttons
25518           - Removed old debug code
25520 2004-11-17  Jackson Harper  <jackson@ximian.com>
25522         * XplatUIX11.cs: Use the new Mono.Unix namespace.
25524 2004-11-17  Ravindra <rkumar@novell.com>
25526         * ListView.cs: Added event handling for MouseMove/Up/Down.
25527         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
25528         * ThemeWin32Classic.cs: We need to clear the graphics context and
25529         draw column header in a proper state.
25532 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
25534         *  Menu.cs: fixes signature
25536 2004-11-16  Peter Bartok  <pbartok@novell.com>
25538         * XplatUIX11.cs (GetMessage): Implemented generation of
25539           double click mouse messages
25541 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
25543         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
25544         not by menu
25546 2004-11-11  Peter Bartok  <pbartok@novell.com>
25548         * HandleData.cs: Added Visible property
25549         * XplatUIX11.cs (IsVisible): Now uses Visible property from
25550           HandleData
25551         * XplatUIX11.cs: Removed old debug leftovers
25552         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
25553         * Control.cs (WndProc): Removed old debug leftovers,
25554           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
25555           needed WM_SIZE handling
25557 2004-11-11  Jackson Harper  <jackson@ximian.com>
25559         * OwnerDrawPropertyBag.cs:
25560         * TreeViewImageIndexConverter.cs: Initial implementation
25562 2004-11-10  Jackson Harper  <jackson@ximian.com>
25564         * ThemeWin32Classic.cs:
25565         * TabControl.cs: instead of moving tabs by the slider pos just
25566         start drawing at the tab that is offset by the slider. This way
25567         scrolling always moves by exactly one tab.
25569 2004-11-10  Jackson Harper  <jackson@ximian.com>
25571         * TabControl.cs: You can only scroll left when the slider has
25572         already ben moved right.
25573         
25574 2004-11-10  Jackson Harper  <jackson@ximian.com>
25576         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
25577         the clip area.
25578         
25579 2004-11-10  Jackson Harper  <jackson@ximian.com>
25581         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
25582         clip area.
25583         
25584 2004-11-09  Jackson Harper  <jackson@ximian.com>
25586         * TabControl.cs (CalcXPos): New helper method so we can determine
25587         the proper place to start drawing vertical tabs.
25588         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
25589         
25590 2004-11-09  Jackson Harper  <jackson@ximian.com>
25592         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
25593         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
25594         and Bottom, left and right are illegal values for this and
25595         multiline is enabled when the alignment is set to left or right.
25596         (DrawTab): Each alignment block should draw the text itself now
25597         because Left requires special love. Also add rendering for Left
25598         aligned tabs.
25599         
25600 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
25602         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
25603         does not destroy the windows, removes debugging messages
25605 2004-11-09  jba  <jba-mono@optusnet.com.au>
25607         * ThemeWin32Classic.cs
25608         (DrawButtonBase): Fix verticle text rect clipping in windows
25609         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
25610         rendering and incorrect text rect clipping
25611         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
25612         rendering and incorrect text rect clipping
25613         
25614 2004-11-08  Jackson Harper  <jackson@ximian.com>
25616         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
25617         bottom when they are bottom aligned so the bottoms of the tabs get
25618         displayed.
25619         * TabControl.cs (DropRow): Move rows up instead of down when the
25620         tab control is bottom aligned.
25622 2004-11-08 13:59  pbartok
25624         * XplatUIX11.cs:
25625           - Added handling for various window styles
25626           - Added handling for popup windows
25627           - Added SetTopmost handling
25629 2004-11-08 13:55  pbartok
25631         * XplatUIWin32.cs:
25632           - Added argument to SetTopmost method
25633           - Fixed broken ClientToScreen function
25635 2004-11-08 13:53  pbartok
25637         * XplatUIStructs.cs:
25638           - Added missing WS_EX styles
25640 2004-11-08 13:53  pbartok
25642         * XplatUI.cs, XplatUIDriver.cs:
25643           - Added argument to SetTopmost
25645 2004-11-08 13:52  pbartok
25647         * X11Structs.cs:
25648           - Added XSetWindowAttributes structure
25649           - Improved XWindowAttributes structure
25650           - Added SetWindowValuemask enum
25651           - Added window creation arguments enum
25652           - Added gravity enum
25653           - Added Motif hints structure
25654           - Added various Motif flags and enums
25655           - Added PropertyMode enum for property functions
25657 2004-11-08 13:50  pbartok
25659         * Form.cs:
25660           - Fixed arguments for updated SetTopmost method
25662 2004-11-08 13:49  pbartok
25664         * ToolTip.cs:
25665           - Fixed arguments for updated SetTopmost function
25666           - Fixed usage of PointToClient
25668 2004-11-08 13:44  pbartok
25670         * MenuAPI.cs:
25671           - Added Clipping of children and siblings
25673 2004-11-08 13:41  pbartok
25675         * MainMenu.cs:
25676           - Removed SetMenuBarWindow call. We do this in Form.cs
25678 2004-11-08 13:40  jackson
25680         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
25681           scrolling jimmi in the correct location with bottom aligned tabs
25683 2004-11-08 13:36  pbartok
25685         * ContainerControl.cs:
25686           - Implemented BindingContext
25687           - Implemented ParentForm
25689 2004-11-08 12:46  jackson
25691         * TabControl.cs: Put bottom rendered tabs in the right location
25693 2004-11-08 07:15  jordi
25695         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
25696           removes dead code
25698 2004-11-05 17:30  jackson
25700         * TabControl.cs: When selected tabs are expanded make sure they
25701           don't go beyond the edges of the tab control
25703 2004-11-05 14:57  jackson
25705         * TabControl.cs: Reset show_slider so if the control is resized to
25706           a size where it is no longer needed it's not displayed anymore
25708 2004-11-05 13:16  jackson
25710         * TabControl.cs: Make tab pages non visible when added to the
25711           control
25713 2004-11-05 12:42  jackson
25715         * TabControl.cs: Implement SizeMode.FillToRight
25717 2004-11-05 12:16  jackson
25719         * Control.cs: Do not call CreateHandle if the handle is already
25720           created
25722 2004-11-05 11:46  jackson
25724         * TabControl.cs: Remove superflous call to CalcTabRows
25726 2004-11-05 09:07  jackson
25728         * XplatUIX11.cs: Update for Mono.Posix changes
25730 2004-11-05 07:00  ravindra
25732         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
25733           scrolling.
25735 2004-11-04 22:47  jba
25737         * ThemeWin32Classic.cs:
25738           - Fix Button rendering for FlatStyle = Flat or Popup
25739           - Fix RadioButton and CheckBox rendering when Appearance = Button
25740             (normal and flatstyle).
25741           - Correct outer rectangle color when drawing focus rectangle
25742           - Adjust button bounds to be 1 px smaller when focused
25743           - Make button not draw sunken 3d border when pushed (windows compat)
25744           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
25745           - Offset the text in RadioButton and Checkbox when being rendered as
25746           a button.
25747           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
25748           radiobuttons
25749           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
25750           - Fixed disabled text rendering for normally rendered radiobuttons
25752 2004-11-04 10:26  jackson
25754         * TabControl.cs: Recalculate tab rows when resizing
25756 2004-11-04 07:47  jordi
25758         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
25759           collection completion, drawing issues, missing features
25761 2004-11-04 05:03  ravindra
25763         * ScrollBar.cs:
25764                 - We need to recalculate the Thumb area when
25765                 LargeChange/maximum/minimum values are changed.
25766           - We set the 'pos' in UpdatePos() method to minimum, if it's less
25767                 than minimum. This is required to handle the case if large_change is
25768                 more than max, and use LargeChange property instead of large_change
25769                 variable.
25770           - We return max+1 when large_change is more than max, like MS does.
25772 2004-11-04 04:29  ravindra
25774         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
25775                 - Changed default value signatures (prefixed all with ListView).
25776                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
25777                 ListView.
25778           - Fixed calculations for ListViewItem and implemented Clone()
25779           method.
25781 2004-11-04 04:26  ravindra
25783         * Theme.cs, ThemeWin32Classic.cs:
25784                 - Changed default ListView values signatures (prefixed all with
25785                 ListView).
25786           - Fixed default size values for VScrollBar and HScrollBar.
25787                 - Fixed DrawListViewItem method.
25789 2004-11-04 04:05  ravindra
25791         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
25793 2004-11-04 04:04  ravindra
25795         * ImageList.cs: Implemented the missing overload for Draw method.
25797 2004-11-03 19:29  jackson
25799         * TabControl.cs: Handle dropping rows on selection properly
25801 2004-11-03 11:59  jackson
25803         * TabControl.cs: remove debug code
25805 2004-11-03 11:52  jackson
25807         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
25808           the scrolly widgerywoo
25810 2004-11-02 13:52  jackson
25812         * TabControl.cs: Resize the tab pages and tabs when the tab control
25813           is resized
25815 2004-11-02 13:40  jackson
25817         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
25818           selected tab to the bottom
25820 2004-11-02 13:39  jackson
25822         * TabPage.cs: Store the tab pages row
25824 2004-11-02 12:33  jordi
25826         * MenuItem.cs: fixes handle creation
25828 2004-11-02 11:42  jackson
25830         * TabControl.cs: signature fix
25832 2004-11-02 08:56  jackson
25834         * TabControl.cs: Calculate whether the tab is on an edge properly.
25835           Remove top secret debugging code
25837 2004-11-01 19:57  jackson
25839         * TabControl.cs: Add click handling, and proper sizing
25841 2004-11-01 19:47  jackson
25843         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
25844           tab controls
25846 2004-11-01 19:39  jackson
25848         * TabPage.cs: add internal property to store the bounds of a tab
25849           page
25851 2004-10-30 04:23  ravindra
25853         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
25854           values.
25856 2004-10-30 04:21  ravindra
25858         * ListView.cs, ListViewItem.cs: Added support for scrolling and
25859           fixed calculations.
25861 2004-10-30 03:06  pbartok
25863         * XplatUIX11.cs:
25864           - Removed extension of DllImported libs
25866 2004-10-29 09:55  jordi
25868         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
25869           navigation, itemcollection completion, menu fixes
25871 2004-10-27 22:58  pbartok
25873         * XplatUIX11.cs:
25874           - Now throws a nice error message when no X display could be opened
25876 2004-10-26 13:51  jordi
25878         * ListView.cs: removes warning
25880 2004-10-26 03:55  ravindra
25882         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
25883           ThemeWin32Classic.cs: Some formatting for my last checkins.
25885 2004-10-26 03:36  ravindra
25887         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
25888           control and default values.
25890 2004-10-26 03:35  ravindra
25892         * Theme.cs: Added some default values for ListView control.
25894 2004-10-26 03:33  ravindra
25896         * ToolBar.cs: ToolBar should use the user specified button size, if
25897           there is any. Added a size_specified flag for the same.
25899 2004-10-26 03:33  ravindra
25901         * ColumnHeader.cs: Added some internal members and calculations for
25902           ColumnHeader.
25904 2004-10-26 03:32  ravindra
25906         * ListViewItem.cs: Calculations for ListViewItem.
25908 2004-10-26 03:31  ravindra
25910         * ListView.cs: Added some internal members and calculations for
25911           ListView.
25913 2004-10-22 13:31  jordi
25915         * MenuAPI.cs: speedup menus drawing
25917 2004-10-22 13:16  jackson
25919         * XplatUIX11.cs: Make sure to update exposed regions when adding an
25920           expose event
25922 2004-10-22 11:49  jackson
25924         * Control.cs: oops
25926 2004-10-22 11:41  jackson
25928         * Control.cs: Check to see if the window should have its background
25929           repainted by X when drawing.
25931 2004-10-22 11:31  jackson
25933         * XplatUIX11.cs: When invalidating areas only use XClearArea if
25934           clear is true, this way we do not get flicker from X repainting the
25935           background
25937 2004-10-22 11:28  jackson
25939         * XEventQueue.cs: Queue properly
25941 2004-10-21 09:38  jackson
25943         * XEventQueue.cs: Fix access modifier
25945 2004-10-21 09:36  jackson
25947         * XEventQueue.cs: Don't loose messages
25949 2004-10-21 09:22  jackson
25951         * XEventQueue.cs: Don't loose messages
25953 2004-10-20 04:15  jordi
25955         * BootMode.cs: enum need it by SystemInfo
25957 2004-10-19 21:58  pbartok
25959         * XplatUIWin32.cs:
25960           - Small sanity check
25962 2004-10-19 21:56  pbartok
25964         * Form.cs:
25965           - Added private FormParentWindow class which acts as the container
25966             for our form and as the non-client area where menus are drawn
25967           - Added/Moved required tie-ins to Jordi's menus
25968           - Fixed/Implemented the FormStartPosition functionality
25970 2004-10-19 21:52  pbartok
25972         * Control.cs:
25973           - Removed unneeded locals
25974           - Added code to all size and location properties to understand and
25975             deal with the parent container of Form
25977 2004-10-19 21:33  pbartok
25979         * Application.cs:
25980           - Fixed to deal with new Form subclasses for menus
25982 2004-10-19 17:48  jackson
25984         * XEventQueue.cs: commit correct version of file
25986 2004-10-19 16:50  jackson
25988         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
25990 2004-10-19 16:15  jordi
25992         * MenuAPI.cs: MenuBarCalcSize returns the height
25994 2004-10-19 08:31  pbartok
25996         * Control.cs:
25997           - Added missing call to PreProcessMessage before calling OnXXXKey
25998           methods
26000 2004-10-19 00:04  ravindra
26002         * ToolTip.cs: Fixed constructor.
26004 2004-10-18 09:31  jordi
26006         * MenuAPI.cs: menuitems in menubars do not have shortcuts
26008 2004-10-18 09:26  jordi
26010         * MenuItem.cs: fixes MenuItem class signature
26012 2004-10-18 08:56  jordi
26014         * MenuAPI.cs: prevents windows from showing in the taskbar
26016 2004-10-18 00:28  ravindra
26018         * ToolTip.cs: Suppressed a warning message.
26020 2004-10-18 00:27  ravindra
26022         * Control.cs: Default value of visible property must be true.
26024 2004-10-17 23:19  pbartok
26026         * ToolTip.cs:
26027           - Complete implementation
26029 2004-10-17 23:19  pbartok
26031         * XplatUIX11.cs:
26032           - Added EnableWindow method
26033           - Added SetModal stub
26034           - Added generation of WM_ACTIVATE message (still needs testing)
26035           - Added SetTopMost stub
26036           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
26038 2004-10-17 23:17  pbartok
26040         * XplatUIWin32.cs:
26041           - Removed VirtualKeys to XplatUIStructs
26042           - Implemented SetTopMost method
26043           - Implemented EnableWindow method
26044           - Bugfix in ScreenToClient()
26045           - Bugfixes in ClientToScreen()
26047 2004-10-17 22:51  pbartok
26049         * XplatUIStructs.cs:
26050           - Added WS_EX styles to WindowStyles enumeration
26052 2004-10-17 22:50  pbartok
26054         * XplatUI.cs, XplatUIDriver.cs:
26055           - Added method for enabling/disabling windows
26056           - Added method for setting window modality
26057           - Added method for setting topmost window
26059 2004-10-17 22:49  pbartok
26061         * ThemeWin32Classic.cs:
26062           - Added ToolTip drawing code
26064 2004-10-17 22:49  pbartok
26066         * Theme.cs:
26067           - Added ToolTip abstracts
26069 2004-10-17 22:47  pbartok
26071         * Form.cs:
26072           - Fixed Form.ControlCollection to handle owner relations
26073           - Added Owner/OwnedForms handling
26074           - Implemented Z-Ordering for owned forms
26075           - Removed unneeded private overload of ShowDialog
26076           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
26077             so I hope)
26078           - Fixed Close(), had wrong default
26079           - Added firing of OnLoad event
26080           - Added some commented out debug code for Ownership handling
26082 2004-10-17 22:16  pbartok
26084         * Control.cs:
26085           - Fixed/implemented flat list of controls
26087 2004-10-17 22:14  pbartok
26089         * Application.cs:
26090           - Added code to simulate modal dialogs on Win32
26092 2004-10-17 16:11  jordi
26094         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
26095           mouse event
26097 2004-10-17 13:39  jordi
26099         * MenuAPI.cs: menu drawing fixes
26101 2004-10-15 09:10  ravindra
26103         * StructFormat.cs: General Enum.
26105 2004-10-15 09:09  ravindra
26107         * SizeGripStyle.cs: Enum for Form.
26109 2004-10-15 09:08  ravindra
26111         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
26112           in Theme for ListView.
26114 2004-10-15 09:06  ravindra
26116         * ColumnHeader.cs: Flushing some formatting changes.
26118 2004-10-15 09:05  ravindra
26120         * ListViewItem.cs: Implemented GetBounds method and fixed coding
26121           style.
26123 2004-10-15 09:03  ravindra
26125         * ListView.cs: Implemented Paint method and fixed coding style.
26127 2004-10-15 07:34  jordi
26129         * MenuAPI.cs: fix for X11
26131 2004-10-15 07:32  ravindra
26133         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
26134                 - Renamed Paint() method to Draw() for clarity. Also, moved
26135                 DrawImage() to OnPaint().
26137 2004-10-15 07:25  ravindra
26139         * CheckBox.cs, RadioButton.cs:
26140                 - Removed Redraw (), we get it from ButtonBase.
26141                 - Implemented Paint (), to do class specific painting.
26143 2004-10-15 07:16  ravindra
26145         * ButtonBase.cs:
26146                 - Redraw () is not virtual now.
26147                 - Added an internal virtual method Paint (), so that
26148                 derived classes can do their painting on their own.
26149                 - Modified OnPaint () to call Paint ().
26151 2004-10-15 06:43  jordi
26153         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
26154           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
26156 2004-10-15 00:30  ravindra
26158         * MessageBox.cs:
26159                 - MessageBox on windows does not have min/max buttons.
26160                 This change in CreateParams fixes this on Windows. We
26161                 still need to implement this windowstyle behavior in
26162                 our X11 driver.
26164 2004-10-14 05:14  ravindra
26166         * ToolBar.cs:
26167                 - Changed Redraw () to do a Refresh () always.
26168                 - Fixed the MouseMove event handling when mouse is pressed,
26169                 ie drag event handling.
26170                 - Replaced the usage of ToolBarButton.Pressed property to
26171                 ToolBarButton.pressed internal variable.
26173 2004-10-14 05:10  ravindra
26175         * ToolBarButton.cs:
26176                 - Added an internal member 'inside' to handle mouse move
26177                 with mouse pressed ie mouse drag event.
26178                 - Changed 'Pressed' property to return true only when
26179                 'inside' and 'pressed' are both true.
26180                 - Some coding style love.
26182 2004-10-14 00:17  ravindra
26184         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
26185           public method.
26187 2004-10-14 00:15  ravindra
26189         * ButtonBase.cs: Redraw () related improvements.
26191 2004-10-14 00:14  ravindra
26193         * MessageBox.cs: Moved InitFormSize () out of Paint method and
26194           removed unnecessary calls to Button.Show () method.
26196 2004-10-13 17:50  pbartok
26198         * XplatUIX11.cs:
26199           - Formatting fix
26200           - Removed destroying of window until we solve the problem of X
26201             destroying the window before us on shutdown
26203 2004-10-13 16:32  pbartok
26205         * ButtonBase.cs:
26206           - Now Redraws on MouseUp for FlatStyle Flat and Popup
26208 2004-10-13 14:18  pbartok
26210         * XplatUIX11.cs:
26211           - Added code to destroy the X window
26213 2004-10-13 14:18  pbartok
26215         * XplatUIWin32.cs:
26216           - Added code to destroy a window
26218 2004-10-13 14:12  pbartok
26220         * ButtonBase.cs:
26221           - Added the Redraw on Resize that got dropped in the last rev
26223 2004-10-13 09:06  pbartok
26225         * ThemeWin32Classic.cs:
26226           - Path from John BouAntoun:
26227             * Fix check rendering (centre correctly for normal style, offset
26228               correctly for FlatStyle).
26229             * Fix border color usage (use backcolor) for FlatStyle.Popup
26230             * Use checkbox.Capture instead of checkbox.is_pressed when
26231               rendering flatstyle states.
26233 2004-10-12 21:48  pbartok
26235         * ThemeWin32Classic.cs:
26236           - Removed all occurences of SystemColors and replaced them with the
26237             matching theme color
26239 2004-10-12 21:41  pbartok
26241         * ThemeWin32Classic.cs:
26242           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
26243             him using the function for flatstyle drawing
26244           - Changed functions to use the new version of CPDrawBorder3D
26246 2004-10-12 21:15  pbartok
26248         * ControlPaint.cs:
26249           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
26250             match MS documentation. They need to return defined colors if the
26251             passed color matches the configured control color. Thanks to John
26252             BouAntoun for pointing this out.
26254 2004-10-12 20:57  pbartok
26256         * Control.cs:
26257           - Fix from John BouAntoun: Raise ForeColorChanged event when text
26258             color is changed
26260 2004-10-12 20:46  pbartok
26262         * CheckBox.cs:
26263           - Fix from John BouAntoun: Now properly sets the Appearance property
26265 2004-10-12 20:45  pbartok
26267         * ThemeWin32Classic.cs:
26268           - Fixes from John BouAntoun: now handles forecolors and backcolors
26269             for flatstyle rendered controls much better; It also fixes normal
26270             checkbox rendering when pushed or disabled.
26272 2004-10-08 02:50  jordi
26274         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
26275           work
26277 2004-10-07 08:56  jordi
26279         * ThemeWin32Classic.cs: Removes deletion of cached brushes
26281 2004-10-06 03:59  jordi
26283         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
26284           XplatUIWin32.cs: removes warnings from compilation
26286 2004-10-05 12:23  jackson
26288         * RadioButton.cs: Fix ctor
26290 2004-10-05 11:10  pbartok
26292         * MessageBox.cs:
26293           - Partial implementation by Benjamin Dasnois
26295 2004-10-05 10:15  jackson
26297         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
26298           by John BouAntoun
26300 2004-10-05 03:07  ravindra
26302         * ToolBar.cs:
26303                 - Removed a private method, Draw ().
26304                 - Fixed the ButtonDropDown event handling.
26305                 - Fixed MouseMove event handling.
26307 2004-10-05 03:04  ravindra
26309         * ThemeWin32Classic.cs:
26310                 - Added DrawListView method and ListViewDefaultSize property.
26311                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
26312                 - Changed DOS style CRLF to Unix format (dos2unix).
26314 2004-10-05 03:03  ravindra
26316         * Theme.cs:
26317                 - Added DrawListView method and ListViewDefaultSize property.
26319 2004-10-05 02:42  ravindra
26321         * ToolBarButton.cs: Added an internal member dd_pressed to handle
26322           clicks on DropDown arrow.
26324 2004-10-04 22:56  jackson
26326         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
26327           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
26328           Control handle the buffers, derived classes should not have to
26329           CreateBuffers themselves.
26331 2004-10-04 21:20  jackson
26333         * StatusBar.cs: The control handles resizing the buffers now.
26335 2004-10-04 21:18  jackson
26337         * Control.cs: When resizing the buffers should be invalidated. This
26338           should be handled in Control not in derived classes.
26340 2004-10-04 14:45  jackson
26342         * TabPage.cs: oops
26344 2004-10-04 02:14  pbartok
26346         * LeftRightAlignment.cs:
26347           - Initial check-in
26349 2004-10-04 01:09  jordi
26351         * ThemeWin32Classic.cs: fixes right button position causing right
26352           button not showing on horizontal scrollbars
26354 2004-10-02 13:12  pbartok
26356         * XplatUIX11.cs:
26357           - Simplified the Invalidate method by using an X call instead of
26358             generating the expose ourselves
26359           - Added an expose when the window background is changed
26360           - Implemented ClientToScreen method
26362 2004-10-02 13:08  pbartok
26364         * XplatUIWin32.cs:
26365           - Added Win32EnableWindow method (test for implementing modal
26366           dialogs)
26367           - Added ClientToScreen method and imports
26369 2004-10-02 13:07  pbartok
26371         * XplatUI.cs, XplatUIDriver.cs:
26372           - Added ClientToScreen coordinate translation method
26374 2004-10-02 13:06  pbartok
26376         * KeyPressEventArgs.cs:
26377           - Fixed access level for constructor
26379 2004-10-02 13:06  pbartok
26381         * NativeWindow.cs:
26382           - Changed access level for the window_collection hash table
26384 2004-10-02 13:05  pbartok
26386         * Form.cs:
26387           - Added KeyPreview property
26388           - Added Menu property (still incomplete, pending Jordi's menu work)
26389           - Implemented ProcessCmdKey
26390           - Implemented ProcessDialogKey
26391           - Implemented ProcessKeyPreview
26393 2004-10-02 13:02  pbartok
26395         * Control.cs:
26396           - Added private method to get the Control object from the window
26397           handle
26398           - Implemented ContextMenu property
26399           - Implemented PointToScreen
26400           - Implemented PreProcessMessage
26401           - Implemented IsInputChar
26402           - Implemented IsInputKey
26403           - Implemented ProcessCmdKey
26404           - Completed ProcessKeyEventArgs
26405           - Fixed message loop to call the proper chain of functions on key
26406           events
26407           - Implemented ProcessDialogChar
26408           - Implemented ProcessDialogKey
26409           - Implemented ProcessKeyMessage
26410           - Implemented ProcessKeyPreview
26411           - Added RaiseDragEvent stub (MS internal method)
26412           - Added RaiseKeyEvent stub (MS internal method)
26413           - Added RaiseMouseEvent stub (MS Internal method)
26414           - Added RaisePaintEvent stub (MS Internal method)
26415           - Added ResetMouseEventArgs stub (MS Internal method)
26416           - Implemented RtlTranslateAlignment
26417           - Implemented RtlTranslateContent
26418           - Implemented RtlTranslateHorizontal
26419           - Implemented RtlTranslateLeftRight
26420           - Added generation of KeyPress event
26422 2004-10-02 05:57  ravindra
26424         * ListViewItem.cs: Added attributes.
26426 2004-10-02 05:32  ravindra
26428         * ListView.cs: Added attributes.
26430 2004-10-01 11:53  jackson
26432         * Form.cs: Implement the Close method so work on MessageBox can
26433           continue.
26435 2004-09-30 14:06  pbartok
26437         * XplatUIX11.cs:
26438           - Bug fixes
26440 2004-09-30 11:34  jackson
26442         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
26444 2004-09-30 07:26  ravindra
26446         * ListViewItemConverter.cs: Converter for ListViewItem.
26448 2004-09-30 07:26  ravindra
26450         * SortOrder.cs: Enum for ListView control.
26452 2004-09-30 07:25  ravindra
26454         * ColumnHeader.cs: Supporting class for ListView control.
26456 2004-09-30 07:24  ravindra
26458         * ListView.cs, ListViewItem.cs: Initial implementation.
26460 2004-09-30 07:20  ravindra
26462         * ItemActivation.cs: Enum for ListView Control.
26464 2004-09-29 20:29  pbartok
26466         * XplatUIX11.cs:
26467           - Added lookup of pixel value for background color; tries to get a
26468             color 'close' to the requested color, it avoids having to create a
26469             colormap.  Depending on the display this could mean the used color
26470             is slightly off the desired color. Might have to change it to a more
26471             resource intensive colormap approach, but it will work as a
26472           workaround to avoid red screens.
26474 2004-09-29 14:27  jackson
26476         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
26478 2004-09-28 12:44  pbartok
26480         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
26481           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
26482           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
26483           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
26484           TrackBar.cs, VScrollBar.cs:
26485           - Streamlined Theme interfaces:
26486             * Each DrawXXX method for a control now is passed the object for
26487               the control to be drawn in order to allow accessing any state the
26488               theme might require
26490             * ControlPaint methods for the theme now have a CP prefix to avoid
26491               name clashes with the Draw methods for controls
26493             * Every control now retrieves it's DefaultSize from the current
26494             theme
26496 2004-09-28 12:17  jackson
26498         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
26499           drawing
26501 2004-09-24 14:57  jackson
26503         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
26504           Gives us a nice little performance boost.
26506 2004-09-24 12:02  jackson
26508         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
26509           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
26510           Control and supporting classes. Initial checkin
26512 2004-09-23 13:08  jackson
26514         * Form.cs: Temp build fixage
26516 2004-09-23 01:39  ravindra
26518         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
26519           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
26520           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
26521           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
26522           EventHandlers needed by ListView Control.
26524 2004-09-22 14:12  pbartok
26526         * ScrollableControl.cs:
26527           - Implemented DockPadding property
26528           - Implemented AutoScroll property
26529           - Implemented AutoScrollMargin property
26530           - Implemented AutoScrollMinSize property
26531           - Implemented AutoScrollPosition property
26532           - Implemented DisplayRectangle property (still incomplete)
26533           - Implemented CreateParams property
26534           - Implemented HScroll property
26535           - Implemented VScroll property
26536           - Implemented OnVisibleChanged property
26538 2004-09-22 14:09  pbartok
26540         * Form.cs:
26541           - Added Form.ControllCollection class
26542           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
26543             RemoveOwnedForm (still incomplete, missing on-top and common
26544             minimize/maximize behaviour)
26545           - Added StartPosition property (still incomplete, does not use when
26546             creating the form)
26547           - Added ShowDialog() methods (still incomplete, missing forcing the
26548             dialog modal)
26550 2004-09-22 14:05  pbartok
26552         * Application.cs:
26553           - Added message loop for modal dialogs
26555 2004-09-22 14:02  pbartok
26557         * GroupBox.cs:
26558           - Fixed wrong types for events
26560 2004-09-22 14:00  pbartok
26562         * Shortcut.cs, FormWindowState.cs:
26563           - Fixed wrong values
26565 2004-09-22 12:01  jackson
26567         * Control.cs: Text is never null
26569 2004-09-20 22:14  pbartok
26571         * XplatUIWin32.cs:
26572           - Fixed accessibility level for Idle handler
26574 2004-09-20 18:54  jackson
26576         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26577           XplatUIX11.cs: New message loop that uses poll so we don't get a
26578           busy loop
26580 2004-09-17 10:43  pbartok
26582         * ScrollBar.cs:
26583           - Fixed behaviour of arrow buttons. Now properly behaves like
26584             Buttons (and like Microsoft's scrollbar arrow buttons)
26586 2004-09-17 10:14  pbartok
26588         * ScrollBar.cs:
26589           - Added missing release of keyboard/mouse capture
26591 2004-09-17 06:18  jordi
26593         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
26594           Theme.cs: Very early menu support
26596 2004-09-16 17:45  pbartok
26598         * XplatUIWin32.cs:
26599           - Fixed sending a window to the front
26600           - Added overload for SetWindowPos to avoid casting
26602 2004-09-16 17:44  pbartok
26604         * Control.cs:
26605           - Added SendToBack and BringToFront methods
26607 2004-09-16 07:00  ravindra
26609         * Copyright: Added Novell URL.
26611 2004-09-16 07:00  ravindra
26613         * ToolBar.cs: Invalidate should be done before redrawing.
26615 2004-09-15 21:19  ravindra
26617         * ColumnHeaderStyle.cs: Enum for ListView Control.
26619 2004-09-15 21:18  ravindra
26621         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
26622           ListView Control.
26624 2004-09-13 18:26  jackson
26626         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
26627           properly
26629 2004-09-13 18:13  jackson
26631         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
26632           a second thread and post messages into the main threads message
26633           queue. This makes timing much more consistent. Both win2K and XP
26634           have a minimum timer value of 15 milliseconds, so we now do this
26635           too.
26637 2004-09-13 15:18  pbartok
26639         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26640           XplatUIX11.cs:
26641           - Added Z-Ordering methods
26643 2004-09-13 10:56  pbartok
26645         * Form.cs:
26646           - Fixed #region names
26647           - Moved properties and methods into their proper #regions
26649 2004-09-13 10:51  pbartok
26651         * Form.cs:
26652           - Added Accept and CancelButton properties
26653           - Added ProcessDialogKey() method
26655 2004-09-13 08:18  pbartok
26657         * IWindowTarget.cs:
26658           - Initial check-in
26660 2004-09-10 21:50  pbartok
26662         * Control.cs:
26663           - Added DoDragDrop() [incomplete]
26664           - Properly implemented 'Visible' handling
26665           - Added SetVisibleCore()
26666           - Implemented FindChildAtPoint()
26667           - Implemented GetContainerControl()
26668           - Implemented Hide()
26670 2004-09-10 19:28  pbartok
26672         * Control.cs:
26673           - Moved methods into their appropriate #regions
26674           - Reordered methods within regions alphabetically
26676 2004-09-10 18:57  pbartok
26678         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
26679           - Added method to retrieve text from window
26681 2004-09-10 18:56  pbartok
26683         * Control.cs:
26684           - Moved some internal functions into the internal region
26685           - Implemented FontHeight
26686           - Implemented RenderRightToLeft
26687           - Implemented ResizeRedraw
26688           - Implemented ShowFocusCues
26689           - Implemented ShowKeyboardCues
26690           - Implemented FromChildHandle
26691           - Implemented FromHandle
26692           - Implemented IsMnemonic
26693           - Implemented ReflectMessage
26694           - All public and protected Static Methods are now complete
26696 2004-09-10 16:54  pbartok
26698         * Control.cs:
26699           - Implemented remaining missing public instance properties
26700           - Alphabetized some out of order properties
26702 2004-09-10 05:51  ravindra
26704         * PictureBox.cs: Added a check for null image.
26706 2004-09-10 00:59  jordi
26708         * GroupBox.cs: remove cvs tag
26710 2004-09-09 05:25  ravindra
26712         * ToolBar.cs: Make redraw accessible from ToolBarButton.
26714 2004-09-09 05:23  ravindra
26716         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
26717           parent redraw.
26719 2004-09-09 02:28  pbartok
26721         * ThemeWin32Classic.cs:
26722           - Improve disabled string look
26724 2004-09-09 01:15  jordi
26726         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
26727           args and handler
26729 2004-09-08 23:56  ravindra
26731         * ItemBoundsPortion.cs: It's enum, not a class!
26733 2004-09-08 23:47  ravindra
26735         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
26736           Enums for Form.
26738 2004-09-08 21:13  ravindra
26740         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
26741           ListView control.
26743 2004-09-08 21:03  ravindra
26745         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
26746           avoid crash.
26748 2004-09-08 21:01  ravindra
26750         * ScrollableControl.cs: Removed unreachable code.
26752 2004-09-08 06:45  jordi
26754         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
26756 2004-09-08 01:00  jackson
26758         * XplatUIX11.cs: Only run the timers when updating the message
26759           queue. This effectively gives X messages a higher priority then
26760           timer messages. Timers still need love though
26762 2004-09-07 14:01  jackson
26764         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
26765           this for us and the handle is no longer valid.
26767 2004-09-07 13:59  jackson
26769         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
26770           loop that manages to not crash. TODO: Add poll and cleanup timers
26772 2004-09-07 11:12  jordi
26774         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
26776 2004-09-07 03:40  jordi
26778         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
26779           fixes, methods, multiple links
26781 2004-09-06 06:55  jordi
26783         * Control.cs: Caches ClientRectangle rectangle value
26785 2004-09-05 02:03  jordi
26787         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
26788           certain situations
26790 2004-09-04 11:10  jordi
26792         * Label.cs: Refresh when font changed
26794 2004-09-02 16:24  pbartok
26796         * Control.cs:
26797           - Added sanity check to creation of double buffer bitmap
26799 2004-09-02 16:24  pbartok
26801         * ButtonBase.cs:
26802           - Fixed selection of text color
26803           - Fixed handling of resize event; now properly recreates double
26804             buffering bitmap
26805           - Added missing assignment of TextAlignment
26806           - Added proper default for TextAlignment
26808 2004-09-02 14:26  pbartok
26810         * RadioButton.cs:
26811           - Added missing RadioButton.RadioButtonAccessibleObject class
26813 2004-09-02 14:26  pbartok
26815         * Control.cs:
26816           - Added missing Control.ControlAccessibleObject class
26817           - Started to implement Select()ion mechanisms, still very incomplete
26819 2004-09-02 14:25  pbartok
26821         * AccessibleObject.cs:
26822           - Added missing methods
26824 2004-09-02 14:23  pbartok
26826         * AccessibleNavigation.cs, AccessibleSelection.cs:
26827           - Initial check-in
26829 2004-09-02 10:32  jordi
26831         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
26832           pool for pens, brushes, and hatchbruses
26834 2004-09-01 15:30  jackson
26836         * StatusBar.cs: Fix typo
26838 2004-09-01 14:44  pbartok
26840         * RadioButton.cs:
26841           - Fixed state
26843 2004-09-01 14:39  pbartok
26845         * Button.cs, RadioButton.cs:
26846           - Functional initial check-in
26848 2004-09-01 14:01  pbartok
26850         * CheckBox.cs:
26851           - Added missing default
26852           - Added missing region mark
26854 2004-09-01 09:10  jordi
26856         * Label.cs: fixes method signatures, new methods, events, fixes
26857           autosize
26859 2004-09-01 07:19  jordi
26861         * Control.cs: Init string variables with an empty object
26863 2004-09-01 04:20  jordi
26865         * Control.cs: fires OnFontChanged event
26867 2004-08-31 20:07  pbartok
26869         * ButtonBase.cs:
26870           - Enabled display of strings
26872 2004-08-31 20:05  pbartok
26874         * Form.cs:
26875           - Added (partial) implementation of DialogResult; rest needs to be
26876             implemented when the modal loop code is done
26878 2004-08-31 19:55  pbartok
26880         * CheckBox.cs:
26881           - Fixed to match the removal of the needs_redraw concept
26883 2004-08-31 19:55  pbartok
26885         * ButtonBase.cs:
26886           - Removed the rather odd split between 'needs redraw' and redrawing
26887           - Now handles the events that require regeneration (ambient
26888             properties and size)
26890 2004-08-31 19:41  pbartok
26892         * Control.cs:
26893           - Added firing of BackColorChanged event
26894           - Added TopLevelControl property
26895           - Fixed handling of WM_ERASEBKGRND message
26897 2004-08-31 12:49  pbartok
26899         * ButtonBase.cs:
26900           - Removed debug
26901           - Minor fixes
26903 2004-08-31 12:48  pbartok
26905         * CheckBox.cs:
26906           - Finished (famous last words)
26908 2004-08-31 04:35  jordi
26910         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
26911           scrolling bugs, adds new methods
26913 2004-08-30 14:42  pbartok
26915         * CheckBox.cs:
26916           - Implemented CheckBox drawing code
26918 2004-08-30 14:42  pbartok
26920         * ButtonBase.cs:
26921           - Made Redraw() and CheckRedraw() virtual
26922           - Improved mouse up/down/move logic to properly track buttons
26924 2004-08-30 09:44  pbartok
26926         * CheckBox.cs:
26927           - Updated to fix broken build. Not complete yet.
26929 2004-08-30 09:28  pbartok
26931         * CheckState.cs:
26932           - Initial checkin
26934 2004-08-30 09:17  pbartok
26936         * Appearance.cs:
26937           - Initial check-in
26939 2004-08-27 16:12  ravindra
26941         * ToolBarButton.cs: Added TypeConverter attribute.
26943 2004-08-27 16:07  ravindra
26945         * ImageIndexConverter.cs: Implemented.
26947 2004-08-27 14:17  pbartok
26949         * Control.cs:
26950           - Removed unneeded stack vars
26951           - First attempt to fix sizing issues when layout is suspended
26953 2004-08-25 15:35  jordi
26955         * ScrollBar.cs: more fixes to scrollbar
26957 2004-08-25 14:04  ravindra
26959         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
26960           Added the missing divider code and grip for ToolBar Control.
26962 2004-08-25 13:20  pbartok
26964         * Control.cs:
26965           - Control now properly passes the ambient background color to child
26966             controls
26968 2004-08-25 13:20  jordi
26970         * ScrollBar.cs: small bug fix regarding bar position
26972 2004-08-25 12:33  pbartok
26974         * Timer.cs:
26975           - Now only calls SetTimer or KillTimer if the enabled state has
26976           changed
26978 2004-08-25 12:33  pbartok
26980         * XplatUIWin32.cs:
26981           - Fixed timer handling, now seems to work
26982           - Improved error message for window creation
26984 2004-08-25 12:32  pbartok
26986         * Control.cs:
26987           - Fixed generation of MouseUp message
26989 2004-08-25 12:29  jordi
26991         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
26992           and fixes for progressbar
26994 2004-08-24 18:43  ravindra
26996         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
26997           in ToolBar control.
26999 2004-08-24 17:15  pbartok
27001         * Panel.cs:
27002           - Added #region
27003           - Added missing events
27004           - Alphabetized
27006 2004-08-24 17:14  pbartok
27008         * StatusBar.cs, PictureBox.cs:
27009           - Now uses Control's CreateParams
27011 2004-08-24 16:36  pbartok
27013         * XplatUIX11.cs:
27014           - Fixed background color handling
27015           - Fixed sending of enter/leave events on a grab
27017 2004-08-24 16:35  pbartok
27019         * X11Structs.cs:
27020           - Refined definitions for CrossingEvent
27022 2004-08-24 12:37  jordi
27024         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
27025           formmating, methods signature, and adds missing events
27027 2004-08-24 12:24  jordi
27029         * Control.cs: fire OnEnabledChanged event
27031 2004-08-24 11:17  pbartok
27033         * XplatUIWin32.cs:
27034           - Implemented SetTimer() and KillTimer()
27036 2004-08-24 11:16  pbartok
27038         * XplatUIX11.cs:
27039           - Now uses Remove instead of Add to kill the timer
27041 2004-08-24 10:16  jackson
27043         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
27044           picture boxes in the theme now. Draw picture box borders and obey
27045           sizing modes
27047 2004-08-24 05:49  jackson
27049         * Timer.cs: Remove top secret debugging code
27051 2004-08-24 05:34  jackson
27053         * PictureBox.cs: Temp hack to make picture boxes draw their full
27054           image
27056 2004-08-24 05:29  jackson
27058         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
27059           XplatUIX11.cs: Move timers to the driver level. On X they are
27060           queued by the driver and checked on idle.
27062 2004-08-24 01:07  jackson
27064         * XplatUIX11.cs: Use a queue for async messages instead of passing
27065           them as ClientMessages since that was totally broken. Also simply
27066           check for events and return an idle message if none are found. This
27067           gives us an idle handler, and prevents deadlocking when no messages
27068           are in the queue.
27070 2004-08-23 18:19  ravindra
27072         * XplatUIWin32.cs: Removed the unwanted destructor.
27074 2004-08-23 17:27  pbartok
27076         * ButtonBase.cs:
27077           - Finishing touches. Works now, just needs some optimizations.
27079 2004-08-23 16:53  jordi
27081         * ScrollBar.cs: small fix
27083 2004-08-23 16:45  pbartok
27085         * Application.cs:
27086           - Removed debug output
27087           - Simplifications
27089 2004-08-23 16:43  jordi
27091         * ScrollBar.cs: [no log message]
27093 2004-08-23 16:10  pbartok
27095         * Form.cs:
27096           - Fixed handling of WM_CLOSE message
27097           - Removed debug output
27099 2004-08-23 16:09  pbartok
27101         * Application.cs:
27102           - Added handling of Idle event
27103           - Added handling of form closing
27104           - Fixed reporting of MessageLoop property
27105           - Removed some unneeded code, should provide a bit of a speedup
27107 2004-08-23 15:22  pbartok
27109         * Control.cs:
27110           - Added InitLayout() method
27111           - Added code to properly perform layout when Anchor or Dock property
27112             is changed
27113           - Changed 'interpretation' of ResumeLayout. MS seems to have a
27114             LAMESPEC, tried to do it in a way that makes sense
27116 2004-08-23 14:10  jordi
27118         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
27119           properties and methods
27121 2004-08-23 13:55  pbartok
27123         * Control.cs:
27124           - Properly fixed Jordi's last fix
27125           - Now uses Cursor's Position property instead of calling XplatUI
27126           directly
27128 2004-08-23 13:44  jordi
27130         * PaintEventHandler.cs: Adding missing attribute
27132 2004-08-23 13:39  pbartok
27134         * Cursor.cs:
27135           - Implemented Position property
27137 2004-08-23 13:39  pbartok
27139         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
27140           - Added method to move mouse cursor
27142 2004-08-23 13:39  pbartok
27144         * XplatUIX11.cs:
27145           - Fixed setting of background color
27146           - Added method to move mouse cursor
27148 2004-08-23 13:16  jordi
27150         * Control.cs: avoids null exception
27152 2004-08-22 17:46  jackson
27154         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
27155           PictureBox
27157 2004-08-22 17:40  jackson
27159         * XplatUIX11.cs: Add some missing locks
27161 2004-08-22 15:10  pbartok
27163         * Control.cs, Form.cs:
27164           - Removed OverlappedWindow style from Control, instead it's default
27165             now is child
27166           - Made form windows OverlappedWindow by default
27168 2004-08-22 13:34  jackson
27170         * ScrollBar.cs: Update the position through the Value property so
27171           the OnValueChanged event is raised.
27173 2004-08-22 12:04  pbartok
27175         * SWF.csproj:
27176           - Added Cursor.cs and UserControl.cs
27178 2004-08-22 12:03  pbartok
27180         * Cursor.cs:
27181           - Started implementation, not usable yet
27183 2004-08-22 12:00  pbartok
27185         * UserControl.cs:
27186           - Implemented UserControl (complete)
27188 2004-08-21 19:20  ravindra
27190         * ToolBar.cs: Correcting the formatting mess of VS.NET.
27192 2004-08-21 18:49  ravindra
27194         * ToolBar.cs: Probably this completes the missing attributes in
27195           toolbar control.
27197 2004-08-21 18:03  ravindra
27199         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
27200           Fixed toolbar control signatures.
27202 2004-08-21 16:32  pbartok
27204         * LinkLabel.cs:
27205           - Signature Fixes
27207 2004-08-21 16:30  pbartok
27209         * Label.cs:
27210           - Signature fixes
27212 2004-08-21 16:19  pbartok
27214         * Control.cs, Label.cs:
27215           - Signature fixes
27217 2004-08-21 15:57  pbartok
27219         * ButtonBase.cs:
27220           - Added loads of debug output for development
27221           - Fixed typo in method name
27223 2004-08-21 15:52  pbartok
27225         * ToolBarButtonClickEventArgs.cs:
27226           - Added missing base class
27228 2004-08-21 14:53  pbartok
27230         * Control.cs:
27231           - Updated to match new GrabWindow signature
27233 2004-08-21 14:51  pbartok
27235         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27236           - Added method to get default display size
27238 2004-08-21 14:23  pbartok
27240         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27241           - Added method to query current grab state
27242           - Added argument to allow confining a grab to a window
27244 2004-08-21 14:22  pbartok
27246         * Keys.cs:
27247           - Added [Flags] attribute so that modifiers can be used in bitwise
27248           ops
27250 2004-08-21 14:21  pbartok
27252         * TrackBar.cs, ScrollBar.cs:
27253           - Replaced direct XplatUI calls with their Control counterpart
27255 2004-08-21 13:32  pbartok
27257         * Control.cs:
27258           - Implemented Created property
27260 2004-08-21 13:28  pbartok
27262         * Control.cs:
27263           - Implemented ContainsFocus
27265 2004-08-21 13:26  pbartok
27267         * Control.cs:
27268           - Implemented CausesValidation
27270 2004-08-21 13:21  pbartok
27272         * Control.cs:
27273           - Implemented CanFocus
27274           - Implemented CanSelect
27275           - Implemented Capture
27277 2004-08-21 12:35  pbartok
27279         * XplatUIWin32.cs:
27280           - Fixed bug with Async message handling
27281           - Implemented getting the ModifierKeys
27283 2004-08-21 12:32  jackson
27285         * AsyncMethodResult.cs: Make sure we have the mutex before we
27286           release it. Fixes BeginInvoke on windows
27288 2004-08-21 11:31  pbartok
27290         * XplatUIWin32.cs, XplatUIX11.cs:
27291           - Drivers now return proper mouse state
27293 2004-08-21 10:54  jackson
27295         * Control.cs: Implement EndInvoke
27297 2004-08-21 10:48  jackson
27299         * Timer.cs: Remove unneeded finalizer
27301 2004-08-20 19:52  ravindra
27303         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
27304           in mouse event handling in the ToolBar control.
27306 2004-08-20 19:50  ravindra
27308         * ImageList.cs: Changed draw method to use the arguments passed in
27309           to draw the image.
27311 2004-08-20 18:58  pbartok
27313         * XplatUIStructs.cs:
27314           - Added private message for async communication
27316 2004-08-20 17:38  ravindra
27318         * Control.cs: Made RightToLeft property virtual and removed a
27319           Console.WriteLine.
27321 2004-08-20 14:39  jordi
27323         * ThemeGtk.cs: use style_attach
27325 2004-08-20 14:39  pbartok
27327         * XplatUIWin32.cs:
27328           - Added jackson's Async code from X11 to Win32
27330 2004-08-20 14:09  pbartok
27332         * SWF.csproj:
27333           - Added all new files
27335 2004-08-20 14:09  pbartok
27337         * Control.cs:
27338           - Added call to set window background color
27340 2004-08-20 14:03  pbartok
27342         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
27343           - Added method for setting the window background
27345 2004-08-20 14:02  pbartok
27347         * XplatUIWin32.cs:
27348           - Added method for setting the background color
27349           - Added handling for erasing the window background
27351 2004-08-20 13:45  jordi
27353         * TrackBar.cs: fixes timer, new properties and methods
27355 2004-08-20 13:34  jackson
27357         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
27358           correct thread
27360 2004-08-20 13:22  jackson
27362         * Timer.cs: Timer Tick events are now handed through Controls Async
27363           mechanism so the callbacks are executed in the same thread as X
27365 2004-08-20 13:19  jackson
27367         * XplatUIDriver.cs: Expose functionality to send async messages
27368           through the driver
27370 2004-08-20 13:18  jackson
27372         * Control.cs: Implement Begininvoke
27374 2004-08-20 13:14  jackson
27376         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
27377           messages through the driver
27379 2004-08-20 13:12  jackson
27381         * XplatUIX11.cs: Lock before all X operations. Also added Async
27382           method functionality through XSendEvent
27384 2004-08-20 13:11  jackson
27386         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
27387           This will screw up on 64 bit systems)
27389 2004-08-20 13:10  jackson
27391         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
27392           Async messages through X/Win32
27394 2004-08-19 19:39  pbartok
27396         * XplatUIX11.cs:
27397           - Updated code to match new HandleData.DeviceContext type
27399 2004-08-19 19:38  pbartok
27401         * HandleData.cs:
27402           - Made DeviceContext a generic object to allow usage from various
27403           drivers
27404           - Added support for queueing Windows messages
27406 2004-08-19 19:37  pbartok
27408         * XplatUIWin32.cs:
27409           - Added generation of MouseEnter, MouseLeave and MouseHover events
27410           - Added cleanup on EndPaint
27412 2004-08-19 19:17  pbartok
27414         * Control.cs:
27415           - Added handling of WM_MOUSEHOVER
27416           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
27417           code
27419 2004-08-19 18:55  jordi
27421         * ThemeGtk.cs: fixes button order
27423 2004-08-19 18:12  jordi
27425         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
27427 2004-08-19 17:09  pbartok
27429         * Control.cs:
27430           - Added Right property
27431           - Added RightToLeft property
27433 2004-08-19 16:27  jordi
27435         * ThemeGtk.cs: experimental GTK theme support
27437 2004-08-19 16:26  jordi
27439         * ITheme.cs, Theme.cs: move themes from an interface to a class
27441 2004-08-19 16:25  jordi
27443         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
27444           theme enhancaments
27446 2004-08-19 16:04  pbartok
27448         * XplatUIX11.cs:
27449           - Added colormap basics
27450           - Added a way to re-initialize with a different display handle
27451           - Fixed setting of the window background color
27452           - Added various X11 imports related to colors and colormaps
27454 2004-08-19 15:51  pbartok
27456         * X11Structs.cs:
27457           - Removed packing hints (Paolo suggested this a while back)
27458           - fixed colormap type
27459           - Added default Atom types
27460           - Added Screen and color structs and enums
27462 2004-08-19 15:39  pbartok
27464         * ImageList.cs:
27465           - Added missing Draw() method
27466           - Added missing RecreateHandle event
27468 2004-08-19 15:30  pbartok
27470         * Form.cs:
27471           - Added handling of WM_CLOSE
27473 2004-08-18 13:16  jordi
27475         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
27476           a table
27478 2004-08-18 09:56  jordi
27480         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
27482 2004-08-17 15:31  ravindra
27484         * SWF.csproj: Updated project.
27486 2004-08-17 15:25  pbartok
27488         * Control.cs:
27489           - Drawing improvement; don't call UpdateBounds if we are not visible
27490             (or have been minimized)
27492 2004-08-17 15:24  pbartok
27494         * XplatUIWin32.cs:
27495           - Finished IsVisible
27496           - Added Win32GetWindowPlacement
27498 2004-08-17 15:08  jackson
27500         * Panel.cs: Initial checkin of the Panel
27502 2004-08-17 14:25  pbartok
27504         * Control.cs:
27505           - Fixed broken handling of default window sizes
27507 2004-08-17 13:29  jackson
27509         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
27510           has a large startup time.
27512 2004-08-17 10:25  jackson
27514         * HandleData.cs: union areas properly
27516 2004-08-17 10:12  jackson
27518         * HandleData.cs: union areas properly
27520 2004-08-16 20:00  ravindra
27522         * ToolBar.cs, ToolBarButton.cs: Added attributes.
27524 2004-08-16 18:48  ravindra
27526         * ToolBar.cs: Added attributes.
27528 2004-08-16 17:17  ravindra
27530         * SWF.csproj: Updated project.
27532 2004-08-16 17:16  jackson
27534         * XplatUIX11.cs: Check for more expose events before sending a
27535           WM_PAINT so they can all be grouped together. This makes dragging a
27536           window across another window redraw in a sane way.
27538 2004-08-16 15:47  pbartok
27540         * Control.cs:
27541           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
27542             support OnMouseEnter/Leave()
27543           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
27544             exposure handling
27546 2004-08-16 15:46  pbartok
27548         * XplatUIStructs.cs, XplatUIX11.cs:
27549           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
27550           OnMouseEnter/Leave()
27552 2004-08-16 15:34  jackson
27554         * XplatUIX11.cs: Group multiple expose events in HandleData, make
27555           sure messages get the message field set to WM_NULL if they are not
27556           handled.
27558 2004-08-16 15:24  jackson
27560         * HandleData.cs: HandleData is used for storing message information
27561           for window handles
27563 2004-08-15 17:23  ravindra
27565         * ColorDepth.cs: Added attribute.
27567 2004-08-15 17:23  ravindra
27569         * SWF.csproj: Updated project for ToolBar Control.
27571 2004-08-15 17:20  ravindra
27573         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
27574           control and also dos2unix format.
27576 2004-08-15 17:13  ravindra
27578         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
27579           ToolBarButtonClickEventArgs.cs,
27580           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
27581           ToolBarTextAlign.cs: First Implementation of ToolBar control.
27583 2004-08-15 15:31  pbartok
27585         * ButtonBase.cs:
27586           - First (mostly) working version
27588 2004-08-13 16:15  pbartok
27590         * Control.cs:
27591           - Fixed Anchor default
27593 2004-08-13 15:43  pbartok
27595         * Control.cs:
27596           - Changed GetCursorPos signature
27598 2004-08-13 15:42  pbartok
27600         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
27601           - Changed signature for GetCursorPos
27603 2004-08-13 15:25  pbartok
27605         * XplatUIX11.cs:
27606           - Cleanup
27607           - Fixed resizing/exposure handling
27609 2004-08-13 15:22  jordi
27611         * ThemeWin32Classic.cs: removes redundant code and fixes issues
27612           with tickposition
27614 2004-08-13 14:55  jordi
27616         * TrackBar.cs: change from wndproc to events
27618 2004-08-13 13:00  jordi
27620         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
27621           XplatUIX11.cs: implements PointToClient (ScreenToClient)
27623 2004-08-13 12:53  pbartok
27625         * XplatUIWin32.cs:
27626           - Changed GetWindowPos to also provide client area size
27627           - Fixed broken prototypes for several win32 functions
27629 2004-08-13 12:53  pbartok
27631         * XplatUI.cs, XplatUIDriver.cs:
27632           - Changed GetWindowPos to also provide client area size
27634 2004-08-13 12:52  pbartok
27636         * XplatUIX11.cs:
27637           - Added generation of WM_POSCHANGED
27638           - Changed GetWindowPos to also provide client area size
27640 2004-08-13 12:52  pbartok
27642         * Control.cs:
27643           - Added Dispose() and destructor
27644           - Fixed resizing and bounds calculation
27645           - Fixed Layout
27646           - Added memory savings for invisible windows
27648 2004-08-13 12:46  jordi
27650         * TrackBar.cs: adds timer and grap window
27652 2004-08-13 10:25  jackson
27654         * Timer.cs: SWF Timer
27656 2004-08-12 16:59  pbartok
27658         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27659           - Implemented method to get current mouse position
27661 2004-08-12 14:29  jordi
27663         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
27664           enhancement, fix mouse problems, highli thumb, etc
27666 2004-08-12 13:31  pbartok
27668         * Control.cs:
27669           - Fixed Anchoring bugs
27671 2004-08-12 13:01  jackson
27673         * StatusBar.cs: Don't forget things
27675 2004-08-12 12:54  jackson
27677         * ThemeWin32Classic.cs: Handle owner draw status bars
27679 2004-08-12 12:54  jackson
27681         * StatusBar.cs: Implement missing properties, events, and methods.
27682           Handle mouse clicking
27684 2004-08-12 10:19  jackson
27686         * StatusBarPanelClickEventArgs.cs,
27687           StatusBarPanelClickEventHandler.cs: Classes for handling status
27688           bar panel click events
27690 2004-08-12 10:10  jackson
27692         * Control.cs: Add missing properties
27694 2004-08-12 09:46  pbartok
27696         * BindingsManagerBase.cs:
27697           - Name changed to BindingManagerBase.cs
27699 2004-08-12 09:25  jordi
27701         * ScrollableControl.cs: calls ctrlbase instead of exeception
27703 2004-08-11 16:28  pbartok
27705         * InputLanguageChangingEventArgs.cs:
27706           - Never check in before compiling. Fixes the last check-in
27708 2004-08-11 16:26  pbartok
27710         * InputLanguageChangingEventArgs.cs:
27711           - More signature fixes
27713 2004-08-11 16:20  pbartok
27715         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
27716           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
27717           ImageListStreamer.cs, InputLanguage.cs,
27718           InputLanguageChangedEventArgs.cs,
27719           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
27720           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
27721           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
27722           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27723           - Signature fixes
27725 2004-08-11 16:16  pbartok
27727         * Application.cs:
27728           - Fixed Signature
27729           - Added .Net 1.1 method
27731 2004-08-11 15:25  pbartok
27733         * SWF.csproj:
27734           - Fixed BindingManagerBase.cs filename
27736 2004-08-11 15:22  pbartok
27738         * BindingManagerBase.cs:
27739           - Was checked in with wrong filename
27741 2004-08-11 14:50  pbartok
27743         * SWF.csproj:
27744           - Updated
27746 2004-08-11 13:41  jordi
27748         * XplatUIWin32.cs: Fixes ClientRect
27750 2004-08-11 13:19  pbartok
27752         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
27753           XplatUIX11.cs:
27754           - We had SetWindowPos and MoveWindow to set window positions and
27755             size, removed MoveWindow. We have GetWindowPos, so it made sense to
27756             keep SetWindowPos as matching counterpart
27757           - Added some X11 sanity checking
27759 2004-08-11 12:59  pbartok
27761         * Control.cs:
27762           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
27763             (It seems that SetBounds is just a front for SetBoundsCore and
27764              SetBoundsCore updates the underlying window system and
27765              UpdateBounds is responsible for updating the variables associated
27766              with the Control and sending the events)
27767           - Major cleanup of Size handling; we now have two sizes, client_size
27768             and bounds. Bounds defines the window with decorations, client_size
27769             without them.
27771 2004-08-11 12:55  pbartok
27773         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27774           - Added method to calculate difference between decorated window and
27775             raw client area
27777 2004-08-11 12:54  pbartok
27779         * Label.cs:
27780           - Forcing redraw on resize
27782 2004-08-11 11:43  pbartok
27784         * ImageList.cs:
27785           - Removed disposing of the actual images when the list is disposed
27787 2004-08-11 09:13  pbartok
27789         * Control.cs:
27790           - Now properly reparents windows
27792 2004-08-11 08:37  pbartok
27794         * Control.cs:
27795           - Duh!
27797 2004-08-11 07:47  pbartok
27799         * Control.cs:
27800           - Rewrote the collection stuff. Might not be as fast now, not
27801             keeping the number of children around and accessible directly, but
27802             it's more straightforward
27804 2004-08-11 07:44  pbartok
27806         * AccessibleObject.cs:
27807           - Fixed to match ControlCollection rewrite
27809 2004-08-11 07:43  pbartok
27811         * ImageList.cs:
27812           - Added missing creation of the collection list
27814 2004-08-10 20:08  jackson
27816         * StatusBar.cs: Get the paint message from WndProc
27818 2004-08-10 19:31  jackson
27820         * ThemeWin32Classic.cs: Create Brushes as little as possible
27822 2004-08-10 19:20  jackson
27824         * UICues.cs: Add Flags attribute
27826 2004-08-10 19:19  jackson
27828         * StatusBarPanel.cs: Signature cleanup
27830 2004-08-10 19:10  jackson
27832         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
27833           Initial implementation of status bar item drawing
27835 2004-08-10 17:27  jordi
27837         * TrackBar.cs: add missing methods, properties, and restructure to
27838           hide extra ones
27840 2004-08-10 16:24  jackson
27842         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
27843           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
27844           attribute
27846 2004-08-10 13:21  jordi
27848         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
27849           enhancements and standarize on win colors defaults
27851 2004-08-10 12:52  jackson
27853         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
27854           ThemeWin32Classic.cs: Implement DrawItem functionality
27856 2004-08-10 12:47  jordi
27858         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
27860 2004-08-10 12:32  jordi
27862         * Control.cs: throw ontextchange event
27864 2004-08-10 11:43  pbartok
27866         * Control.cs:
27867           - Added more to the still unfinished Dock/Anchor layout code
27869 2004-08-10 11:39  pbartok
27871         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
27872           - Added GetWindowPos method
27874 2004-08-10 11:36  pbartok
27876         * XplatUIWin32.cs:
27877           - Implemented several methods
27879 2004-08-10 09:47  jackson
27881         * TrackBar.cs: Allow control to handle buffering
27883 2004-08-10 09:41  jackson
27885         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
27887 2004-08-10 09:24  jackson
27889         * Label.cs, LinkLabel.cs: Let Control handle buffering.
27891 2004-08-10 09:09  jackson
27893         * StatusBar.cs: Let Control handle all the buffering.
27895 2004-08-10 09:08  jackson
27897         * Control.cs: Control will now handle the buffering code, so each
27898           control does not have to implement this.
27900 2004-08-10 08:34  jackson
27902         * XplatUIDriver.cs: Use default colors from the theme
27904 2004-08-09 17:12  pbartok
27906         * ImageList.cs:
27907           - Fixed several bugs Ravindra pointed out
27909 2004-08-09 16:11  pbartok
27911         * Control.cs:
27912           - Added incomplete dock layout code
27913           - Added support for mouse wheel
27915 2004-08-09 16:09  pbartok
27917         * XplatUIX11.cs:
27918           - Added handling for middle and right mousebutton
27919           - Added handling for mouse wheel
27920           - Added handling for key state and mouse state and position
27921           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
27922           messages
27924 2004-08-09 15:40  jackson
27926         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
27927           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
27928           checkin
27930 2004-08-09 15:37  jackson
27932         * StatusBar.cs: Initial implementation of StatusBar
27934 2004-08-09 15:36  jackson
27936         * ITheme.cs: Add support for drawing status bar and getting status
27937           bar item sizes
27939 2004-08-09 15:35  pbartok
27941         * MouseButtons.cs:
27942           - Fixed values
27944 2004-08-09 15:34  jackson
27946         * ThemeWin32Classic.cs: Add support for drawing status bar and get
27947           status bar item sizes
27949 2004-08-09 15:21  jackson
27951         * ThemeWin32Classic.cs: Use known colors for default control
27952           colours
27954 2004-08-09 15:12  jackson
27956         * ThemeWin32Classic.cs: Make the default font static, it is static
27957           in control so this doesn't change functionality and creating fonts
27958           is sloooooow.
27960 2004-08-09 14:56  pbartok
27962         * X11Structs.cs:
27963           - Added GrabMode enum
27965 2004-08-09 14:55  pbartok
27967         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27968           - Removed Run method, was only required for initial development
27970 2004-08-09 14:51  pbartok
27972         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27973           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
27974           capture
27976 2004-08-09 13:48  pbartok
27978         * XplatUIX11.cs:
27979           - Fixed default sizing for child windows
27981 2004-08-09 12:56  pbartok
27983         * XplatUIX11.cs:
27984           - Added generation of WM_DESTROY message
27985           - Added handling of window manager induced shutdown
27987 2004-08-09 11:31  jackson
27989         * ThemeWin32Classic.cs: New names for control properties
27991 2004-08-09 11:25  jackson
27993         * Control.cs: Use new color names
27995 2004-08-09 11:02  jackson
27997         * XplatUI.cs: Get default window properties from the theme
27999 2004-08-09 11:01  jackson
28001         * ITheme.cs: The theme engine now controls default window
28002           properties
28004 2004-08-09 11:00  jackson
28006         * ThemeWin32Classic.cs: Add default window color properties
28008 2004-08-09 10:17  jackson
28010         * ThemeWin32Classic.cs: Use correct default back color
28012 2004-08-09 10:05  jackson
28014         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
28015           the theme now.
28017 2004-08-09 09:56  jackson
28019         * XplatUI.cs: Remove defaults, these are handled by the theme now.
28021 2004-08-09 09:54  jackson
28023         * Control.cs: Get default properties from the theme.
28025 2004-08-09 09:53  jackson
28027         * ITheme.cs: Themes now handle default control properties
28029 2004-08-09 09:53  jackson
28031         * ThemeWin32Classic.cs: Themes now handle default control
28032           properties so coloring will be consistent
28034 2004-08-08 16:54  jordi
28036         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
28038 2004-08-08 15:08  jordi
28040         * XplatUIX11.cs: fixes keyboard crash
28042 2004-08-08 13:47  jordi
28044         * Label.cs: add cvs header info
28046 2004-08-08 12:09  jackson
28048         * ThemeWin32Classic.cs: Add pen_buttonface
28050 2004-08-08 11:52  jordi
28052         * Label.cs, LinkLabel.cs: [no log message]
28054 2004-08-08 11:34  jordi
28056         * ThemeWin32Classic.cs: Use Windows Standard Colours
28058 2004-08-07 17:32  jordi
28060         * TrackBar.cs: throw exceptions of invalid enums values
28062 2004-08-07 17:31  jordi
28064         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
28065           draw method name
28067 2004-08-07 16:56  jackson
28069         * HorizontalAlignment.cs: Initial checkin
28071 2004-08-07 13:16  jordi
28073         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
28074           methods
28076 2004-08-07 13:05  jordi
28078         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
28079           GetSysColor defines
28081 2004-08-06 18:01  pbartok
28083         * ThemeWin32Classic.cs:
28084           - Fixed some rounding issues with float/int
28086 2004-08-06 18:00  jackson
28088         * DockStyle.cs, AnchorStyles.cs:
28090                   Add flags and serializable attributes.
28092 2004-08-06 17:46  pbartok
28094         * XplatUIX11.cs:
28095           - Implemented GetParent
28097 2004-08-06 17:18  pbartok
28099         * TrackBar.cs:
28100           - Fixed some rounding issues with float/int
28102 2004-08-06 17:17  pbartok
28104         * X11Structs.cs, XplatUIX11.cs:
28105           - Fixed Refresh and Invalidate
28107 2004-08-06 15:30  pbartok
28109         * Control.cs, X11Structs.cs, XplatUIX11.cs:
28110           - Fixed recursive loop when resizing
28111           - Improved/fixed redrawing on expose messages
28113 2004-08-06 09:53  jordi
28115         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
28116           keyboard navigation
28118 2004-08-06 08:02  pbartok
28120         * X11Structs.cs, XplatUIX11.cs:
28121           - Fixed reparenting
28122           - Fixed window border creation
28124 2004-08-05 15:38  pbartok
28126         * XplatUIX11.cs:
28127           - Attempted fix for reparenting problems
28129 2004-08-04 15:14  pbartok
28131         * Control.cs:
28132           - Fixed Invalidation bug (calculated wrong client area)
28133           - Added ClientSize setter
28135 2004-08-04 15:13  pbartok
28137         * Form.cs:
28138           - Added AutoScale properties
28140 2004-08-04 15:13  pbartok
28142         * SWF.csproj:
28143           - Added latest files
28145 2004-08-04 14:11  pbartok
28147         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28148           XplatUIX11.cs:
28149           - Added Invalidate handling
28151 2004-08-03 17:09  jordi
28153         * XplatUIDriver.cs: fixes spelling mistake
28155 2004-07-27 09:53  jordi
28157         * TrackBar.cs: fixes trackbar events, def classname, methods
28158           signature
28160 2004-07-27 09:29  jordi
28162         * ScrollBar.cs: fixes scrollbar events
28164 2004-07-27 04:38  jordi
28166         * Control.cs: changes to be able to run winforms samples
28168 2004-07-26 11:42  jordi
28170         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
28171           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
28173 2004-07-26 05:41  jordi
28175         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
28176           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
28177           implementation
28179 2004-07-22 09:22  jordi
28181         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
28182           check link overlapping, implement events, and fixes
28184 2004-07-21 10:28  jordi
28186         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
28188 2004-07-21 10:19  jordi
28190         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
28191           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
28192           LinkLabelLinkClickedEventArgs.cs,
28193           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
28194           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
28195           implementation
28197 2004-07-19 13:09  jordi
28199         * Control.cs, Label.cs: label control re-written: added missing
28200           functionlity, events, and properties
28202 2004-07-19 10:49  jordi
28204         * Control.cs: fixes SetBounds logic
28206 2004-07-19 01:29  jordi
28208         * Control.cs: Call RefreshWindow only if the window has created
28210 2004-07-15 14:05  pbartok
28212         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
28213           - Implemented ImageList and ImageList.ImageCollection classes
28214           - Added ColorDepth enumeration
28215           - Updated SWF VS.Net project
28217 2004-07-15 11:06  jordi
28219         * XplatUIStructs.cs: added MsgButons enum
28221 2004-07-15 11:03  jordi
28223         * Control.cs: added basic mouse handeling events
28225 2004-07-15 03:38  jordi
28227         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
28228           Vertical TrackBar control implementation
28230 2004-07-13 09:33  jordi
28232         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
28234 2004-07-13 09:31  jordi
28236         * Control.cs, Form.cs: commit: new properties and fixes form size
28237           problems
28239 2004-07-09 14:13  miguel
28241         * ProgressBar.cs: Spelling
28243 2004-07-09 11:25  pbartok
28245         * ProgressBar.cs:
28246           - Removed usage of Rectangle for drawing. Miguel pointed out it's
28247           faster
28249 2004-07-09 11:17  miguel
28251         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
28253                 * ProgressBar.cs: Fixed spelling for `block'
28255                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
28256                 style guidelines.
28258                 Avoid using the += on rect.X, that exposed a bug in the compiler.
28260 2004-07-08 23:21  pbartok
28262         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
28263           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
28264           BaseCollection.cs, Binding.cs, BindingContext.cs,
28265           BindingMemberInfo.cs, BindingsCollection.cs,
28266           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
28267           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
28268           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
28269           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
28270           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
28271           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
28272           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
28273           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
28274           FrameStyle.cs, GiveFeedbackEventArgs.cs,
28275           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
28276           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
28277           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
28278           InputLanguageChangedEventArgs.cs,
28279           InputLanguageChangedEventHandler.cs,
28280           InputLanguageChangingEventArgs.cs,
28281           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
28282           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
28283           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
28284           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
28285           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
28286           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
28287           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
28288           QueryAccessibilityHelpEventArgs.cs,
28289           QueryAccessibilityHelpEventHandler.cs,
28290           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
28291           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
28292           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
28293           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
28294           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
28295           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
28296           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
28297           XplatUIX11.cs, lang.cs:
28298           - Initial check-in