New errors + tiny update ;-)
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2
3         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
4           Update calls to PaintEventStart/End to take a Message argument.
5         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
6           take a Message argument.
7         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
8           Message argument, and handle the case where we don't paint to the window
9           for which the paint message was generated.
10
11 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12
13         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
14           Marshal.GetLastWin32Error. Plug nasty memory leak in
15           PaintEventStart/End, we were creating a DC we weren't releasing.
16
17 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18
19         * ListView.cs: Add Groups support in Details view. Also have a small
20         method to do the layout of the group header. Don't use a separate
21         method to do the groups calculation in Icons view, since our methods
22         are now a little simpler.
23         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
24         `Bounds'.
25         * ThemeWin32Classic.cs: Likewise.
26
27 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
28
29         * Application.cs: Add FilterMessage method and rework our message loop
30         logic to use it.
31
32 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
33
34         * Application.cs: Add some methods and stub a few methods that are
35         pretty much never used.
36
37 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
38
39         * TreeNode.cs: Add some serialization methods.
40
41 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
42
43         * ListView.cs: In ListViewItemCollection have a 
44         'is_main_collection' field to not modify ListViewItem.ListView
45         when using it as ListViewGroup.Items (and not ListView.Items)
46         and also don't modify selection state (.Net behaviour). 
47         Instead, set group for items contained in a ListViewGroup.Items collection.
48         * ListViewItem.cs: Simplify some code in Group setter.
49         * ListViewGroup.cs: use the new .ctor to pass the current instance
50         to the ItemsCollection.
51         * ListViewGroup.cs: Set the ListView property for ListViewGroup
52         instances when adding/removing. Also make Remove use RemoveAt, which
53         should perform better.
54
55 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
56
57         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
58         that crept into the 1.1 profile.
59
60 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
61
62         * ToolBarButton.cs: Implement ImageKey.
63
64 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
65
66         * ToolBar.cs: Implement ScaleControl/ScaleCore.
67
68 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
69
70         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
71           created, it might have gotten destroyed since we last checked. Fixes
72           #82405.
73
74 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
75
76         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
77         tooltip will hide when mouse is moved off the control.
78         [Fixes bug #82407]
79
80 2007-08-11 Andreia Gaita <avidigal@novell.com>
81
82         * WebBrowserBase.cs, WebBrowser.cs: add implementation
83         using Mono.Mozilla for loading and navigating webcontrol
84         with xulrunner.
85         The initial implementation was done on 
86         /trunk/mozembed/tests/browser , and copied here.
87
88 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
89
90         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
91         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
92
93 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
94
95         * DataGridView.cs: Add support for an editing row. Fixes #82226.
96           RowTemplateFull: throw an exception if a column doesn't have a template.
97         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
98           add the row just before it.
99         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
100           selected.
101         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
102           DataGridView field to be able to reach the grid's editing row.
103
104 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
105
106         * ToolTip.cs: If the control's handle hasn't been created when it has a
107         tooltip set on it, don't check to see if we need to show the tooltip.  This
108         check was causing the control's handle to be created.
109         [Fixes bug #82399]
110
111 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
112
113         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
114                                         1.1             2.0
115         Handle Not Created      -1              0
116         Handle Created          0               0
117         [Fixes bug #82371]
118
119 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
120
121         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
122         [Fixes bug #82348]
123
124 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
125
126         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
127         * ToolTip.cs: Implement some properties and owner draw.
128
129 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
130
131         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
132           show them again, since setting visibility causes a paint, causing an
133           endless loop (instead use a temporary and set it all when it's known if
134           they should be shown or not). Fixes #79265.
135
136 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
137
138         * DataGridView.cs: Only do a full column/row selection if a header was
139           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
140           isn't pressed, deselect everything before selecting something.
141
142 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
143
144         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
145           behaviour according to bug #81075 - they are returned in the order they
146           are selected. Fix HitTest to check if the point is within any of the
147           headers. Allow for row/column selection when in ColumnHeader or
148           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
149           the row and column to call when their selected state changes, and
150           updated selected_[rows|columns] whenever SetSelected* is called.
151         * DataGridViewBand.cs: Initialize isRow correctly. Call
152           SetSelected[Row|Column]CoreInternal when the selected state changes, and
153           add a SelectedInternal to avoid StackOverflows.
154         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
155           ReadOnly no matter what.
156         * DataGridViewSelectedColumnCollection.cs,
157           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
158           the items in reverse order (just as MS does...)
159
160 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
161
162         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
163         itself, not part of a mnemonic.  [Fixes bug #82378]
164
165 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
166
167         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
168         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
169           the DGV, the column, the row, or the cell itself is readonly.
170
171 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
172
173         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
174         OSVersion.Platform.
175         * FileDialog.cs: Same.
176         * TextRendered.cs: Same.
177         * FolderBrowserDialog.cs: Same.
178         * TextBoxBase.cs: Same.
179         * Application.cs: Same.
180         * Cursors.cs: Same.
181         * ThemeClearLooks.cs: Same.
182
183 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
184
185         * XplatUI.cs: Added RunningOnUnix property to be used by controls
186         instead of duplicating these checks everywhere.
187         * FileDialog.cs: Use case-insensitive comparison for populating the
188         DirComboBox when not running on unix. Fixes bug #82385.
189         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
190         "Look in".
191
192 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
193
194         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
195           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
196           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
197           cell and column selection with ctrl and shift pressed. Call the correct
198           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
199           the corresponding virtual method (PaintBackground to paint background,
200           etc).
201         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
202           either the column, row or the cell itself is selected.
203         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
204           OnRowsAdded.
205         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
206           here. When the row is selected, don't select all cells. Each cell now
207           queries the row to see if the row is selected.
208
209 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
210
211         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
212           SelectionMode.
213
214 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
215
216         * ListView.cs: In ListViewItemsCollection check that owner is
217         not null before trying to access it (this happens quite often
218         using Groups). Also don't duplicate calls by calling CollectionChanged
219         method.
220
221 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
222
223         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
224         when we are dismissed to clear keyboard mnemonics.
225         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
226         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
227         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
228         was activated by keyboard or the OS tells us to always draw them.
229         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
230         [Fixes bugs #82376, #82377]
231
232 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
233
234         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
235         shot at having it because Alt was pressed.
236         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
237         the first real menu item.
238         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
239         a mnemonic if Text is null.
240         [Fixes bug #82374]
241
242 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
243
244         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
245         search do check whether the item is already contained in the
246         collection or not; instead check if the owner of the item is the same
247         as ours. Also, remove a redundant check in the same method. 
248
249 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
250
251         * Control.cs: Allow the clip region to be set back to null.
252         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
253         [Fixes button still showing up in bug #82370 when Show Through is turned off]
254
255 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
256
257         * GridEntry.cs: Add a null check.
258         * PropertyGrid.cs: When checking for existing grid entries, ignore category
259           entries. Fixes #82297.
260
261 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
262
263         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
264         for 2.0.
265
266 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
267
268         * ListBox.cs: Implement ScaleControl.
269
270 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
271
272         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
273           have a menu strip.
274         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
275           parent has a menu strip. Fixes #81689.
276
277 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
278
279         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
280           moments, so apply some fuzzy logic to determine if the mouse is still
281           inside a control or not. Fixes #82288 (for the third time).
282
283 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
284
285         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
286           Don't create the child if it has been disposed already (may happen if
287           the user closes the form the Load event).
288
289 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
290
291         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
292           #82288.
293
294 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
295
296         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
297           might call us after we've been destroyed, in which case our own private
298           parent field is null. Fixes #82326.
299
300 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
301
302         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
303         check for setting the dropdown's owner.
304
305 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
306
307         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
308         before removing system menu items.
309
310 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
311
312         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
313         folding.
314         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
315         folding.
316         * ToolStrip.cs: Add a null check to mnemonics.
317         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
318         no ConnectedArea.
319         [Fixes most of bug #81689]
320
321 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
322
323         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
324
325 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
326
327         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
328
329 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
330
331         * DataGridViewCell.cs: EditType: returns
332           DataGridViewTextBoxEditingControl always.
333
334 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
335
336         * TextRenderer.cs: Remove the LineLimit string format flag from the
337         DrawString fallback method so that things like buttons that aren't
338         tall enough to draw a full line will still draw part of the text.
339         [Fixes part of bug #82272]
340
341 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
342
343         * DataGridView.cs: Implemented AutoResizeColumn(s).
344         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
345           according to the Alignment.
346         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
347           Implement alignment and padding when painting.
348         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
349           exists.
350         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
351           way.
352         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
353           a column is added.
354
355 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
356
357         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
358         which is internal.
359
360 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
361
362         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
363         hide GetPreferredSize from public API.
364         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
365         * ToolStripItem.cs: Stub out drag and drop methods and events.
366         * ToolStripManager.cs: Stub out Save/LoadSettings.
367         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
368         * ToolStripPanel.cs: Fix corcompare error.
369         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
370         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
371         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
372
373 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
374
375         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
376         bounds height instead of PreferredHeight.  Puts things back the way 
377         they were for height while still fixing the width.  Fixes broken unit
378         tests.
379
380 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
381
382         * Binding.cs: Implement 2.0 constructors and add a null check.
383
384 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
385
386         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
387           and fix row index (off by one).
388
389 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
390
391         * PropertyGridView.cs: Remove debug output.
392
393 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
394
395         * Control.cs: We need to reset the is_created flags when the handle is
396           destroyed. Fixes #82187.
397         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
398           client coordinates if the window doesn't have a parent.
399           Win32GetParent returns the parent or the owner, and for top-level
400           windows with no parent (but with an owner) we were calculating the
401           location from the location of the owner.
402         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
403           form has been disposed.
404         * MdiClient.cs: Add a null-check.
405
406 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
407
408         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
409         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
410         so we can provide an implementation that returns the current width
411         and preferred height.  Allows anchor = right to work with TextBox 2.0.
412         [Fixes bug #82233]
413
414 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
415
416         * ListView.cs: Add support for navigating items in Groups mode, by
417         creating a big matrix containing all rows and cols of all groups. When
418         are in other mode than Details, pressing Up should have a similar
419         behaviour as that one of Down (moving to the next available column if
420         current one doesn't have an item in the requested row). Also, don't
421         proceed to use groups if ShowGroups is false.
422         * ListViewGroup.cs: Add an internal int field to store the starting
423         row of the group (used by the big matrix used for navigating the
424         ListView).
425         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
426         false.
427
428 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
429
430         * ToolStripDropDown.cs: When we do Show, start with the 
431         DefaultDropDownDirection, but if our popup menu is going to off-screen,
432         modify the direction to keep it on screen.  [Fixes bug #82210]
433
434 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
435
436         * FileDialog.cs: Accept any FilterIndex value, and store it
437         unmodified. When FilterIndex is less than 1, or greater than number
438         of filters, then default to first filter. Only add filter extension to
439         file if user did not specifiy an extension. When type of dialog is
440         OpenFileDialog and DefaultExt is set, then only use filter extension
441         if: CheckFileExists is true and no file wih the default extension
442         exists, or CheckFileExists is false, and user specified file does not
443         exist. When CheckFileExists is true, then add first extension of 
444         selected filter that matches existing file. Perform checks for
445         existing file, overwrite and create after extension has been added to
446         file name. When CheckFileExists is true and type is SaveFileDialog,
447         then only consider first filter extension if DefaultExt is set.
448         When CheckFileExists is true, then ignore DefaultExt if file with that
449         extension does not exist. Also perform check for existing file when
450         type is SaveFileDialog. Changed some field to constants.
451
452 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
453
454         * ListView.cs: Take into account the region used by header
455         control when doing the vertical scroll (this way we invalidate
456         the precise area, and don't get any dirty one).
457
458 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
459
460         * FileDialog.cs: Check for valid filterIndex on button open/save. 
461         Fixes #82184.
462
463 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
464
465         * ListView.cs: Update some layout calculations in details view
466         and clean the code in a pair of assignations.
467
468 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
469
470         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
471         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
472         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
473         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
474
475 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
476
477         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
478         performance of thread-safe Graphic methods.  (Thanks rolf!)
479
480 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
481
482         * ListView.cs: When doing the layout calculations, don't calculate
483         scroll bars before handle is created. This is unnecessary and also
484         calculating them before handle creation item causes a number of random
485         bugs (which begin to appear after Chris' big patch for handle creation
486         fixes). 
487
488 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
489
490         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
491         for things that don't have a Graphics object.  Currently, things just use
492         the static Hwnd.bmp_g which is not thread safe.
493
494 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
495
496         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
497           dialog. Fixes #82187.
498
499 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
500
501         * DataGridViewElement.cs: Initialize state.
502         * DataGridView.cs: Forward a few Mouse events to cells. Add
503           GetRowInternal and GetCellInternal that doesn't unshare rows.
504           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
505           don't use the index, but look it up. Add
506           DataGridViewControlCollection.RemoveInternal to remove controls
507           that Remove won't remove (scrollbars, edit control).
508         * DataGridViewColumn.cs: Initialize State correctly.
509         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
510           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
511           implementing this.
512         * DataGridViewRowCollection.cs: Implemented shared rows.
513         * DataGridViewRow.cs: Throw exceptions as MS do.
514         * DataGridViewCell.cs: A few properties are implemented by a
515           Get<Property> method, so move implementation there and remove the
516           NIEX in the method. Add a bunch of OnXInternal that DataGridView
517           calls when necessary.
518         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
519           complicates matters.
520         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
521           unshare any rows.
522
523 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
524
525         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
526         the children controls.  Instead, we will just set up the proper docking for the
527         children controls so we don't have to worry about it.  [Fixes bug #82188]
528
529 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
530
531         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
532         canceling and correct Before/AfterLabelEdit properties as layed out in bug
533         81847.  [Fixes bug #81847]
534
535 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
536
537         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
538         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
539         an explicit size based on the design-time size of the text.  Since our fonts
540         may not match this explicit size, we tend to cut off the ends of people's labels.
541
542 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
543
544         * Menu.cs: Add some missing methods to MenuItemCollection.
545
546 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
547
548         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
549         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
550         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
551         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
552         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
553         * DataGridViewElement.cs: State defaults to Visible.
554         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
555         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
556
557 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
558
559         * Control.cs: Minor 1.1 corcompare fix.
560
561 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
562
563         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
564         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
565
566 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
567
568         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
569           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
570           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
571           DataGridViewSelectedColumnCollection.cs,
572           DataGridViewSelectedRowCollection.cs: Corcompare work.
573
574 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
575
576         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
577         it is autoset by VS2005 designer and the effect is barely noticeable.
578
579 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
580
581         * TreeView.cs: Implement HitTest.
582
583 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
584
585         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
586           manually adding and removing the control from the Controls
587           collecftion.
588         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
589           EditingControlInternal property that tracks the editing control.
590           Always keeping the scrollbars in the Controls collection, as MS
591           testing confirms is the right behaviour.
592
593 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
594
595         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
596           according to MSDN and new test.
597
598 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
599
600         * TreeNode.cs: Implement ToolTipText.
601         * TreeView.cs: Implement tooltips, NodeMouse* events.
602
603 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
604
605         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
606
607 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
608
609         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
610         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
611
612 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
613
614         * Control.cs, Form.cs, ContainerControl.cs,
615         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
616         for misc properties.
617
618 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
619
620         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
621         * TreeView.cs: Implement StateImageList.
622
623 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
624
625         * Form.cs: Don't check if the current form is the active form before
626           activating it. Fixes #81904.
627
628 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
629
630         * Form.cs: Don't check if the current form is the active form before
631           activating it. Fixes #81904.
632
633 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
634
635         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
636
637 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
638
639         * Form.cs: Don't try to position the form after loading if the form was
640           disposed. Fixes #81969.
641
642 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
643
644         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
645           properties. Had to change ToolBar into ToolStrip, which required a
646           few #ifs.
647
648 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
649
650         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
651           resized, fixes part of #79829 (vertical lines in toolbar).
652           PropertyGrid: Refactored Populate* to something that's easier to
653           follow at least for me, as well as splitting it up into several new
654           methods, required to update only subitems when something has
655           changed by a popup editor or listbox. Don't use events to check
656           when any values are changed, since the events are unreliable (we're
657           changing the objects the events are registered with, and if the
658           event handling requires the objects to be immutable (objects stored
659           in hashtables for instance), the events will never be raised).
660         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
661           everytime we change a value, since events are unreliable.
662           DropDownButtonClicked: For the same reason don't compare objects to
663           check if it has changed or not, it would require all objects to
664           derive Equals. Fix dialog location on windows, MS is doing weird
665           things when creating parented forms.
666         * GridEntry.cs: Add a SelectedObject setter.
667
668 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
669
670         * TreeNode.cs: Add some corcompare attributes.
671         * TreeNodeCollection.cs: Implement 2.0 stuffs.
672         * TreeView.cs: Implement some 2.0 stuffs.
673
674 2007-07-18  Andreia Gaita  <avidigal@novell.com>
675
676         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
677         for moma.
678
679 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
680
681         * ListBox.cs: Implement custom tab offsets.
682
683 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
684
685         * ToolStripContentPanel.cs: Support System renderer.
686         * ToolStripControlHost.cs: Set RightToLeft to default to No.
687
688 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
689
690         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
691
692 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
693
694         * CheckBox.cs: Chain TextAlign to base implementation instead of
695         maintaining another one.
696
697 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
698
699         * ButtonBase.cs: Fix an incorrect string constant.
700
701 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
702
703         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
704         of creating one for measuring strings.
705
706 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
707
708         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
709         Implement MaxItemSize.
710
711 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
712
713         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
714         for DeviceContext.  Instead, use the static one available in Hwnd.
715         Informal tests show this saves about 500k on formtest.exe.
716
717 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
718
719         * ContainerControl.cs: Implement 2.0 AutoScaling.
720
721 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
722
723         * ComboBox.cs: Work around bug #82120 (bug in mcs).
724
725 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
726
727         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
728         Darken the focus color.
729
730 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
731
732         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
733         for the checkbox.
734         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
735         X, Y instead of a rect for drawing text.
736         - For ControlPaint.DrawCheckBox, center the check a little better when the
737         checkbox is odd width.  When drawing a flat checkbox, use a white background
738         when state != inactive.
739         [Fixes bugs #82097, 82100]
740
741 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
742
743         * ListControl.cs: When changing CurrencyManager, disconnect event
744         handlers from previous one. Fixes bug #81771. Code formatting.
745
746 2007-07-15  Andreia Gaita <avidigal@novell.com>
747
748         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
749         full preview invalidation from layout invalidation, and only invalidate
750         the layout when setting zoom or other properties. Invalidation should
751         always be done even when resetting properties with the same values as
752         what is there. Fixes #81744 and #79830.
753
754 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
755
756         * ListView.cs: Implement initial support for Groups. Split some of the
757         LayoutIcons code to render a partial list of the items (needed by
758         items contained in ListViewGroup instances). Let the
759         ListViewItemsCollection.ListView property be modifiable (needed when
760         using Groups, too).
761         * ListViewGroup.cs: Use a Bounds property rather than a Location
762         one. Also invalidate the bounds when they get changed.
763         * ThemeWin32Classic.cs: When drawing items, also draw the group header
764         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
765         method as well.
766
767 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
768
769         * ListView.cs: When space gets pressed and CheckBoxes is true, 
770         don't invoke the Begin and EndUpdate methods. We are generating 
771         a redraw of the entire control without need to do so.
772
773 2007-07-13  William Holmes <billholmes54@gmail.com> 
774
775         * Control.cs: Changing logic in FindFlatForward and 
776           FindFlatBackward to handle multiple Controls with 
777           the same TabIndex.  
778           This fixes bug 81687.
779
780 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
781
782         * OSFeature.cs: Enable IsPresent.
783
784 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
785
786         * Control.cs: Don't do anything in WmShowWindow if the control has been
787           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
788           control is created, put on a form, the control is disposed (the
789           form is never shown), and then we get a MapNotify, triggering a
790           WM_SHOWWINDOW.
791         * Form.cs: Exclude the current form when sending Deactivate to all
792           MdiChildren.
793         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
794           there was a race condition because assigning the handle raises
795           events, we can get more messages, therefore trying to assign the
796           handle again, which would fail if any of those event handlers
797           closed/disposed the control.
798
799 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
800
801         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
802
803 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
804
805         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
806         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
807
808 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
809
810         * DateTimePicker.cs: If there's no part format specifier, return an
811           empty string.
812
813 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
814
815         * FlatButtonAppearance.cs: Throw NotSupportedException for a
816         Transparent BorderColor.
817
818 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
819
820         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
821           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
822           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
823           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
824           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
825           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
826           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
827           Remove warnings.
828         * X11Structs.cs: Remove warnings, add ToString implementations.
829
830 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
831
832         * XplatUIX11.cs: Translate min/max size according to the actual min/max
833           size, and not the current size. Fixes #81798.
834
835 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
836
837         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
838           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
839           to the control yet).
840
841 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
842
843         * PropertyGridTextBox.cs: Add a method that sends any forwarded
844           mousedowns to the contained textbox.
845         * X11Structs.cs: More ToString implementation.
846         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
847           #81791.
848
849 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
850
851         * PropertyGridView.cs: Add a null-check, fixes a few tests.
852
853 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
854
855         * TableLayoutPanelCellPosition.cs: TypeConverter.
856
857 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
858
859         [ Fixes #79761]
860         
861         * PropertyGridTextBox.cs: Propagate any color changes to all contained
862           controls.
863         * PropertyGridView.cs: A few color fixes.
864
865 2007-07-10  Jackson Harper  <jackson@ximian.com>
866
867         * TextControl.cs: Remove some old unused text formatting stuff.
868
869 2007-07-10  Jackson Harper  <jackson@ximian.com>
870
871         * TreeView.cs: Update full row select invalidation to match the
872         newer DrawSelection... method.
873         - Make sure to invalidate the entire width when selecting a new
874         node, if we have full row selection enabled.
875
876 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
877
878         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
879           display of properties again.
880
881 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
882
883         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
884         to existing collections.
885
886 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
887
888         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
889         that changed between 1.1 and 2.0.
890
891 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
892
893         * PowerStatus.cs: Added.  This is just a data class, it is filled
894         in by SystemInformation.
895
896 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
897
898         * Message.cs: Add op_Equality and op_Inequality.
899
900 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
901
902         * MenuStrip.cs: Finish corcompare work.
903
904 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
905
906         * LinkArea.cs: Add op_Equality and op_Inequality.
907
908 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
909
910         * Application.cs: Add MessageLoopCallback delegate.
911
912 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
913
914         * ListBox.cs: First set of 2.0 stuffs.
915
916 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
917
918         * Control.cs: Make an internal Height property we can override
919         without messing up the public API.
920         * ListBox.cs: Override HeightInternal to always return the size
921         the user set.  [Fixes bug #80466]
922
923 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
924
925         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
926         paint cell borders if we haven't calculated where they go yet.
927         [Fixes bugs #82040 and #82041]
928
929 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
930
931         * ListView.cs: In Details view, set the location of item_control
932         in the (0,0) position (and the header_control is thus on the
933         item_control). This way the Bounds of the Items are relative to the
934         ListView control (before this, they had a Bounds value without the
935         header_control offset, which wasn't matching .Net). Fixes #82004.
936
937 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
938
939         * ListControl.cs: When DataSource is set to null, pass an empty
940         array of object to SetItemsCore. This is done to clean the items
941         in the ListContol children. Fixes #81788.
942
943 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
944
945         * ListControl.cs: Add 2.0 stuffs.
946
947 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
948
949         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
950         Refresh is overkill for just about every repaint request.
951
952 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
953
954         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
955         so remove my custom Get method and fix the property getter.
956
957 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
958
959         * Label.cs: DefaultMargin for 2.0.
960
961 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
962
963         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
964         reported issue where other controls with mnemonics would steal strokes
965         from a selected ComboBox.
966
967 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
968
969         * ScrollOrientation.cs: Make internal for 1.1.
970         * ScrollEventArgs.cs: Add 2.0 stuffs.
971
972 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
973
974         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
975         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
976         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
977
978 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
979
980         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
981
982 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
983
984         * ListView.cs: Implement the so-incredibly broken 2.0 
985         VirtualItemsSelectionRangeChanged event.
986
987 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
988
989         * ListView.cs: When enter is pressed and selection is non empty,
990         an OnItemActivate event must be fired.
991
992 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
993
994         * ListView.cs: Store the FocusedItem information as an
995         int instead of a ListViewItem (needed by VirtualMode).
996         Update the calls to SetFocusedItem to pass an index instead of
997         an item.
998         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
999         the Focused state from the owner ListView. 
1000
1001 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1002
1003         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
1004         property. Also, invalidate previous focused item in the mentioned
1005         property (match .Net).
1006
1007 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1008
1009         * ListView.cs: Implement 2.0 FocusedItem property setter.
1010
1011 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1012
1013         * ListView.cs: Implement 2.0 TopItem property setter.
1014
1015 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
1016
1017         * StatusStrip.cs: The default renderer is System.
1018         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
1019         if the user specifies it.
1020         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
1021         if we are ManagerRenderMode.
1022         * ToolStripMenuItem.cs: Calculate our text color better.
1023         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
1024         from Professional to the base class based off working with the System renderer.
1025         * ToolStripSystemRenderer.cs: Added.
1026
1027 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1028
1029         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
1030
1031 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
1032
1033         * ToolTip.cs: Implement 2.0 Tag property.
1034
1035 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1036
1037         * ListView.cs: Implement 2.0 HitTest methods.
1038
1039 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1040
1041         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
1042         item is under the pointer or not (sugar). Also remove the TODO
1043         regarding to the cursor changes in OneClick activation.
1044         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
1045         the subitems use the parent's HotFont if UseItemStyleForSubItems is
1046         true; otherwise don't show the underline style.
1047
1048 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1049
1050         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
1051         the code to retrieve the item at position only one time. Also
1052         change cursor when Activation is ItemActivation.OneClick as well
1053         as invalidate the item if HotTracking is true (to show/hide the
1054         underline style). Add an internal HotItemIndex property to retrieve
1055         the current hot item's index.
1056         * ListViewItem.cs: Add an internal HotFont property to cache the
1057         font used when HotTracking is true and the pointer moves within the
1058         item's borders.
1059         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
1060         HotFont depending on the hot state of the item.
1061
1062 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1063
1064         * ListView.cs: Implement 2.0 HotTracking property.
1065
1066 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
1067
1068         * ToolStripControlHost.cs: If our hosted control never got created,
1069         don't try to dispose it.  [Fixes bug #81909]
1070
1071 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
1072
1073         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
1074
1075 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
1076
1077         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
1078
1079 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1080
1081         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
1082         Details view.
1083         * DrawListViewColumnHeaderEventArgs.cs:
1084         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
1085         using the DrawText () methods.
1086
1087 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
1088
1089         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
1090         background which got erased in my changes yesterday.
1091
1092 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1093
1094         * ListViewItem.cs: Actually set bounds for subitems in Details view
1095         (2.0 feature).
1096         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
1097         can invoke from the owner draw routines if we need it. Also, add
1098         support for Owner draw in Details view.
1099
1100 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
1101
1102         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
1103         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
1104         ShowImageMargin setting, properly align text in a ToolStripLabel
1105         hosted on a ToolStripDropDown.
1106
1107 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
1108
1109         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
1110         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
1111
1112 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1113
1114         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
1115
1116 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
1117
1118         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
1119         location to match ToolStripMenuItems.
1120
1121 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1122
1123         * DrawListViewColumnHeaderEventArgs.cs:
1124         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
1125         column headers in ListView. 
1126
1127 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
1128
1129         * UserControl.cs: Implement AutoSize.
1130
1131 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1132
1133         * DrawListViewItemEventArgs.cs:
1134         * ListView.cs:
1135         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
1136         ListView.
1137
1138 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
1139
1140         * ToolStripDropDownItemAccessibleObject.cs: Added.
1141         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
1142         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
1143         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
1144         ToolStripTextBox.cs: corcompare work.
1145
1146 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
1147
1148         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
1149         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
1150         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
1151                 corcompare.
1152
1153 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
1154
1155         * OSFeature.cs: Add IsPresent.
1156         * PrintPreviewControl.cs: Add RightToLeft.
1157         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
1158         * SplitterPanel.cs: Add AutoSizeMode.
1159
1160 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
1161
1162         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
1163         * MdiClient.cs: Add 2.0 ScaleControl.
1164         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
1165         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
1166
1167 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
1168
1169         * Form.cs: Implement some scaling methods, stub some RTL methods,
1170         corcompare work.
1171
1172 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
1173
1174         * Control.cs: corcompare work.
1175         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
1176
1177 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
1178
1179         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
1180         ControlPaint 2.0 stuffs.
1181
1182 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
1183
1184         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
1185
1186 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
1187
1188         * UpDownBase.cs: Add 2.0 stuffs.
1189
1190 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
1191
1192         * NumericUpDown.cs: Add 2.0 stuffs.
1193
1194 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
1195
1196         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
1197
1198 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
1199
1200         * ErrorProvider.cs: Implement 2.0 stuffs.
1201
1202 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
1203
1204         * DomainUpDown.cs: Implement 2.0 stuffs.
1205
1206 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
1207
1208         * CheckedListBox.cs: Fix RefreshItems signature.
1209
1210 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
1211
1212         * PictureBox.cs: Implement 2.0 stuffs.
1213
1214 2007-06-12  Andreia Gaita  <avidigal@novell.com>
1215         
1216         * TabControl.cs: Check if there are tabpages before checking
1217         the selected index - fix #81802 (font changes raise a ResizeTabs
1218         call on controls.add, which blew up nicely with no tabpages)
1219
1220 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1221
1222         * ListView.cs:
1223         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
1224
1225 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1226
1227         * ListView.cs:
1228         * ListViewItem.cs: In VirtualMode the selection information
1229         resides in the ListView, rather than in the Items. Also, throw
1230         InvalidOperationExceptions when VirtualMode is being used and
1231         CheckedItemCollection is accessed.
1232
1233 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
1234
1235         * ComboBox.cs: Add ScaleControl.
1236
1237 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
1238
1239         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
1240
1241 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
1242
1243         * GroupBox.cs: Add 2.0 stuffs.
1244
1245 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
1246
1247         * Panel.cs: Add autosize properties/event.
1248
1249 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
1250
1251         * Control.cs:
1252         - When we remove a control, remove it from the collection before performing the layout.
1253         - Setup an internal property for explicit_bounds.
1254         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
1255         - Perform a layout when we set a new AutoSizeMode.
1256
1257 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
1258
1259         * ScrollableControl.cs: Add 2.0 stuffs.
1260
1261 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
1262
1263         * ScrollBar.cs: Add 2.0 stuffs.
1264
1265 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
1266
1267         * Splitter.cs: Add 2.0 stuffs.
1268
1269 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
1270
1271         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
1272         to have BindingContext simply use base implementation.
1273
1274 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
1275
1276         * ColumnHeader.cs: corcompare fix.
1277
1278 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
1279
1280         * Button.cs: corcompare fixes.
1281         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
1282
1283 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
1284
1285         * Button.cs: Override GetPreferredSizeCore.
1286         * ButtonBase.cs: PerformLayout after changing properties that can affect
1287         AutoSize.  Simplify some mouse/keyboard code.
1288         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
1289         * MouseEventArgs.cs: Make Location internal for 1.1.
1290         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
1291         * Theme.cs: Add CalculateButtonAutoSize.
1292         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
1293
1294 2007-06-05  Miguel de Icaza  <miguel@novell.com>
1295
1296         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
1297
1298 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1299
1300         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
1301         since we can get different item instances every time we retrieve it.
1302
1303 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1304
1305         * ListView.cs: Work around for #81602, since an unkown an pretty
1306         infrequent condition appears only in some systems (old linux boxes, it
1307         seems).
1308
1309 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
1310
1311         * Button.cs: Completely reformat and a little refactor to bring
1312         this closer to Mono circa 2007.
1313
1314 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
1315
1316         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
1317         to be ButtonBase.Invalidate.
1318
1319 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
1320
1321         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
1322
1323 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
1324
1325         * ButtonBase.cs: Completely reformat and a little refactor to bring
1326         this closer to Mono circa 2007.
1327
1328 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
1329
1330         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
1331         values for autosize. Fixes #80137.
1332
1333 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
1334
1335         * Control.cs: Don't perform layout when AutoSize changes.
1336         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
1337         directly when autosizing, use SetBounds with BoundsSpecified.None.
1338         Fixes unit tests my last commit broke.
1339
1340 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
1341
1342         * Control.cs: Perform layout when AutoSize changes.
1343         * Form.cs: Implement AutoSizing.
1344
1345 2007-06-01  Chris Toshok  <toshok@ximian.com>
1346
1347         * DataGrid.cs: remove the XXX'ed check at the top of
1348         ProcessGridKey.  fixes #80464.
1349
1350 2007-06-01  Chris Toshok  <toshok@ximian.com>
1351
1352         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
1353         adding idempotent (add/remove in Edit()), and also make sure we
1354         don't add it until after we set the text, so it's not tripped in
1355         Edit().  Fixes unit test regression.
1356
1357 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
1358
1359         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
1360         change is user explicit, not when the layout engine moves stuff.  Fixes
1361         anchoring to bottom and right.  [Fixes bug #81790]
1362
1363 2007-06-01  Andreia Gaita  <avidigal@novell.com>
1364
1365         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
1366
1367 2007-06-01  Andreia Gaita  <avidigal@novell.com>
1368
1369         * ContainerControl.cs: 
1370         Fire enter event for common ancestor if it is not a ContainerControl.
1371         Send focus to the active_control and not the 'value', the active 
1372         control might have been changed in one of the events fired.     
1373         Definitely fixes #80159.
1374
1375 2007-06-01  Andreia Gaita  <avidigal@novell.com>
1376
1377         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
1378
1379 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1380
1381         * PropertyGrid.cs: Anchor the help description to the bottom of the
1382           help panel and refactor SelectGridItem into a
1383           SelectGridItemInternal that can be set to null (and update it to
1384           clear the help texts when it is set to null). Set root item to null
1385           when there's no SelectedObject. Fixes #80438.
1386         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
1387           when we're recalculating after a resize (only).
1388
1389 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1390
1391         * ListView.cs: Implement 2.0 RedrawItems method.
1392
1393 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1394
1395         * ListControl.cs: Disconnect PositionChanged and ItemChanged
1396         handlers from previous data manager when DataSource is set to
1397         null. Fixes #81771.
1398
1399 2007-05-31  Jackson Harper  <jackson@ximian.com>
1400
1401         * TextBoxBase.cs: These seem to be the correct values.
1402
1403 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
1404
1405         * FileDialog.cs: When close dialog with ok set filterindex using combobox
1406         value. Fixes #81784.
1407
1408 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
1409
1410         * Control.cs: Implement 2.0 scaling methods.
1411
1412 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1413
1414         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
1415           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
1416           corcompare issues.
1417
1418 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1419
1420         * ProgressBar.cs: Implemented missing 2.0 members.
1421
1422 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1423
1424         * Control.cs: Corcompare issues.
1425         * MessageBox.cs: Implemented missing 2.0 functions.
1426
1427 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1428
1429         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
1430           Implemented more 2.0 members.
1431
1432 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1433
1434         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
1435           null (strange, but it seems to happen when running unit tests).
1436
1437 2007-05-30  Andreia Gaita  <avidigal@novell.com>
1438
1439         * ContainerControl.cs: Set active_control even earlier, before 
1440         firing any events, and undo it if validation returns false.
1441
1442 2007-05-30  Andreia Gaita  <avidigal@novell.com>
1443
1444         * ContainerControl.cs: Raise Validation and Enter/Leave events
1445         even if there is no Form and set active_control earlier, just
1446         before firing Enter events (toshok's patches). Fixes #80647.
1447
1448 2007-05-30  Jackson Harper  <jackson@ximian.com>
1449
1450         * TextControl.cs: Redid the pageup/pagedown a little to simplify
1451         things and fix bug #81311.
1452
1453 2007-05-30  Jackson Harper  <jackson@ximian.com>
1454
1455         * X11Dnd.cs: Now that we have our own event loop, we need to
1456         cancel when we get a mouseup but it won't be accepted.
1457
1458 2007-05-30  Chris Toshok  <toshok@ximian.com>
1459
1460         * DataGrid.cs (set_CurrentCell): guard against negative
1461         column/row.
1462
1463         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
1464         array index syntax instead of looping over the property names.
1465
1466         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
1467         and set IsInEditOrNavigateMode to false there.
1468
1469 2007-05-30  Jackson Harper  <jackson@ximian.com>
1470
1471         * TreeView.cs: Make sure we don't get a bad visible order when
1472         setting to the top node.  Fixes some misc crashing in
1473         ControlInspector.
1474
1475 2007-05-30  Andreia Gaita  <avidigal@novell.com>
1476
1477         * UserControl.cs: Add 2.0 AutoSizeMode
1478
1479 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
1480
1481         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
1482
1483 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
1484
1485         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
1486         lines. Fixes #80285. 
1487
1488 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
1489
1490         * DataGridColumnStyle.cs: Add char trimming column header text format. 
1491
1492 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
1493
1494         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
1495         Fixes #80147.
1496
1497 2007-05-29  Jackson Harper  <jackson@ximian.com>
1498
1499         * TreeNode.cs: Fix off by one on calculating whether or not a node
1500         is visible.
1501
1502 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
1503
1504         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
1505         * ScrollableControl.cs: Force an UpdateDistances when we move the
1506         scrollbars.
1507         [Fixes bug #80605]
1508
1509 2007-05-29  Andreia Gaita  <avidigal@novell.com>
1510
1511         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
1512         update the page setup screen.
1513
1514 2007-05-29  Andreia Gaita  <avidigal@novell.com>
1515
1516         * PageSetupDialog.cs: Fix landscape mode.
1517
1518 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1519
1520         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
1521         IconSizeHorizontalSpacing.
1522
1523 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1524
1525         * ListView.cs: The declaration of prev_tooltip_item should be inside
1526         a NET_2_0 conditional (avoid a warning).
1527
1528 2007-05-28  Andreia Gaita  <avidigal@novell.com>
1529
1530         * PageSetupDialog.cs: Implement PrintPreview control to display
1531         the preview thumbnail. Change unit conversion to use 
1532         PrinterUnitConvert methods.
1533         
1534         Note: there is a huge bug in ms.net where the default margins are 
1535         interpreted as centimeters (?), when in fact they are set in inches. When 
1536         loading the page setup dialog initially (ms.net), the default margins 
1537         are set to 1 inch, and the dialog shows them with value 10, when in fact 
1538         it should be 25 (properly converted). Our dialog doesn't have this bug.
1539         
1540         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
1541         RectangleF.
1542         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
1543
1544 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1545
1546         * ListView.cs:
1547         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
1548         items.
1549
1550 2007-05-28  Andreia Gaita  <avidigal@novell.com>
1551
1552         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
1553         an IntPtr on csc (it builds fine on mcs, could it be a compiler
1554         bug?), convert the ptr to Int32 first.
1555
1556 2007-05-28  Jackson Harper  <jackson@ximian.com>
1557
1558         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
1559         recieved, we will exit the dnd tracking loop.
1560
1561 2007-05-28  Jackson Harper  <jackson@ximian.com>
1562
1563         * X11Dnd.cs: Keep tracking until the xdnd finished event is
1564         recieved. TODO: I should probably stick a timer on the dropped
1565         event, and finish the drag if the XDND Finished event never shows
1566         (because some apps don't seem to send it).
1567
1568 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
1569
1570         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
1571         #81733.
1572
1573 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1574
1575         * MonthCalendar.cs: Only mark the keypresses we actually handle as
1576           handled.
1577
1578 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1579
1580         * MonthCalendar.cs: Set the size after initializing all the relevant
1581           variables. Fixes #81742.
1582
1583 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1584
1585         * KeyEventArgs.cs: Fix typo.
1586
1587 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
1588
1589         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
1590         to match MS. Fixed MinDate to only accept value less than or equal
1591         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
1592         Removed TODO's that are now verified by unit tests.
1593
1594 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
1595
1596         * TreeNodeCollection.cs: Minor corrections to exceptions to match
1597         MS.
1598
1599 2007-05-25  Jackson Harper  <jackson@ximian.com>
1600
1601         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
1602         it's own message loop.
1603         * XplatUIX11.cs: Remove some of the dnd hooks
1604
1605 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
1606
1607         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
1608         instead of MinimizedWindowSize.
1609
1610 2007-05-25  Jackson Harper  <jackson@ximian.com>
1611
1612         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
1613
1614 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1615
1616         * KeyEventArgs.cs: Added SuppressKeyPress.
1617         * Control.cs: Added support for SuppressKeyPress.
1618
1619 2007-05-24  Andreia Gaita  <avidigal@novell.com>
1620
1621         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
1622         problems with PieChart. suppress_validation should not be a counter,
1623         if there are several BeginInit calls, the first EndInit will 
1624         activate validation. Fix exceptions thrown by set_Value.
1625         * UpDownBase.cs: ValidateText only if it's the user editing it.
1626
1627 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1628
1629         * ListControl.cs: FilterItemOnProperty should return the filtered
1630         item proeprty even if DataSource is null. The same applies for
1631         GetItemText. Fixes #80427.
1632
1633 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
1634
1635         * Control.cs: If a control doesn't have a parent when it's Dock is
1636         set, but it has children, it needs to do a layout.  Fixes some nested
1637         controls issues.  [Fixes bug #81199]
1638
1639 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1640
1641         * ComboBox.cs: If there are few items in the drop down list, make it
1642           the exact size the items need, no bigger. Fixes #81612.
1643
1644 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
1645
1646         * Application.cs: When we have captured the keyboard for a menu,
1647         check for mouse down events in case we need to close the menu.
1648         * Control.cs, Form.cs: Remove mouse down checks for menus.
1649
1650 2007-05-24  Jackson Harper  <jackson@ximian.com>
1651
1652         * TextControl.cs: Handle tabs in non multiline mode a little
1653         differently.
1654
1655 2007-05-24  Jackson Harper  <jackson@ximian.com>
1656
1657         * TextControl.cs: We need to manually break apart tabbed text and
1658         move the tabs, since the system.drawing tabbing mechanism relies
1659         on tab stops.
1660         * TextBoxBase.cs: Move the caret properly when the user enters a
1661         tab.
1662
1663 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
1664
1665         * ContainerControl.cs: Don't check CanSelect before calling
1666         ProcessMnemonic.
1667         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
1668         release a KeyboardActive on click if it's not ours.
1669
1670 2007-05-23  Andreia Gaita  <avidigal@novell.com>
1671
1672         * ColumnHeader.cs: Add TypeConverter
1673
1674 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1675
1676         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
1677
1678 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1679
1680         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
1681
1682 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1683
1684         * LinkLabel.cs: Implement public Padding property.
1685
1686 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1687
1688         * LinkLabel.cs: Implement public FlatStyle.
1689
1690 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
1691
1692         * Control.cs: Apply patch from George to call parent.PerformLayout
1693         when Visible is changed.  [Fixes bugs #81118, 81718]
1694
1695 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1696
1697         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
1698
1699 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1700
1701         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
1702
1703 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
1704
1705         * ContextMenu.cs: Implement Collapse.
1706
1707 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
1708
1709         * ToolBarButton.cs: Implement Name.
1710
1711 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
1712
1713         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
1714         use current_item, it prevents some NRE. Fixes #81675.  
1715
1716 2007-05-22  Andreia Gaita  <avidigal@novell.com>
1717
1718         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
1719         without updating the text.
1720
1721 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
1722
1723         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
1724         without calling DeleteObject.  [Should fix bug #81709]
1725
1726 2007-05-22  Jackson Harper  <jackson@ximian.com>
1727
1728         * RichTextBox.cs: Set the line endings correctly, when flushing
1729         RTF text.
1730
1731 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
1732
1733         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
1734          {Width=0,Height=0}.
1735
1736 2007-05-22  Jackson Harper  <jackson@ximian.com>
1737
1738         * TreeView.cs: Setting top with a null node should set to the very
1739         top.
1740
1741 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1742
1743         * Form.cs: ShowDialog: destroy the handle when message loop is
1744           finished, matches MS behaviour. Refactor parts of WmClose into
1745           RaiseCloseEvents, that only raises events if they haven't already
1746           been raised. Fixes #81688 and #81521.
1747         * Application.cs: Don't call close on the form when exiting a modal
1748           loop, it will raise all the (Form)Closed/Closing events again if
1749           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
1750           which doesn'r raise any events it they have been raised before.
1751
1752 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
1753
1754         * Control.cs: Add OnPrint.
1755         * ToolStrip.cs: Add GetChildAtPoint.
1756         * ToolStripContainer.cs: Add OnRightToLeftChanged.
1757         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
1758
1759 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
1760
1761         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
1762
1763 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1764
1765         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
1766           isn't visible anymore. Fixes #81651.
1767
1768 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1769
1770         * Control.cs: WmShowWindow: Update children's z-order after setting
1771           their parent. SetParent may show the window, thereby corrupting
1772           z-order, since the window will be shown on top.
1773         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
1774           multiple (and redundant) WM_SHOWWINDOW messages.
1775         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
1776           event has already been raised.
1777         * Form.cs: Change is_changing_visible_state to a counter, since
1778           SetVisibleCore can be called recursively. CreateHandle: when
1779           creating mdi children, send (De)Activated events.
1780         * MdiClient.cs: Update use of is_changing_visible_state.
1781         * Application.cs: OnThreadException: Surround exception handling with
1782           try/finally to ensure we always reset the error-handling state
1783           before leaving.
1784
1785 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1786
1787         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
1788           (#81704).
1789
1790 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1791
1792         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
1793         SmallIcon views, now that we have a standarized horizontal spacing.
1794
1795         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
1796         4, just like the other views (Match .Net).
1797
1798 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
1799
1800         * Control.cs: Delay calculating anchor distances until we actually layout.
1801         Always query the WM for the actual size and location it put us at instead of
1802         only when we send negative values.
1803         [Fixes bugs #81694, 81695]
1804
1805 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1806
1807         * Application.cs: Avoid a possible stack overflow when trying to exit
1808           the application.
1809
1810 2007-05-19  Marek Safar  <marek.safar@gmail.com>
1811
1812         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
1813         enum value.
1814
1815 2007-05-19  Andreia Gaita  <avidigal@novell.com>
1816
1817         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
1818         * NumericUpDownAcceleration.cs, 
1819           NumericUpDownAccelerationCollection.cs: Added 2.0
1820           implementation.
1821
1822 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
1823
1824         * RichTextBox.cs: Recalculate the document after the ScrollBars
1825         property is changed. Fixes bug #81681.
1826
1827 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
1828
1829         * DataObject.cs: Implement 2.0 methods.
1830
1831 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1832
1833         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
1834         in the center of the checkbox, not in the left-top corner. 
1835         Fixes #80037.
1836
1837 2007-05-18  Jackson Harper  <jackson@ximian.com>
1838
1839         * RichTextBox.cs: Recalculate the document after the scrollbars
1840         property is changed.
1841         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
1842         81486.
1843
1844 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1845
1846         * CreateParams.cs: Make HasWindowManager marginally faster.
1847         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
1848           into Hwnd so that other drivers can use it as well.
1849         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
1850           the default location from Hwnd. Fixes MDI client windows always
1851           showing up at (0,0) in Windows (Win32 won't set the default
1852           location since the window styles aren't correct).
1853
1854 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
1855
1856         * TreeView.cs: Modified DoubleBuffered to just use the base
1857         implementation.
1858
1859 2007-05-18  Jackson Harper  <jackson@ximian.com>
1860
1861         * TreeView.cs: Set the top node to the last child node when
1862         expanding all
1863         - When we get focus, if there is no selected node, use the top
1864         node.
1865
1866 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
1867
1868         * KeysConverter.cs: Add CanConvertTo.
1869         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
1870         * LinkConverter.cs: Added.
1871
1872 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1873
1874         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
1875         it prevents error when file dont have write access. Fixes #81669 and #81667.  
1876
1877 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1878
1879         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
1880         button text. Fixes #79640.  
1881
1882 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1883
1884         * Control.cs: According to MSDN controls created in the designer theres 
1885         keyboard accelerators visible by default. So included check for design
1886         in ShowKeyboardCuesInternal.  
1887
1888 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1889
1890         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
1891         text. Fixes #81621.  
1892
1893 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
1894
1895         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
1896         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
1897
1898 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
1899
1900         * Control.cs: Finish implementation of UI State using WmChangeUIState
1901         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
1902         in some controls to check for show_keyboard_cues to draw accell keys "_".  
1903
1904 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1905
1906         * ListBox.cs: When calculating the horizontal scrollbar
1907         in single column mode, don't use values less than 0 for
1908         Maximum. Fixes #81474.
1909
1910 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1911
1912         * ListBox.cs: Throw the some missing exceptions in
1913         ListBox.ObjectCollection methods.
1914
1915 2007-05-17  Jackson Harper  <jackson@ximian.com>
1916
1917         * TextBoxBase.cs: Recalculate the document when the word wrap
1918         value has changed. This fixes 81488.
1919
1920 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
1921
1922         * Clipboard.cs: Implement missing GetText overload.
1923
1924 2007-05-17  Chris Toshok  <toshok@ximian.com>
1925
1926         * Control.cs (CheckDataBindings): remove the binding_context arg
1927         to binding.Check.
1928
1929         * CurrencyManager.cs (OnItemChanged): fix this now that
1930         BindingManagerBase is fixed. also remove the comment telling where
1931         the fix should go.  We set transfering_data to true/false around
1932         the call to PushData to keep UpdateIsBinding from being called.
1933         (ListChangedHandler): remove the extra OnMetaDataChanged call for
1934         PropertyDescriptorAdded in the 1.1 case.  The extra call is
1935         actually generated by System.Data generating 2 metadata changed
1936         events of its own per column add.  The fix should go there.  Add a
1937         comment to that affect in our test's Assert.Ignore.
1938
1939         * BindingManagerBase.cs: Rework PullData and PushData slightly.
1940         we keep a boolean flag (transfering_data) that keeps us from
1941         calling UpdateIsBinding multiple times if we re-enter either of
1942         them.
1943
1944         * ControlBindingsCollection.cs (AddCore): remove the
1945         binding_context arg to binding.Check.
1946
1947         * Binding.cs (IsBinding): don't check if we're binding here, just
1948         return our cached value.  we update it in UpdateIsBinding.
1949         (Check): don't take the binding_context arg, we'll just use our
1950         control's.  Also, for some reason MS doesn't use the data member
1951         field when getting the bindingmanager for this binding.  it just
1952         uses the datasource.  Make this method callable multiple times,
1953         and only do the is_null_desc stuff if manager.Position != -1 (so
1954         we don't get an exception accessing manager.Current).
1955         (UpdateIsBinding): move the code from IsBinding here.
1956         (PositionChangedHandler): call Check here to we can initialize
1957         things that require a non- -1 position.
1958
1959 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
1960
1961         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
1962         control.
1963
1964 2007-05-17  Andreia Gaita  <avidigal@novell.com>
1965
1966         * TabControl.cs: Add 2.0 methods and events, including
1967         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
1968         * TabPage.cs: Add 2.0 methods
1969
1970 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
1971
1972         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
1973         keyboard_cues is properly handled by message method.  
1974
1975 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
1976
1977         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
1978
1979 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
1980
1981         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
1982
1983 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
1984
1985         * Control.cs: 
1986         - WmUpdateUIState added to handle state changes, it make call to
1987         OnChangeUICues event.
1988         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
1989         SystemInformation.
1990
1991 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
1992
1993         * ImageKeyConverter.cs: Added.
1994         * TreeViewImageKeyConverter.cs: Added.
1995
1996 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1997         
1998         * ToolTips.cs: Update Text if SetToolTip is called for a control
1999         already showing the tooltip, as well as restarting its timer; show
2000         tooltip if we are inside the control bounds by the time of calling
2001         SetToolTip. Inside ShowTooltip remove the check to not show the 
2002         tooltip again for the active control (it is allowed by .Net to 
2003         show the tooltip on the same control multiple times).
2004
2005 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2006
2007         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
2008
2009 2007-05-16  Andreia Gaita <avidigal@novell.com> 
2010
2011         * ContainerControl.cs: only process tab key if there are no 
2012         modifier keys present, otherwise the control does the 
2013         tab processing, if it needs to. Fixes #81622
2014         * TabControl.cs: Fixes calculation for which tab to select on
2015         shift+ctrl+tab.
2016
2017 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2018
2019         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
2020
2021 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
2022
2023         * Control.cs: Make IsInputCharInternal to allow controls to
2024         override it and still match MS API.
2025         * TextBoxBase.cs: Override IsInputCharInternal and always
2026         return true.
2027         [Fixes bug #81616]
2028
2029 2007-05-15  Jackson Harper  <jackson@ximian.com>
2030
2031         * TextBox.cs: Disable some of the menu options when using a
2032         readonly textbox.
2033
2034 2007-05-15  Jackson Harper  <jackson@ximian.com>
2035
2036         * TextBox.cs:
2037         * TextBoxBase.cs:
2038         * RichTextBox.cs: Some new 2.0 methods
2039
2040 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
2041
2042         * FileDialog.cs: On 1.0 profile, do not support multidotted 
2043         extensions.
2044
2045 2007-05-14  Jackson Harper  <jackson@ximian.com>
2046
2047         * TextBoxBase.cs: Implement some of the new 2.0 methods.
2048         * RichTextBox.cs: We need to override these methods on 2.0.
2049         * MaskedTextBox.cs: These are implemented now
2050         * TextControl.cs: This was off by one.
2051
2052 2007-05-14  Jackson Harper  <jackson@ximian.com>
2053
2054         * TextControl.cs: Because the line endings are including in the
2055         text, we don't need to add them in anymore.
2056
2057 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
2058
2059         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
2060         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
2061
2062 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
2063
2064         * ToolBar.cs: Adjust size to default size when button theres no text and
2065         image, it fixes remaining issues from #81524.
2066
2067 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
2068
2069         * ToolBar.cs: 
2070         - When not flat call redraw to recalculate sizes on creare handle to match
2071         win32 behavior.
2072         - Revert 77220 because it causes some regressions in toobar
2073         button.
2074
2075 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2076
2077         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
2078           now actually enters a usable state.
2079
2080 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
2081
2082         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
2083         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
2084         3 buttons.
2085
2086 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
2087
2088         * ToolBar.cs: Save default_size on create handle to use later for buttons
2089         without text, needed to mimic win32 behavior.
2090
2091 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
2092
2093         * ToolBar.cs: Fix button layour to best fit width or height according to
2094         vertical or not. Fixes #81524.
2095
2096 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
2097
2098         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
2099         toolbar size info because different styles theres different sizes.
2100         Fixes #81522.
2101
2102 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2103
2104         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
2105         if we are using checkboxes, checked is true, and we have less
2106         than two images in StateImageList; for the 1.1 in the same scenario
2107         draw the first image if we have at least one image in StateImageList.
2108         Fixes part of #81191.
2109
2110 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
2111
2112         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
2113         the owner's Items collection on merge.
2114
2115 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
2116
2117         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
2118         * ToolStripItemCollection.cs: Lots of fixes to when events get called
2119         and parent/owner gets changed based on gert's unit tests.
2120
2121 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2122
2123         * MaskedTextBox.cs: Started implementing parts of it.
2124
2125 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2126
2127         * ListView.cs: When clicking the checkbox on the items
2128         take into account the double clicks even if we have only
2129         one image in StateImageList (only for 1.0/1.1). Also 
2130         generate an extra change of checked state when we receive
2131         the second click on checkbox (match .Net behaviour). 
2132         Fixes part of #81191.
2133
2134 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
2135
2136         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
2137
2138 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
2139
2140         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
2141         even if OnLoad is overriden and base.OnLoad is not called.
2142         [Fixes bug #81582]
2143
2144 2007-05-10  Andreia Gaita  <avidigal@novell.com>
2145
2146         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
2147         shame. (I blame my ever-persisting and annoying cold)
2148
2149 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
2150
2151         * ListView.cs: Don't eat navigation keys.  Let them flow through to
2152         KeyDown/KeyPress routines.  [Fixes bug #81569]
2153
2154 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
2155
2156         * ListView.cs: When handling keys for selecting the item based off
2157         keyboard input, do not consider keys pressed with Alt or Control.  Also,
2158         correctly handle keys when the Shift key is down. [Fixes bug #81578]
2159
2160 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
2161
2162         * Control.cs: When using UseWaitCursor, we have to store the requested
2163         Cursor to use when UseWaitCursor is turned off.
2164
2165 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
2166
2167         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
2168         to false.
2169         * Application.cs: Use PreProcessControlMessage instead of
2170         PreProcessMessage.
2171         * PreProcessControlMessage.cs: Make internal for 1.1.
2172
2173 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2174
2175         * Control.cs: Add InternalContains focus property, which hast the same
2176         functionality of ContainsFocus, but also including implicit controls.
2177         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
2178         since we need to know if the focus is contained in our implicit
2179         ItemControl when calculating Layout. Fixes part of #80888.
2180
2181 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
2182
2183         * ToolTip.cs: Remove center form string alignment as it must be align to
2184         left.
2185
2186 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
2187
2188         * ToolStripItemCollection.cs: Set the new item's parent and owner
2189         in Insert like we do in Add.  [Fixes bug #81568]
2190
2191 2007-05-08  Jackson Harper  <jackson@ximian.com>
2192
2193         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
2194         - Off by one error in SetTop
2195         - Disable DoubeBuffering
2196         
2197 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2198
2199         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
2200           control as much as necessary in order to make it entirely visible,
2201           instead of centering the control in the container (matches MS
2202           behaviour). CalculateCanvasSize: we need to take the current scroll
2203           position into account when calculating the maximum canvas,
2204           otherwise the following scenario will fail: resize so that the
2205           scrollbars appear, use the scrollbars to scroll, resize again
2206           smaller, and now the canvas size is too small. Recalculate: when
2207           showing scrollbars make sure they start off at 0, and try to scroll
2208           the active control into view. Fixes #79540. HandleScrollBar: don't
2209           scroll anywhere if the scrollbar isn't visible.
2210
2211 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2212
2213         * ListView.cs: When focus changed, call Layout/Invalidate
2214         in the focused item to update the selected state (should show
2215         entire label when ListView is focused, and a part of it if is not).
2216         * ListViewItem.cs: When doing layout for LargeIcon, take into account
2217         for displaying the entire label not only the Focused state of the
2218         item, but also the Focused state of the ListView (match .Net
2219         behaviour).
2220
2221 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
2222
2223         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
2224         Implement UseWaitCursor. 
2225
2226 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
2227         Applying contributed patch from Sergey Volk.
2228
2229         * Clipboard.cs: Implement SetDataObject retry logic and new overload
2230         of SetDataObject.
2231         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
2232
2233 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
2234
2235         * Control.cs: Implement DrawToBitmap.
2236
2237 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
2238         Applying contributed patch from Stefan Noack.
2239         
2240         * Control.cs: Add [Get|Set]AutoSizeMode.
2241
2242 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
2243
2244         * MdiClient.cs: Unmerge menus when the last child is closed.
2245
2246 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
2247
2248         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
2249         * ToolStripManager.cs: Call Merge on DropDowns.
2250         [Fixes bug #81477]
2251
2252 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2253
2254         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
2255           uints.
2256         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
2257           visibility. We can't create forms visible, since we have to set the
2258           owner before making the form visible (otherwise Win32 will do
2259           strange things with task bar icons). The problem is that we set the
2260           internal is_visible to true before creating the control, so
2261           is_changing_visible_state is the only way of determining if we're
2262           in the process of creating the form due to setting Visible=true -
2263           this works because SetVisibleCore explicitly makes the form
2264           visibile afterwards anyways. Fixes #80775.
2265
2266 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2267
2268         * ThemeWin32Classic.cs: When drawing ListViewItems,
2269         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
2270         or LargeIcon _and_ item is not focused (match .Net behaviour).
2271
2272 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
2273
2274         * Control.cs, Form.cs: Fix some obsolete method warnings.
2275
2276 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
2277
2278         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
2279         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
2280
2281 2007-05-04  Andreia Gaita  <avidigal@novell.com>
2282
2283         * ContainerControl.cs: Fix active_control attribution when going
2284         up the parent chain so that the first parent container gets the control
2285         and the rest of the parent containers get the child containers (skips
2286         non-containers). Fixes #80729
2287
2288 2007-05-04  Randolph Chung  <tausq@debian.org>
2289
2290         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
2291         [Fixes bug #81499]
2292
2293 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2294
2295         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
2296           takes a size parameter, since the CreateParam's size isn't true for
2297           minimized forms. Fixes #81518,
2298
2299 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2300
2301         * Form.cs: Add OnDeactivateInternal.
2302         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
2303
2304 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2305
2306         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
2307           accessing the parent. Fixes #81508.
2308
2309 2007-05-03  Chris Toshok  <toshok@ximian.com>
2310
2311         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
2312         2.0 block, pass listposition + 1 to ChangeRecordState when a row
2313         was added before the current listposition.  Fixes the
2314         TestInsertRowBeforeCurrent unit test.
2315
2316 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
2317
2318         * Application.cs: Add RaiseIdle.
2319         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2320         XplatUIX11.cs: Implement RaiseIdle.
2321
2322 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
2323         corcompare work: N - Z
2324         * NotifyIcon.cs
2325         * ProgressBar.cs
2326         * RadionButton.cs
2327         * ScrollableControl.cs
2328         * SplitContainer.cs
2329         * SplitterPanel.cs
2330         * StatusBar.cs
2331         * SystemInformation.cs
2332         * TabControl.cs
2333         * TableLayoutControlCollection.cs
2334         * TableLayoutPanel.cs
2335         * TabPage.cs
2336         * ToolBar.cs
2337         * ToolBarButton.cs
2338         * ToolStrip.cs
2339         * ToolStripComboBox.cs
2340         * ToolStripContainer.cs
2341         * ToolStripContentPanel.cs
2342         * ToolStripDropDown.cs
2343         * ToolStripDropDownItem.cs
2344         * ToolStripDropDownMenu.cs
2345         * ToolStripItem.cs
2346         * ToolStripItemCollection.cs
2347         * ToolStripMenuItem.cs
2348         * ToolStripPanel.cs
2349         * ToolStripSplitButton.cs
2350         * ToolTip.cs
2351         * TreeNode.cs
2352         * TreeNodeCollection.cs
2353         * TreeNodeMouseHoverEventArgs.cs
2354         * TreeView.cs
2355
2356 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
2357
2358         * ContextMenu.cs: Add public method Show with alignment property to 2.0
2359         stuff. Thanks aatdark for the patch. 
2360
2361 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
2362
2363         * GridItem.cs: Implement 2.0 Tag property.
2364
2365 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
2366
2367         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
2368         count instead of Nodes.Length.  [Fixes bug #81448]
2369
2370 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
2371
2372         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
2373         [Fixes bug #81506]
2374
2375 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
2376         corcompare work: A - M
2377         * BindingNavigator.cs
2378         * Button.cs
2379         * ButtonBase.cs
2380         * CheckBox.cs
2381         * Control.cs
2382         * FlowLayoutPanel.cs
2383         * Form.cs
2384         * Label.cs
2385         * LinkLabel.cs
2386         * ListView.cs
2387
2388 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
2389
2390         * Application.cs: Give toolstrips a chance to process mnemonics.
2391         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
2392         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
2393         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
2394
2395 2007-05-01  Jackson Harper  <jackson@ximian.com>
2396
2397         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
2398         wider area too.
2399         - Don't set the BoundsSpecified
2400
2401 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
2402
2403         * Application.cs: When using the toolstrip shortcut mechanism, allow the
2404         message to pass through to a regular control if it hosted by a toolstrip.
2405         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
2406         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
2407
2408 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
2409
2410         * TextRenderer.cs: Use the flags argument when using the MeasureString
2411         fallback algorithm.
2412
2413 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
2414
2415         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
2416         the MDI menu item.  [Fixes bug #81483]
2417
2418 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
2419
2420         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
2421         string. When setting Name to null, use zero-length string instead.
2422
2423 2007-04-29  Andreia Gaita  <avidigal@novell.com>
2424
2425         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
2426         DeselectTab). Implement missing 2.0 TabPageCollection methods
2427         (Add, ContainsKey, RemoveByKey, IndexOfKey)
2428
2429 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
2430
2431         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
2432
2433 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
2434
2435         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
2436         Fixes bug #81479. Include details of exception when LoadFile fails.
2437
2438 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
2439
2440         * DrawListViewSubItemEventArgs.cs: Added missing setter
2441
2442 2007-04-27  Andreia Gaita  <avidigal@novell.com>
2443
2444         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
2445         Hide methods (not complete). Implement missing 2.0 OnPopup event.
2446
2447 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2448
2449         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
2450         removed in ly last commit (it was breaking the Label edit feature).
2451
2452         * ThemeWin32Classic.cs: When drawing a ListViewItem use
2453         StringAlignment.Near for LineAlignment (match .Net).
2454
2455 2007-04-27  Andreia Gaita  <avidigal@novell.com>
2456
2457         * TabControl.cs: Change SetTab so it adds the tabpage to the list
2458         of controls if it isn't already there - was blowing up when doing
2459         tabcontrol.TabPages[i]=new TabPage(). 
2460         SetTab now does a replace by removing the page at the index. 
2461         Add a new InsertTab method that inserts a page in a given index 
2462         instead of replacing. 
2463         Implements TabPageCollection.Insert(int, TabPage).
2464
2465 2007-04-27  Chris Toshok  <toshok@ximian.com>
2466
2467         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
2468         internal handler that can be invoked from our subclasses.)  Also,
2469         add a comment to PushData about how we need to fix it.
2470
2471         * CurrencyManager.cs: tons of changes here.  trying to get things
2472         matching the behavior of .net wrt event orders (ItemChanged,
2473         CurrentChanged, PositionChanged.)  I've implemented a private .net
2474         symbol (ChangeRecordState) that appears in stack traces because
2475         it's actually easier to do this than to effective inline all its
2476         various behaviors at every call site.
2477
2478         * RelatedPropertyManager.cs: guard against an exception here by
2479         not using parent.Current if the position is set to -1 (if the
2480         parent datasource is cleared, for instance).
2481
2482         * Binding.cs: don't parse data in PushData (this might be wrong,
2483         but it jives with MS's behavior.)  Also, don't call PushData when
2484         we get a CurrentChanged event.
2485
2486 2007-04-27  Andreia Gaita  <avidigal@novell.com>
2487
2488         * WebBrowser.cs,
2489           WebBrowserBase.cs,
2490           WebBrowserSiteBase.cs,
2491           HtmlDocument.cs: Added stubbed out classes, no real implementations 
2492           yet.
2493
2494 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
2495
2496         * MainMenu.cs: In draw method without parameters call draw method with 
2497         PaintEvent, another one (just rect) adjust rectangle and we dont need it
2498         as Rect property is already adjusted. Fixes #80694.
2499
2500 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
2501
2502         * Application.cs: Need to handle keyboard menu deselection here.
2503         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
2504         navigation, allowing keyboard to work on X11.
2505         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
2506
2507 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
2508
2509         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
2510         menu bar. It fixes some drawing issues in menu bar.
2511
2512 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
2513
2514         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
2515         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
2516         when <alt> key is pressed.
2517
2518 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
2519
2520         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
2521         example just set visible to false and make this prevent from other problems.
2522         In SystrayAdd always remove pending expose. Fixes #81072.
2523
2524 2007-04-26  Marek Safar  <marek.safar@gmail.com>
2525
2526         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
2527         value is set.
2528
2529 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
2530
2531         * ListView.cs: Added three missing 2.0 events and corresponding
2532         EventHandlers. Added the OwnerDraw property.
2533         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
2534
2535 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
2536
2537         * DrawListViewItemEventArgs.cs
2538         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
2539
2540 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
2541
2542         * TextControl.cs: Fixed typo in constructor
2543
2544 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
2545
2546         * Application.cs: Create a shortcut path so that currently selected
2547         MenuStrips can intercept keyboard events without having focus.
2548         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
2549         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
2550         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
2551         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
2552         generate WM_SYSCOMMAND message in X11 for other platforms.
2553         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
2554         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
2555         * ToolStripSplitButton.cs: Add DefaultItem property.
2556         
2557 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
2558
2559         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
2560         fixes some menu draw problem on Windows with border diferent from default
2561         it also fixes #81403.
2562
2563 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2564
2565         * Form.cs: Refactor WndProc into separate methods, just like Control is
2566           doing it.
2567
2568 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2569
2570         * Control.cs: set_Text: move the call to the driver into a seperate
2571           virtual method so that Form can override it.
2572         * MaskedTextBox.cs: Corcompare fixes.
2573         * Form.cs: Override UpdateWindowText and only update the styles if the
2574           form has been shown (fixes #81405).
2575
2576 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
2577
2578         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
2579         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
2580         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
2581         the form lost focus or another control was clicked.
2582
2583 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
2584
2585         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
2586         fixed.
2587
2588 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2589
2590         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
2591           DrawListViewItemEventHandler.cs,
2592           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
2593           Added.
2594         * X11Structs.cs: More ToString implementation.
2595
2596 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
2597
2598         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
2599         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
2600
2601 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2602
2603         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
2604           handle.
2605         * FormCollection.cs: Don't add a form if it's already in the
2606           collection.
2607         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
2608           according to behaviour and MSDN. The ownerWin32 is the active
2609           window at the moment when we call ShowDialog, not the context's
2610           main form (the context's main form may open another form that opens
2611           a form with ShowDialog, the win32 owner is the second form). Add
2612           and remove forms to the Application.OpenForms in other places to
2613           better match MS behaviour. Add an IsActive property that raises
2614           On(de)Activated only if the active state has changed (we were
2615           raising OnDeactivated before OnActivated while creating forms).
2616         * Application.cs: Refactor Enabling/Disabling of windows for modal
2617           dialog loops out to separate methods, and restore the thread
2618           context when we quit the method. Fixes #81407.
2619
2620 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2621
2622         * ListView.cs: In ItemControl.HandleClicks, also fire 
2623         2.0 MouseClick or MouseDoubleClick events on the parent,
2624         not only the Click/DoubleClick events.
2625
2626 2007-04-24  Andreia Gaita  <avidigal@novell.com>
2627
2628         * TableLayoutSettings.cs: 
2629         - Added a GetControls method and a support structure to help the 
2630         TypeConverter to enumerate the controls for     serialization. 
2631         - Added a new serialization constructor. 
2632         - Added a isSerialized flag initialized to true on the 
2633         serialization constructor so that the TableLayoutPanel.LayoutSettings 
2634         setter does not throw the designed NotSupportedOperation exception
2635         when the object is built through deserialization.
2636         - Implemented GetObjectData
2637         
2638         * TableLayoutPanel.cs: Added check on LayoutSettings.
2639
2640 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2641
2642         * ListView.cs: Report Click and DoubleClick events to the parent
2643         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
2644         from breaking the click count state when using dialog forms (Control
2645         reports the clicks in a similar fashion). In the previous behaviour
2646         the last WM_LBUTTONUP message in a  double click was sent to the
2647         ListView's form, instead of the ListView, which was breaking the click
2648         count for it. Fixes #80387.
2649
2650 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
2651
2652         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
2653
2654 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
2655
2656         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
2657         us from created dropdowns for menu items that do not have subitems.
2658         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
2659         Check HasDropDownItems before calling DropDown so a dropdown will not be
2660         created if it isn't needed.
2661
2662 2007-04-24  Jackson Harper  <jackson@ximian.com>
2663
2664         * TreeView.cs: Set the first node to the selected node when we get
2665         focus if there is no selected node.
2666
2667 2007-04-24  Andreia Gaita  <avidigal@novell.com>
2668
2669         * MimeIcon.cs: remove using blocks so that image streams are
2670         not disposed of. Fixes #80151
2671
2672 2007-04-24  Jackson Harper  <jackson@ximian.com>
2673
2674         * TextBoxBase.cs: Fixup the height of textboxes when the control
2675         is created.
2676
2677 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
2678
2679         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
2680         for each ToolStripItem when the parent's RightToLeftChanged is called.
2681
2682 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2683
2684         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
2685           Fixes #80163.
2686         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
2687           property, so that the setter can be overriden too.
2688         * TextBox.cs: Change GetContextMenuInternal() to use
2689           ContextMenuInternal.
2690
2691 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2692
2693         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
2694           #81406.
2695
2696 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2697
2698         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
2699           #81406.
2700
2701 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2702
2703         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
2704           avoid duplicate work. Mostily skeleton code, it's not working at
2705           all yet.
2706
2707 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
2708
2709         * NotifyIcon.cs : stub for MouseClick event
2710         * Application.cs: stub for SetUnhandledExceptionMode
2711
2712 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
2713
2714         * BindingNavigator.cs : Initial (partial) implementation
2715
2716 2007-04-23  Jackson Harper  <jackson@ximian.com>
2717
2718         * TreeView.cs: Do not create the treeview's handle when setting
2719         the scroll position.
2720         - ExpandAll needs to compute the scrollbars so it knows which
2721         position to set the bar too.
2722         * TreeNode.cs: 
2723         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
2724
2725 2007-04-23  Jackson Harper  <jackson@ximian.com>
2726
2727         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
2728         key. Fixes #81408.
2729
2730 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
2731
2732         * ToolStripItem.cs: Make GetImageSize internal.
2733         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
2734         need to draw an item.  Fixes a reported issue where images on menus
2735         that were not 16x16 were drawing incorrectly.
2736
2737 2007-04-21  Miguel de Icaza  <miguel@novell.com>
2738
2739         * Padding.cs: Use the converter, fixes the resgen2 issue with
2740         XMLNotePad. 
2741
2742 2007-04-21  Jackson Harper  <jackson@ximian.com>
2743
2744         * TreeView.cs: Dont try to unhighlight the selected node if there
2745         isn't a selected node.
2746
2747 2007-04-21  Jackson Harper  <jackson@ximian.com>
2748
2749         * UpDownBase.cs:
2750         * TextBoxBase.cs:
2751         * ListView.cs:
2752         * ListBox.cs:
2753         * TreeView.cs: Use the InternalBorderStyle property to set the
2754         initial border style, this forces the client rectangle to be sized
2755         correctly.
2756
2757 2007-04-20  Jackson Harper  <jackson@ximian.com>
2758
2759         * TreeView.cs: Simplify scrolling to the last node after expanding
2760         all.
2761         - Fix some off by ones with setting the bottom.
2762
2763 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
2764
2765         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
2766         that.  We were incorrectly doing it the other way around.  Also,
2767         update ClientSize if we change the BorderStyle before the control
2768         is created.
2769
2770 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
2771
2772         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
2773         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
2774         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
2775         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
2776         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
2777         Caption to CaptionHeight.
2778         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
2779         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
2780         and FixedFrameBorderSize to return value from current XplatUI driver.
2781         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
2782         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
2783         and FixedFrameBorderSize using win32 API. Renamed Caption to
2784         CaptionHeight.
2785         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
2786         * SystemInformation.cs: Fixed typo in BorderSize.
2787
2788 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
2789
2790         * XplatUI.cs: Added MenuAccessKeysUnderlined.
2791         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
2792         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
2793         returning false.
2794         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
2795         value from XplatUI driver.
2796         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
2797         SystemParametersInfo.
2798         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
2799         override.
2800         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
2801         returning false.
2802
2803 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2804
2805         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
2806
2807 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2808
2809         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
2810
2811 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
2812
2813         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
2814         MenuStrips that contain ToolStripSeparators.
2815
2816 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2817
2818         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
2819           DefineStdCursorBitmap.
2820         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
2821           has been created off a standard cursor. This is used to get a
2822           bitmap of the standard cursor when Draw or DrawStretched is called
2823           in order to draw the cursor.
2824         * X11Structs.cs: Added XcursorImage and XcursorImages.
2825         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
2826           DefineStdCursorBitmap.
2827         * Cursors.cs: Update all relevant creations of Cursor to use the new
2828           internal constructor.
2829
2830 2007-04-19  Jackson Harper  <jackson@ximian.com>
2831
2832         * TextBox.cs: Move the has_been_focused into the base control, so
2833         some of the text adding methods can manipulate it (probably time
2834         for a better name for this flag too).
2835         - Call a new version of selectall that doesn't scroll
2836         * TextBoxBase.cs: When we append text, if the document is empty,
2837         don't scroll.  If the document has text already, we scroll to the
2838         end of the appended text.
2839         - When the text is changed, we reset the has_been_focused, so the
2840         next time the control gets focused, all the text is selected.
2841
2842 2007-04-19  Jackson Harper  <jackson@ximian.com>
2843
2844         * TextControl.cs: Move the margins to the document, add a method
2845         so the margin sizes can be updated.
2846         * TextBoxBase.cs: When the border style is changed, update the
2847         border sizes.
2848
2849 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
2850
2851         * Control.cs: Respect DefaultPadding.
2852         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
2853         padding into account.
2854         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
2855
2856 2007-04-19  Jackson Harper  <jackson@ximian.com>
2857
2858         * TextControl.cs: Oops, we need to use the ClientRect not the
2859         bounds here.
2860
2861 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2862
2863         * ListView.cs: In ItemControl.ItemsMouseDown, take into
2864         account the double clicks when CheckBoxes are used and
2865         the pointer is inside the checkbox. Fixes part of #81191.
2866
2867 2007-04-18  Jackson Harper  <jackson@ximian.com>
2868
2869         * TextControl.cs: Pressing the end key shouldn't move the caret
2870         past the line ending.
2871         * TextBoxBase.cs: We can still delete if we are in the line
2872         ending and the combine will just kill the existing line ending.
2873
2874 2007-04-18  Jackson Harper  <jackson@ximian.com>
2875
2876         * TextControl.cs: We can't move lines, then invalidate their
2877         bounds, we need to get the old bounds and combine that with the
2878         new bounds.
2879         * TextBoxBase.cs: Before combining two lines for a delete, we need
2880         to invalidate the area of the old line, since that will be moved
2881         in the combine operation.
2882
2883 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
2884
2885         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
2886         with transparent background. Fixes #80482.
2887
2888 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
2889
2890         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
2891         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
2892         [Fixes bug #81391]
2893
2894 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2895
2896         * CreateParams.cs: Add a couple of helper methods and do a less string
2897           concatenation in ToString.
2898         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
2899           overload that takes a Control parameter, since this method may be
2900           called before a control is assigned to the hwnd (from
2901           CreateWindow), and update CreateWindow to use the new overload. In
2902           GetMenuOrigin subtract the title bar from the y position if the
2903           form has a window manager (since we're painting it and not X).
2904         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
2905           CreateParams to calculate the origin (since border sizes may vary).
2906           In ScreenToMenu only subtract the title height if we actually have
2907           a title.
2908         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
2909           mdi children never have menus of themselves.
2910         * InternalWindowManager.cs: Implement menu handling like form does.
2911           Added GetMenuOrigin to calculate the menu origin, can't use the
2912           CreateParams from the form like normally since it's lying.
2913         * Hwnd.cs: Implement GetBorderSize better (in the sense more
2914           windows-like) and add Inflate and comparison operators to the
2915           Borders type. When calculating MenuOrigin and it's a form with a
2916           window manager, use the window manager to calculate it.
2917
2918 2007-04-17  Chris Toshok  <toshok@ximian.com>
2919
2920         * Control.cs (CreateControl): turns out in 2.0 we don't need this
2921         OnBindingContextChanged thing here.  It's only generated from
2922         ContainerControl.OnCreateControl.  Fixes a newly written unit test
2923         - BindingTest.BindingContextChangedTest4.
2924         
2925 2007-04-17  Jackson Harper  <jackson@ximian.com>
2926
2927         * ScrollBar.cs: When setting values, make sure the current
2928         position stays within the new values range.
2929
2930 2007-04-17  Chris Toshok  <toshok@ximian.com>
2931
2932         * Control.cs (CreateControl): talk about a bizarre corner case.
2933         Don't emit OnBindingContextChanged here if we're a parentless
2934         control (i.e. if we're a form.).  Fixes
2935         BindingTest.BindingContextChangedTest2.
2936
2937 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
2938
2939         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
2940         from win32. Fixes #81255.
2941
2942 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
2943
2944         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
2945         already present in CalculateButtonTextAndImageLayout.
2946
2947 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2948
2949         * XplatUIX11.cs: When setting min/max size for a window we need to
2950           translate the coordinates to x coordinates. Create an overload of
2951           SetWindowMinMax that takes a CreateParams handling this, and change
2952           SetWMStyles to call this function (can't use Control.FromHandle in
2953           the SetWindowMinMax to get the control/CreateParams from the handle
2954           because the handle might not have been assigned to the control
2955           yet). Fixes #81371.
2956
2957 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2958
2959         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
2960         if StateImageList is non-null and it has less than two items (match MS
2961         behaviour). Also, in HandleNavKeys handle the Space key, calling
2962         the new ToggleItemsCheckState method, which tries to change the
2963         checked state of the selected items. Fixes part of #81191.
2964
2965 2007-04-16  Jackson Harper  <jackson@ximian.com>
2966
2967         * RichTextBox.cs: namespace cleanup.
2968
2969 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
2970
2971         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
2972
2973 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
2974
2975         [Fixes #79447]
2976         * Control.cs: Call invalidate in set_Region.
2977
2978         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
2979         it dont works here.
2980
2981 2007-04-16  Jackson Harper  <jackson@ximian.com>
2982
2983         * TextBoxBase.cs: When enter is pressed, we need to update all
2984         lines below the current.
2985
2986 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
2987
2988         * MdiClient.cs: Implement implicit menu merging for MDI
2989         children.  When a child form is active, if it has a menustrip
2990         and the parent form has a MainMenuStrip, automatically merge
2991         the menus.
2992
2993 2007-04-15  Andreia Gaita  <avidigal@novell.com>
2994
2995         * TabControl.cs: Refactored sizing methods to not repeat
2996         code all over the place. Tab bounds are now calculated
2997         as if alignment is top and single line, and only when 
2998         setting the bounds are the positions adjusted according
2999         to alignment. Replaced hardcoded positions, spacings and
3000         paddings by getting the values the ThemeEngine. 
3001         Fixes #79619.
3002         
3003         * Theme.cs: Change TabControl properties and methods so
3004         that all start with TabControl*. Added more properties
3005         to help remove hardcoded values on tabcontrol.
3006         Add CPDrawBorder3D declaration so the Theming classes
3007         can access it.
3008         
3009         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
3010
3011         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
3012         on the Theming namespace, and call the appropriate methods here.
3013         Change CPDrawBorder3D to public.
3014
3015 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3016
3017         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
3018         the control after firing the OnMouseUp event, instead of sending
3019         the message before the mentioned event. This is so we can match the
3020         MS behaviour. Fixes part of #80385.
3021
3022 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
3023
3024         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
3025         RightToLeft property.
3026
3027 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
3028
3029         * ToolStrip.cs: Add properties and internal methods to support merging.
3030         * ToolStripItem.cs: Add MergeAction and MergeIndex.
3031         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
3032         not trigger reparenting or layouts.
3033         * ToolStripManager.cs: Add Merge and RevertMerge methods.
3034         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
3035         is hosting the overflow menu.
3036
3037 2007-04-13  Jackson Harper  <jackson@ximian.com>
3038
3039         * TextControl.cs: Set the line ending correctly for the first
3040         inserted line.
3041
3042 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
3043
3044         * Theme.cs: Update GetMethod to get the new definition for 
3045         KnownColors.Update (and fix theme color updates).
3046
3047 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
3048
3049         * MessageBox.cs: Fix some test and button position.
3050
3051 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3052
3053         * Form.cs: Consider the implicit controls in
3054         GetRealChildAtPoint. We need it since this method
3055         is called on Form when handling the some messages in
3056         WndProc, and need to consider those implicit ones too.
3057         Fixes #80385.
3058
3059 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
3060
3061         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
3062         if there are no ShortcutKeys set.
3063         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
3064         set, use it when painting.
3065
3066 2007-04-12  Jackson Harper  <jackson@ximian.com>
3067
3068         * TextControl.cs: Fix some off-by-one issues in line duplication
3069         and insertion in the undo manager. Also, overwrite the first tag
3070         of a line on insert, if it is just a zero lengthed tag. This
3071         prevents us from getting an extra stranded tag at the beginning of
3072         the first line.
3073
3074 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
3075
3076         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
3077         to calculated proper size including when handle was not created yet.
3078
3079 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3080
3081         * MdiWindowManager.cs: When moving a form, allow the form to be moved
3082           when the mouse is outside of it's parent's client rectangle. Fixes
3083           #79982 (take 3, part 2).
3084
3085 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3086
3087         * X11Structs.cs: Add a few ToString() overrides.
3088         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
3089           the window location in a window-manager independent way. Reworked
3090           FrameExtents, it now actually works. Reworked AddConfigureNotify
3091           and ReparentNotify handling to use GetTopLevelWindowLocation
3092           instead of the earlier, more hacky solution. Reworked SetWMStyles,
3093           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
3094           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
3095           for all other windows (fixes #81281 part 1), a toolwindow is hidden
3096           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
3097           and generally refactored to do as few calculations as possible
3098           inside the lock.
3099
3100 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
3101
3102         * Theme.cs: Change "reflective-contract" between MWF and SD to 
3103         minimize # of calls, avoid Color serialization and avoid updating 
3104         every "known colors" each time a single one is updated.
3105
3106 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
3107
3108         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
3109         when not readonly and the text is explicitly set. Code style updates.
3110         * DataGridTableStyle.cs: Removed extra line.
3111         * DataGrid.cs: Code style updates. Removed extra whitespace.
3112         * DataGridColumnStyle.cs: Code style updates. Removed extra 
3113         whitespace.
3114
3115 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3116
3117         * XplatUIX11.cs: Added comment that "fixes" #80021.
3118
3119 2007-04-09  Jackson Harper  <jackson@ximian.com>
3120
3121         * TextControl.cs: We don't need this -1 on the line count anymore.
3122
3123 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
3124
3125         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
3126         entered value to underlying type, and convert it back to a string to
3127         apply formatting. Modified GetFormattedValue to use TypeConverter
3128         if available.
3129
3130 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
3131
3132         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
3133         Use SubItems property when we want to ensure there's at least one
3134         subitem. Modified SubItems property to ensure there's always at least
3135         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
3136         the NRE's reported by MS.
3137
3138 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
3139
3140         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
3141         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
3142         Spaces to tabs. Removed extra tabs.
3143
3144 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
3145
3146         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
3147         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
3148
3149 2007-04-06  Jackson Harper  <jackson@ximian.com>
3150
3151         * TextBoxBase.cs: When a delete removes a line, recalculate all
3152         lines below that line (they need to get offsets setup correctly)
3153         and invalidate.
3154
3155 2007-04-05  Jackson Harper  <jackson@ximian.com>
3156
3157         * TextControl.cs: We need to invalidate across the width of the
3158         document when we are invalidating multiple lines.
3159         * TextBoxBase.cs: Don't delete into the line ending.
3160
3161 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3162
3163         * ListView.cs: Restore the check for the MouseHover event
3164         in ListView. It looks like the ListView fires more than one MouseHover
3165         event when HoverSelection is true  _only_ in weird-corner scenarios, but
3166         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
3167         event.
3168
3169 2007-04-05  Mike Kestner  <mkestner@novell.com>
3170
3171         * ListView.cs : raise MouseDown before updating selection.
3172         [Fixes #80373 tab 1&3]
3173
3174 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
3175
3176         * ToolStripRenderer.cs: Add static method to mirror image.
3177         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
3178         and RightToLeftAutoMirrorImage.
3179         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
3180
3181 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
3182
3183         * ToolStripSplitStackLayout.cs: Support Alignment property.
3184         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
3185
3186 2007-04-05  Jackson Harper  <jackson@ximian.com>
3187
3188         * TextControl.cs: Move around the line endings when crossing line
3189         boundaries.
3190         - When combining lines, strip the ending text off the first line.
3191
3192 2007-04-05  Jackson Harper  <jackson@ximian.com>
3193
3194         * TextControl.cs:
3195         * TextBoxBase.cs: Try to never move the cursor into the line
3196         ending.
3197         
3198 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
3199
3200         * ToolStripItem.cs: Make sure we aren't firing mouse events when
3201         the item is disabled.  Also add a few missing methods.
3202
3203 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3204
3205         * ListView.cs: We don't need the MouseEnter/MouseLeave check
3206         to fire just one MouseHover event when HoverSelection is true, since
3207         .Net does fire more than one MouseHover event in that scenario. Also,
3208         fix the selection in HoverSelection, by invoking UpdateMultiSelect
3209         if MultiSelect is true, instead of only setting ListViewItem.Selected.
3210         Finally, we need to reset the Hover logic in MouseMove, even when we
3211         don't have a selected item.
3212
3213 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
3214
3215         * ToolStrip.cs: Add several missing methods, properties, and events.
3216
3217 2007-04-04  Chris Toshok  <toshok@ximian.com>
3218
3219         * DataGridTextBoxColumn.cs: set the bounds of the text box to
3220         (0,0,0,0) in Commit, as MS does.
3221
3222         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
3223         make sure we set CurrentRow on a row header click *before* calling
3224         Select.  This moves the current cell (and the textbox) to the new
3225         row.  The call to Select then hides the textbox, giving us the
3226         correct behavior.  Fixes #80362.
3227
3228         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
3229         (ListChangedHandler): reorder the position/current changed events,
3230         and call UpdateIsBinding in the ItemAdded case.
3231
3232         * GridColumnStylesCollection.cs: add some columns events, one of
3233         which raises the CollectionChanged event.
3234
3235 2007-04-04  Jackson Harper  <jackson@ximian.com>
3236
3237         * TextControl.cs: When we delete multiple selection lines
3238         invalidate the selection area, don't need to do that for single
3239         lines because the final update view will handle it.
3240
3241 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
3242
3243         * Control.cs: When we CreateControl, we need to also create all of the
3244         control's children.  The child's OnLoad must also fire before the parent's
3245         OnLoad.  Fixes the toolbox size in PDN.
3246
3247 2007-04-04  Jackson Harper  <jackson@ximian.com>
3248
3249         * TextBoxBase.cs: When the user presses enter, insert a line
3250         ending into the text. (Maybe this would be a good spot for
3251         Environment.NewLine).
3252         * TextControl.cs: Remove undo manager hack, line endings get
3253         inserted properly now.
3254         
3255 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
3256
3257         * MenuAPI.cs: 
3258         - Remove unneeded parameters in UpdateCursor.
3259         - Fix UpdateCursor to check if menu is active.
3260         - Call UpdateCursor when menu deactivate my click.
3261         [Fixes remaining issues from #80410]
3262
3263 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
3264
3265         * Control.cs: GetRealChildAtPoint method added, it make an
3266         recursive child control search for the point. 
3267
3268         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
3269         menu.
3270
3271         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
3272
3273 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
3274
3275         * Form.cs: Fix mouse position when send back mouse event after closes
3276         menu.
3277
3278 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
3279
3280         * Form.cs: Simplify the BUTTONDOWN for active tracker.
3281
3282 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
3283
3284         * Control.cs: Fix an issue where if a user resized a control inside
3285         a sizing method like OnResize, we would overwrite their explicit
3286         value.  Also, only call DefaultSize once in the constructor instead
3287         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
3288         nothing actually changed.
3289
3290 2007-04-03  Jackson Harper  <jackson@ximian.com>
3291
3292         * TextControl.cs: Don't attempt to copy text for lines with no
3293         text in them (technically this shouldn't happen, but we aren't
3294         always inserting line endings when we should be).
3295
3296 2007-04-03  Jackson Harper  <jackson@ximian.com>
3297
3298         * TextBoxBase.cs: Calculate the scrollbars before calculating the
3299         document, because this sets some of the document size properties
3300         that are needed.
3301
3302 2007-04-03  Jackson Harper  <jackson@ximian.com>
3303
3304         * TextBoxBase.cs: We need to calculate maximums even if this is
3305         not a multiline control, because the maxs are used for scrolling.
3306         - Display the caret after doing a page up/down, we need to
3307         manually display it because a proper CaretMoved event isn't
3308         triggered (this is because of the way the math is done to
3309         determine how far to scroll).
3310
3311 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
3312
3313         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
3314         (ToolBar was relying on SetBoundsCore to default the values sent 
3315         base off of BoundsSpecified.)
3316
3317 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3318
3319         * DateTimePicker.cs: Change Text so that when a null value or empty
3320           string is assigned to the test we always raise ValueChanged and
3321           TextChanged (earlier implementation would only raise ValueChanged
3322           if the current date value was different from DateTime.Now).
3323
3324 2007-04-03  Andreia Gaita <avidigal@novell.com> 
3325
3326         * ButtonBase: Call update after invalidation, fixes #80194
3327
3328 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3329
3330         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
3331           #79335.
3332
3333 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3334
3335         * XplatUIX11.cs: SetWMStyles: If the control is a form with
3336           FormBorderStyle = None, don't give the window any decorations.
3337           Fixes #81276.
3338
3339 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3340
3341         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
3342         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
3343           to check for is a mix of several styles (such as WS_CAPTION for
3344           instance).
3345         * Control.cs: Don't paint an area bigger than the client area when
3346           painting the background colour. Add an internal GetCreateParams.
3347           Update calls to XplatUI.CalculateWindowRect due to API change.
3348         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
3349           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
3350           the size if it hasn't been handled by any windows. When creating
3351           and moving windows, X wants the location of the entire window, but
3352           the size of the client window, so add
3353           TranslateClientRectangleToXClientRectangle,
3354           TranslateWindowSizeToXWindowSIze and
3355           TranslatedXWindowSizeToWindowSize to cope with this, and call them
3356           before every window creation and move. Update CalculateWIndowRect
3357           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
3358           In AddConfigureNotify don't do anything if the hwnd is a zombie
3359           (fixes the BadWindow we were getting while running the tests),
3360           always calculate the offsets when it's a parentless window, not
3361           only when reparented, and translate the window size, since we're
3362           getting the client size of the whole window, excluding entire
3363           window.
3364         * Theme.cs: Added BorderSizableSize.
3365         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
3366           anymore. Update calls to XplatUI.CalculateWindowRect due to API
3367           chang
3368         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
3369           change. Fake the window styles here instead of in XplatUIWin32 so
3370           that all back-ends get the same window styles (and it's Form that's
3371           deciding when to use wm, not the Win32 backend anyways)
3372         * Hwnd.cs: Completely reworked GetWindowRectangle and
3373           GetClientRectangle - they are now passed a CreateParams and they
3374           only use Style and ExStyle to determine the rectangles (they should
3375           now work just like Win32AdjustWindowRectEx - though quite a few
3376           special cases are probably missing). They should also be 100%
3377           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
3378           == rect), and all numbers (borders, menu sizes) are taken from the
3379           current theme. Added a GetBorders helper function that will return
3380           the borders for any given CreateParams (including captions and
3381           menus), and GetBorderSize that returns the given border size only.
3382         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
3383           Hwnd.GetClientRectangle.
3384
3385 2007-04-02  Chris Toshok  <toshok@ximian.com>
3386
3387         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
3388         logic between the values we present to the user and the values
3389         which are stored in the column's property.  Also, don't call
3390         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
3391
3392 2007-04-02  Jackson Harper  <jackson@ximian.com>
3393
3394         * TextBoxBase.cs: Scroll faster!
3395
3396 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
3397
3398         * StatusStrip.cs: Layout fixes for PDN.
3399         * ToolStrip.cs: Set item's available to true, and placement to main when
3400         added.
3401         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
3402         changing in setter before doing any work, add InternalVisible.
3403         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
3404         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
3405         infinite loop.
3406
3407 2007-04-02  Jackson Harper  <jackson@ximian.com>
3408
3409         * TextBox.cs: LBUTTON does not make the textbox select all of it's
3410         text on focus.
3411
3412 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3413
3414         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
3415           Makes ToolStripComboBoxes show up again.
3416
3417 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3418
3419         * ListView.cs: Add a hover_pending field in ListView
3420         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
3421         cycle (we are resetting the MouseHover logic in XplatUI
3422         to handle HoverSelection). Fixes #80429.
3423
3424 2007-04-02  Jackson Harper  <jackson@ximian.com>
3425
3426         * TextControl.cs: Make sure the attributes get set on the last
3427         tag.
3428         - Still have to do the end tag if we have stepped all the ways to
3429         the end.
3430
3431 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
3432
3433         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
3434         on an internal libgdiplus call when the information is already 
3435         available via the public API.
3436
3437 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3438
3439         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
3440           control is removed from a control collecftion.
3441         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
3442           Fixes FormPropertyTest (failed on rare occasions).
3443         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
3444           of Win32SetParent (when changing from no parent to a parent it
3445           might add the new parent's location in screen coordinates to this
3446           window's location).
3447         * Form.cs: Rework ChangingParent once again, now the handle is
3448           recreated whenever a FormWindowManager is added or removed (that is
3449           whenever a normal form is parented or abandoned). Also change
3450           CreateParams so that all non-toplevel windows always get the
3451           specified sice (StartupPosition is never considered for
3452           non-TopLevel forms).
3453         * ContainerControl.cs: Add ChildControlRemoved, the container control
3454           needs to be notified when a control is removed from it's
3455           collection, in the case the removed control is the active control.
3456
3457 2007-04-02  Jackson Harper  <jackson@ximian.com>
3458
3459         * RichTextBox.cs: Use the new methods for setting the font and
3460         color, these methods set the specified attribute without
3461         overriding the other attributes.
3462
3463 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
3464
3465         * ToolStripPanel.cs: Fixes for better layouts in PDN.
3466
3467 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
3468
3469         * TextBox.cs: Added internal ChangeBackColor method to special-case
3470         Color.Empty. Added check for invalid ScrollBars value.
3471         * TextBoxBase.cs: Added internal ChangeBackColor method.
3472         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
3473         internal ChangeBackColor method to special-case Color.Empty. Added
3474         check for invalid ScrollBars value.
3475
3476 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
3477
3478         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
3479
3480 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
3481
3482         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
3483         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
3484         [Based on submitted patch from Olivier Duff.]
3485
3486 2007-03-30  Jackson Harper  <jackson@ximian.com>
3487
3488         * TextBox.cs: Only select all on initial focus if the user has not
3489         specified a selection area.
3490
3491 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
3492
3493         * UserControl.cs: Override CreateParams.
3494
3495 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3496
3497         [ Fixes #80995 ]
3498
3499         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
3500         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
3501           check for is a mix of several styles (such as WS_CAPTION for instance).
3502         * Control.cs: Don't paint an area bigger than the client area when painting
3503           the background colour. Add an internal GetCreateParams. Update calls to
3504           XplatUI.CalculateWindowRect due to API change.
3505         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
3506           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
3507           hasn't been handled by any windows. When creating and moving windows, X
3508           wants the location of the entire window, but the size of the client
3509           window, so add TranslateClientRectangleToXClientRectangle,
3510           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
3511           to cope with this, and call them before every window creation and move.
3512           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
3513           removing DeriveStyles). In AddConfigureNotify don't do anything if the
3514           hwnd is a zombie (fixes the BadWindow we were getting while running the
3515           tests), always calculate the offsets when it's a parentless window, not
3516           only when reparented, and translate the window size, since we're getting
3517           the client size of the whole window, excluding entire window.
3518         * Theme.cs: Added BorderSizableSize.
3519         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
3520           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
3521         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
3522           Fake the window styles here instead of in XplatUIWin32 so that all
3523           back-ends get the same window styles (and it's Form that's deciding when
3524           to use wm, not the Win32 backend anyways)
3525         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
3526           they are now passed a CreateParams and they only use Style and ExStyle
3527           to determine the rectangles (they should now work just like
3528           Win32AdjustWindowRectEx - though quite a few special cases are probably
3529           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
3530           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
3531           sizes) are taken from the current theme. Added a GetBorders helper
3532           function that will return the borders for any given CreateParams
3533           (including captions and menus), and GetBorderSize that returns the given
3534           border size only.
3535         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
3536           Hwnd.GetClientRectangle.
3537
3538 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3539
3540         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
3541           layout of the mdi children is handled by CreateParams. Fixes
3542           #79964,
3543
3544 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
3545
3546         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
3547         processed.
3548
3549         * Form.cs: When active tracker mouse down is not processed, send event 
3550         back to control inside mouse position. [Fixes #81227]
3551
3552 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
3553
3554         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
3555         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
3556         stealing focus from the active form on Windows.  (Control will be made
3557         visible in ShowWindow.)
3558
3559 2007-03-29  Mike Kestner  <mkestner@novell.com>
3560
3561         * ImageList.cs : add internal Changed event.
3562         * ListView.cs : hook up to StateImageList.Changed to perform
3563         invalidations when the the state icon list changes. [Fixes #81191]
3564
3565 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
3566
3567         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
3568         to prevent tooltips from stealing focus from the active form on Windows.
3569
3570 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
3571
3572         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
3573
3574         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
3575
3576 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
3577
3578         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
3579         balloons.
3580
3581 2007-03-29  Jackson Harper  <jackson@ximian.com>
3582
3583         * TextControl.cs: When deleting text from non multiline textboxes,
3584         we need to update the entire document, because line offsets will
3585         be shifting.
3586
3587 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
3588
3589         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
3590         added to theme, now we can create themes that uses diferent notify engines
3591         like notification-daemon from galago project or growl for Mac OS.
3592
3593 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
3594
3595         * NotifyIcon.cs: Prevent Balloon to show in task bar.
3596
3597 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
3598
3599         * XplatUIX11.cs: Prevent system to open more than one balloon.
3600
3601         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
3602         some compiler warning messages.
3603
3604 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
3605
3606         [Fixes #79149]
3607
3608         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
3609
3610         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
3611         implemented, this methods is used by NotifyIcon.BalloonWindow class.
3612
3613         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
3614         systems.
3615
3616 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3617
3618         * ListViewItem.cs: Forgot to make Invalidate internal.
3619
3620 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3621
3622         * ListView.cs: Add a InvalidateSelection method to
3623         invalidate methods which are currently selected, and call
3624         it when setting FullRowSelect and HideSelection, instead of
3625         calling Redraw.
3626
3627 2007-03-28  Chris Toshok  <toshok@ximian.com>
3628
3629         * XplatUIX11.cs (UnmapWindow): reindent this block.
3630
3631         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
3632         the selection_start if we're moving the selection (that is, not
3633         extending it). Fixes bug #80461.
3634
3635 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
3636
3637         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
3638         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
3639         create private ControlCollection.
3640
3641 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
3642
3643         * Control.cs: We need to call OnVisibleChanged for our implicit
3644         children as well as our normal children.  Fixes scrollbars in
3645         comboboxes not showing up.
3646
3647 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
3648
3649         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
3650         the check for IsHandleCreated first.  The check in CreateHandle is not
3651         good enough because CreateHandle can be overriden, and the override 
3652         should not be called if the handle is already created.
3653
3654 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
3655
3656         * ToolStrip.cs: Remove MonoTODO for tooltips.
3657         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
3658         * ToolStripContainer.cs: Add custom ControlCollection class.
3659         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
3660         * ToolStripDropDown.cs: Add some missing properties/methods.
3661         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
3662         * ToolStripItem.cs: Remove MonoTODO for tooltips.
3663         * ToolStripManager.cs: Add IsShortcutDefined.
3664         * ToolStripOverflow.cs: Override LayoutEngine.
3665         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
3666         * ToolStripSeparator.cs: Add ImageKey.
3667
3668 2007-03-28  Jackson Harper  <jackson@ximian.com>
3669
3670         * TextControl.cs: If a char delete removes a line ending, we need
3671         to update the ending style.
3672         - Make sure the line ending calcs get called.
3673
3674 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3675
3676         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
3677           it was making the new code not work. Fixed a typo in the new code
3678           as well. Fixes #79826.
3679
3680 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3681
3682         * XplatUIWin32.cs:
3683         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
3684         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
3685         - SystrayBalloon method implemented.
3686         [Add support for notifyicon balloon on win32, #79149]
3687
3688 2007-03-27  Mike Kestner  <mkestner@novell.com>
3689
3690         * ThemeWin32Classic.cs : update StateImageList selection to mirror
3691         the ms behavior when only one image is added to the list.
3692         [Fixes #81191]
3693
3694 2007-03-27  Jackson Harper  <jackson@ximian.com>
3695
3696         * TextControl.cs: Improvements to non multiline line ending
3697         drawing/measuing.
3698
3699 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3700
3701         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
3702
3703 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3704
3705         * NotifyIcon.cs: 
3706         - Balloon message handling added.
3707         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
3708
3709         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3710         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
3711         to SystrayBalloon to me like other Systray method, also a
3712         handle parameter added.
3713
3714 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3715
3716         * ListView.cs: Show scrollbars even when items.Count == 0
3717         but the columns Width is bigger than the ListView.Width.
3718         Also, when columns.Count == 0 set layout_wd and layout_ht
3719         to the ClientRectangle values, so we don't show any scrollbar
3720         in that case.
3721
3722 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3723
3724         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
3725
3726 2007-03-27  Jackson Harper  <jackson@ximian.com>
3727
3728         * RichTextBox.cs: The RTF library decodes the text properly for us
3729         now.
3730
3731 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3732
3733         * ListView.cs: Display HeaderControl even when columns.Count == 0.
3734         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
3735         ListView header (HeaderControl), instead of Control.BackColor.
3736
3737 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
3738
3739         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
3740         Fixes tab control issues where controls would not show up because they
3741         never received their OnVisibleChanged call.
3742
3743 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
3744
3745         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
3746         BalloonTipShown).
3747
3748 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
3749
3750         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
3751         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
3752         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
3753         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
3754         the handle.  Fix WindowState by using the internal variable until we are 
3755         sure that we've been shown.
3756         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
3757         max or min.
3758         [Fixes bug #81198]
3759
3760 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3761
3762         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
3763           (at least borders). Fixes #79386 on Linux (with a small difference
3764           in behaviour: when trying to resize a caption-less window metacity
3765           shows the sysmenu. Resizing is still possible though).
3766         * XplatUIWin32.cs: When setting window styles send request an extra
3767           WM_NCCALCSIZE when it's a form without title (due to no text and no
3768           caption), since Win32 seems to calculate it wrong the first time we
3769           get the message, though the second time things work as they should.
3770         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
3771           newly reparented window might show up unparented. Update
3772           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
3773           there's no title text. Fixes #79386.
3774
3775 2007-03-27  Mike Kestner  <mkestner@novell.com>
3776
3777         * ListBox.cs : don't perform invalidations if the handle hasn't been
3778         created.  [Fixes #80753]
3779
3780 2007-03-27  Mike Kestner  <mkestner@novell.com>
3781
3782         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
3783         [Fixes #80428]
3784
3785 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
3786
3787         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
3788         needed to implement Balloon.
3789
3790 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3791
3792         * ListViewItem.cs: In the constructors that take
3793         an array of strings, don't use ListViewSubItemCollection.AddRange
3794         method to add items, since we need to have a different behaviour (in
3795         the constructors we add an item for each null string, opposed to
3796         the behaviour of AddRange, which adds nothing).
3797
3798 2007-03-26  Andreia Gaita  <avidigal@novell.com>
3799
3800         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
3801
3802 2007-03-26  Jackson Harper  <jackson@ximian.com>
3803
3804         * TextControl.cs: Draw and measure line endings when in non
3805         multiline mode.
3806         - When searching the text, count the end of the last line as a
3807         word boundary.
3808
3809 2007-03-26  Jackson Harper  <jackson@ximian.com>
3810
3811         * RichTextBox.cs: The selection_start and selection_end don't
3812         really track the correct tags for the selection. So we'll manually
3813         compute the correct tag here.
3814
3815 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3816
3817         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
3818           and Continuous styles. Fixes #79469.
3819
3820 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
3821
3822         * ToolStrip.cs: Implement Tooltips.
3823         * ToolStripItem.cs: Create internal method for determining tooltip.
3824
3825 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
3826
3827         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
3828
3829 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
3830
3831         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
3832         it prevents a problem thak keeps icon visible after application 
3833         closes on win32.
3834
3835 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
3836
3837         * NotifyIcon.cs: Balloon properties and methods created.
3838
3839         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3840         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
3841
3842 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
3843
3844         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
3845
3846 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
3847
3848         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
3849         parameter indicates which aspects were explicit/user-set.
3850         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
3851
3852 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
3853
3854         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
3855         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
3856         SmallChange, and Value (2.0).
3857         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
3858
3859 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3860
3861         * ListView.cs: Always set item_control.Width in LayoutDetails
3862         if View is Details. Setting it later in CalculateScrollBars
3863         in a not-so-corner scenario (the sum of columns width is
3864         not bigger than the ListView width when handle is created, and then
3865         that sum gets bigger by increasing the width of the columns)
3866         causes a very weird recursion path (which shouldn't be happening,
3867         since header_control sets it in CalculateScrollBars too). This bug
3868         appeared after Chris' fixes for handle created issues, so probably
3869         it's related to some handle-creation time.
3870
3871 2007-03-23  Chris Toshok  <toshok@ximian.com>
3872
3873         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
3874         case where there's an add row, just so we don't end up in a case
3875         where it's not displayed (this happens when the row is partially
3876         obscured).  Fixes bug #79574.
3877
3878 2007-03-23  Jackson Harper  <jackson@ximian.com>
3879
3880         * TextControl.cs:
3881         * TextBoxBase.cs:
3882         * RichTextBox.cs: Preserve line endings in the lines text buffer,
3883         also added an enum that represents the line ending type. 
3884
3885 2007-03-23  Andreia Gaita  <avidigal@novell.com>
3886
3887         * NumericUpDown.cs: Fix logic so Text and Value properties are not
3888         messed with in every method call, but only from DownButton, 
3889         UpButton, UpdateEditText() and ValidateText. Fixes #80346
3890
3891 2007-03-23  Chris Toshok  <toshok@ximian.com>
3892
3893         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
3894         format objects if the format spec is "".  Fixes bug #80889.
3895
3896 2007-03-22  Miguel de Icaza  <miguel@novell.com>
3897
3898         * ToolStripPanel.cs (Join): added stubs to build PDN3
3899
3900         * Control.cs (AutoScrollOffset): Add.
3901
3902         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
3903         property, its only implemented for Win32, on X11 it defaults to
3904         some hardcoded value.
3905
3906         * ToolStripItem.cs (AllowDrop): Add property
3907
3908 2007-03-22  Mike Kestner  <mkestner@novell.com>
3909
3910         * ListView.cs : in FullRowSelect Details mode, only enable box
3911         selection if the user clicks over the "item" column outside of the
3912         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
3913
3914 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3915
3916         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
3917           handle is not created yet.
3918         * Form.cs: Select: Don't call CreateHandle if the handle is already
3919           created, avoids a stack overflow on Windows when we are recreating
3920           controls.
3921         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
3922           they are made visible, and override AfterTopMostControl to keep
3923           them on top when other controls are brought to front.
3924           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
3925           or force_*scroll_visible is true (old implementation always shows
3926           scrollbars when needed, no matter what auto_scroll was set to).
3927         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
3928           IsHandleCreated check.
3929
3930 2007-03-22  Andreia Gaita  <avidigal@novell.com>
3931
3932         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
3933         row or col separator.
3934         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
3935
3936 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
3937
3938         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
3939
3940 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
3941
3942         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
3943         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
3944         every time. Fixes #80410.
3945
3946 2007-03-22  Chris Toshok  <toshok@ximian.com>
3947
3948         * BindingSource.cs (AddNew): partially implement.
3949
3950         remove a couple of NotImplementedException's
3951         to get bug #81148 closed.
3952
3953 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
3954
3955         [Fixes #80380]
3956         
3957         * Control.cs:
3958         - UpdateCursor method added to update the screen cursor.
3959         - GetAvailableCursor method added to return cursor for enabled tree,
3960         it searches for cursor on control and it's parent's for enabled control.
3961         - Call UpdateCursor method on setter of Cursor property.
3962         - On setter of Enabled call UpdateCursor when it is false, we need to
3963         change cursor to normal (or to this parent cursor) because cursor 
3964         setting theres no effect to disabled controls.
3965         - Some minor source changes to follow the coding style guidelines.
3966
3967         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
3968         controls.
3969
3970 2007-03-22  Chris Toshok  <toshok@ximian.com>
3971
3972         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
3973         generates.
3974
3975 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3976
3977         * XplatUIX11.cs: Implement default locations for forms.
3978         * Form.cs: Completely rework startup location for forms. Fixes #79964.
3979         * Hwnd.cs: Add previous_child_startup_location (to track the current
3980           startup location for any child forms of the current form) and
3981           previous_main_startup_location (to track the startup location for
3982           the current toplevel form).
3983
3984 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
3985
3986         * Control.cs: Don't trigger a layout if an implicit control is added
3987         that isn't visible.  Also, don't notify the owner when an implicit control
3988         is added.  (Owners shouldn't even know about their implicit controls.)
3989
3990 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
3991
3992         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
3993         to save some re-layouts.
3994
3995 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
3996
3997         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
3998         [Fixes #81203]
3999
4000 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
4001
4002         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
4003         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
4004
4005 2007-03-21  Mike Kestner  <mkestner@novell.com>
4006
4007         * ListView.cs : disable selection update for non-left button clicks
4008         with mods and over selected items.  [Fixes #80524]
4009
4010 2007-03-20  Jackson Harper  <jackson@ximian.com>
4011
4012         * TextControl.cs:
4013         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
4014         \r\r\n, \n.
4015
4016 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4017
4018         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
4019           very probably a more complicated calculation there. Update the
4020           textbox' ForeColor and BackColor when the ComboBox' colors are
4021           changed. Change the border change in LayoutComboBox to only affect
4022           the textbox, not all the calculations there. Seems to fix most of
4023           #79436.
4024
4025 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4026
4027         * ComboBox.cs: Handle Home and End keys as well as all combinations of
4028           modifiers + navigation keys as input keys, enables advanced text
4029           selection in the combobox (like Shift+Left Arrow for instance).
4030           ComboTextBox now overrides Focused and returns whatever
4031           ComboBox.Focused returns, since it really should be focused
4032           whenever the ComboBox is. Fixes #80795. Also make the border around
4033           the text box one pixel bigger, as mentioned in #79436.
4034
4035 2007-03-20  Jackson Harper  <jackson@ximian.com>
4036
4037         * TreeView.cs: Don't offset the images, this was causing some
4038         artifacts when expanding/collapsing with images that were the
4039         exact height of the treenode.
4040
4041 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4042
4043         * TrackBar.cs: Query the theme for the correct value when the mouse
4044           moves and the thumb is pressed. 
4045         * Theme.cs: Added TrackBarValueFromMousePosition
4046         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
4047           implementation was updating the trackbar value when drawing, now
4048           the drawing methods only draw. Fixes #80900. Refactored the
4049           calculations out to TrackBarValueFromMousePosition and
4050           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
4051           according to the mouse position whenever it wants to. Changed the
4052           light coloured pen when drawing the thumb from ControlLight to
4053           ControlLightLight, because the ControlLight is the same colour as
4054           the background so the 3D effect is lost. 
4055
4056 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
4057
4058         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
4059         defined. Fixes #80784.
4060
4061 2007-03-20  Marek Habersack  <mhabersack@novell.com>
4062
4063         * ContextMenuStrip.cs: align with the change introduced in
4064         revision 74664.
4065
4066 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
4067
4068         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
4069         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
4070         in SetTopmost.
4071
4072 2007-03-19  Chris Toshok  <toshok@ximian.com>
4073
4074         * Control.cs (WmPaint): don't make use of the Handle property
4075         after an event is emitted, as the user could have closed the
4076         form/destroyed the control.  Store the Handle in a local variable
4077         and make use of that.  Fixes bug #80768.
4078
4079 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
4080
4081         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
4082         behavior in X11 environments.
4083
4084 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
4085
4086         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
4087         because on setter of topmost we dont call SetTopmost when handle is not
4088         created.
4089
4090 2007-03-20  Jackson Harper  <jackson@ximian.com>
4091
4092         * TextControl.cs: Need to use SelectionLength () not
4093         selection_length, since that var is reset to -1.
4094         - Draw the caret when we don't have focus.
4095         * TextBox.cs: The selectall actually doesn't occur until the first
4096         focus.
4097         * TextBoxBase.cs: Need to update the caret position after a
4098         selectall.
4099         
4100 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4101
4102         * ListView.cs: Enable scrolling when using Tile view.
4103
4104 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
4105
4106         [Fixes #80902]
4107
4108         * XplatUIDriver.cs: Abstract SetOwner method created.
4109
4110         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
4111         must be implemented and was masked as todo.
4112
4113         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
4114         GWL_HWNDPARENT.
4115
4116         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
4117         cheking for null owner to remove transient. The SetTopmost will be change
4118         on a decond step.
4119
4120         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
4121         SetTopmost. Now owned forms will work properly in win32 and X11.
4122
4123 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4124
4125         * MdiWindowManager.cs: Update function name.
4126         * Form.cs: After closing a form MdiParent is always null.
4127         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
4128           better what it should do: necessary book-keeping when the form is
4129           closed, it should not close the form itself.
4130
4131 2007-03-19  Andreia Gaita  <avidigal@novell.com>
4132
4133         * ListViewItem.cs: Fix back and fore color. The subitems only
4134         use their own colors if they are set, otherwise use the listview's
4135         colors. Don't set default colors on constructor for subitem.
4136         Fixes #79315.
4137
4138 2007-03-19  Mike Kestner  <mkestner@novell.com>
4139
4140         * ListView.cs : make box selection for Details views with 
4141         FullRowSelect conform to MS behavior when clicking in the "item" 
4142         column and clicking outside the defined columns.
4143         [Fixes case 5-6 of #80374]
4144
4145 2007-03-19  Chris Toshok  <toshok@ximian.com>
4146
4147         * ScrollableControl.cs: create the controls from within the ctor,
4148         but don't actually add them until our handle is created.  this
4149         fixes a NRE possibility jpobst found (if you override OnLayout in
4150         a subclass, it's called before your ctor).  Also, add a
4151         IsHandleCreated guard to UpdateSizeGripVisibility as well.
4152
4153 2007-03-19  Jackson Harper  <jackson@ximian.com>
4154
4155         * TextBox.cs: Reduce the amount of invalidation we do.
4156         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
4157         some of them are true by default on MS.
4158         - Add some functions to reduce the amount of invalidates we do.
4159         * TextControl.cs: Less invalidation.
4160
4161 2007-03-19  Chris Toshok  <toshok@ximian.com>
4162
4163         [ Fixes #81773, and *seems* to fix #81553 as well ]
4164
4165         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
4166         AccumulateDestroyedHandles.  We need to do it *after* we send
4167         WM_DESTROY, as the user's code can access Control.Handle in
4168         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
4169         move the WM_DESTROY/zombie handling to before the call to
4170         XDestroyWindow.  For some reason without this ordering
4171         FormTest.RecreateHandle hangs.  This ordering is semantically
4172         equivalent, however, as XDestroyWindow is async anyway.
4173
4174 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
4175
4176         * RichTextBox.cs: Reset backcolor_set after setting default.
4177
4178 2007-03-19  Chris Toshok  <toshok@ximian.com>
4179
4180         * ScrollableControl.cs: the scroll position should not effect the
4181         canvas size.  commit patch from georgegiolfan@yahoo.com, which
4182         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
4183         
4184 2007-03-19  Chris Toshok  <toshok@ximian.com>
4185
4186         * ScrollableControl.cs: clean this up a bit.  create the
4187         scrollbars in the ctor and just show/hide them as needed.  Also,
4188         make hscroll_visible/vscroll_visible internal to Recalculate, and
4189         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
4190         everywhere else.  This seems to fix the scrollbars appearing
4191         beneath the content for me (i have *no* idea why that is,
4192         however.)
4193
4194 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
4195
4196         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
4197         some redundacy for stuff in Anchor and Dock that base will take care of.
4198         [Fixes #80762]
4199
4200 2007-03-19  Mike Kestner  <mkestner@novell.com>
4201
4202         * ListView.cs : make box selection for Details views without 
4203         FullRowSelect dependent on the text bounds, not item bounds.
4204         * ListViewItem.cs : add an internal property to obtain the TextBounds
4205         in Details view.  [Fixes case 1-4 of #80374]
4206
4207 2007-03-19  Andreia Gaita  <avidigal@novell.com>
4208
4209         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
4210         we're < 2.0. #78448 && #80316
4211
4212 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
4213
4214         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
4215         have the same style available as the previously selected one.  Also,
4216         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
4217
4218 2007-03-19  Jackson Harper  <jackson@ximian.com>
4219
4220         * TextControl.cs: Add an alignment property that all new lines
4221         will be given.
4222         - Make sure to use the align shift when calculating the line's X
4223         position.
4224         * TextBox.cs: Set the alignment on the document as well as on all
4225         the document lines.
4226
4227 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4228
4229         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
4230           throw if setting the parent of an mdichild that already has an
4231           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
4232           AssemblyProductAttribute in the assembly, use the type's namespace (as
4233           MS seems to do). CreateControl: don't create the handle if the control
4234           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
4235           create handle if the control is not a form. Change FocusInternal to
4236           virtual so that it can be overriden by Form.
4237         * TextBox.cs: Update call to FocusInternal.
4238         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
4239           form is not a toplevel form when it's a mdi child, so update is_toplevel
4240           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
4241           hasn't been created. Show (IWin32Window): Don't allow this overload for
4242           toplevel windows. CenterToParent/CenterToScreen/Select: create the
4243           handle as MS does. SetVisibleCore: if called on a MdiChild and the
4244           parent isn't visible yet, save the visibility and restore it when the
4245           parent is made visible.
4246         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
4247           methods, since the visibility of the scrollbars can be changed from
4248           several places, not only from AutoScroll.
4249           [Fixes #81179]
4250
4251 2007-03-19  Jackson Harper  <jackson@ximian.com>
4252
4253         * RichTextBox.cs: Enable shortcuts by default.
4254         * TextBoxBase.cs: Add conditional shortcuts.  
4255
4256 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
4257
4258         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
4259
4260 2007-03-19  Chris Toshok  <toshok@ximian.com>
4261
4262         [ Fixes bug #80604]
4263         
4264         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
4265         swallow the message we're waiting on, instead of delivering it, as
4266         this is only used for the WM_SHOWWINDOW raised from
4267         MapWindow/UnmapWindow, and the message needs to be generated
4268         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
4269         before doing the Map/Unmap.  Also make sure that the Hwnd is still
4270         alive after the message has been handled.
4271
4272         *before* the window is shown.
4273
4274         * Control.cs (CreateControl): guard a few more things inside the
4275         if (!is_created) block, as we might end up being called again -
4276         yay .net.
4277         (WmShowWindow): call CreateControl if we're showing the control.
4278
4279 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4280
4281         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
4282           controls without a handle if they have any parent with a handle. In
4283           Dispose add a check whether the handle is created or not before
4284           calling BeginInvoke, this removes the need of the extra disposing
4285           parameter (which was bogus anyway since it didn't prevent the
4286           invoke from happening, it only skipped the check for an existing
4287           handle, meaning that the invoke would call on an inexistent
4288           handle).
4289
4290 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
4291
4292         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
4293         appears in taskbar.
4294
4295 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
4296
4297         * MessageBox.cs:
4298         - Fixed a problem that dont show help button for messages with 3 buttons.
4299         - Refactory button size and position calculations, now dont use fixed 
4300         values, also fixed button sizes (#80043) and form's border space.
4301         - AddButton method created, now all other AddButton methods call this one.
4302         - Some other source code cosmetic changes.
4303
4304 2007-03-18  Jackson Harper  <jackson@ximian.com>
4305
4306         * RichTextBox.cs: Don't do this all fonts must match check if
4307         there is only one char selected.
4308
4309 2007-03-18  Jackson Harper  <jackson@ximian.com>
4310
4311         * TreeView.cs: ScrollWindow works properly now, so we don't need
4312         to screw around with the scroll area.  This fixes some artifacts
4313         when expanding and collapsing.
4314
4315 2007-03-18  Jackson Harper  <jackson@ximian.com>
4316
4317         * TextBoxBase.cs: Allow updating the selection position when the
4318         cursor is outside the textarea, but we have a capture.
4319         * TextControl.cs: A special case for when the cursor is outside
4320         the bounds of the TB.
4321         
4322 2007-03-18  Jackson Harper  <jackson@ximian.com>
4323
4324         * TextBoxBase.cs: Remove image pasting code for now.  There is no
4325         way to get an image on the clipboard right now anyways.
4326         * TextControl.cs:
4327         * RichTextBox.cs: Use the new RTF Picture class for pictures.
4328
4329 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
4330
4331         * MessageBox.cs:
4332         - Set window properties in constructor intead of on CreateParams.
4333         - Remove topmost from Window ExStyle.
4334         - Set ShowInTaskbar to false.
4335         - Set form border to FixedDialog.
4336         - Some cosmetic changes and remove unneeded comments.
4337         - It fixes itens 2,3 and 4 of bug #80043.
4338
4339 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
4340
4341         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
4342         none was explicitly set. Fixes part of bug #79949.
4343
4344 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
4345
4346         * ToolStripComboBox.cs: Add AutoComplete*.
4347
4348 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
4349
4350         * ToolStripComboBox.cs: Add FlatStyle.
4351
4352 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
4353
4354         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
4355         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
4356
4357 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4358
4359         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
4360           CheckBox.cs, RadioButton.cs, BindingSource.cs,
4361           DataGridColumnStyle.cs: Remove warnings.
4362
4363 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4364
4365         * Menu.cs: MergeMenu: Check menu argument for null before looping over
4366           it.
4367         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
4368           visibility of mdi child forms. FormSizeChangedHandler: update the
4369           maximized size if size has changed while maximized.
4370         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
4371           creating the handle.
4372         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
4373           avoid creating the handle if not created.
4374         * XplatUI.cs: Update debug output.
4375         * XplatUIStructs.cs: Added ToString's for a couple of structs.
4376
4377 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
4378
4379         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
4380         ProcessCmdKey().
4381         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
4382         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
4383         Implement keyboard shortcuts.
4384
4385 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
4386
4387         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
4388         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
4389         ColorDialog and all derived classes.
4390
4391 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
4392
4393         [ Fixes bug #79828 ]
4394
4395         * ToolBar.cs:
4396         - Rename ToolBarButtonInfor to ToolBarItem.
4397         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
4398         - Maintain an array of ToolBarItem, used instead of ToolBarButton
4399         collection to be able add same button more than one time on a toolbar.
4400         - Refactory all properties and methods to use ToolBarItem. 
4401
4402         * ToolBarButton.cs: 
4403         - Remove all propeties and methods that is now in ToolBarItem.
4404         - Rectangle propery now gets the rectangle from first ToolBarItem to
4405         mimic win32 behavior.
4406         - Size calculation and layout methods also removed.
4407
4408         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
4409         ToolBarItem instead of ToolBarButton to right drawing buttons when
4410         same button/separator was added more than one time to ToolBar.
4411
4412         * ThemeNice.cs: Same as above. 
4413
4414 2007-03-15  Andreia Gaita  <avidigal@novell.com>
4415
4416         * XplatUIX11.cs: Fire extra MouseMove events right after
4417         MouseDown and MouseUp, emulating win32's <censored> behaviour
4418         for apps that rely on it.
4419
4420 2007-03-15  Jackson Harper  <jackson@ximian.com>
4421
4422         * TextControl.cs:
4423         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
4424         it is drawn on the controls client window and there is no NC
4425         area.
4426         - Set the background color to gray on 2.0 when we are readonly.
4427
4428 2007-03-15  Chris Toshok  <toshok@ximian.com>
4429
4430         [ Fixes bug #81144 ]
4431         
4432         * XplatUIX11.cs: implement VirtualScreen independently of
4433         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
4434         property.
4435
4436 2007-03-15  Chris Toshok  <toshok@ximian.com>
4437
4438         * Hwnd.cs: add an internal field for the cached_window_state.
4439
4440         * XplatUIX11.cs: cache the window state, invalidating the cache
4441         (and thus re-querying the X server) only when we see an update to
4442         the _NET_WM_STATE property.
4443
4444 2007-03-15  Chris Toshok  <toshok@ximian.com>
4445
4446         * BindingSource.cs: get a lot of the unit tests working.
4447
4448 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
4449
4450         * Control.cs: Modify UpdateStyles to store distances when bounds >=
4451         0 instead of just bounds > 0.  [Fixes bug #80912]
4452
4453 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
4454
4455         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
4456         and methods.
4457
4458 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
4459         
4460         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
4461         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
4462         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
4463         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
4464
4465 2007-03-15  Chris Toshok  <toshok@ximian.com>
4466
4467         [ Fixes #81101 ]
4468         
4469         * Control.cs: add Ivan's fix for 81101, with a slight modification
4470         - you can set control.Target to null.
4471
4472 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
4473
4474         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
4475         HideDropDown, use Hide instead to prevent an NRE.
4476         [Fixes bug #81147]
4477
4478 2007-03-14  Jackson Harper  <jackson@ximian.com>
4479
4480         * TextBoxBase.cs: Mess with the creation stuff a little. We need
4481         to calculate the document before the handle is created, in some
4482         cases. (Actually just one case).
4483
4484 2007-03-14  Jackson Harper  <jackson@ximian.com>
4485
4486         * TextBoxBase.cs: Need to display the caret after letting the base
4487         wndproc handle the focus methods, because the caret display
4488         methods check the focus state.
4489         - Try to display the caret after updating it's position with SelectWord.
4490         - Don't need to do an immediate update on this recalc, since there
4491         will be an invalidate anyways.
4492
4493 2007-03-14  Jackson Harper  <jackson@ximian.com>
4494
4495         * TreeView.cs: Some workarounds so that we can match event order a
4496         little better.
4497
4498 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
4499
4500         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
4501         #80803. Avoid NullReferenceException when Control does not have
4502         parent. Fixed different blinkstyle issues. Only subscribe to Tick
4503         event a single time. Only draw error icon when control is created and
4504         visible. Fixes failing unit tests.
4505
4506 2007-03-14  Andreia Gaita  <avidigal@novell.com>
4507
4508         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
4509         Selecting events. Fire Leave and Enter events when changing tabs.
4510
4511 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
4512
4513         * TreeView.cs: Add TreeViewNodeSorter.
4514         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
4515
4516 2007-03-14  Chris Toshok  <toshok@ximian.com>
4517
4518         * Form.cs: go ahead and remove the RecreateHandles that jpobst
4519         removed earlier and I had him add back it.  It turns out metacity
4520         *does* in fact handle the MOTIF_WM_HINTS property changing, it
4521         just doesn't redraw the window titlebar until you resize the
4522         window.  This also means we aren't recreating the entire window
4523         hierarchy on X when you change this property.  And it looks better
4524         on windows, too.
4525
4526 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4527
4528         * ListViewItem.cs:
4529         * ListView.cs: Collecting selection information
4530         is now done in SelectedIndexCollection rather than in
4531         SelectedListViewItemCollection. This is done so we can
4532         have the selection information code in one single place
4533         (virtual mode selection information entirely depends on
4534         SelectedIndexCollection).
4535
4536 2007-03-13  Miguel de Icaza  <miguel@novell.com>
4537
4538         * ErrorProvider.cs: Add stubs for ISupportInitialize
4539
4540 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4541
4542         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
4543         in the right order with the right values, from the Checked property, 
4544         just as MS does (instead of triggering them from ListView).
4545
4546         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
4547
4548 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4549
4550         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
4551         the correct handler in OnItemCheck method (ItemCheckEventHandler 
4552         instead of EventHandler). This used to throw an InvalidCastException.
4553
4554 2007-03-13  Jackson Harper  <jackson@ximian.com>
4555
4556         * TextBoxBase.cs: Calculate the document before the handle is
4557         created, so there isn't an extra invalidate called.
4558
4559 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
4560
4561         * Form.cs: Don't set owner in ShowDialog until we are sure
4562         that we aren't going to throw an exception.  [Fixes bug #80773]
4563
4564 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
4565
4566         * TreeView.cs: Make it compile.
4567
4568 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4569
4570         * Control.cs: Another place we don't call SizeFromClientSize.
4571         * Form.cs: Another place we don't call SizeFromClientSize.
4572         [Fixes bug #81125]
4573
4574 2007-03-12  Jackson Harper  <jackson@ximian.com>
4575
4576         * TreeView.cs: Basically emulating some strangness here with
4577         exanding nodes and setting node positions when windows aren't
4578         created.
4579         - Also attempting to walk the node tree less than previously, and
4580         just use visible order calculations for determining offsets.
4581         - oops made scrolling backwards.
4582         * TreeNode.cs: We need to start nodes with a zero visible order,
4583         because the order calcs are based on the first nodes order.
4584
4585 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4586
4587         * Form.cs: Don't exit the program if RecreateHandle is called on
4588         the main form.
4589
4590 2007-03-12  Chris Toshok  <toshok@ximian.com>
4591
4592         * XEventQueue.cs: remove the use of PostQuitState.
4593
4594         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
4595         WM_QUIT message in GetMessage, return false (and if we're in the
4596         nested WaitForHwndMessage, repost the WM_QUIT message).
4597
4598 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4599
4600         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
4601         or the MaximizeBox properties.  [Part of bug #80640]
4602
4603 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
4604
4605         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
4606         no links.
4607
4608 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4609
4610         * ToolStripItem.cs: Fix some tests I broke by checking Visible
4611         instead of visible.
4612
4613 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
4614
4615         * FileDialog.cs: Use text of File name combobox to determine what
4616         files the user selected. Added tokenizer to parse the file names.
4617         Fixes bug #81123.
4618
4619 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
4620
4621         * Control.cs: We can't call SizeFromClientSize in the constructor,
4622         but we still need to do the same work, so make an internal version.
4623         [Fixes bug #80621]
4624
4625 2007-03-12  Jackson Harper  <jackson@ximian.com>
4626
4627         * TreeView.cs:
4628         * TreeNode.cs:
4629         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
4630         IsExpanded.
4631
4632 2007-03-12  Jackson Harper  <jackson@ximian.com>
4633
4634         * TextBoxBase.cs: Now that the handles are being created a little
4635         later, we need to make sure that the document is recalculated when
4636         the handle is created.
4637
4638 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
4639
4640         * Theme.cs: GetLinkFont abstract method added.
4641         
4642         * LinkLabel.cs: 
4643         - Remove CalcTrimRectangle, no longer needed.
4644         - Factor also remove, position issues must be fixed in libgdiplus.
4645         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
4646         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
4647         care about font used to draw links.
4648         - Set TabStop to true when control is "Selectable", control is selectable
4649         when have one or more links. Fixes #80501 (test case is also added).
4650         - Set the LinkArea values after links change, LinkArea values must be
4651         based in first link position and size, a test case was created.
4652         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
4653         the attribute must be true LinkArea.Length > 0. The same was applied to
4654         TabStop.
4655         
4656         * ThemeWin32Classic.cs: 
4657         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
4658         in draw method.
4659         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
4660         color change.
4661         - Draw focus rectangle for every parts focused, including parts that 
4662         is on another line, its because regions returns various rectangles
4663         and not only one. Needed to mimic W32 look.
4664         - Uses Graphics.Clip to delimite region painted, it mean that now 
4665         complete text is passed to DrawString, with this we solve layout
4666         issues without create another text renderer.
4667         - Uses Region.Intersect to fix some flickers problems, now only needed
4668         parts will redrawed.
4669         - This changes fixes #79614 and some other unreported issues, on Linux 
4670         some layout problems still remain, the problem is under 
4671         MeasureCharacterRanges but it is an libgdiplus bug.
4672
4673 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
4674
4675         * TextBox.cs: Set for foreground color.
4676         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
4677         this is already done in Control.
4678
4679 2007-03-10  Jackson Harper  <jackson@ximian.com>
4680
4681         * TextBox.cs: Set the background color, but reset the
4682         backcolor_set flag which is just for the user setting the
4683         background color.
4684
4685 2007-03-09  Chris Toshok  <toshok@ximian.com>
4686
4687         * Control.cs: really remove the call to XplatUI.SetVisible from
4688         CreateHandle(), like I said I did when I merged the branch.
4689
4690         * BindingSource.cs: implement some more of this stuff.
4691
4692 2007-03-09  Jackson Harper  <jackson@ximian.com>
4693
4694         * TextBox.cs: Don't explicitly set our background colors.
4695         * TextControl.cs:
4696         * TextBoxBase.cs: Draw readonly text.
4697         - Need to invalidate when backcolor or readonly are changed.
4698         
4699 2007-03-09  Jackson Harper  <jackson@ximian.com>
4700
4701         * TextBoxBase.cs: Don't set the forecolor until the handle is
4702         created.
4703         - Do not raise OnPaint, and removed some old debug code.
4704
4705 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
4706
4707         * ScrollableControl.cs: Fix mouse wheel scrolling.
4708
4709 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
4710
4711         * Control.cs: Wire up MouseDoubleClick event.
4712
4713 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
4714
4715         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
4716         top or bottom.
4717         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
4718         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
4719         item is added.  This logic was moved to ToolStrip.OnItemAdded.
4720         [Fixes bug #81090]
4721
4722 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4723
4724         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
4725
4726 2007-03-08  Jackson Harper  <jackson@ximian.com>
4727
4728         * TreeView.cs: Show the correct image for selected node (this used
4729         to work, not sure how the code got deleted). Also implemented 2.0 feature
4730         SelectedImageKey.
4731
4732 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4733
4734         * ListView.cs:
4735         * ListViewItem.cs: Cache index in items when retrieving them
4736         in VirtualMode.
4737
4738 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
4739
4740         * ToolStripItem.cs: Don't return the explicit_size if we are using 
4741         AutoSize.  Fixes invalidation issue when user has explicitly set a
4742         size and has AutoSize = true.
4743
4744 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
4745
4746         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
4747
4748 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
4749
4750         * DataGridView.cs: Remove event handler from DataView when a
4751         DataTable is used as DataSource.
4752
4753 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
4754
4755         * Control.cs: Create internal setter for client_size to allow it to be
4756         set without triggering resizing code.
4757         * Form.cs: Calculate client_size in constructor, only change client_size
4758         in FormBorderStyle property if Handle has been created.
4759         [Fixes #80574, #80791]
4760
4761 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
4762
4763         * SystemInformation.cs: Add TerminalServerSession.
4764
4765 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
4766
4767         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
4768         TreeView code.
4769
4770 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
4771
4772         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
4773         Handle before we were supposed to.  Now checks ActivateOnShow property
4774         in Control.
4775         * Control.cs: Add internal ActivateOnShow property.
4776         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
4777         for ActivateOnShow.
4778         * Hwnd.cs Remove no longer needed no_activate field.
4779
4780 2007-03-07  Jackson Harper  <jackson@ximian.com>
4781
4782         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
4783         2.0 properties
4784         * DrawTreeNodeEventHandler.cs: Add
4785         * DrawTreeNodeEventArgs.cs: Correct default value.
4786         
4787 2007-03-07  Chris Toshok  <toshok@ximian.com>
4788
4789         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
4790         to be called before NativeWindow.WndProc.  Put the HwndCreating
4791         magic there to hook up our Hwnd's to handles.
4792
4793 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
4794
4795         * DataGridView.cs: Comment out debug code.
4796
4797 2007-03-07  Chris Toshok  <toshok@ximian.com>
4798
4799         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
4800         to make the rest of the world happy]
4801
4802         * Control.cs (CreateHandle): there's no need to call
4803         XplatUI.SetVisible here, it's effectively done by
4804         XplatUI.CreateWindow on X now, and always was on windows.
4805
4806         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
4807         shortcircuit out of the loop if we have a message loop running on
4808         this thread.
4809
4810         [Changelog from merge]
4811
4812         2007-03-05  Chris Toshok  <toshok@ximian.com>
4813
4814                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
4815                 causes handle creation.
4816
4817         2007-02-28  Chris Toshok  <toshok@ximian.com>
4818
4819                 * ApplicationContext.cs: Add a flag to make sure we only raise the
4820                 ThreadExit event once (ExitThreadCore can be indirectly called
4821                 from a few places.)  I don't like the additional flag, but it
4822                 makes the event ordering/count correct.
4823
4824                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
4825                 without locking the collection.  An enumerator doesn't give us any
4826                 protection from modification anyway.  Lock the thread hash and
4827                 replace the complicated enumerator loop with a foreach.
4828                 (Application.CloseForms): make internal so it can be called from
4829                 ApplicationContext.  This should probably be moved to MWFThread.
4830                 (Application.ExitThread): don't call MWFThread.Current.Exit()
4831                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
4832                 when the runloop exits (in response to WM_QUIT.)
4833                 (Application.RunLoop): add a comment (and check) for
4834                 context.MainForm being null after setting context.MainForm.Visible
4835                 = true.  This is because you're perfectly free to dispose of a
4836                 form in VisibilityChanged.  Chalk this up to another case where we
4837                 need to synchronously generate WM_ACTIVATE from Control.Show.
4838                 Also, add handling for WM_QUIT here so we'll exit the loop.
4839                 
4840                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
4841                 fact that we don't wait if we're only unmapping the whole_window
4842                 makes me a bit nervous, but it doesn't seem to cause any problems
4843                 yet.
4844
4845                 also, add a comment about the stupid, broken and wrong resetting
4846                 of PostQuitState to false in GetMessage().
4847
4848                 In PostQuitMessage, we need to add a WM_QUIT message to the
4849                 thread's queue.  We use the FosterParent to get the right
4850                 handle/hwnd/queue.
4851
4852                 Lastly, in SetVisible, we need to unmap both windows, since the
4853                 waiting only happens when we're unmapping the client window.  So
4854                 now, the *only* time we unmap just the whole_window is in the hack
4855                 for resizing a control to 0,0.
4856                 
4857         2007-02-21  Chris Toshok  <toshok@ximian.com>
4858
4859                 * Application.cs (CloseForms): rewrite this so that we don't
4860                 modify the list while we're traversing it.
4861
4862         2007-02-20  Chris Toshok  <toshok@ximian.com>
4863
4864                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
4865                 of OnHandleCreated.
4866                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
4867                 handle is created.  otherwise we'll create it here.
4868                 (VerticalScrollEvent): same here.
4869
4870                 * Application.cs (CloseForms): call Form.Dispose, don't post
4871                 WM_CLOSE_INTERNAL.
4872
4873                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
4874                 here. Application should Dispose() of the Form's.
4875
4876                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
4877                 WM_DESTROY as well.
4878                 (MapWindow,UnmapWindow): only actually do the waiting for
4879                 SHOWWINDOW if the control we're dealing with is a Form.
4880                 (CreateWindow): if the control isn't a form, SendMessage
4881                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
4882
4883                 * Control.cs (SetVisibleCore): always use is_visible here, not
4884                 value.  If we use value, we can end up re-setting something
4885                 visible if, for instance, you do Control.Hide() in a delegate
4886                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
4887
4888         2007-02-20  Chris Toshok  <toshok@ximian.com>
4889
4890                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
4891                 the message we need.  PeekMessage returning false should not be a
4892                 condition under which we exit the loop.
4893
4894         2007-02-15  Chris Toshok  <toshok@ximian.com>
4895
4896                 * Control.cs (Refresh): only refresh if we've got a handle and are
4897                 visible.
4898                 (CreateAccessibilityInstance): CreateControl() here.
4899                 (UpdateChildrenZOrder): complicate the code loop even more by
4900                 taking into account controls that haven't had their handle
4901                 created, and those that aren't visible.  But on the flip side,
4902                 simplify the code by splitting it into two loops.  one which
4903                 builds up the list of child controls we're interested in, and the
4904                 other that sets the z order of those children.
4905
4906         2007-02-14  Chris Toshok  <toshok@ximian.com>
4907
4908                 * Control.cs: Control.AccessibilityObject causes the control to be
4909                 created, not just the handle.
4910
4911         2007-02-14  Chris Toshok  <toshok@ximian.com>
4912
4913                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
4914                 problem on X where a window might have its handle created (and be
4915                 visible) while the window is unmapped.  calling XConfigureWindow
4916                 on an unmapped window is bad, and generates X errors.
4917
4918         2007-02-13  Chris Toshok  <toshok@ximian.com>
4919
4920                 * Control.cs (CreateHandle): don't loop over our children setting
4921                 their parent here.  do it when in WndProc when we're shown.
4922                 (UpdateChildrenZOrder): make this internal so we can call it from
4923                 ScrollableControl.
4924                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
4925                 creating its handle.  Also, remove the calls to PerformLayout from
4926                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
4927                 OnVisibleChanged only seems to be called directly here for the
4928                 toplevel control.  It's propagated down the window hierarchy by
4929                 calls to child.OnParentVisibleChanged.
4930                 (OnVisibleChanged): don't do layout here - it's done (oddly
4931                 enough, according to a glance at stack traces on ms.net..) in
4932                 ScrollableControl.
4933                 
4934                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
4935                 z order of our children before calling PerformLayout.
4936
4937         2007-02-12  Chris Toshok  <toshok@ximian.com>
4938
4939                 [big change, fixes #80020]
4940                 
4941                 * AccessibleObject.cs: we need to make owner internal again to fix
4942                 some of ControlAccessibleObject.
4943
4944                 * Control.cs: lots of changes here.  add support for WM_CREATE,
4945                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
4946                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
4947                 we create child controls.  leave the MonoTODO's for the
4948                 accessibility calls, but fix the exceptions so the tests pass.
4949
4950                 Add the InvalidOperationExceptions to Invoke methods, and remove a
4951                 couple of InvokeInternal methods we aren't using.
4952                 
4953                 Also, add a couple of CreateHandle calls in places where we know
4954                 the handles are being created but our code doesn't reference
4955                 .Handle.
4956
4957                 Make SetVisibleCore call OnVisibleChange if the handle isn't
4958                 created.  If the handle is created, we rely on XplatUI.SetVisible
4959                 generating the event synchronously.
4960                 
4961                 Lastly, make sure we don't use this.Handle inside CreateHandle,
4962                 because we can call back into client (and that code can dispose of
4963                 the control).
4964
4965                 * XplatUIStructs.cs: misc/cleanup.
4966
4967                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
4968                 although we don't populate the wParam properly.
4969                 (CreateWindow): generate WM_CREATE.
4970                 (MapWindow,UnmapWindow): make these calls synchronous, at great
4971                 performance expense (particularly in the unmap case), to match
4972                 win32 behavior.
4973
4974                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
4975                 to call it.
4976                 (set_MdiParent): don't recreate the handle unless it's been
4977                 created already.
4978                 
4979                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
4980                 it's created.
4981
4982                 * NativeWindow.cs: this is probably the weirdest part of the
4983                 patch.  We need a way to link up the window being created to the
4984                 WM_CREATE message.  Since we can only be creating one window at a
4985                 time on a given thread, we keep track of a per-thread reference so
4986                 we can dispatch it properly.  We also need to keep track of the
4987                 Hwnd currently being created so that the win32 backend doesn't
4988                 have problems.
4989                 
4990                 * XplatUIWin32.cs: a similar change to the one we made in
4991                 NativeWindow.cs.
4992
4993 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
4994
4995         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
4996         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
4997         to draw the menu shortcut string.
4998
4999 2007-03-07  Jackson Harper  <jackson@ximian.com>
5000
5001         * TreeNode.cs: Add the 2.0 collapse method.
5002
5003 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
5004
5005         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
5006
5007 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
5008
5009         * DataGridView.cs: Change DataSource will clear column and row
5010         lists. Call Invalidate() to reflect DataSource change.
5011
5012 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
5013
5014         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
5015         and a new row is added to it.
5016
5017 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
5018
5019         * DataGridView.cs: Add columns when DataSource is en empty list but
5020         is a System.Data.DataView (from a System.Data.DataTable).
5021
5022 2007-03-06  Andreia Gaita  <avidigal@novell.com>
5023
5024         * Label.cs: Implement AutoEllipsis (2.0)
5025
5026 2007-03-06  Jackson Harper  <jackson@ximian.com>
5027
5028         * TreeView.cs: Implement 2.0 TopNode setter property.
5029         - Use a local var instead of the skipped_nodes field for computing
5030         how many nodes to skip.  Otherwise we won't scroll because the
5031         valuechanged handler checks if skipped_nodes is equal to the new
5032         value.
5033         - Implement 2.0 Sort method.
5034         - Add useless 2.0 DoubleBuffer property
5035         - Implement 2.0 LineColors property.  Lets you change the color of
5036         the lines in the tree. Terribly useful for creating non cohesive
5037         desktops.
5038         - Implement 2.0 image key feature.
5039
5040 2007-03-06  Jackson Harper  <jackson@ximian.com>
5041
5042         * TreeView.cs: We can't get the bounds of the nodes before raising
5043         the AfterSelect event, because that event could change the node's
5044         bounds (scrolling, font change, etc).
5045
5046 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5047
5048         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
5049         * Form.cs: Don't recreate handle when creating FormWindowManager, just
5050           update window styles. In CreateParams us VisibleInternal instead of
5051           VIsible to get the actual visible flag set for this form.
5052         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
5053           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
5054           handle the case when the form is already maximized, in which case
5055           it should be restored. Fixes #81043.
5056
5057 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5058
5059         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
5060
5061 2007-03-05  Jackson Harper  <jackson@ximian.com>
5062
5063         * TreeViewHitTestInfo.cs: implement.
5064
5065 2007-03-05  Jackson Harper  <jackson@ximian.com>
5066
5067         * InternalWindowManager.cs: class status fix.
5068
5069 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5070
5071         * InternalWindowManager.cs: All windows that have a parent
5072         are confined to their parent when they're being moved.
5073         Fixes #80822.
5074
5075 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
5076
5077         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
5078         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
5079
5080 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5081
5082         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
5083           buttons invisible before deciding which ones should be visible
5084           (fixes minimize/maximize buttons showing up in toolwindows). Remove
5085           an unused variable.
5086         * InternalWindowManager.cs: Remove warning.
5087
5088 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5089
5090         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
5091         to throw an InvalidOperationException is virtual mode is being used.
5092
5093 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
5094
5095         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
5096         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
5097         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
5098         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
5099         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
5100         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
5101
5102 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5103
5104         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
5105           driver.KeyboardDelay from XplatUI.KeyboardDelay 
5106         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
5107           (patch by Sergey Volk)
5108
5109 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5110
5111         * ToolWindowManager.cs: Added, contains logic for
5112           tool windows.
5113         * CreateParams.cs: Add a few helper methods and an
5114           internal variable to know which control the CreateParams belongs
5115           to.
5116         * Control.cs: Call Form.ChangingParent when the
5117           parent is about to be changed.
5118         * XplatUIX11.cs: DeriveStyles (): Set
5119           caption_height for all windows that have captions and are children.
5120           Update to use ToolWindowManager instead of InternalWindowManager
5121           for ToolWindows.
5122         * XplatUIWin32.cs: Set fake window styles for all
5123           windows that have window managers.
5124         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
5125           now duplicated for mdi windows when they are
5126           maximized, first for the buttons the window itself has, then for
5127           the buttons that appear in the menu bar. Makes things a little
5128           easier). Updated UpdateWindowDecorations, SetWindowState and the
5129           mouse eventhandlers accordingly.
5130         * Form.cs: Add ChangingParent (), contains the
5131           logic of what should happen when the parent changes. In MdiParent
5132           don't set things that ChangingParent () is doing. When handling
5133           WM_CLOSE, we can close the form if there are any other modal forms
5134           and the current form is a descendent of the modal form.
5135         * InternalWindowManager.cs: A lot of refactoring,
5136           the title buttons are now extracted to a separate container class
5137           that takes care of all button code (clicks, tooltips, etc). Moved
5138           Iconic|Maximized|Normal Bounds properties to this class from
5139           MdiWindowManager, so that the window state logic can succeed for
5140           other than mdi wm's. Implemented general window state change logic.
5141           Moved CreateButtons to ThemeWin32Classic, since the theme might
5142           override which buttons are available when as well as the exact
5143           location.
5144         * FormWindowManager.cs: Added, contains logic for
5145           normal forms.
5146         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
5147           which buttons go where (and if they are at all visible). 
5148           Removed special handling of maximized windows, since they aren't special. 
5149           In DrawManagedWindowDecorations don't try to draw the text if it is
5150           empty.
5151         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
5152           use whatever the wm gives us.
5153
5154 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
5155
5156         * ButtonBase.cs: Add 2.0 properties.
5157         * Button.cs: Override Draw for 2.0.
5158         * Control.cs: Add Entered and Selected properties.
5159         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
5160         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
5161         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
5162         buttons.
5163         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
5164
5165 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
5166
5167         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
5168
5169 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
5170
5171         * XplatUIWin32.cs: Register a new class with Windows each time we get
5172         a new ClassStyle.  [Fixes bugs #79432, #80817]
5173         * Controls.cs: Set the correct ClassStyle in CreateParams.
5174         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
5175
5176 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
5177
5178         * ListView.cs: Add fireEvent argument to ReorderColumn since the
5179         ColumnReordered event must not be signaled when modifying DisplayIndex
5180         of a ColumnHeader. Added internal ReorderColumns method which takes
5181         care of drawing, and updating the internal DisplayIndex of the
5182         ColumnHeader. Added AddColumn method which is invoked from
5183         ColumnHeaderCollection when adding or inserting columns, and which
5184         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
5185         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
5186         Recalculated dispay indices after removing a ColumnHeader.
5187         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
5188         match MS. Allows last display index to be returned after ListView
5189         is disposed. Update actual location of ColumnHeader when DisplayIndex
5190         is modified.
5191
5192 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
5193
5194         * LinkLabel.cs: Improve CalcTrimRectangle.
5195         
5196         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
5197
5198 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
5199
5200         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
5201         get rectangle as a result value.
5202
5203 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
5204
5205         * LinkLabel.cs: Theres some diferences between rectangle return from 
5206         MeasureCharacterRanges and the area used for DrawString to fix this 
5207         CalcMeasurementFactor method was created, it calcules the diferences
5208         to be use later to adjust rectangle in draw operations. Fixes #80473.
5209         
5210         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
5211         to adjust draw rectangle.
5212
5213 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
5214
5215         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
5216         text and some other changes to reduce and optimize source code.
5217
5218 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
5219
5220         * RadioButton.cs: Implement 2.0 event.
5221         * RelatedImageListAttribute.cs: Implement new class.
5222
5223 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
5224
5225         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
5226
5227 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
5228
5229         * CheckBox.cs: Implement 2.0 functionality.
5230
5231 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5232
5233         * ListView.cs: Refactor Add and AddRange methods of
5234         ListViewItemCollection, to not update the ListView
5235         everytime an item is added in AddRange. Also move the update
5236         code to a new CollectionChanged method, and call it
5237         from other methods that need it as well (this should also fix some
5238         bugs when Sorting is used).
5239
5240 2007-02-27  Jackson Harper  <jackson@ximian.com>
5241
5242         * TextControl.cs: Try to never let the caret stay in a non-text
5243         tag.
5244         * TextBoxBase.cs: Update the caret.
5245
5246 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
5247
5248         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
5249         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
5250         delete POINT structure, duplicate of one in XplatUIStructs.
5251         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
5252
5253 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
5254
5255         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
5256         edit box since otherwise the Label would immediately be set (even if
5257         the user did not modify the label). In OnKeyDown set Handled to true
5258         if Return or Escape was pressed. In ColumnHeaderCollection unlink
5259         columns that are to be removed. In ListViewItemCollection unlink items
5260         that are to be removed.
5261
5262 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
5263
5264         * TextRenderer.cs: If we set a GDI clip region, we need to clear
5265         it when we are done.  [Fixes bug #80949]
5266
5267 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
5268
5269         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
5270
5271 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5272
5273         * ListView.cs: I forgot to commit the changes for ListView 
5274         in my previous patch.
5275
5276 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
5277
5278         * Clipboard.cs: Partially implement an overload of SetDataObject.
5279         * Form.cs: Implement ShowWithoutActivation.
5280         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
5281
5282 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5283
5284         This is a first set of changes to make the Virtual mode works,
5285         by avoiding the retrieval of ListViewItem instances until
5286         draw time.
5287
5288         * ListView.cs: Store item position in the ListView instead of the
5289         ListViewItem, this way we don't request the Bounds property of
5290         ListViewItem inside the ListView calculations, as well as cache the item
5291         size in item_size field. Store indexes instead of ListViewItem
5292         instances in the matrix used by icon view. Add a ItemMatrixLocation
5293         struct to hold the row and col info of the matrix info.
5294
5295         * ListViewItem.cs: Don't store the location anymore, and only cache
5296         the rectangles for GetBounds. Use the ListView.GetItemLocation
5297         method to retrieve the actual location.
5298
5299 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
5300
5301         * TextRenderer.cs: Add clipping support, thanks to George.
5302         [Fixes bug #80949]
5303
5304 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
5305
5306         * ListViewItem.cs: Cancel label edit when item is removed from 
5307         ListView.
5308         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
5309         event before the edit textbox is displayed.  Added CancelEdit method
5310         which is used end to editing while ignoring the value set by the
5311         user. In EndEdit, set focus to ListView to avoid losing focus to
5312         other controls. In ListViewItemCollection.Clear, cancel editing of
5313         any of the items.  In Remove, cancel editing of item being removed.
5314         Avoid udplicate code by modifing RemoveAt to invoke Remove.
5315
5316 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
5317
5318         * FileDialog.cs: Update FSEntry when move is successful. Fixes
5319         bug #80948.  
5320
5321 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
5322
5323         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
5324         compatible with non X11 systems. Fixes #80901.
5325
5326 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
5327
5328         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
5329         whether the item should be unselected and reselect. We do no want this
5330         when we're starting to edit the label. Do not fire the 
5331         SelectedIndexChanged event from ListView when its already been fired
5332         by modifying ListViewItem.Selected. Fixes bug #80943.
5333
5334 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
5335
5336         * TextRenderer.cs: Previos commit logic was backwards.
5337
5338 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
5339
5340         * TextRenderer.cs: Don't add padding on MeasureText if we were
5341         sent the NoPadding flag.
5342
5343 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
5344
5345         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
5346         after DrawButton. To prevent image overlaps button borders SetClip and 
5347         ResetClip added before and after draw image. Fixes #79129.
5348
5349 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
5350
5351         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
5352         window size, it fix problem when you run under win32 that theres
5353         Size diferent than ClientSize. Also fix controls size and positions
5354         to mimic Win32. Fixes #80837.
5355
5356 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
5357
5358         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
5359         menu area to fix some problems for non X11 systems. Fixes #80613.
5360
5361 2007-02-22  Jackson Harper  <jackson@ximian.com>
5362
5363         * TreeNode.cs: When a node is expanded, set its is_expanded flag
5364         even if it doesn't have any children.
5365
5366 2007-02-22  Jackson Harper  <jackson@ximian.com>
5367
5368         * TreeView.cs: Calculate the top node 'on the fly', this
5369         eliminates issues where you need to click on the tree before
5370         scrolling it to get the top node computed correctly.
5371         * TreeNodeCollection.cs: We don't need to mess with the top node
5372         anymore.
5373
5374 2007-02-22  Jackson Harper  <jackson@ximian.com>
5375
5376         * DataGridViewRow.cs: Fix typo so height can actually be set.
5377         Patch by Peter Grimm.
5378
5379 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
5380
5381         * FileDialog.cs: Fixed support for renaming files and directories.
5382         * ListView.cs: Do not lose focus when edit is canceled. Process
5383         Escape as regular key (to prevent closing of dialogs).
5384
5385 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
5386
5387         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
5388         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
5389
5390 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
5391
5392         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
5393         did not modify label.
5394         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
5395         modified the text. Reset Label when user presses Escape in edit mode.
5396         Move focus to ListView after having cancelled or finished editing the
5397         label.
5398
5399 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
5400
5401         * ComboBox.cs: Removed unnecessary initializations. Marked items field
5402         private. Clear textbox when Text is set to null and SelectedIndex is
5403         already -1.
5404         * FileDialog.cs: Removed unnecessary initializations. Removed 
5405         workarounds for ComboBox bugs that are now fixed. Modified
5406         DefaultExt, InitialDirectory and Title property to change null to
5407         zero-length string in getters. Avoid directly accessing fields.
5408
5409 2007-02-20  Jackson Harper  <jackson@ximian.com>
5410
5411         * TextControl.cs: Remove RecalAlignments call, that was some
5412         debugging leftovers.
5413         - Don't use the line indent when we shouldn't.
5414         * RichTextBox.cs: Add support for paragraph left indents.
5415
5416 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5417
5418         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
5419         Seems like the class status pages doesn't catch params differences.
5420
5421 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
5422
5423         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
5424
5425 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
5426
5427         * ComboBox.cs: Setting Text should have no effect if item text of
5428         selected item exactly matches value. First lookup text using
5429         case-sensitive comparison, and fallback to case-insensitive comparison.
5430         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
5431         allow startIndex to be last index. Changed ArgumentOutOfRangeException
5432         paramname to match MS. Restart from first item if string is not found
5433         after startIndex. Fixed paramname of ArgumentNullException that is
5434         thrown for null value in ObjectCollection.Contains.
5435
5436 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
5437
5438         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
5439
5440 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5441
5442         * ListControl.cs: In SelectedValue use value.Equals to compare for
5443         equality instead of ==, otherwise it will fail for strings.
5444         Fixes #80794.
5445
5446 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5447         
5448         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
5449         since the caret won't show up unless ShowSelection is true. 
5450         Fixes #80795.
5451
5452 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5453
5454         * Application.cs: When disabling all forms but the main form, do not
5455           disable any descendants of the main form (such as mdi children or
5456           other parented forms). Fixes #80822 on Windows.
5457         * Form.cs: If we have a parent, set the WS_CHILD style.
5458         * Control.cs: Update the window styles if the control whose parent has
5459           changed is a form (the WS_CHILD style has to be switched).
5460
5461 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
5462
5463         * XplatUIStructs.cs: MsgUIState structure added.
5464
5465 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
5466
5467         * FileDialog.cs: Removed need for separate fileName field. On 2.0
5468         profile, do not check filename(s) for illegal character if filename(s)
5469         were set non-interactively but always check on 1.0 profile. Fixed NRE
5470          in DefaultExt and only strip off first leading dot. Improve exception
5471         message when invalid Filter is set. Do not ignore InitialDirectory if
5472         it does no exist. Store specified Title, and if empty use default
5473         title (depending on type of dialog). Added an internal DialogTitle 
5474         property for retrieving dialog title. Fixed logic of displayed dir to
5475         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
5476         string as its buggy.
5477         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
5478         FileName is a zero-length string (it can never be null). Override 
5479         DialogTitle property to set default title of dialog box.
5480         * SaveFileDialog.cs: Override DialogTitle property to set default
5481         title of dialog box.
5482
5483 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
5484
5485         * FileDialog.cs: Modify default text of filename and filetype labels
5486         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
5487         after we've updated the SelectedIndex. Fixes part of bug #80887.
5488         * SaveFileDialog.cs: Set text of filetype label.
5489
5490 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5491
5492         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
5493         label field. Needed by latest Jackson's fixes for ListView.
5494
5495 2007-02-16  Andreia Gaita  <avidigal@novell.com>
5496
5497         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
5498         print preview images.
5499
5500 2007-02-16  Jackson Harper  <jackson@ximian.com>
5501
5502         * ListView.cs: Make AfterLabelEdit work correctly.
5503         * FileDialog.cs: After changing the name of the folder, we have to
5504         make sure that it is created, or that we pop up an error because
5505         it already exists.
5506
5507 2007-02-16  Jackson Harper  <jackson@ximian.com>
5508
5509         * X11Dnd.cs: Implement aliases on mime handlers, so things like
5510         System.String are mapped to text.
5511         - Handle dataobjects, getting all the possible formats out of them
5512         - We dont need the drag event args before we give feedback. This
5513         allows feedback cursors to be immediate before selections have
5514         been converted.
5515
5516 2007-02-16  Jackson Harper  <jackson@ximian.com>
5517
5518         * TextBoxBase.cs: Modified the method for inserting images to
5519         taking a line and position instead of tag and position.
5520         * RichTextBox.cs: Handle PngBlip data by inserting the png image
5521         into the RTF file.
5522         * TextControl.cs: Allow images to be inserted as the first tag of
5523         a line.
5524         - Fix some off by one issues when we assume the first tag is a
5525         text tag, not an image tag.
5526
5527 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5528
5529         * ListView.cs: Set focus to ListView when ItemControl gets a
5530         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
5531         Fixes part of #80467.
5532
5533 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5534
5535         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
5536           validate Text input (if null or empty string reset Value to default
5537           value). Fixes #80830.
5538
5539 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5540
5541         * ListView.cs: Set owner as null for columns and items when
5542         Dispose is invoked. Fixes #80607.
5543
5544 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
5545
5546         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
5547         showing DropDowns, don't show a Grip when doing Flow layout.
5548         [This fixes the toolbox in PDN 2.72.]
5549         * ToolStripItem.cs: Add Anchor property and some internal properties to
5550         reduces needed changes to FlowLayout.
5551         * ToolStripOverflow.cs: Remove unused variable.
5552         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
5553         use it in the layout calculations.
5554
5555 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
5556
5557         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
5558         reported in #79640.
5559         
5560         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
5561         size calculation.
5562
5563 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
5564
5565         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
5566         MeasureString format, it can make button very large in some cases, it is
5567         strange but is what win32 do.
5568
5569 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
5570
5571         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
5572         size calculation.
5573
5574         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
5575         rendering, the value is based on MenuAccessKeysUnderlined.
5576
5577 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
5578
5579         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
5580         for most themes.
5581         
5582         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
5583         
5584         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
5585         and use MenuAccessKeysUnderlined instead.
5586
5587 2007-02-13  Andreia Gaita  <avidigal@novell.com>
5588
5589         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
5590         A selected control would not get a Focus call if:
5591                 - the default active control of the container is the same as
5592                   the one that was selected
5593                 - we are switching from one container to another
5594         Under these conditions, the container being selected already has
5595         an active_control, which is the same as the one being activated, 
5596         so set_ActiveControl would always return and not send the Focus
5597         call. Fix to check if the currently active control of the container
5598         is actually focused.
5599
5600 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
5601
5602         * StatusStrip.cs: Implement the spring layout.
5603         * ToolStripControlHost.cs: Make sure the hosted control's visibility
5604         always matches the host.
5605         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
5606         and TextAfterImage.
5607
5608 2007-02-13  Andreia Gaita  <avidigal@novell.com>
5609
5610         * Control.cs: Code reorganization only.
5611           - Reorganize the WndProc cases so that each case has it's own handling method, 
5612           to help with the no-line-numbering stack traces.
5613           - Formatting changes (it's vstudio's fault, really :p)
5614
5615 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5616
5617         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
5618           Thread.CurrentUICulture to match DateTimePicker's (and MS)
5619           behaviour.
5620
5621 2007-02-12  Jackson Harper  <jackson@ximian.com>
5622
5623         * RichTextBox.cs:
5624         * TextBox.cs: By default we have a non multiline document
5625         - use the multiline property instead of the internal variable
5626         * TextBoxBase.cs: Treat multiline and non multiline the same in
5627         most places.
5628         - Use the documents multiline flag instead of tracking it ourself
5629         * TextControl.cs: Attempt at getting multiline to match MS
5630         behavior.  Lines now track an offset, which is either their X or Y
5631         offset depending on whether or not we are in multiline mode.
5632         - Update all the methods to understand that lines have an X value.
5633         - Fix crash in Undo::Duplicate when empty lines are deleted.
5634
5635 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
5636
5637         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
5638         code moved to properties PreferredHeight and PreferredWidth. It solve the
5639         all problems when preferred sizes must be recalculated. Fixes #80801.
5640
5641 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
5642
5643         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
5644         font height when compatible_text_rendering is false. Partially fix #80801.
5645
5646 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
5647
5648         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
5649
5650 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
5651
5652         * Form.cs: Improved exception messages in ShowDialog.
5653
5654 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
5655
5656         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
5657         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
5658         if not set. Fixes bug #80764. Avoid accessing current_settings field
5659         directly.
5660
5661 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
5662
5663         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
5664         false.
5665
5666         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
5667         public in 2.0 and for easy maintenance and dont break compatibility it is 
5668         internal in 1.1.
5669         
5670 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
5671
5672         * ToolStripItem.cs: Implement using images from ImageList.
5673
5674 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5675
5676         * DateTimePicker.cs: Change default date-formatting culture from
5677           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
5678           seems to be the way MS does it.
5679
5680 2007-02-08  Andreia Gaita  <avidigal@novell.com>
5681
5682         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
5683         (the 6 was cut off on the right side)
5684
5685 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
5686
5687         * Form.cs: Tell MenuStrips to close when the form is clicked.
5688         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
5689         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
5690         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
5691         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
5692         support for Overflow, where items that do not fit are automatically
5693         reparented to a drop down menu.
5694         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
5695         Also: fixes bug #80747.
5696
5697 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5698
5699         * ComboBox.cs: Remove warning (unused code).
5700         * ScrollableControl.cs: Remove warning for 1.1 profile.
5701
5702 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5703
5704         * Form.cs: Remove a warning.
5705
5706 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5707
5708         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
5709           'g' specifier, not documented anywhere, but seems to always show up
5710           as a single space (might have something to do with the DateTime 'g'
5711           specifier, which is the era format, but since DateTimePicker can't
5712           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
5713           won't crash if the format has an unmatched quote. Now shows
5714           single-character formats correctly. Fixes #80744.
5715
5716 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
5717
5718         * StatusStrip.cs: Stretch property needs to call base.Stretch,
5719         not this.Stretch to fix stack overflow. [Fixes bug #80760]
5720
5721 2007-02-07  Chris Toshok  <toshok@ximian.com>
5722
5723         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
5724         background color.  it overwrites the background image we've
5725         already painted.  Fixes #80599.
5726
5727 2007-02-07  Chris Toshok  <toshok@ximian.com>
5728
5729         * DataGrid.cs: return immediately from Edit() when there are no
5730         columns.  Fixes #80662.
5731
5732 2007-02-07  Chris Toshok  <toshok@ximian.com>
5733
5734         * MessageBox.cs: fix #80625.  don't always show the Help button in
5735         2.0.  use the displayHelpButton parameter to determine if we
5736         should show it. Also, make the internal show_help field private.
5737
5738 2007-02-07  Chris Toshok  <toshok@ximian.com>
5739
5740         * Control.cs (SetVisibleCore): check in the proposed patch for
5741         80604, and set is_visible before calling CreateControl.
5742
5743 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
5744
5745         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
5746         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
5747         on it.
5748
5749 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
5750
5751         * MenuAPI.cs: hotkey_active internal field added, it is required because
5752         we need to know when hotkeys must be draw, before this change a keystate
5753         Navigating was used but we can have menu in navigating state without
5754         hotkeys. Fixes #80694.
5755         
5756         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
5757
5758 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5759
5760         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
5761           corresponding events and methods to be internal for 1.1 profile and
5762           public for 2.0 profile (required by SizeGrip).
5763         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
5764           implicit control list). Don't set the size nor the location of the
5765           SizeGrip anymore as it's not needed.
5766         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
5767           draw directly on the captured control (fixes #80656). Removed
5768           ShowGrip (it wasn't used anywhere), redraw (always true), added
5769           GetDefaultSize and GetDefaultRectangle to calculate defaults.
5770         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
5771           be called from SizeGrip.
5772
5773 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5774
5775         * Timer.cs: Throw ArgumentException if Interval <= 0.
5776
5777 2007-02-05  Jackson Harper  <jackson@ximian.com>
5778
5779         * TreeView.cs: We need to check scrollbar visibility when window
5780         visibility is updated, because non visible trees don't ever add
5781         scrollbars.
5782         * Cursor.cs: We want the override cursor to be reset to NULL when
5783         we set current cursor to the default cursor.
5784
5785 2007-02-05  Jackson Harper  <jackson@ximian.com>
5786
5787         * TextControl.cs: Don't have crlfs when we are non multiline.
5788         - Consolidate the line position.
5789
5790 2007-02-05  Jackson Harper  <jackson@ximian.com>
5791
5792         * X11Keyboard.cs: BACK+CTRL gets a special char code.
5793
5794 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5795
5796         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
5797           handling LeaveNotify->NotifyUngrab in order to send
5798           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
5799           after calling XUngrabPointer, so we call WindowUngrabbed directly
5800           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
5801         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
5802           MouseCaptureChanged correctly. Also create handles if changing
5803           Capture (matches MS behaviour).
5804
5805 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5806
5807         * SizeGrip.cs: Make the last change 2.0 only.
5808
5809 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5810
5811         * SizeGrip.cs: If resizing and the capture is lost, revert any size
5812           changes to initial size (fixes #80597).
5813
5814 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5815
5816         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
5817
5818 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5819
5820         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
5821           background) and only allow dragging if enabled. This way the
5822           sizegrip can be used to fill the open square that otherwise would
5823           have been shown in the bottom right corner of ScrollableControl
5824           when ScrollableControl is not suppose to support sizing.
5825         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
5826           sizegrip is shown and enabled, and hook up with necessary events.
5827
5828 2007-02-01  Chris Toshok  <toshok@ximian.com>
5829
5830         * DataGridTextBoxColumn.cs: clean up the
5831         GetFormattedString/GetColumnValueAtRow combination of functions.
5832         Also fix UpdateUI, and the initial state of
5833         IsInEditOrNavigateMode.
5834
5835         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
5836         aren't supposed to scroll the textbox here, we're supposed to
5837         scroll the datagrid.
5838
5839 2007-02-01  Chris Toshok  <toshok@ximian.com>
5840
5841         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
5842         setting the position.
5843
5844 2007-02-01  Chris Toshok  <toshok@ximian.com>
5845
5846         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
5847         here, since the most recent focus fixes keep us from generating
5848         the Leave event when our textbox gets focus.
5849         (Edit): we should be passing null for the column style's
5850         instantText parameter.
5851         
5852 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
5853
5854         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
5855         raised.  Fixes menu text/icons not showing up in PDN.
5856
5857 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5858
5859         * Control.cs: Remove code in constructor that makes every
5860         control with WS_CHILD set have initial location -1, -1.
5861
5862 2007-01-31  Jackson Harper  <jackson@ximian.com>
5863
5864         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
5865         XplatUIX11.
5866         * XplatUIX11.cs: Give teh keyboard to teh dnd.
5867
5868 2007-01-31  Jackson Harper  <jackson@ximian.com>
5869
5870         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
5871         - Remove some debug code.
5872
5873 2007-01-31  Jackson Harper  <jackson@ximian.com>
5874
5875         * XplatUIX11.cs: If you set the override cursor during a grab, it
5876         should actually override the grab cursor.  This comes into play
5877         when you are setting custom cursors in a DND feedback method.
5878
5879 2007-01-31  Jackson Harper  <jackson@ximian.com>
5880
5881         * X11Dnd.cs: Add support for handling the QueryContinue and
5882         GiveFeedback events.
5883         - Cancel drag and drop actions when the escape key is clicked.
5884         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
5885         can handle the ESCAPE key.
5886         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
5887         done when dnd events are continued after the button is released.
5888         - Add a new helper method so that dnd can translate key events.
5889
5890 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
5891
5892         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
5893         make it more obvious what is happening.
5894
5895 2007-01-30  Jackson Harper  <jackson@ximian.com>
5896
5897         * XplatUIX11.cs: Don't break when handling button release in drag
5898         and drop operations. We need that BUTTONUP message to get through
5899         so capture is released.
5900         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
5901         this is handled automatically when the mouse is down.
5902
5903 2007-01-30  Jackson Harper  <jackson@ximian.com>
5904
5905         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
5906         is closed, so we need to make sure that we aren't changing the
5907         dialog result when the OK (Open or Save) button has been clicked
5908         and we are closing the window ourselves.  Note we don't need to
5909         worry about the cache being written in this case, because it was
5910         already done in the previous FilOk call.
5911
5912 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5913         
5914         * DateTimePicker.cs: Remove a warning.
5915         * ComboBox.cs: Remove a couple of warnings.
5916
5917 2007-01-29  Chris Toshok  <toshok@ximian.com>
5918
5919         * XplatUIX11.cs: don't crash, and remove the icon if the user has
5920         set one, if SetIcon is passed a null icon.
5921
5922 2007-01-29  Andreia Gaita  <avidigal@novell.com>
5923
5924         * TextBox.cs: Redraw when the password characters changes
5925         * TextControl.cs: Check if textbox has a password char and draw 
5926         a line of password chars instead of the text in the line. LineTag gets 
5927         an extra Draw() method which allows document.Draw to override the text 
5928         that will be drawn. Removes 1024 char limitation on length of passworded 
5929         lines.
5930
5931 2007-01-29  Jackson Harper  <jackson@ximian.com>
5932
5933         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
5934         single chars is not.
5935
5936 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
5937
5938         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
5939         one pixel.  Fix a StackOverflowException caused by an overload wrongly
5940         calling itself.
5941
5942 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
5943
5944         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
5945         also remove ProcessArrowKey and put the code inside ProcessKeys.
5946
5947 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
5948
5949         * PaddingConverter.cs: Added.
5950
5951 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5952         
5953         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
5954         ShowPanels is false (fixes #80600). Only draw up to 127 characters
5955         of text (fixes #80601). For panels clip the text to draw to the
5956         panel (fixes #80603).
5957
5958 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5959
5960         * ComboBox.cs: Fixed implementation of ResetText.
5961
5962 2007-01-25  Jackson Harper  <jackson@ximian.com>
5963
5964         * TextControl.cs: For the last char of a line we need to use the
5965         line size, not that chars width, since it won't actually be
5966         computed since the right side of a char is based on the start of
5967         the left side of the next char, and the next char does not exist.
5968
5969 2007-01-25  Chris Toshok  <toshok@ximian.com>
5970
5971         * Splitter.cs: fix the new unit tests, and reindent some switch
5972         statements.
5973
5974 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5975
5976         * ComboBox.cs: Implemented 2.0 methods and events.
5977         * TextBoxBase.cs: Added OnTextUpdate, so that
5978         ComboBox.ComboTextBox can inform ComboBox of it.
5979
5980 2007-01-25  Jackson Harper  <jackson@ximian.com>
5981
5982         * TextControl.cs: Respect ShowSelection when deciding whether or
5983         not to display the caret, this allows comboboxes to have carets
5984         when the combotextbox does not have focus.
5985
5986 2007-01-25  Jackson Harper  <jackson@ximian.com>
5987
5988         * TextControl.cs: Add a Suspend/Resume for updating, basically the
5989         same as the Suspend/Resume for recalc, except this will do actual
5990         Invalidates.
5991         - New Undo manager, works much like the MS version.
5992         - Implemented Redo
5993         * TextBoxBase.cs: The Cut operation is undoable.
5994
5995 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5996         
5997         * TextBoxBase.cs: Don't antialias text. Makes it look way better
5998         on Windows (no difference on Linux).    
5999
6000 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6001
6002         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
6003         we don't want to activate any windows. Fixes #79433.
6004
6005 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
6006
6007         - ButtonBase.cs: Fix capitalization of parameter: disposing.
6008         [Fixes bug #80609]
6009
6010 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
6011
6012         * FileDialog.cs:
6013         - Move to using System.ComponentModel.EventHandlerList
6014         - Replace Refresh with Invalidate
6015         - Clear the mime filecache on closing
6016         - Some other memory reducing work. After beeing closed FD now uses
6017           only about 300 KB for the fdo mime stuff plus the memory of the
6018           cached icons.
6019         * Mime.cs: Changed coding style and removed unnecessary commented
6020         code. Some more memory memory reducing work.
6021
6022 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6023
6024         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
6025         a few other missing 2.0 properties.
6026         * Theme.cs: Added DrawFlatStyleComboBox.
6027         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
6028
6029 2007-01-24  Chris Toshok  <toshok@ximian.com>
6030
6031         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
6032         wake_waiting flag, not just when there's data to be read.  if we
6033         don't, then future wakeup's won't reach us and we'll be doomed to
6034         wait for the entire 1 second timeout forever (unless there are X
6035         events to be had).
6036
6037 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
6038
6039         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
6040         until you pass Items.Count, not Items.Count - 1 like 1.1.
6041
6042 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
6043
6044         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
6045
6046 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
6047
6048         * ToolStripContainer.cs: The recent Dock fix exposed that I was
6049         adding the panels in the wrong order.
6050
6051 2007-01-24  Jackson Harper  <jackson@ximian.com>
6052
6053         * TextBoxBase.cs: When we move the caret we also need to move the
6054         selection, this fixes some random crashing after doing select
6055         text, unselect, delete a char, paste.
6056
6057 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6058
6059         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
6060
6061 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
6062
6063         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
6064         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
6065         * ToolBar.cs: Force redraw in BackgroundImageChanged.
6066
6067 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
6068
6069         * ToolBar.cs:
6070         - Implement support for vertical toolbars. Fixes #80539;
6071         - Call LayoutToolBar when resize, it fix some other problems in layout.
6072         - Rename requested_height to requested_size, as we can have width on it
6073         when toolbar is vertical.
6074         - Create a private property "Vertical" that uses Dock to verify when 
6075         toolbar is vertical or not.
6076         - Set ControlStyles when change Dock property.
6077         - Refactory in LayoutToolBar to have better variables names and to support
6078         vertical toolbars.
6079         - Fixes default value for ButtonSize when button count is equal zero, size
6080         must be (39, 36) test case writed.
6081
6082 2007-01-23  Chris Toshok  <toshok@ximian.com>
6083
6084         * Control.cs: fix the checks so that they work correctly for mdi
6085         parents/children.
6086
6087 2007-01-23  Chris Toshok  <toshok@ximian.com>
6088
6089         * Control.cs: ControlCollection seems to have super-secret
6090         abstraction breaking knowledge of Mdi containers.  allow MdiClient
6091         to add toplevel controls.
6092
6093 2007-01-23  Chris Toshok  <toshok@ximian.com>
6094
6095         * Control.cs: throw an ArgumentException if a toplevel control is
6096         added to our control collection from ControlCollection.Add, as
6097         well as from ControlCollection.IList.Add.  This fixes the
6098         ControlSetTopLevelTest.TestTopLevelAdd unit test.
6099
6100         Also, in ControlCollection.IList.Add, don't through an
6101         ArgumentNullException, throw an ArgumentException, when value ==
6102         null.  This matches MS.
6103
6104 2007-01-23  Chris Toshok  <toshok@ximian.com>
6105
6106         * BindingSource.cs: initial, incomplete, implementation of
6107         BindingSource.
6108
6109 2007-01-23  Jackson Harper  <jackson@ximian.com>
6110
6111         * TextControl.cs:
6112         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
6113         that I can fix a broken unit test (TextBoxTest::ClearUndo)
6114         
6115 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
6116
6117         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
6118
6119 2007-01-23  Andreia Gaita  <avidigal@novell.com>
6120
6121         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
6122         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
6123         IndexOfKey() for 2.0
6124
6125 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6126
6127         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
6128         to prevent it from changing z-order.
6129         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
6130         leave UI updates in MdiWindowManager.
6131         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
6132         1 sized (NC handling goes weird on Linux otherwise).
6133         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
6134         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
6135         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
6136         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
6137         and SetWindowState(s) to allow for changing the size of an activated child
6138         before activating it (reduces a lot of flicker).
6139
6140 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
6141
6142         * Form.cs: Changing FormBorderStyle has different semantics based
6143         on whether the Form is visible or not.  If not visible, don't change
6144         the Size.  But InvalidateNC needs to be called to force the window
6145         to pick up the changes and redraw itself.  [Fixes bug #80574]
6146
6147 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
6148
6149         [Moma work]
6150         * ContainerControl.cs: ProcessCmdKey.
6151         * ErrorProvider.cs: new constructor.
6152         * Form.cs: fix AutoValidateEvent compiler warning.
6153         * Label.cs: fix OnAutoSizeChanged compiler warning.
6154         * MenuStrip.cs: fix CanOverflow compiler warning.
6155         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
6156         * TextBox.cs: Dispose.
6157         * ToolStrip.cs: CanOverflow, re-enable double buffering.
6158         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
6159         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
6160         * ToolStripItem.cs: Overflow, RightToLeft properties.
6161
6162 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6163
6164         * Form.cs: Move the layout of the main form to MdiWindowManager.
6165         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
6166         do a layout of the main window to update MdiClient's client area to
6167         the right area. Fixes #80533. Remove the calculation of nc size, 
6168         it was just wrong and the correct one is the same as for 
6169         InternalWindowManager. 
6170
6171 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
6172
6173         * Control.cs: Setting Anchor or Dock needs to reset the other
6174         to its default.  [Fixes bug #80556]
6175
6176 2007-01-20  Chris Toshok  <toshok@ximian.com>
6177
6178         * CheckedListBox.cs: class status changes.
6179
6180         * ScrollableControl.cs: same.
6181
6182         * RichTextBox.cs: same.
6183
6184         * ContainerControl.cs: same.
6185
6186         * ListView.cs: same.
6187
6188         * NotifyIcon.cs: same.
6189
6190         * MenuStrip.cs: same.
6191
6192         * RadioButton.cs: same.
6193
6194         * CheckBox.cs: same.
6195
6196         * PrintPreviewDialog.cs: same.
6197
6198         * Form.cs: same.
6199
6200 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
6201
6202         * TreeNode.cs: Apply Alan's patch for Name property.
6203
6204 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6205         
6206         * Form.cs: Implemented SizeGripStyle.
6207         * SizeGrip.cs: Check for minimum and maximum size for the
6208         control being resized and only resize if size has actually
6209         changed.
6210
6211 2007-01-19  Chris Toshok  <toshok@ximian.com>
6212
6213         * DataGridColumnStyle.cs: stop setting _readonly in the
6214         PropertyDescriptor setter.  fixes a unit test failure.
6215
6216         also, rename ParentReadOnly to TableStyleReadOnly, and have it
6217         just consult our table style (if we have one).  We don't need to
6218         consult the datagrid readonly attribute because that's passed in
6219         as the _ro arg to Edit.  this simplifies things a little.
6220         
6221         * DataGrid.cs: use CurrentColumn instead of
6222         current_cell.ColumnNumber just to simplify some of the code.
6223
6224         switch the order of some things in the CurrentCell setter to keep
6225         the previous cell from getting a textbox again -
6226         EnsureCellVisibility causes scrolling to happen, which calls Edit.
6227         So we need to set the new cell before calling it.
6228         
6229         call Edit in OnEnter, as does Microsoft.
6230         
6231         also, make sure the current table style isn't the one we create
6232         initially when checking to see if it's different than the one
6233         we're setting it to in BindColumns (this fixes #80421).
6234
6235         * GridTableStylesCollection.cs: table styles can have "" for a
6236         mapping name.  part of the fix for #80421.
6237
6238         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
6239         Edit significantly.
6240
6241 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
6242
6243         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
6244         and less GDI object leaky-er.
6245
6246 2007-01-18  Andreia Gaita  <avidigal@novell.com>
6247
6248         * LinkLabel.cs: Add opaque control style
6249
6250 2007-01-18  Jackson Harper  <jackson@ximian.com>
6251
6252         * TextControl.cs: Calculate width properly.
6253         - Don't store the tag's X offset, this can be figured out very
6254         easily.
6255         - When getting the caret tag make sure to get the last empty tag.
6256
6257 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
6258
6259         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
6260         [Fixes bug #79959]
6261
6262         * Control.cs: Color.Empty shouldn't count for previous transparent
6263         redraw changes.
6264
6265 2007-01-18  Jackson Harper  <jackson@ximian.com>
6266
6267         * TextBox.cs:
6268         * RichTextBox.cs:
6269         * TextControl.cs: Starting to merge in some pieces of my older
6270         undo work.  Basically just some slight cleanup of the undo API.
6271
6272 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6273
6274         * TrackBar.cs: Fix signature of RightToLeftLayout.
6275         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
6276         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
6277         * Application.cs: Implemented UseWaitCursor.
6278
6279 2007-01-18  Jackson Harper  <jackson@ximian.com>
6280
6281         * TextControl.cs: We can't skip tags if any part of the tag is
6282         visible.
6283
6284 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
6285
6286         * ContainerControl.cs: Override OnLayout.
6287
6288 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
6289
6290         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
6291
6292         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
6293         everything else.
6294
6295 2007-01-18  Chris Toshok  <toshok@ximian.com>
6296
6297         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
6298         (leftover from the container_selected days, I'd wager).  fixes bug
6299         #80546.
6300
6301 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
6302
6303         * Control.cs: Apply patch from George to fix the new testcase on
6304         bug #80451.  We can't just check for Color.Transparent, we need 
6305         to check if the back color's alpha channel is < 255.
6306
6307 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
6308
6309         * Form.cs: Move setting show_icon = true to before the constructor
6310         so that the base constructor has that information when it calculates
6311         the form's size.  Was causing forms to be (6, 6) bigger than they
6312         were supposed to be.  Thanks for catching this Rolf!
6313
6314 2007-01-18  Jackson Harper  <jackson@ximian.com>
6315
6316         * TextControl.cs: When replacing a selection we need to invalidate
6317         from the initial selection start, because selection start is moved
6318         to the end of the replacement.
6319
6320 2007-01-18  Andreia Gaita  <avidigal@novell.com>
6321
6322         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
6323
6324 2007-01-18  Chris Toshok  <toshok@ximian.com>
6325
6326         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
6327         I just added.
6328
6329 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
6330
6331         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
6332         layout methods and properties from ToolBarButton must be available
6333         into ToolBarButtonInfo.
6334
6335 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
6336
6337         * Control.cs: If the control has a transparent background, we
6338         need to refresh it when it moves and when it's parent's background
6339         image changes.  [Fixes bug #80451]
6340
6341 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
6342
6343         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
6344
6345 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
6346
6347         * XplatUIWin32.cs: Implement proper double buffering for Windows.
6348         [Fixes bug #80447, and probably speeds up things as well]
6349
6350 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6351
6352         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
6353         * XplatUIWin32.cs: We need to recalculate NC size after changing 
6354         window style to toolwindow (otherwise the client rectangle will be
6355         3 pixels to small for some reason).
6356         * MdiWindowManager.cs: Revert NC size calculations to match how
6357         they are calculated only based on window styles (to match
6358         Win32AdjustWindowRectEx, since otherwise when setting size or 
6359         location, Control will call Win32AdjustWindowRectEx to update client 
6360         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
6361         calculate a different value of client size causing another paint 
6362         (and flickering))
6363         * InternalWindowManager.cs: When moving or resizing a window only
6364         update size or location if they actually changed.
6365         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
6366         (seems to match Windows behaviour better). Cleaned up 
6367         ManagedWindowDecorations to draw what's needed and nothing else
6368         (was drawing borders and lines where they shouldn't be)
6369         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
6370         (style = 0xFFFF) and takes into account caption height when 
6371         calculating window rectangle.   
6372
6373 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
6374
6375         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
6376         can be added to toolbar multiple times, we need to maintain a list of 
6377         button information for each positions.
6378
6379 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
6380
6381         * ToolBar.cs: Some small stetic changes.
6382
6383 2007-01-16  Jackson Harper  <jackson@ximian.com>
6384
6385         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
6386         that allow us to have nested recalc = false blocks.
6387         - Add paste support for images in the RichTextBox
6388         * RichTextBox.cs: flush the text after the color is changed, so
6389         the change takes effect.
6390         - Use SuspendRecalc
6391         - Some extra debugging info
6392         * TextControl.cs: Tags no longer track their length, it is just
6393         computed from the next tags length, this makes things a little
6394         simpler and reduces places that we have to track length changes.
6395         - Refactored the linetag class a little so we could make it
6396         a base class for different kinds of tags
6397         - Created a image tag, a tag that can have a single image inserted
6398         into it
6399         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
6400         that we can call suspend multiple times.
6401         - Add some debugging methods
6402
6403 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6404
6405         * MdiClient.cs: Add ActivatePreviousChild for 
6406         mdi child window navigation.
6407         * Form.cs: Use MdiClient.ActivateNextChild/
6408         ActivatePreviousChild instead of Form.SelectNextControl
6409         to select the next/previous child since 
6410         SelectNextControl doesn't do it in the same order
6411         as mdi children should do it.
6412
6413 2007-01-16  Chris Toshok  <toshok@ximian.com>
6414
6415         * Control.cs: remove container_selected field.
6416
6417 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6418
6419         * MdiClient.cs: Update main form's ActiveChild when
6420         updating keyboard focus for the mdi child.
6421
6422 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
6423
6424         * Control.cs: PreferredSize fix.
6425
6426         * Form.cs: Add several 2.0 events, properties, and methods.
6427
6428 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
6429
6430         * Form.cs: Provide meaningful message when MdiParent is assigned a
6431         Form that is not an MdiContainer.
6432
6433 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6434
6435         * MdiClient.cs: Update main form's ActiveChild when
6436         activating a mdi child.
6437
6438 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6439
6440         * MdiWindowManager.cs: Fix NRE when merging menus and main form
6441         doesn't have a menu.
6442
6443         * Form.cs: Request NCRecalc after creating a mdi child window.
6444         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
6445         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
6446         
6447         * MdiClient.cs: Add new method SendFocusToActiveChild that either
6448         sends keyboard focus to the active child, or to the MdiClient
6449         if there are no child forms.
6450         
6451 2007-01-15  Chris Toshok  <toshok@ximian.com>
6452
6453         * ListView.cs: drop the *Internal overrides, just do our work in
6454         ItemControl's WndProc instead.
6455
6456         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
6457         of the various controls, and forward the events properly (in the
6458         same manner as MS) from the textbox to the UpDown.  Also the
6459         ActiveControl of the UpDownBase gets set properly now.  Finally,
6460         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
6461
6462         * NumericUpDown.cs: set Text in the ctor.
6463
6464         * DomainUpDown.cs: call UpdateEditText in the ctor.
6465         
6466         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
6467         so even a Selectable = false textbox can be focused if you click
6468         in it.  Go figure.
6469
6470         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
6471         just add their handling in their respective WndProc's.  Also add
6472         an explicit FocusInternal method that doesn't consult CanFocus
6473         before calling Select(this).
6474
6475         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
6476         do our work in WndProc instead.
6477
6478         * TabControl.cs: same.
6479
6480         * ComboBox.cs: same.
6481
6482 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
6483
6484         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
6485         Fixes #80006.
6486
6487 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6488
6489         * ListViewItem.cs:
6490         * ThemeWin32Classic.cs: Don't draw the item text outside
6491         item bounds in Details view, as well as use trimming.
6492         Fixes bug #80376.
6493
6494 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
6495
6496         * Form.cs: Implement Form.ShowIcon.
6497         
6498         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
6499         null, which when combined with the DlgModalFrame window style removes
6500         the icon from the title bar.
6501
6502 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
6503
6504         * Control.cs: Call OnMouseClick after OnClick. (2.0)
6505
6506 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
6507
6508         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
6509         menu when mdi child windows theres a menu, uses insert to get icon
6510         at first position. Partially fix #80006.
6511
6512 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
6513
6514         * Clipboard.cs: Implement 2.0 methods.
6515
6516 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
6517
6518         * Menu.cs: Implement Insert method of MenuItemCollection class
6519         to fix MenuMerge.
6520
6521 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6522
6523         * ListView.cs: Implement 2.0 FindItemWithText method.
6524
6525 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
6526
6527         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
6528         to calculate menu bar size. Fixes #80290.
6529
6530 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
6531
6532         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
6533
6534 2007-01-11  Chris Toshok  <toshok@ximian.com>
6535
6536         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
6537         initial form.
6538
6539 2007-01-11  Chris Toshok  <toshok@ximian.com>
6540
6541         * LinkLabel.cs: make sure to call base.Select in our Select method
6542         if it turns out we're going to be selected (i.e. if we have a link
6543         that is going to receive focus).  That way our container's
6544         ActiveControl is updated properly.
6545
6546 2007-01-11  Chris Toshok  <toshok@ximian.com>
6547
6548         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
6549         they have 1 or more links.  this fixes the crash gert reported.
6550
6551 2007-01-11  Andreia Gaita  <avidigal@novell.com>
6552
6553         * ContainerControl.cs: Remove ContainerSelected flag, not needed
6554         anymore.
6555
6556         * Control.cs (Controls.Add): Check if control to be added to the collection
6557         is a top level control, and throw an ArgumentException if it is.
6558         Remove ContainerSelectedFlag, not needed anymore.
6559
6560         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
6561         top most control doesn't activate the form. This fixes a problem in the
6562         MessageBox, where the default button wouldn't get focus because the form
6563         was activated before being Loaded - when the Owner is set, SetTopMost is
6564         called, and it would activate it.
6565
6566 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
6567
6568         * Button.cs: When clicked and setting the parent form's DialogResult,
6569         use FindForm instead of Parent, since parent could be a container
6570         control and not the Form.  Fixes bug #80495.
6571
6572 2007-01-10  Chris Toshok  <toshok@ximian.com>
6573
6574         * Form.cs: move the call to SendControlFocus into the same
6575         is_loaded check.
6576
6577 2007-01-10  Chris Toshok  <toshok@ximian.com>
6578
6579         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
6580         It breaks in the face of the new ActiveControl stuff, and should
6581         be unnecessary.
6582
6583         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
6584         activecontrol's focus if it's not already set, after we set
6585         ActiveControl, but before we call OnActivated.  Re-fixes #79667
6586         after the previous focus/active control fixes regressed it.
6587
6588         * Control.cs: reindent some code.
6589         
6590 2007-01-10  Chris Toshok  <toshok@ximian.com>
6591
6592         * Splitter.cs: clearing some outstanding changes from my tree.
6593         Replace all accesses (not writes) to the internal dock_style field
6594         with the Dock property.
6595
6596 2007-01-10  Chris Toshok  <toshok@ximian.com>
6597
6598         * Control.cs: make FireEnter, FireLeave, FireValidating, and
6599         FireValidated virtual.
6600
6601         * Form.cs: override and don't chain up calls to FireEnter and
6602         FireLeave.
6603
6604 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6605
6606         * ListView.cs: Add more text padding space when using
6607         auto resize for columns (the previous value didn't work fine).
6608
6609         * ThemeWin32Classic.cs: Update text position inside columns,
6610         to match the appeareance of .Net.
6611
6612         * ColumnHeader.cs: When using auto resize, only the Width should
6613         depend on the sub items, not the Height. Also, set width after
6614         auto resizing (the value of Width should never remain as -1 or -2).
6615
6616 2007-01-10  Chris Toshok  <toshok@ximian.com>
6617
6618         * Application.cs: fix compilation errors when debug is enabled.
6619
6620 2007-01-10  Chris Toshok  <toshok@ximian.com>
6621
6622         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
6623         add some nice ascii art pictures and explanation of the process).
6624         (GetMostDeeplyNestedActiveControl): new utility function we need
6625         because our ActiveControl can refer to a child container with its
6626         own ActiveControl.
6627
6628         * Form.cs (OnActivated): remove the call to SelectActiveControl
6629         from here, since you can override this method and not chain up,
6630         and winforms still sets the active control.
6631         (OnCreateControl): also remove the unnecessary SelectActiveControl
6632         call from here.
6633         (WndProc): it's actually called from the WM_ACTIVATE block, just
6634         before calling OnActivated.
6635
6636         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
6637         inside the else.  the ActiveControl setter will end up setting
6638         focus on @control.  This keeps us from setting it again (and
6639         generating an extra LostFocus/GotFocus pair).
6640         (Select (bool, bool)): reindent.
6641
6642 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
6643
6644         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
6645         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
6646         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
6647         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
6648         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
6649         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
6650         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
6651         ToolStripTextBox.cs: Another wave of corcompare work.
6652
6653 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6654
6655         * ColumnHeader.cs: Implement 2.0 AutoResize method using
6656         the Width property.
6657
6658         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
6659         methods by callling Column.AutoResize method on columns.
6660
6661 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
6662
6663         * Control.cs: Provide proper implementations of PreferredSize
6664         and GetPreferredSize (2.0).
6665
6666 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
6667
6668         * Form.cs: Remove one character (!) to make my previous OnClosing
6669         stuff work for modal windows like MessageBox.
6670
6671 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6672
6673         * ListView.cs:
6674         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
6675         ListView.Columns to get the last displayed column. Fixes #80452.
6676
6677 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
6678
6679         * Label.cs, LinkLabel.cs: Source code identation fixes.
6680
6681 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
6682
6683         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
6684         we dont need to invalidate only borders because when we invalidate four
6685         border lines the invalidate's generates a complete redraw of button, 
6686         because it now invalidate a complete rect some other redraws operations
6687         are fixed. Fixes #80196.
6688         
6689         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
6690         Remove ToolBarInvalidateEntireButton as it is not used.
6691
6692 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
6693         
6694         * Form.cs: Make sure that both OnClosing and OnFormClosing are
6695         called for 2.0 profile.
6696         * CloseReason.cs: Make class internal for 1.1.
6697
6698 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
6699
6700         * ToolStripManager.cs: Implement FindToolStrip functionality.
6701         * ToolStrip.cs: Register and unregister with ToolStripManager.
6702
6703 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
6704
6705         * Control.cs: This was messy.  2.0 moves much of ControlCollection
6706         to ArrangedElementCollection.  Implemented this with as few #if's as 
6707         possible (which is still too many).
6708
6709 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
6710
6711         * Control.cs: Implement SizeFromClientSize() [2.0].
6712
6713 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
6714
6715         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
6716         use Theme.BorderSize to calculate area instead of static value 1, 
6717         by the way use new BorderStaticSize instead     Border3DSize when 
6718         border_static is true. Fixes #79537.
6719         
6720         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
6721         
6722         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
6723         it is not needed.
6724
6725 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
6726
6727         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
6728
6729 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
6730
6731         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
6732         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
6733         
6734         * Hwnd.cs: 
6735         - border_static field added, it will used to define when a control 
6736         theres 3D border but it must be static (thin).
6737         - In GetWindowRectangle use Theme.BorderSize to calculate area 
6738         instead of static value 1, by the way use new BorderStaticSize instead
6739         Border3DSize when border_static is true.
6740
6741         * XplatUIX11.cs, XplatUIOSX.cs: 
6742         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
6743         
6744         * Theme.cs: BorderStaticSize field added.
6745
6746 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
6747
6748         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
6749
6750 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
6751
6752         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
6753         mimic same behavior than win32 that set border only in CreateParams,
6754         it fix problems under CreateParams overrides. Fix #79442 and partial
6755         fix #79537.
6756         
6757         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
6758         of thi control you must call recreate handle. 
6759         
6760         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
6761         need to do anything as RecreateHangle will take care about borders.
6762
6763 2007-01-05  Mike Kestner  <mkestner@novell.com>
6764
6765         * ListView.cs: hack to eliminate Lost/Got focus notifications on
6766         cycles between the ItemControl and parent.  Fixes #80388.
6767
6768 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
6769
6770         * Control.cs: Lazy init layout engine. Do not directly use 
6771         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
6772
6773 2007-01-05  Chris Toshok  <toshok@ximian.com>
6774
6775         * DataGrid.cs: don't forceably rebind columns in SetDataSource
6776         unless our list manager has changed (i.e. unless we have reason to
6777         believe our columns have changed).  Fixes #80422.
6778         
6779         also, disable the call do BindColumns in
6780         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
6781         1.1 the event isn't raised in response to a column addition on a
6782         table.)
6783
6784 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
6785
6786         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
6787         that inheritors can not call it if they choose.  Fixes bug #80456.
6788
6789 2007-01-05  Andreia Gaita  <avidigal@novell.com>
6790
6791         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
6792         doesn't blow up with a null exception on marshalling.
6793         
6794 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
6795
6796         * Control.cs: Implement several 2.0 protected properties and methods.
6797         Ensure that all necessary events are being called when properties
6798         are set.
6799
6800 2007-01-05  Mike Kestner  <mkestner@novell.com>
6801
6802         * ListView.cs: implement PgUp/PgDn for Details view.  Also
6803         fixes First/LastVisibleIndex to use the item_control.ClientRect 
6804         instead of the parent control.  Fixes #80378.
6805
6806 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
6807
6808         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
6809           determine whether to use yard-pound or not (bug #78399).
6810
6811 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
6812
6813         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
6814         problems. So it is time to bring back the old popupbutton colors.
6815
6816 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6817
6818         * ColumnHeader.cs:
6819         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
6820         property by using the internal information of the
6821         columns order in ListView.
6822
6823 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
6824
6825         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
6826         Add 2.0 Tag properties.
6827
6828         * LinkArea.cs: Add 2.0 ToString method.
6829
6830 2007-01-03  Chris Toshok  <toshok@ximian.com>
6831
6832         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
6833         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
6834         when we're editing, which fixes #80047.
6835
6836 2007-01-03  Chris Toshok  <toshok@ximian.com>
6837
6838         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
6839         #80404.
6840
6841 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
6842
6843         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
6844         property and implementation.
6845
6846         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
6847         for MdiWindowListItem property.
6848
6849         * ToolStripDropDown.cs: Don't consider hidden menu items while
6850         laying out the menu.
6851
6852 2007-01-03  Andreia Gaita  <avidigal@novell.com>
6853
6854         * SendKeys.cs: window handle is not needed in win32, so just
6855         get the active window for X after parsing keys and don't use
6856         it when building the message; it is passed by parameter to the 
6857         Xplat method and used there to build the message instead. Also,
6858         wait for events to be processed on SendWait, as opposed to Send,
6859         which doesn't wait :) Playing with threads and Send() completely 
6860         hangs on ms.net, only SendWait() works.
6861         
6862         XplatUIX11.cs
6863         X11Display.cs: Check for valid window handle.
6864
6865 2007-01-03  Jackson Harper  <jackson@ximian.com>
6866
6867         * TextControl.cs: Need to prevent wrap calculations when replacing
6868         text (this was there before i removed it accidently).
6869         - Don't update the cursor during the positioning, just set it to
6870         selection_start at the end of the operaion.
6871
6872 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6873
6874         * Control.cs:
6875         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
6876         
6877 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6878
6879         * MonthCalendar.cs: Added Click and DoubleClick events again,
6880         but this time they only hide Control's Click and DoubleClick.
6881         
6882 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
6883
6884         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
6885         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
6886
6887 2007-01-02  Jackson Harper  <jackson@ximian.com>
6888
6889         * TextBoxBase.cs: We move the caret with the split now, so we
6890         don't need to explicitly move the caret after splitting.  This
6891         fixes the caret bumping down an extra line on Enter.
6892
6893 2007-01-02  Miguel de Icaza  <miguel@novell.com>
6894
6895         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
6896         2.72). 
6897
6898         * ScrollableControl.cs: Add Scroll event.
6899
6900 2007-01-02  Mike Kestner  <mkestner@novell.com>
6901
6902         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
6903         to fix all hdr height padding codepaths.  Fixes #80207.
6904
6905 2007-01-02  Chris Toshok  <toshok@ximian.com>
6906
6907         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
6908         setting it to the Control defaults anyway, and it being after the
6909         Dock set was screwing up layout.
6910         (set_Dock): don't short circuit out of setting base.Dock.  Also,
6911         no need to call UpdateStatusBar here, as it'll be re-layed out if
6912         it needs to be.
6913
6914 2007-01-02  Mike Kestner  <mkestner@novell.com>
6915
6916         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
6917         to header height for width == -1. Fixes the rest of #80207.
6918
6919 2007-01-02  Mike Kestner  <mkestner@novell.com>
6920
6921         * ListView.cs: rework the mouse event forwarding everaldo added
6922         to translate the coordinates to the parent control not
6923         raise the parent events until after we've done our work. Hover
6924         needs more work, in the case where HoverSelection is on, because
6925         the item control receives more than one MouseHover per Enter
6926         event, so we need to ensure only the "first" hover gets forwarded.
6927         Opening a minor bug for that.
6928
6929 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
6930
6931         * CheckedListBox.cs: Fixed SelectionMode to match MS.
6932         * ListControl.cs: Implemented AllowSelection property. Removed extra
6933         tabs.
6934         * ListBox.cs: Implemented AllowSelection property.
6935
6936 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
6937
6938         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
6939         SelectedItem, it prevent for errors when you must disable item
6940         before perform click. Fixes #80409.
6941
6942 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
6943
6944         * MenuAPI.cs: Prevent second level and beyond submenus to close
6945         until first level when move out side of popup.
6946         
6947 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
6948
6949         * MenuAPI.cs:
6950         - Down submenu positin in three pixels.
6951         - Closes sub menu when mouse leaves from menu. Fixes #80402.
6952
6953 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
6954
6955         * ThemeWin32Classic.cs:
6956         - Fix popup menu size adding one pixel on the top.
6957         - Down menu item border from two to one to mimic Win32.
6958         - Some source identation fixes. 
6959
6960 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
6961
6962         * ThemeWin32Classic.cs: Use float numbers to calculate size and
6963         position of menu arrows, it fix wrong arrow size.
6964
6965 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
6966
6967         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
6968         instead of line, it simplify draw operation and fix it using 3D
6969         borders to mimic Win32.
6970
6971 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
6972
6973         * StatusStrip.cs: Add implementation of the sizing grip.
6974
6975         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
6976         StatusStrip rendering.
6977
6978 2006-12-31  Chris Toshok  <toshok@ximian.com>
6979
6980         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
6981         override the layout style (anchor/dock) of the control.  assign to
6982         Dock instead.  Fixes bug #80416.
6983
6984         * ToolStrip.cs: same.
6985
6986 2006-12-31  Andreia Gaita  <avidigal@novell.com>
6987
6988         * ContainerControl.cs: Use ContainerSelected flag to check if 
6989         a Container is directly selected, or if Select is called on a 
6990         non-container. If a container is directly selected, focus events 
6991         should not be raised.
6992         Apply #80411 patch to throw exception on set_ActiveControl if 
6993         control is the same as the current one.
6994         
6995         * Control.cs: Use ContainerSelected flag (see above).
6996         Add invalidation check to raise event but not invalidate if 
6997         dimensions are 0.       
6998         Apply #80411 patch.
6999         
7000
7001 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
7002
7003         * MenuAPI.cs: After click, dont close popup menu when menu is
7004         ContextMenu. Fixes #80399.
7005
7006 2006-12-30  Chris Toshok  <toshok@ximian.com>
7007
7008         * ContainerControl.cs: make sure we throw the exception if the
7009         container control doesn't contain the control we're setting
7010         ActiveControl to.
7011
7012 2006-12-30  Chris Toshok  <toshok@ximian.com>
7013
7014         * Control.cs (SetTopLevel): fix the exception raised by
7015         SetTopLevel for child controls.
7016         (set_Anchor): call UpdateDistances when setting the anchor type.
7017         This fixes bug #80336.
7018
7019 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
7020
7021         * Theme.cs: For now, revert back to 8pt font.
7022
7023 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
7024
7025         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
7026         Fixes #80395.
7027
7028 2006-12-29  Chris Toshok  <toshok@ximian.com>
7029
7030         * Control.cs: reorder the code in OnResize to give the same event
7031         ordering as MS.
7032
7033 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7034
7035         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
7036         TileHorizontally and TileVertically.
7037         
7038 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
7039
7040         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
7041         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
7042         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
7043         Corrected copyright and email adress.
7044
7045 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
7046
7047         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
7048         of Exception in FullPath property if no TreeView is associated with
7049         the TreeNode.
7050
7051 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
7052
7053         * Theme.cs: Marked default_font as private, and initialize it in ctor
7054         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
7055         on 2.0 profile.
7056         * ThemeGtk.cs: Removed default_font intialization.
7057         * ThemeWin32Classic.cs: Removed default_font initialization.
7058
7059 2006-12-28  Chris Toshok  <toshok@ximian.com>
7060
7061         * Control.cs: fix a couple of place where we were creating handles
7062         more aggressively than we should be.  Fixes ControlRefresh unit
7063         tests.
7064
7065 2006-12-28  Chris Toshok  <toshok@ximian.com>
7066
7067         * Control.cs: contrary to what the comment said, Control.Dock does
7068         not supercede Control.Anchor - the last one you assign to decides
7069         the layout behavior.  so we need to keep track of which was the
7070         last set.  Also, fix some of the affected property arguments in
7071         PerformLayout calls, and remove an redundant parent.PerformLayout
7072         call in OnResized.
7073
7074         Add a VisibleInternal property, which returns is_visible.  We
7075         can/should get rid of all the usage of this field elsewhere.
7076
7077 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7078         
7079         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
7080         control style, not DoubleBuffer. Added UseDoubleBuffering property
7081         that indicates whether doublebuffering is enabled and supported.
7082         (comment from and code based on Gert Driesen's patch in #80324).
7083         Fixes #80324.
7084
7085 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7086         
7087         * Control.cs: Fixed a NRE.
7088
7089 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7090
7091         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
7092         for 2.0.
7093
7094 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7095
7096         * Control.cs: Rewrote double buffering, now a seperate
7097         class handles all the buffering, no Graphics is disposed of
7098         until the painting is finished (earlier implementation 
7099         would crash if the control was resized in the OnPaint, 
7100         since it would cause the double buffer to be recreated
7101         and the old one disposed), a separate Graphics is 
7102         created for every paint (MS behaviour and anyways the state
7103         of the Graphics would have to be saved and restored otherwise)
7104         
7105         * XplatUIDriver.cs: 
7106         * XplatUIX11.cs:
7107         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
7108         so that we can get the graphics for the back buffer without
7109         having to create a new one and remove the offscreen_dc parameter
7110         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
7111         
7112 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7113
7114         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
7115         Also make virtual all the key-related methods.
7116
7117         * ListViewItem.cs: Make virtual the key related methods for
7118         ListViewSubItemCollection.
7119
7120 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7121
7122         * ListView.cs:
7123         * ListViewItem.cs:
7124         * ThemeWin32Classic.cs:
7125         * Theme.cs: Initial support for Tile view in ListView,
7126         as well as the implementation of the required bits for it (Item
7127         and Subitem).
7128
7129 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
7130
7131         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
7132         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
7133         Provide useful exception messages.
7134
7135 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7136
7137         * TrackBar.cs: Remove a warning.
7138         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
7139         when used by DateTimePicker, fixes #80287. This also requires that 
7140         MonthCalendar implements it's own drawing for the yearly updown control,
7141         otherwise the Capture tracking would be too complicated. Removed the Click 
7142         and DoubleClick events (according to comments they were hiding the base class
7143         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
7144         raise these events, not that they cannot be raised. It is possible to raise 
7145         them by calling OnClick and OnDoubleClick). Added two internal fields in 
7146         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
7147         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
7148         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
7149         event, no longer needed.
7150         
7151 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
7152
7153         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
7154         true if new value differs from current value.
7155
7156 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
7157
7158         * Control.cs: ControlCollection.Count must be public. Fixed build of
7159         unit tests.
7160
7161 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
7162
7163         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
7164
7165 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
7166
7167         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
7168
7169 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
7170
7171         * Control.cs: Invalidates control including when Width and Height is 
7172         equal zero or is not visible, only Paint event must be care about 
7173         this. Fixes #79913.
7174
7175 2006-12-26  Chris Toshok  <toshok@ximian.com>
7176
7177         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
7178         more corcompare work.
7179
7180         * DataGridView.cs: fix compiler warning.
7181
7182         * ColumnHeader.cs: some corcompare work, and also take the
7183         opportunity to make the internal fields private.
7184
7185         * ListView.cs: fix the fallout from the above field change.
7186
7187 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
7188
7189         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
7190         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
7191         ToolStripTextBox.cs: Fixes to events and corcompare.
7192
7193 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
7194
7195         * ListView.cs: Call owner.OnMousexx event to propagate events from
7196         item to ListView. Fixes #80367.
7197
7198 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
7199
7200         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
7201         if value is less than one. ItemHeight should not be set to a value
7202         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
7203         Removed extra tabs.
7204
7205 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
7206
7207         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
7208         * ToolStripStatusLabel.cs: Add Spring for Moma.
7209
7210 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
7211
7212         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
7213         Fixed code formatting. Removed debug code.
7214         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
7215
7216 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
7217
7218         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
7219         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
7220         ArgumentOutOfRangeException if ColumnCount is negative. In 
7221         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
7222         less than 4 or higher than 32768.
7223         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
7224         Fixed FormatProvider to return CurrentCulture unless explicitly set.
7225         Fixed IsFormatProviderDefault to return true if FormatProvider has
7226         not been explicitly set.
7227
7228 2006-12-25  Chris Toshok  <toshok@ximian.com>
7229
7230         * Application.cs: add a couple of 2.0 events.
7231
7232 2006-12-25  Chris Toshok  <toshok@ximian.com>
7233
7234         * Control.cs: fix compiler warning.
7235
7236         * AxHost.cs: corcompare fixes.
7237
7238         * ApplicationContext.cs: corcompare fixes.
7239
7240 2006-12-25  Chris Toshok  <toshok@ximian.com>
7241
7242         * Control.cs: only update dist_right/dist_bottom if the
7243         width/height is > 0.  this fixes anchored controls being resized
7244         smaller until they disappear and then resized larger again.
7245
7246 2006-12-25  Chris Toshok  <toshok@ximian.com>
7247
7248         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
7249         since they're nothing more than X/Left and Y/Top, respectively.
7250
7251         Also, move back to a per-control Bitmap/Graphics for
7252         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
7253         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
7254         Height.
7255
7256 2006-12-25  Miguel de Icaza  <miguel@novell.com>
7257
7258         * MessageBox.cs: Implemented overload that takes a new "bool
7259         displayHelpButton" by adding a new internal field "show_help".
7260         When clicked this will raise the HelpRequested on the owner or the
7261         main form. 
7262
7263         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
7264         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
7265
7266         * ListView.cs: Add support ColumnWidthChanged and
7267         ColumnWidthChanging. 
7268
7269         Add support for ColumnReordered event.
7270         (ReorderColumn): Add NET_2_0 specific support for cancelling the
7271         reorder.
7272
7273         Very nice codebase!
7274
7275         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
7276
7277         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
7278
7279 2006-12-24  Chris Toshok  <toshok@ximian.com>
7280
7281         * GridTablesFactory.cs: 2.0 corcompare work.
7282
7283         * ToolStripContainer.cs: add "override" to
7284         ContextMenuStripChanged, and remove the local event object.
7285
7286         * ToolStripDropDown.cs: same with a couple properties.
7287
7288         * ToolStripPanel.cs: same with AutoSizeChanged event.
7289
7290         * TextBoxBase.cs: add "override" to AutoSizeChanged.
7291
7292         * Form.cs: add the remaining 2.0 events, and do some corcompare
7293         attribute work.
7294
7295         * DateTimePicker.cs: add "new" to padding.
7296
7297         * ButtonBase.cs: use Control's use_compatible_text_rendering.
7298
7299         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
7300
7301         * DataGridView.cs: PaddingChanged is overridden.
7302
7303 2006-12-24  Chris Toshok  <toshok@ximian.com>
7304
7305         * Control.cs: corecompare work here too.
7306
7307         * DataGridViewElement.cs, DataGridView.cs,
7308         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
7309         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
7310         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
7311         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
7312         work.
7313
7314 2006-12-24  Miguel de Icaza  <miguel@novell.com>
7315
7316         * Control.cs: Switched the error message on the console for a
7317         todo.  A review of the code will have to cope with this anyways
7318         (since its a large feature, it is in our radar) and it was
7319         producing too much output when running PDN.
7320
7321         * ToolStripComboBox.cs: Set the text when the SelectedIndex
7322         changes.  Applications depend on this (PDN 2.72)
7323
7324 2006-12-23  Chris Toshok  <toshok@ximian.com>
7325
7326         * TableLayoutSettings.cs: finish up the corcompare work for this
7327         class.
7328
7329 2006-12-23  Chris Toshok  <toshok@ximian.com>
7330
7331         * Control.cs: make SetImplicitBounds internal, do some futzing
7332         with LayoutEngine so that it's available in 1.1, and remove the
7333         entire duplicated code mess from PerformLayout.  Use
7334         System.Windows.Forms.Layout.DefaultLayout instead.
7335
7336         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
7337
7338 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
7339
7340         * Form.cs: Add MainMenuStrip property.
7341
7342 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
7343
7344         * Control.cs: Add ContextMenuStrip property and implementation.
7345         Fix ContextMenu implementation to show menu centered on control when
7346         activated using the keyboard instead of showing at screen (0,0).
7347
7348         * ToolStripDropDown.cs: Fix needed overload of Show ().
7349
7350 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
7351
7352         * Menu.cs: Name property added for 2.0 profile.
7353         
7354 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
7355
7356         * Menu.cs: Update information about FindMenuItem, method to be
7357         implemented soon.
7358
7359 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
7360
7361         * MenuAPI.cs: When deselect items deselect also selected subitems.
7362         
7363 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
7364
7365         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
7366         FindSubItemByCoord to found itens that is not active, also an
7367         cheking added to FindSubItemByCoord to search for items only 
7368         in visible popup windows. Fixes #80274.
7369
7370 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
7371
7372         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
7373         internal property, it be care about change ExStyle. 
7374
7375 2006-12-22  Andreia Gaita  <avidigal@novell.com>
7376
7377         * ContainerControl.cs: set activeControl for parent forms up the 
7378         tree when the new activecontrol is a container.
7379         When validating the active control, if it is a container, also
7380         raise up the validation for it's active control. Fixes #80280
7381         
7382         * Control.cs: Add internal property flag and check to prevent
7383         Focus events from getting raised when Select() is called for
7384         a ContainerControl. There are still too many focus events being
7385         raised at the moment though.
7386         Cleaned up the code a bit.
7387
7388 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7389
7390         * Control.cs: Added all missing 2.0 events.and
7391         fixed a couple of corcompare issues.
7392         * TrackBar.cs: Implemented missing 2.0 bits.
7393         * MonthCalendar.cs, 
7394         * DateTimePicker.cs, 
7395         * MdiClient.cs: Fixed some corcompare issues.
7396
7397 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
7398
7399         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
7400         SplitterPanel.cs: corecompare work.
7401
7402 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
7403
7404         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
7405         Clean up warnings for BackgroundImageChanged and PaddingChanged
7406         events now that they are implemented in Control.cs.
7407
7408 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
7409
7410         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
7411         
7412         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
7413         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
7414         of TableLayoutPanel and supporting cast.
7415
7416 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7417
7418         * XplatUIWin32.cs: 
7419         - GrabWindow now confines the mouse pointer to the confine window.
7420         - Added Win32ClipCursor and Win32GetClipCursor.
7421
7422         * Control.cs: 
7423         - Added CaptureWithConfine to be able to capture and confine 
7424         mouse pointer.
7425         
7426         * InternalWindowManager.cs: 
7427         - Call CaptureWithConfine instead of Capture if we're an
7428         MdiChild (fixes #79982).
7429
7430 2006-12-21  Chris Toshok  <toshok@ximian.com>
7431
7432         * DataGrid.cs: guard against the initial state of selection, where
7433         selection_start == -1.  make sure we only select from index >= 0.
7434         Fixes bug #80291.
7435
7436 2006-12-21  Chris Toshok  <toshok@ximian.com>
7437
7438         * Control.cs: we don't need to be so draconian with
7439         UpdateDistances, and we thusly don't need to call it before
7440         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
7441
7442 2006-12-21  Daniel Nauck  <dna@mono-project.de>
7443
7444         * ComboBox.cs,
7445         TextBox.cs: Implemented AutoComplete properties.
7446
7447 2006-12-20  Chris Toshok  <toshok@ximian.com>
7448
7449         * DataGridView*.cs: some corecompare work.
7450
7451 2006-12-20  Jackson Harper  <jackson@ximian.com>
7452
7453         * XplatUIX11.cs: We need to hide the caret when deleting it,
7454         otherwise you get carets left lying around everywhere.
7455         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
7456         prevents getting some weird half drawn caret tracers when
7457         scrolling.
7458         * TextControl.cs: Attempt to reduce the number of times we need to
7459         recreate the caret.
7460
7461 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
7462
7463         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
7464
7465 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7466
7467         * DateTimePicker.cs:
7468         - Implemented missing 2.0 bits.
7469         - Changed some default values to match MS.
7470         
7471 2006-12-20  Jackson Harper  <jackson@ximian.com>
7472
7473         * TextBoxBase.cs: When changing the font across the document we
7474         can't recalculate after changing each line, since that will cahnge
7475         the line count.
7476         - PreferredHeight is a little different than i thought.
7477         - When backspacing, move the caret before we do the actual char
7478         delete, because when that delete crosses a wrap boundary the
7479         positional information will change.
7480
7481 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7482
7483         * Control.cs: Added some missing 2.0 bits: 
7484         BackgroundImageLayout, BackgroundImageLayoutChanged, 
7485         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
7486         add IBindableComponent and IDropTarget implementation.
7487         
7488         * MonthCalendar.cs: 
7489         - Added all missing 2.0 features:
7490         BackgroundImageLayout, RightToLeftLayout, 
7491         OnHandleDestroyed, RightToLeftLayoutChanged, 
7492         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
7493         PaddingChanged.
7494         - Rewrote all the BoldDate code, it was completely broken.
7495         - Fixed all the tests (the tests can now be re-enabled, the
7496         problems were not with the tests, but with the control, it was
7497         mostly broken).
7498         
7499         * DateTimePicker.cs: Changed the location where the 
7500         MonthCalendar is shown.
7501         
7502 2006-12-19  Chris Toshok  <toshok@ximian.com>
7503
7504         * DataGridView.cs: add IDropTarget implementation.
7505
7506         * ToolStripPanel.cs: add IDropTarget implementation.
7507
7508 2006-12-19  Jackson Harper  <jackson@ximian.com>
7509
7510         * TextControl.cs: soft now means something different than what it
7511         used to mean, we want to move the caret regardless of whether or
7512         not this break was soft (would we really have wanted the caret
7513         to not move with the break in the old context?)
7514         * TreeView.cs: Make sure we factor in the vert scrollbar when
7515         calculating the horizontal scrollbar's maximum.
7516
7517 2006-12-19  Andreia Gaita  <avidigal@novell.org>
7518
7519         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
7520         check for keywords in alternate casing, close bug #80049.
7521
7522 2006-12-19  Chris Toshok  <toshok@ximian.com>
7523
7524         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
7525         methods (which all do nothing).
7526
7527         * IDropTarget.cs: add the 4 missing methods.
7528
7529 2006-12-19  Chris Toshok  <toshok@ximian.com>
7530
7531         * TableLayoutRowStyleCollection.cs: corcompare work.
7532         
7533         * TableLayoutSettings.cs: same.
7534
7535         * TableLayoutStyle.cs: same.
7536
7537         * TableLayoutColumnStyleCollection.cs: same.
7538
7539 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
7540
7541         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
7542         TableLayoutPanel I've had in my local tree for way too long.
7543
7544 2006-12-19  Miguel de Icaza  <miguel@novell.com>
7545
7546         * TableLayoutSettings.cs: Finish the public API (still needs all
7547         the logic to update on changes). 
7548
7549         * TableLayoutPanelCellPosition.cs: new file.
7550         
7551         * TableLayoutRowStyleCollection.cs,
7552         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
7553         TableLayoutSettings.cs: Track the final 2.0 table api.
7554
7555 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7556
7557         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
7558         and Image List 2.0 members for ColummnHeader.
7559         * ListView.cs: Add key-related 2.0 methods for
7560         ColumnHeaderCollection.
7561
7562 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
7563
7564         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
7565         ArgumentNullException if items argument is null. Ignore null item in
7566         arrays. Removed extra tabs.
7567
7568 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
7569
7570         * MonthCalendar.cs: Fixed InvalidCastException.
7571
7572 2006-12-19  Jackson Harper  <jackson@ximian.com>
7573
7574         * TextControl.cs: Don't increment the position here.
7575         - When calculating char positions only add in the line break size
7576         for hard line breaks.
7577
7578 2006-12-19  Andreia Gaita  <avidigal@novell.org>
7579
7580         * SendKeys.cs: Changed some things to match ms.net behaviour
7581         when parsing shifted capital letters.
7582         
7583         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
7584         Add window handle as parameter to SendInput. X11 needs the 
7585         window handle, and the handle being passed      to it in the keys 
7586         queue is the active control handle (which windows needs), not 
7587         the window handle.
7588         
7589         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
7590         to support SendKeys on X.       
7591         
7592         * X11Keyboard: Implement helper method to lookup a linux keycode
7593         given the virtual keycode. Added table of keycode-2-virtualkey
7594         values to support this.
7595
7596 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7597
7598         * ListView.cs: Add support for SelectedIndexCollection
7599         and SelectedItemCollection 2.0 methods. Implement support
7600         for ImageKey too.
7601         * ListViewItem.cs: Add support for ListViewSubItemCollection
7602         2.0 methods. Also, fix an incorrect behavior of AddRange method
7603         (it shouldn't call Clear).
7604         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
7605
7606 2006-12-19  Jackson Harper  <jackson@ximian.com>
7607
7608         * RichTextBox.cs: 
7609         * TextBoxBase.cs: New args for FormatText
7610         * TextControl.cs: Rewrote the main drawing method, this version
7611         feels a little easier to understand and debug to me.  Hopefully it
7612         does to others also
7613         - Fix FormatText to OR in the new formating values.  Added
7614         FormatSpecified param, basically this works in the same way as
7615         BoundsSpecified in Control.
7616         - Set the caret properties when the caret is positioned.
7617         - When wrapping text make sure that we calculate the width of the
7618         last character
7619         - when calculating alignments we might have wrapped down to the
7620         next line, so don't search for an individual tag, search for the
7621         end of the line
7622         - We need to invalidate the selection area when we replace the
7623         selection.
7624         
7625 2006-12-19  Daniel Nauck  <dna@mono-project.de>
7626
7627         * Application.cs: add Restart () 2.0 support
7628
7629 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
7630
7631         * MenuItem.cs: Invalidate menu item rectangle after change Enable
7632         property. Fixes #80268.
7633         
7634 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
7635
7636         * MenuAPI.cs: Dont trigger select event when closes top menu
7637         item. Fixes #80270.
7638
7639 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
7640
7641         * MenuAPI.cs: When you click on menuitem only trigger onselect
7642         event for top menu itens. Fixes #80271.
7643         
7644 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7645
7646         * MdiWindowManager.cs: Make IconicBounds depend on
7647         the bottom of MdiClient, not the top (fixes #80267)
7648         
7649 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7650
7651         * MdiClient.cs: Added missing 2.0 attribute
7652
7653 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7654
7655         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
7656         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
7657
7658 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
7659
7660         * MenuAPI.cs: Fix click when menuitem is not popup,
7661         this regression was caused by last commit (#80272).
7662
7663 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
7664
7665         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
7666         fire click event or close menu. Fixes #80272.
7667
7668 2006-12-17  Daniel Nauck  <dna@mono-project.de>
7669
7670         * ListViewHitTestInfo.cs: add
7671
7672 2006-12-17  Daniel Nauck  <dna@mono-project.de>
7673
7674         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
7675         * FlatButtonAppearance.cs: add
7676         * DockingAttribute.cs: add
7677
7678 2006-12-17  Chris Toshok  <toshok@ximian.com>
7679
7680         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
7681         and rebind our columns when it does - this way, if you make
7682         changes to the DataTable (or set the Table attribute on a DataView
7683         after setting it as the DataGrid's DataSource, the changes are
7684         made visible.)  Fixes bug #80107.
7685
7686 2006-12-17  Daniel Nauck  <dna@mono-project.de>
7687
7688         * ListViewGroup.cs: add internal Location property for layouting.
7689         * Theme.cs: add abstract ListViewGroupHeight function.
7690         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
7691
7692 2006-12-16  Andreia Gaita  <avidigal@novell.com>
7693
7694         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
7695         Added reset of selected index to 0 when adding first tab page.
7696         Fixes #80264
7697         
7698         * NumericUpDown.cs: Fix NET_2_0 check
7699
7700 2006-12-16  Daniel Nauck  <dna@mono-project.de>
7701
7702         * ListViewGroup.cs: fixed DefaultValueAttribute value
7703
7704 2006-12-16  Daniel Nauck  <dna@mono-project.de>
7705
7706         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
7707
7708 2006-12-15  Miguel de Icaza  <miguel@novell.com>
7709
7710         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
7711         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
7712         ScrollableControl.cs: Add a handful of methods that are
7713         overwritten in 2.0 
7714
7715 2006-12-15  Chris Toshok  <toshok@ximian.com>
7716
7717         * XplatUIWin32.cs: initial implementation of the Reversible
7718         drawing functions.  there are some problems.  DrawReversibleFrame
7719         doesn't seem to work at all for Dashed FrameStyle, and in the
7720         Thick case there are drawing errors at the corners (we probably
7721         need to bind Rectangle instead of doing moveto/lineto's.)
7722
7723 2006-12-16  Andreia Gaita  <avidigal@novell.com>
7724         
7725         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
7726         to send blocks of key messages. Send accumulates keys to send with Flush, 
7727         while SendWait sends all keys immediately.
7728                 
7729         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
7730         XplatUIX11.cs,  XplatUIX11-new.cs:
7731         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
7732         to Win32 SendInput.
7733         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
7734         
7735         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
7736         testing for ms.net on this class is very tricky, as the tests run too fast 
7737         to allow the hook to release, essentially freezing the keyboard and the 
7738         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
7739         category :p
7740
7741 2006-12-16  Daniel Nauck  <dna@mono-project.de>
7742
7743         * Padding.cs: fixed serialization compability to MS ("_var" field names),
7744                         added missing attributes.
7745  
7746 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7747
7748         * ListViewGroup.cs: Added missing attributes.
7749         * ListViewGroupCollection.cs: Added missing attributes.
7750
7751 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7752
7753         * ListViewItem.cs: fixed ListViewSubItem text property.
7754
7755 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7756         
7757         * Control.cs: Added missing 2.0 attributes
7758         
7759 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7760         
7761         * MdiClient.cs: Added missing 2.0 attribute.
7762         * MonthCalendar.cs: Added some missing 2.0 attributes 
7763         and properties.
7764         
7765 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7766
7767         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
7768
7769 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
7770
7771         * MainMenu.cs: Add the new 2.0 constructor to help out people
7772         using the MainMenu in VS2005.
7773
7774 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7775         
7776         * MdiChildContext.cs: Removed it, no longer used.
7777         * MdiClient.cs: Added missing 2.0 attributes.
7778         
7779 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7780         
7781         * InternalWindowManager.cs: Fix a NullRef with previous 
7782         changes for toolwindows.
7783         
7784 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7785
7786         * Control.cs: 
7787         - Added AfterTopMostControl to allow for certain controls 
7788         to always stay on top when normal controls are brought to 
7789         front.
7790         
7791         * XplatUIWin32.cs: 
7792         - (DrawInversibleRectangle): Get window rectangle from Win32 
7793         in stead of from control, since Win32 doesn't calculate
7794         screen coords correctly from control's Location if it 
7795         have docked siblings.
7796         
7797         * MdiWindowManager.cs:
7798         - Correct the control menu popup location when clicked on
7799         the maximized form icon. (fixes #80223.1)
7800         - Don't show moving rectangle if mouse hasn't moved from
7801         the original clicked point.
7802         - Removed FormGotFocus handler (not used).
7803         - Calculate the control buttons location from the main
7804         window's size and not client size (fixes #79770).
7805         - Form is now closed when the form icon is double-clicked
7806         (fixes #79775). 
7807         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
7808         
7809         * InternalWindowManager.cs:
7810         - Moved some MDI-only methods to MdiWindowManager.
7811         - Removed unused properties and methods.
7812         - Unified method naming for methods handling wm messages.
7813         - Moved all message handling to seperate methods for
7814         each message.
7815         
7816         * ThemeWin32Classic.cs:
7817         - DrawManagedWindowDecorations now draws the title bar 
7818         with a gradient brush.
7819         - Add a CPDrawButtonInternal that allows us to specify
7820         light, normal and dark colors for the buttons (control 
7821         buttons for MDI children were drawn with the same light
7822         color as the background, therefore loosing the 3D effect).
7823         
7824         * SizeGrip.cs:
7825         - Add a CapturedControl property that is used to 
7826         determine the control to resize (defaults to parent). 
7827         Needed for MdiClient, since its SizeGrip's parent is
7828         MdiClient, but the control to resize is the main form.
7829         
7830         * MdiClient.cs:
7831         - Set SizeGrip's CapturedControl to the main form in order
7832         to resize the main form and not the MdiClient.
7833         - Override AfterTopMostControl to leave the scrollbars 
7834         always on top.
7835
7836 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7837
7838         * ListView.cs: fixed ListViewItemCollection AddRange and
7839                         implemented ListViewItemCollection AddRange 2.0 support.
7840
7841 2006-12-15  Daniel Nauck  <dna@mono-project.de>
7842
7843         * ListViewGroup.cs: Add.
7844         * ListViewGroupCollection.cs: Add
7845         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
7846         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
7847                                 stub for ImageKey 2.0 support.
7848
7849 2006-12-14  Mike Kestner  <mkestner@novell.com>
7850
7851         * ListView.cs: add text padding to the autocalculation for columns
7852         of width -2.  Fixes #80207.
7853  
7854 2006-12-14  Mike Kestner  <mkestner@novell.com>
7855
7856         * ListView.cs: add some index guarding for partial row navigation 
7857         logic.  Fixes #80250.
7858
7859 2006-12-14  Mike Kestner  <mkestner@novell.com>
7860
7861         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
7862         are added or inserted to the collection.  Fixes #81099.
7863
7864 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
7865
7866         * MenuAPI.cs: Closes menu when right click out side of popup
7867         it fix problem in ContextMenu and MainMenu. Fixes #80252.
7868
7869 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7870
7871         * ListViewItem.cs: Fix dumb error.
7872
7873         * ListView.cs: Add Find and ContainsKey methods in 
7874         ListViewItemCollection, and also return true for IsReadOnly
7875         and IsFixedSize (changes for 2.0). 
7876
7877 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
7878
7879         * Control.cs: Allow Region to be set to null.
7880
7881 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7882
7883         * MdiWindowManager.cs: Remove unused (commented out) code.
7884         * Form.cs: When the MdiChild is maximized, the form needs 
7885         WM_NCMOUSELEAVE, so request it.
7886         * InternalWindowManager.cs: 
7887         - Added tooltips to control buttons.
7888         - Removed duplicated control button handling code.
7889         - Removed unused (commented out) code.
7890         
7891 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
7892
7893         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
7894         was used because we must set cursor without trigger ChangeCursor event
7895         and without change Cursor control property. Fixes #79963.
7896
7897 2006-12-12  Andreia Gaita  <avidigal@novell.com>
7898         
7899         * Control.cs: Check if Region setter value is null, and ignore
7900
7901 2006-12-12  Jackson Harper  <jackson@ximian.com>
7902
7903         * TextControl.cs: We were almost always drawing one more line then
7904         needed, since the GetLineByPixel will return the last line found
7905         at that pixel. In most cases though, we were invalidating up to
7906         the junction between two lines.
7907         - Improve debug code.
7908
7909 2006-12-12  Chris Toshok  <toshok@ximian.com>
7910
7911         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
7912         and FillReversibleRectangle.
7913
7914         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
7915         and FillReversibleRectangle.
7916
7917         * XplatUIWin32.cs: add stubs which do nothing for
7918         DrawReversibleFrame, DrawReversibleLine, and
7919         FillReversibleRectangle.
7920
7921         * XplatUIOSX.cs: add stubs which raise NIE for
7922         DrawReversibleFrame, DrawReversibleLine, and
7923         FillReversibleRectangle.
7924
7925         * XplatUIX11.cs: add working implementation for
7926         DrawReversibleFrame, DrawReversibleLine, and
7927         FillReversibleRectangle.
7928         
7929         * ControlPaint.cs: implement DrawReversibleFrame,
7930         DrawReversibleLine, and FillReversibleRectangle, by calling into
7931         the appropriate XplatUI method.
7932
7933 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7934
7935         * Form.cs: Make MdiClient have the focus even if it's
7936         not selectable, since it should receive WM_KEY* and WM_MOUSE 
7937         messages. Fixes #79907.
7938         
7939 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7940
7941         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
7942         queried after the window is created.
7943         
7944         * XplatUIX11.cs: Added SendParentNotify to implement 
7945         WM_PARENTNOTIFY logic. Fixes #79965.
7946         
7947         * Control.cs: Added MakeParam.
7948         
7949 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7950
7951         * MdiClient.cs: Resume Layout before setting window
7952         states (fixes #80201).
7953
7954 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7955
7956         * MenuAPI.cs: Deselect a menu item after performing
7957         the click (fixes #80197).
7958
7959 2006-12-11  Jackson Harper  <jackson@ximian.com>
7960
7961         * TextBoxBase.cs: We need to cap this value, since Maximum -
7962         ViewPortHeight can be less than zero.
7963         - Only do selection with the left mouse button.
7964         * TextBox.cs: Don't tell the world that we have a context menu.
7965         * Control.cs: New method so that we can control whether or not the
7966         context menu is visible outside MWF.
7967
7968 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
7969
7970         * ToolBarButton.cs: Fix text positon. 
7971
7972 2006-12-11  Miguel de Icaza  <miguel@novell.com>
7973
7974         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
7975
7976         * Control.cs (DoubleBuffered): Add implementation.
7977
7978         * Application.cs (OpenForms): Add.
7979
7980 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
7981
7982         * Form.cs: Use opacity instead of Opactiy to determine if we need
7983         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
7984
7985 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
7986
7987         * Control.cs: Fix NRE if Control.Site was set to null.
7988
7989 2006-12-11  Chris Toshok  <toshok@ximian.com>
7990
7991         * Control.cs: ControlCollection.Remove should return if the arg is
7992         null, and ControlCollection.SetChildIndex should raise a ANE.
7993
7994 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
7995
7996         * Control.cs: Verify value set for Dock property. Code formatting
7997         updates.
7998
7999 2006-12-11  Jackson Harper  <jackson@ximian.com>
8000
8001         * TextControl.cs: Draw the caret and the selection when a flag is
8002         set on the owner.
8003         * TextBoxBase.cs: We want to draw the caret and the selection for
8004         TextBox but not for TextBoxBase.
8005         - If the window is resized and scrolling is no longer needed (the
8006         whole doc is visible) set the scroll position to zero.
8007         - The default SelectWord (the one TextBox uses) should move the
8008         caret to the end of the word.
8009         - SelectAll moves the caret to the end of the selection.
8010         * TextBox.cs: We don't selectall on focus, we just do it when the
8011         control is created.
8012         
8013 2006-12-11  Mike Kestner  <mkestner@novell.com>
8014
8015         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
8016
8017 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8018
8019         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
8020         2.0 support.
8021         * ListViewItem.cs: Add Name 2.0 property.
8022
8023 2006-12-11  Andreia Gaita  <avidigal@novell.com>
8024
8025         * TabControl.cs: Set visibility on selected or default tab 
8026         when tabcontrol handle is created, so that it's contents
8027         actually show up (duh). Fixes #80193
8028         Don't redraw the control if there is no handle created, as
8029         the selected index might be completely invalid. Added some tests
8030         to check for this.
8031
8032 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
8033
8034         * ToolBar.cs: Uses maximun width and height of all buttons as 
8035         button rectangle when ButtonSize specified, it looks strange but
8036         is what happens in Win32. Fixes #80189.
8037
8038 2006-12-11  Jackson Harper  <jackson@ximian.com>
8039
8040         * TextControl.cs: Need to track undo levels ourself, since
8041         compound actions will mess them up.
8042
8043 2006-12-10  Andreia Gaita  <avidigal@novell.com>
8044
8045         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
8046         SelectedIndex value is changed (even if it's not valid).
8047         Reset SelectedIndex to 0 when the handle is created and if
8048         the current index is invalid.
8049         Fixes SelectdeIndex unit tests and #80128
8050
8051 2006-12-08  Chris Toshok  <toshok@ximian.com>
8052
8053         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
8054         calls EndEdit, it needs to be called before we set current_cell to
8055         its new value.  Otherwise, we end up committing the value in the
8056         textbox to the new cell as well.  Fixes bug #80160.
8057
8058 2006-12-08  Chris Toshok  <toshok@ximian.com>
8059
8060         * Form.cs (set_CancelButton): if the button's DialogResult is
8061         None, set it to Cancel.  Fixes bug 80180.
8062
8063 2006-12-08  Jackson Harper  <jackson@ximian.com>
8064
8065         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
8066         to watch ourselves when setting the canvas size and setting the
8067         scrollbar values.
8068
8069 2006-12-08  Chris Toshok  <toshok@ximian.com>
8070
8071         * DataGrid.cs: comment out the two MakeTransparent calls for the
8072         time being so people using trunk (and not 1.2.2) on windows can
8073         actually use the datagrid.  This deals with bug #80151.
8074
8075 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
8076
8077         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
8078         Graphics.DrawImage (image, int, int, int, int) overload instead
8079         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
8080         the dpi difference and was blurring images it drew.
8081         [Fixes bug #79960]
8082
8083 2006-12-08  Chris Toshok  <toshok@ximian.com>
8084
8085         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
8086         rowcnt is 0 (such as with an empty datasource), and make sure we
8087         initialize not_usedarea.Y to cells.Y, so we don't draw over the
8088         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
8089
8090 2006-12-08  Chris Toshok  <toshok@ximian.com>
8091
8092         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
8093         grid.
8094
8095 2006-12-08  Chris Toshok  <toshok@ximian.com>
8096
8097         [ Fixes bug #80167 ]
8098         
8099         * ThemeWin32Classic.cs: don't draw the image if the button's flat
8100         style is FlatStyle.System.
8101
8102         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
8103         ButtonBase.flat_style private, and switch uses of it to the public
8104         property.
8105         
8106 2006-12-08  Chris Toshok  <toshok@ximian.com>
8107
8108         [ Fixes bug #80121 ]
8109         
8110         * ThemeWin32Classic.cs: center the caption text in the datagrid
8111         when we draw it.
8112
8113         * DataGrid.cs: lessen the amount we add to the caption height from
8114         6 to 2.  6 was making it huge.
8115
8116 2006-12-08  Andreia Gaita  <avidigal@novell.com>
8117
8118         * UpDownBase: Handle MouseWheel call directly instead of capturing
8119         the inner textbox's OnMouseWheel. Fixes #80166
8120
8121 2006-12-08  Jackson Harper  <jackson@ximian.com>
8122
8123         * TextControl.cs: We need to invalidate the textbox when we empty
8124         it (how had this not been discovered before?)
8125
8126 2006-12-08  Jackson Harper  <jackson@ximian.com>
8127
8128         * TextBoxBase.cs: Reworked the mouse down code so I could get it
8129         to behave like MS, we now ignore the eventargs.Click and just
8130         track state ourself, which we were already doing anyways.
8131         - Constrain the double click handler to the double click size.
8132         
8133 2006-12-08  Chris Toshok  <toshok@ximian.com>
8134
8135         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
8136         direction if that scrollbar isn't shown.  fixes bug #80158.
8137
8138 2006-12-08  Andreia Gaita  <avidigal@novell.com>
8139
8140         * NumericUpDown.cs: Update value on getter. Fixes #79950
8141
8142 2006-12-08  Chris Toshok  <toshok@ximian.com>
8143
8144         * MenuItem.cs: add back in the event cloning code.  I didn't know
8145         how to do it in the face of the EventHandlerList work i'd done
8146         last week.  Fixes bug #80183.
8147
8148 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
8149
8150         * Control.cs: Add an invalidate to the BackgroundImage setter.
8151         [Fixes 80184]
8152
8153 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
8154
8155         * ToolStrip*: Add some small properties reported by MoMA, fix event
8156         firing and default properties based off of unit tests, and add some
8157         attributes based off of the class status page.
8158
8159 2006-12-07  Jackson Harper  <jackson@ximian.com>
8160
8161         * TextBoxBase.cs: Take HideSelection into account when determining
8162         whether or not to show the selection.
8163         * RichTextBox.cs: After inserting the RTF into the document move
8164         the cursor to the beginning of the document.
8165
8166 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
8167
8168         * Control.cs: Remove static ArrayList "controls" which maintained
8169         a reference to every control created.
8170         * Application.cs: Create a static FormCollection to maintain a reference
8171         to every form created.  Use it in places that formerly enumerated through
8172         the controls one looking for forms.
8173         * Form.cs: Add and remove self from above FormCollection.
8174
8175 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
8176
8177         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
8178           not libgdk (though it makes me wonder why I didn't have any
8179           problems)
8180
8181 2006-12-07  Chris Toshok  <toshok@ximian.com>
8182
8183         [ you had to know this was coming after that last commit...]
8184         
8185         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
8186         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
8187         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
8188         XCopyArea).
8189
8190 2006-12-07  Chris Toshok  <toshok@ximian.com>
8191
8192         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
8193         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
8194         all the behavior we need for double buffering.
8195
8196         * XplatUIDriver.cs: implement the 3 double buffer methods using a
8197         client side Bitmap, just like the old Control-based double buffer
8198         code did.  The methods are virtual, so each XplatUI driver
8199         subclass can replace the implementation to use a faster, platform
8200         specific approach.
8201
8202         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
8203         double buffer code, and clean things up a bit in the process.
8204
8205 2006-12-06  Chris Toshok  <toshok@ximian.com>
8206
8207         * Control.cs: reindent WndProc.
8208
8209 2006-12-06  Chris Toshok  <toshok@ximian.com>
8210
8211         [ I wanna be like BenM when I grow up ]
8212         
8213         * Hwnd.cs: create a single static Graphics object on the static
8214         Bitmap we create.  use this for our text measurements.
8215
8216         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
8217         This was causing us to allocate a backbuffer for every control,
8218         even when it wasn't flagged as double buffered.  Instead use the
8219         single graphics instance.  This might have implications for
8220         multithreaded applications.  If we run into problems we can switch
8221         to creating 1 Graphics per control, on the static Hwnd bitmap.
8222
8223         this change nets us a 7M savings in private dirty mappings when
8224         running FormsTest.exe.
8225
8226 2006-12-06  Chris Toshok  <toshok@ximian.com>
8227
8228         * ListView.cs: the BackgroundImage override is just to set
8229         attributes.  chain up to base.BackgroundImage.
8230
8231         * RichTextBox.cs: same.
8232
8233         * ToolBar.cs: same, but we need to also redraw the toolbar when it
8234         changes, so instead a handler for BackgroundImageChanged.
8235         
8236         * Control.cs: make background_image private.
8237
8238 2006-12-06  Chris Toshok  <toshok@ximian.com>
8239
8240         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
8241         sure we even need this assignment, but roll with it for now.
8242
8243         * Control.cs: make the cursor field private.
8244
8245 2006-12-06  Chris Toshok  <toshok@ximian.com>
8246
8247         * Form.cs: we don't need to explicitly set ImeMode to
8248         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
8249         behavior in the face of ImeMode.Inherit.
8250
8251         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
8252         change the ctor's assignment to use ImeMode instead of ime_mode.
8253
8254         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
8255         ImeModeInherit.  Only check for the parent's imemode (and return
8256         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
8257         This fixes the button unit test, which sets both ImeMode and
8258         DefaultImeMode to ImeMode.Disable.
8259
8260         also make the ime_mode field private.
8261
8262 2006-12-06  Chris Toshok  <toshok@ximian.com>
8263
8264         * Control.cs: make control_style private.
8265
8266         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
8267         setting the styles to true, then setting them to false instead of
8268         reverting to their previous values.
8269
8270         also, call SetStyle on the scrollbars instead of using
8271         control_style directly.
8272
8273 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
8274
8275         * FormCollection.cs: Implement. [2.0]
8276
8277 2006-12-06  Chris Toshok  <toshok@ximian.com>
8278
8279         * Control.cs: make tab_stop private.
8280
8281         * Label.cs: set TabStop, not tab_stop.  reformat some event
8282         add/remove methods to make them more compact.
8283
8284 2006-12-06  Chris Toshok  <toshok@ximian.com>
8285
8286         * RadioButton.cs: fix TabStop handling.
8287
8288 2006-12-06  Chris Toshok  <toshok@ximian.com>
8289
8290         * TextBox.cs: remove the explicit assignments to has_focus.
8291         Control does that.
8292
8293         * ButtonBase.cs: remove the assignment to has_focus.  Control will
8294         manage that.
8295         
8296 2006-12-06  Chris Toshok  <toshok@ximian.com>
8297
8298         * ButtonBase.cs: remove all uses of is_enabled from this code.
8299         it's always true when any of the code containing the checks is
8300         executed.
8301
8302 2006-12-06  Chris Toshok  <toshok@ximian.com>
8303
8304         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
8305         with different semantics (some are present in both 1.1 and 2.0
8306         profiles) so that we match MS's behavior in our unit tests.
8307
8308 2006-12-06  Jackson Harper  <jackson@ximian.com>
8309
8310         * TextControl.cs: Make this operation undoable.
8311         * TextBoxBase.cs: Factor the border width into the preferred
8312         height.
8313         - implement Modified as per the spec.
8314
8315 2006-12-06  Chris Toshok  <toshok@ximian.com>
8316
8317         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
8318
8319 2006-12-06  Chris Toshok  <toshok@ximian.com>
8320
8321         * Control.cs: make right_to_left and context_menu fields private.
8322
8323 2006-12-06  Chris Toshok  <toshok@ximian.com>
8324
8325         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
8326         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
8327         Control.child_controls private.  switch all uses over to
8328         Control.Controls.
8329
8330 2006-12-06  Chris Toshok  <toshok@ximian.com>
8331
8332         * System.Windows.Forms/GroupBox.cs,
8333         System.Windows.Forms/AccessibleObject.cs,
8334         System.Windows.Forms/ErrorProvider.cs,
8335         System.Windows.Forms/Control.cs,
8336         System.Windows.Forms/UpDownBase.cs,
8337         System.Windows.Forms/ScrollBar.cs,
8338         System.Windows.Forms/DateTimePicker.cs,
8339         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
8340         System.Windows.Forms/ToolTip.cs,
8341         System.Windows.Forms/RadioButton.cs,
8342         System.Windows.Forms/LinkLabel.cs,
8343         System.Windows.Forms/Splitter.cs,
8344         System.Windows.Forms/TextBoxBase.cs,
8345         System.Windows.Forms/ToolStripTextBox.cs,
8346         System.Windows.Forms/ContainerControl.cs,
8347         System.Windows.Forms/ThemeWin32Classic.cs,
8348         System.Windows.Forms/SizeGrip.cs,
8349         System.Windows.Forms/ToolStripDropDown.cs,
8350         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
8351         private.  switch all uses over to Control.Parent.
8352
8353 2006-12-06  Chris Toshok  <toshok@ximian.com>
8354
8355         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
8356         Control does this before calling emitting these events.
8357
8358         * TabControl.cs: same.
8359
8360         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
8361         Control.client_rect.
8362
8363         * ButtonBase.cs: use the ClientSize property instead of the
8364         client_size field.
8365
8366         * ScrollableControl.cs: same.
8367
8368         * Control.cs: another pass at making properties private.  also,
8369         move the initialization of tab_stop to the ctor.
8370
8371 2006-12-05  Andreia Gaita <avidigal@novell.com>
8372
8373         * TabControl.cs: Let the selected index be set freely if the 
8374         control handle is not yet created.
8375
8376 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
8377
8378         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
8379         internal until I can rewrite DefaultLayout.
8380         * ToolStrip.cs: Fix build error and some general cleaning.
8381         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
8382         Fix build errors caused by making some of Control's fields private.
8383
8384 2006-12-05  Jackson Harper  <jackson@ximian.com>
8385
8386         * TextControl.cs: Redo Insert a little so that it use IndexOf
8387         instead of Split, this prevents it from messing up on things like
8388         \n\n\n. Also more effecient since the split array doesn't need to
8389         be created.
8390         * TextBoxBase.cs: AppendText doesnt handle multiline and non
8391         multiline text differently, this is the first of many fixes that
8392         will make multiline/non-multiline the same thing as far as the
8393         TextBoxBase is concerned.
8394         - Don't split the text and insert lines, this can lose some line
8395         endings (like is the last line a soft or hard break). Instead use
8396         the new Insert.
8397         - Fix an off by one when combining all the lines in the Text
8398         getter.
8399         - Remove separate multiline handling from the Text getter/setter.
8400
8401 2006-12-05  Chris Toshok  <toshok@ximian.com>
8402
8403         * ButtonBase.cs: a few changes:
8404
8405         - don't reinitialize internal Control fields in the ctor when they
8406         have the same values as Control sets them.
8407
8408         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
8409         this before calling those methods.
8410
8411         - we don't need to call Refresh for anything.  use Invalidate
8412         instead.
8413
8414         - OnEnabledChanged doesn't need to redraw at all - Control.cs
8415         calls Refresh in its OnEnabledChanged.
8416         
8417         - several of the events we were registered for in the ctor to
8418         redraw ourselves already include calls to Invalidate in the
8419         property setters that raise the events.  remove the extra
8420         invalidation.
8421
8422         - reformat a switch statement that was 83274658 columns wide.
8423         
8424 2006-12-05  Mike Kestner  <mkestner@novell.com>
8425
8426         * ComboBox.cs: fix a unit test regression from a TextBox
8427         SelectionLength return of -1 when there's no selection.  
8428
8429 2006-12-05  Chris Toshok  <toshok@ximian.com>
8430
8431         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
8432         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
8433         cleaning up some of the internal Control fields being used by
8434         subclasses.
8435
8436 2006-12-05  Mike Kestner  <mkestner@novell.com>
8437
8438         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
8439         listbox after AddImplicit calls since it defaults to hidden. Add a 
8440         hack to preserve requested heights across DropDownStyle changes.
8441
8442 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
8443
8444         * PropertyGrid.cs: Hide FindFirstItem method from public API.
8445
8446 2006-12-05  Chris Toshok  <toshok@ximian.com>
8447
8448         * DataGridView.cs: fix compiler warnings.
8449
8450         * PrintControllerWithStatusDialog.cs: same.
8451
8452         * ToolBar.cs: same.
8453
8454         * FolderBrowserDialog.cs: same.
8455
8456         * Splitter.cs: same.
8457
8458         * DataGridViewComboBoxCell.cs: same.
8459
8460         * XplatUIWin32.cs: same.
8461
8462         * PictureBox.cs: same.
8463
8464         * Win32DnD.cs: same.
8465
8466         * PageSetupDialog.cs: same.
8467
8468         * FileDialog.cs: same.
8469
8470         * PrintDialog.cs: same.
8471
8472         * DataGridTextBoxColumn.cs: same.
8473
8474         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
8475
8476 2006-12-05  Chris Toshok  <toshok@ximian.com>
8477
8478         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
8479         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
8480         System.ComponentModel.EventHandlerList work.
8481
8482 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
8483
8484         * DrawTreeNodeEventArgs.cs: Added.
8485
8486 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8487         
8488         * InternalWindowManager.cs: Remove an unused field.
8489         
8490 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8491
8492         * InternalWindowManager.cs:
8493         - Save the point where the title bar is clicked.
8494         
8495         * MdiWindowManager.cs:
8496         - Only allow moving of the window as long as the 
8497         clicked point on the title bar does not get out of
8498         MdiClient's rectangle. Fixes #79982.
8499         
8500         * MdiClient.cs:
8501         - Added Horizontal/VerticalScrollbarVisible.
8502         - Simplified the scrollbar sizing algorithm.
8503         - Cache the difference in scrolled value in
8504         H/VBarValueChanged and move the calculation out
8505         of the for loop.
8506
8507 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8508
8509         * Control.cs: Make the Console.WriteLine in WndProc 
8510         write more info.
8511
8512 2006-12-05  Chris Toshok  <toshok@ximian.com>
8513
8514         * ToolStripManager.cs, ToolStripButton.cs,
8515         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
8516         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
8517         ToolStripSplitButton.cs, ToolStripSeparator.cs,
8518         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
8519         ToolStripProgressBar.cs, ToolStripContainer.cs,
8520         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
8521         to using System.ComponentModel.EventHandlerList.
8522
8523 2006-12-04  Chris Toshok  <toshok@ximian.com>
8524
8525         * LinkLabel.cs: fix up compiler warnings.
8526
8527         * TableLayoutSettings.cs: same.
8528
8529         * TreeView.cs: same.
8530
8531         * ToolBar.cs: same.
8532
8533         * TabControl.cs: same.
8534
8535         * RichTextBox.cs: same.
8536
8537         * ListViewItem.cs: same.
8538
8539         * PropertyGrid.cs: same.
8540
8541         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
8542
8543         * ToolTip.cs same.
8544
8545         * TextRenderer.cs: fix up compiler warnings.
8546
8547         * Label.cs: same.
8548
8549         * Form.cs: corcompare fixes.
8550
8551         * PictureBox.cs: fix up compiler warnings.
8552
8553         * ImageListStreamer.cs: same.
8554
8555         * TrackBar.cs: corcompare fix.
8556
8557         * Control.cs: fix up compiler warnings.
8558
8559         * SplitterPanel.cs: same.
8560
8561         * NumericTextBox.cs: same.
8562
8563         * ImageList.cs: same.
8564
8565         * StatusStrip.cs: same.
8566
8567         * ProgressBar.cs: corcompare fix.
8568
8569         * ToolStripButton.cs: fix up compiler warnings.
8570
8571         * ToolStripStatusLabel.cs: same.
8572
8573         * ToolStripSplitButton.cs: same.
8574
8575         * ToolStripSeparator.cs: same.
8576
8577         * ToolStripProgressBar.cs: same.
8578
8579         * ToolStripDropDownMenu.cs: same
8580
8581         * ToolStripDropDown.cs: same.
8582
8583         * ToolStripDropDownButton.cs: same.
8584
8585         * ToolStrip.cs: same.
8586
8587         * ToolStripControlHost.cs: same.
8588
8589         * ToolStripContentPanel.cs: same.
8590
8591         * ToolStripDropDown.cs: same.
8592
8593         * ToolStripContainer.cs: same.
8594
8595         * ToolStripPanel.cs: same, and add "new" where we need it to work
8596         with the new ArrangedElementCollection.
8597
8598         * ToolStripItemCollection.cs: add "new" where we need it to work
8599         with the new ArrangedElementCollection.
8600
8601 2006-12-04  Andreia Gaita <avidigal@novell.com>
8602
8603         * TabControl.cs: Fix default tab selection to after TabControl
8604         gets focus and not before. Fixes #80128
8605
8606 2006-12-04  Chris Toshok  <toshok@ximian.com>
8607
8608         * DataGridTableStyle.cs: remove the gross calling of
8609         datagrid.Refresh from here.  It's a broken idea and it doesn't
8610         work anyway.
8611
8612         * DataGrid.cs: instead, just register/unregister from the
8613         DataGridTableStyle events in CurrentTableStyle.  we play it
8614         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
8615         even though some would most likely not require it.  Fixes bug
8616         #80115 (and one portion of #80117 as a side effect).
8617
8618 2006-12-04  Chris Toshok  <toshok@ximian.com>
8619
8620         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
8621         so the textbox (if any) goes away.  Fixes bug #80117.
8622
8623 2006-12-04  Chris Toshok  <toshok@ximian.com>
8624
8625         * DataGridColumnStyle.cs: set the column's readonly property
8626         initially based on the property descriptor's IsReadOnly.  Fixes
8627         bug #80044.
8628
8629 2006-12-04  Chris Toshok  <toshok@ximian.com>
8630
8631         * ComboBox.cs: wrap the dropdown style changing work in
8632         SuspendLayout/ResumeLayout.  Fixes bug #79968.
8633
8634 2006-12-04  Jackson Harper  <jackson@ximian.com>
8635
8636         * TextBoxBase.cs: Fix off by one, since these are one-based.
8637         * TextBox.cs: Select all the text when we get focus.  The TextBox
8638         does this but the RTB does not.
8639
8640 2006-12-04  Chris Toshok  <toshok@ximian.com>
8641
8642         * DataGridTextBoxColumn.cs: remove some spew.
8643
8644         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
8645         but some part of me is saying "it shouldn't be here.."  At any
8646         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
8647         setting the value.
8648
8649 2006-12-04  Chris Toshok  <toshok@ximian.com>
8650
8651         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
8652         to reassign the propertydescriptor.
8653
8654 2006-12-04  Jackson Harper  <jackson@ximian.com>
8655
8656         * TextBoxBase.cs:
8657         * TextControl.cs: Remove some unused variables.  Maybe this will
8658         patch things up between mike and I.
8659         - don't split lines less then one char wide, if the viewport is
8660         that small text won't be visible anyways.
8661         
8662 2006-12-04  Jackson Harper  <jackson@ximian.com>
8663
8664         * TextBoxBase.cs: Default selection length is -1, need to do some
8665         more testing on windows to see when this is used for the property.
8666         - Redid the Lines [] property to that we properly remove soft line
8667         breaks
8668         - added support for preserving carriage returns
8669         -  CanUndo is not a variable like 'is undo enabled' it just returns
8670         true if there is undo operations available.
8671         - AppendText doesn't need to grab the last tag itself anymore,
8672         this happens automatically when we move the cursor.
8673         * TextControl.cs: Add CompoundActions to the undo class. This
8674         allows combining the other operations into one big option.  ie a
8675         paste will combine { delete old, insert new, move cursor }
8676         - Add InsertString undo operation
8677         - New method for deleting multiline text
8678         - Add carriage returns to lines. So we can preserve carriage
8679         returns when text is 'roundtripped'
8680
8681 2006-12-04  Chris Toshok  <toshok@ximian.com>
8682
8683         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
8684         minimum 0.  Fixes the scrollbar exception in bug #80136.
8685
8686 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8687
8688         * MdiClient.cs: 
8689         * MdiWindowManager: Removed unused fields and methods.
8690         
8691 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8692         
8693         * StatusBar.cs: Update all panels when a AutoSize=Contents
8694         panel needs updating.
8695         
8696         * StatusBarPanel.cs: Remove twidth and only use initialize.
8697         Fixes #80031.
8698                 
8699 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8700
8701         * Form.cs: When a form's MdiParent is set add it directly
8702         on top of the z-order in stead of relying on MdiClient's
8703         ActivateChild to do it. Fixes #80135.
8704         
8705         * MdiClient.cs: 
8706         - Remove original_order, mdi_child_list is already doing
8707         the same thing.
8708         - Create mdi_child_list on construction in
8709         stead of first use (avoids a few null checks).
8710
8711         * MenuItem.cs: Use an already existing list of mdi children
8712         to get the correct order of children and remove the other
8713         redundant list.
8714
8715 2006-12-04  Chris Toshok  <toshok@ximian.com>
8716
8717         * PropertyGridView.cs: cached_splitter_location is only used in
8718         !DOUBLEBUFFER code.
8719
8720         * PropertyGrid.cs: implement the ComComponentNameChanged event
8721         using Events, hoping that would fix the warning.  Looks like a
8722         compiler bug instead (#80144).
8723
8724         * PropertyManager.cs: remove unused method.
8725
8726 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
8727
8728         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
8729         include parentesis to fix expression evaluation. Fixes #79634.
8730
8731 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
8732         
8733         * MenuAPI.cs:
8734         - Changes to fix behavior in Menu control, some reported in #80097
8735         and other detected during behavior refactory like a select event
8736         problems.
8737         - Remove unneded "if's" conditions.
8738         - Created an internal to flag when popup is active in control, we need 
8739         it because in .NET you can have menu active but without popup active
8740         when you active menu using popup without visible items.
8741         - Mimic win32 behavior for Select and Popup events.  
8742         - Dont open popup menu when you dont have visible subitems.
8743         - Do nothing when click on disabled menu item.
8744         - Some small changes to follow the coding style guidelines.
8745         - Unselect menu only when another control gives focus. Fixes #80097.
8746         - Remove unused code.
8747         
8748         * MenuItem.cs: internal VisibleItems method to check if menu
8749         theres visible subitems, it will be usefull to fix some 
8750         behavior in Menu control.
8751         
8752 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
8753         
8754         * Timer.cs: Tag property for 2.0 profile.
8755         
8756 2006-12-01  Chris Toshok  <toshok@ximian.com>
8757
8758         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
8759         
8760         * Win32DnD.cs: comment out some unused fields.
8761
8762         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
8763         some unused properties/methods.
8764
8765         * XplatUIX11.cs: fix MousePosition so we override the base class's
8766         property instead of conflicting with it.
8767
8768         * PictureBox.cs: comment out some unused fields
8769
8770         * OSXStructs.cs: make some struct fields public.
8771
8772         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
8773         MousePosition so we override the base class's property instead of
8774         conflicting with it.
8775
8776         * X11Dnd.cs: comment out some unused fields
8777
8778         * X11DesktopColors.cs: fix some struct field visibility to quiet
8779         the compiler.
8780
8781         * X11Dnd.cs: remove some debug code.
8782
8783         * ThemeClearlooks.cs: comment out unused field.
8784
8785         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
8786
8787         * ThemeGtk.cs: comment out some unused pinvokes.
8788
8789         * Timer.cs: remove some unused fields.
8790
8791         * ThemeClearlooks.cs: comment out unused field.
8792
8793         * UpDownBase.cs: comment out unused field.
8794
8795         * DataObject.cs: comment out unused field.
8796
8797         * DataGridBoolColumn.cs: reomve unused field.
8798
8799         * DataGrid.cs: remove unused field.
8800
8801         * Cursor.cs: remove old ToBitmap code.
8802
8803         * ControlPaint.cs: remove unused method.
8804
8805         * ScrollBar.cs: remove unused fields.
8806
8807         * ComboBox.cs: remove unused field, and chain up to
8808         AccessibleObject ctor.
8809
8810         * ListBox.cs: remove unused field.
8811
8812         * ButtonBase.cs: wrap a couple fields in NET_2_0.
8813
8814         * GridEntry.cs: remove unused fields.
8815
8816         * Binding.cs: remove unused fields.
8817
8818         * AxHost.cs: remove unused method.
8819
8820         * ContainerControl.cs: remove unused field.
8821
8822         * ScrollableControl.cs: remove unused fields.
8823
8824 2006-12-01  Chris Toshok  <toshok@ximian.com>
8825
8826         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
8827         the Where/WhereString stuff.  it's easy enough to CWL
8828         Environment.StackTrace.
8829
8830         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
8831         unused private fields.
8832
8833 2006-12-01  Jackson Harper  <jackson@ximian.com>
8834
8835         * TextControl.cs: Do not update the view while inserting multiline
8836         text. If we update the view we might wrap lines, before entering
8837         the new lines, which causes the new line insertion calculations to
8838         be totally fubared.
8839         - Remove an old TODO
8840         - Make debug output a little nicer
8841         
8842 2006-12-01  Chris Toshok  <toshok@ximian.com>
8843
8844         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
8845
8846 2006-12-01  Chris Toshok  <toshok@ximian.com>
8847
8848         [ fix the majority of the CS0108 warnings we've been suppressing ]
8849         
8850         * TreeView.cs: mark BackgroundImageChanged as 'new'.
8851
8852         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
8853         to "LayoutToolBar" to quiet mcs.
8854         
8855         * TabControl.cs: mark our ControlCollection class as 'new'.
8856
8857         * TextBoxBase.cs: mark some events as 'new'.
8858
8859         * Splitter.cs: TabStop is 'new'.
8860
8861         * ControlBindingsCollection.cs: mark a few methods as new since
8862         they change the visibility from protected to public.
8863
8864         * RadioButton.cs: DoubleClick -> base class, and remove unused
8865         HaveDoubleClick.
8866
8867         * MonthCalendar.cs: ImeMode property -> base class, and mark many
8868         events as new.
8869
8870         * NumericUpDown.cs: TextChanged -> base class.
8871
8872         * CheckedListBox.cs: mark our ObjectCollection class as new to
8873         quiet mcs.
8874
8875         * FolderBrowserDialog.cs: make HelpRequest event new and have it
8876         muck with the base class.
8877
8878         * StatusBar.cs: fix some mcs warnings about Update being the same
8879         name as a base class method.
8880
8881         * RichTextBox.cs: mark some events as new, and make them do things
8882         to the base class impl.
8883
8884         * UserControl.cs: mark TextChanged as new, and have it manipulate
8885         base.TextChanged.
8886
8887         * UpDownBase.cs: mark some things new.
8888
8889         * CheckBox.cs: mark DoubleClick "new", and add some text about
8890         what we need to look at.
8891
8892         * Panel.cs: make the events "new", and manipulate the base
8893         version.  these are just here for attributes.
8894
8895         * AccessibleObject.cs: make owner private.
8896
8897         * Control.cs: deal with AccessibleObject.owner being private.
8898         cache our own copy if we need it.
8899
8900         * Button.cs: add "new" to the DoubleClickEvent.
8901
8902         * ListBox.cs: no need to track our own has_focus here.  let
8903         Control.has_focus do it for us.  Also some other work to clear up
8904         warnings about not overriding base class methods of the same name.
8905         
8906         * ComboBox.cs: clear up some warnings about not override base
8907         class methods of the same name.
8908
8909 2006-12-01  Chris Toshok  <toshok@ximian.com>
8910
8911         * Form.cs: flag a few things as "new" to quiet some of the mcs
8912         warnings.
8913
8914         * AxHost.cs: same.
8915
8916         * PrintPreviewDialog.cs: same.
8917
8918         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
8919         now DGV isn't so horrible on the class status page.  also, move
8920         all events to using System.ComponentModel.EventHandlerList.  my
8921         wrists hurt.
8922
8923 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8924
8925         * MdiWindowManager.cs:
8926         - Set form to active mdi child if shown,
8927         and update the active mdi child to the next 
8928         remaining child in the z-order if the form is hidden.
8929
8930         * Form.cs: 
8931         - Track if the form has been visible and if its 
8932         visibility is beeing changed, so that the MdiClient
8933         can properly decide the ActiveMdiChild. The MdiClient 
8934         cannot track this since the form can change visibility 
8935         before MdiClient is created.
8936
8937         * MdiClient.cs:
8938         - Don't activate anything of the parent form is changing
8939         its visibility.
8940         - Rework ActiveMdiChild to only return visible mdi 
8941         children and take into account several other corner 
8942         cases.
8943
8944 2006-12-01  Chris Toshok  <toshok@ximian.com>
8945
8946         * IBindableComponent.cs: new 2.0 interface.
8947
8948 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
8949
8950         * DataGrid.cs: Font for caption area is bold by default.
8951
8952 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
8953
8954         * Menu.cs: Tag property for 2.0.
8955         
8956 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
8957
8958         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
8959         
8960 2006-12-01  Chris Toshok  <toshok@ximian.com>
8961
8962         * TreeView.cs: doh, the Begin* events should be
8963         TreeViewCancelEventHandler.
8964
8965 2006-12-01  Chris Toshok  <toshok@ximian.com>
8966
8967         * Form.cs: Form.ControlCollection already stores off the
8968         form_owner field.  don't access the base class's internal "owner"
8969         field.
8970
8971         * Control.cs: make all the fields in Control.ControlCollection
8972         private.  there's no need for any internal fields here.
8973
8974 2006-12-01  Chris Toshok  <toshok@ximian.com>
8975
8976         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
8977         OnHandleCreated.  Fixes bug #80109.
8978
8979 2006-12-01  Chris Toshok  <toshok@ximian.com>
8980
8981         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
8982         SplitContainer.cs, Control.cs, StatusStrip.cs,
8983         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
8984         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
8985         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
8986         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
8987         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
8988         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
8989         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
8990         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
8991         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
8992         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
8993
8994         do most of the work to convert our code over to use
8995         System.ComponentModel.Component.Events for
8996         adding/removing/dispatching events.
8997
8998
8999 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
9000
9001         * DataGridView.cs: Fix an ArgumentNullException reported 
9002         twice today in IRC.
9003
9004 2006-11-30  Mike Kestner  <mkestner@novell.com>
9005
9006         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
9007         grabbed listbox.  Fixes #80036 and #80101.
9008
9009 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
9010
9011         * Message.cs: Changed ToString() to match MS.
9012         
9013 2006-11-30  Jackson Harper  <jackson@ximian.com>
9014
9015         * TextBoxBase.cs: You can still change the selected text on a read
9016         only textbox.
9017         * TextControl.cs: Lower magic number for wrap calculations. This
9018         lets text get closer to the right (far) edge.
9019
9020 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
9021
9022         * Control.cs: Tweak 2.0 layout properties.
9023         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
9024         * TextRenderer.cs: Add a new overload.
9025         * ToolStrip*: Huge amount of changes and new features.
9026
9027 2006-11-30  Mike Kestner  <mkestner@novell.com>
9028
9029         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
9030         scroll range correct.  Fixes #79994.
9031
9032 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
9033
9034         * MdiWindowManager.cs: Update main form's text when
9035         a form is closed. (fixes #80038)
9036         
9037 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
9038
9039         * ToolBar.cs:
9040         - Fix an regression in ButtonSize.
9041         - Get ImeMode default value change to "Disable".
9042         - Get ShowTooltips default value change to true, default value is 
9043         "false" but after make a test in .NET we get "true" result as default.
9044         
9045 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
9046
9047         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
9048
9049 2006-11-29  Chris Toshok  <toshok@ximian.com>
9050
9051         * XplatUIWin32.cs (GetWindowTransparency): check return value of
9052         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
9053         SetWindowTransparency hasn't been called.
9054
9055 2006-11-29  Chris Toshok  <toshok@ximian.com>
9056
9057         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
9058         if it's supported.
9059         (set_AllowTransparency): reorder things a little so that the
9060         WS_EX_LAYERED style is removed properly.
9061
9062 2006-11-29  Chris Toshok  <toshok@ximian.com>
9063
9064         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
9065         
9066         * Form.cs: only call the XplatUI transparency method (get/set) if
9067         SupportsTransparency says it's supported. Otherwise fallback to
9068         doing nothing (in the set case) or returning the instance field we
9069         cache (in the get case).
9070
9071         * XplatUIStructs.cs: add TransparencySupport flag enum.
9072         
9073         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
9074         change to SupportsTransparency.
9075
9076         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
9077         TransparencySupport.None from SupportsTransparency.
9078
9079         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
9080         TransparencySupport.Set from SupportsTransparency.
9081
9082         * XplatUIWin32.cs: implement GetWindowTransparency calling
9083         GetLayeredWindowAttributes, and implement SupportsTransparency by
9084         checking whether or not both
9085         GetWindowTransparency/SetWindowTransparency are available
9086         entrypoints.  We need to do this since SetWindowTransparency is
9087         available as of win2k, but GetWindowTransparency requires winxp.
9088         yay win32 api.
9089
9090         * XplatUI.cs: Add GetWindowTransparency, and change
9091         SupportsTransparency to allow for either/both Get/Set.
9092
9093 2006-11-29  Chris Toshok  <toshok@ximian.com>
9094
9095         * DataGrid.cs: keep from going into an infinite loop redrawing a
9096         datagrid that has no datasource.  Fixes bug #80033.
9097
9098 2006-11-29  Chris Toshok  <toshok@ximian.com>
9099
9100         * MenuItem.cs: fix the NRE when we assign text (and therefore call
9101         Invalidate) before the mainmenu has been assigned to a control.
9102
9103 2006-11-29  Chris Toshok  <toshok@ximian.com>
9104
9105         * DataGrid.cs: detect when we should be double the double click
9106         row/column autosize stuff, although that codepath has yet to be
9107         written.  part of the work for bug #79891.
9108
9109 2006-11-29  Chris Toshok  <toshok@ximian.com>
9110
9111         * Binding.cs (SetControl): fix unit test.
9112
9113 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9114
9115         * PageSetupDialog.cs: Validate the margins and set them in
9116         PageSettings. 
9117         * NumericTextBox.cs: New class to mimic the behavior of the
9118         textboxes used in the printing dialogs.
9119
9120 2006-11-29  Andreia Gaita  <avidigal@novell.com>
9121         
9122         * Form.cs: Revert previous change (remove call UpdateBounds
9123         from form constructor), because it messes with the handle creation
9124         order, and that one needs lots and lots of love.
9125         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
9126         for valid printer and throw InvalidPrinterException if document
9127         is set but printer not valid), adding a MonoTODO. Once 
9128         handle creation is done properly, we can put this back in.
9129
9130 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
9131
9132         * MenuItem.cs: Create a invalidate method for menu item, to be
9133         calling from set text, it make text changes to imadiate update
9134         on screen. Fixes #80013. 
9135         
9136 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
9137
9138         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
9139         fixes bug #80070 and some other problem on toolbar buttons
9140         layout.
9141
9142 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
9143
9144         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
9145         with dotted brush.      Fixes #79564
9146         
9147 2006-11-28  Andreia Gaita  <avidigal@novell.com>
9148
9149         * Form.cs: Removed call to UpdateBounds on Form
9150         constructor, it was causing a call to CreateHandle
9151         before it was supposed to.
9152         * PrintControllerWithStatusDialog: Applied patch
9153         by Chris Toshok to hide controller when there are
9154         no printers available.
9155         PrintDialog.cs: initialize printer settings to 
9156         null - correct DefaultValues test #5
9157         * PrintPreviewControl.cs: Move PrintController
9158         initialization to GeneratePreview
9159         * PrintPreviewDialog.cs: 
9160         - Remove Preview generation     from Document_set(). It is 
9161         called on OnPaint
9162         - Throw InvalidPrinterException on CreateHandle if
9163         a Document is set but there are no printers or 
9164         printer is not valid.
9165         * ThemeWin32Classic: don't paint PrintPreviewControl
9166         if there is nothing to paint    
9167
9168 2006-11-28  Miguel de Icaza  <miguel@novell.com>
9169
9170         * Form.cs: Add another popular method.
9171
9172         * TabPage.cs: ditto.
9173
9174 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9175
9176         * MenuItem.cs: Fixed a warning.
9177         * InternalWindowManager: Fixed a warning.
9178
9179 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9180
9181         * MenuItem.cs:
9182         - When cloning a menu also clone MdiList and clone the 
9183           window menu items properly (as the forms and menuitems
9184           are kept in an internal hashtable, these need updating 
9185           as well)
9186         - Rewrote the window menu code, menu items are added in the
9187           order the forms were added to their parent, and they are
9188           updated every time the window menu is shown (before the
9189           list was only generated once, in the current order of the
9190           forms, and would never be updated). A checkmark is shown
9191           next to the item corresponding to the active mdi child.
9192
9193 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9194
9195         * XplatUIStructs.cs: 
9196         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
9197         
9198         * XplatUIWin32.cs: 
9199         - Added TME_NONCLIENT to TMEFlags.
9200         - Handles WM_NCMOUSEMOVE in GetMessage to 
9201           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
9202
9203         * MdiWindowManager:
9204         - Now merges mdi child menu to parent menu when maximized.
9205         - Recalculate NC areas of both mdi child and mdi parent. 
9206           Fixes #79757 (4).
9207           on window state and size changes.Fixes #79844 (3).
9208         - Handle WM_NCCALCSIZE to properly calculate borders.
9209
9210         * Form.cs:
9211         - Add/remove to the mdi containers list of mdi children 
9212           in the order they are added.
9213         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
9214           to the maximized mdi child.
9215         
9216         * InternalWindowManager.cs:
9217         - Only execute a click on the control buttons on the mouse up,
9218           not on the mouse down. Show the state of the button 
9219           (was only showing Normal state, never Pressed state). The
9220           pressed button now follows the mouse (if you click the Close 
9221           button and move the mouse over the Maximize button, the 
9222           Maximize button will be shown as pressed). Since Win32 does
9223           not generate WM_NCLBUTTONUP if you release the button outside
9224           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
9225           it as a mouse up.
9226         
9227         * ThemeWin32Classic.cs:
9228         - Draw a missing border around mdi child forms. Fixes #79844 (2).
9229
9230         * MdiClient.cs:
9231         - Added a list of forms which contains the order the forms are
9232           added to the mdi parent.
9233         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
9234         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
9235         - If the active form changes set the scrollbars to the top
9236           of the Z order, otherwise the form could hide them.
9237         - Scrollbars are now sized according to ClientSize, not 
9238           to Size, and they take into account the other scrollbar
9239           to determine maximum.
9240         
9241 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
9242         
9243         * XplatUI.cs:
9244         * XplatUIDriver.cs:
9245         * XplatUIX11.cs:
9246         * XplatUIWin32.cs:
9247         * XplatUIOSX.cs:
9248         - Added RequestAdditionalWM_NCMessages for windows to 
9249           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
9250           Currently only implemented in XplatUIWin32.
9251
9252 2006-11-27  Chris Toshok  <toshok@ximian.com>
9253
9254         * Hwnd.cs: only add the hwnd to the windows hash in
9255         set_WholeWindow and set_ClientWindow if whole_window/client_window
9256         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
9257
9258 2006-11-27  Mike Kestner  <mkestner@novell.com>
9259
9260         * ComboBox.cs: remove redundant OnDropDown call.  It is called
9261         from the ComboListBox.ShowWindow code. Fixes #79969.
9262
9263 2006-11-27  Chris Toshok  <toshok@ximian.com>
9264
9265         * Hwnd.cs: remove the setters for ExposePending and
9266         NCExposePending - noone uses them.
9267
9268 2006-11-27  Jackson Harper  <jackson@ximian.com>
9269
9270         * TextControl.cs: new param for ReplaceSelection which determines
9271         whether we select the new selection, or set the cursor to the end
9272         of the new selection.
9273         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
9274         pasting, select the new text.
9275         * RichTextBox.cs: Use new param for ReplaceSelection.
9276
9277 2006-11-27  Jackson Harper  <jackson@ximian.com>
9278
9279         * TextBoxBase.cs: Set the selection to the caret after the caret
9280         is moved, otherwise they get out of sync.
9281
9282 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
9283
9284         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
9285         it fixes #80015
9286
9287 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
9288
9289         * ThemeWin32Classic.cs: 
9290         - Fix toolbar drop down arrow position.
9291         - Fix drop down appearance when ToolBar.Appearance is normal,
9292         it fixes #80018.
9293         
9294 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
9295
9296         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
9297         * Control.cs: Same.
9298         * UpDownBase.cs: Same.
9299         * ButtonBase.cs: Same.
9300         * ScrollBar.cs: Same.
9301         * TrackBar.cs: Same.
9302         * PictureBox.cs: Same.
9303         * UserControl.cs: Same.
9304         * Label.cs: Same.
9305         * ListControl.cs: Same.
9306         * TextBoxBase.cs: Same.
9307         * ListView.cs: Same.
9308         * RichTextBox.cs: Same.
9309         * TreeView.cs: Same.
9310
9311 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
9312
9313         * PrintDialog.cs:
9314         - Text label for where 
9315         - Text label comment was not shown
9316
9317 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
9318
9319         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
9320
9321 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
9322
9323         * InternalWindowManager.cs: 
9324         - Handle WM_PARENTNOTIFY to activate the form
9325         if any child control is clicked.
9326         - The form is only sizable if not minimized.
9327
9328         * MdiWindowManager.cs:
9329         - Save the IconicBounds if the form is moved.
9330         - Rework SetWindowState, now the window bounds 
9331         are stored only if the old window state is Normal.
9332         
9333         * MdiClient.cs:
9334         - In SetWindowStates store the old window state if 
9335         the window is maximized and restore window state if
9336         the window looses focus.
9337         - Don't handle any scrollbar value changes if 
9338         initializing the scroll bars. Fixes #79771.
9339         - Reworked ArrangeIconicWindows. Current algorithm
9340         tests bounds agains all other minimized windows, if
9341         any intersections create new bounds (going left to 
9342         right, bottom to top) and then test again. When 
9343         successful the bounds are saved and never computed
9344         again. Fixes #79774.
9345
9346 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
9347
9348         * InternalWindowManager.cs: Added HandleTitleBarUp.
9349
9350 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
9351
9352         * NumericUpDown.cs: In .NET 1.1, user entered text is still
9353         hexadecimal in ParseUserEdit.
9354
9355         
9356 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
9357
9358         * MdiWindowManager.cs: 
9359         - Handle a click on the form's icon to show the 
9360         system menu (when maximized). Fixes #79775.
9361         - Change the existing click handler for the form's
9362         icon when not maximized to show on MouseUp.
9363         Fixes #79776.
9364
9365         * Form.cs: In OnResize only layout the mdi child's
9366         parent if it actually has a parent. Might not if
9367         the window is closing.
9368
9369
9370 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
9371
9372         * MdiClient.cs: Ignore active MDI client for text of parent, if
9373         child has no text set.
9374
9375 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
9376
9377         * ToolBar.cs: Fixed ToString to match MS.
9378
9379 2006-11-22  Andreia Gaita  <avidigal@novell.com>
9380
9381         * NumericUpDown: 
9382         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
9383         update inner values on set. Fixes #79966.
9384         - Override OnLostFocus to update value on NET 2. Fixes #79950.
9385         - Fix hexadecimal parsing.
9386         
9387         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
9388         parent. Fixes #79957
9389
9390 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9391
9392         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
9393         the actual size has to be queried, since if height /
9394         width is negative Win32 changes it to 0. 
9395         Fixes #79999 on Windows.
9396         
9397         * XplatUIX11.cs: Set height / width to 0 if negative
9398         in SetWindowPos. Fixes #79999 on Linux.
9399         
9400 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
9401
9402         * ThemeWin32Classic.cs: Fix text redenring when button is
9403         pressed.
9404
9405 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
9406
9407         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
9408         and later navigate by mouse. Fixes #79528.
9409
9410 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
9411
9412         * ToolBar.cs: Set default value for TabStop to false in
9413         constructor, it fixes remaining behavior of bug #79863.
9414
9415 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9416
9417         * MdiWindowManager.cs:
9418         * InternalWindowManager.cs:
9419         - Moved a few methods specific to Mdi from 
9420         InternalWindowManager to MdiWindowManager.
9421         Fixes #79996.
9422         
9423 2006-11-21  Chris Toshok  <toshok@ximian.com>
9424
9425         * XplatUIOSX.cs: stub out InvalidateNC.
9426
9427         * XplatUIWin32.cs: implement InvalidateNC using the call I found
9428         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
9429
9430         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
9431
9432         * XplatUIDriver.cs: add InvalidateNC abstract method.
9433
9434         * XplatUI.cs: add InvalidateNC.
9435
9436 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
9437
9438         * ToolBar.cs: Invalidate complete button area when pressed status 
9439         was changed.
9440         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
9441         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
9442         by 1 when button is pressed.
9443
9444 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
9445
9446         * ToolButton.cs: Invalidate middle of DropDown button when
9447         ToolBar theres DropDownArrows.
9448         * ThemeWin32Classic.cs: Change position of DropDown arrow and
9449         fix DropDown drawing operations.
9450
9451 2006-11-20  Chris Toshok  <toshok@ximian.com>
9452
9453         * NativeWindow.cs: fix the formatting of functions ('{' on the
9454         following line), and enable the thread exception dialog.
9455
9456         * Application.cs: remove the duplicate exception catching from
9457         here.
9458
9459 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
9460
9461         * Toolbar.cs: Triggers button click event when click on icon
9462         of dropdown ToolBarButton. Fixes #79912.
9463         
9464 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9465
9466         * Theme.cs:
9467         * ThemeWin32Classic.cs:
9468         - Added a property WindowBorderFont to enable themeing
9469           of mdi child windows' Text.
9470           
9471 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9472
9473         * InternalWindowManager.cs:
9474         * Form.cs:
9475         * MdiClient.cs:
9476         * MdiWindowManager.cs: 
9477         - If mdi child is maximized, set mdi parent's
9478           text to "Parent - [Child]". Fixes #79770.
9479         - If there is any maximized mdi child windows, only the active 
9480           window (and any new windows) is maximized, the rest are normal.
9481         - On a WindowState change only save mdi child's window bounds 
9482           if the old window state was normal. Fixes #79774.
9483         - The scroll bars are now calculated on hopefully all
9484           necessary events. Fixed #79771 / #79844->6 / #79906.
9485         - MdiClient.SizeScrollBars() now takes into account docked 
9486           controls in the parent when calculating available space.
9487         - InternalWindowManager now always repaints the entire title
9488           area. Fixes #79844->1/4/5.
9489         - Added RequestNCRecalc on mdi child windowstate changes.
9490           Fixes #79772.
9491
9492 2006-11-20  Mike Kestner  <mkestner@novell.com>
9493
9494         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
9495         in the MouseUp handler of the listbox and move the return handling
9496         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
9497
9498 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
9499
9500         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
9501
9502 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
9503
9504         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
9505           working in 1.2.x anymore. So, updated.
9506
9507 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
9508
9509         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
9510         NumberGroupSeparator of current culture instead of assuming en-US.
9511         Fixed bug #79967.
9512
9513 2006-11-17  Mike Kestner  <mkestner@novell.com>
9514
9515         * Control.cs: Add the concept of implicit bounds setting so that
9516         dock/undock round trips preserve explicitly set size/locations.
9517         Fixes #79313.
9518
9519 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
9520
9521         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
9522           can't handle those filters. (Fixes bug #79961)
9523
9524 2006-11-17  Chris Toshok  <toshok@ximian.com>
9525
9526         [ fixes the exit/crashes associated with #79835.  it's clearly
9527         suboptimal though, we need to figure out a better way to solve
9528         this. ]
9529         
9530         * PrintPreviewControl.cs: deal with the new invalid printer
9531         exceptions.
9532
9533         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
9534         and return false (so CommonDialog.ShowDialog doesn't actually show
9535         the form.)
9536
9537         * PrintDialog.cs: enable/disable the Ok button depending on
9538         whether or not the printer is valid.
9539
9540         * CommonDialog.cs (ShowDialog): only actually show the form if
9541         RunDialog returns true.
9542
9543 2006-11-17  Jackson Harper  <jackson@ximian.com>
9544
9545         * TextControl.cs: When soft splitting a line, mark it as a soft
9546         split line. Also carry over the current line break to the next
9547         line.
9548
9549 2006-11-17  Chris Toshok  <toshok@ximian.com>
9550
9551         * XplatUIX11.cs: when scrolling a window with an invalid area, we
9552         only want to shift the part of the invalid area that overlaps the
9553         area we're scrolling.  we also don't want to clear the invalid
9554         area unless the invalid area was entirely contained within the
9555         scrolling area.
9556
9557 2006-11-16  Chris Toshok  <toshok@ximian.com>
9558
9559         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
9560         also make sure to free the memory returned by XGetWindowProperty
9561         in GetText().
9562
9563         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
9564
9565 2006-11-16  Chris Toshok  <toshok@ximian.com>
9566
9567         * XplatUI.cs: add a new super secret way to get at the totally
9568         unsupported X11 backend.
9569
9570 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
9571
9572         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
9573
9574 2006-11-16  Jackson Harper  <jackson@ximian.com>
9575
9576         * TreeView.cs: Allow more explicit setting of top node position
9577         for scrollbars. Slower algo, but more accurate.
9578         - CollapseAll should maintain the current top node.
9579         * TextBoxBase.cs: When positioning the caret, use the line, pos
9580         method, since the x, y method does not grab the correct tag, and
9581         the caret height never gets set correctly. (Maybe I should just do
9582         away with the caret having its own height, and always use the
9583         carets current tag for height).
9584
9585 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
9586
9587         [Fixes 79778, 79923]
9588
9589         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
9590         Parent to the FosterParent instead.
9591
9592 2006-11-16  Jackson Harper  <jackson@ximian.com>
9593
9594         * TreeView.cs: Need to recalc the topnode when we expand or
9595         collapse. The scrolling methods can't handle this on their own,
9596         since they use differences between the last scroll position, and
9597         those difference get completely messed up since we are expanding
9598         nodes.  This problem should probably be fixed in the scrolling
9599         methods, so they can figure out exactly where they are, but this
9600         will slow things down a little.
9601         * ThemeWin32Classic.cs: Special case for groupboxes with empty
9602         strings, makes nunit-gui look a lot nicer.
9603
9604 2006-11-16  Chris Toshok  <toshok@ximian.com>
9605
9606         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
9607         the broken multithreaded event handling we have in here.  File
9608         this entry under "Why we should move to the new X11 backend".
9609
9610         Any thread can make it into UpdateMessageQueue, which gets events
9611         from the X socket - some of which could belong to hwnds being
9612         managed by a different thread.  We can also have multiple threads
9613         in UpdateMessageQueue at the same time, with each one reading from
9614         the X socket.  This leads to many problems, with the following
9615         solutions:
9616
9617         We can't use hwnd.Queue.Enqueue anywhere in here and must use
9618         EnqueueLocked.
9619
9620         The MotionNotify compression we do can't work across threads
9621         (without locking the entire queue, perhaps) since we call
9622         hwnd.Queue.Peek, so we just punt and don't compress motion events
9623         unless the owning thread is the one which got the X event.
9624
9625         ConfigureNotify is another fun one, since it modifies the hwnd's
9626         bounds and then enqueues the event.  We add a lock to Hwnd which
9627         is held when setting configure_pending to true (and enqueuing the
9628         event).
9629
9630         There is a race wrt the wake socket.  we need to make sure that
9631         only 1 thread is waiting on that socket, or else a thread could
9632         sleep waiting for data that never comes.  It's difficult (but not
9633         impossible) to make happen, because it seems to require something
9634         like the following:
9635
9636             1. Thread 1 polls on wake_receive
9637         
9638             2. poll returns saying there's data to be read on
9639                wake_receive.
9640         
9641             3. Thread 2 polls on wake_receive and immediately returns
9642                saying there's data to be read.
9643
9644             4. Thread 2 reads the wakeup byte from wake_receive
9645
9646             5. Thread 1 attempts to read the wakeup byte from
9647                wake_receive.
9648
9649             6. Thread 2 exits (due to a form closing, perhaps).
9650
9651             7. Thread 1 blocks forever.
9652         
9653         Fun, eh?
9654
9655         Fixing the Expose handling isn't done yet, and the races inherent
9656         in that piece of code are responsible for the drawing mistakes you
9657         see when generating expose events in a MT app (like NPlot).  This
9658         one is the likely to be the hardest to bandaid, and it doesn't
9659         appear to cause anything but drawing problems.  The other issues
9660         caused apps to exit or hang.
9661
9662         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
9663         called from a different thread than the one that should be calling
9664         these functions.
9665
9666         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
9667
9668 2006-11-15  Chris Toshok  <toshok@ximian.com>
9669
9670         * Application.cs: null out the context's MainForm when we exit
9671         RunLoop.  Fixes a newly checked in unit test as well as the last
9672         ODE from bug #79933.
9673
9674 2006-11-15  Chris Toshok  <toshok@ximian.com>
9675
9676         * Form.cs (set_Owner): allow a null value so we can clear the
9677         form's owner.
9678         (Dispose): set all our owned_form's Owner properties to null, and
9679         clear the owned_forms collection.
9680         (WM_CLOSE): clean up this a little bit.. still not right though.
9681
9682         * ApplicationContext.cs: OnMainFormClosed should only call
9683         ExitThreadCore if the main form isn't recreating.  Fixes unit
9684         test.
9685
9686 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
9687
9688         [Fixes 78346]
9689
9690         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
9691
9692 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
9693
9694         [Fixes 79433]
9695
9696         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
9697         keep popup window types from stealing focus from the main form
9698         on Windows.
9699
9700         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
9701
9702         * MenuAPI.cs: Set above flag to true.
9703
9704 2006-11-15  Chris Toshok  <toshok@ximian.com>
9705
9706         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
9707         the button being released is not in wParam.
9708
9709 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
9710
9711         * Form.cs: Add the released button to MouseEventArgs.Button
9712         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
9713         on Win32.
9714
9715 2006-11-15  Chris Toshok  <toshok@ximian.com>
9716
9717         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
9718         GetText().  untested because it's unused in our implementation.
9719         Control.Text always caches the text, even if
9720         ControlStyles.CacheText is not set.
9721
9722         fixes bug #79939.
9723
9724 2006-11-15  Chris Toshok  <toshok@ximian.com>
9725
9726         [ fixes #79933 ]
9727         
9728         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
9729         message.  no hiding, no disposing.
9730
9731         in the WM_CLOSE handler, hide the form if it's modal.
9732
9733 2006-11-15  Chris Toshok  <toshok@ximian.com>
9734
9735         * XplatUIX11.cs: use AddExpose instead of sending a message.
9736         fixes textbox border drawing.
9737
9738 2006-11-15  Chris Toshok  <toshok@ximian.com>
9739
9740         * PropertyGridView.cs: keep from crashing on mouse move/down when
9741         the property grid is empty.
9742
9743 2006-11-14  Jackson Harper  <jackson@ximian.com>
9744
9745         * TextControl.cs: Make PageUp and PageDown more like the MS
9746         versions.
9747         * TextBoxBase.cs: When we set the text property position the
9748         cursor at the beginning of the document.
9749
9750 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9751
9752         * Form.cs: if a mdi child's WindowState has changed
9753         before it's creation, it would display wrong control
9754         buttons.
9755         
9756 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
9757
9758         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
9759           (Fixes bug #79927)
9760
9761 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9762
9763         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
9764         the window gets to paint its borders even if the window is
9765         getting smaller.
9766         
9767         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
9768         otherwise the old control buttons would still be painted 
9769         if the window gets bigger.
9770         
9771         * PaintEventArgs.cs: add an internal method so that the clip 
9772         rectangle can be changed.
9773         
9774 2006-11-13  Chris Toshok  <toshok@ximian.com>
9775
9776         [ fixes bug #79745 ]
9777         
9778         * NotifyIcon.cs: lots of cleanup.
9779
9780         * X11Structs.cs: add an enum for XEMBED messages.
9781
9782         * XplatUIX11.cs: reindent one of the giant switch statements, it
9783         was taking up an additional tab stop, and this file is already way
9784         too wide for my laptop's screen.
9785
9786         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
9787         we get it, resize the hwnd to the WMNormalHints max_width/height.
9788
9789 2006-11-13  Jackson Harper  <jackson@ximian.com>
9790
9791         * TextBoxBase.cs: Compute the value changes for the mouse wheel
9792         teh simple way.
9793
9794 2006-11-13  Chris Toshok  <toshok@ximian.com>
9795
9796         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
9797         #79898.  force a reference to the Region to stick around so the
9798         unmanaged object isn't collected (rendering our handle in the MSG
9799         stale).
9800
9801 2006-11-13  Chris Toshok  <toshok@ximian.com>
9802
9803         * XplatUIX11.cs: fix #79917 for window managers which support
9804
9805         using XStoreName on the raw utf8, and we need to convert to
9806         COMPOUND_TEXT if it's non-latin1.
9807
9808 2006-11-13  Chris Toshok  <toshok@ximian.com>
9809
9810         * Form.cs (set_DialogResult): we need to set closing to false if
9811         we're setting our result to None.  fixes bug #79908.
9812
9813 2006-11-13  Jackson Harper  <jackson@ximian.com>
9814
9815         * TextControl.cs: When formatting text, compute the adjusted tag
9816         lengths correctly, using FindTag for the end tag instead of trying
9817         to figure it out outselves.
9818         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
9819         the item, ItemHeight doesn't work, because trees with large
9820         imagelists use those for their height
9821         * TreeView.cs: ActualItemHeight factors in the image height
9822         - compute left edge of checkboxes correctly
9823         - when expanding/collapsing move the bottom down one pixel, so we
9824         aren't moving part of the node
9825
9826 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9827
9828         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
9829         stack in PaintEventStart so that it won't get disposed by the gc
9830         before reaching PaintEventEnd.
9831
9832 2006-11-13  Jackson Harper  <jackson@ximian.com>
9833
9834         * TextBoxBase.cs: Don't select the word if we are on a line with
9835         no text.
9836         - We don't need to position the caret on mouse up, since the mouse
9837         move handler should be doing this
9838         - When double clicking a blank line, the caret is advanced to the
9839         next line.
9840
9841 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
9842
9843         * TreeNodeCollection.cs: Avoid duplicating indexer code.
9844
9845 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
9846
9847         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
9848         Fixes part of bug #79910.
9849
9850 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
9851
9852         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
9853           (bug #79903). Some minor string updates to match ms.
9854
9855 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
9856
9857         * FileDialog.cs: Don't add an extension if the filename
9858           already ends with that extension.
9859
9860 2006-11-10  Jackson Harper  <jackson@ximian.com>
9861
9862         * TreeView.cs: Use the currently highlighted node for the
9863         BeforeSelect event.
9864         * TextBoxBase.cs: There is no need to expand selection on
9865         MouseMove.
9866         - CanUndo means 'is there any undo operations', not 'is undo
9867         allowed on this textcontrol. Fixed ClearUndo unit test.
9868
9869 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
9870
9871         * Button.cs: only perform click when button is Selectable (so as 
9872         not to activate default buttons when they're disabled)
9873         
9874         * Control.cs: Rewrite of the SelectNextControl and related 
9875         methods. HandleClick now selects next control if the current one
9876         is being disabled.
9877         
9878         * Form.cs: OnActivated selects next active control only if Load 
9879         has already occurred. If Load hasn't run, there's no point in 
9880         selecting here, Load might change the state of controls.
9881         
9882         * FocusTest.cs: Tests marked as working again for these fixes
9883
9884 2006-11-10  Chris Toshok  <toshok@ximian.com>
9885
9886         * XplatUIX11.cs: a couple of fixes.
9887
9888         - use XInternAtoms with almost all the atoms we need to register,
9889         instead of many, many calls to XInternAtom.  should help a bit on
9890         startup time, at the expense of making the code look a little
9891         worse.
9892
9893         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
9894         isn't reparented (which seems to be a clue that we're running fon
9895         compiz) and they have an Owner form.  This fixes the tool windows
9896         in paint.net when running under compiz.
9897
9898         - when setting the opacity of a window, support both the case
9899         where the window has been reparented and also when it hasn't been.
9900         Since compiz/beryl doesn't seem to reparent windows, and these are
9901         the only window managers which support translucency, I'm not sure
9902         why we need the hwnd.reparented case at all.. but leave it in.
9903         now we get translucent windows in paint.net under compiz/beryl.
9904
9905 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
9906
9907         * FileDialog.cs: Always return the value for FilterIndex that
9908           was set. Internally convert it to values that make sense.
9909
9910 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
9911         
9912         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
9913
9914 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
9915
9916         * Toolbar.cs: Change default value of DropDownArrows to true, the 
9917         signature still using false to make it compatible with MS but the 
9918         initial value is true. Fixes #79855.
9919
9920 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
9921
9922         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
9923           only available on Linux.
9924
9925 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
9926
9927         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
9928         reduce number of calls to redraw method during toolbar creation.
9929
9930 2006-11-09  Mike Kestner  <mkestner@novell.com>
9931
9932         * ListView.cs : raise SelectedIndexChanged when an item is selected
9933         programmatically via the Item.Selected property.  Gert's nice 
9934         ListViewSelectedIndexChanged test fixture now runs clean.
9935
9936 2006-11-09  Mike Kestner  <mkestner@novell.com>
9937
9938         * ListView.cs : raise SelectedIndexChanged when a selected item is
9939         removed from the item collection using Remove or RemoveAt.
9940
9941 2006-11-09  Mike Kestner  <mkestner@novell.com>
9942
9943         * ListView.cs : raise SelectedIndexChanged once per selected item
9944         for compat with MS.  Fixes #79849+.
9945
9946 2006-11-09  Chris Toshok  <toshok@ximian.com>
9947
9948         * TabControl.cs: initialize row_count to 0, and set it to 1 when
9949         we need to (if we have any tab pages).  Fixes unit test.
9950
9951 2006-11-09  Chris Toshok  <toshok@ximian.com>
9952
9953         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
9954         width is 0, not 3.  Fixes a unit test.
9955
9956 2006-11-09  Mike Kestner  <mkestner@novell.com>
9957
9958         * ListView.cs : use Implicit scrollbars so that focus isn't 
9959         stolen from the listview when they are clicked. Fixes #79850.
9960
9961 2006-11-09  Chris Toshok  <toshok@ximian.com>
9962
9963         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
9964         have a root item.  Fixes #79879.
9965
9966 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
9967
9968         * FileDialog.cs:
9969           - Fix ToString ()
9970           - An ArgumentException is now thrown if a wrong filter
9971             is applied (matches ms). The previous filter doesn't change
9972             anymore if an exception is thrown.
9973           - Changing the FileName property also affects FileNames
9974         * ColorDialog.cs: The length of the CustomColors array is always
9975           16. It doesn't matter if we use a smaller array or null to update
9976           or change the custom colors property.
9977         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
9978           for RootFolder if we get a undefined value.
9979
9980 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9981
9982         * StatusBarPanel.cs: 
9983         - Width is set to MinWidth if Width is smaller than
9984         MinWidth. Fixes #79842.
9985         - MinWidth now always overrides Width (MSDN says MinWidth
9986         is set to Width when AutoSize = None, but they do not 
9987         behave like that).
9988         - Style has now the the correct default value.
9989         
9990 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9991  
9992         * TrackBar.cs: 
9993         - The control is completely invalidated on 
9994         Got/LostFocus to draw the focus rectangle correctly.
9995         - When AutoSize then height is always 45 (width for 
9996         vertical controls).
9997         
9998         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
9999         on the mouse when moved and it doesn't move when grabbed
10000         until the mouse moves as well. Also fixed some wrong 
10001         calculations when clicking on the thumb (control thought
10002         click was outside of thumb and didn't grab it).
10003         Fixes some of the issues in #79718.
10004
10005 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
10006
10007         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
10008
10009 2006-11-08  Chris Toshok  <toshok@ximian.com>
10010
10011         * PropertyGridView.cs: only call ToggleValue if the item is not
10012         readonly.
10013
10014 2006-11-08  Jackson Harper  <jackson@ximian.com>
10015
10016         * TextBoxBase.cs: The RichTextBox and textbox have very different
10017         word selection methods.  Implement the textbox's simple word
10018         selection here, and let the RichTextBox override and provide it's
10019         own.
10020         - Don't do extra selection on mouseup
10021         * RichTextBox.cs: Use the documents word selection algorithm, I
10022         think ideally, this function will be pulled into the
10023         RichTextBox.cs code someday.
10024
10025 2006-11-08  Chris Toshok  <toshok@ximian.com>
10026
10027         * RootGridEntry.cs: new class to represent GridItemType.Root.
10028
10029         * CategoryGridEntry.cs: reformat, and add boilerplate.
10030         
10031         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
10032         returns the UI parent anyway, and we need special handling to
10033         implement the GetTarget method in the face of it.  Also, implement
10034         Select().
10035
10036         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
10037         a root grid item, and use that instead of PropertyGrid.grid_items.
10038         Also, make use of TypeConverters (and add limitted support for
10039         ICustomTypeDescriptors) when initially populating the grid.
10040         Arrays now show up more or less properly.
10041
10042 2006-11-08  Chris Toshok  <toshok@ximian.com>
10043
10044         * Application.cs: set the modal dialog to non modal after we close
10045         it.  Fixes bug #79866.
10046
10047 2006-11-08  Jackson Harper  <jackson@ximian.com>
10048
10049         * TextControl.cs: When combining lines carry over the line end
10050         style from the end line.
10051         - Invalidate the selected area when setting it, if it is visible.
10052         * TextBoxBase.cs: Only rich text box can do full line selects.
10053         - Make sure to set the cursor position when there is a click,
10054         otherwise two clicks in separate areas could cause a large chunk
10055         to be selected.
10056
10057 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
10058
10059         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
10060         Fixes #79863.
10061
10062 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
10063
10064         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
10065         time. Remove tooltips when ToolButton click events.  Fixes #79856.
10066
10067 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
10068
10069         * MenuAPI.cs: Ignore right click for menu actions and fixes
10070         menu border when clicked.  Fixes #79846.
10071
10072 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
10073
10074         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
10075         MouseState after create wParam for message, this fixes mouse button 
10076         equal none in mouse up events.
10077         
10078 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
10079
10080         * Control.cs : Focus() now calls Select to set the Container's
10081         Active Control and to give it focus. To avoid infinite recursion
10082         (because ActiveControl also calls Focus at one point), a check 
10083         is made in Focus with the help of a new internal variable
10084         is_focusing.
10085
10086 2006-11-07  Mike Kestner  <mkestner@novell.com>
10087
10088         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
10089         if there's a selection.  Fixes #79849.
10090
10091 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
10092
10093         * PropertyGrid.cs: Avoid fixed height of help description label.
10094         Fixes part of bug #79829.
10095
10096 2006-11-07  Chris Toshok  <toshok@ximian.com>
10097
10098         * XplatUIX11.cs: fix #79790 again, by using the
10099         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
10100
10101 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
10102
10103         * ToolBar.cs: Fix left click checking.
10104
10105 2006-11-07  Chris Toshok  <toshok@ximian.com>
10106
10107         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
10108
10109 2006-11-07  Chris Toshok  <toshok@ximian.com>
10110
10111         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
10112         PropertyManager unit tests.
10113
10114         * PropertyManager.cs: make property_name internal.
10115
10116 2006-11-07  Chris Toshok  <toshok@ximian.com>
10117
10118         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
10119         pass a unit test.  Also, don't set image_index to anything in
10120         response to setting the ImageList property.
10121
10122 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
10123
10124         * ToolBar.cs: Ignore click events when mouse button is not a
10125         left button, only accepts other button for dropdown menus.  
10126         Fixes #79854.
10127
10128 2006-11-07  Chris Toshok  <toshok@ximian.com>
10129
10130         * DataGrid.cs: make the back and parent row buttons a little less
10131         ugly.
10132
10133 2006-11-07  Jackson Harper  <jackson@ximian.com>
10134
10135         * TextBoxBase.cs: When converting to Text don't put line breaks in
10136         for soft line breaks.
10137         * TextControl.cs: There is an initial "fake" line in the document,
10138         this is now a soft break line, so that an extra line feed doesn't
10139         get added to the end of documents.
10140
10141 2006-11-07  Chris Toshok  <toshok@ximian.com>
10142
10143         [ fix bug #79778 ]
10144         
10145         * CurrencyManager.cs: if the list is readonly, don't bother
10146         checking if IBindingList.AllowNew is true.
10147
10148         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
10149         for non-DataRowView datasources..  or rather, make it not crash.
10150         (DataGridPaintRelationRow): make sure we limit the row painting to
10151         the area not covered by the row header, and make our cell width at
10152         least large enough to cover the relation area.  This allows grids
10153         that have relations but no rows to render correctly.
10154         (DataGridPaintRowContents): same type of changes here.
10155         (SetDataSource): move back to always calling
10156         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
10157         navigating back through relations.
10158         (HitTest): handle the case where we have no cells but have
10159         relations.  Right now we generate a hit in cell 0 of whatever the
10160         row is, not sure if this is strictly correct, but it works for our
10161         purposes.
10162         
10163         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
10164         bother doing anything.
10165
10166 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
10167
10168         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
10169         early version of StatusStrip.  Not responsible for eaten
10170         application or firstborn children.
10171
10172 2006-11-06  Chris Toshok  <toshok@ximian.com>
10173
10174         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
10175         call GetTabRect with a -1 index.  Fixes #79847.
10176
10177 2006-11-06  Jackson Harper  <jackson@ximian.com>
10178
10179         * TreeNodeCollection.cs: Update scrollbars after clearing.
10180
10181 2006-11-06  Chris Toshok  <toshok@ximian.com>
10182
10183         * NumericUpDown.cs: fix the ToString method for some unit test
10184         love.
10185
10186 2006-11-06  Chris Toshok  <toshok@ximian.com>
10187
10188         * PropertyGrid.cs:
10189         - set the initial SelectedGridItem if we can.
10190
10191         - Exclude non-mergable properties only if we're merging > 1
10192         object.  Merging 1 object isn't really merging, obviously.
10193
10194         - Handle PropertySort.NoSort just like Alphabetical, which is
10195         wrong of course, but at least gets things on the screen.
10196         
10197         * PropertyGridView.cs:
10198         - Add method "FindFirstItem" which finds the first property grid
10199         item, so we can select it by default.
10200
10201         - make use of GridEntry.CanResetValue.
10202
10203         - Don't call RedrawBelowItemOnExpansion here anymore, the
10204         individual GridEntry's will do that.
10205
10206         - Remove the ITypeDescriptorContextImpl internal class.
10207         
10208         * GridEntry.cs:
10209         - this class needs to implement ITypeDescriptorContext, as it's
10210         what MS's PropertyDescriptorGridEntry does, which means we can
10211         remove the ITypeDescriptorContextImpl internal class from
10212         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
10213
10214         - keep a reference to our PropertyGridView, and move the call to
10215         RedrawBelowItemOnExpansion here from PGV.  This means
10216         programmaticly setting Expanded actually does something visible.
10217
10218         - add a CanResetValue() function which takes into account our
10219         possibly multiple "selected_objects" in the merged case.  Shifting
10220         PropertyGridView to use this method fixes another unreported
10221         crasher found running the test for #79829.
10222
10223         - when Top or Bounds is updated, make sure the PropertyGridTextBox
10224         is updated to reflect this.
10225
10226         * CategoryGridEntry.cs: the ctor takes the PGV now.
10227         
10228 2006-11-06  Jackson Harper  <jackson@ximian.com>
10229
10230         * TextControl.cs: These are 1 based.
10231         * TextBoxBase.cs: When setting the selected text, don't change the
10232         selected text tags, this is done by ReplaceText, just position the
10233         cursor at the end of the new text.
10234
10235 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
10236
10237         * ListView.cs: Allow label edit only when, when LabelEdit is
10238           set to true.
10239
10240 2006-11-06  Jackson Harper  <jackson@ximian.com>
10241
10242         * TextControl.cs: If a suitable wrapping position isn't found,
10243         just wrap right in the middle of a word.
10244
10245 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
10246
10247         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
10248           bug #79820.
10249
10250 2006-11-06  Jackson Harper  <jackson@ximian.com>
10251
10252         * TreeView.cs: Can't use the VisibleCount property when setting
10253         scrollbar heights, because this doesn't take into account whether
10254         or not the horz scrollbar just came visible.
10255
10256 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
10257
10258         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
10259         activated.  Fixes #79369, #79832.
10260
10261 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
10262
10263         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
10264           had to remove support for links that point to a directory. FileInfo
10265           returns no usefull information (means, the directory they point to)
10266           for such links. Replaced some empty string ("") with String.Empty.
10267
10268 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
10269
10270         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
10271         NullReferenceException when attempting to remove node that is not in
10272         collection. Throw NullReferenceException when null is passed to 
10273         Remove. Allow first element of the collection to be removed. Fixes
10274         bug #79831.  In GetEnumerator ().Current return null if positioned 
10275         before the first element of the collection. In GetEnumerator ().Reset,
10276         position before first element of the collection.
10277
10278 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
10279
10280         * PropertyGrid.cs: To match MS, remove default title and description
10281         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
10282         buttons.
10283
10284 2006-11-04  Chris Toshok  <toshok@ximian.com>
10285
10286         * Theme.cs: add a Clamp method, just for kicks.
10287
10288         * ThemeWin32Classic.cs: clamp all color components to [0..255].
10289
10290 2006-11-04  Chris Toshok  <toshok@ximian.com>
10291
10292         * Form.cs: if the form isn't visible, Close() does nothing.
10293
10294 2006-11-03  Chris Toshok  <toshok@ximian.com>
10295
10296         * Form.cs (Close): if the form is modal, don't Dispose of it, only
10297         Hide it.
10298         (WndProc): don't Dispose after handling the WM_CLOSE message.
10299
10300         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
10301         them as such, instead of using casts from Control to Form.  Also,
10302         don't Dispose of the modal dialog when we fall out of the loop -
10303         Close() it instead.
10304
10305         fixes bug #79813.
10306
10307 2006-11-03  Chris Toshok  <toshok@ximian.com>
10308
10309         * Control.cs (Dispose): only go through the dispose thing if we're
10310         @disposing, and we haven't already been disposed.  Fixes bug
10311         #79814.
10312
10313         * Form.cs: no reason to call "base.Dispose()" here instead of
10314         "Dispose()".
10315
10316 2006-11-03  Mike Kestner  <mkestner@novell.com>
10317
10318         * ComboBox.cs : use ToString instead of casts in AddItem for
10319         sorting functionality.  Fixes #79812.
10320
10321 2006-11-03  Chris Toshok  <toshok@ximian.com>
10322
10323         * Application.cs: pave the way for actually using the thread
10324         exception dialog.  it's ifdefed out at the moment.
10325
10326 2006-11-03  Chris Toshok  <toshok@ximian.com>
10327
10328         * ThreadExceptionDialog.cs: until we get a better layout, actually
10329         hide the details textbox and label when we shouldn't see them.
10330
10331 2006-11-03  Jackson Harper  <jackson@ximian.com>
10332
10333         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
10334         multiline textboxes anymore.  This method also determines the
10335         width/height of a textboxes canvas area.
10336         - Sorta a revert of the last patch.  For multiline just position
10337         the controls, then bail.  This way the scrollbar width won't be
10338         altered.
10339
10340 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
10341
10342         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
10343         it dont need.  Fixes #79537.
10344
10345 2006-11-02  Jackson Harper  <jackson@ximian.com>
10346
10347         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
10348         send the status after firing the DndOver event.
10349
10350 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10351
10352         * TrackBar.cs: Now orientation only switches height / width if
10353         the control's handle is created (Win32 does it like this). Also 
10354         fixed a typo in ToString() for a test to pass, changed the 
10355         exception thrown in set_LargeChange and set_SmallChange to 
10356         match Win32 behaviour, and added TrackBar tests to the unit 
10357         tests.
10358
10359 2006-11-02  Chris Toshok  <toshok@ximian.com>
10360
10361         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
10362         not _NET_WM_STATE_NO_TASKBAR.
10363
10364 2006-11-02  Jackson Harper  <jackson@ximian.com>
10365
10366         * TextControl.cs: Increment count by one, since in the update view
10367         count - 1 is used.
10368
10369 2006-11-02  Jackson Harper  <jackson@ximian.com>
10370
10371         * TextBoxBase.cs: Use client rectangle not bounds for checking if
10372         the mouse is in the client rectangle (duh).
10373
10374 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10375         
10376         * TrackBar.cs: Fixed trackbar jumping around when clicking
10377         on it - the trackbar was not detecting correctly at which
10378         side of the thumb the click was done. (fixes #79718)
10379
10380 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
10381
10382         * ListBox.cs: scroll visible area when change SelectedIndex to
10383         a non visible area.  Fixes #79481.
10384
10385 2006-11-01  Jackson Harper  <jackson@ximian.com>
10386
10387         * TextControl.cs: When replacing the selection move the selection
10388         start/end/anchor to the end of the new text.
10389
10390 2006-11-01  Jackson Harper  <jackson@ximian.com>
10391
10392         * XplatUIWin32.cs: When setting the parent change the controls
10393         visibility to it's visibility flag, not to it's old parents
10394         visibility (.Visible walks the parent chain).
10395
10396 2006-11-01  Chris Toshok  <toshok@ximian.com>
10397
10398         * XplatUIX11.cs: revert the #79790 fix, as the simple.
10399         XSetTransientForHint fix breaks paint .net's tool windows.  more
10400         work needed for that one.
10401
10402 2006-11-01  Chris Toshok  <toshok@ximian.com>
10403
10404         * ScrollBar.cs: throw ArgumentException instead of Exception in
10405         LargeChange/SmallChange setters.  fixes unit tests.
10406
10407 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
10408
10409         * ContainerControl.cs: reverted rev.67183 (which was itself
10410         a reversion of rev.66853... eh).
10411         
10412         * Control.cs: Fixes Reflector hang by changing Focus() call
10413         to what it was before rev.66643 (calling Select() here sets 
10414         ActiveControl, which in some situations calls back Focus and 
10415         eventually does a stack overflow). Temp fix.    
10416         Changes to GetNextControl() to not look for children to select when
10417         parent cannot be selectable (so it looks for siblings instead)  
10418         
10419 2006-10-31  Mike Kestner  <mkestner@novell.com>
10420
10421         * CheckedListBox.cs : off by one error in returned index from
10422         ObjectCollection.Add.  Fixes #79758.
10423
10424 2006-10-31  Chris Toshok  <toshok@ximian.com>
10425
10426         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
10427         calls for the textbox/spinner, to keep from recursing to the point
10428         where we crash.  Fixes #79760.
10429
10430 2006-10-31  Chris Toshok  <toshok@ximian.com>
10431
10432         * ListControl.cs (set_SelectedValue): don't throw exceptions on
10433         null/"" value, just return.  matches ms's behavior and fixes some
10434         failing tests.
10435
10436 2006-10-31  Chris Toshok  <toshok@ximian.com>
10437
10438         * Control.cs (set_Capture): make a logic a little easier to
10439         follow.
10440
10441         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
10442         if it's being destroyed.  A necessary fix surely, but a bandaid
10443         also, to fix the stuck capture problem in bug #78413.
10444
10445 2006-10-31  Chris Toshok  <toshok@ximian.com>
10446
10447         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
10448         convention of clearing hwnd.ClientRect when we set the
10449         width/height (so it'll be recalculated by Hwnd).
10450
10451 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
10452
10453         * ContainerControl.cs: reversed Contains check from
10454         ActiveControl due to hanging problems. This fix
10455         partly regresses #79667 (button does not have
10456         initial focus), so this might be a symptom for 
10457         a larger parenting problem (set_ActiveControl
10458         is being called but the child control does
10459         not have the parent set yet?)   
10460         
10461 2006-10-31  Mike Kestner  <mkestner@novell.com>
10462
10463         * MenuAPI.cs : fix keynav when menu is click activated.
10464
10465 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
10466
10467         * ToolStrip*: Version 0.2.
10468
10469         * MenuStrip.cs: Version 0.1.
10470
10471         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
10472
10473 2006-10-30  Chris Toshok  <toshok@ximian.com>
10474
10475         [ fixes the oversized notify icon issue in bug #79745 ]
10476         
10477         * NotifyIcon.cs: scale the icon down to the size we're given by
10478         the XplatUI layer (this would be faster if we did it once instead
10479         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
10480         since it's never invoked.
10481
10482         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
10483         pixels high by default, so let's hardcode our systray icon to that
10484         size.  The SYSTEM_TRAY protocol should really have a way for
10485         client apps to query for the correct icon size.. but oh well.  A
10486         couple of patches to deal with the screwy client_window ==
10487         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
10488         instance, and also make sure we don't XSelectInput twice).
10489
10490 2006-10-30  Chris Toshok  <toshok@ximian.com>
10491
10492         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
10493         recreating forms.  Control recreation is the bane of my existence.
10494         Fix it in a way that keeps everyone happy.
10495
10496 2006-10-30  Chris Toshok  <toshok@ximian.com>
10497
10498         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
10499         just non-CHILD ones.  otherwise sometimes scrollbars end up with
10500         client_windows not being resized to the proper size (ReportBuilder
10501         shows this extremely well).
10502
10503 2006-10-30  Chris Toshok  <toshok@ximian.com>
10504
10505         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
10506         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
10507         showing up in the gnome taskbar.  Fixes bug #79790.
10508
10509 2006-10-30  Chris Toshok  <toshok@ximian.com>
10510
10511         * ApplicationContext.cs: guard against a NRE.
10512
10513         * Application.cs: null out the old MainForm for the context, so we
10514         don't try to use it again once it's disposed.  Fixes bug #79783.
10515
10516 2006-10-30  Chris Toshok  <toshok@ximian.com>
10517
10518         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
10519         BindingContext, set the data source directly, otherwise do the
10520         lazy approach - the actual ListManager will be created when we get
10521         a BindingContext. Fixes bug #79700.
10522
10523 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
10524
10525         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10526           XplatUIX11.cs: Remove old 2 parameter SetVisible.
10527
10528         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
10529
10530 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
10531
10532         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
10533         of SetVisible that allows a window to be shown, but not activated.
10534         This is needed on Windows for MenuStrip, and can probably be used
10535         with MainMenu and ComboBox to fix the focus stealing issues on
10536         Windows.
10537
10538         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
10539
10540 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
10541
10542         * PictureBox.cs: Fix the output of the ToString method.
10543
10544 2006-10-29  Chris Toshok  <toshok@ximian.com>
10545
10546         * Control.cs (get_TopLevelControl): fix bug #79781.
10547
10548 2006-10-29  Chris Toshok  <toshok@ximian.com>
10549
10550         * ListControl.cs (set_DataSource): throw Exception here, not
10551         ArgumentException, to match MS behavior.
10552
10553 2006-10-29  Chris Toshok  <toshok@ximian.com>
10554
10555         * Form.cs: remove the try-catch's around calls to GetWindowState.
10556         We can just check the return value.
10557
10558         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
10559         Instead return -1.
10560
10561         * XplatUI.cs: Add note about additional return value for
10562         GetWindowState.
10563
10564 2006-10-29  Chris Toshok  <toshok@ximian.com>
10565
10566         * Control.cs (CreateHandle): when we create our handle, we also
10567         create the handles of our child controls.  Fixes one of the
10568         Control unit tests (CH11).
10569
10570 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
10571
10572         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
10573
10574 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
10575
10576         * ThemeClearlooks.cs: A little speedup.
10577
10578 2006-10-27  Chris Toshok  <toshok@ximian.com>
10579
10580         * Control.cs: implement Control.FromChildHandle in a way that
10581         matches the docs (and fixes the failed test.)
10582
10583 2006-10-27  Chris Toshok  <toshok@ximian.com>
10584
10585         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
10586         comments).
10587
10588         * DataGrid.cs: implement ResetForeColor such that the tests
10589         succeed.
10590         
10591 2006-10-27  Chris Toshok  <toshok@ximian.com>
10592
10593         * ToolBarButton.cs: setting text/tooltiptext to null results in it
10594         being set to "".  Fixes bug #79759.
10595
10596 2006-10-27  Jackson Harper  <jackson@ximian.com>
10597
10598         * TextControl.cs: We need to clear the entire selection area when
10599         setting the start, otherwise multiline selections are still
10600         visible.
10601
10602 2006-10-26  Chris Toshok  <toshok@ximian.com>
10603
10604         * PropertyGridView.cs: 
10605
10606         - ifdef all the code specific to the double
10607         buffer case, and provide some alternatives in the non-doublebuffer
10608         code, which makes heavy use of XplatUI.ScrollWindow to move things
10609         around without having to invalidate (and cause flicker).  There
10610         are still some drawing problems in the non-doublebuffered case, so
10611         DOUBLEBUFFER is defined by default.
10612
10613         - Fix the way dropdowns are handled.  now we explicitly watch for
10614         the events which might cause the dropdown to close, and break out
10615         of the nested event loop there.  This gets rid of all Capture
10616         code, at the expense of the Msg special casing.  Seems to work,
10617         though, and fixes bug #79743.
10618
10619 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
10620         * Control.cs: SetIsRecreating now recreates implicitly added
10621         child controls as well. Finally fixes #79629. The flag passed to 
10622         SetIsRecreating has also been removed since it wasn't used.
10623         
10624 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10625
10626         * PageSetupDialog.cs: Clean some code, fix some bits, 
10627         add some checks, and add a printer sub-dialog.
10628
10629 2006-10-26  Chris Toshok  <toshok@ximian.com>
10630
10631         * PropertyGrid.cs: make set_SelectedObject call
10632         set_SelectedObjects, and move the duplicate logic to the
10633         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
10634
10635         * PropertyGridView.cs: hide the textbox when we get a
10636         SelectedObjectsChanged event.
10637
10638         Fixes bug #79748.
10639
10640 2006-10-26  Chris Toshok  <toshok@ximian.com>
10641
10642         * PropertyGridView.cs: deal with the type converter not supporting
10643         GetStandardValues() or GetStandardValues() returning null, which
10644         is does in the default case.  Fixes #79742.
10645
10646 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
10647
10648         * CheckedListBox.cs: nunit no longer crashes when selecting 
10649         Project/Edit menu option
10650         
10651 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
10652
10653         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
10654         is no menu selected. fixes #79739
10655
10656 2006-10-25  Chris Toshok  <toshok@ximian.com>
10657
10658         * PropertyGridView.cs: factor out the splitter invalidation code
10659         into the SplitterPercent setter, and for kicks implement the
10660         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
10661         amount in either direction.
10662
10663 2006-10-25  Chris Toshok  <toshok@ximian.com>
10664
10665         * PropertyGridView.cs: do some cleanup of the brush used to draw
10666         text - read only fields should be grayed out.  not sure how to do
10667         this with the textbox, though.  but the textbox's should also be
10668         readonly now at least.  Also, hide/show the textbox when resizing
10669         the control.
10670         
10671         * CursorConverter.cs: use System.Reflection when getting the
10672         properties of Cursors, as TypeDescriptor.GetProperties isn't
10673         returning static properties.
10674
10675 2006-10-25  Chris Toshok  <toshok@ximian.com>
10676
10677         * PropertyGridView.cs: factor out the up/down handling, and reuse
10678         it for page up/down.  also add End/Home support.
10679
10680 2006-10-25  Chris Toshok  <toshok@ximian.com>
10681
10682         * PropertyGridView.cs:
10683
10684         - ensure the selected grid item is visible in the scrolled area,
10685         fixes bug #79572.
10686
10687         - fix Keys.Down handling when you're on the last item in the
10688         propertygrid.
10689
10690 2006-10-25  Mike Kestner  <mkestner@novell.com>
10691
10692         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
10693         clicks too.  Fixes #79725.
10694
10695 2006-10-24  Chris Toshok  <toshok@ximian.com>
10696
10697         * PropertyGrid.cs: use property.Converter instead of
10698         TypeDescriptor.GetConverter(property.PropertyType), so we catch
10699         TypeConverters declared on the property as well as on the
10700         PropertyType.  Fixes bug #79678.
10701
10702 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
10703
10704         * MimeIcon.cs, Mime.cs:
10705           Fallback to the default platform handler if no shared mime info
10706           stuff exists (fixes #79693).
10707
10708 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
10709         * ContainerControl.cs: Incorrect contains check in ActiveControl 
10710         from previous fix (duh).
10711
10712 2006-10-20  Chris Toshok  <toshok@ximian.com>
10713
10714         * PropertyGridView.cs: the dropdown should be MIN(number of items
10715         in list, 15).  Fixes #79551.
10716
10717 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
10718         Fixes #79384, #79394, #79652, #79667
10719         * Application.cs: 
10720         
10721         - Modal windows are now destroyed in the proper order for windows
10722         
10723         * ContainerControl.cs:
10724         
10725         - ActiveControl setter has more conditions on when to return:
10726                 - if we're reselecting the active control, but it actually
10727                 didn't have focus (window hidden or some such), it runs
10728                 - if the active control being selected doesn't actually 
10729                 exist in the container, it returns
10730         
10731         * Form.cs
10732         
10733         - The ShowDialog now gets the current form as the owner when
10734         invoking without parameters, and correctly activates the owner 
10735         when returning
10736         
10737         * MessageBox.cs
10738         
10739         - MessageBox now catches the Escape key to exit
10740
10741 2006-10-20  Chris Toshok  <toshok@ximian.com>
10742
10743         * PropertyGridView.cs: fix a number of issues (bug #78565, and
10744         most of bug #79676):
10745
10746         - you can navigate around the property grid with the arrow keys.
10747
10748         - the dropdown is sized properly when the pg has a vertical
10749         scrollbar.
10750
10751         - fix the indentation for subentries, and properly select the
10752         entire label rect.
10753
10754         - fix the gray bar's drawing (only draw it to the last element,
10755         not for the height of the control.  Also make sure we draw that
10756         last horizontal grid line.
10757
10758         - use the same mechanism the datagrid uses wrt the editing textbox
10759         when scrolling/resizing/etc.  Namely, we hide it first, do the
10760         operation, then show it again (if it's still visible).
10761         
10762         - aggressively remove a lot of unnecessary refreshes (and also
10763         calls to Invalidate(). call more limited variants, and only redraw
10764         what we need.)
10765         
10766         * PropertyGrid.cs:
10767
10768         - when we're populating the merged collection, fill in the UI
10769         parent with either the passed in item, or the category item we
10770         create.
10771
10772         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
10773
10774         * GridItem.cs: drop some fully qualified names.
10775         
10776         * GridEntry.cs: add a "UIParent", which is basically the parent
10777         treenode.
10778
10779         * GridItemCollection.cs: add an IndexOf method.
10780
10781 2006-10-20  Mike Kestner  <mkestner@novell.com>
10782
10783         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
10784         a working win32 NC invalidation mechanism, we can't invalidate
10785         menus.  [Fixes #79705]
10786
10787 2006-10-20  Mike Kestner  <mkestner@novell.com>
10788
10789         * ListBox.cs : don't update the VScrollbar if the list is empty,
10790         just hide it.  [Fixes #79692]
10791
10792 2006-10-20  Jackson Harper  <jackson@ximian.com>
10793
10794         * RichTextBox.cs: Handle some special chars better, and don't skip
10795         the entire group when we encounter a special char that we don't
10796         handle correctly.
10797
10798 2006-10-18  Chris Toshok  <toshok@ximian.com>
10799
10800         * PropertyGridView.cs: address a number of issues from bug #79676,
10801         mostly of the cosmetic variety.
10802
10803         - The highlight rectangle for indented items not extends all the
10804         way to the left.
10805
10806         - Indented items aren't indented so much.
10807
10808         - the dropdown is properly sized width-wise if the pg has a
10809         vertical scrollbar.
10810
10811 2006-10-18  Chris Toshok  <toshok@ximian.com>
10812
10813         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
10814         systray stuff is rather convoluted to begin with.
10815
10816         systray icons are a single window for some reason (that I haven't
10817         figured out yet), and for them, client_window == whole_window.
10818         Given the way the tests are structured elsewhere to determine
10819         which paints are pending (client vs. nc), that situation will
10820         always yield PAINT, not NCPAINT.  So, if we have a pending
10821         nc_expose and no pending expose, remove the hwnd from the paint
10822         queue, and also set nc_expose_pending to false, to keep us from
10823         blocking further expose's adding the hwnd to the paint queue.
10824
10825         phew.  like i said, a rather convoluted change.  Fixes the
10826         notifyicon repaint issues in bug #79645.
10827
10828 2006-10-18  Chris Toshok  <toshok@ximian.com>
10829
10830         * Form.cs: when getting the backcolor of the form, don't get
10831         base.BackColor, as this allows parents to influence the background
10832         color.  This breaks mdi forms.  Instead, if the background_color
10833         is empty, return the default.
10834
10835 2006-10-18  Chris Toshok  <toshok@ximian.com>
10836
10837         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
10838         to being private instead of internal static.
10839
10840         * Control.cs: remove all the stupid ParentWaitingOnRecreation
10841         crap, it wasn't working for more deeply nested controls anyway,
10842         and we already have the is_recreating flag - use that instead.
10843         Before calling DestroyHandle in RecreateHandle, recurse through
10844         the control tree setting it to true.  this returns the recreate
10845         code to much of its original simplicity, while now guaranteeing we
10846         actually recreate everything we're supposed to.  This change gets
10847         fyireporting actually showing mdi children.
10848
10849 2006-10-17  Chris Toshok  <toshok@ximian.com>
10850
10851         * Form.cs: remove some debug spew, and collapse some duplicate
10852         code at the end of SetClientSizeCore.
10853
10854         * XplatUIX11.cs: 
10855         - add some more debug spew here too wrt Destroy handling.
10856         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
10857         in Control's handling of WM_DESTROY.
10858         - Remove the handling of zombie window DestroyNotifies from the
10859         event loop - we don't need it.  Now the only DestroyNotifies we
10860         actually handle are ones generated by X.
10861         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
10862         match gtk's (functioning) handling of this. This keep metacity
10863         from leaving droppings in the form of wm borders with no window
10864         contents all over the place.
10865
10866         * Control.cs:
10867         - add a bunch of debug spew wrt control recreation.
10868         - fix a bug where we weren't tracking Visible properly on
10869         recreated hwnds.
10870         - fixed the WM_PAINT double buffer handling to support re-entrant
10871         calls (yes, i know it's gross, but it's happening to us).
10872
10873 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
10874         * ThemeWin32Classic.cs: changed drawing of selected days
10875         to make them look better.
10876
10877 2006-10-16  Chris Toshok  <toshok@ximian.com>
10878
10879         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
10880         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
10881
10882         * XplatUIX11.cs: move away from using hwnd.client_dc and
10883         hwnd.non_client_dc and on to a stack of dc's (and in window's
10884         case, PAINTSTRUCT's), so we can deal with nested Paint calls
10885         without puking or not disposing of Graphics objects.
10886
10887         * XplatUIOSX.cs: same.
10888
10889         * XplatUIWin32.cs: same.
10890
10891 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
10892
10893         * FileDialog.cs: Don't call on_directory_changed inside
10894           OnSelectedIndexChanged (it changes the SelectedIndex too).
10895           Instead move it to OnSelectionChangeCommitted.
10896
10897 2006-10-13  Chris Toshok  <toshok@ximian.com>
10898
10899         * XplatUIX11.cs: more Destroy work.  the current code does the
10900         following things, in order:
10901
10902         1. Enumerates all handles of all controls at or below the one
10903         being destroyed, in pre-order.  As it is doing this, it marks the
10904         handles as zombie and clears all references to them.
10905         
10906         2. calls XDestroyWindow on the window passed in.
10907
10908         3. SendMessage's WM_DESTROY to all he handles in the accumulated
10909         list.
10910
10911 2006-10-13  Chris Toshok  <toshok@ximian.com>
10912
10913         * XplatUIX11.cs: set hwnd.zombie to true before calling
10914         SendMessage (WM_DESTROY).  this keeps us from marking the new
10915         window a zombie, and also keeps us from calling sendmessage at
10916         all.
10917
10918 2006-10-13  Jackson Harper  <jackson@ximian.com>
10919
10920         * TextControl.cs: Do not show the caret and selection at the same
10921         time.  Reduces ugliness by 35%.
10922
10923 2006-10-13  Chris Toshok  <toshok@ximian.com>
10924
10925         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
10926         zombie after we do the recursive call, so we actually do call
10927         SendMessage on the children controls.
10928         (GetMessage): if we find a pending paint event for a zombie hwnd,
10929         remove the hwnd from the paint queue, or else it will always be
10930         there (and we'll effectively loop infinitely)
10931
10932 2006-10-13  Mike Kestner  <mkestner@novell.com>
10933
10934         * MenuItem.cs : add Selected format under keynav too.
10935         Fixes #79528.
10936
10937 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10938
10939         * PropertyGrid.cs: Fixed some NRE's and small difference between our
10940         implementation and that of MS.
10941
10942 2006-10-13  Chris Toshok  <toshok@ximian.com>
10943
10944         * Control.cs (OnInvalidated) only futz with the invalid_region if
10945         the control is double buffered.  this fixes the apparent hang in
10946         the ListView unit tests.  Someone needs to make the
10947         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
10948
10949 2006-10-13  Chris Toshok  <toshok@ximian.com>
10950
10951         * PropertyGridView.cs:
10952
10953         - do a little refactoring so that only one place calls
10954         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
10955         else call that.  Also make it Refresh, since there are redraw bugs
10956         otherwise (we should take a look at that...)
10957
10958         - do a little more refactoring work to share the body of code
10959         involved with the drop down.  it was duplicated in the code
10960         dealing with the listbox handling and in the code dealing with the
10961         UITypeEditors.
10962
10963         - add a Capture to the dropdown form's control once it's
10964         displayed, and add a MouseDown handler that checks to make sure
10965         the position is inside the control.  If it's not, close the
10966         dropdown.  This fixes #78190.
10967
10968         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
10969         if the value is different than the initial value.
10970         
10971 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
10972
10973         * Control.cs: see #78650
10974         - Fixed GetNextControl for several cases:
10975                 - Changed FindFlatForward to return 
10976                 correct sibling control when more than one
10977                 control has same TabIndex as the currently 
10978                 focused one.
10979                 - Changed FindFlatBackward to loop children
10980                 from last to first and apply same logic as in
10981                 FindFlatForward
10982                 - Changed FindControlForward to search for
10983                 children when control is not a container
10984                 but has children, or search for siblings if
10985                 control is a container...
10986                 - Changed FindControlBackward   to continue
10987                 searching for child controls when hitting 
10988                 Panel-like parents
10989                 
10990         - Fixed Focus method to update ActiveControl
10991         (FocusTest.FocusSetsActive failure)
10992         
10993         * TabControl.cs:
10994         - Focus rectangle now refreshes when gaining
10995         or losing focus
10996         - Removed grab for Tab key on IsInputKey that 
10997         was keeping tab navigation from working (#78650)
10998
10999 2006-10-13  Chris Toshok  <toshok@ximian.com>
11000
11001         * PropertyGridView.cs:
11002         - Rewrite SetPropertyValue to loop over SelectedGridItem's
11003         SelectedObjects.
11004
11005         - Deal with GridItem.Value == null a few places.
11006
11007         * PropertyGrid.cs: 
11008         - replace the PopulateGridItemCollection with a pair of methods
11009         which compute the intersection of all the properties in the
11010         SelectedObjects array.  Fixes #79615.
11011
11012         - Throw ArgumentException from set_SelectedObjects if there's a
11013         null in the array.
11014
11015         - Add GetTarget method which can be used to traverse up the
11016         GridItem.Parent chain.  It depends on the assumption that
11017         selected_objects for different GridEntries are always in the same
11018         order (a safe assumption).  Use this method and loop over all the
11019         selected objects in the entry when calling RemoveValueChanged and
11020         AddValueChanged.
11021         
11022         * GridEntry.cs: Make this handle multiple selected objects.
11023         .Value returns null if not all the selected objects share the same
11024         value.
11025
11026 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
11027         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
11028           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
11029           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
11030           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
11031           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
11032         add additional functionality.
11033
11034 2006-10-12  Mike Kestner  <mkestner@novell.com>
11035
11036         * ErrorProvider.cs : new ToolTipWindow ctor sig.
11037         * HelpProvider.cs : new ToolTipWindow ctor sig.
11038         * ToolTip.cs : remove ToolTip param from Window sig since it is
11039         not used.
11040         * ToolBar.cs : add tooltip support.  Fixes #79565.
11041
11042 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
11043
11044         * ComboBox.cs: move the events in set_SelectedIndex to 
11045         after the call to HighlightIndex in order to avoid 
11046         possible recursion and subsequent problems with the call
11047         to HighlightIndex and include a range check in 
11048         set_HighlightIndex. Fixes #79588
11049         
11050 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
11051
11052         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
11053         to ui thread's settings instead of sunday. 
11054         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
11055
11056 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
11057
11058         * DateTimePicker.cs
11059         * MonthCalendar.cs
11060         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
11061         and implement missing functionality (selecting different parts 
11062         of the date and edit them individually with the keyboard).
11063         
11064 2006-10-11  Chris Toshok  <toshok@ximian.com>
11065
11066         * Control.cs (OnInvalidated): fix NRE relating to last change.
11067
11068 2006-10-11  Chris Toshok  <toshok@ximian.com>
11069
11070         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
11071         atoms in _NET_WM_STATE here if the window is maximized.  We need
11072         to do this because we're *replacing* the existing _NET_WM_STATE
11073         property, so those atoms will be lost otherwise, and any further
11074         call to GetWindowState will return Normal for a window which is
11075         actually maximized.  Fixes #79338.
11076
11077 2006-10-11  Jackson Harper  <jackson@ximian.com>
11078
11079         * TextControl.cs: Special case for setting selection end to
11080         selection start, we basically kill the anchor.
11081         - some todo comments.
11082
11083 2006-10-11  Chris Toshok  <toshok@ximian.com>
11084
11085         * Control.cs: switch to using an "invalid_region" to track which
11086         parts of the image buffer need updating.  This is more code than
11087         the simple fix from r66532.  That version just attempted to always
11088         fill the entire buffer on redraw, which turns out to be
11089         inefficient when invalidating small rectangles.  This version
11090         simply adds the invalid rectangle to the invalid region.  When we
11091         get any WM_PAINT message we see if it can be filled using the
11092         image buffer, and if it can't (if the paint event's clip rectangle
11093         is visible in the invalid region) we first fill the image buffer.
11094         So, the image buffer is still a cache, we just fill it lazily.
11095
11096         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
11097         need it any longer.
11098
11099 2006-10-11  Chris Toshok  <toshok@ximian.com>
11100
11101         * XplatUIX11.cs (SetWindowPos): we need to update both position as
11102         well as size after calling XMoveResizeWindow.  This keeps us from
11103         ignoring future SetWindowPos calls.  Fixes the disappearing
11104         DateTimePicker in the ToolBarDockExample from bug #72499.
11105
11106 2006-10-11  Chris Toshok  <toshok@ximian.com>
11107
11108         * TextBoxBase.cs: reorder things a bit when it comes to
11109         resizing-causing-recalculation.  we were recalculating the
11110         document when our position was changed, which shouldn't happen.
11111         We only care about size changes.  Clear up some more redundant
11112         recalculation calls while I'm at it.  This makes the toolbar dock
11113         example snappy when you're just dragging toolbars around (since it
11114         causes a relayout whenever you move one.)
11115
11116 2006-10-11  Chris Toshok  <toshok@ximian.com>
11117
11118         * ToolBarButton.cs (get_Rectangle): this only returns
11119         Rectangle.Empty if Visible == false, or Parent == null.
11120         Parent.Visible doesn't matter.
11121
11122 2006-10-10  Chris Toshok  <toshok@ximian.com>
11123
11124         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
11125         by .net 1.1, so switch to an internal method instead.
11126
11127 2006-10-10  Chris Toshok  <toshok@ximian.com>
11128
11129         * Control.cs (WM_PAINT): when a control is double buffered we draw
11130         initially to the ImageBuffer and then copy from there.  But when a
11131         parent control which has child controls is double buffered, the
11132         initial drawing doesn't encompass the entire ClientRectangle of
11133         the parent control, so we end up with uninitialized bits (this is
11134         easily seen by dragging the top toolbar in
11135         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
11136         manually set the ClipRectangle of the paint_event (only the one we
11137         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
11138         of the nastiness in bug #72499.
11139
11140         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
11141         which we use in Control.cs's WM_PAINT handling.
11142
11143 2006-10-10  Jackson Harper  <jackson@ximian.com>
11144
11145         * TextBoxBase.cs: Finish off the autoscrolling stuff.
11146
11147 2006-10-10  Chris Toshok  <toshok@ximian.com>
11148
11149         * Cursor.cs: Apply a slightly different patch to the one suggested
11150         in #79609.
11151
11152 2006-10-10  Jackson Harper  <jackson@ximian.com>
11153
11154         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
11155         not the parent form.
11156         * TextControl.cs: use difference in old line count vs new count to
11157         calculate how many lines were added, this takes into account soft
11158         line breaks properly.
11159
11160 2006-10-10  Chris Toshok  <toshok@ximian.com>
11161
11162         * LinkLabel.cs: don't call MeasureCharacterRanges against a
11163         rectangle located at 0,0 and the size of the text.  Use
11164         ClientRectangle instead.  This fixes rendering of non-left aligned
11165         link labels.
11166
11167 2006-10-10  Jackson Harper  <jackson@ximian.com>
11168
11169         * TextBoxBase.cs: When we set the selection start position the
11170         caret.
11171         * TextControl.cs: Need to update the caret when we decrement it to
11172         zero.
11173         - Make sure that the selection_visible flag gets reset to false if
11174         the selection isn't visible.  Before this you could get it set to
11175         visible by changing the selection start, then changing the end to
11176         equal the start.
11177
11178 2006-10-09  Jackson Harper  <jackson@ximian.com>
11179
11180         * TreeView.cs: Don't update scrollbars when we aren't visible.
11181         * TreeNodeCollection.cs: Only need to update scrollbars if being
11182         added to an expanded visible node or the root node.
11183
11184 2006-10-09  Chris Toshok  <toshok@ximian.com>
11185
11186         * XplatUIX11.cs (SendMessage): fix NRE.
11187
11188 2006-10-09  Jackson Harper  <jackson@ximian.com>
11189
11190         * TextBoxBase.cs: Implement horizontal autoscrolling.
11191         * TextControl.cs: Add a movement types that allows moving forward
11192         and backwards without wrapping.
11193
11194 2006-10-09  Mike Kestner  <mkestner@novell.com>
11195
11196         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
11197         with focus "expansion" of labels.  Fixes #79532 and then some.
11198         * ThemeWin32Classic.cs : add LineLimit to ListView label format
11199         when wrapping.
11200
11201 2006-10-09  Jackson Harper  <jackson@ximian.com>
11202
11203         * TextBoxBase.cs: Set the default max values to MaxValue since
11204         we use the scrollbar for autoscrolling and the default value is
11205         100.  If we don't do this the caret won't keep up with typing
11206         after about 18 characters.
11207         * TextControl.cs: Make sure the selection is offset by the
11208         viewport x.  This fixes selection when using auto scrolling.
11209
11210 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
11211         
11212         * Form.cs: The active control should be selected after the 
11213         OnLoad so that any child control initialization that affects
11214         the selection is done. Fixes #79406
11215
11216 2006-10-06  Chris Toshok  <toshok@ximian.com>
11217
11218         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
11219         to have no evil effects.
11220
11221         - Stop selecting StructureNotifyMask on non-toplevel windows.
11222
11223           The only way children should be resized is by using the SWF api,
11224           and we already send WM_WINDOWPOSCHANGED messages in those cases.
11225           Toplevel windows can be interacted with via the window manager,
11226           and so we keep the input mask there.
11227
11228           The other event StructureNotifyMask gives us (that we care
11229           about) is DestroyNotify.  The code is already structured such
11230           that it assumes we won't be getting a DestroyNotify event for
11231           the window we pass to XDestroyWindow (which is what
11232           StructureNotifyMask is supposed to guarantee.)  So, that code
11233           shouldn't be affected by this either.
11234
11235         - Stop selecting VisibilityChangeMask altogether.
11236
11237           We weren't doing anything with the resulting events anyway.
11238         
11239         This vastly reduces the number of X requests and events we see
11240         when resizing/laying out a large ui.
11241
11242 2006-10-06  Chris Toshok  <toshok@ximian.com>
11243
11244         * ScrollableControl.cs (DisplayRectangle): we need to take into
11245         account the DockPadding regardless of whether or not auto_scroll
11246         == true.  rework this slightly to this effect, and fix bug #79606,
11247         and part of #72499 (you can now see the drag handles and drag
11248         toolbars around).
11249
11250 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
11251
11252         * ListViewItem.cs: Collections of selected and checked items are now
11253         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
11254         we mark the collection "dirty".
11255         * ListView.cs: Marked collections readonly. Modified UpdateSelection
11256         to only clear SelectedItems when a new item is selected and MultiSelect
11257         is enabled. CheckedItems and SelectedItems now subscribe to Changed
11258         event of ListViewItemCollection, and mark its list dirty whenever
11259         that event is fire. This allows us to return selected/checked items 
11260         in the same order as they are in the Items collection. This matches
11261         the MS behavior.
11262
11263 2006-10-06  Chris Toshok  <toshok@ximian.com>
11264
11265         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
11266         right mouse clicks.  Fixes bug #79593.
11267
11268 2006-10-06  Chris Toshok  <toshok@ximian.com>
11269
11270         * Splitter.cs: doh, fix splitters that don't want to cancel the
11271         movement when you drag them.  Also, impose the limits on the
11272         values we send to the SplitterMovingEvent.  Fixes #79598.
11273
11274 2006-10-06  Jackson Harper  <jackson@ximian.com>
11275
11276         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
11277         since we use this for auto scrolling also.
11278
11279 2006-10-05  Chris Toshok  <toshok@ximian.com>
11280
11281         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
11282         beginning to think that most datagrid column types don't need this
11283         method.  Fixes bug #79392.
11284
11285 2006-10-05  Chris Toshok  <toshok@ximian.com>
11286
11287         * DataGrid.cs: move back to a more lazy scheme for creating the
11288         CurrencyManager, so we aren't updating it every time you set
11289         either DataSource or DataMember.  Also, don't call
11290         RecreateDataGridRows if the currency manager hasn't changed.
11291
11292 2006-10-05  Chris Toshok  <toshok@ximian.com>
11293
11294         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
11295         emitted, SelectedIndex should already be updated.  Fixes bug
11296         #78929.
11297
11298 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
11299
11300         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
11301           ToolStripTextBox.cs: Initial commit.
11302         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
11303
11304 2006-10-05  Jackson Harper  <jackson@ximian.com>
11305
11306         * TabControl.cs: We need to invalidate the tab control area when
11307         new ones are added (duh).
11308
11309 2006-10-03  Chris Toshok  <toshok@ximian.com>
11310
11311         * Form.cs (ProcessDialogKey): if the focused control is in this
11312         form and is a button, call its PerformClick method here.  Fixes
11313         #79534.
11314
11315 2006-10-04  Jackson Harper  <jackson@ximian.com>
11316
11317         * TabPage.cs: Ignore setting of Visible, and add an internal
11318         method for setting the controls visibility.  TabPage's Visible
11319         property is a little strange on MS, this seems to make us
11320         compatible, and fixes cases where people set all the tab pages to
11321         visible.
11322         * TabControl.cs: Use the new internal setting on tab pages
11323         visibility.
11324
11325 2006-10-03  Mike Kestner  <mkestner@novell.com>
11326
11327         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
11328
11329 2006-10-03  Mike Kestner  <mkestner@novell.com>
11330
11331         * ListView.cs : use is_visible instead of Visible to check if 
11332         scrollbars should be placed/sized.  Also some max_wrap_width
11333         love for LargeIcon view.  [Fixes #79533]
11334
11335 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
11336
11337         * TextControl.cs :
11338           Make set_TextAlign() do actually update the align. Fixed #78403.
11339
11340 2006-10-03  Chris Toshok  <toshok@ximian.com>
11341
11342         * DataGrid.cs: fix a crash when switching datasources if the
11343         vertical scrollbar is at someplace other than Value = 0.  Also,
11344         reduce the number of recalculation passes we do in SetDataSource
11345         from 2 to 1.
11346
11347 2006-10-03  Jackson Harper  <jackson@ximian.com>
11348
11349         * TextBoxBase.cs: Move the if value the same bail check up, we
11350         don't want to empty the document if it is already empty, this
11351         seems to severly mess up the caret.  TODO: I should probably fix
11352         the empty statement to update teh caret somehow.
11353
11354 2006-10-03  Chris Toshok  <toshok@ximian.com>
11355
11356         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
11357         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
11358         reflection, an internal row type, properties on said type, etc.)
11359         will work with our datagrid.  Fixes #79531.
11360
11361 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
11362
11363         * FileDialog.cs: Don't crash if a path is not accessible
11364           (System.UnauthorizedAccessException). Fixes #79569.
11365         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
11366           a ':' too. Return unknown icon for those paths/files.
11367
11368 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
11369
11370         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
11371         GetContainerControl returns null.
11372
11373 2006-10-02  Chris Toshok  <toshok@ximian.com>
11374
11375         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
11376         call to XGetWindowAttributes instead of "handle".  fixes an X
11377         error using notifyicon after the NotifyIconWindow to Form base
11378         class switch.
11379
11380 2006-10-02  Chris Toshok  <toshok@ximian.com>
11381
11382         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
11383         server grab and looping we need to do to get down to the most
11384         deeply nested child window.
11385         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
11386         QueryPointer again after the WarpPointer so we can generate a
11387         proper (fake) MotionNotify event to be enqueued in the destination
11388         window's queue.
11389         (GetCursorPos): call QueryPointer.
11390
11391         Fixes #79556.
11392
11393 2006-10-02  Jackson Harper  <jackson@ximian.com>
11394
11395         * NotifyIcon.cs: Derive the notify icon from a form, so things
11396         like FindForm work on it.
11397         - Swallow the WM_CONTEXTMENU message, since that is generated on
11398         mouse down, and context menu is a mouse up kinda guy.  I believe
11399         the correct fix here is probably to make the notify icon entirely
11400         NC area, but this seems to work fine for anyone not manipulating
11401         WndProc.
11402
11403 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
11404
11405         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
11406           ToolStripItemCollection.cs, ToolStripLabel.cs,
11407           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
11408           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
11409           Initial implementation.
11410         * TextRenderer.cs: Provide padding to MeasureText.
11411
11412 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
11413
11414         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
11415         of ButtonBaseAccessibleObject. Fix bug #79552.
11416
11417 2006-10-02  Jackson Harper  <jackson@ximian.com>
11418
11419         * MdiWindowManager.cs: When maximizing use the containers client
11420         rect, not it's bounds, so nc area is accounted correctly.
11421         - Use the parent form's size for the menu position, since the
11422         client isn't always the full form size.
11423
11424 2006-10-01  Chris Toshok  <toshok@ximian.com>
11425
11426         * ScrollableControl.cs: make sure neither right_edge or
11427         bottom_edge are < 0, since they're used as LargeChange for the
11428         horiz/vert scrollbars respectively.  Fixes #79539.
11429
11430 2006-10-01  Chris Toshok  <toshok@ximian.com>
11431
11432         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
11433         the xplatuix11 code can cause us to destroy/recreate our handle.
11434
11435         * XplatUIX11.cs
11436         (SystrayAdd):
11437         - this code can be invoked many times for the same Hwnd.  Make
11438           sure we only destroy the client window once (the first time this
11439           method is called).  This fixes bug #79544.
11440         - Remove the call to the improperly bound XSync.  why we had two
11441           bindings to this, I will never know, but this call resulted in
11442           events being discarded from the queue(!).
11443         - correct a misunderstanding of _XEMBED_INFO - the second atom is
11444           not our current state but the state we wish to be in.  So, 0 if
11445           we don't want to be mapped.  Change it to 1.
11446         (SystrayRemove): The XEMBED spec makes mention of the fact that
11447         gtk doesn't support the reparent of client windows away from the
11448         embedder.  Looking at gtksocket-x11.c seems to agree with this.
11449         The only avenue we have for removing systray icons is to destroy
11450         them.  We don't want the handle to go away for good, though, so
11451         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
11452         #79545.
11453         
11454 2006-10-01  Chris Toshok  <toshok@ximian.com>
11455
11456         * Form.cs (WndProc): inline the native_enabled variable usage into
11457         the cases in which it's used.  Fixes #79536.
11458
11459 2006-09-29  Mike Kestner  <mkestner@novell.com>
11460
11461         * ListView.cs : toggle the selection state for ctrl clicks in 
11462         multiselect mode. [Fixes #79417]
11463
11464 2006-09-29  Mike Kestner  <mkestner@novell.com>
11465
11466         * ListView.cs : kill CanMultiSelect and refactor the selection
11467         code to support multiselection in the absence of mod keys. Steal
11468         arrow/home/end keys by overriding InternalPreProcessMessage to
11469         restore regressed keynav behavior.
11470         [Fixes #79416]
11471
11472 2006-09-29  Jackson Harper  <jackson@ximian.com>
11473
11474         * MdiClient.cs: Repaint the titlebars when the active window is
11475         changed.
11476
11477 2006-09-29  Chris Toshok  <toshok@ximian.com>
11478
11479         * Application.cs: when entering a runloop with a modal, make sure
11480         the hwnd is enabled.  Fixes #79480.
11481
11482 2006-09-29  Chris Toshok  <toshok@ximian.com>
11483
11484         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
11485         when ListManager.CanAddRows == false, bump us back one.
11486
11487         * DataGridColumnStyle.cs (ParentReadOnly): remove the
11488         listmanager.CanAddRows check.  This makes ArrayLists uneditable
11489         using a datagrid, which is not right.
11490         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
11491         is an IEditable, but call property_descriptor.SetValue regardless.
11492         fixes #79435.
11493
11494 2006-09-29  Chris Toshok  <toshok@ximian.com>
11495
11496         * DataGridBoolColumn.cs: we need to test equality in the face of
11497         possible null values (as is the case with the default NullValue).
11498         This patch keeps us from crashing in that case.
11499
11500 2006-09-29  Jackson Harper  <jackson@ximian.com>
11501
11502         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
11503         here, since it will get called for every node collection in the
11504         tree. This is now done in the treeview once the sorting is
11505         finished.
11506         * TreeView.cs: Recalculate the visible order, and update the
11507         scrollbars after sorting, set the top nope to the root so that the
11508         recalc actually works.
11509
11510 2006-09-29  Chris Toshok  <toshok@ximian.com>
11511
11512         * LinkLabel.cs: more handling of the default link collection in
11513         the face of LinkArea manipulation.  The default link collection
11514         contains 1 element (start=0,length=-1).  If the user sets LinkArea
11515         to anything and the links collection is the default, clear it.
11516         Then only add the link if its nonempty.  Fixes #79518.
11517
11518 2006-09-29  Chris Toshok  <toshok@ximian.com>
11519
11520         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
11521         piece correctly when we hit a '\n'.  Fixes #79517.
11522
11523 2006-09-29  Chris Toshok  <toshok@ximian.com>
11524
11525         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
11526         change the binding of gdk_init_check to take two IntPtr's, and
11527         pass IntPtr.Zero for both of them.  Fixes #79520.
11528
11529 2006-09-29  Mike Kestner  <mkestner@novell.com>
11530
11531         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
11532         [Fixes #78779]
11533
11534 2006-09-28  Jackson Harper  <jackson@ximian.com>
11535
11536         * XplatUIX11.cs: When translating NC messages make sure we go from
11537         whole window to screen, not client window to screen.
11538         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
11539         method doesn't exist
11540         - Skip over controls that aren't forms when arranging.
11541
11542 2006-09-28  Jackson Harper  <jackson@ximian.com>
11543
11544         * XplatUIWin32.cs: Clip the rect to the parent window.
11545         * XplatUIStructs.cs: Add clipping modes struct.
11546         * InternalWindowManager.cs: New private method that factors title
11547         bar heights in when calculating the pos of an NC mouse message.
11548         - Use SendMessage to force a paint when the form's size is changed
11549         instead of painting the decorations immediately.
11550         - Don't let the NC button click messages get to DefWndProc,
11551         because they will attempt to handle windowing themself, and this
11552         messes up z-order (it will put them in front of the scrollbars).
11553         * XplatUIX11.cs: Make sure that we don't reset window managers if
11554         we already have one (ie the window is an MDI window).
11555
11556 2006-09-28  Chris Toshok  <toshok@ximian.com>
11557
11558         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
11559         menu code really needs going over.
11560
11561 2006-09-27  Chris Toshok  <toshok@ximian.com>
11562
11563         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
11564         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
11565         window is maximizable.  So, we need to make sure that even if we
11566         clear the border/wm frame of those functions, they're still
11567         available (basically, we remove the decoration without removing
11568         the function).  Half the fix for #79338.
11569
11570 2006-09-27  Chris Toshok  <toshok@ximian.com>
11571
11572         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
11573         Fixes bug #79515.
11574
11575 2006-09-27  Chris Toshok  <toshok@ximian.com>
11576
11577         * Splitter.cs: reorder things a bit so that we don't actually
11578         draw/move the splitter until after calling OnSplitterMoving.  This
11579         lets users cancel/disallow the movement by explicitly setting
11580         event.SplitX/SplitY.  Fixes #79372.
11581
11582 2006-09-27  Jackson Harper  <jackson@ximian.com>
11583
11584         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
11585         because it is most likely on a window being destroyed, and that
11586         will give us an X11 error.
11587
11588 2006-09-27  Chris Toshok  <toshok@ximian.com>
11589
11590         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
11591         the dropdown button now toggles between showing and hiding the
11592         dropdown.  Also, get rid of dropdown_form_showing and just use
11593         dropdown_form.Visible.  We still don't do a grab, but I'll leave
11594         that part to someone who has handled Capture-fu before.
11595
11596 2006-09-27  Chris Toshok  <toshok@ximian.com>
11597
11598         * DataGrid.cs: return false if alt isn't pressed when '0' is
11599         pressed.  this keeps the '0' key from being swallowed, and fixes
11600         bug #79350.
11601
11602 2006-09-27  Chris Toshok  <toshok@ximian.com>
11603
11604         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
11605         Calling Refresh (in response to a scrollbar event) screws up the
11606         scrollbar painting.  Fixes bug #78923.
11607
11608 2006-09-27  Chris Toshok  <toshok@ximian.com>
11609
11610         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
11611         then insert into hashtable" blocks threadsafe.
11612
11613 2006-09-27  Chris Toshok  <toshok@ximian.com>
11614
11615         * MessageBox.cs (CreateParams): the styles should be |'ed with our
11616         baseclass's, since otherwise the
11617         ControlBox/MinimizeBox/MaximizeBox assignments above have no
11618         effect.  This gets the close button back in messageboxes.
11619
11620 2006-09-27  Chris Toshok  <toshok@ximian.com>
11621
11622         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
11623         flag, not just != 0.  this makes flags that are actually multiple
11624         bits (like WS_CAPTION) work.  fixes bug #79508.
11625
11626 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
11627
11628         * PageSetupDialog.cs: add support for getting and settings the 
11629         paper size, source and orientation.
11630
11631 2006-09-26  Chris Toshok  <toshok@ximian.com>
11632
11633         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
11634         and caption == "", we need to remove the resize handles as well as
11635         the title bar.
11636
11637         * Control.cs (set_Text): turns out that setting Text on a form
11638         should change the WM styles on the window, since if ControlBox ==
11639         false, the only way to get a window border is to have a non-""
11640         Text property.  check winforms/forms/text.cs for an example.  so,
11641         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
11642         update both window styles and title.  This fixes a lot of dialogs
11643         (including the preferences dialog in MonoCalendar.)
11644
11645 2006-09-26  Chris Toshok  <toshok@ximian.com>
11646
11647         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
11648         control isn't a Form), call Win32ShowWindow to hide the window,
11649         but don't update the control Visible property.  When we reparent
11650         back to a parent control, call SetVisible in order for the
11651         window's visibility to be reinstated.
11652
11653         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
11654         the FosterParent.
11655
11656         * Control.cs (ControlCollection.Remove): remove that value.Hide()
11657         call for good, since it breaks MonoCalendar (and other things I'm
11658         sure.) Also, set all_controls to null *after* the owner calls,
11659         which end up regenerating it.
11660         (ChangeParent): allow new_parent to be == null, passing
11661         IntPtr.Zero down to XplatUI.
11662
11663         this fixes #79294 the right way.
11664
11665 2006-09-26  Mike Kestner  <mkestner@novell.com>
11666
11667         * GridEntry.cs : internal SetParent method.
11668         * PropertyGrid.cs : attach to property changed on the proper
11669         target if we have a hierarchical grid with subobjects. Setup
11670         GridItem.Parent for hierarchical items.
11671         * PropertyGridView.cs : Set value on the correct target for
11672         hierarchical grids. [Fixes #78903]
11673
11674 2006-09-26  Chris Toshok  <toshok@ximian.com>
11675
11676         * Control.cs (ChildNeedsRecreating): this should return true if
11677         either we're being recreated and the child is in our list, or our
11678         parent is waiting for our recreation.
11679
11680 2006-09-26  Chris Toshok  <toshok@ximian.com>
11681
11682         * Control.cs (ControlCollection.Remove): reinstate the
11683         value.Hide() call as suggested in bug #79294.
11684
11685 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
11686
11687         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
11688         coordinates (versus a relative move).
11689
11690 2006-09-26  Chris Toshok  <toshok@ximian.com>
11691
11692         * Control.cs: rework child recreation a little bit.  It turns out
11693         that we race between the DestroyNotify the WM_DESTROY message.  If
11694         the parent gets its DestroyNotify before the child gets the
11695         WM_DESTROY message, the child ends up not recreating (since the
11696         parent finishes its recreation on DestroyNotify, and the child
11697         checks ParentIsRecreating.)
11698
11699         So, instead we store off a list of all the child controls which
11700         need to be recreated when the parent control starts to recreate
11701         itself.  Then, when child controls get their WM_DESTROY message we
11702         check to see if they're in the parent's pending recreation list,
11703         and if so, we recreate.  This removes all dependency on ordering
11704         from the code and fixes the initial MonoCalendar upgrade dialog.
11705         
11706 2006-09-26  Jackson Harper  <jackson@ximian.com>
11707
11708         * TextControl.cs: Use the Line to get the length of the line,
11709         since soft line breaks can change the end line.
11710
11711 2006-09-26  Chris Toshok  <toshok@ximian.com>
11712
11713         * Control.cs (ControlCollection.AddImplicit): don't add the
11714         control again if it's already in one of our lists.  This keeps us
11715         from adding controls over and over again for comboboxes when their
11716         handle gets recreated (as the combobox adds implicit controls in
11717         OnHandleCreated).  Fixes the X11 errors in bug #79480.
11718
11719 2006-09-26  Jackson Harper  <jackson@ximian.com>
11720
11721         * TextControl.cs: When deleting characters make sure that any
11722         orphaned zero lengthed tags get deleted.
11723         - Fix ToString for zero lengthed tags.
11724
11725 2006-09-25  Jackson Harper  <jackson@ximian.com>
11726
11727         * TextControl.cs: When getting a tag at the location there can be
11728         multiple tags at the same spot, these are 0-lengthed tags that
11729         appear when extra formatting has been stuck in a location.  We
11730         need to pull out the last of these 0 lengthed tags.
11731
11732 2006-09-25  Jackson Harper  <jackson@ximian.com>
11733
11734         * TextControl.cs: Fix print out in debug method.
11735         * TextBoxBase.cs: When text is set bail if we are setting to the
11736         previous value.
11737         
11738 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
11739
11740         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
11741           It is now possible to change the selected index in a FontXXXListBox
11742           with the up and down arrow keys from the FontXXXTextBoxes.
11743           Also, send the FontXXXTextBox mouse wheel event to the corresponding
11744           FontXXXListBoxes to match ms.
11745
11746 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
11747
11748         * SystemInformation.cs: Return a clone of the theme's MenuFont because
11749         anyone can dispose it, anytime. All other properties returns enums, 
11750         structs or basic types so they don't need such tricks.
11751
11752 2006-09-22  Jackson Harper  <jackson@ximian.com>
11753
11754         * XplatUI.cs:
11755         * XplatUIWin32.cs:
11756         * Clipboard.cs:
11757         * DataFormats.cs:
11758         * XplatUIOSX.cs:
11759         * XplatUIDriver.cs: Update interface to add a primary selection
11760         flag, so the driver can use the primary selection buffer if
11761         needed.
11762         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
11763
11764         * RichTextBox.cs: We need to supply the data object to paste now
11765         (so we can choose to supply CLIPBOARD or PRIMARY).
11766         * TextBoxBase.cs: Supply data object to paste (see above).
11767         - Middle click uses the primary selection data object.
11768         
11769 2006-09-21  Chris Toshok  <toshok@ximian.com>
11770
11771         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
11772         of SetWMStyles.  It's still a rat's nest and is largely
11773         order-dependent which I dislike immensely.  This also fixes the X
11774         button disappearing from toplevel forms.
11775
11776 2006-09-21  Mike Kestner <mkestner@novell.com>
11777
11778         * ListBox.cs: move Jordi's click/dblclick raising code to the
11779         mouse up handler.
11780
11781 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
11782
11783         * ListBox.cs: Fixes 79450
11784
11785 2006-09-21  Mike Kestner <mkestner@novell.com>
11786
11787         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
11788         to deal with people updating the TreeNodeCollection after the tree
11789         is disposed.  "Fixes" 79330.
11790
11791 2006-09-20  Jackson Harper <jackson@ximian.com>
11792
11793         * TextControl.cs: Push the cursor record onto the undo stack
11794         before the delete action. This fixes 78651.
11795
11796 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
11797
11798         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
11799         CreateParams. Fixes 79329.
11800
11801 2006-09-19  Chris Toshok  <toshok@ximian.com>
11802
11803         * XplatUIX11.cs: a couple of blanket code massage passes to clean
11804         things up a bit.  First, get rid of the NetAtoms array (and the NA
11805         enum), and just embed the atoms as static fields.  Also, add a
11806         couple of functions (StyleSet and ExStyleSet) to clean up all the
11807         bitmask testing of styles.
11808
11809         * X11Structs.cs: remove the NA enum, not needed anymore.
11810         
11811 2006-09-19  Chris Toshok  <toshok@ximian.com>
11812
11813         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
11814         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
11815         added cleanup to get MessageBox titles appearing again, which were
11816         broken by my earlier fix for caption-less/ControlBox-less windows.
11817
11818 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
11819
11820         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
11821           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
11822           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
11823           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
11824           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
11825           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
11826           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
11827           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
11828           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
11829           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
11830           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
11831             Inital import.
11832         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
11833           ToolStripButton.cs: Stubs needed for above.
11834         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
11835
11836 2006-09-15  Chris Toshok  <toshok@ximian.com>
11837
11838         * XplatUIX11.cs:
11839         - make the MessageQueues hashtable Synchronized.
11840         
11841         - SendMessage: if the Hwnd is owned by a different thread, use the
11842         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
11843         thread.  Fixes bug #79201.
11844
11845 2006-09-15  Chris Toshok  <toshok@ximian.com>
11846
11847         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
11848         ControlBox == false, we disallow maximize/minimize/close.  If the
11849         form Caption is "" we also disallow move (and get rid of the Title
11850         decoration).  Unfortunately, regardless of how things are set,
11851         we're stuck with the Title and WM menu.
11852
11853 2006-09-15  Chris Toshok  <toshok@ximian.com>
11854
11855         * Application.cs: add locking around the static message_filters
11856         ArrayList, part of #79196.
11857
11858 2006-09-15  Chris Toshok  <toshok@ximian.com>
11859
11860         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
11861         Form.ControlBox == false, the window has no titlebar nor resize
11862         handles.  fixes bug #79368.
11863
11864 2006-09-15  Chris Toshok  <toshok@ximian.com>
11865
11866         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
11867         >= 0.  Fixes bug #79370.
11868
11869 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
11870         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
11871         * Control.cs:
11872             Add properties: LayoutEngine, Margin, DefaultMargin.
11873             Add method: GetPreferredSize.
11874             Move layout logic from PerformLayout to layout engines. 
11875
11876 2006-09-13  Chris Toshok  <toshok@ximian.com>
11877
11878         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
11879         fix for #79326 broke #78718, so this change addresses that.
11880
11881         - in SendWMDestroyMessages remove the call to
11882         CleanupCachedWindows, since we might be recreating the control and
11883         need to maintain the references to right Hwnd handles.  Also, set
11884         the zombie flag to true for each of the children in the hierarchy
11885         instead of calling hwnd.Dispose.  This will cause GetMessage to
11886         ignore all events for the window except for DestroyNotify.
11887
11888         - In GetMessage, ignore messages except for DestroyNotify for
11889         zombie hwnds.
11890         
11891         * Control.cs: revert the is_recreating fix from the last
11892         ChangeLog.  It's definitely "right", but it breaks switching from
11893         an MDI form to a non-MDI form.  Will need to revisit that.
11894
11895         * Hwnd.cs: add a zombie flag, which means "the
11896         client_window/whole_window handles are invalid, but we're waiting
11897         for the DestroyNotify event to come in for them".  Set the flag to
11898         false explicitly if setting WholeWindow/ClientWindow, and also
11899         when Disposing.
11900         
11901 2006-09-13  Chris Toshok  <toshok@ximian.com>
11902
11903         * XplatUIX11.cs: rework window destruction slightly.
11904
11905         - when destroying the windows associated with a control, we don't
11906         need 2 separate XDestroyWindow calls.  Just the one for the
11907         whole_window (or for client_window if whole_window is somehow
11908         IntPtr.Zero -- can this happen?) is enough.
11909
11910         - reworked SendWMDestroyMessages slightly, so we always dispose
11911         the child control hwnd's after sending the messages.
11912         
11913         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
11914         the two places it was used (one was even using hwnd.Handle and the
11915         other hwnd.client_window.  ugh), adding another call in
11916         SendWMDestroyMessages.  We need this new call because now the
11917         DestroyNotify events in the queue will be ignored for the child
11918         controls (as their hwnd's were disposed, and the window id's
11919         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
11920
11921         - this fixes bug #79326.
11922
11923 2006-09-13  Chris Toshok  <toshok@ximian.com>
11924
11925         * Control.cs: don't always set is_recreating to false at the end
11926         of RecreateHandle, since sometimes we're not done (and won't be
11927         until WndProc handles the WM_DESTROY message).  Also, set
11928         is_recreating to false in the WM_DESTROY handling code.  Part of
11929         the fix for bug #79326.
11930
11931 2006-09-13  Miguel de Icaza  <miguel@novell.com>
11932
11933         * X11DesktopColors.cs: Start the droppage of debugging messages.
11934
11935         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
11936
11937 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
11938
11939         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
11940
11941 2006-09-12  Chris Toshok  <toshok@ximian.com>
11942
11943         * DataGrid.cs (get_ListManager): if the list_manager is null, try
11944         to create it using SetDataSource.  Fixes bug #79151.
11945
11946 2006-09-11  Chris Toshok  <toshok@ximian.com>
11947
11948         * XEventQueue.cs: add a DispatchIdle property.
11949
11950         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
11951         either the queue is null, or the queue has DispatchIdle set to
11952         true.
11953         (DoEvents): set queue.DispatchIdle to false around the
11954         peek/translate/dispatch message loop in this method.  This keeps
11955         Application.Doevents from emitting idle events.  Part of the fix
11956         for #78823.
11957
11958 2006-09-11  Chris Toshok  <toshok@ximian.com>
11959
11960         * DataGrid.cs (set_DataSource): make this work for both the
11961         winforms/datagrid test and ReportBuilder.  It seems as though when
11962         we've created a ListManager (or maybe it's if we have a
11963         BindingContext?), when we set the DataSource it clears the
11964         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
11965         #79333.
11966
11967 2006-09-11  Chris Toshok  <toshok@ximian.com>
11968
11969         * XplatUIX11.cs: deal with queue being null, which happens in all
11970         the Clipboard functions.  Fixes one of the two problems mentioned
11971         in #78612.
11972
11973 2006-09-11  Chris Toshok  <toshok@ximian.com>
11974
11975         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
11976         button on various spots (including outside the menu) works closer
11977         to MS, and doesn't crash.  Fixes #79343.
11978
11979 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
11980
11981         * ListView.cs: Do not initialize item_sorter in init. To match MS,
11982         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
11983         and the internal comparer is set. When a new ListViewItemSorter is set,
11984         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
11985         was specified. No further processing is necessary if SortOrder is set
11986         to it's current value. If Sorting is modified to None, and View is
11987         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
11988         (either custom or our internal ItemComparer) to null, on 1.0 profile
11989         only set item_sorter to null if its our internal IComparer. If Sorting
11990         is modified to Ascending or Descending, then use our internal IComparer
11991         if none is set, and if the current IComparer is our internal one then:
11992         on 2.0 profile always replace it with one for new Sorting, and on 1.0
11993         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
11994         Enum.IsDefined to verify whether a valid View value is specified in
11995         its setter. Automatically sort listview items when listview is
11996         created. In Sort, do nothing if ListView is not yet created, or if
11997         no item_sorter is set (no Sorting was set, Sorting was explicitly set
11998         to None or ListViewItemSorter was set to null). Added Sort overload
11999         taking a bool to indicate whether the ListView should be redrawn when
12000         items are sorted (we use this in ListViewItemCollection to avoid double
12001         redraws). Modified our internal IComparer to take the sort order into
12002         account. In Add and AddRange methods of ListViewItemCollection, also
12003         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
12004         view), but use overload with noredraw option to avoid double redraw.
12005         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
12006         true when View is Tile, and do the same when attempting to set View to
12007         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
12008         for selected/checked indices, as it involves overhead when sorting is
12009         done while these collections are not used all that often. Instead
12010         we'll build the indices on demand. Modified IList implementation of
12011         CheckedIndexCollection to use public methods if object is int.
12012         Modified CheckedListViewItemCollection to hide checked items if
12013         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
12014         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
12015         IList implementation in SelectedIndexCollection to use public methods
12016         if object is int. Modified SelectedListViewItemCollection to hide
12017         selected items if listview is not yet created.
12018         * ListViewItem.cs: CheckedIndices list no longer needs to be
12019         maintained separately (see ListView changes). Also clone font, fixes
12020         test failure.
12021
12022 2006-09-11  Mike Kestner  <mkestner@novell.com>
12023
12024         * ComboBox.cs: if we are updating the contents of the currently
12025         selected index, refresh the control or the textbox selection.
12026         [Fixes #79066]
12027
12028 2006-09-11  Mike Kestner  <mkestner@novell.com>
12029
12030         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
12031         the 'specified' logic has been moved there.  This seems like a bug 
12032         in Control.cs, since our current SetBoundsCore completely ignores 
12033         the specified parameter.  Peter's commit seems to indicate that is 
12034         the way the MS control implementation works.  [Fixes #79325]
12035
12036 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
12037
12038         * XplatUI.cs: Set default_class_name to be composed
12039         of current domain id. This allows MWF to be loaded in multiple
12040         domains on Win32.
12041
12042 2006-09-09  Miguel de Icaza  <miguel@novell.com>
12043
12044         * X11Keyboard.cs: If we are unable to obtain the input method, do
12045         not call CreateXic to create the input context.   Should fix
12046         #78944/79276.
12047
12048 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
12049
12050         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
12051           Simplified gnome support by adding more pinvokes to get the
12052           icon for a file or mime type.
12053
12054 2006-09-08  Jackson Harper  <jackson@ximian.com>
12055
12056         * MenuAPI.cs: Deslect popup context menu items before closing the
12057         window, so that you don't see the previously selected item
12058         selected when you reopen the menu.
12059         * TextControl.cs: Update the cursor position even if we don't have
12060         focus.  This fixes typing in things like the ComboBox.  I'm not
12061         totally sure we should always set the visibility if we don't have
12062         focus, but couldn't find any corner cases where the cursor showed
12063         up when it shouldn't.
12064
12065 2006-09-08  Chris Toshok  <toshok@ximian.com>
12066
12067         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
12068         our arrays are length 256.  & 0xff before indexing.  Fixes the
12069         crash in bug #78077.
12070         
12071 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12072
12073         * ThemeWin32Classic.cs: 
12074         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
12075         is true. Handle that check box too.
12076
12077 2006-09-07  Chris Toshok  <toshok@ximian.com>
12078
12079         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
12080         79244.
12081
12082 2006-09-07  Chris Toshok  <toshok@ximian.com>
12083
12084         * Control.cs: in set_BackColor only do the work if
12085         background_color != value.
12086
12087         * XplatUIX11.cs: move the clearing of invalid areas (both client
12088         and nc) to the same block of code where we set (nc_)expose_pending
12089         to false.  That is, move it from PaintEventEnd to PaintEventStart,
12090         so things that cause invalidates from within OnPaint will trigger
12091         another call to OnPaint.  Fixes bug #79262.
12092
12093 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
12094
12095         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
12096         * FileDialog.cs: Fix typo
12097
12098 2006-09-07  Jackson Harper  <jackson@ximian.com>
12099
12100         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
12101         for tab pages if they have any.
12102
12103 2006-09-06  Mike Kestner  <mkestner@novell.com>
12104
12105         * Splitter.cs: use the "current" rect when finishing drag handle
12106         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
12107
12108 2006-09-06  Mike Kestner  <mkestner@novell.com>
12109
12110         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
12111         support offset splitters. [Fixes #79298]
12112
12113 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
12114
12115         * Mime.cs: Fixed a bug that could override the global mime type
12116           result.
12117
12118 2006-09-05  Jackson Harper  <jackson@ximian.com>
12119
12120         * TabControl.cs: Better calculation method for setting the slider
12121         pos. Prevents crashes on really wide tabs.
12122         - Draw Image on tab pages if an image list is used.
12123
12124 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12125
12126         * MonthCalendar.cs: When Font changes, the Size should be
12127         updated to fit the new font's space requirements.
12128
12129 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
12130
12131         * ListBox.cs: If the items are cleared with Items.Clear set
12132           top_index to 0.
12133
12134 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12135
12136         * MonthCalendar.cs: Handle arrow keys as input keys. Also
12137         fire DateChanged event instead of DateSelected event when
12138         the date was changed by keyboard interaction.
12139
12140 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12141
12142         * DateTimePicker.cs: Handle DateChanged for the associated
12143         month_calendar control, and set month_calendar.Font from 
12144         OnFontChanged method, as well as resize the height of the
12145         control when needed. Make PreferredHeight proportional.
12146
12147 2006-09-01  Chris Toshok  <toshok@ximian.com>
12148
12149         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
12150         properties.
12151
12152         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
12153
12154 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
12155
12156         * FileDialog.cs: Set ClientSize instead of window size, to allow space
12157           for decorations (Fixes #79219)
12158
12159 2006-09-01  Mike Kestner  <mkestner@novell.com>
12160
12161         * ComboBox.cs: first stab at sorting plus some selection handling
12162         fixes to bring us more in line with MS behavior.  Also switches back
12163         to index based selection.  Alternative patches for index-based 
12164         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
12165         and latency@gmx.de on bug 78848.  I assume they were similar to this
12166         code I've had simmering in my tree forever.
12167         [Fixes #78848]
12168
12169 2006-09-01  Chris Toshok  <toshok@ximian.com>
12170
12171         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
12172         when setting list position guard against ending up with a -1 index
12173         (the other part of the fix for #78812).  Should probably make sure
12174         we don't need the analogous fix in the ItemDeleted case.
12175
12176         * DataGrid.cs:
12177         - in SetDataSource, work around the fact that the way
12178         OnBindingContextChanged is invoked will cause us to re-enter this
12179         method.  I'll remove the hack once I investigate
12180         OnBindingContextChanged.
12181
12182         - fix the logic in set_DataSource and set_DataMember (basically
12183         what to do if the other of the two is null.)
12184         
12185         - in OnListManagerItemChanged, we need to take into account the
12186         edit row when deciding whether or not to call RecreateDataGridRows
12187         (part of the fix for #78812).
12188
12189 2006-09-01  Jackson Harper  <jackson@ximian.com>
12190
12191         * Splitter.cs: Don't do anything if there is no control to affect
12192         (prevents us from crashing in weird tet cases).
12193         * TreeView.cs: Bounding box for the mouse movement reverting
12194         focus/selection back to previously selected node.  This matches
12195         MS, and makes the tree a lot more useable.
12196         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
12197         use clipping so they are not drawn.  This fixes when the control
12198         is set to have a transparent background, or if it was over an
12199         image.
12200
12201 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
12202
12203         * MimeIcon.cs: Improved handling for reading default icons when
12204           using gnome (2.16 made it necessary). Check and read svg icons
12205           first, then 48x48 and then 32x32 icons.
12206
12207 2006-08-31  Chris Toshok  <toshok@ximian.com>
12208
12209         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
12210         visible.
12211
12212         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
12213         ProcessKeyPreview.  Fixes part of #77806.
12214
12215         * DataGrid.cs: big patch.
12216
12217         - revert the queueing up of DataSource/DataMember if inside
12218         BeginInit/EndInit calls.  That's not the way the datagrid achieves
12219         its delayed databinding.  Instead, call SetDataSource in
12220         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
12221         #78811.
12222
12223         - Also, it wasn't mentioned in #78811, but the test case exhibits
12224         behavior that was lacking in our datagrid implementation - Columns
12225         that have mapping names that don't exist in the datasource's
12226         properties aren't shown.  Yuck.  To fix this I added the bound
12227         field to the column style, and basically any calculation to figure
12228         out anything about columns uses a loop to find the bound columns.
12229         still need to investigate if I can cache an array of the bound
12230         columns or if the indices must be the same.
12231
12232         - When setting CurrentCell, we no longer abort if the cell being
12233         edited was in the add row.  This fixes the other part of #77806.
12234
12235         - The new code also fixes #78807.
12236         
12237         * ThemeWin32Classic.cs: perpetrate the same disgusting
12238         column.bound field hack, and only render bound fields.
12239
12240 2006-08-31  Chris Toshok  <toshok@ximian.com>
12241
12242         * DataGridColumnStyle.cs: add bound field.  this field is true if
12243         the datasource has a property corresponding to the mapping name.
12244
12245         * DataGridTableStyle.cs: set the bound field on the column styles
12246         depending on whether or not we have a column for that property.
12247
12248 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
12249
12250         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
12251           splitter control (fixes #79228)
12252
12253 2006-08-31  Chris Toshok  <toshok@ximian.com>
12254
12255         * DataGridColumnStyle.cs: we need to delay the assignment of
12256         property descriptor until the last possible moment due to the lazy
12257         databinding stuff in the datagrid.  Also, fix the exceptions
12258         thrown by CheckValidDataSource to match MS.
12259
12260 2006-08-31  Jackson Harper  <jackson@ximian.com>
12261
12262         * Form.cs: When activated select the active control, if there is
12263         no active control, we select the first control.
12264         * XplatUIX11.cs: If there is no focus control when we get a
12265         FocusIn event, find the toplevel form and activate it.  This
12266         occurs when you popup a window, it becomes the focus window, then
12267         you close that window, giving focus back to the main window.
12268
12269 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12270
12271         * MonthCalendar.cs: 
12272         * ThemeWin32Classic.cs: Cache Font in bold style, as well
12273         as StringFormat with Center alignments in MonthCalendar,
12274         instead of creating new ones when drawing the control. 
12275         Also, draw the month name in bold style.
12276
12277 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
12278
12279         * Control.cs:
12280           - PerformLayout(): It would seem MS performs the fill even if the 
12281             control is not visible (part of #79218 fix)
12282           - ResetBackColor(): Use the setter to reset the color, to allow
12283             overriders to catch the change.
12284         * Form.cs:
12285           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
12286           - CreateHandle(): dito (part of $79218 fix)
12287           - Don't set an icon if we have a dialog
12288         * ScrollableControl.cs:
12289           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
12290           - ScrollIntoView(): No need to scroll if control is already visible
12291             (resolves fixme and fixes #79218)
12292
12293 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12294
12295         * MonthCalendar.cs: Change proportions in SingleMonthSize
12296         to match the aspect of the original control.
12297
12298 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
12299
12300         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
12301           get updated when they get maximized.
12302
12303 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
12304
12305         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
12306
12307 2006-08-29  Chris Toshok  <toshok@ximian.com>
12308
12309         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
12310
12311 2006-08-29  Jackson Harper  <jackson@ximian.com>
12312
12313         * TreeView.cs: Need to track selected node and highlighted node,
12314         they aren't always the same thing, when the mouse is down on a
12315         node it is hilighted, but not selected yet.
12316         - Do the HideSelection stuff right
12317         - Need to focus on rbutton mouse down. And redraw selection when
12318         right click is mouse upped.
12319
12320 2006-08-29  Mike Kestner  <mkestner@novell.com>
12321
12322         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
12323         when SubItems.Count < Columns.Count.  [Fixes #79167]
12324
12325 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
12326
12327         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
12328
12329 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
12330
12331         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
12332           from X. Only send based on ConfigureNotify if we don't have the
12333           correct location in hwnd (if the window manager moved us)
12334
12335 2006-08-28  Mike Kestner  <mkestner@novell.com>
12336
12337         * ListView.cs: remove a TODO. 
12338         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
12339         [Fixes ListView part of #79166]
12340
12341 2006-08-28  Mike Kestner  <mkestner@novell.com>
12342
12343         * ListView.cs: move wheel handler to parent since it is focused
12344         instead of the item_control now.  [Fixes #79177]
12345
12346 2006-08-28  Mike Kestner  <mkestner@novell.com>
12347
12348         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
12349         when the control is focused. [Fixes #79171]
12350
12351 2006-08-28  Mike Kestner  <mkestner@novell.com>
12352
12353         * ListView.cs: size the item and header controls for empty and
12354         unscrollable views.
12355         * ThemeWin32Classic.cs: draw disabled backgrounds.
12356         [Fixes #79187]
12357
12358 2006-08-28  Chris Toshok  <toshok@ximian.com>
12359
12360         * Form.cs: remove unused "active_form" static field.
12361
12362         * Hwnd.cs: lock around accesses to static windows collection.
12363
12364         * Application.cs: lock threads in Exit ().
12365
12366 2006-08-28  Chris Toshok  <toshok@ximian.com>
12367
12368         * NativeWindow.cs: lock around accesses to window_collection.
12369         
12370 2006-08-28  Chris Toshok  <toshok@ximian.com>
12371
12372         * Control.cs: err, fix this the right way, by locking on controls
12373         when using it.  not by making it synchronized.
12374
12375 2006-08-28  Chris Toshok  <toshok@ximian.com>
12376
12377         * Control.cs: make the static "controls" field synchronized, as it
12378         gets updated from multiple threads.
12379
12380 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
12381
12382         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
12383           Prevent other threads from exiting when calling thread sets quit state.
12384         * XEventQueue.cs: Added PostQuitState property
12385
12386 2006-08-27  Chris Toshok  <toshok@ximian.com>
12387
12388         * AsyncMethodData.cs: add a slot for the window handle.
12389
12390         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
12391         window (the destination control's window, not the foster window).
12392
12393         * Control.cs (BeginInvokeInternal): store the window's handle in
12394         the AsyncMethodData.
12395         
12396
12397 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
12398
12399         * XplatUIX11.cs:
12400           - PostQuitMessage: Removed resetting S.D display handle, we might have
12401             another loop started after calling PostQuitMessage (Fixes #79119)
12402           - Created destructor to reset S.D handle
12403
12404 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
12405
12406         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
12407
12408 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12409
12410         * TextControl.cs (Insert): Update the caret position even if we don't
12411           have a handle yet, just don't call the driver in that case.
12412         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
12413           to the end of the new selection text (Fixes #79184)
12414
12415 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12416
12417         * Form.cs (Activate): Only activate if the handle is created)
12418         * Control.c:
12419           - Mark window as invisible when it's disposed
12420           - Check if window handle is created when setting window visible, 
12421             instead of relying just on the is_created variable
12422           - Check if object is disposed when creating the control (Fixes #79155)
12423
12424 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12425
12426         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
12427           when allowing layout again. Otherwise we re-generate the anchoring 
12428           distance to the border again and actually alter what the user wanted
12429           This is ugly, it'd be better if we used DisplayRectangle instead of
12430           ClientRectangle for Control.UpdateDistances, but that causes us to
12431           have other problems (initial anchoring positons would be wrong)
12432           (Fixes #78835)
12433
12434 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12435
12436         * Control.cs:
12437           - The size and location setters shouldn't go directly to 
12438             SetBoundsCore, but to SetBounds, which triggers layout on the
12439             parent, then calls SetBoundsCore. (Related to fix for #78835)
12440           - SetBounds: Moved actual location update code into this function
12441             from SetBoundsCore, to match MS. Added call to PerformLayout if
12442             we have a parent (to trigger resizing of anchored parents if the 
12443             child size has changed (see testcase for #78835) 
12444         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
12445           new control code
12446         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
12447
12448 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12449
12450         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
12451           System.Drawing when a toplevel window gets closed; there might
12452           be other toplevel windows belonging to the same app (Fixes #78052)
12453
12454 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
12455
12456         * FileDialog.cs: After reading FileDialog settings from mwf_config
12457           use Desktop prefix only if a real folder doesn't exist anymore.
12458         * FontDialog.cs: Added char sets.
12459           It is now possible to select the font, size or style with the
12460           textboxes.
12461
12462 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
12463
12464         * PrintPreviewDialog.cs: Use assembly name constants.
12465
12466 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12467
12468         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
12469           scrollbar from whacking it's buttons)
12470
12471 2006-08-24  Chris Toshok  <toshok@ximian.com>
12472
12473         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
12474         in this patch (aggregating setting Left/Top/Width/Height to
12475         setting Bounds on the scrollbars), but the crux of the fix is in
12476         Recalculate, where we scroll by the remaining scroll_position if
12477         we're hiding a scrollbar.  The 2*$5 reward in the comment is
12478         serious.
12479
12480 2006-08-24  Jackson Harper  <jackson@ximian.com>
12481
12482         * MdiClient.cs:
12483         * MdiWindowManager.cs: If the form is made a non-mdi window we
12484         need to remove the form closed event so that closing forms works
12485         correctly.
12486
12487 2006-08-24  Jackson Harper  <jackson@ximian.com>
12488
12489         * Control.cs: Make IsRecreating internal so that the driver can
12490         check it
12491         - Temporarily remove the Hide when controls are removed, its
12492         making a whole bunch of things not work because visibility isn't
12493         getting reset elsewhere correctly
12494         * Form.cs: Need to do a full handle recreation when the mdi parent
12495         is set.
12496         * XplatUIX11.cs: If we are recreating handles don't dispose the
12497         HWNDs.  What was happening is the handles were being recreated in
12498         SendWMDestroyMessages, but then flow continued on in that method
12499         and destroyed the new handles.
12500
12501 2006-08-23  Jackson Harper  <jackson@ximian.com>
12502
12503         * Form.cs: MdiClient is always at the back of the bus
12504         * Control.cs: When the order of items in the collection is changed
12505         we need to reset the all_controls array
12506         - do the same sorta setup thats done when adding a control when a
12507         control is set on the collection.
12508
12509 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
12510
12511         * TextBoxBase.cs (get_Text): Return an empty array if our document
12512           is empty (fixes #79052)
12513
12514 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12515
12516         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
12517           on WM_SYSCHAR messages (fixes #79053)
12518
12519 2006-08-23  Chris Toshok  <toshok@ximian.com>
12520
12521         * DataGrid.cs: fix flickering when scrolling vertically.
12522
12523 2006-08-23  Chris Toshok  <toshok@ximian.com>
12524
12525         * DataGrid.cs (EndEdit): only invalidate the row header when we
12526         need to.
12527
12528 2006-08-23  Chris Toshok  <toshok@ximian.com>
12529
12530         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
12531         methods.  fixes the flicker when scrolling around.
12532
12533 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12534
12535         * FileDialog.cs: Making sure the control is created before we get a 
12536           chance to use it with BeginInvoke (Fixes #79096)
12537
12538 2006-08-23  Chris Toshok  <toshok@ximian.com>
12539
12540         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
12541         width to use when painting the rows.
12542
12543 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12544
12545         * TextBoxBase.cs:
12546           - Throw ArgumentException if a negative value is passed to SelectionLength
12547           - Update the selection end if start is moved. end needs to be always
12548             after start. (Fixes #79095)
12549           - Track selection length; MS keeps the selection length even if start
12550             is changed; reset on all other operations affection selection
12551
12552 2006-08-22  Jackson Harper  <jackson@ximian.com>
12553
12554         * TreeView.cs: Make sure both scrollbars get displayed and sized
12555         correctly when the other bar is visible.
12556         - Use the original clip rectangle for checking if the area between
12557         the two scrollbars is visible, not the viewport adjusted clipping
12558         rectangle.
12559
12560 2006-08-22  Jackson Harper  <jackson@ximian.com>
12561
12562         * Binding.cs: We don't use IsBinding because it requires the
12563         control to be created, which really shouldn't be necessary just to
12564         set a property on the control.
12565
12566 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12567
12568         * ComboBox.cs: Some CB.ObjectCollection methods must throw
12569         ArgumentNullReferenceException when the argument is null.
12570
12571 2006-08-21  Jackson Harper  <jackson@ximian.com>
12572
12573         * Timer.cs: Track the thread that the timer is started in (NOT
12574         CREATED), this way messages for it will only be triggered on its
12575         queue.
12576         * XEventQueue.cs: Track the timers here, this makes timers per
12577         thread, like MS.
12578         * XplatUIX11.cs: The timers are moved to the XEventQueue.
12579
12580 2006-08-19  Chris Toshok  <toshok@ximian.com>
12581
12582         * XplatUIX11.cs: after further communication with pdb, we get the
12583         best of both worlds.  SetZOrder working for un-Mapped windows, and
12584         no X errors for un-mapped windows.
12585
12586 2006-08-19  Chris Toshok  <toshok@ximian.com>
12587
12588         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
12589         as it was causing pdn toolbars to not have the correct stacking.
12590
12591 2006-08-18  Mike Kestner  <mkestner@novell.com> 
12592
12593         * ListView.cs : guard against negative ClientArea.Width in scrollbar
12594         calculation.  Not sure why control should ever be setting a negative
12595         width though.  Fixes #78931.
12596
12597 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12598
12599         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
12600         null items in ObjectCollection class.
12601         * ListBox.cs.: Likewise.
12602
12603 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
12604
12605         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
12606           as the base method in ThemeWin32Classic should work fine.
12607           Fixed bug #78607.
12608
12609 2006-08-18  Jackson Harper  <jackson@ximian.com>
12610
12611         * Binding.cs: When validating if the value entered doesn't convert
12612         properly reset to the old value.
12613         * RadioButton.cs: Don't fire click when we get focus.
12614
12615 2006-08-18  Jackson Harper  <jackson@ximian.com>
12616
12617         * FileDialog.cs: Paint the selection on the directory combobox the
12618         same way as on MS. 
12619
12620 2006-08-17  Jackson Harper  <jackson@ximian.com>
12621
12622         * ErrorProvider.cs: Don't allow the error control to be selected.
12623         * Control.cs: Don't send the SetFocus messages, the control
12624         activation will do this, and if we do it blindly here validation
12625         does not work.
12626
12627 2006-08-17  Jackson Harper  <jackson@ximian.com>
12628
12629         * Control.cs:
12630         * ContainerControl.cs: Make validation events fire in the correct
12631         order.  TODO: For some reason the first validation event is not
12632         getting fired.
12633
12634 2006-08-17  Mike Kestner  <mkestner@novell.com> 
12635
12636         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
12637
12638 2006-08-17  Mike Kestner  <mkestner@novell.com> 
12639
12640         * ComboBox.cs : implement scroll wheel support for popped-down
12641         state. Fixes #78945. 
12642
12643 2006-08-17  Jackson Harper  <jackson@ximian.com>
12644
12645         * TreeView.cs: Specify treeview actions (old patch that didn't get
12646         committed for some reason).
12647         - Don't let the mouse wheel scroll us too far.  Just want to make
12648         the bottom node visible, not scroll it all the ways to the top.
12649
12650 2006-08-17  Jackson Harper  <jackson@ximian.com>
12651
12652         * XplatUIX11.cs: Mouse wheel events go to the focused window.
12653
12654 2006-08-17  Mike Kestner  <mkestner@novell.com> 
12655
12656         * ComboBox.cs : don't do mouseover selection in simple mode.
12657
12658 2006-08-16  Jackson Harper  <jackson@ximian.com>
12659
12660         * Form.cs: Fire the closing events for all the mdi child windows
12661         when a window is closed.  If the cancel args are set to true, the
12662         main window still gets the event fired, but it doesn't not close.
12663         * MdiWindowManager.cs: Do this closing cleanup in a Closed
12664         handler, instead of when the button is clicked, so cancelling the
12665         close works correctly.
12666         * ComboBox.cs: Send the mouse down to the scrollbar.
12667
12668 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12669
12670         * ListBox.cs: When passing 'null' to SelectedItem,
12671         set SelectedIndex to -1, to unselect items. This is the
12672         observed behaviour in .Net.
12673
12674 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
12675
12676         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
12677           MS flags saying there won't be any. (fixes #78800)
12678         * Control.cs (HandleClick): Made virtual
12679
12680 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
12681
12682         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
12683           cultures. Fixed bug #78399.
12684
12685 2006-08-16  Jackson Harper  <jackson@ximian.com>
12686
12687         * Form.cs: Use the MdiClients MdiChildren property to access
12688         MdiChildren instead of creating the array from the child controls.
12689         * MdiClient.cs: Maintain a separate array of the mdi children, so
12690         that insertion order is maintained when the Z-order is changed.
12691
12692 2006-08-16  Mike Kestner  <mkestner@novell.com> 
12693
12694         * ListView.cs : add an ItemComparer and default to it for sorting.
12695         Fixes #79076, but sorting needs a complete overhaul to be compat with
12696         MS.
12697
12698 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
12699
12700         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
12701
12702 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
12703
12704         * Hwnd.cs (Mapped): Properly traverse the tree
12705
12706 2006-08-15  Chris Toshok  <toshok@ximian.com>
12707
12708         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
12709         pass manager.Current.GetType() to ParseData.  It has to be the
12710         property type.  So, hold off doing the ParseData until we're in
12711         SetPropertyValue where we know the type.  This fixes the crash in
12712         #78821 but the textbox is still empty.
12713
12714 2006-08-15  Chris Toshok  <toshok@ximian.com>
12715
12716         * DataGrid.cs:
12717         - when we're scrolling, only call Edit() again if the
12718         current cell is still unobscured. Fixes bug #78927.
12719         - when handling mousedown on a cell, ensure the cell is visible
12720         before calling Edit.
12721         - remove the properties from DataGridRow, and remove the
12722         DataGridParentRow class altogether.
12723         
12724
12725 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
12726
12727         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
12728           fire OnTextChanged by ourselves. There's no point calling base,
12729           we don't set the base value anywhere else. Fixes #78773.
12730
12731 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12732
12733         * ListBox.cs: Call CollectionChanged when modifying
12734         an item from Items indexer, to update the actual items
12735         in the list box.
12736
12737 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12738
12739         * PrintDialog.cs: Small fixes for focus and a pair of checks,
12740         to match .Net behaviour.
12741
12742 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
12743
12744         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
12745
12746 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
12747
12748         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
12749
12750 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
12751
12752         * MessageBox.cs: Prevent potential NRE exception.
12753         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
12754
12755 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
12756
12757         * MessageBox.cs: Calculate the owner of a messagebox, also make
12758           it topmost. Fixes #78753
12759
12760 2006-08-14  Chris Toshok  <toshok@ximian.com>
12761
12762         * XplatUIX11.cs: A couple of fixes so that metacity will let us
12763         programmatically move windows.  first, set the PPosition hint as
12764         well as the USPosition hint.  Second include some code from pdb
12765         that sets the window type to NORMAL when we set the transient for
12766         hint.  This is because, in the absence of a window type, metacity
12767         thinks any window with TransientFor set is a dialog, and refuses
12768         to let us move it programmatically.  fascists.
12769
12770 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
12771
12772         * XplatUIX11.cs: When setting normal hints, take into consideration
12773           an different hints previously set so we don't delete them (fixes #78866)
12774
12775 2006-08-12  Chris Toshok  <toshok@ximian.com>
12776
12777         * ToolBarButton.cs: make Layout return a boolean, if something to
12778         do with the button's layout changed.
12779
12780         * ToolBar.cs:
12781         - add another parameter to Redraw, @force, which all existing
12782           calls set to true.
12783         - make the Layout function return a boolean which is true if the
12784           layout has actually changed.  Redraw now uses this (and @force)
12785           to determine when to invalidate.  At present the only place
12786           where @force can be false is the call from OnResize, when
12787           background_image == null.  So, resizing a toolbar when the
12788           layout doesn't change results in no drawing.
12789
12790 2006-08-12  Chris Toshok  <toshok@ximian.com>
12791
12792         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
12793         the VScrollBar and HScrollbar reversed.  oops.
12794
12795         * DataGrid.cs: fix the logic that assigns sizes to the implicit
12796         scrollbars.  we were assigning them twice (once in
12797         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
12798         therefore causing two scrollbar resizes (and redraws?) to happen
12799         per grid resize.
12800
12801 2006-08-12  Chris Toshok  <toshok@ximian.com>
12802
12803         * ToolBarButton.cs: redraw the entire button if the theme tells us
12804         to.
12805
12806         * Theme.cs: add ToolBarInvalidateEntireButton.
12807
12808         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
12809         buttons, just the border.
12810
12811         * ThemeNice.cs: redraw the entire toolbar button since we need to
12812         draw the highlight image.
12813
12814         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
12815         we need to redraw the entire button (not just the border).
12816
12817 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
12818
12819         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
12820           for vertical bars. Fixes the mismatches shown by #78513
12821
12822 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
12823
12824         * FileDialog.cs: If a saved/remembered path doesn't exist
12825           anymore, fall back to "Desktop".
12826
12827 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
12828
12829         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
12830           parent. It's apparently legal to not have one
12831         * XplatUIX11.cs:
12832           - SetZOrder: Don't try to set Z-Order on an unmapped window
12833           - CreateWindow: 0,0 are legal coordinates for a window. don't move
12834             it unless the coordinates are negative
12835
12836 2006-08-10  Mike Kestner  <mkestner@novell.com>
12837
12838         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
12839         when setting to null per msdn docs.  Fixes #78854.
12840
12841 2006-08-10  Chris Toshok  <toshok@ximian.com>
12842
12843         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
12844         flickering by setting a clip rectangle on the Graphics when we
12845         need to redraw just a particular menuitem.  Also, rename "OnClick"
12846         to "OnMouseDown" to reflect what it actually is.
12847         
12848         * Form.cs: track the OnMouseDown change.
12849
12850 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
12851
12852         * CommonDialog.cs: Properly inherit the CreateParams from the form
12853           and only change what we need. Fixes #78865
12854
12855 2006-08-10  Chris Toshok  <toshok@ximian.com>
12856
12857         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
12858         flickering in flat mode (and most of the flickering in general) by
12859         only invalidating the button border (and not the entire rectangle)
12860         when the state changes.  A couple of cases still flicker:
12861         ToggleButtons, and the dropdown arrow case when the user mouse
12862         ups.
12863
12864 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
12865
12866         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
12867           for german keyboards. Numlock state shouldn't affect the behaviour
12868           of the Del key. Fixes bug #78291.
12869
12870 2006-08-10  Chris Toshok  <toshok@ximian.com>
12871
12872         * ListControl.cs: remove the items.Clear line from BindDataItems,
12873         as this is the first thing done by both subclasses in their
12874         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
12875         passed -1, refresh the list.  This gets databinding working when
12876         the datasource is set on the list before the datasource is
12877         populated (as in wf-apps/ReportBuilder.)
12878
12879         * ComboBox.cs: remove the argument to BindDataItems.  This call
12880         should really go away, and be initiated by the ListControl code.
12881
12882         * ListBox.cs: same.
12883
12884 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
12885
12886         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
12887           if no data is in the document when the control is displayed
12888
12889 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
12890
12891         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
12892           yes (fixes #78806)
12893         * TextControl.cs: 
12894           - PositionCaret: Allow positioning of caret but don't call methods 
12895             requiring a handle if the window isn't created yet
12896           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
12897           - owner_HandleCreated: Don't position the caret, just update it's 
12898             location. User might have already set a different position
12899
12900 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
12901
12902         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
12903           windows. Screws up the returned coordinates for child windows. 
12904           Fixes #78825. I'm hoping this doesn't break something, since the
12905           code was explicitly put in 8 months ago, but no bug was attached.
12906           Menus still seem to work properly.
12907
12908 2006-08-08  Chris Toshok  <toshok@ximian.com>
12909
12910         * DataGrid.cs: make BeginInit/EndInit actually do what they're
12911         supposed to do - delay data binding until the EndInit call.  Also,
12912         make the table style collection's CollectionChangeAction.Refresh
12913         work properly.
12914
12915         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
12916         (with action = Refresh) when a consituent table's MappingName is
12917         changed.
12918
12919 2006-08-08  Chris Toshok  <toshok@ximian.com>
12920
12921         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
12922         Invalidate, since changing the text can change the size of the all
12923         toolbar buttons.
12924
12925 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
12926
12927         * Form.cs (AddOwnedForm): Still need to add the form to our listif
12928           we don't have it yet
12929
12930 2006-08-08  Chris Toshok  <toshok@ximian.com>
12931
12932         * PrintControllerWithStatusDialog.cs: don't .Close() the status
12933         dialog, as this causes X errors later on, since we actually
12934         destroy the window.  Instead, .Hide() it.
12935
12936 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
12937
12938         * ComboBox.cs: Added focus reflection for popup window
12939         * XplatUIX11.cs: 
12940           - Removed transient setting for non-app windows for now, not sure it
12941             was needed
12942           - Fixed logic checking if we have captions when deciding 
12943             override_redirect, WS_CAPTION is two bits and a 0 check was not
12944             sufficient
12945           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
12946             complicated
12947         * Form.cs: 
12948           - AddOwnedForm: Don't just add the form to the list, call the property
12949             to ensure the driver is informed about the ownership as well
12950           - CreateHandle: Set the TopMost status in the driver if we have an owner
12951         * XplatUI.cs: Fixed debug statement
12952
12953 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
12954         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
12955           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
12956           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
12957           TrackBarRenderer.cs: Make constructor private.
12958         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
12959         * ProfessionalColorTable.cs: Make properties virtual.
12960
12961 2006-08-06  Duncan Mak  <duncan@novell.com>
12962
12963         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
12964         is not changing.
12965
12966 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
12967         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
12968           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
12969           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
12970           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
12971           Initial import of new 2.0 classes.
12972
12973 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
12974         * Application.cs: Add 2.0 VisualStyles properties.
12975
12976 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
12977         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12978           XplatUIX11.cs: Create property to allow access to existing private
12979           variable "themes_enabled"
12980
12981 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12982
12983         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
12984         file size, as otherwise our class libraries fail using windows. Fixes
12985         bug #78759.
12986
12987 2006-08-04  Jackson Harper  <jackson@ximian.com>
12988
12989         * Form.cs:
12990         * XplatUIX11.cs: Move the toolwindow window manager creation into
12991         the X11 driver, this way on win32 we can let windows create/handle
12992         the toolwindows.
12993
12994 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12995
12996         * PrintDialog.cs: Remove some redundant checks, add some others,
12997         clean some code, and move the focus to the text boxes when the
12998         values are incorrect.
12999
13000 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
13001
13002         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
13003
13004 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
13005
13006         * NumericUpDown.cs: Setting the Minimum and Maximum is now
13007           handled correctly. Fixes bug #79001.
13008
13009 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13010
13011         * PrintDialog.cs: The "Copies" numeric up down must have
13012         set the Minimum property to 1; only if the value is bigger
13013         than 1, activate "Collate" check box. This is the behaviour of .Net.
13014         Also modify the Document elements only if it is not null.
13015
13016 2006-08-03  Jackson Harper  <jackson@ximian.com>
13017
13018         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
13019         length. (We have a larger array then actual node count).
13020                 
13021 2006-08-03  Jackson Harper  <jackson@ximian.com>
13022
13023         * ComboBox.cs: Don't show selection by default.
13024         - The SelectAll isn't needed here, since the focus code should do
13025         that
13026         - DDL style lists to manual selection drawing, so when they
13027         get/lose focus they have to invalidate.
13028
13029 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
13030
13031         * TextBoxBase.cs: Don't always show all selections by default.
13032
13033 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
13034         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
13035           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
13036           Fixed various typos.
13037
13038 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
13039
13040         * Control.cs: Removing the controls in a ControlCollection with
13041           Clear now hides the controls as expected. Fixes bug #78804. 
13042
13043 2006-08-03  Jackson Harper  <jackson@ximian.com>
13044
13045         * Control.cs: Revert previous focus patch, it breaks reflector.
13046
13047 2006-08-03  Jackson Harper  <jackson@ximian.com>
13048
13049         * ComboBox.cs: Cleanup selection and focus with the combobox.
13050         This also eliminates some duplicated keyboard code, since now
13051         everything is handled by the main class.
13052         - Make list selection work on mouse up instead of down, to match
13053         MS.
13054
13055 2006-08-02  Jackson Harper  <jackson@ximian.com>
13056
13057         * Control.cs: Setting focus needs to go through the whole
13058         selection mechanism.
13059
13060 2006-08-02  Chris Toshok  <toshok@ximian.com>
13061
13062         * PrintPreviewDialog.cs: change MinimumSize to use
13063         base.MinimumSize so it works.
13064
13065 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
13066
13067         * TextControl.cs:
13068           - UpdateCaret: Added sanity check in case caret isn't defined yet
13069           - Line.Delete: Now updating selection and caret markers if we're
13070             transfering a node (Properly fixes #78323)
13071           - SetSelectionEnd: Added sanity check
13072         * TextBoxBase.cs: Removed broken attempt to fix #78323
13073
13074 2006-08-01  Chris Toshok  <toshok@ximian.com>
13075
13076         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
13077         Close() call is handled in Form, not here.
13078
13079 2006-08-01  Chris Toshok  <toshok@ximian.com>
13080
13081         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
13082         layout/rendering.
13083
13084         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
13085         for sizes < 100% zoom.  The code now aggressively attempts to keep
13086         from calling document.Print (), and tries not to use the scaling
13087         g.DrawImage whenever possible (it still does if you scale to >
13088         100%, since usually that involves huge images).
13089
13090         * PrintPreviewControl.cs: hook up the close button.
13091
13092 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
13093         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
13094           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
13095           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
13096           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
13097           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
13098           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
13099           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
13100           Removed [Serializable] for 2.0 Event Handlers.
13101
13102 2006-07-31  Jackson Harper  <jackson@ximian.com>
13103
13104         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
13105         * TextControl.cs: Uncomment out the body of this method.
13106
13107 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
13108
13109         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
13110           standard cursors.
13111
13112 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
13113
13114         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
13115           that embed TextBox and need selections visible even if textbox is not
13116           focused to enforce that behaviour.
13117         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
13118           selection drawing
13119
13120 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
13121
13122         * TextControl.cs:
13123           - Added new SetSelectionStart/SetSelectionEnd overloads
13124           - Fixed viewport width assignment to be accurate
13125           - Adjusted alignment line shift calculations to allow cursor on right
13126             aligned lines to be always visible at the right border (like MS)
13127         * TextBoxBase.cs:
13128           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
13129           - TextBoxBase_SizeChanged: recalculating canvas on size changes
13130           - CalculateScrollBars: Use ViewPort size instead of window size, to
13131             properly consider space occupied by the border and scrollbars 
13132             (Fixes #78661)
13133           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
13134             calculations; no longer leaves artifacts
13135           - CaretMoved: Adjusted window scrolling to match MS and fixed several
13136             calculation bugs (Still missing right/center align calculations)
13137
13138 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
13139
13140         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
13141           use of both scroll rect and clip rect, as they do the same.
13142
13143 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
13144
13145         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
13146           in the event handler (fixes #78912)
13147
13148 2006-07-31  Chris Toshok  <toshok@ximian.com>
13149
13150         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
13151         grid.ListManager.Count, since grid.ListManager might be null.
13152         This of course begs the question "why are we drawing rows for a
13153         grid with no list manager (and therefor no rows)?"  Fixes the
13154         crash in bug #78929.
13155
13156 2006-07-31  Chris Toshok  <toshok@ximian.com>
13157
13158         * RelatedPropertyManager.cs: Don't always chain up to the parent
13159         ctor.  instead, call SetDataSource if the parent's position is !=
13160         -1.  Fixes the crash in #78822.
13161
13162 2006-07-31  Chris Toshok  <toshok@ximian.com>
13163
13164         * DataGrid.cs (get_ListManager): use field instead of property
13165         accessors for datasource and datamember.
13166         (RowsCount): make internal again.
13167         (OnMouseDown): end edits before resizing columns/rows.
13168         (OnMouseUp): restart edits after resizing columns/rows.
13169
13170 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
13171
13172         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
13173           This fixes the situation where the last set cursor is displayed
13174           whenever the mouse is over scrollbars.
13175
13176 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13177
13178         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
13179         Document properties, as well as initial values.
13180
13181 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
13182
13183         * XplatUIWin32.cs (SetBorderStyle): Setting both border
13184           and ClientEdge results in a 3-pixel border, which is
13185           wrong.
13186
13187 2006-07-28  Jackson Harper  <jackson@ximian.com>
13188
13189         * TreeNodeCollection.cs: Fix the clear method.
13190         - Fix the Shrink also
13191
13192 2006-07-27  Jackson Harper  <jackson@ximian.com>
13193
13194         * TreeView.cs: Make sure the visible order is computed when we
13195         attempt to size the scrollbars (for trees that mess with the
13196         scrolling when they shouldn't.
13197         - Make sure to give the scrollbars valid values.
13198
13199 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
13200
13201         * XplatUIX11.cs: Move motion compression code to where it
13202           has less performance impact
13203
13204 2006-07-26  Jackson Harper  <jackson@ximian.com>
13205
13206         * UpDownBase.cs: When the control is selected make the child
13207         controls non selectable, so that a click on them won't do a
13208         focus/unfocus cycle.
13209         - Don't give focus to the text box when the spinner is selected.
13210         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
13211
13212 2006-07-26  Chris Toshok  <toshok@ximian.com>
13213
13214         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
13215         satisfied with this solution.  If the bitmaps are small, we should
13216         just cache them in the PrintPreviewDialog and draw them here.
13217         Also, the layout is broken for the 2-up and 3-up cases.
13218
13219         * Theme.cs: add PrintPReviewControlPaint.
13220
13221         * PrintPreviewDialog.cs: first pass implementation.
13222
13223         * PrintPreviewControl.cs: first pass implementation.  No
13224         scrollbars yet.
13225
13226         * PrintDialog.cs: only validate fields if that particular portion
13227         of the UI is enabled.  Also, set the document's controller to a
13228         PrintControllerWithStatusDialog wrapping the document's print
13229         controller.
13230
13231         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
13232         bring up a SaveFileDialog (i hope we don't want to match the
13233         behavior of the crappy windows file entry) and set the
13234         PrinterSettings.PrintFileName accordingly.
13235
13236 2006-07-26  Jackson Harper  <jackson@ximian.com>
13237
13238         * ContainerControl.cs: Add a field that disables auto selecting
13239         the next control in a container when the container is activated.
13240         * UpDownBase.cs: Don't select the text box when the up down is
13241         selected.
13242
13243 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
13244
13245         * XEventQueue.cs: Added methods for peeking (used for compression
13246           of successive events)
13247         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
13248           mouse move events (fixes #78732)
13249
13250 2006-07-25  Jackson Harper  <jackson@ximian.com>
13251
13252         * UpDownBase.cs: Use an internal class for the textbox so that we
13253         can control focus.  the updown control should always have focus,
13254         if either the text area or the buttons are clicked.
13255         - Send the key messages to the textbox, since it never actually
13256         has focus
13257         - Activate and decativate the textbox caret.
13258
13259 2006-07-24  Jackson Harper  <jackson@ximian.com>
13260
13261         * Control.cs: Use the directed select when selecting a control,
13262         this way the container controls override will get called and the
13263         whole ActiveControl chain will get triggered.  TODO: probably need
13264         to make sure this gets done everywhere instead of the old
13265         Select(Control).
13266         * ContainerControl.cs: Implement the directed Select method to
13267         find and activate the correct child control.    
13268         
13269 2006-07-22  Mike Kestner  <mkestner@novell.com>
13270
13271         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
13272         menu handling code so that clicks without a grab work too.
13273         [Fixes #78914]
13274
13275 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
13276
13277         * FileDialog.cs: Enable the BackButton when dirstack has one element.
13278           Added some small optimizations.
13279
13280 2006-07-21  Matt Hargett  <matt@use.net>
13281
13282         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
13283
13284 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
13285
13286         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
13287           tests pass and match MS in some strange border cases.
13288
13289 2006-07-21  Chris Toshok  <toshok@ximian.com>
13290
13291         * ThemeWin32Classic.cs: handle drawing of the relation links and
13292         parent row buttons.
13293
13294         * Theme.cs: change args to DataGridPaintParentRow.
13295
13296         * DataGrid.cs: Don't use controls for the relation links and
13297         parent buttons, so we have to handle all their interactions in
13298         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
13299         when we're navigating through child tables, so we can reinstate
13300         selection, expanded state, current cell, etc.
13301
13302 2006-07-20  Chris Toshok  <toshok@ximian.com>
13303
13304         * ToolBar.cs: When we redraw a button, for whatever reason,
13305         there's no reason to redraw the entire toolbar.  Also, don't call
13306         Control.Refresh from within Redraw, as it's much heavier than
13307         Invalidate (which is really what we want).
13308
13309 2006-07-20  Chris Toshok  <toshok@ximian.com>
13310
13311         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
13312         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
13313         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
13314         traces from within a debug IBindingList datasource
13315         (in mono/winforms/datagrid) for *days*, I've finally gotten things
13316         to work in a similar fashion.
13317
13318 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13319
13320         * ListBox.cs: Don't call Sort () when setting 
13321         the Sorted property to false (avoid an unnecessary sort).
13322
13323 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13324
13325         * ListControl.cs: DataSource should throw an ArgumentException
13326         instead of a normal exception when the argument is not of the 
13327         correct type.
13328
13329 2006-07-20  Mike Kestner  <mkestner@novell.com>
13330
13331         * Control.cs: add InternalPreProcessMessage to allow us to steal
13332         key events before MWF gets its paws on them.  Adapted from a
13333         suggestion by eno.
13334         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
13335         up/down/left/right navigation. Override the new internal control
13336         method to steal the events since they never make it to WndProc.
13337         * ToolBarButton.cs: don't worry about pushed when setting hilight
13338         since the drawing code prefers pushed to hilight. Invalidate on 
13339         Hilight changes. Fixes #78547 and #78525.
13340
13341 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
13342
13343         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
13344           the canvas size. Fixes #78868
13345
13346 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
13347
13348         * Splitter.cs: Track requested split position until first layout
13349           is performed. Fixes #78871
13350
13351 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
13352
13353         * Application.cs: Removed code that forces 1.x for the version
13354           number if the version started with 0. Not sure why that code was
13355           there and I couldn't find any bugs that indicated we needed it.
13356           Fixes #78869
13357
13358 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
13359
13360         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
13361           ResetDefaults(), just write some output to the console until it's
13362           implemented. Fixes bug #78907 for now. Eliminated two warnings.
13363
13364 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
13365
13366         * PropertyGridView.cs: set StartPosition of drop down forms
13367         so they appear in correct initial spot.  Fixes #78190.
13368
13369 2006-07-19  Mike Kestner  <mkestner@novell.com>
13370
13371         * ThemeWin32Classic.cs: use parent background color when drawing
13372         flat toolbars.  Restructure the conditionals to make sure non-flat
13373         non-Divider toolbars are filled too.  Fixes #78837.
13374
13375 2006-07-19  Mike Kestner  <mkestner@novell.com>
13376
13377         * ListBox.cs: Sort on collection changes even if the handle
13378         isn't created yet.  Fixes #78813.
13379
13380 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13381
13382         * ListControl.cs: DisplayMember should never be null,
13383         and now we assign String.Empty when null is passed to it (this
13384         is the .Net way).
13385
13386 2006-07-17  Mike Kestner  <mkestner@novell.com>
13387
13388         * ListViewItem.cs: restructure Font and subitem Font handling 
13389         to hold a specific font and refer back to owner on null.
13390         Fixes #78761.
13391
13392 2006-07-17  Mike Kestner  <mkestner@novell.com>
13393
13394         * ToolBar.cs: bandaid for side-effect of previous patch which was
13395         discarding explicit heights for non-AutoSize toolbars.  Need to
13396         extend my format tester to deal with AutoSize=false. Fixes #78864.
13397
13398 2006-07-15  Jackson Harper  <jackson@ximian.com>
13399
13400         * LabelEditTextBox.cs:
13401         * TreeView.cs: Use a new LabelEdit class for node editing, this
13402         class automatically 'closes' itself when it gets the enter key or
13403         loses focus.
13404         - Use the client rectangle when setting the trees scrollbars, so
13405         border style is taken into account.
13406         
13407 2006-07-14  Jackson Harper  <jackson@ximian.com>
13408
13409         * TreeNode.cs:
13410         * TreeView.cs: Make the editing work similar to MSs, firing the
13411         events correctly and ending edits correctly.
13412
13413 2006-07-14  Mike Kestner  <mkestner@novell.com>
13414
13415         * ToolBarButton.cs:
13416         * ToolBar.cs: layout restructuring and redraw enhancements to support
13417         formatting changes gracefully, like setting TextAlign, ImageList, 
13418         ButtonSize, and Appearance.  Handles explicit button sizing quirks
13419         of the MS controls.  Things like flat toolbars ignoring button size
13420         but becoming constant sized at the largest button's size.  Normal
13421         toolbars with an image set cannot be shrunk smaller than the image,
13422         but text can be clipped/ignored.
13423         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
13424         is zero.  Seems like DrawString should be smart enough to not put
13425         anything on screen though. Also trim labels and ellipsize at the char
13426         boundary, not word.
13427         Fixes #78711 and #78483.
13428
13429 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
13430
13431         * FolderBrowserDialog.cs: Disable "New Folder" button and
13432           "New Folder" contextmenu menuitem if a folder like "My Computer"
13433           is selected.
13434
13435 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
13436
13437         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
13438         * FolderBrowserDialog.cs:
13439           - Use MWFConfig to store and read size and position settings
13440           - Added code to create a new folder (button or context menu).
13441             Use TreeView labeledit to change the name of the new folder.
13442
13443 2006-07-14  Jackson Harper  <jackson@ximian.com>
13444
13445         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
13446         when the tree is scrolled we end editing.
13447
13448 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
13449
13450         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
13451           Down arrows
13452
13453 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
13454
13455         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
13456         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
13457         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
13458         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
13459         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
13460         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
13461         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
13462         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
13463         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
13464         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
13465         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
13466         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
13467         ListViewItemSelectionChangedEventHandler.cs,
13468         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
13469         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
13470         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
13471         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
13472         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
13473         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
13474         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
13475         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
13476         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
13477         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
13478         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
13479         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
13480         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
13481         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
13482         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
13483         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
13484         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
13485         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
13486         WebBrowserNavigatingEventHandler.cs, 
13487         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
13488
13489 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
13490
13491         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
13492         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
13493         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
13494         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
13495         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
13496         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
13497         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
13498         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
13499         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
13500         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
13501         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
13502         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
13503         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
13504         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
13505         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
13506         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
13507         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
13508         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
13509         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
13510         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
13511         ListViewItemStates.cs, MaskFormat.cs: Added
13512
13513 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
13514
13515         * PropertyGridView.cs: Fix keyboard navigation of drop down.
13516         Patch from eno for bug 78558.
13517         
13518 2006-07-13  Jackson Harper  <jackson@ximian.com>
13519
13520         * TreeView.cs: When an edit is finished make sure that the
13521         selected node is visible.
13522         - When setting the top/bottom use the scrollbars is_visible, so
13523         everything will be set correctly even if the tree isn't visible
13524         yet.
13525
13526 2006-07-13  Jackson Harper  <jackson@ximian.com>
13527
13528         * ComboBox.cs: Revert the item->index part of my previous patch.
13529         * TreeView.cs: Use LostFocus instead of Leave for detecting when
13530         the edit box has lost focus (duh).
13531         - Just make the edit box not visible when we get return, that will
13532         take the focus, which will call EndEdit
13533         * TreeNode.cs When we start editing, notify the treeview.
13534
13535 2006-07-12  Jackson Harper  <jackson@ximian.com>
13536
13537         * ComboBox.cs: Clear out old items before setting the item list.
13538         This prevents databound controls from having their items added
13539         twice.
13540         - Switch the combobox to use indices whereever possible instead of
13541         using Item's.  This allows usto navigate through lists that have
13542         more then one item with the same string value (ie a, b, b, a).
13543         - Scroll the listboxes scrollbar when a non visible item is
13544         highlighted
13545         - Allow keypress to cycle through all the possible values. For
13546         example if you have b1, b2, b3 and hold down the B key all the
13547         values will be cycled through.
13548         
13549 2006-07-12  Jackson Harper  <jackson@ximian.com>
13550
13551         * TextBoxBase.cs:
13552         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
13553         this using the internal methods.
13554         * Control.cs: Add OnGotFocusInternal.  A new method that allows
13555         controls to "override" OnGotFocus and change focus behavior if
13556         needed.
13557         - Same thing for LostFocus
13558         * ComboBox.cs: Pass off focus to the text control properly.
13559
13560 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
13561
13562         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
13563         * FolderBrowserDialog.cs: Almost a complete rewrite.
13564           - Better support for Environment.Specialfolders
13565           - Added support for MWFVFS
13566           - Made setting SelectedPath work
13567
13568 2006-07-12  Jackson Harper  <jackson@ximian.com>
13569
13570         * Control.cs: Optimze getting all the controls.
13571
13572 2006-07-11  Jackson Harper  <jackson@ximian.com>
13573
13574         * ContainerControl.cs: Override SETFOCUS in the container control,
13575         so that it is not selected on mouse click.
13576
13577 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
13578
13579         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
13580           Hopefully we will have a better way once all of focus is complete.
13581
13582 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
13583
13584         * ThemeWin32Classic.cs: Commented out some debug code and fixed
13585           a compile error with csc.
13586
13587 2006-07-11  Jackson Harper  <jackson@ximian.com>
13588
13589         * Control.cs: When hiding a control only select the next control
13590         if the current control was focused.
13591         - Don't handle enter/leave when setting/killing focus, this is
13592         done by the container control.
13593         - Remove is_selected, it's not needed anymore.
13594         - Add utility methods for selecting a child control, and for
13595         firing the Enter/Leave events.
13596         * ContainerControl.cs: When a control is activated fire the
13597         enter/leave events.
13598         - Don't wrap when processing the tab key, so that focus can be
13599         moved outside of the container.
13600         - Use the correct active control
13601
13602 2006-07-11  Jackson Harper  <jackson@ximian.com>
13603
13604         * ComboBox.cs: Remove some debug code that was blinding me.
13605         * UpDownBase.cs: These controls actually aren't implicit, they are
13606         visible to the user.
13607
13608 2006-07-10  Chris Toshok  <toshok@ximian.com>
13609
13610         * DataGrid.cs: move back to the is_adding boolean field.  god i
13611         hate this is_editing/is_adding/is_changing stuff.
13612
13613 2006-07-10  Chris Toshok  <toshok@ximian.com>
13614
13615         * DataGridTableStyle.cs: just check if the property type is bool.
13616         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
13617         Don't use CanRenderType.
13618
13619         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
13620         if our text == NullText.  Remove CanRenderType.
13621
13622         * DataGridBoolColumn.cs: nuke CanRenderType.
13623
13624         * DataGrid.cs: reenable some code to end the current edit inside
13625         of set_CurrentCell.  This fixes the other 1.1.16 regression.
13626         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
13627         Also, remove the visible_row_count arg from CalcRowHeaders, since
13628         we don't need to worry about the actual height of the area.
13629
13630 2006-07-10  Chris Toshok  <toshok@ximian.com>
13631
13632         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
13633         mode, just return.
13634
13635         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
13636         the real sense of the IsInEditOrNavigateMode property (true =
13637         navigate, false = edit).  Also, update OnKeyPress to reflect this.
13638
13639         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
13640         column style exists, we still need to set its property descriptor
13641         to match up with our list manager.
13642
13643 2006-07-10  Chris Toshok  <toshok@ximian.com>
13644
13645         * ThemeWin32Classic.cs: implement the new row/header painting
13646         approach.  The parent row painting will likely go away and
13647         replaced with label controls, but the rest seems to work ok (and
13648         efficiently).
13649
13650         * Theme.cs: change the way we draw datagrid rows.  we don't draw
13651         the row headers as a block now.  Instead we draw them in the
13652         normal draw-row loop.  Add some calls for drawing parent rows and
13653         relation rows.
13654
13655         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
13656         a default table style.  Set the defaults from ThemeEngine.Current,
13657         not SystemColors.  Fix lots of misc issues with property setters.
13658
13659         * DataGrid.cs: move loads of style information out of this class
13660         as it's being duplicated with DataGridTableStyle.  keep track of a
13661         special DataGridTableStyle for the properties we used to mirror
13662         here.  Switch all the style properties to access this table style
13663         instead of instance fields of this class.  Also add a internal
13664         class to represent parent rows (more needs to be stored here, like
13665         the selection state from the parent table, as well as the
13666         expansion state.)  Also, for datasources with relations, do the
13667         right thing for collapse/expand, and add support for the
13668         navigation/parent row buttons.
13669
13670         Lastly, fix the crash in the 1.1.16 build.
13671
13672         * GridTableStylesCollection.cs: make the explicit interface
13673         implementations call the class's methods as opposed to duplicating
13674         them.
13675
13676         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
13677         0 so the text doesn't jump around when we move the cursor.
13678
13679 2006-07-10  Jackson Harper  <jackson@ximian.com>
13680
13681         * TextBoxBase.cs:
13682         * ListBox.cs: Match MS's ToString (this makes debugging focus
13683         stuff infinitely easier).
13684
13685 2006-07-10  Jackson Harper  <jackson@ximian.com>
13686
13687         * Control.cs (SelectNextControl): When checking the control's
13688         parent use this instead of ctrl.parent so that null can be passed
13689         to SelectNextControl. (I have unit tests for this).
13690         - Remove unused var.
13691
13692 2006-07-10  Chris Toshok  <toshok@ximian.com>
13693
13694         * CurrencyManager.cs: correct one regression, the removal of the
13695         finalType field.  Also, add a MonoTODO on CanAddRows, implement
13696         Refresh() correctly, and fix some event emission in
13697         ListChangedHandler.
13698
13699 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
13700
13701         * FileDialog.cs: Don't use brackets for new folders if they exist
13702           under *nix. Instead use -(number of existing folders +1).
13703
13704 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
13705
13706         * FileDialog.cs:
13707           - Fixed really nasty bug #78771
13708           - Don't block the whole GUI when reading directories with a lot of
13709             entries. Use an other thread instead and call BeginInvoke to
13710             update the ListView in MWFFileView
13711
13712 2006-07-07  Chris Toshok  <toshok@ximian.com>
13713
13714         * Control.cs (Dispose): release any Capture when disposing.
13715
13716 2006-07-07  Chris Toshok  <toshok@ximian.com>
13717
13718         * LinkLabel.cs (Select): if we chain up to the parent, set
13719         focused_index to -1 so we'll search for the first available link
13720         the next time the user tabs into us.  Also, if the direction is
13721         backward and focused_index == -1, start the search from the last
13722         element.
13723
13724 2006-07-07  Chris Toshok  <toshok@ximian.com>
13725
13726         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
13727         is beyond the end of the text, don't do anything.
13728         (CreateLinkPieces): set our ControlStyles.Selectable based on
13729         whether or not we have any links.
13730         (Link.Invalidate): use a loop instead of foreach.
13731         (Link.set_Start): null out owner.sorted_links so it'll be
13732         recreated by CreateLinkPieces.
13733
13734 2006-07-06  Chris Toshok  <toshok@ximian.com>
13735
13736         * LinkLabel.cs: revert the SetStyle change.
13737
13738 2006-07-06  Chris Toshok  <toshok@ximian.com>
13739
13740         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
13741         (OnEnableChanged): s/Refresh/Invalidate
13742         (OnGotFocus): if we have a focused index already, refocus it (so
13743         if we mouse out/in to the window it'll focus the right link).
13744         (OnKeyDown): move the tab handling out of here.
13745         (OnLostFocus): don't set focused_index to -1, so we can refocus it
13746         when we lose focus.
13747         (OnMouseDown): don't Capture here - Control handles it.  Also,
13748         focus the active link.
13749         (OnMouseUp): don't deal with Capture.
13750         (OnPaintBackgroundInternal): remove.
13751         (OnTextAlignChanged): CreateLinkPieces before calling the
13752         superclass's method.
13753         (OnTextChanged): call CreateLinkPieces before calling superclass's
13754         method.
13755         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
13756         move around.
13757         (Select): implement this, moving the selection between different
13758         links, and call parent.SelectNextControl if we don't have another
13759         link to focus in the given direction.
13760         (CreateLinkPieces): call Invalidate instead of Refresh.
13761         
13762 2006-07-06  Chris Toshok  <toshok@ximian.com>
13763
13764         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
13765         new LinkLabel internals.
13766
13767         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
13768         over pieces looking for active/focused/etc links.  also, deal with
13769         runs of text (and links) with embedded \n's in them, and use
13770         MeasureCharacterRanges instead of MeasureString to figure out the
13771         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
13772         two-step.
13773
13774 2006-07-04  Jackson Harper  <jackson@ximian.com>
13775
13776         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
13777         XKB or key auto repeat, do it manually.  Without key auto repeat,
13778         when a key is held down we get key press, key release, key press,
13779         key release, ... with auto repeat we get key press, key press, key
13780         press ..., and then a release when the key is actually released.
13781
13782 2006-07-03  Jackson Harper  <jackson@ximian.com>
13783
13784         * TabControl.cs:
13785         * ThemeWin32Classic.cs: Tabs do not obey normal background color
13786         rules, they are always control color regardless of the background
13787         color.
13788
13789 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
13790
13791         * FileDialog.cs: Added internal class MWFConfig.
13792           Removed Registry support and replaced it with support for the new
13793           MWFConfig class. See MWFConfig comments for more information.
13794
13795 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
13796
13797         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
13798           rectangle. Added some patches from eno from bug #78490 and fixed
13799           the arrow position for small up and down CPDrawScrollButtons.
13800
13801 2006-06-30  Jackson Harper  <jackson@ximian.com>
13802
13803         * InternalWindowManager.cs: Remove some debug code.
13804         * Form.cs: When an MdiParent is set to null, the window is
13805         "detatched" and becomes a normal window.
13806         * MdiClient.cs: Don't bring the new child form to the front until
13807         it is activated (setting it as active does this), this makes the
13808         previously active forms titlebar get redrawn as inactive.
13809
13810 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
13811
13812         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
13813           with later controls
13814
13815 2006-06-29  Mike Kestner  <mkestner@novell.com>
13816
13817         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
13818         arrow in keynav state.  Fixes #78682.
13819
13820 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
13821
13822         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
13823           order (fixes #78393)
13824
13825 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
13826
13827         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
13828           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
13829           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
13830           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
13831           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
13832           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
13833           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
13834           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
13835           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
13836           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
13837           enumerations (FlagsAttribute, SerializableAttribute, added/removed
13838           values)
13839
13840 2006-06-28  Mike Kestner  <mkestner@novell.com>
13841
13842         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
13843
13844 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
13845
13846         * PropertyGrid.cs,
13847           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
13848           item lines from other area (It also makes BackColor consistent and
13849           compatible with .NET). Fixed bug #78564.
13850
13851 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
13852
13853         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
13854         Patch from Eno for #78555.
13855
13856 2006-06-27  Chris Toshok  <toshok@ximian.com>
13857
13858         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
13859
13860         * DataGridColumnStyle.cs: same.
13861
13862         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
13863         
13864         * DataGridDrawingLogic.cs: nuke.
13865
13866 2006-06-27  Chris Toshok  <toshok@ximian.com>
13867
13868         * DataGridTableStyle.cs: clean up the constructors, and build the
13869         list of child relations for this table.  I have no idea if this is
13870         where we should be doing it (it probably isn't), but since we're
13871         already iterating over the properties..
13872
13873         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
13874         struct and array for keeping track of row information, similar to
13875         what's shown in a hack on
13876         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
13877
13878         * Theme.cs: be consistent about the naming of DataGrid methods,
13879         prefering ColumnWidths and RowHeights over columnsWidths and
13880         RowsHeights.
13881
13882         * ThemeWin32Classic.cs: same, and also add support for variable
13883         sized rows (and the +/- expansion icons for related rows).
13884
13885 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
13886
13887         * TextBoxBase.cs: Applied Eno's patch from #78660
13888
13889 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
13890
13891         * Form.cs (ScaleCore): We don't want to scale our form if it's
13892           state is minimized or maximized, but we still need to scale our
13893           child windows. Also, added try/finally block to ensure layout
13894           gets reset (Fixes #78697)
13895
13896 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
13897
13898         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
13899
13900 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
13901
13902         * Form.cs: Fixed c+p error and added check to resize form if minimum
13903           size is bigger than current size (Fixes #78709)
13904
13905 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
13906
13907         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
13908
13909 2006-06-26  Mike Kestner  <mkestner@novell.com>
13910
13911         * ComboBox.cs: only do Keypress handling in the combo when there  
13912         are items in the collection. Fixes #78710.
13913
13914 2006-06-26  Chris Toshok  <toshok@ximian.com>
13915
13916         * Binding.cs: make this work bi-directionally.  also, clear up
13917         other mixups between Push/Pull Data (e.g. we're supposed to pull
13918         data when validating).
13919
13920         * BindingManagerBase.cs: trim some fully qualified collection
13921         types.
13922
13923         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
13924
13925 2006-06-23  Chris Toshok  <toshok@ximian.com>
13926
13927         * PropertyManager.cs: It appears (according to the unit tests)
13928         that PropertyManager doesn't use
13929         PropertyDescriptor.AddValueChanged to track propery value changes
13930         in its datasource, but uses the same scheme as Binding, where it
13931         looks for a <Property>Changed event and binds to it.
13932
13933         Also, according to the docs, IsSuspended always returns false for
13934         a property manager with a non-null datasource.
13935
13936 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
13937
13938         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
13939           need to update the actual DialogResult. (Fixes #78613)
13940
13941 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
13942
13943         * Form.cs (ShowDialog): Release any captures before running the
13944           new message pump (fixes #78680)
13945
13946 2006-06-22  Mike Kestner  <mkestner@novell.com>
13947
13948         * ListView.cs: Layout column widths properly in details mode even 
13949         if HeaderStyle.None is set.  Fixes #78691.
13950
13951 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
13952
13953         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
13954
13955 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
13956
13957         * Control.cs (ContainsFocus): Using new driver method to get focused
13958           window, instead of trying to use internal tracking var, which can
13959           recursion issues (Fixes #78685)
13960         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
13961           XplatUIWin32.cs: Added GetFocus method to return focused window
13962
13963 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13964
13965         * ColorDialog.cs: when the mouse button is pressed inside the color
13966         matrix, don't let the cursor move out of it until the button is
13967         released, which is the behavior on windows. Changed 'colours' by
13968         'colors' to use the same word consistently.
13969
13970 2006-06-21  Chris Toshok  <toshok@ximian.com>
13971
13972         * DataGrid.cs: add in some basic navigation stuff (navigating to a
13973         child relation and back, using a stack).  Also, remove
13974         GetDataSource and the code that calls it - it's not needed.  Also,
13975         track CurrencyManager.ListName's removal.
13976
13977 2006-06-21  Chris Toshok  <toshok@ximian.com>
13978
13979         * CurrencyManager.cs: push some of the original type checking from
13980         BindingContext.CreateBindingManager to here, and remove some of
13981         the finalType stuff.  Need more tests to make sure I've got the
13982         ListName part right, and we might need more in SetDataSource.
13983
13984         * PropertyManager.cs: add a ctor that takes just the datasource,
13985         and no property name.  Make SetDataSource work with a null
13986         property_name, and make Current return the data_source if the
13987         property descriptor is null.  this makes 'string foo = "hi";
13988         BindingContext[foo].Current' return "hi" as it should.
13989
13990         * RelatedCurrencyManager.cs: make this code more generic - there's
13991         no reason the parent manager has to be CurrencyManager, and
13992         there's no reason to pass the DataRelation.  It suffices to use a
13993         BindingManagerBase and PropetyDescriptor.
13994
13995         * RelatedPropertyManager.cs: make a similar change here.
13996         
13997         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
13998         flower I knew it could be.
13999
14000 2006-06-20  Chris Toshok  <toshok@ximian.com>
14001
14002         * PropertyManager.cs: the PropertyChangedHandler is invoked when
14003         data in the source has changed and we need to update the control,
14004         so s/PullData/PushData.
14005
14006         * CurrencyManager.cs: Refresh is meant to update the control from
14007         data in the datasource.  So, s/PullData/PushData.
14008
14009         * BindingContext.cs: add more ugliness (we weren't handling the
14010         case where data_source = DataTable and data_member = column_name).
14011
14012         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
14013         from the perspective of the datasource.  PullData pulls from the
14014         control, PushData pushes to the control.
14015
14016 2006-06-20  Chris Toshok  <toshok@ximian.com>
14017
14018         * BindingContext.cs: rewrite the CreateBindingManager code to
14019         handle navigation paths more or less properly.  This could
14020         definitely stand some more work, in particular to push the
14021         recursion up to the toplevel.  But that relies on fixes in other
14022         places (System.Data comes to mind).
14023
14024         Also, move to a flat hashtable (and encode the twolevel nature of
14025         the dictionary into the hash key).  This lets us implement the
14026         IEnumerable.GetEnumerator method.
14027
14028         * RelatedCurrencyManager.cs: new class.  Update our view based on
14029         our relation and our parent CurrencyManager's position.
14030
14031         * CurrencyManager.cs: split out some logic from the ctor into
14032         SetView, so it can be called from the new RelatedCurrencyManager
14033         subclass.
14034
14035         * RelatedPropertyManager.cs: new class.  Update our datasource
14036         based on the position of our parent CurrencyManager.
14037
14038         * PropertyManager.cs: split out some logic from the ctor into
14039         SetDataSource, so it can be called from the new RelatedDataSource
14040         subclass.  Also, make the Current getter return the value
14041         of the PropertyDescriptor, not the data_source.
14042
14043         * Binding.cs: no need to duplicate the string splitting code here.
14044
14045 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
14046
14047         * Control.cs:
14048           - set_Enabled: OnEnabledChanged is not called if the inherited state 
14049             of the control is not altered, even though  we might be changing the
14050             internal state of the control (#78458)
14051           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
14052             OnEnabledChanged, to allow easy altering of any child window state
14053           - OnEnabledChanged: Added code to enable/disable driver window state
14054           - OnParentEnabledChanged: Instead of firing the event, call 
14055             OnEnabledChanged, which will fire the event and also a) set driver
14056             window state and pass the enabled state to any grandchildren (#78458)
14057
14058 2006-06-19  Jackson Harper  <jackson@ximian.com>
14059
14060         * InternalWindowManager.cs: We don't set the cursor explicitly
14061         thats done via the response to NCHITTESTs.
14062         - Don't need to adjust for titlebar heights anymore, the
14063         coordinates are coming in the correct coordinates now (see peters
14064         last patch).
14065
14066
14067 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
14068
14069         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
14070           being translated relative to whole window, instead of client window.
14071           That caused broken offsets on mouseclick (and caused gas for our
14072           InternalWindowManager)
14073
14074 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
14075
14076         * TextControl.cs:
14077           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
14078           - Undo(): Added replay of cursor move on DeleteChars action; added
14079             calling Undo() again if a recorded cursor move is invalid (to
14080             ensure that some action is performed on Undo)
14081         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
14082
14083 2006-06-16  Jackson Harper  <jackson@ximian.com>
14084
14085         * MdiClient.cs: Instead of just sizing maximized windows when
14086         there is a resize we also have to adjust the Y of minimized
14087         windows, so they stay pinned to the bottom of the mdi container.
14088         - Eliminate separate tracking of the active control, we can just
14089         get this from the controls collection.
14090         - Paint the decorations for the newly activated titlebar so we get
14091         a pretty blue bar.
14092         * InternalWindowManager.cs:
14093         * ThemeWin32Classic.cs: Minimized windows get all three buttons
14094         even if they are a tool window.
14095         
14096 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
14097
14098         * TextControl.cs (Undo): Handle non-existent cursor locations in the
14099           undo buffer, these can happen when text was deleted and the cursor
14100           was recorded first. Since we will also have a recorded cursor
14101           after the delete this is not an issue. (Fixes #78651)
14102
14103 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
14104
14105         * AccessibleObject.cs: Remove dependence on Control.is_selected;
14106           instead properly track control states internally (allows us to
14107           remove is_selected from Control)
14108
14109 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14110
14111         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
14112         whose width is not a multiple of 8.
14113
14114 2006-06-13  Jackson Harper  <jackson@ximian.com>
14115
14116         * MdiClient.cs:  Only maximize the next child if the current one
14117         is maximized.
14118
14119 2006-06-13  Chris Toshok  <toshok@ximian.com>
14120
14121         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
14122         modified.  Also, guard against grid or grid_drawing being null in
14123         Invalidate.
14124
14125         * DataGrid.cs: Reformat tons of getters/setters.  In the
14126         DataMember setter, just call SetNewDataSource instead of
14127         duplicating some of its functionality.  In SetNewDataSource, don't
14128         check ListManager for null, since the property getter creates the
14129         object if needed.
14130
14131         * DataGridTableStyle.cs: don't set TableStyle or call
14132         SetDataGridInternal on the column here, it's done in
14133         GridColumnStylesCollection.Add.
14134
14135         * GridColumnStylesCollection.cs: fix all the explicit interface
14136         implementations to just call our methods.  Nuke AddInternal() and
14137         move the body of it to Add().  Also, add a call to
14138         column.SetDataGridInternal to Add().
14139
14140         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
14141         base()+duplicate code.  Also, use the Format property instead of
14142         format to generate an Invalidate ala MS.  Lastly, create the
14143         textbox here, unconditionally.
14144         (set_Format): call Invalidate.
14145         (get_TextBox): no need to call EnsureTextBox.
14146         (Commit): remove the message box.
14147         (Edit) remove the call to EnsureTextBox.
14148         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
14149         (EnterNullValue): no need to check textbox for null.
14150         (HideEditBox): no need to check textbox for null.
14151         (SetDataGridInColumn): add the textbox to the grid's controls.
14152         (EnsureTextBox): nuke.
14153         
14154 2006-06-13  Jackson Harper  <jackson@ximian.com>
14155
14156         * MdiWindowManager.cs: Hook up to the maximized menus paint event
14157         and redraw the buttons when needed. Unhook when the window is
14158         unmaximized.
14159         * MainMenu.cs: Add an internal Paint event, the mdi window manager
14160         needs this so that it can redraw its buttons when the menu is
14161         repainted.
14162         * InternalWindowManager.cs:
14163         * Form.cs: The method order has changed for DrawMaximizedButtons,
14164         so that it can be a PaintEventHandler.
14165         
14166 2006-06-13  Jackson Harper  <jackson@ximian.com>
14167
14168         * MdiClient.cs: When we close a maximized mdi window, the next mdi
14169         window is activated and maximized, even if it wasn't before.
14170         - When  a new window is activated repaint the decorations of the
14171         old one, so that it no longer has the Active "look" (the blue
14172         titlebar).
14173         * InternalWindowManager.cs: Open up CreateButtons to base classes
14174         so they can recreate the buttons on state changes.
14175         - If a window is maximized give it all three buttons
14176         * MdiWindowManager.cs: Create the titlebar buttons when the state
14177         is changed, this is needed because a toolwindow will not have all
14178         three buttons until it is maximized.
14179
14180 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
14181
14182         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
14183           Fixed bug #78609.
14184
14185 2006-06-12  Jackson Harper  <jackson@ximian.com>
14186
14187         * KeysConverter.cs: Make sure we handle the Ctrl special case
14188         if its the only key.
14189         
14190 2006-06-12  Jackson Harper  <jackson@ximian.com>
14191
14192         * Theme.cs: Add a method to get the size of a managed window
14193         toolbar button.
14194         * InternalWindowManager.cs: Remove the ButtonSize property, this
14195         should be retrieved from the theme.
14196         * MdiWindowManager.cs: Get the button size from the theme
14197         * ThemeWin32Classic.cs: Make the method to get the managed window
14198         titlebar button size public.
14199         - Handle the different button sizes of maximized toolwindows
14200         (should match any maximized window).
14201         - Get the titlebar height from the theme, not the WM (which gets
14202         it from the theme).
14203
14204 2006-06-12  Jackson Harper  <jackson@ximian.com>
14205
14206         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
14207         event down to the mdi window manager.
14208         - Expose some extra stuff to base classes
14209         - Make sure to end the Capture on an NC Mouse up, so that we can
14210         get double clicks properly, and the sizing doens't stick.
14211         - When doing PointToClient contain it in the workable desktop
14212         area, this prevents windows from changing size when the cursor is
14213         pulled outside of the working area while sizing.
14214         * MdiWindowManager.cs: When we get a double click maximize the
14215         window.
14216         - Reset the cursor after handling mode changes.
14217
14218 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
14219
14220         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
14221           current desktop, instead of just assuming a 0, 0 origin. This
14222           is needed for our internal window manager, to know the top
14223           margin of the desktop
14224
14225 2006-06-12  Chris Toshok  <toshok@ximian.com>
14226
14227         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
14228         we need this to get rid of the selected background in the bool
14229         column.
14230         (CancelEditing): move the ConcedeFocus call to above the Abort
14231         call.  Also, set is_changing to false and invalidate the row
14232         header if we were changing before.
14233         (ProcessKeyPreviewInternal): remove, since noone outside this
14234         class calls it anymore.  Roll the code into ProcessKeyPreview.
14235         (EndEdit): remove the internal version.
14236         (InvalidateCurrentRowHeader): make private.
14237
14238         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
14239         Keys.Escape handling (and with it the last call to
14240         DataGrid.EndEdit from outside the class.)
14241
14242
14243 2006-06-12  Chris Toshok  <toshok@ximian.com>
14244
14245         * DataGridTextBox.cs (.ctor): isedit defaults to false.
14246         (OnKeyPress): set isedit to true.
14247         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
14248         already handled by the grid.
14249
14250         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
14251         right.  ugh.
14252         (set_DataSource): SetDataSource always returns true, so stop
14253         putting it in an if statement.
14254         (EndEdit): get rid of some {}'s
14255         (ProcessGridKey): return true in case Keys.Escape.
14256         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
14257         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
14258         PositionChanged, stopped connecting to CurrentChanged.
14259         (GetDataSource): simplify this a bunch.
14260         (SetDataSource): change return type from bool to void.
14261         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
14262         to this, and make sure we don't set ListManager.Position inside
14263         set_CurrentCell.
14264         (OnListManagerItemChanged): if we're passed an actual index,
14265         redraw that row.
14266
14267         * CurrencyManager.cs (set_Position): don't call PullData here.
14268
14269 2006-06-09  Jackson Harper  <jackson@ximian.com>
14270
14271         * TreeNode.cs:  Recalculate the visible order before doing the
14272         Expand/Collapse Below calls, because those calls generate an
14273         expose.
14274         - Reduce calls to the TreeView property, which is mildly expensive
14275         by using a local var.
14276         * Form.cs: Layout the MDI child windows when creating the parent
14277         form.
14278         - Don't use the internal constructor anymore
14279         * MdiClient.cs: use the parent form width/height (if available)
14280         when laying out the child windows, we do this because the
14281         mdiclient isn't docked yet when the initial layout is done.
14282         - Don't need an internal constructor anymore.
14283
14284 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14285
14286         * FileDialog.cs: handle access errors when trying to create a folder
14287         or changing to a directory. No need to initialize out parameters.
14288
14289 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
14290
14291         * FileDialog.cs: Append a number when creating a new folder if the
14292           folder already exists (use parenthesis instead of square brackets)
14293
14294 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
14295
14296         * FileDialog.cs:
14297           - Disabled registry support for windows and added better registry
14298             error checking for other systems (need to investigate why it
14299             works perfectly on my system)
14300           - If a folder already exist show an error MessageBox instead of
14301             trying to create an indexed name.
14302           - Fixed a non intentional typo.
14303
14304 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14305
14306         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
14307
14308 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
14309
14310         * FileDialog.cs: When creating a new folder don't crash if the
14311           folder already exists.
14312
14313 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
14314
14315         * FileDialog.cs: Allmost a complete rewrite.
14316           - added a "virtual" file system that handles the differences
14317             between unix and windows file systems (especially the directory
14318             structure). Moved most of the directory and file handling code
14319             into the vfs.
14320             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
14321             UnixFileSystem and FSEntry.
14322           - Recently used folder/directory, size, location and used file names
14323             (file name ComboBox) are now stored in the registry and get read
14324             before the dialog shows up (fixes part 6 of bug #78446).
14325           - Creation of new folders/directories is now possible (context menu
14326             or ToolBar). Added TextEntryDialog for this that fills in the gap
14327             until ListView.LabelEdit works.
14328           - Fixed cursor handling (bug #78527) and focus handling for
14329             PopupButtonPanel
14330           - Various "Search in" ComboBox enhancements. The content of the
14331             dropdown listbox now almost matches ms.
14332           - Changed the behaviour when the user switches to SpecialFolder
14333             Recent to show the ListView in View.Details.
14334           - Beside using the ToolBar to change the View property of the
14335             file ListView it is now possible to use the context menu too.
14336
14337 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
14338
14339         * ComboBox.cs: Don't create a new ObjectCollection when an item
14340           gets inserted. Just insert the item in the existing object_items
14341           ArrayList.
14342
14343 2006-06-08  Jackson Harper  <jackson@ximian.com>
14344
14345         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
14346         that the treeview and root node checks are done also, this fixes a
14347         regression i caused in the unit tests.
14348
14349 2006-06-07  Wade Berrier <wberrier@novell.com> 
14350
14351         * RichTextBox.cs: More ISO8859-1 -> unicode
14352
14353 2006-06-07  Mike Kestner  <mkestner@novell.com>
14354
14355         * ComboBox.cs : use items to hold highlight/selection so that
14356         collection insertions don't require synchronization.
14357
14358 2006-06-07  Jackson Harper  <jackson@ximian.com>
14359
14360         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
14361         routine.  We now always keep the sized edge at the cursor instead
14362         of computing movement and adjusting rects.  There is one buglet
14363         with this method though when the cursor is moved over area that
14364         the window can not expand too (such as the toolbars on the desktop).
14365
14366 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14367
14368         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
14369         here. Fixes crash on startup in AlbumSurfer.
14370
14371 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
14372
14373         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
14374           values
14375
14376 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14377
14378         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
14379         statement to avoid calling XNextEvent which will block if another thread
14380         took the event that we were expecting. Fixes bug #78605.
14381
14382 2006-06-07  Mike Kestner  <mkestner@novell.com>
14383
14384         * ListView.cs : isolated checkbox clicking from the selection logic.
14385         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
14386
14387 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14388
14389         * Form.cs: Check that the value passed to Form.DialogResult
14390         is a valid enum value.
14391
14392 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14393
14394         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
14395         Computer'. Clicking it in the network view goes to 'My Computer'.
14396         Added CIFS filesystem type. Display the mount point of filesystems.
14397         Avoid duplicate mount points (happens for me with CIFS);
14398
14399 2006-06-06  Jackson Harper  <jackson@ximian.com>
14400
14401         * InternalWindowManager.cs: Draw the maximized windows buttons
14402         when resizing.
14403
14404 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14405
14406         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
14407         all other dialogs. Fixes bug #78585.
14408
14409 2006-06-06  Mike Kestner  <mkestner@novell.com>
14410
14411         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
14412         Only invalidate checkbox on checkstate changes to avoid flicker.
14413         * ListBox.cs : avoid unselect/select when clicking selected item.
14414         avoid reselection flicker for already multiselected items.
14415         Fixes #78382.
14416
14417 2006-06-06  Jackson Harper  <jackson@ximian.com>
14418
14419         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
14420         the parent form so that the menu is removed if needed.
14421
14422 2006-06-06  Mike Kestner  <mkestner@novell.com>
14423
14424         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
14425         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
14426
14427 2006-06-06  Mike Kestner  <mkestner@novell.com>
14428
14429         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
14430
14431
14432 2006-06-06  Jackson Harper  <jackson@ximian.com>
14433
14434         * Control.cs: Use the property (instead of the field) to get the
14435         default cursor so it is instantiated correctly.
14436         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
14437         resizes so we need to manually repaint the window decorations here.
14438         - Set the titlebar button locations as soon as they are created,
14439         otherwise they are not set correctly on win32.
14440         
14441 2006-06-06  Chris Toshok  <toshok@ximian.com>
14442
14443         * CurrencyManager.cs (set_Position): call PullData before
14444         OnCurrentChanged.
14445         (AddNew): after calling IBindingList.AddNew, update our
14446         listposition, and call OnCurrentChanged/OnPositionChanged (without
14447         calling PullData).
14448         (OnCurrentChanged): remove the call to PullData from here.
14449         (OnItemChanged): remove the call to PushData from here.
14450         (OnPositionChanged): change the test from == null to != null to
14451         match the other methods.
14452         (ListChangedHandler): the grossest part of the patch.  Implement
14453         this such that it passes the unit tests in CurrencyManagerTest and
14454         the output more or less matches that of MS's implementation.
14455  
14456 2006-06-06  Mike Kestner  <mkestner@novell.com>
14457
14458         * ListView.cs : only update check state on single click.
14459         * ThemeWin32Classic.cs : fix focus drawing for details view without
14460         fullrowselect.  Fixes #78454.
14461         * XplatUIX11.cs : fix for double click emission.
14462
14463 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
14464
14465         * PropertyGridView.cs : Applied Atsushi's patch to fix
14466         font dialog bug  (#78197).
14467
14468 2006-06-05  Jackson Harper  <jackson@ximian.com>
14469
14470         * TreeNode.cs: Compute the next node for expanding/collapsing
14471         correctly. We now factor in nodes without a NextNode
14472         correctly. (Fixes somes cases in nunit-gui).
14473         * InternalWindowManager.cs: Set the bounds when updating the
14474         virtual position of a tool window.
14475         
14476 2006-06-05  Chris Toshok  <toshok@ximian.com>
14477
14478         * DataGrid.cs: rename cached_currencymgr to list_manager.
14479         (set_CurrentCell): move SetCurrentCell code here, and clean it up
14480         some.
14481         (CurrentRow, CurrentColumn): single accessors so we can make the
14482         cursor movement code a lot easier to understand.
14483         (CurrentRowIndex): implement this in terms of CurrentRow.
14484         (BeginEdit): clean this up a bit.
14485         (CancelEditing): sort out the is_editing/is_changing/is_adding
14486         stuff a little.
14487         (EndEdit): minor changes.
14488         (OnKeyDown): add a comment about a (most likely) unnecessary
14489         check.
14490         (OnMouseDown): cancel editing when we click on a row header.  And
14491         use the CurrentRow setter, not CurrentCell.
14492         (ProcessDialogKey): directly call ProcessGridKey.
14493         (UpdateSelectionAfterCursorMove): factor out this common block of
14494         code (it's used everywhere that we move the cursor by updating row
14495         or column).
14496         (ProcessGridKey): pretty substantial overhaul.  Use the
14497         CurrentRow/CurrentColumn properties to make the code a lot more
14498         readable.  Only use the CurrentCell property when we have to
14499         modify both row and column at once.  Tab behavior is still broken,
14500         and Delete is untested.
14501         (Select): if we have no selected rows, set selection_start to
14502         @row.
14503         (EditCurrentCell): rename EditCell this.  It was only ever invoked
14504         with CurrentCell as the arg, so drop the arg and rename it.
14505
14506         * DataGridColumnStyle.cs: clean up the constructors a little, and
14507         drop CommonConstructor().
14508
14509         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
14510         actually get notified when the user hits it.
14511         (ProcessKeyMessage): *substantially* simplify this method.
14512         There's no reason (that I can see) for the textbox to be making
14513         calls into the datagrid at all.  Remove all of them but the ones
14514         for Enter handling.  those will take some more work.
14515
14516         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
14517         calling HideEditBox.
14518         (HideEditBox): if we have an active textbox, render it invisible
14519         without causing a re-layout of the datagrid.
14520
14521 2006-06-05  Mike Kestner  <mkestner@novell.com>
14522
14523         * ListView.cs : fix NRE crasher when focuseditem is cleared by
14524         collection changes by resetting it to Items[0].  Fixes #78587.
14525
14526 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14527
14528         * MessageBox.cs: if the height of the text is larger than the icon_size,
14529         use that. Fixes bug #78575.
14530
14531 2006-06-05  Jackson Harper  <jackson@ximian.com>
14532
14533         * TreeView.cs: Fix line drawing when scrolling.  To do this each
14534         node is basically responsible for drawing its entire horizontal
14535         area.  When drawing a node it draws its parent node lines if
14536         needed.
14537         - Adjust the clip area to the viewport rectangle
14538         - Fix Left/Right key handling to match MS. (It expand/collapses
14539         and moves to parents/first child but does not move selection to
14540         sibling nodes).
14541         - Fix SetTop to work with new bound calculation code
14542         - When scrollbars are no longer needed we need to reset scrolling
14543         vars and recalculate the visible order so the redraw is correct
14544         * TreeNode.cs: We can't expand/collapse nodes with no children.
14545
14546 2006-06-03  John Luke  <john.luke@gmail.com> 
14547
14548         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
14549         so the colors work without dev packages
14550         
14551 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
14552
14553         * Control.cs 
14554           - Select: Implemented to just use activate. Seems to match MS 
14555             behaviour closest. Documented to only do actual control walking 
14556             based on it's parameters if in a container control so I moved 
14557             the code there.
14558           - Removed selection check logic from our internal Select() method
14559         * ContainerControl.cs:
14560           - Select: Moved selection logic from Control here, since MS documents
14561             that containers obey the bool arguments. No longer calling base
14562
14563 2006-06-02  Jackson Harper  <jackson@ximian.com>
14564
14565         * TreeView.cs: If the selected node isn't changed when we get
14566         focus update the previously selected node so that we see the
14567         selection box.
14568
14569 2006-06-02  Mike Kestner  <mkestner@novell.com>
14570
14571         * ComboBox.cs: restructure grab and general mouse event handling.
14572         Make the composite control raise mouse events like it was a single
14573         control for leaves/enters/motion/up/down events.  fix dropdown list
14574         coordinate mangling and refactor it into the scrollbar subclass to
14575         reduce code duplication.  Fixes #78282 #78361 and #78457.
14576
14577 2006-06-02  Mike Kestner  <mkestner@novell.com>
14578
14579         * ScrollBar.cs: remove Capture setting/clearing, as it happens
14580         automatically in the Control.WndProc.
14581
14582 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14583
14584         * FileDialog.cs: fix crash when running SharpChess, which sets the
14585         FilterIndex to 2 with only one Filter.
14586
14587 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14588
14589         * ToolBar.cs: add SizeSpecified property.
14590         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
14591         try to figure out our real size, otherwise fallback to what the
14592         container says.
14593
14594 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
14595
14596         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
14597         * Control.cs (WndProc): MS always calls the DefWndProc to pass
14598           up the event
14599
14600 2006-06-01  Mike Kestner  <mkestner@novell.com>
14601
14602         * ListView.cs: revamp the focus management in ListView.  It still
14603         causes churn of LostFocus/GotFocus emissions on clicks, but it's
14604         better than not handling focus at all.  Will revisit when pdb feels
14605         the general focus handling is solid.  Fixes #78526.
14606
14607 2006-06-01  Jackson Harper  <jackson@ximian.com>
14608
14609         * TreeView.cs: Set the default border style in the constructor.
14610         - Move painting to use OnPaintInternal instead of capturing
14611         WM_PAINT, this is the correct way of doing things
14612         - UpdateBelow shouldn't invalidate the scrollbar area
14613         - Cap the top on update below in case the node was above the top
14614         of the viewport rectangle.
14615         - ExpandBelow and Collapse below need to obey Begin/End Update.
14616         * TreeNode.cs: Make is_expanded internal so the treenode
14617         collection can change it without firing the whole event chain.
14618         * TreeNodeCollection.cs: When clearing all the child nodes make
14619         sure to recalc the visible order.
14620         - Improve algo for remove the top node
14621
14622 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
14623
14624         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
14625           SendMessage directly calling window procedures, which in turn might
14626           call SetFocus()
14627
14628 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
14629
14630         * Control.cs: Don't handle WM_SETFOCUS if the same window already
14631           has focus (works around X11 sending a FocusIn after our SetFocus)
14632         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
14633
14634 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
14635
14636         * Mime.cs: Fix for the NET_2_0 build.
14637           NameValueCollection needs StringComparer now.
14638
14639 2006-05-31  Chris Toshok  <toshok@ximian.com>
14640
14641         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
14642         return (via an out parameter) the starting X of the column.
14643         (UpdateVisibleColumn): track change to FromPixelToColumn.
14644         (HitTest): add a ColumnResize case here.
14645         (DrawResizeLine): new function, probably poorly named.
14646
14647         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
14648         only need to keep one reference.
14649         (set_ListManager): same.
14650         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
14651         Also, add support for HitTestType.ColumnResize.
14652         (OnMouseMove): add column resize behavior here, and change the
14653         cursor to the correct one as we move around the datagrid.
14654         (OnMouseUp): terminate the column resize if we're resizing.
14655         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
14656         for the current cell.
14657         (ConnectListManagerEvents): use cached_currencymgr.
14658         (DisconnectListManagerEvents): fill this in, using
14659         cached_currencymgr.
14660         (SetCurrentCell): remove cached_currencymgr_events handling.
14661         (SetDataMember): only call DisconnectListManagerEvents if
14662         cached_currencymgr is != null.
14663         (SetDataSource): same.
14664         (OnListManagerCurrentChanged): cached_currencymgr_events ->
14665         cached_currencymgr.
14666
14667 2006-05-31  Jackson Harper  <jackson@ximian.com>
14668
14669         * BindingManagerBase.cs: Remove somedebug code that creeped into
14670         SVN.
14671         * TreeNode.cs: We get the indent level dynamically right now, so
14672         don't track it as a member.
14673         * TreeNodeCollection.cs: Make sure all nodes added to the list
14674         have parents, treeviews/topnodes setup properly.
14675         - Don't attempt to track indent level.
14676
14677 2006-05-30  Jackson Harper  <jackson@ximian.com>
14678
14679         * BindingContext.cs: Create the currency manager tables here.
14680         This allows us to more easily create null tables (when bad data
14681         members are used), and more easily create related currency
14682         managers.
14683         * CurrencyManager.cs: All the table creation stuff is done by the
14684         binding context now.
14685         - Current should throw an exception if listposition is -1.
14686         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
14687         been bound yet.
14688
14689 2006-05-30  Mike Kestner  <mkestner@novell.com>
14690
14691         * ListView.cs: allow reexpansion of zero-width column headers.
14692         Fixes #78528.
14693
14694 2006-05-28  Chris Toshok  <toshok@ximian.com>
14695
14696         * CurrencyManager.cs (get_Current): after the late binding
14697         listposition = -1 fix, we need to guard against it here and return
14698         null, otherwise we raise an exception (which is swallowed
14699         elsewhere, and breaks datagrid databinding.)
14700
14701 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
14702
14703         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
14704           than WM_SYSKEY, don't throw if get something unexpected (#78507)
14705
14706 2006-05-26  Jackson Harper  <jackson@ximian.com>
14707
14708         * ControlPaint.cs:
14709         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
14710         values, it's faster and it's all we care about (we don't care if
14711         the names aren't equal).
14712         * KeyboardLayouts.cs: Eliminate some dead code.
14713         - Lazy init things
14714         * X11Keyboard.cs: Lazy init keyboard detection.
14715         - Cleanup access modifiers a little.
14716
14717 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
14718
14719         * XplatUIX11.cs: Once again, attempting to get layout just right.
14720
14721 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
14722
14723         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
14724           the sizes of each link section, that will result in sizes that
14725           match DrawString's layout (Fixes #78391)
14726
14727 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
14728
14729         * FileDialog.cs: If AddExtension property is true autocomplete the
14730           extensions in SaveFileDialog correctly. Fixes bug #78453.
14731           Set MyNetwork and MyComputer to "C:\" for windows. This should
14732           fix part 8 of bug #78446 for now.
14733
14734 2006-05-26  Chris Toshok  <toshok@ximian.com>
14735
14736         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
14737         invalidate the current row header if we need to, but presumably
14738         we'll invalidate the row corrsponding to the bounds or
14739         editingControl.
14740         (GridHScrolled): switch back to this method, as it's part of the
14741         public api.  *sigh*.
14742         (GridVScrolled): same.
14743         (OnMouseWheel): hack up something that more or less works.  Call
14744         GridHScrolled/GridVScrolled directly, instead of duplicating much
14745         of their code here.
14746         (EnsureCellVisibility): reinstate a bunch of this code, since we
14747         can't just set the scrollbar Value and expect to do all the work
14748         in the ValueChanged handler.  Also, Call Update() after scrolling
14749         in one direction so the other XplatX11.ScrollWindow call has the
14750         proper stuff in the proper places.
14751         (EditCell): set is_editing to true before calling .Edit.
14752
14753         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
14754         don't bother comparing first.
14755         (OnKeyPress): call grid.ColumnStartedEditing before calling
14756         base.OnKeyPress.  this will set is_changing and invalidate the row
14757         header if necessary.
14758         (ProcessKeyMessage): for WM_CHAR messages, call
14759         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
14760         and WM_KEYDOWN.
14761         
14762         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
14763         it's done in the DataGrid.
14764         (NextState): call grid.ColumnStartedEditing, which takes care of
14765         invalidating the row header (and setting is_changing).
14766
14767         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
14768         here.  it's done in the DataGrid.
14769
14770 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14771
14772         * Control.cs: allow changing the cursor when the mouse position is
14773         out of bounds but Capture is set.
14774         * LinkLabel.cs: handle the case when the mouse button is pressed on the
14775         linklabel but released somewhere else.
14776
14777 2006-05-25  Jackson Harper  <jackson@ximian.com>
14778
14779         * TreeView.cs: When we get focus if there is no selected node make
14780         it the top node
14781         - Remove some uneeded setup code from Draw.
14782         * TreeNodeCollection.cs: If the tree doesn't have a top node when
14783         a new node is inserted make the new node the top.
14784         * XplatUIX11.cs:
14785         * Timer.cs: Use Utc time so that no local time zone stuff needs to
14786         be used (should be faster).
14787         
14788 2006-05-25  Chris Toshok  <toshok@ximian.com>
14789
14790         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
14791         problem with the last commit.
14792
14793 2006-05-25  Chris Toshok  <toshok@ximian.com>
14794
14795         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
14796         need the invalidate call here, while scrolling right-to-left via
14797         the left arrow key (i.e. moving the editing cell while scrolling).
14798
14799         * DataGrid.cs (.ctor): remove the initialization of
14800         ctrl_pressed/shift_pressed.  We no longer track them using key
14801         up/down handlers, but by using Control.ModifierKeys.  Also, switch
14802         to using ValueChanged handlers on the scrollbars instead of
14803         Scrolled event handlers.  This simplifies a bunch of the scrolling
14804         code.
14805         (GridHValueChanged): rename from GridHScrolled, and change it to
14806         work with the new event args.
14807         (GridVValueChanged): same.
14808         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
14809         (OnMouseWheel): actually scroll the datagrid.  Don't change the
14810         selected cell.
14811         (ProcessGridKey): correct all the keyboard navigation stuff I
14812         could find.  Ctrl up/down/left/right/home/end work now.
14813         (EnsureCellVisibility): correct method name spelling.  Also,
14814         simplify this a touch by not explicitly calling the
14815         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
14816         scrollbar value.
14817         (OnKeyUpDG): no need for this method now.
14818         
14819 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14820
14821         * LinkLabel.cs: display the OverrideCursor when hovering the label.
14822         Fixes bug #78392.
14823
14824 2006-05-25  Chris Toshok  <toshok@ximian.com>
14825
14826         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
14827         r61019.
14828
14829 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
14830
14831         * Application.cs: Moved setting of is_modal and closing to before
14832           we create the control, to allow the event handlers called as a
14833           result of creation affect closing. Also removed Gonzalo's previous
14834           change to setting DialogResult, the behaviour has been moved to 
14835           Form.ShowDialog()
14836         * Form.cs: 
14837           - ShowDialog(): Removed explicit creation of the form, let RunLoop
14838             handle it instead
14839           - ShowDialog(): If no dialog result is set, we need to return Cancel
14840           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
14841             the close is cancelled
14842
14843 2006-05-25  Jackson Harper  <jackson@ximian.com>
14844
14845         * StatusBar.cs: We only need to update the sizes of the other
14846         panels when we have auto size contents.  Also we are only updating
14847         the contents of the panel, not the borders, so compensate for the
14848         border width (TODO: get this width from the theme somehow).
14849         * TreeView.cs: Scrollable is true by default
14850         - Use invalidate instead of refresh where needed
14851         - Factor the scrollable value into scrollbar updating
14852         - Update the scrollbars if the Scrollable property is altered
14853         - Update the selected node if its ImageIndex is changed
14854         - Handle null nodes in UpdateNode (mainly so we don't have to
14855         check if selected is null when updating it
14856         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
14857         are factored into the visible count
14858         - Use VisibleCount for clarity in the code
14859         - When the font is changed we need to recurse through all the
14860         nodes and invalidate their sizes
14861         
14862 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14863
14864         * Application.cs: set the DialogResult to fixed when the main form is
14865         hidden or destroyed while being modal.
14866
14867 2006-05-25  Miguel de Icaza  <miguel@novell.com>
14868
14869         * Theme.cs: Use Tangoified messagebox icons. 
14870
14871         (GetSizedResourceImage): Also cope with width = 0 and do not
14872         trigger a warning in that case (0 means "give me your icon from
14873         the resouce, no special size needed).
14874
14875 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
14876
14877         * Application.cs: Leave runloop if the the main modal form is 
14878           hidden (fixes #78484)
14879
14880 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
14881
14882         * BindingContext.cs : reject null datasource in Contains() and
14883           Item[].
14884         * CurrencyManager.cs : check data_member validity when data_source
14885           is dataset. When it is late binding, the initial position is -1.
14886
14887 2006-05-24  Jackson Harper  <jackson@ximian.com>
14888
14889         * TreeNodeCollection.cs: Dont't recalculate the visible order on
14890         inserted nodes that aren't visible.  This changes the
14891         max_visible_order which confuses scrollbar settings.
14892         - Use the enumerator to get the prev node instead of duplicating
14893         code.
14894         * TreeView.cs: Use new method for setting scrollbar values
14895         - Don't set the bounds every time the scrollbar is updated
14896         - When updating below the root node use an invalidate instead of a
14897         refresh to prevent the child controls (scrollbars) from being
14898         refreshed. (UpdateBelow still needs to be reworked anyways).
14899         - Reenable SetBottom now that visible orders are set correctly,
14900         added some debug code incase we ever get bad values there again.
14901         - Set the scrollbar max to 2 less then the max value, this
14902         compensates for the max value being one above the node count, and
14903         for scrollbars adding one extra "notch".
14904         - When drawing image nodes if there is an imagelist we draw the
14905         first image in the list if the supplied image index is out of the
14906         image list's bounds.
14907         
14908 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
14909
14910         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
14911           we receive a size change from the WM (Fixes #78503)
14912
14913 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
14914
14915         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
14916           rectangle (Fixes #78501)
14917
14918 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
14919
14920         * ButtonBase.cs: 
14921           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
14922             as a bitfield.
14923           - Fixed MouseMove to no longer switch pressed state unless the left
14924             mouse button is pressed. Atsushi provided the original patch (#78485)
14925           
14926 2006-05-24  Jackson Harper  <jackson@ximian.com>
14927
14928         * ScrollBar.cs: New internal methods that allow us to change a
14929         couple values on the scrollbar (the most common case is maximum
14930         and large change) without getting multiple invalidates.
14931
14932 2006-05-24  Chris Toshok  <toshok@ximian.com>
14933
14934         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
14935         (Edit): save off the original state in oldState, and set
14936         grid.is_editing to true.
14937         (OnKeyDown): abort editing if escape is pressed.  also, call
14938         NextState if space is pressed.
14939         (OnMouseDown): call NextState.
14940         (NextState): factor out shared code from OnKeyDown and OnMouseDown
14941         here.  Also, only invalidate the row header once (on the initial
14942         is_changing switch) to save on redraws.
14943
14944 2006-05-24  Chris Toshok  <toshok@ximian.com>
14945
14946         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
14947         if the value in the cell is different than it was before.  This
14948         keeps us from triggering a layout when we move around a datarid
14949         with a highlighted cell.
14950         (Edit): suspend layout when creating/positining the text box, and
14951         resume passing false so we don't ever actually re-layout.
14952         (ReleaseHostedControl): same.
14953         (EnsureTextBox): reformat slightly, and set WordWrap to false.
14954
14955         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
14956         control-key sequences should go to the datagrid - remove that
14957         lock.  Also, modify the conditions under which we move between
14958         cells when moving the cursor within a cell, and remove the "this"
14959         and "base" from field accesses.  We weren't even consistent, given
14960         they all were in the base class.
14961
14962 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
14963
14964         * Binding.cs : (.ctor)
14965           An obvious NRE fix for BindingTest.CtorNullTest().
14966
14967 2006-05-23  Chris Toshok  <toshok@ximian.com>
14968
14969         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
14970         them between lines.  This fixes some quirks editing cells in the
14971         datagrid.
14972
14973 2006-05-23  Jackson Harper  <jackson@ximian.com>
14974
14975         * TreeView.cs: Use begin/end update when doing expand/collapse all
14976         so that we don't get flicker on the scrollbar.
14977
14978 2006-05-23  Jackson Harper  <jackson@ximian.com>
14979
14980         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
14981         treenode calculations to be independant of the painting code. To
14982         do this nodes track a visible order which is calculated by the
14983         treeview.
14984         - Call new methods for expanding/collapsing nodes.  These methods
14985         use scrollwindow so we don't have to update everything below the
14986         node.
14987         * TreeView.cs: Refactored drawing and scrolling code.  We don't
14988         need to update nodes when drawing anymore or calculate scrollbar
14989         stuff.
14990         - Added new methods for expanding/collapsing nodes. These methods
14991         use ScrollWindow so as to not have to redraw all the nodes below.
14992         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
14993         we add/remove nodes or sort.
14994         - Handle removing the selected and the top node properly.
14995
14996 2006-05-23  Chris Toshok  <toshok@ximian.com>
14997
14998         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
14999         maybe this should actually happen in the datagrid code?
15000         (EndEdit): no need to invalidate anything, given that
15001         ReleaseHostedControl causes the datagrid to relayout, which
15002         invalidates everything anyway.
15003
15004         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
15005         in SetCurrentCell).
15006         (set_SelectionBackColor): call InvalidateSelection instead of
15007         Refresh.
15008         (set_SelectionForeColor): same.
15009         (BeginEdit): Flesh this out a bit.
15010         (CancelEditing): only do any of this if we're editing/adding.
15011         (EndEdit): same.
15012         (OnMouseDown): there's no need to cancel editing here, it's done
15013         in SetCurrentCell.
15014         (SetCurrentCell): only invalidate the current row header if it's a
15015         different row than the new one.
15016         (ShiftSelection): fix this to work like MS does.
15017         (ResetSelection): factor out the invalidation of selected_rows to
15018         InvalidateSelection.
15019         (SetDataSource): cancel any editing that's going on.
15020
15021         * DataGridColumnStyle.cs
15022         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
15023         call the non-interface version.
15024
15025         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
15026         header rectangle with the clip rectangle so we don't redraw the
15027         entire header for just a small area.  Gets rid of the last flicker
15028         when horizontally scrolling.
15029         (DataGridPaintRow): same.
15030
15031 2006-05-23  Mike Kestner  <mkestner@novell.com>
15032
15033         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
15034         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
15035         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
15036         Critical bug report.
15037
15038 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
15039
15040         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
15041           and this fixes #78493
15042
15043 2006-05-23  Miguel de Icaza  <miguel@novell.com>
15044
15045         * Theme.cs (GetSizedResourceImage): Scale images if the proper
15046         size is not found.  
15047         
15048         * FileDialog.cs: Do not change the background for the side bar as
15049         it wont work nicely with the theme, and also reduces the artifacts
15050         in rendering the icons (which I want to fix too).
15051
15052         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
15053         resources, not resgen resources. 
15054
15055         (PlatformDefaultHandler): Pull images using the new API.
15056
15057 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
15058
15059         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
15060           a reference to the hwnd and will not remove it unless there are
15061           no pending exposures (fixes #78341)
15062         * XplatUI.cs: Improved debug
15063
15064 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
15065
15066         * MenuAPI.cs : don't handle OnClick event when it was not the left
15067           button. Fixed bug #78487.
15068
15069 2006-05-23  Mike Kestner  <mkestner@novell.com>
15070
15071         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
15072         prefer submenus to the top menu for item lookup, to avoid popping down
15073         top-row items.
15074
15075 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
15076
15077         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
15078           Graphics.FillRectangle as the visual results are really bad (even
15079           on win). We now draw perfect arrows (and perfect shadows when the
15080           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
15081           Pen.DashPattern to draw the dots of each line.
15082
15083 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
15084
15085         * FileDialog.cs: Update the filename combobox when navigating through
15086           the ListView with the cursor keys. Fixes part 7 of bug #78446.
15087
15088 2006-05-22  Mike Kestner  <mkestner@novell.com>
15089
15090         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
15091         Fixes #78463.
15092
15093 2006-05-22  Mike Kestner  <mkestner@novell.com>
15094
15095         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
15096         requests. Fix a misspelled parameter and a copy paste exception error
15097         in Select.
15098
15099 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
15100
15101         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
15102           to get the same width/height (5/13) on X11 as the default font has on
15103           win32. This means that our DefaultFont emSize is smaller than the 
15104           the MS SWF equivalent (even thought the width/height stays the same)
15105
15106 2006-05-20  Jackson Harper  <jackson@ximian.com>
15107
15108         * MdiClient.cs:
15109         * MdiWindowManager.cs:
15110         * InternalWindowManager.cs: Make sure to use the border width from
15111         the theme.
15112
15113 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
15114
15115         * PrintDialog.cs: Implements printer details
15116
15117 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
15118
15119         * FileDialog.cs: Added focus handling for PopupButtonPanel.
15120           Fixes part 1 and 2 of bug #78446
15121
15122 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
15123
15124         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
15125           instead of sticking to the first ever calculated value
15126
15127 2006-05-19  Mike Kestner  <mkestner@novell.com>
15128
15129         * ComboBox.cs: fix mouse motion selection to use MousePosition and
15130         PointToClient, since Capture is set. Fixes #78344.
15131
15132 2006-05-19  Mike Kestner  <mkestner@novell.com>
15133
15134         * ListView.cs: match MS behavior in Details view where items are not
15135         drawn if Columns.Count == 0. 
15136         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
15137         Use a separate pen to draw the check, since changing the width affects
15138         the box as well.  Fixes #78454.
15139
15140 2006-05-18  Miguel de Icaza  <miguel@novell.com>
15141
15142         * ListView.cs: ArgumentOutOfRangeException, single versions of the
15143         exception should throw the name of the invalid argument.
15144
15145         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
15146         there are no files listed. 
15147
15148 2006-05-18  Jackson Harper  <jackson@ximian.com>
15149
15150         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
15151         up.
15152
15153 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
15154
15155         * Control.cs: Brought back our old UpdateZOrder method as a private
15156           function and switched our calls from UpdateZOrder to the new one.
15157           This fixes the Paint.Net canvas disappearing bug.
15158
15159 2006-05-18  Jackson Harper  <jackson@ximian.com>
15160
15161         * Theme.cs:
15162         * ThemeWin32Classic.cs:
15163         * InternalWindowManager.cs: Move the drawing into the theme,
15164         expose everything the theme should need from the window manager.
15165
15166 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
15167
15168         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
15169           from the call to NativeWindow to avoid walking up the parent chain
15170           further than needed (speeds up setting cursors and avoids setting
15171           the wrong cursor if a parent has another cursor defined)
15172         * Cursor.cs: When loading an icon as cursor, MS uses the center of
15173           the icon as hotspot, not what's contained as hotspot in the icon
15174           file. This fixes the perceived drawing offset seen with Paint.Net
15175         
15176 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
15177
15178         * XplatUIX11.cs: 
15179           - Store the calculated rectangle in Hwnd object and use it when 
15180             setting the client size
15181           - Force Toolwindows to always be type Dock, to ensure they're on top
15182
15183 2006-05-18  Mike Kestner  <mkestner@novell.com>
15184
15185         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
15186         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
15187         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
15188         Substantial refactoring to remove confusing nested classes. Coding
15189         standard and Get+Set->property refactorings.  Shift to index based
15190         highlighting in ComboListBox instead of constantly using IndexOf and
15191         Items[]. Add invalidations on resize for DropDownList to fix ugliness
15192         in FileDialog growth.  Draw borders manually since Simple mode needs
15193         to look like two independent controls.  Make listbox border
15194         conditional to DropDownStyle.  Improved OwnerDraw support.
15195
15196 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
15197
15198         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
15199         Don't set the disposed graphics to null, so we can throw the "right"
15200         exception if the graphics is reused later (added a flag to avoid 
15201         double disposing). Some behaviours are different under 2.0 and are
15202         filled under bug #78448.
15203
15204 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
15205
15206         * Control.cs: When double-buffering is enabled, we need to reset
15207           our graphics context between paint calls. Otherwise, any 
15208           transformations and other alterations on the context will 
15209           become cumulative (#77734)
15210
15211 2006-05-18  Mike Kestner  <mkestner@novell.com>
15212
15213         * ListView.cs: do focused item selection like MS on clicks. 
15214         Rework focus handling for ItemControl so LostFocus invalidates as
15215         well.
15216         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
15217         the ListView ItemControl has focus.
15218
15219 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
15220
15221         * XplatUIX11.cs: If client_window ends up being width or height zero
15222           due to border settings, move it off window inside whole_window (#78433)
15223
15224 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
15225
15226         * Mime.cs: Shrink the mime file cache correctly.
15227
15228 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
15229
15230         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
15231
15232 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
15233
15234         * XplatUIX11.cs (AddExpose): More sanity checks
15235
15236 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
15237
15238         * XplatUIX11.cs:
15239           - AddExpose: Don't add expose ranges outside the size of our
15240             window
15241           - Cast opacity values to Int32 to avoid crashes with certain
15242             values
15243           - Added disabled code paths that protect against illegal cross-
15244             thread painting (Developers.exe)
15245
15246 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
15247
15248         * ProgressBar.cs: Invalidate the control when it's resized
15249           since block size is based on control size. (#78388)
15250
15251 2006-05-16  Miguel de Icaza  <miguel@novell.com>
15252
15253         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
15254         of setting the incoming argument to the "reset" value, we set the
15255         this.datamember to string.empty (before we were invalidating the
15256         incoming data).   
15257
15258         Fixes 78420
15259
15260 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
15261
15262         * Form.cs: Only apply transparency settings after the form
15263           is created. (Fixes #77800)
15264
15265 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
15266
15267         * ApplicationContext.cs: Grab the HandleDestroyed event so
15268           we know when to fire OnMainFormClosed 
15269
15270 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
15271
15272         * Application.cs: Introduced sub-class to allow tracking of
15273           threads and centralized triggering of the event mess for
15274           ThreadExit, AppExit, etc..  (#76156)
15275
15276 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
15277
15278         * MimeIcon.cs:
15279           - Do not return a null icon index value for a mime subclass.
15280             Instead try the main mime type class too.
15281           - Seems that some newer distributions don't have a link to some
15282             gnome default icons anymore. So check the default gnome dir too.
15283           
15284
15285 2006-05-16  Jackson Harper  <jackson@ximian.com>
15286
15287         * MdiClient.cs: Don't paint the parent background image if we have
15288         our own background image.
15289
15290 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
15291
15292         * Control.cs:
15293           - PerformLayout: Do not shrink space filled by DockStyle.Fill
15294             controls, all filled controls are supposed to overlap (#78080)
15295           - UpdateZOrder is supposed to update the control's z-order in the
15296             parent's z-order chain. Fixed to behave like that
15297           - BringToFront: Removed obsolete code
15298           - SendToBack: Simplyfied
15299           - SetChildIndex: Trigger layout calculations when Z-order changes
15300             since layout is done by z-order
15301
15302 2006-05-16  Chris Toshok  <toshok@ximian.com>
15303
15304         [ fixes bug #78410 ]
15305         * DataGrid.cs (set_AlternatingBackColor): use
15306         grid_drawing.InvalidateCells instead of Refresh().
15307         (set_BackColor): call grid_drawing.InvalidateCells.
15308         (set_BackgroundColor): use Invalidate instead of Refresh.
15309
15310         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
15311         invalidate the cell area.
15312
15313 2006-05-15  Chris Toshok  <toshok@ximian.com>
15314
15315         [ fixes bug #78011 ]
15316         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
15317         on to DataGridPaintRow.
15318         (DataGridPaintRow): take a clip argument, and only draw the cells
15319         which intersect it.  same with the not_usedarea.
15320
15321         * Theme.cs (DataGridPaintRow) add @clip parameter.
15322
15323         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
15324         XplatUI.ScrollWindow.
15325         (ScrollToRow): same.
15326
15327         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
15328         with last column which was causing a gray swath to appear with the
15329         XplatUI.ScrollWindow code.
15330
15331 2006-05-15  Chris Toshok  <toshok@ximian.com>
15332
15333         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
15334         use XplatUI.ScrollWindow.
15335         (VerticalScrollEvent): use XplatUI.ScrollWindow.
15336
15337 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
15338
15339         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
15340
15341 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
15342
15343         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
15344           file since there are no equivalent X11 cursors
15345
15346 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
15347
15348         * MonthCalendar.cs : DateTimePicker should reflect selected date
15349           on mouse*up*, not mouse*down*. Fixed originally reported part of
15350           bug #76474.
15351
15352 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
15353
15354         * TabControl.cs : When argument index is equal or more than tab
15355           count, just ignore. Fixed bug #78395.
15356
15357 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
15358
15359         * Control.cs: Dispose all child controls when control is diposed (#78394)
15360
15361 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
15362
15363         * ColorDialog.cs: Finally it is possible to select the color with
15364           the text boxes
15365
15366 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
15367
15368         * PrintDialog.cs: Fix typo
15369
15370 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
15371
15372         * PrintDialog.cs: PrintDialog is not resizable
15373         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
15374           color. Made some ToolBar drawing methods protected virtual.
15375
15376 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
15377
15378         * PrintDialog.cs: Implementation of the PrintDialog
15379
15380 2006-05-12  Chris Toshok  <toshok@ximian.com>
15381
15382         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
15383         thumb, instead use MoveThumb.  This has the side effect of making
15384         most of the other thumb moving machinery use MoveThumb as well.
15385         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
15386         need to actually invalidate the rectangle where the new thumb will
15387         go.
15388         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
15389         We force an Update() after, so it's not as fast as it could be,
15390         but at least there's zero flicker and no droppings.
15391         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
15392         (UpdateThumbPos): add another argument (dirty), which says whether
15393         or not to calculate/add dirty regions which we later invalidate.
15394         For cases where we know we're going to use MoveThumb, we pass
15395         false for this.  Otherwise, pass true.
15396
15397 2006-05-12  Jackson Harper  <jackson@ximian.com>
15398
15399         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
15400         the status bar.
15401         
15402 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
15403
15404         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
15405           and GetClipRegion methods and UserClipWontExposeParent property.
15406         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
15407           overriding UserClipWontExposeParent property, setting to false, since
15408           Win32 handles the required expose messages to draw our clipped parent
15409           areas internally
15410         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
15411           PaintEventStart to set the user clip region if set.
15412         * Control.cs: 
15413           - Now internally tracking the Region for the control since we need to
15414             store it if the handle is not yet created and only set it when it
15415             becomes created. Before setting the region forced handle creation
15416           - Added code to draw the parents underneath a user-clipped region
15417         * Hwnd.cs: Added UserClip property
15418
15419 2006-05-12  Chris Toshok  <toshok@ximian.com>
15420
15421         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
15422         (set_Maximum): same.
15423         (set_Minimum): same.
15424         (set_SmallChange): same.
15425         (OnMouseUpSB): remove the call to refresh when releasing the
15426         thumb.  We shouldn't need it.
15427         
15428 2006-05-12  Miguel de Icaza  <miguel@novell.com>
15429
15430         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
15431         AutoSize set to None, we do not need to relayout everything, we
15432         just need to invalidate the current region.
15433
15434         (Draw): Do not draw the entire ClientArea, just redraw the
15435         clip area being passed.
15436
15437         * MdiClient.cs: Make MdiClient constructor with the Form argument
15438         internal. 
15439
15440 2006-05-12  Jackson Harper  <jackson@ximian.com>
15441
15442         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
15443         parents background image,  but strangely not their own.
15444         - (DrawStatusBarPanel): Take into account horizontal alignment
15445         when drawing the strings and icons.
15446
15447 2006-05-12  Mike Kestner  <mkestner@novell.com>
15448
15449         * ListBox.cs: avoid invalidations for focus when the collection is
15450         empty. 
15451
15452 2006-05-12  Chris Toshok  <toshok@ximian.com>
15453
15454         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
15455         invalidate the entire thumb area.  Call InvalidateDirty which
15456         limits the redraw to the thumb itself and surrounding pixels.
15457
15458         * XplatUIX11.cs (ScrollWindow): optimize copying.
15459         
15460 2006-05-12  Chris Toshok  <toshok@ximian.com>
15461
15462         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
15463         Figure out the positioning/layout in a single pass instead of
15464         multiple recursive invocations.  Speeds up the initial display of
15465         the data grid.  Also, make many things private that were
15466         originally public but unused outside this class.
15467
15468 2006-05-11  Jackson Harper  <jackson@ximian.com>
15469
15470         * MdiClient.cs: Improved layout code.
15471
15472 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
15473
15474         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
15475           not SelectedObject.
15476
15477 2006-05-11  Chris Toshok  <toshok@ximian.com>
15478
15479         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
15480         union of that will always be {0,0,width,height}.
15481
15482 2006-05-11  Jackson Harper  <jackson@ximian.com>
15483
15484         * Form.cs: Match MS's DefaultSize for forms (they must have
15485         changed the size in sp2).
15486
15487 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
15488
15489         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
15490
15491 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
15492
15493         * TextControl.cs : Fixed bug #78109. This incorrect position
15494           comparison caused crash on automatic line split.
15495         * TextBoxBase.cs : reduce duplicate code.
15496
15497 2006-05-10  Jackson Harper  <jackson@ximian.com>
15498
15499         * MdiClient.cs: Active form is only sent to the back when using
15500         the Next form functionality, when a form is clicked the current
15501         active shouldn't be sent to the back.
15502         - Layout the mdi windows when the container is first made visible.
15503         * Form.cs: Give the MdiClient a ref to the containing form when we
15504         create it.
15505         
15506 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
15507
15508         * LinkLabel.cs : link_font could be uninitialized, so populate one
15509           before actual use. Fixed bug #78340.
15510
15511 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
15512
15513         * XplatUIX11.cs : clipboard format native value is IntPtr.
15514           Fixed bug #78283.
15515
15516 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
15517
15518         * Control.cs: 
15519           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
15520             which is passed up the parent chain by DefWndProc
15521           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
15522             to DefWndProc (#77956)
15523         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
15524
15525 2006-05-10  Jackson Harper  <jackson@ximian.com>
15526
15527         * MdiClient.cs: We need to remove the controls from the mdi
15528         collection, when we close the window.
15529         * MdiWindowManager.cs: Special handling of closing mdi windows.
15530         * InternalWindowManager.cs: Make the close method virtual so the
15531         mdi window manager can handle it specially.
15532
15533 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
15534
15535         * DataGrid.cs:
15536           - Recalculate grid when the data source has changed
15537           - Matches styles provided by user from all data sources types
15538         * DataGridTableStyle.cs: For columns that provided by the user set the
15539         with the preferred value is there was unassigned.
15540         * CurrencyManager.cs: throw OnItemChanged event
15541
15542 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
15543
15544         * PictureBox.cs: Don't animate until handle is created. Start animation
15545           when handle is created.
15546
15547 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
15548
15549         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
15550           current codebase.
15551         * XEventQueue.cs: We don't need to provide the extra info
15552
15553 2006-05-10  Jackson Harper  <jackson@ximian.com>
15554
15555         * MdiClient.cs: If the mdi clients parent form has a background
15556         image set, we draw that background image for the mdi area's
15557         background.
15558
15559 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
15560
15561         * TextBoxBase.cs: Set IBeam cursor (#78347)
15562
15563 2006-05-10  Mike Kestner  <mkestner@novell.com>
15564
15565         * ToolBar.cs: fix some text padding issues with ButtonSize
15566         calculation. Update the default size to match MS documentation.
15567         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
15568         button size. Fixes #78296.
15569
15570 2006-05-10  Mike Kestner  <mkestner@novell.com>
15571
15572         * ListBox.cs: use is_visible for scrollbar positioning in case the
15573         control isn't on screen yet.  Fix off by one with Right vs Width
15574         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
15575         
15576 2006-05-10  Jackson Harper  <jackson@ximian.com>
15577
15578         * X11Dnd.cs: Drop to a control with another control on top of it.
15579         * ToolBar.cs: Work on a copy of the buttons list, so that it can
15580         be modified in click handlers. TODO: Look for similar problems in
15581         other controls.
15582
15583 2006-05-09  Jackson Harper  <jackson@ximian.com>
15584
15585         * Form.cs: Window managers need the old window state when setting
15586         window state now.
15587         * InternalWindowManager.cs: Allow the base mdi window manager to
15588         handle more of the MDI only stuff (like maximize buttons).
15589         * MdiWindowManager.cs: Fix some snafus in changing the window
15590         state.  Add all the menu functionality, for both popup and
15591         maximized menus.
15592         * MdiClient.cs: When a new form is selected the currently
15593         activated form is sent to the back, this matches MS.
15594         - Implement a new method to activate the next mdi child window.
15595
15596 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
15597
15598         * Control.cs: 
15599           - Added new InternalCapture method to allow controls to prevent
15600             the capture behaviour on the click handlers
15601           - Switched to use InternalCapture
15602         * ComboBox.cs:
15603           - Using InternalCapture to prevent mouse captures from being released
15604             on mouse button release (Fixes #78100)
15605         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
15606           returns Form borders if a caption is present. (Fixes #78310)
15607
15608 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
15609
15610         * TreeNode.cs: Changed serialization .ctor to not require every field
15611           to be present. (#78265)
15612         * OwnerDrawPropertyBag.cs: Added serialization .ctor
15613
15614 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
15615
15616         * MimeIcon.cs: for is faster than foreach for strings.
15617
15618 2006-05-05  Mike Kestner  <mkestner@novell.com>
15619
15620         * CheckedListBox.cs: update check handling code to not use selected.
15621         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
15622         behavior for visual feedback, motion response, shift/ctrl handling,
15623         and properly deal with all 4 selection modes. Updates to bounds
15624         handling logic.  Add scroll wheel support. [Fixes #77842]
15625
15626 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
15627
15628         * ListView.cs:
15629           - Moved adding of Implicit controls into .ctor. That way, subsequent
15630             creation of the controls will not cause them to think they are 
15631             toplevel windows (fixes #78200 header problem)
15632           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
15633           - Switched visibility setting of header control to use internal field
15634             to avoid triggering handle creation
15635           - Now checking if handle is created before causing a refresh when items
15636             are added (This makes us now match handle creation time with MS)
15637         * Splitter.cs: Removed loading of private splitter cursor, switched to
15638           Cursors version now that that is loading the right ones
15639         * Cursors.cs: Load proper splitter cursors from resources
15640         * Cursor.cs: Added second method of loading resource cursors for the 
15641           VS.Net users amongst us
15642
15643 2006-05-05  Mike Kestner  <mkestner@novell.com>
15644
15645         * ListView.cs: give header_control a minimum size based on the
15646         ListView size.
15647
15648 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
15649
15650         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
15651           window seems to do that with metacity, so set that type. (#78120)
15652
15653 2006-05-05  Mike Kestner  <mkestner@novell.com>
15654
15655         * ListViewItem.cs: fix Details mode checkbox layout bug.
15656         * ThemeWin32Classic.cs: draw a ListView column header for unused space
15657         at the end of the header, if it exists. [Fixes for #78200]
15658
15659 2006-05-04  Jackson Harper  <jackson@ximian.com>
15660
15661         * MdiClient.cs: Add a helper property to get the container form.
15662         * MdiWindowManager.cs: We have to make sure to use the menu origin
15663         when drawing the icons and buttons, this fixes maximized window
15664         icons/buttons on win32.
15665         * InternalWindowManager.cs: Reset the restore captions when a
15666         window goes from Maximized to Minimized and vice versa. Move the
15667         DrawMaximizedButtons into the MdiWindowManager source, tool
15668         windows can't be maximized. NOTE: This could use a little
15669         refactoring if time ever permits.
15670         
15671 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
15672
15673         * TextBox.cs: Add MWFCategoryAttributes
15674         * TextBoxBase.cs: Add MWFCategoryAttributes
15675         * Form.cs: Add MWFCategoryAttributes
15676
15677 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
15678
15679         * Control.cs: Add MWFCategoryAttributes
15680         * ScrollableControl.cs: Add MWFCategoryAttributes
15681
15682 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
15683
15684         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
15685           Divider is true. Fix a little glitch in PropertyToolBar
15686           drawing code
15687
15688 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
15689
15690         * Control.cs:
15691           - Dispose: Call base.Dispose, this causes the disposed event
15692             to be fired (and probably other, more important stuff)
15693           - SetVisibleCore: Set is_visible to true after creating the
15694             window so that the window still gets created invisible (if
15695             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
15696             to generate a WM_ACTIVE message
15697         * Form.cs: Call Dispose when we want to destroy the window, instead of
15698           just destroying the handle (Dispose will do that for us)
15699         * XplatUIX11.cs:
15700           - RootWindow also needs a queue, so we can properly process the
15701             property change events from RootWindow (like Activate)
15702           - Generatic synthetic WM_ACTIVE message when the active window is
15703             being destroyed
15704
15705 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
15706
15707         * LinkLabel.cs: Trigger a recalc of our label dimensions when
15708           bounds are changed
15709
15710 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
15711
15712         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
15713           for determining width and height (image might not be assigned if
15714           we're drawing an imagelist)
15715
15716 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
15717
15718         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
15719         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
15720           height from system
15721         * Theme.cs: No longer returns hardcoded menu height, instead calls
15722           new driver method
15723         * Form.cs (OnLoad): Scaling happens before triggering Load events 
15724           on MS (# 78257)
15725
15726 2006-05-01  Mike Kestner  <mkestner@novell.com>
15727
15728         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
15729
15730 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
15731
15732         * TextBoxBase.cs: Removed Fixme
15733         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
15734
15735 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
15736
15737         * XplatUIX11.cs:
15738           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
15739             the rectangle relative to the parent, considering borders. We
15740             don't really want that.
15741           - ScrollWindow: Fixed warning to be more understandable
15742         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
15743           scrollbars and scroll only the visible area
15744         * RichTextBox.cs: Removed debug output
15745
15746 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
15747
15748         * NumericUpDown.cs (Text): Just use base
15749         * UpDownBase.cs: Ensure txtView is created before using it
15750
15751 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
15752
15753         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
15754           casting to IntPtr to avoid 64bit overflow errors
15755
15756 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
15757
15758         * Control.cs:
15759           - AllowDrop: Don't force handle creation.
15760           - CreateHandle: Added call to tell driver if we're allowed to drop
15761
15762 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
15763
15764         * FileDialog.cs: Remember the last directory not only for the
15765           current instance but also for new FileDialog instances.
15766
15767 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
15768         
15769         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
15770           broke sending async messages
15771
15772 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
15773
15774         * XplatUIX11.cs:
15775           - ScrollWindow: Fixed method. We finally generate expose events again
15776             for scrolled areas. This was causing 'garbage' when scrolling
15777             textbox and other controls that used ScrollWindow
15778           - Switched from using the regular queue for paint events to the MS 
15779             model of 'generating' paint events when the queue is empty.
15780             We use the new XQueueEvent.Paint subclass to store which windows
15781             need painting.
15782           - AddExpose now takes the x/y/width/height of the exposed area
15783             and inserts the window into the paint queue if not already there
15784           - InvalidateWholeWindow: Switched to use new AddExpose method
15785           - UpdateMessageQueue: Added which queue to monitor for paint events
15786           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
15787             the unlikely case nothing above handles it. We reset the expose
15788             pending states to get them off the queue.
15789           - GetMessage: Now pulls a paint event if no other events are in the
15790             queue
15791           - Invalidate: Switched to new AddExpose method
15792           - PeekMessage: Updated to understand pending paint events
15793           - UpdateWindow: Fixed logic bug. We were only updating if the window
15794             didn't need updating. Also switched to sending WM_PAINT directly,
15795             like MS does.
15796         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
15797           and random access Remove(). The random access is needed to handle
15798           UpdateWindow() where a WM_PAINT is sent directly without accessing
15799           the queue.
15800         * ScrollBar.cs: Added Update() calls to cause immediate updates to
15801           allow for better feedback when scrolling. Scrollbars are small and
15802           the immediate update should make it 'feel' more responsive without
15803           slowing things down. ScrollBar still needs it's invaliate logic
15804           updated to not always invalidate the whole bar on certain changes.
15805
15806 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15807
15808         * Control.cs:
15809         (BackColor): if the control does not support a transparent background,
15810         return the default backcolor when the parent backcolor is transparent.
15811
15812 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
15813
15814         * Application.cs: Updated to new StartLoop/GetMessage API
15815         * RichTextBox.cs: Provide some output on RTF parsing errors
15816         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
15817           new queue_id argument to GetMessage and PeekMessage to allow faster
15818           handling of per-thread queues in drivers.
15819         * Hwnd.cs: Added Queue tracking and property
15820         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
15821         * XEventQueue.cs: Added thread trackingA
15822         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
15823         * XplatUIX11.cs:
15824           - Implemented new per-thread queue
15825           - GetMessage: Fixed return/break behaviour on several cases. We were
15826             returning stale messages in some cases, instead of just processing
15827             the next message
15828
15829 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
15830
15831         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
15832
15833 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
15834
15835         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
15836           fixed off-by-one comparisons between Width/Height and Right/Bottom.
15837
15838 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
15839
15840         * PropertyGridView.cs: Fix drop down width.
15841
15842 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
15843
15844         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
15845           a mess in DrawToolBar, so I removed one of them.
15846
15847 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
15848
15849         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
15850           needed (clip). Otherwise we get artifacts.
15851
15852 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
15853
15854         * FixedSizeTextBox.cs: Added constructor to allow specifying which
15855           dimension is fixed
15856         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
15857           and switched FixedSizeTextBox to only be fixed vertical (#78116)
15858         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
15859           if it matches the scale base font (avoids unneeded scaling)
15860
15861 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
15862
15863         * X11DesktopColors.cs: One gtk_init_check should be enough
15864
15865 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
15866
15867         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
15868           match MS behaviour
15869
15870 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
15871
15872         * TextBoxBase.cs: 
15873           - Generate OnTextChanged for Backspace even if we're only deleting
15874             the current selection
15875           - When setting the Text property, only select all text if the
15876             control does not have focus when it is being set. Otherwise
15877             just place the cursor at the beginning of the control
15878
15879 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
15880
15881         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
15882           Added a little helper to draw PropertyGrid ToolBar with a different
15883           border and a different BackColor.
15884         * PropertyGrid.cs: Some background parts didn't get painted with the
15885           correct background color. Added a class that helps us to draw the
15886           correct border for PropertyGridView and a class that helps us to
15887           draw ToolBars with a different backcolor
15888         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
15889
15890 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
15891
15892         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
15893         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
15894
15895 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
15896
15897         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
15898           into the palette entries. Also, since we're working on a copy
15899           we needed to copy the palette back onto the bitmap.
15900         * Cursor.cs: Same fix as XplatUIWin32.cs.
15901
15902 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
15903
15904         * ImageListStreamer.cs: Need to read the var (or we're off)
15905
15906 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
15907
15908         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
15909           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
15910           TextBoxBase.cs: Unused var fixes
15911         * AxHost.cs: Small 2.0 fix
15912         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
15913           as it seems that is what at least Metacity expects. This will make
15914           icons show up on 64bit platforms. We still have some 64bit size
15915           issues, though, since the startup app window size still won't match.
15916
15917 2006-04-25  Mike Kestner  <mkestner@novell.com>
15918
15919         * *.cs: cleanup newly reported exception var unused warnings.
15920
15921 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
15922
15923         * ThemeWin32Classic.cs: Button image alignment now matches exactly
15924           ms
15925
15926 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
15927
15928         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
15929           image. The image position is always the same, no matter if the
15930           button is pressed or not.
15931
15932 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
15933
15934         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
15935           selection and set the correct filename for SaveFileDialog.
15936           Patch by Emery Conrad.
15937
15938 2006-04-24  Mike Kestner  <mkestner@novell.com>
15939
15940         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
15941         check for item.X outside the ClientRect instead of item.Y. Fixes
15942         #78151.
15943
15944 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15945
15946         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
15947         trust that value blindly and do some sanity check. Fixes bug #77814.
15948
15949 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15950
15951         * ImageListStreamer.cs: save the mask as a 1bpp image.
15952
15953 2006-04-21  Mike Kestner  <mkestner@novell.com>
15954
15955         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
15956         pass Checked and Indeterminate to the Theme Engine. Improve
15957         encapsulation with ListBox.
15958         * ListBox.cs: Keep a StringFormat instead of calculating it every item
15959         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
15960         nested types.  Move all CheckState functionality to CheckedListBox.
15961         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
15962         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
15963         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
15964         single base list. Fix scrollbar sizing and placement to mirror MS.
15965         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
15966         used.
15967         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
15968         for CheckedListBox by using new DrawItemState info.  Center the
15969         checkboxes on the items. Use new StringFormat property.
15970
15971 2006-04-18  Jackson Harper  <jackson@ximian.com>
15972
15973         * Form.cs: MdiChildren don't do default locations the same way as
15974         regular forms.  This prevents a crash when trying to position the
15975         mdi windows.
15976
15977 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
15978
15979         * PropertyGridTextBox.cs: Formatting, copyright
15980         * PropertiesTab.cs: Formatting
15981         * PropertyGrid.cs: Formatting
15982         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
15983           click toggling of values
15984           
15985 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
15986
15987         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
15988         * Control.cs (.ctor): verify_thread_handle is static, don't reset
15989           every time a control is created
15990         * Application.cs: Removed obsolete EnableRTLMirroring method
15991
15992 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
15993
15994         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
15995         SelectedIndex to -1. Fixes bug #78121.
15996
15997 2006-04-17  Jackson Harper  <jackson@ximian.com>
15998
15999         * Binding.cs: Handle null values for Current and BindingContext.
16000         This occurs when binding is a little delayed.
16001         * CurrencyManager.cs: return null for Current when there are no
16002         items in the list.
16003         - Hookup to the listchanged event on the DataView and update
16004         bindings when the list is changed.  This fixes late binding of
16005         controls.
16006
16007 2006-04-17  Jackson Harper  <jackson@ximian.com>
16008
16009         * X11Dnd.cs:
16010         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
16011         Ringenbach.
16012
16013 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
16014
16015         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
16016           place
16017         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
16018           with the correct ButtonState
16019
16020 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
16021
16022         * XplatUIX11.cs: Improved distinguishing between window types to
16023           tell the WM a type closer to what the app wants (Fixes #78107)
16024
16025 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
16026
16027         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
16028           GrabHandle
16029
16030 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
16031
16032         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
16033           drawing code to reflect the size grip changes
16034
16035 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16036
16037         * ImageListStreamer.cs: fix handling of the mask that follows the main
16038         bitmap when deserializing and serialize it properly. The generated mask
16039         should better be a 1bpp image, but I'll do that later.
16040
16041 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
16042
16043         * FileDialog.cs: Show something in the DirComboBox on *nix if the
16044           path doesn't fit into some of our Current.Places
16045
16046 2006-04-13  Jackson Harper  <jackson@ximian.com>
16047
16048         * ComboBox.cs: Use borders instead of drawing our own decorations,
16049         try to obey correct rules for heights.
16050         * Theme.cs:
16051         * ThemeNice.cs:
16052         * ThemeClearLooks.cs:
16053         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
16054         this is now handled by borders.
16055         - Remove unused DrawListBoxDecorationSize method.
16056         
16057 2006-04-13  Mike Kestner  <mkestner@novell.com>
16058
16059         * MenuAPI.cs: null guarding for the disbled click check fixes crash
16060         reported by Alex.
16061
16062 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
16063
16064         * ThemeWin32Classic.cs: 
16065           - Fixed CPDrawStringDisabled
16066           - Corrected drawing of disabled menu items
16067           - Fixed drawing of disabled radio buttons (bug #78095)
16068           - Draw check in a disabled CheckBox with color ControlDark 
16069
16070 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
16071
16072         * Form.cs: Use the provided width when calculating the menu size;
16073           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
16074           and ClientSize.Width won't be updated yet
16075         * Application.cs: Use Visible instead of Show() to make form visible,
16076           this way we create the handle later and menusize is considered
16077
16078 2006-04-12  Mike Kestner  <mkestner@novell.com>
16079
16080         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
16081         reporting.
16082
16083 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
16084
16085         * TextBox.cs: Implemented context menu
16086
16087 2006-04-12  Mike Kestner  <mkestner@novell.com>
16088
16089         * ListView.cs: implement box selection. fixes #77838.
16090         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
16091
16092 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
16093
16094         * XplatUIX11.cs: Added setting of window type when transient window
16095           is created (metacity would move it otherwise)
16096         * X11Structs.cs: Added WINDOW_TYPE atoms
16097         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
16098           background (the control is Opaque but still wants transparent
16099           backgrounds)
16100
16101 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
16102
16103         * Control.cs: Added OnPaintBackgroundInternal to allow controls
16104           that set Opaque but don't mean it (like all ButtonBase-derived
16105           controls) to still draw their background
16106         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
16107           the background
16108
16109 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
16110
16111         * Control.cs (PaintControlBackground): Set the graphics object
16112           on our PaintEvent to null to prevent it from being disposed
16113           when the PaintEvent gets disposed
16114
16115 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
16116
16117         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
16118         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
16119
16120 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
16121
16122         * Control.cs: 
16123           - Added transparency check to BackColor property. Transparent
16124             backgrounds are only allowed if the control styles permit it
16125           - Added recursive painting of parent control background and
16126             foreground if a control with a transparent backcolor is drawn
16127             (Thanks to Tim Ringenback for providing his 'hack' as a base
16128              for this patch) Fixes #77985 and #78026.
16129           - Added Opaque style check before calling OnPaintBackground, no
16130             need to draw the background if the control is opaque
16131           - Removed ControlAccessibleObject owner variable (inherited from
16132             base, no need to define again)
16133           - Added some documentation links explaining the drawing events
16134             and styles
16135
16136 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
16137
16138         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
16139           that the affected control is the located at the left border of our
16140           parent (Fixes #77936)
16141
16142 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
16143
16144         * TextBoxBase.cs: When rendering disabled or readonly controls,
16145           draw the background with 'Control' instead of 'Window' color as
16146           long as the user hasn't specifically set a color
16147
16148 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
16149
16150         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
16151           since that won't be updated if the user types text (only if it's
16152           programatically set)
16153
16154 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
16155
16156         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
16157           layout changes do to app-triggered resizes will have the proper
16158           display rectangle for layout
16159
16160 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
16161
16162         * ThemeWin32Classic.cs:
16163           - Make use of the SystemBrushes and SystemPens wherever possible
16164           - Corrected some highlight colors
16165           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
16166             drawing
16167         * Theme.cs: Added Empty field to CPColor struct
16168
16169 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
16170
16171         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
16172           is displayed when calculating the display rectangle. Thanks to Mike
16173           for teaching me the err of my ways.
16174
16175 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
16176
16177         * ScrollableControl.cs:
16178           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
16179             (instead of 0,0) and we now return the real width/height instead of
16180             just the clientrectangle, adjusted for padding. The rectangle is
16181             now cached and created by the new CalculateDisplayRectangle method.
16182           - Created new CalculateDisplayRectange method, which basically does
16183             what get_DisplayRectangle() did originally, but now using the 
16184             right edge instead of DisplayRectangle to determine the size of
16185             our scrollbars
16186           - get_Canvas(): Fixed it to properly calculate canvas for 
16187             right/bottom controls which seem to be placed to the right/bottom
16188             of any controls that have a fixed location
16189           - Removed TODO that's taken care of
16190           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
16191             and SetDisplayRectLocation according to new MSDN2 docs
16192           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
16193             event when that is called, this is added for compatibility
16194           - ScrollControlIntoView(): Implemented.
16195           - Switched scrollbars to be implicit, they shouldn't be selectable
16196         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
16197           call it when the active control is set/changed
16198         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
16199         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
16200           implicit_control variable (used for native Win32 message generation)
16201         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
16202           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
16203         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
16204         * XplatUIStructs.cs: Added ScrollBarCommands enum
16205
16206 2006-04-10  Jackson Harper  <jackson@ximian.com>
16207
16208         * ButtonBase.cs:
16209         * CheckedListBox.cs:
16210         * ComboBox.cs:
16211         * DataGrid.cs:
16212         * DataGridView.cs:
16213         * Form.cs:
16214         * GroupBox.cs:
16215         * ListBox.cs:
16216         * PrintPreviewControl.cs:
16217         * ProgressBar.cs:
16218         * PropertyGrid.cs:
16219         * Splitter.cs:
16220         * StatusBar.cs:
16221         * TrackBar.cs:
16222         * UpDownBase.cs: Fixup base event overrides.
16223         
16224 2006-04-06  Mike Kestner  <mkestner@novell.com>
16225
16226         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
16227         all user-initiated value changes to min <= value <= max-thumbsz+1.
16228         (set_Value): check for vert/horiz when calculating new thumb position.
16229         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
16230         like MS does.
16231         (OnMouseMoveSB): refactor the thumb dragging code and refine
16232         invalidation logic to reduce flicker.
16233         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
16234         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
16235         (UpdateThumbPosition): small code readability cleanup
16236
16237 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
16238
16239         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
16240           different
16241
16242 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
16243
16244         * ThemeNice.cs: Use a better graphics effect when a button is pressed
16245
16246 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
16247
16248         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
16249         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
16250           This dramatically reduces the number of Pen.Dispose calls. 
16251           Where possible call ResPool methods only once instead of calling it
16252           over and over again (for example for the same color).
16253
16254 2006-04-06  Mike Kestner  <mkestner@novell.com>
16255
16256         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
16257         Also remove an unused private field on the collection. Fixes #77972.
16258
16259 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
16260
16261         * ThemeNice.cs: Added ToolBar drawing code
16262
16263 2006-04-06  Mike Kestner  <mkestner@novell.com>
16264
16265         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
16266         I'm assuming that means we need to look up the toplevel for the
16267         provided control. Fixes the crash trace in #77911 but exposes another
16268         crash in some strange reflection usage in NDocGui.
16269
16270 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
16271
16272         * ThemeNice.cs: Gave it a little silver touch and added Images
16273           method
16274         * FontDialog.cs: FontDialog is not resizable
16275         * FileDialg.cs: Added SizeGripStyle.Show
16276
16277 2006-04-05  Jackson Harper  <jackson@ximian.com>
16278
16279         * KeyboardLayouts.cs: Remove warning.
16280
16281 2006-04-05  Jackson Harper  <jackson@ximian.com>
16282
16283         * Control.cs: Enable OnPaintInternal so we can use it for drawing
16284         all of our controls instead of Paint +=.
16285         * ListBox.cs:
16286         * ListView.cs:
16287         * MenuAPI.cs:
16288         * MessageBox.cs:
16289         * NotifyIcon.cs:
16290         * ProgressBar.cs:
16291         * ScrollBar.cs:
16292         * Splitter.cs:
16293         * StatusBar.cs:
16294         * TabControl.cs:
16295         * TextBoxBase.cs:
16296         * ToolBar.cs:
16297         * TrackBar.cs:
16298         * UpDownBase.cs:
16299         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
16300         use OnPaintInternal. Remove Width/Height and Visible checks in
16301         paint handler, this is done at a higher level now.
16302         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
16303         * PaintEventArgs.cs: Add a handled flag so controls that don't
16304         want anymore painting after OnPaintInternal can make sure OnPaint
16305         isn't called.
16306
16307 2006-04-05  Mike Kestner  <mkestner@novell.com>
16308
16309         * Form.cs: fix the menu WndProc hacks to respect the native enabled
16310         state of the form, so that we don't process events when Modal dialogs
16311         are up. Fixes #77922.
16312
16313 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
16314
16315         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
16316           checking is done.
16317
16318 2006-04-05  Mike Kestner  <mkestner@novell.com>
16319
16320         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
16321
16322 2006-04-05  Mike Kestner  <mkestner@novell.com>
16323
16324         * ListView.cs (HeaderMouseMove): null guarding for the over column
16325         when setting up the drag_to_index.  Fixes #78015.
16326
16327 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
16328
16329         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
16330           in the taskbar. Transient windows seem to accomplish that.
16331
16332 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
16333
16334         * Form.cs:
16335           - Re-enabled CreateParams.X/Y code for FormStartPosition
16336           - Added code for manual placement when creating the Control
16337           - Incomplete patch to treat MDI forms differently when
16338             setting the ClientSizeCore. (Still need to figure out handling
16339             x/y coords there)
16340         * XplatUIX11.cs:
16341           - When we're explicitly setting the X/Y position of a non-Child
16342             window, let the WM know. Metacity really wants this.
16343
16344 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
16345
16346         * ThemeNice.cs: Added CPDrawButton
16347
16348 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
16349
16350         * ThemeNice.cs: Changed the color for focused buttons and activated
16351           the arrows for small scroll buttons.
16352
16353 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
16354
16355         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
16356           anymore. Changed some method modifiers to protected (virtual)
16357         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
16358           changes
16359         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
16360           Updated drawing of menus, buttons and progressbars; added
16361           CPDrawBorder3D 
16362
16363 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16364
16365         * ImageListStreamer.cs: implemented serialization/deserialization
16366         of the images.
16367
16368 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
16369
16370         * ThemeWin32Classic.cs:
16371           - Removed all the DrawFrameControl stuff; CPDrawButton,
16372             CPDrawCheckBox and CPDrawRadioButton are now handled directly
16373             inside the methods
16374           - Updated and corrected the drawing code of CPDrawButton,
16375             CPDrawCheckBox and CPDrawRadioButton to better match ms
16376           - Updated theme checkbox and radiobutton code to use the CP*
16377             methods
16378
16379 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
16380
16381         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
16382           bug is fixed
16383
16384 2006-03-31  Jackson Harper  <jackson@ximian.com>
16385
16386         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
16387         sometimes.
16388         * UpDownBase.cs: Don't CreateGraphics manually, use a
16389         Refresh. Ideally we would invalidate the correct areas here.
16390
16391 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
16392
16393         * XplatUIX11.cs: 
16394           - We now track the mapping state of windows. If a window (or 
16395             one of it's parents) is not mapped we no longer permit
16396             WM_PAINT messages to be generated since we'd otherwise get 
16397             lots of BadMatch X errors. Jackson did all the work figuring
16398             out the problem.
16399           - Destroying the caret if the window it's contained in is 
16400             destroyed. Can't use regular DestroyCaret method since it
16401             might fall into a drawing function (trying to remove the
16402             caret) and with that generate new BadMatch errors. Again,
16403             Jackson tracked this down.
16404           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
16405             make sure we send the messages to all windows. (The old code
16406             would send the WM_DESTROY to the window, and then all child
16407             windows would be 'gone' because the WM_DESTROY handle lookup
16408             would no longer find the destroyed window)
16409         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
16410         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
16411
16412 2006-03-31  Jackson Harper  <jackson@ximian.com>
16413
16414         * ScrollableControl.cs: Dont recalc if we are not visible.
16415
16416 2006-03-31  Mike Kestner  <mkestner@novell.com>
16417
16418         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
16419         the visibility branch.
16420
16421 2006-03-31  Jackson Harper  <jackson@ximian.com>
16422
16423         * ScrollBar.cs: Cap values when incrementing/decrementing.
16424
16425 2006-03-31  Mike Kestner  <mkestner@novell.com>
16426
16427         * MenuAPI.cs: setup menu.tracker for popup/context menus.
16428         * ToolTip.cs: guard against timer expirations with no active control.
16429         Not sure why it happened.
16430
16431 2006-03-31  Mike Kestner  <mkestner@novell.com>
16432
16433         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
16434         text.
16435         * ToolTip.cs: Position the tooltip based on where the cursor is at
16436         popup time, not at MouseEnter time.  Add a Down state so that we don't
16437         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
16438         positioning offset. Lookup DisplaySize at positioning time, since it
16439         can theoretically change during invocation.
16440         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
16441         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
16442
16443 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
16444
16445         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
16446           Fixes behaviour when the Text property of the box is String.Empty
16447
16448 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
16449
16450         * XplatUIX11.cs: Only send mouseleave for our client windows, not
16451           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
16452           a window)
16453
16454 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
16455
16456         * FileDialog.cs: Visual enhancement for the popup buttons in 
16457           PopupButtonPanel
16458
16459 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
16460
16461         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
16462           code
16463
16464 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
16465
16466         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
16467           highlighted menu items to match ms
16468
16469 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
16470
16471         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
16472
16473 2006-03-30  Mike Kestner  <mkestner@novell.com>
16474
16475         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
16476         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
16477         go active to account for HotLight to Selected transition.
16478         * MenuItem.cs: add internal Selected prop. Fill out the Status
16479         property by calculating it from item info. Add HotLight,
16480         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
16481
16482 2006-03-30  Mike Kestner  <mkestner@novell.com>
16483
16484         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
16485
16486 2006-03-29  Jackson Harper  <jackson@ximian.com>
16487
16488         * Form.cs: Implement TODO.
16489
16490 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
16491
16492         * PrintPreviewDialog.cs: Implemented missing methods and events; still
16493           missing proper dialog setup in the constructor
16494
16495 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
16496
16497         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
16498         * Control.cs:
16499           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
16500           - Fixed ResetBindings and removed TODO
16501           - Added check for cross-thread calls to get_Handle()
16502           - Added Marshaller attribute for set_Font to satisfy class status
16503         * FontDialog.cs: Removed TODOs that seemed implemented
16504         * UpDownBase.cs: Removed unneeded TODO and Fixme
16505         * MessageBox.cs: Implemented support for Default button and removed TODO
16506         * FileDialog.cs: Removed obsolete TODO
16507         * DomainUpDown.cs: Removed obsolete TODO
16508         * ButtonBase.cs: Removed obsolete TODO
16509         * XplatUIWin32.cs: Removed obsolete TODO
16510         * Form.cs:
16511           - Removed obsolete TODO
16512           - Calling CheckAcceptButton when the acceptbutton is changed to allow
16513             internal status updates
16514           - Making sure the active control is selected when the control is created
16515         * CurrencyManager.cs: Removed obsolete TODO
16516
16517 2006-03-29  Mike Kestner  <mkestner@novell.com>
16518
16519         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
16520         of PrintPreviewDialog and RichTextBox.
16521
16522 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
16523
16524         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
16525           DarkDark, Light and LightLight colors for a specific color
16526         * ThemeWin32Classic.cs:
16527           - Use Button drawing code to draw RadioButtons and CheckBoxes with
16528             Appearance = Button 
16529           - Make use of the new ResPool helper CPColor
16530           - Draw ProgressBar and StatusBar with correct 3D borders
16531
16532 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
16533
16534         * ColorDialog.cs: Return selected color. Fixes bug #77940.
16535
16536 2006-03-28  Mike Kestner  <mkestner@novell.com>
16537
16538         * ListView.cs: fix Icon layout to plan for scrollbar widths when
16539         calculating col/row counts.
16540
16541 2006-03-28  Mike Kestner  <mkestner@novell.com>
16542
16543         * ColumnHeader.cs:
16544         * ListView.cs:
16545         * ListViewItem.cs:
16546         * Menu.cs: 
16547         switch to explicit interface method implementation for some methods
16548         corcompare identifies as inconsistent with MS.
16549
16550 2006-03-28  Mike Kestner  <mkestner@novell.com>
16551
16552         * MainMenu.cs: 
16553         * Menu.cs:
16554         add a few missing methods from the class status output.
16555
16556 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
16557
16558         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
16559           correct.
16560
16561 2006-03-28  Mike Kestner  <mkestner@novell.com>
16562
16563         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
16564
16565 2006-03-27  Mike Kestner  <mkestner@novell.com>
16566
16567         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
16568         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
16569
16570 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
16571
16572         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
16573
16574 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
16575
16576         * ThemeWin32Classic.cs:
16577           - GroupBox: Inserted a little gap between the text and the lines
16578             on the right side
16579           - Made the code in CPDrawBorder3D more readable
16580           - Corrected the drawing location of the up and down arrows in 
16581             CPDrawScrollButton
16582
16583 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
16584
16585         * ControlPaint.cs: Corrected line widths in DrawBorder for
16586           ButtonBorderStyle Inset and Outset
16587
16588 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
16589
16590         * ThemeWin32Classic.cs:
16591           - Rewrote the totally broken CPDrawBorder3D method. That was
16592             one of the main problems for the terrific ThemeWin32Classic
16593             look
16594           - Updated and corrected Button drawing
16595           - Correct the dimensions of the SizeGrip to match ms ones
16596           - Removed a small drawing glitch in DrawComboBoxEditDecorations
16597         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
16598           Border3DStyle.Sunken to match ms.
16599
16600 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
16601
16602         * ThemeWin32Classic.cs: First small part of the "de-uglify
16603           ThemeWin32Classic" effort, SizeGrip
16604
16605 2006-03-24  Jackson Harper  <jackson@ximian.com>
16606
16607         * XplatUIX11.cs: Give a max idle time of one second, this matches
16608         MS and forces an Idle event every second when there are no other
16609         events in the queue.
16610
16611 2006-03-24  Mike Kestner  <mkestner@novell.com>
16612
16613         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
16614         * ListView.Item.cs: fix layout issues with null image lists and images
16615         smaller than checkbox size.
16616         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
16617         mode like MS does.  It's weird, but consistent.  ;-)
16618         Fixes #77890.
16619
16620 2006-03-24  Mike Kestner  <mkestner@novell.com>
16621
16622         * ListView.cs: Scroll wheel support for the item control.  Fixes
16623         #77839.
16624
16625 2006-03-23  Jackson Harper  <jackson@ximian.com>
16626
16627         * ScrollableControl.cs: Special case negative sized areas, not
16628         zero.
16629         * MonthCalendar.cs: Save the rect of the clicked date so we can
16630         use it for invalidation.
16631         - Try to cut down on the number of invalidates
16632         - Invalidate the rect the mouse is over and was over when moving
16633         the mouse, so we get the focus box following the cursor.
16634
16635 2006-03-23  Mike Kestner  <mkestner@novell.com>
16636
16637         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
16638         focus rectangle drawing. Fixes #77835.
16639
16640 2006-03-23  Mike Kestner  <mkestner@novell.com>
16641
16642         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
16643         the if and else if and reverting back to the original == check on the
16644         None conditional.
16645
16646 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
16647
16648         * FontDialog.cs: Update the example panel if the selected index of
16649           the fontListBox changes.
16650
16651 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
16652
16653         * FileDialog.cs: Make FileDialog remember which directory it was in
16654           last in the same execution.
16655
16656 2006-03-22  Mike Kestner  <mkestner@novell.com>
16657
16658         * FileDialog.cs: make the DropDownMenu on the toolbar display
16659         RadioChecks since they are mutually exclusive and that's what MS does.
16660
16661 2006-03-22  Mike Kestner  <mkestner@novell.com>
16662
16663         * Theme.cs: add Color param to CPDrawMenuGlyph.
16664         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
16665         checks and radio marks and arrows are visible on highlighted items.
16666         * ControlPaint.cs: update to use new Theme signature.
16667
16668 2006-03-22  Mike Kestner  <mkestner@novell.com>
16669
16670         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
16671         is active. Fixes #77870.
16672
16673 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
16674
16675         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
16676           to be focused/selected after startup
16677
16678 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
16679
16680         * ColorDialog.cs: 
16681           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
16682             CustomColors and ShowHelp properties
16683           - Some internal rewrites to get better results when using the
16684             ColorMatrix
16685
16686 2006-03-22  Mike Kestner  <mkestner@novell.com>
16687
16688         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
16689         HoverSelection.  Fixes #77836.
16690
16691 2006-03-22  Mike Kestner  <mkestner@novell.com>
16692
16693         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
16694         ToggleButtons.  (De)Sensitize the Back button around a stack count of
16695         1, not 0.  Update ButtonSize based on a pixel count of the win32
16696         control.  Adjust the toolbar size/location for new button size.
16697
16698 2006-03-22  Jackson Harper  <jackson@ximian.com>
16699
16700         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
16701         true.
16702         * ScrollBar.cs: When doing increments and decrements we need to
16703         set the Value property so that ValueChanged gets raised. A
16704         possible optimization here would be to make an internal SetValue
16705         that doesn't invalidate immediately.
16706         * ToolTip.cs: Tooltips get added to their container (when
16707         supplied) so they get disposed when the container is disposed.
16708         - Don't create tooltips for String.Empty. This prevents all these
16709         little 2-3 pixel windows from showing up when running nunit-gui
16710         and driving me mad.
16711         * Form.cs: Don't set topmost when setting the owner if the handles
16712         haven't been created yet.  The topmost set will happen when the
16713         handles are created.
16714
16715 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
16716
16717         * XplatUIX11.cs:
16718           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
16719           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
16720             visible (to allow them to recalculate their sizes)
16721
16722 2006-03-21  Mike Kestner  <mkestner@novell.com>
16723
16724         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
16725         methods. Removed a ton of redundant code.  Still not really happy with
16726         the border rendering, but I think that's mainly because of the
16727         ControlDarkDark being black instead of a dark grey. Depending on how 
16728         close we want to be, we might want to revisit those color choices.
16729         Among the new features added during the refactor were DropDownArrow
16730         pressed rendering, Disabled image rendering.  Proper flat appearance
16731         boundary rendering.  Removed the Divider and Wrapping dividers since I
16732         can't figure out any combination of themes and conditions to make the
16733         MS control draw a horizontal line on a toolbar despite what the
16734         Divider property docs indicate.
16735         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
16736         conditions and incorrect layout.  Updated to coding standard.
16737         * ToolBarButton.cs: refactored layout and positioning code from
16738         ToolBar to here.  Invalidate wherever possible instead of forcing
16739         redraws of the whole toolbar. 
16740         (Known remaining issues: explicit ButtonSize smaller than provided
16741         images.)
16742
16743 2006-03-21  Mike Kestner  <mkestner@novell.com>
16744
16745         * ContextMenu.cs (Show): use the position parameter instead of just
16746         showing at the MousePosition.
16747
16748 2006-03-21  Jackson Harper  <jackson@ximian.com>
16749
16750         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
16751         control handle this.
16752         * TreeNodeCollection.cs: If we are clearing the root node we need
16753         to reset top_node so calcs can still happen.
16754         * ThemeWin32Classic.cs: This is a Flags so we need to check
16755         properly.
16756         
16757 2006-03-21  Jackson Harper  <jackson@ximian.com>
16758
16759         * DataGrid.cs: Create columns when the binding context has been
16760         changed.
16761         * X11Structs.cs: Keysyms are uints.
16762         - Add size to fix build.
16763
16764 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
16765
16766         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
16767           XplatUIOSX.cs: 
16768           - Added ResetMouseHover method to allow controls to retrigger
16769             hovering if they need it more than once
16770           - Implemented MouseHoverTime and MouseHoverSize properties
16771         * Timer.cs: Start() must reset the interval
16772         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
16773           properties
16774
16775 2006-03-21  Jackson Harper  <jackson@ximian.com>
16776
16777         * X11Keyboard.cs: improved layout detection. Move the nonchar
16778         tables into this file.
16779         * KeyboardLayouts.cs: Move the tables into resource files.
16780
16781 2006-03-21  Mike Kestner  <mkestner@novell.com>
16782
16783         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
16784
16785 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
16786
16787         * Mime.cs: Various speed optimizations. Looking up mime types
16788           is now 2 times faster than before
16789
16790 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
16791
16792         * CreateParams.cs: Added internal menu field
16793         * Control.cs: 
16794           - Switched call order for UpdateBounds; now we always call
16795             the one that also takes ClientSize, and we're calculating the 
16796             client size via driver method in the others. The previous
16797             method of tracking client size by difference wasn't working
16798             for forms where even the starting client size wouldn't match
16799             the overall form size (due to borders) (Part of fix for #77729)
16800           - CreateParams(): Do not use parent.Handle unless the handle is
16801             already created. Causes havoc with Nexxia and throws off our
16802             creation of controls
16803         * XplatUIX11.cs:
16804           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
16805           - Switched handling of ConfigureNotify over to new PerformNCCalc 
16806             method (consolidates code)
16807           - Changed RequestNCRecalc to use new PerformNCCalc method
16808           - Added calls to RequestNCRecalc when menus and borders are changed
16809             to allow app to set NC size. (Part of fix for #77729) This matches
16810             when MS send a WM_NCRECALC on Win32 windows.
16811           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
16812             (Part of fix for #77729). This matches what MS does, they also
16813             send that message when the form is made visible.
16814           - XException.GetMessage: Improved usability of X errors by including
16815             a translation of the window into Hwnd and Control class
16816           - Improved debug info for window creation, reparenting and destruction
16817           - Created helper method WindowIsMapped() [Currently not used]
16818         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
16819         * Form.cs:
16820           - CreateParams: Now setting our menu on the new internal menu field
16821           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
16822             avoid calculating the same property twice
16823         * Hwnd.cs:
16824           - Improved usability of ToString() for debugging purposes
16825           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
16826             determine the height of the menu, instead of just the font. This
16827             required to also create a graphics context and to keep a bmp 
16828             around (for performance reasons)
16829
16830 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
16831
16832         * MenuAPI.cs: Added OnMouseUp method
16833         * Form.cs:
16834           - Now remembering the requested client size, avoids size errors
16835           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
16836             instead of base if the menu is active. This is required due to
16837             control now capturing and releasing on down/up and it would
16838             prematurely release our menu capture
16839
16840 2006-03-17  Jackson Harper  <jackson@ximian.com>
16841
16842         * KeyboardLayouts.cs: Add the czech layouts.
16843
16844 2006-03-16  Jackson Harper  <jackson@ximian.com>
16845
16846         * Control.cs: Use the viewport space when sizing not the controls
16847         client size, so things like ScrollableControl that effect the
16848         viewport size (when scrollbars are added) are computed correctly.
16849         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
16850         of ManagerEntrys.
16851         - Handle creating BindingManagers for null data sources.
16852         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
16853         source, otherwise when rows are added they are added to the 'fake'
16854         datasource and we will crash when trying to set the position in
16855         those rows.
16856         - Use Implicit scrollbars on the datagrid so they arent
16857         selectable.
16858         
16859 2006-03-16  Jackson Harper  <jackson@ximian.com>
16860
16861         * Binding.cs:
16862         * InternalWindowManager.cs:
16863         * MdiWindowManager.cs:
16864         * X11Keyboard.cs: I really want Mike to love me again (fix
16865         compiler warnings).
16866
16867 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
16868
16869         * DataGrid.cs:
16870           - OnMouseDown: Switch to editing mode when clicking on the cell
16871                          even if we're clicking on the cell that's currently 
16872                          selected
16873           - ProcessGridKey: Left/Right now wrap like MS.Net does
16874           - ProcessGridKey: Tab now knows to add a new row when tab is
16875                             pressed in the cell of the last column of the 
16876                             last row
16877           - ProcessGridKey: Enter now adds another row  if pressed in the last
16878                             row and selectes the new row, same column cell
16879           - ProcessGridKey: Home/End navigate columns, not rows, like 
16880                             originally implemented
16881           - Broke ProcessKeyPreview code out into an extra Internal method
16882             so it can be called from the edit code
16883         * DataGridTextBox.cs (ProcessKeyMessage):
16884           - Switched to accept Tab keypresses
16885           - Added F2 handling to allow jumping to the end of the edited cell
16886           - Added logic to allow moving caret left/right inside edited cell
16887             and making the edited cell jump when the caret hits cell borders
16888           - Tab and Enter are now passed to the datagrid after being handled
16889         * TextBoxBase.cs:
16890           - Removed capture code now that Control handles it
16891           - set_SelectionStart now ensures caret is visible
16892
16893 2006-03-16  Jackson Harper  <jackson@ximian.com>
16894
16895         * TrackBar.cs: Debackwards the increment/decrement for handling
16896         mouse clicks on the bar with vertical trackbars.
16897         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
16898         bottom to match MS.
16899
16900 2006-03-16  Mike Kestner  <mkestner@novell.com>
16901
16902         * ListView.cs: make shift/ctrl keyboard and mouse selection 
16903         consistent with the MS control. Fix a bug in
16904         SelectedListViewItemCollection.Clear that was pissing me off for the
16905         better part of a day because the collection was being altered
16906         underneath us as we walked the list.
16907
16908 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
16909
16910         * Control.cs: Not sure how we could miss this so long, but it seems
16911           that MS.Net has Capture set all the way from before calling 
16912           OnMouseDown through sending the mouse events until after
16913           OnMouseUp. This will fix DataGrid's selection being set to end
16914           at the location of the MouseUp.
16915
16916 2006-03-15  Jackson Harper  <jackson@ximian.com>
16917
16918         * BindingContext.cs: Check the binding after its added so that it
16919           can initialize the binding managers and hookup to events.
16920         * Binding.cs: Data members seem to sometimes include rows/cols in
16921           the format Row.Column we now take this into account.
16922           - Hookup to the position changed event so we can update the
16923           control when the position has changed in the data set.
16924         * CurrencyManager.cs: Take into account the row/col naming
16925           convention when creating dataset tables.
16926         * BindingContext.cs: Using a newer better way of storing
16927           datasource/datamember pairs.  Hopefully this better matches MS for
16928           looking up binding managers.
16929
16930
16931 2006-03-15  Jackson Harper  <jackson@ximian.com>
16932
16933         * BindingContext.cs: The currency manager needs the data member
16934         name, if the member is a data set we use the name to find the
16935         correct table.
16936         * CurrencyManager.cs: When creating the list prefer an IList over
16937         an IListSource.
16938         - Attempt to create a DataTable from a DataSet (TODO: might need
16939         some better error checking here, although MS doesn't seem to have much)
16940         - If we have a DataTable create a view and use it as our list.
16941
16942 2006-03-15  Mike Kestner  <mkestner@novell.com>
16943
16944         * ListView.cs: keep a matrix of the icon mode layout to facilitate
16945         keyboard navigation. Support Up/Down/Left/Right selection correctly
16946         for all 4 View modes.
16947         * ListViewItem.cs: add internal row/col fields for icon layouts.
16948
16949 2006-03-15  Jackson Harper  <jackson@ximian.com>
16950
16951         * TabControl.cs: Redraw the tabs when we resize so their newly
16952         calculated sizes are drawn on screen.
16953         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
16954         composite characters.
16955         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
16956         - filter events so that composite characters can be created
16957         patches by peter
16958         * X11Structs.cs: Add XIMProperties enum.
16959
16960 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
16961
16962         * Control.cs (BringToFront, SendToBack): Don't use window or handle
16963           unless it's created
16964
16965 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
16966
16967         * Control.cs (PerformLayout): We don't need to consider visiblity
16968           for anchoring, only for docking. This fixes 'whacky' alignment
16969           in listbox and other controls that use implicit scrollbars after
16970           the previous PerformLayout patch
16971         * ListBox.cs: Switched to use implicit scrollbars
16972           
16973 2006-03-14  Mike Kestner  <mkestner@novell.com>
16974
16975         * ToolBar.cs: 
16976         * VScrollBar.cs:
16977         - chain up the "new event" overrides to base and use
16978         OnEvent to raise them.  Part of fix for bug #76509.
16979
16980 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
16981
16982         * FileDialog.cs: Do not select an item in the parent directory
16983           on backspace
16984
16985 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
16986
16987         * Control.cs (PerformLayout): It would seem that we considered
16988           invisible windows for our layout. Not quite the right thing
16989           to do. Now we don't any longer, thereby fixing bug #76889.
16990
16991 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
16992
16993         * Control.cs (CanFocus): I goofed. A control can have focus 
16994           even though it's not selectable. Made it match MS docs.
16995
16996 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
16997
16998         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
16999           center by default (fixes #76895)
17000         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
17001           all uses of Border3DSides.All with the explicit ORd together
17002           Left|Right|Top|Bottom because I assume that nobody was aware 
17003           that All also implies a center fill. Most places I checked had
17004           a fill right above.
17005         * ProgressBarStyle.cs: Added
17006
17007 2006-03-13  Mike Kestner  <mkestner@novell.com>
17008
17009         * ListView.cs: fix breakage in drag shadow header positioning 
17010         from Peter's csc compilation fix.
17011
17012 2006-03-13  Mike Kestner  <mkestner@novell.com>
17013
17014         * ListView.cs: fix NRE produced by backspacing twice in a focused
17015         FileDialog.
17016
17017 2006-03-13  Mike Kestner  <mkestner@novell.com>
17018
17019         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
17020
17021 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
17022
17023         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
17024           be changed
17025         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
17026           the allowed size before making programmatic size changes
17027
17028 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
17029
17030         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
17031           set, metacity is broken and will still use the emty sizes in 
17032           the struct. (Fix for #77089)
17033
17034 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
17035
17036         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
17037           WindowExStyles and marked both enums as Flags
17038         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
17039           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
17040           to match WindowStyles split
17041         * XplatUIX11.cs:
17042           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
17043           - Updated to match WindowStyles split
17044         * XplatUIWin32.cs:
17045           - Fixed FosterParent creation, was using ExStyle on the Style field
17046             (This should help with Popup focus issues)
17047           - Updated to match WindowStyles split
17048
17049 2006-03-13  Jackson Harper  <jackson@ximian.com>
17050
17051         * MdiWindowManager.cs: Use the system menu height. Fixes some
17052         strange sizing issues.
17053
17054 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
17055
17056         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
17057         * TextBoxBase.cs:
17058           - Scroll to caret after inserting text (#77672)
17059           - Make scroll range one pixel higher, fixes off-by-one error (and
17060             makes underlines visible on the last line)
17061
17062 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
17063
17064         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
17065           the keyboard state from being stuck with keys in 'pressed' state when
17066           focus is switched away via keyboard
17067         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
17068           reset the keyboard if no X11 KeyUp events are expected to come
17069         * X11Structs.cs: Switched type of Visible to bool to match driver
17070
17071 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
17072
17073         * TextControl.cs:
17074           - Switched caret to be just 1 pixel wide, matches MS and looks less
17075             clunky
17076           - Moved caret display 1 pixel down from the top of the control
17077             to improve view
17078           - InsertCharAtCharet: Update the selection start if moving the caret
17079             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
17080           - No longer always creating the caret when the caret methods are
17081             called. Only the actual ShowCaret/HideCaret will do that now
17082           - Only setting caret visible if the owner control has focus
17083           - UpdateView: Added invalidation-shortcut logic for center and right 
17084             aligned text. Previously we'd update all according to the left
17085             logic which caused drawing errors. Also fixed height of invalidated
17086             areas, now properly invalidating the whole area (was off-by-one)
17087           - owner_HandleCreated: Always generate the document when the
17088             handle is created; this ensures that 
17089         * TextBoxBase.cs:
17090           - Fixed situation where caret would disappear under the right
17091             window border, also improved scrolling behaviour on left-
17092             aligned textboxes
17093           - Fixed right-aligned textboxes to have a border to the
17094             right instead of the caret being under the right border
17095         * XplatUIX11.cs:
17096           - Switched from 'nested' to simple visible/not visible tracking 
17097             for caret (part of fix for #77671)
17098           - No longer passing through translated FocusIn/FocusOut messages
17099             since we were notifying too often and the wrong windows. Instead
17100             we just notify our focussed window of receiving or loosing focus
17101         * XplatUIWin32.cs: Switched from 'nested' show/hide 
17102           counting for caret to simple visible yes/no behaviour (part of 
17103           fix for #77671)
17104
17105 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
17106
17107         * Mime.cs: Remove debug code...
17108
17109 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
17110
17111         * MimeGenerated.cs: Removed
17112         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
17113           and subclasses) from /usr/(local/)share/mime and
17114           $HOME/.local/share/mime.
17115
17116 2006-03-10  Jackson Harper  <jackson@ximian.com>
17117
17118         * MdiWindowManager.cs: Recalc the NC area when a window is
17119         maximized/restored so that the menu area is drawn on forms that
17120         don't have a menu.
17121
17122 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
17123
17124         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17125           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
17126           us to force a WM_NCCALCRESIZE message being sent. This is needed
17127           for MDI maximizing.
17128
17129 2006-03-10  Jackson Harper  <jackson@ximian.com>
17130
17131         * Form.cs: We need to use the ActiveMenu when calculating menu
17132         height.
17133         - Fix nullref when the window manager hasn't been created yet.
17134         * Control.cs: Fix nullref when we try to bring a control to the
17135         front that has no parent.
17136         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
17137         height.
17138         - Add a dummy item to the maximized menu so it always has the
17139         correct height. Otherwise when there are no menus we don't get our
17140         icon and buttons.
17141         
17142
17143 2006-03-10  Jackson Harper  <jackson@ximian.com>
17144
17145         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
17146         stuff.
17147         * Form.cs: Make the window_state internal so the window managers
17148         can track it.
17149         - When an MDI child is maximized let its window manager create the
17150         main menu (so it can add its icon).
17151         - Notify the window managers of state changes
17152         - Let the window manager paint its buttons and handle button
17153         clicks on the menu when it is maximized.
17154         * InternalWindowManager.cs: Move the prev_bounds into the mdi
17155         window manager, since tool windows don't use it, only mdi windows.
17156         - Tell the main form that we don't want it to handle NCPAINT
17157         itself to avoid extra painting.
17158         - Handle clicks on a maximized windows menu.
17159         - Handle window state changes
17160         - Handle minimize/maximize clicks correctly by setting the window state.
17161         * MdiWindowManager.cs: Add an icon menu that (the menu you get
17162         when clicking on the forms icon).
17163         - New method to create a forms maximized menu. This is its normal
17164         menu + an icon.
17165         - Handle window state changes.
17166         - Handle sizing of maximized windows.  Maximized windows are just
17167         drawn bigger then the parent visible area. All controls are still
17168         there, they are just outside the visible area (this matches windows).
17169         * MdiClient.cs: No scrollbars when a child window is maximized.
17170         - Let the children windows figure out how big they should be when
17171         sizing maximized windows.
17172         - Implement a version of ArrangeIconicWindows somewhat similar to
17173         Windows version.  There are some little differences, but I don't
17174         think any app will rely on the layout of minimized mdi windows.
17175
17176 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
17177
17178         * Padding.cs: Several fixes to allow compiling with csc 2.0
17179
17180 2006-03-09  Jackson Harper  <jackson@ximian.com>
17181
17182         * Menu.cs:
17183         * MenuItem.cs: Cheap hack so we can add items to the list without
17184         the events being raised.  This allows adding mdi items during
17185         drawing. TODO: Should probably find a better time to add the items.
17186
17187 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
17188
17189         * ThemeWin32Classic.cs:
17190           - CheckBox_DrawText: Added logic to not wrap if not enough space
17191             is available (Fix for bug #77727)
17192           - RadioButton_DrawText: Added logic not to wrap if not enough
17193             space is available (Fix for bug #77727). Also removed some
17194             duplicate code, DrawString always drawing the regular text
17195             before hitting the if statement.
17196
17197 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
17198
17199         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
17200
17201 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
17202
17203         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
17204         * ContainerControl.cs: Partial implementation of some 2.0 scaling
17205           methods. Moved the new 2.0 properties into alphabetical order with
17206           other properties and added MonoTODO tags
17207
17208 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
17209
17210         * AutoScaleMode.cs: Added. Fix build.
17211
17212 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
17213
17214         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
17215           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
17216           and was requiring premature handle creation for calls from above
17217         * Form.cs, Control.cs: Removed handle arguments from calls to
17218           CalculateClientRect()
17219
17220 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
17221
17222         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
17223           drag_column.column_rect is MarshalByRef and can't be used that way
17224
17225 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
17226
17227         * AxHost.cs: Added deserialization constructor for 
17228           AxHost+State (fixes 77743)
17229
17230 2006-03-09  Mike Kestner  <mkestner@novell.com>
17231
17232         * ListView.cs: 
17233         - Added column drag reordering for details view.
17234         - fixed behavior when mouse is dragged off column and
17235         AllowColumnReorder is false.
17236         * ColumnHeader.cs: clone the format too in Clone.
17237         * Theme.cs: add DrawListViewHeaderDragDetails method.
17238         * ThemeWin32Classic.cs:
17239         - impl new method for drawing drag column shadows and targets.
17240         - support column offset for details mode in DrawListViewItem.
17241
17242 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
17243
17244         * TextControl.cs: Reset the char_count when the document is cleared
17245           (Fixes bug reported on mono-winforms mailing list)
17246
17247 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
17248
17249         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
17250           of calling base we simply process the key ourselves, since both
17251           DefWindowProc and the handled method would set m.Result. 
17252           (Fixes #77732)
17253
17254 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
17255
17256         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
17257           method also moves the window; instead implemented a copy of
17258           Control.ScaleCore (Part of fix for #77456)
17259         * TextBoxBase.cs: 
17260           - Created new CreateGraphicsInternal method to allow providing
17261             a graphics context when no handle is created without triggering
17262             handle creation. (Part of fix for #77456)
17263           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
17264         * TextControl.cs: 
17265           - Switched Constructor to require TextBoxBase instead of Control (to
17266             allow uncast access to CreateGraphicsInternal)
17267           - Safeguarded use of owner.Handle property. No longer accessing it
17268             unless the handle is already created.
17269           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
17270           - Now triggering a recalc when owning control becomes visible
17271         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
17272           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
17273           premature handle creation (Part of fix for #77456)
17274         * Control.cs:
17275           - We now only destroy our double-buffering buffers when the
17276             control is resized or disposed, but not when visibility
17277             changes. (The code even re-created them twice every time)
17278           - Now requiring a redraw of the buffer on visibility changes
17279             (fixes bug 77654 part 2)
17280           - Not passing OnParentVisibleChanged up unless the control
17281             is visible
17282           - CanFocus: Fixed to match MS documentation
17283           - Focus: Fixed to return actual focus state and to check if
17284             setting focus is legal before setting it
17285
17286 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
17287
17288         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
17289           when to draw focus rectangle by looking at parent focus and
17290           selected state instead. This fixes TabPages on Linux sometimes
17291           having none or multiple focus rectangles.
17292         * XplatUIX11.cs (SetFocus): 
17293           - Don't set the focus if the same window already has focus
17294           - Use SendMessage instead of PostMessage (like it's Win32
17295             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
17296             to match MS behaviour
17297         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
17298           are not selectable.
17299
17300 2006-03-07  Jackson Harper  <jackson@ximian.com>
17301
17302         * PictureBox.cs: Revert line I accidently committed last week.
17303
17304 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
17305
17306         * Control.cs: 
17307           - Added new IsRecreating and ParentIsRecreating properties to
17308             allow testing if RecreateHandle has been called on ourselves
17309             or one of our parents
17310           - WndProc(WM_DESTROY): If our control handle is being recreated
17311             we immediately need to create the handle when receiving the
17312             destroy, that way our child windows find a valid parent handle
17313             when they themselves are being recreated upon WM_DESTROY receipt
17314             (fix for bug #77654 part 1)
17315         * XplatUIX11.cs:
17316           - DestroyWindow: WM_DESTROY must be sent to our own window before
17317             notifying any child windows. MS documents that child windows
17318             are still valid when WM_DESTROY is received. (Control now relies on
17319             this behaviour)
17320           - Added some fine-grain debug options
17321
17322 2006-03-06  Jackson Harper  <jackson@ximian.com>
17323
17324         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
17325         box and base calculations off this.
17326         * MdiChildContext.cs:
17327         * MdiWindowManager.cs: Don't need to ensure scrollbars here
17328         anymore.
17329         
17330 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
17331
17332         * Splitter.cs: In situations where the affected control is added
17333           to the parent's control list after the splitter, we would not
17334           populate affected. Now we try populating it on mousedown, if
17335           it's not already set, and force it to be re-set whenever our
17336           parent changes.
17337
17338 2006-03-03  Matt Hargett  <matt@use.net>
17339
17340         * Control.cs: implement Control.Padding
17341         * Padding.cs: -Padding.All returns -1 when constructing with the
17342         implicit default ctor
17343         -Padding.ToString() matches MS.NET
17344         * ContainerControl.cs: implement
17345         ContainerControl.AutoScaleDimensions
17346         * ListControl.cs: implement ListControl.FormattingEnabled
17347         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
17348         * ButtonBase.cs:
17349         * TabPage.cs: Implement UseVisualStyleBackColor.
17350         * PictureBox.cs: Implement PictureBox.InitialImage.
17351
17352 2006-03-03  Mike Kestner  <mkestner@novell.com>
17353
17354         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
17355         event declarations to proxy to base event.
17356         * ListViewItem.cs: update to use ItemControl.
17357         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
17358         * ThemeWin32Classic.cs: update to new ListView theme API and fix
17359         column header label rendering for 0 width columns.
17360
17361 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
17362
17363         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
17364           that causes the control to be created. Fixes #77476.
17365
17366 2006-03-02  Jackson Harper  <jackson@ximian.com>
17367
17368         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
17369         expose_pending.
17370
17371 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
17372
17373         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
17374           passed in for the EventArgs (fixes #77690)
17375
17376 2006-03-01  Jackson Harper  <jackson@ximian.com>
17377
17378         * ScrollBar.cs: Refresh afterbeing resized.
17379
17380 2006-02-28  Mike Kestner  <mkestner@novell.com>
17381
17382         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
17383         Clean up a tracker compile warning.
17384         * MenuItem.cs: add internal PerformPopup method.
17385         [Fixes #77457]
17386
17387 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
17388
17389         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
17390           implicit expose) when the text is set to null
17391
17392 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
17393
17394         * RichTextBox.cs (FlushText): When newline is true, we always
17395           need to split the line, even if no text is on it and we may
17396           never eat newlines. (Fixes #77669)
17397
17398 2006-02-28  Mike Kestner  <mkestner@novell.com>
17399
17400         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
17401         and set Selected instead.
17402         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
17403         collections.
17404
17405 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
17406
17407         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
17408
17409 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
17410
17411         * FontDialog.cs:
17412           - Got rid of the panel. All controls are now directly added to
17413             the dialog form
17414           - It is now possible to set a font with the Font property
17415           - MinSize and MaxSize property do now what they should
17416           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
17417           - Searching and selecting a font with the font textbox works now,
17418             the same applies to the style and size textbox
17419           - Draw the correct 3D border in the example panel
17420           - Fixed a little mem leak (unused fonts didn't get disposed)
17421           - Many other internal updates/rewrites...
17422           - Fix typo
17423
17424 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
17425
17426         * TextControl.cs: 
17427           - InsertRTFFromStream: Added 'number of characters inserted' argument
17428           - set_SelectedRTF: Now using the number of characters to calculate
17429             the new location for the selection and cursor (x/y cannot be used
17430             due to potentially already wrapped text)
17431
17432 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
17433
17434         * TextControl.cs: Added property and implemented means to allow 
17435           disabling recalculation of a document (can be used to speed up
17436           multiple inserts and is needed to make RTF inserts predictable, see
17437           bug #77659)
17438         * RichTextBox.cs: Using the new NoRecalc property of Document to
17439           keep x/y insert locations predictable. Also makes it faster inserting
17440           large chunks of RTF
17441
17442 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
17443
17444         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
17445           it's easier for a child control to handle the other messages without
17446           having to duplicate the special functionality
17447         * TextBoxBase.cs
17448           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
17449             code to handle processing the key ourselves, in order to get 
17450             access to the result of KeyEventArgs.Handled. We now only call 
17451             ProcessKey if they key hasn't been handled already. Fixes #77526.
17452           - set_Text: If null or empty string is given, just clear the 
17453             document. Fixes part of #77526
17454
17455 2006-02-27  Jackson Harper  <jackson@ximian.com>
17456
17457         * SizeGrip.cs: Paint the background color before painting the grip
17458         so things look right.
17459         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
17460
17461 2006-02-27  Mike Kestner  <mkestner@novell.com>
17462
17463         * ListView.cs:
17464           - Restructure layout and invalidation model to remove a ton of
17465           flicker from the control and speed up performance in general.
17466           - Add manual column resize, flickers like crazy, but I already have
17467           some ideas on how I'll fix that. (#76822)
17468           - Merge the three Icon-based views into a single layout method.
17469           - Move item selection interaction logic from the item since 
17470           interaction with the collections is more appropriate to the view.
17471           - Deselection on non-item clicks.
17472         * ListViewItem.cs:
17473           - Encapsulate most of the layout. Add some internal props to trigger
17474           layout.  Move to a model where Items invalidate themselves instead
17475           of just invalidating the whole control every time something changes.
17476           - Invalidate on Text/Caption changes.
17477           - switch to an offset based layout model to avoid having to absolute
17478           position every element on item moves.
17479           - correct checkbox layout to conform to MS layout.
17480         * ThemeWin32Classic.cs:
17481           - refactor some column header drawing code.
17482           - fix string justification for column headers (#76821)
17483           - make SmallIcon labels top justified for compat with MS impl.
17484         * ThemeClearlooks.cs:
17485           - adjust to new ListViewItem internal checkbox bounds api.
17486
17487 2006-02-27  Jackson Harper  <jackson@ximian.com>
17488
17489         * Control.cs:  Change where implicit controls fall in the zorder.
17490         They are now on top of all children.
17491         - Synced AddImplicit code with Add
17492         - Removed unused enumerator.
17493         * SizeGrip.cs: Remove the TODO as its been TODONE.
17494
17495 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
17496
17497         * TextControl.cs(Insert): Combine the last lines unless the insertion
17498           string ends with \n\n, otherwise we leave one line too many (Fixes
17499           something I noticed with the testapp for #77526; the bug itself was
17500           already fixed in the previous checkin)
17501
17502 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
17503
17504         * RichTextBox.cs:
17505           - SelectionColor and SelectionFont methods no longer set absolute
17506             styles. Instead, the keep font or color respectively (This 
17507             resolves a long-standing FIXME in the code)
17508           - When flushing RTF text, the insert code now considers text trailing
17509             behind the insertion point (Fixes the bug where when replacing
17510             the selected text via SelectedRTF the remainder of the line behind 
17511             the selection would stay on the first insertion line)
17512         * TextBoxBase.cs:
17513           - AppendText now updates the selection points after inserting text
17514           - AppendText now ensures that the last tag (sometimes 0-length) of
17515             the document is used for the style information (Fixes part of 
17516             bug #77220)
17517         * TextControl.cs:
17518           - Created new FontDefiniton class to allow describing partial style
17519             changes
17520           - StreamLine() now takes a lines argument, to allow it to decide
17521             whether an encountered zero-length tag is the last in the document
17522             (which must be kept to not loose the font/color contained in it,
17523             for later appends)
17524           - Created Combine() and Split() methods for Marker structs, to 
17525             support marker updates due to reformatted documents (soft line
17526             wraps)
17527           - Implemented Document.CaretTag setter
17528           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
17529             of the last line (Not the cause, but also exposed by bug #77220)
17530           - Added LineTag argument to InsertString method, to allow callers
17531             to force a certain tag to be used (required to force use of the
17532             trailing zero-length tag of a document)
17533           - Now updating markers in Combine(), to avoid stale tag markers
17534           - Added some method descriptions to aid maintenance
17535           - Implemented new FormatText concept, allowing additive/subtractive
17536             formatting by only specifying the components that are to be 
17537             changed. This was needed for resolving the RTB.SelectedColor/
17538             RTB.SelectedFont fixmes
17539           - Added Break() support method to allow breaking up linetags (used
17540             for partial formatting)
17541           - Added GenerateTextFormat() method. It is used for partial 
17542             formatting and allows to generate a full font/color from given
17543             attributes and an existing tag.
17544
17545 2006-02-26  Jackson Harper  <jackson@ximian.com>
17546
17547         * XplatUIX11.cs:  Use the correct caption height.
17548         - Translate hittest coordinates to screen coords to match MS.
17549         * XplatUIWin32.cs: When we create MDI windows we need to reset
17550         some of the style flags, so we get a nice blank window, and can
17551         draw all the decorations ourselves.
17552         - Set a clipping rectangle on the non client paint event, the
17553         window manager drawing code needs one.
17554         * Form.cs: The window manager needs to know when the window state
17555         has been updated.
17556         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
17557         don't need to factor in border and title sizes in these
17558         methods. TODO: Remove the args and fix the call points.
17559         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
17560         properly.
17561         - Let the driver set the cursors.
17562         - Improve active window handling
17563         - Correct sizes for title bars and buttons.
17564         - Match MS drawing better
17565         * MdiWindowManager.cs: We don't need to handle border style
17566         updates specially anymore.
17567         - Check for scrollbars when windows are done moving
17568         - Handle Active properly.
17569         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
17570         correctly. I am spewing the exception though, so we don't hide the
17571         bugs.
17572         
17573 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
17574
17575         * DataGridViewRowPostPaintEventArgs.cs,
17576           DataGridViewCellPaintingEventArgs.cs,
17577           DataGridViewRowCollection.cs,
17578           DataGridViewRowPrePaintEventArgs.cs,
17579           DataGridViewCell.cs: Clear a few warnings and implement a few
17580           exceptions that should be thrown.
17581
17582 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
17583
17584         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
17585           'inheriting' our parent's (non-default) cursor. (Part of
17586            the fix for #77479)
17587
17588 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
17589
17590         * XplatUIX11.cs: Fixed cast to make csc happy
17591
17592 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
17593
17594         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
17595           it's for the client area (part of fix for #77479 and needed
17596           for MDI window cursor handling)
17597         * XplatUIX11.cs
17598           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
17599             the appropriate default cursors and also passing the message
17600             up the parent chain 
17601           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
17602             for non-client areas
17603
17604 2006-02-15  Jackson Harper  <jackson@ximian.com>
17605
17606         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
17607         is a real MDI window
17608
17609 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
17610
17611         * X11DesktopColors.cs: Instead of checking the desktop session
17612           string for "KDE" check if it starts with "KDE"
17613
17614 2006-02-10  Jackson Harper  <jackson@ximian.com>
17615
17616         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
17617         systems).
17618
17619 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
17620
17621         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
17622           errors
17623         * ColorDialog.cs:
17624           - Got rid of the panel. All controls are now directly added to
17625             the dialog form
17626           - Changed to mono coding style
17627
17628 2006-02-10  Jackson Harper  <jackson@ximian.com>
17629
17630         * InternalWindowManager.cs: We don't need the set visibility to
17631         false hack anymore now that peter has written beautiful shutdown
17632         code.
17633
17634 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
17635
17636         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
17637           where already explicitly destroyed
17638
17639 2006-02-10  Jackson Harper  <jackson@ximian.com>
17640
17641         * MdiClient.cs: Handle the case where windows are too high or to
17642         the left and we need scrollbars.
17643
17644 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
17645
17646         * MimeIcon.cs: Added some icons
17647         * FileDialog.cs:
17648           - Fixed bug #77477
17649           - Got rid of the panel. All controls are now directly added to
17650             the dialog form
17651           - Changed to mono coding style
17652           - On Linux "My Computer" and "My Network" will now show some
17653             more usefull information. A new class, MasterMount, gathers
17654             this information from /proc/mount. Updated MWFFileView to make
17655             use of this information
17656           - Fixed a bug that caused FileDialog to crash when
17657             ".recently_used" file had a zero size
17658           - FilterIndex does now what it should
17659           - Some Refactoring
17660         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
17661             FileDialog changes
17662
17663 2006-02-09  Jackson Harper  <jackson@ximian.com>
17664
17665         * ComboBox.cs: Don't touch if null.
17666
17667 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
17668
17669         * Cursor.cs: 64bit safeness fix
17670         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
17671
17672 2006-02-09  Jackson Harper  <jackson@ximian.com>
17673
17674         * Form.cs: If a form is made into an MDI form update the styles so
17675         all the props can get set correctly.
17676         - Kill the mdi_container when we dont need it anymore.
17677         * InternalWindowManager.cs: Add missing NOT
17678
17679 2006-02-08  Jackson Harper  <jackson@ximian.com>
17680
17681         * InternalWindowManager.cs: Respek clipping when drawing MDi
17682         decorations.
17683
17684 2006-02-08  Jackson Harper  <jackson@ximian.com>
17685
17686         * Hwnd.cs: Add bits to track non client expose events.
17687         * XplatUIX11.cs: Track non client expose events on the hwnd. This
17688         gives us a proper invalid rect and will allow for some nice
17689         optimizations with NC client drawing
17690         - MDI windows are children windows, so move their style handling
17691         into the child window block.
17692         * InternalWindowManager.cs: Remove a state reset that was
17693         getting invoked at the wrong time. Fixes managed windows getting
17694         into a 'stuck' captured state.
17695
17696 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
17697
17698         * TextControl.cs (Document.ctor): Now initializing 
17699           selection_anchor. Fixes #77493
17700
17701 2006-02-07  Jackson Harper  <jackson@ximian.com>
17702
17703         * TrackBar.cs: The increment/decrements were backwards.
17704
17705 2006-02-07  Mike Kestner  <mkestner@novell.com>
17706
17707         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
17708         to the instance itself.
17709
17710 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
17711
17712         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
17713           on ulongs and pointers, the size differs between 32bit and 64bit
17714           systems. 
17715
17716 2006-02-07  Mike Kestner  <mkestner@novell.com>
17717
17718         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
17719         for 64 bit platforms to work around a metacity bug. 
17720
17721 2006-02-07  Jackson Harper  <jackson@ximian.com>
17722
17723         * TrackBar.cs: Process the input keys we need, and hookup to
17724         KeyDown instead of using WndProc, so we get key messages.
17725
17726 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
17727
17728         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
17729           machine we're on. 
17730         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
17731           we need to translate the XdndVersion atoms array before sending it
17732
17733 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
17734
17735         * XplatUIX11.cs: 
17736           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
17737             number of bits for the property, not the number of bytes. The
17738             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
17739             but would not crash since it specified 8 bits instead of 4 bits)
17740           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
17741             defined as XID -> long in the C headers)
17742           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
17743             references since those are now IntPtr to begin with
17744           - Switched all Atom.XXX 'int' casts to IntPtr casts
17745           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
17746           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
17747           - Added XChangeActivePointerGrab DllImport (for X11DnD)
17748         * X11Structs.cs:
17749           - Changed 'int' type for Atoms in XEvent structures to IntPtr
17750           - Changed atom in HoverStruct to be IntPtr
17751         * X11DnD.cs:
17752           - Removed local DllImports, switched code to use those from XplatUIX11
17753           - Removed/fixed casts related to the switch of Atom to be a IntPtr
17754
17755 2006-02-06  Mike Kestner  <mkestner@novell.com>
17756
17757         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
17758         method signatures in the import region.  There may still be some
17759         lingering struct marshaling issues, as I didn't drill down into those.
17760         Yet.
17761
17762 2006-02-06  Jackson Harper  <jackson@ximian.com>
17763
17764         * ComboBox.cs: Dont manually set the top_item, this is computed
17765         when the scrollbar position is set.
17766
17767 2006-02-06  Mike Kestner  <mkestner@novell.com>
17768
17769         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
17770         startup crashes on amd64.  There's other fixes needed.  All pinvoke
17771         usage of Atom needs to be mapped to IntPtr for example.  And there are
17772         likely other int/long issues to be addressed.
17773
17774 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
17775
17776         * FileDialog.cs: One more...
17777
17778 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
17779
17780         * FileDialog.cs: Next try
17781
17782 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
17783
17784         * FileDialog.cs: First part of fix for #77464
17785
17786 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
17787
17788         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
17789           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
17790           AcceptButton border drawing.
17791
17792 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
17793
17794         * Form.cs: Moved positioning of form after auto scaling is applied,
17795           otherwise it would possibly use wrong form size.
17796
17797 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
17798
17799         * Control.cs (RecreateHandle): No need to re-create any child
17800           controls, the child windows will get destroyed automatically by
17801           the windowing system or driver, and re-created when the handle
17802           is being accessed the first time. Fixes #77456
17803         * Form.cs: No longer setting the form to closing if the handle is 
17804           being recreated. This seems like the right thing to do, don't
17805           have a bug or testcase for this, though.
17806
17807 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
17808
17809         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
17810           controls to avoid unwanted side effects
17811
17812 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
17813
17814         * Control.cs: 
17815           - ScaleCore needs to scale the bounds, not the ClientSize of the 
17816             control. Fixes #77416.
17817           - DefaultSize is 0,0 for control
17818         * TextBoxBase.cs: 
17819           - DefaultSize is 100, 20
17820           - SetBoundsCore: Now enforcing the height, no matter if the provided
17821             height is more or less than the preferred one, as long as AutoSize
17822             is on
17823         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
17824
17825 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
17826
17827         * Control.cs:
17828           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
17829             call unless both performLayout is true *and* we have a pending
17830             layout change
17831           - ResumeLayout: MS does not completely nest Suspend and Resume,
17832             they bottom out at 0, fixed our code to match that.
17833           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
17834             SetBoundsCore, we were updating even when we shouldn't. This fixes
17835             swf-anchors mis-anchoring when resizing the app fast and lots.
17836           - UpdateDistances: Now only setting the left and top distance if 
17837             we have a parent and are not suspended, this is based on
17838             a suggestion by Don Edvaldson in bug #77355.
17839           - OnVisibleChanged: Fixed logic when to create the control. We may
17840             not create the control if we have no parent or if it's not visible;
17841             switched to using Visible property instead of is_visible field 
17842             since the property also considers parent states. This fixes a bug
17843             when starting Paint.Net
17844
17845 2006-02-02  Jackson Harper  <jackson@ximian.com>
17846
17847         * Form.cs: If the forms handle hasn't been created yet don't call
17848         into xplatui to make it top most, just set the topmost flag on the
17849         form in CreateParams
17850         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
17851
17852 2006-02-01  Jackson Harper  <jackson@ximian.com>
17853
17854         * ScrollableControl.cs: Refactored the Recalculate method a
17855         little, this wasn't handling all the variants of bottom and right
17856         bars needed to be added and added/removed based on their
17857         counterparts being added/removed (which changes the drawable
17858         size). Also we special case client widths and heights of 0 and
17859         don't add the scrollbar for those.
17860
17861 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
17862
17863         * XplatUIX11.cs: 
17864           - Added method to get AbsoluteGeometry(); currently unused, but might
17865             be used in the future, if we try again to figure out toplevel
17866             coordinates with some more crappy window managers
17867           - Added FrameExtents() method to retrieve the WM set decoration size
17868           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
17869             to deal with at least KDE, FVWM and metacity (Fixes #77092)
17870         * Hwnd.cs: 
17871           - Added whacky_wm tracking var for metacity
17872           - Added logic to have default menu height if the actual menu height
17873             has not yet been calculated (part of fix for #77426)
17874         * Form.cs: Keep track whether client size has been set and re-set 
17875           it if a menu is added/removed afterwards (Fixes #77426)
17876
17877 2006-01-31  Jackson Harper  <jackson@ximian.com>
17878
17879         * Control.cs: When a new Site is set on the component attempt to
17880         pull the AmbientProperties from it.
17881
17882 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
17883
17884         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
17885           in the background of the owning form. Fixes #77332
17886
17887 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
17888
17889         * MimeIcon.cs: Fix for #77409
17890
17891 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
17892
17893         * XplatUIX11GTK.cs: Initial import
17894
17895 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
17896
17897         * FixedSizeTextBox: fixes class signature
17898
17899 2006-01-30  Jackson Harper  <jackson@ximian.com>
17900
17901         * FixedSizeTextBox.cs: New internal class that represents a
17902         textBox that will not be scaled.
17903         * TreeView.cs:
17904         * ComboBox.cs:
17905         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
17906         standard TextBox.
17907                 
17908 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
17909
17910         * XplatUIX11.cs: Retrieve default screen number instead of
17911           assuming 0. Attempted fix for #77318
17912
17913 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
17914
17915         * XplatUIWin32.cs: 
17916           - GetWindowPos: When a window is parented by FosterParent, use 
17917             the desktop instead of FosterParent as the base to get coordinates
17918           - CreateWindow: Don't make FosterParent the parent window for Popups
17919             if we don't want a taskbar entry, Popups automatically don't get one
17920         * Hwnd.cs: Need to call remove to actually remove the key from the
17921           hash table
17922
17923 2006-01-30  Mike Kestner  <mkestner@novell.com>
17924
17925         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
17926
17927 2006-01-30  Jackson Harper  <jackson@ximian.com>
17928
17929         * TreeView.cs:
17930         * TreeNode.cs: Raise events no matter how the treenode is
17931         checked. Patch by Don Edvalson.
17932
17933 2006-01-30  Jackson Harper  <jackson@ximian.com>
17934
17935         * TreeNode.cs: Signature fix.
17936
17937 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
17938
17939         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
17940
17941 2006-01-20  Mike Kestner  <mkestner@novell.com>
17942
17943         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
17944         event forwarding when menus are active.
17945         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
17946         Most of the patch is pdb's with a little rework.
17947
17948 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
17949
17950         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
17951           Removed GetMenuDC and ReleaseMenuDC methods; replaced
17952           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
17953         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
17954         * InternalWindowManager.cs: Added use of PaintEventStart/End to
17955           handling of WM_NCPAINT message, now passing the PaintEventArgs to
17956           the PaintWindowDecorations method
17957         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
17958         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
17959         * MenuAPI.cs: Made tracker window invisible
17960         * XplatUIWin32.cs:
17961           - Removed GetMenuDC and ReleaseMenuDC methods
17962           - Implemented the client=false path for PaintEventStart and
17963             PaintEventEnd
17964
17965 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
17966
17967         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
17968         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
17969           styles
17970         * Form.cs: 
17971           - MaximizeBox, MinimizeBox: Recreate the handle when setting
17972             the style
17973           - CreateParams: Reworked the styles to match MS look'n'feel,
17974             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
17975             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
17976
17977 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
17978
17979         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
17980           window is not mapped, since otherwise every form that's being 
17981           created is considered minimized, which is wrong.
17982         * Form.cs: Catching the exception and returning our internal value
17983           instead
17984
17985 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
17986
17987         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
17988           SetWindowMinMax() to have means to tell the driver about the minimum,
17989           maximum and maximized state window sizes. (Part of the fix for #76485)
17990         * Form.cs:
17991           - Implemented tracking of minimum and maximum window size, now calling
17992             new SetWindowMinMax() driver method to tell the driver (Part of the
17993             fix for #76485)
17994           - Finished handling of WM_GETMINMAXINFO method, now setting all values
17995             (Completes fix for #76485)
17996           - Calling new SetWindowMinMax driver method when the handle for a 
17997             form is created, to make sure the driver knows about it even if
17998             the values have been set before the window was created
17999           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
18000             to avoid messing up our anchoring calculations (partial fix
18001             for #77355)
18002         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
18003         * XplatUIX11.cs:
18004           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
18005           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
18006             (and presumably other freedesktop.org compliant WMs). Left the
18007             assumption unmapped=minimized, needed for SetVisible to work.
18008           - Now setting the window state when creating windows
18009           - Fixed SetVisible to consider/set the window state when mapping
18010             a Form. We cannot set the state before it's mapped, and we cannot
18011             use Form.WindowState once it's mapped (since it would ask the
18012             driver and get 'normal'. Therefore, we grab the state before
18013             mapping, map, and then set state.
18014           - Implmemented SetWindowMinMax method; Metacity does not seem to
18015             honor the ZoomHints, though.
18016         * XplatUIWin32.cs:
18017           - Removed MINMAXINFO (moved to XplatUIStructs)
18018           - Added SetWindowMinMax stub (on Win32 the only way to set that
18019             information is in response to the WM_GETMINMAXINFO message, which
18020             is handled in Form.cs)
18021           - Added logic to SetVisible to set the proper window state when a 
18022             form is made visible (fixes #75720)
18023
18024 2006-01-26  Jackson Harper  <jackson@ximian.com>
18025
18026         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
18027         same way we handle them with Invoke.
18028
18029 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
18030
18031         * Form.cs:
18032           - Added tracking of window state so CreateParams can return
18033             the appropriate style
18034           - Moved setting of WS_CAPTION style in CreateParams to allow
18035             styles without caption
18036         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
18037           control if the TextBox property is accessed. Fixes #77345
18038         * Control.cs:
18039           - get_Created: now uses is_disposed and is_created to determine
18040             return value (suggested by Jackson)
18041           - CreateHandle: No longer exits if the handle is being recreated
18042           - RecreateHandle: If the handle is not yet created call the 
18043             appropriate method to create either control or handle. If the
18044             control is already created CreateHandle will simply exit instead
18045             of just creating the handle
18046         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
18047           now SendMessage WM_DESTROY directly to the control when DestroyWindow
18048           is called.
18049         * XplatUIX11.cs: 
18050           - When DestroyWindow is called, instead of waiting for the 
18051             DestroyNotification from X11, we directly post it to the WndProc
18052             and immediately dispose the hwnd object.
18053             Same applies to DestroyChildWindows, and this obsoletes the
18054             expose_pending tracking. Contrary to Win32 behaviour we destroy our
18055             child windows before our own, to avoid X11 errors.
18056           - Removed the direct sending of WM_PAINT on UpdateWindow
18057         * XplatUIWin32.cs:
18058           - Reworked DoEvents and GetMessage to allow access to internal queue
18059             even when trying non-blocking access to the queue.  Fixes #77335. 
18060             Based on a patch suggestion by Don Edvalson. The new private
18061             GetMessage can now also be used as a backend for a PeekMessage
18062             frontend version.
18063         * XplatUI.cs: Improved debug output for CreateWindow
18064
18065 2006-01-25  Jackson Harper  <jackson@ximian.com>
18066
18067         * Help.cs: Allow param to be null. Patch by Don Edvalson.
18068
18069 2006-01-24  Jackson Harper  <jackson@ximian.com>
18070
18071         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
18072         when we have a MaxDropItems lower then the selected index.
18073
18074 2006-01-24  Jackson Harper  <jackson@ximian.com>
18075
18076         * Control.cs: Don't allow selection of non visible controls, allow
18077         selection of controls without parents.
18078
18079 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
18080
18081         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
18082         * DataGridDrawingLogic.cs: Add editing row only when is necessary
18083
18084 2006-01-23  Jackson Harper  <jackson@ximian.com>
18085
18086         * UpDownBase.cs: Make the textbox handle all the selection and
18087         tabbing. This fixes tabing to updown controls.
18088
18089 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
18090
18091         * TextBoxBase.cs: fixes exception thown the object was null
18092
18093 2006-01-23  Jackson Harper  <jackson@ximian.com>
18094
18095         * ButtonBase.cs: Just use the base CreateParams. They set
18096         visibility and enabled correctly.
18097         * ComboBox.cs:
18098         * TrackBar.cs:
18099         * MonthCalendar.cs: Lets let the base set as much of the
18100         createparams as possible so we don't have duplicate code all over
18101         the place.
18102
18103 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
18104
18105         * ThemeGtk.cs: Added TrackBar and some experimental code to
18106           get double buffering back
18107
18108 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
18109
18110         * DataGrid.cs: Allows row number set internally higher than the last
18111         when creating a new row. Restores the editing functionality.
18112
18113 2006-01-20  Mike Kestner  <mkestner@novell.com>
18114
18115         * MimeIcon.cs: delay Image creation until the icons are accessed
18116         instead of creating 190 scaled images on GnomeHandler startup.
18117
18118 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
18119
18120         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
18121           first call base before processing the event. Fixes #77279
18122
18123 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
18124
18125         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
18126           that the stride for the GDI bitmap would match the stride of
18127           a DIB or a Cursor.
18128
18129 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
18130
18131         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
18132
18133 2006-01-19  Jackson Harper  <jackson@ximian.com>
18134
18135         * ComboBox.cs: Hookup the text controls keydown event so we get
18136         those when the text control has the focus.
18137
18138 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
18139
18140         * Label.cs: Now using the base events instead of defining new ones;
18141           this allows us to just call the base properties without having to
18142           duplicate all base property logic 
18143
18144 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
18145
18146         * Label.cs: A label by default is not a tabstop (Fixes one of our
18147           failing nunit tests)
18148
18149 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
18150
18151         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
18152         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
18153
18154 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
18155
18156         * Cursor.cs: Reimplemented creating cursor bitmaps without using
18157           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
18158           This fixes #77218
18159         * XplatUIWin32.cs: 
18160           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
18161             constructor creates images that can't be saved. Part of the fix
18162             for #76103
18163           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
18164           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
18165             bug fix for handling window state in forms properly)
18166
18167 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
18168
18169         * ThemeGtk.cs: Simplify ScrollBar drawing
18170
18171 2006-01-18  Jackson Harper  <jackson@ximian.com>
18172
18173         * Splitter.cs: Set the default dock style for the splitter control
18174         in the constructor.
18175
18176 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
18177
18178         * ThemeGtk.cs: Corrected StateType and ShadowType for
18179           gtk_paint_box
18180
18181 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
18182
18183         * Control.cs: Make use of Theme.DoubleBufferingSupported
18184         * ThemeGtk.cs:
18185           - Added drawing for flat style buttons
18186           - Added ScrollBar drawing
18187
18188 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
18189
18190         * ThemeClearlooks.cs: Removed some unneeded code.
18191         * ThemeGtk.cs: First part of ThemeGtk enhancements.
18192
18193 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
18194
18195         * LinkLabel.cs: We need to update the hover drawing when
18196           leaving the control as well.
18197
18198 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
18199
18200         * DataGrid.cs: Clicking on non empty areas in the columns
18201            area was giving an exception
18202
18203 2006-01-17  Jackson Harper  <jackson@ximian.com>
18204
18205         * ThemeWin32Classic.cs:
18206         * ListView.cs: Do not draw/clip the headers when the header style
18207         is None.
18208
18209 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
18210
18211         * DataGrid.cs: Fixes 77260
18212         
18213 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
18214
18215         * DataGrid.cs: Clicking on a column on a empty grid was giving
18216           an exception
18217
18218 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
18219
18220         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
18221           or any keypress will crash the grid.
18222
18223 2006-01-17  Mike Kestner  <mkestner@novell.com>
18224
18225         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
18226         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
18227         invisible/previously-visible items.
18228         [Fixes #76909]
18229
18230 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
18231
18232         * ThemeClearlooks.cs:
18233         - Added CL_Draw_Button method; now other theme controls that are 
18234           not derived from button or do not have a button can draw buttons
18235           too
18236         - Updated ComboBox drawing
18237         - Beautified RadioButton drawing
18238         - Corrected drawing of bottom and left tabs
18239         - Beautified DateTimePicker and MonthCalendar
18240         - Added CPDrawButton and CPDrawRadioButton
18241
18242 2006-01-16  Jackson Harper  <jackson@ximian.com>
18243
18244         * ComboBox.cs: Set the initial value of the scrollbar to the
18245         current index. Reduce the numbers of refreshs and IndexOfs called.
18246
18247 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
18248
18249         * FileDialog.cs: When the file listview is focused hitting the
18250           backspace key moves the fileview to the parent directory
18251
18252 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
18253
18254         * Form.cs: 
18255           - Added RecreateHandle call when changing taskbar visibility to 
18256             trigger reparenting in Win32 driver (Fixes #75719)
18257           - If a window has minimize or maximize buttons, it cannot have
18258             a help button
18259         * XplatUIWin32.cs:
18260           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
18261             the toplevel form with FosterParent (A toolwindow not on the
18262             taskbar) (Fixes #75719)
18263           - Made FosterParent a toolwindow
18264
18265 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
18266
18267         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
18268
18269 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
18270
18271         * ToolTip.cs: If SetToolTip is called from a control and the mouse
18272           is currently over that control, make sure that tooltip_window.Text
18273           gets updated
18274
18275 2006-01-13  Mike Kestner  <mkestner@novell.com>
18276
18277         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
18278
18279 2006-01-13  Jackson Harper  <jackson@ximian.com>
18280
18281         * TreeView.cs: On MS GetNodeAt never actually factors in the X
18282         value passed.  Also redraw the selected node when we recieve
18283         focus, so tabbing between trees works correctly.
18284
18285 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
18286
18287         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
18288           ~/.gconf/%gconf-tree.xml, so use
18289           .gconf/desktop/gnome/interface/%gconf.xml
18290
18291 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
18292
18293         * TextControl.cs: Draw text in gray if control is disabled
18294
18295 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
18296
18297         * TreeView.cs: Draw the focus rectangle outside the highlight, to
18298           make sure it's always visible. Fixes #76680.
18299
18300 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
18301
18302         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
18303
18304 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
18305
18306         * PageSetupDialog.cs: Added.
18307         * PrintDialog.cs: Attributes.
18308         * PrintPreviewControl.cs: Updates.
18309         * PrintPreviewDialog.cs: Updates.
18310         
18311 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
18312
18313         * Control.cs: Undid my selection check fix, since it's not needed
18314         * TextBoxBase.cs:
18315           - Now considering the presence of hscroll/vscroll when sizing
18316             vscroll/hscroll respectively. Fixed bug #77077
18317           - Added Left/Up/Down/Right to IsInputKey list to prevent
18318             ContainerControl from stealing them. This fixes what I broke
18319             with my last checkin.
18320
18321 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
18322
18323         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
18324           I finally understand how the property can be set without a setter :-)
18325
18326 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
18327
18328         * Application.cs:
18329           - Switched RunLoop to use static Message.Create to create a 
18330             Message object
18331           - Added PreProcessMessage call in runloop for keyboard events; this
18332             is part of the fix for #77219, I overlooked this originally in the
18333             MSDN doc for PreProcessMessage
18334         * Control.cs:
18335           - Removed call to PreProcessMessage from handling of keyboard 
18336             messages; it's supposed to be done in the message pump
18337           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
18338             per MSDN documentation.
18339           - IsInputChar: All chars are input chars by default; removed the 
18340             parent calling chain, MS does not document that
18341           - PreProcessMessage: If IsInputChar is true, we want to return false
18342             to allow dispatching of the message
18343           - When selecting the next control, now also check that we're not
18344             selecting ourselves again and therefore return a false positive.
18345         * TextBoxBase.cs:
18346           - Tried to match return values for IsInputKey and ProcessDialogKey
18347             to what MS returns; moved processing of our special keys outside
18348             ProcessDialogKey since MS does not seem to return true on those.
18349           - Moved code that previously was in ProcessDialogKey into new private
18350             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
18351           - Reworked handling of WM_CHAR to not have to duplicate code from
18352             Control.cs anymore, instead we simply call down to base.
18353            
18354 2006-01-12  Jackson Harper  <jackson@ximian.com>
18355
18356         * ComboBox.cs: We always need to refresh the text area when
18357         EndUpdate is called. Fixes the combobox in the file dialog.
18358         * Control.cs: Don't create the creator_thread until the controls
18359         handle is created.  Also in InvokeRequired we check if the
18360         creator_thread is null. This gives the effect of InvokeRequired
18361         returning true if the controls handle is not created yet, and
18362         matches MS.
18363
18364 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
18365
18366         * XplatUI.cs:
18367           - Added StartLoop() driver method. This is used to allow drivers to
18368             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
18369             loop for a particular thread
18370           - Added EndLoop() driver method. This is called once the message
18371             pump for the thread is shut down
18372           - Added SupportsTransparency method to allow the driver to indicate
18373             opacity support for windows
18374         * Form.cs:
18375           - Removed TODO attribute, completed AllowTransparency property
18376           - Added documented logic to Opacity
18377         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
18378           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
18379           versions of CompatibleTextRendering
18380         * X11Structs.cs: Added opacity atom to our atom enumeration
18381         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
18382           of a form might be set before it's reparented by the WM, and we need
18383           the opacity value without calling up to Form)
18384         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
18385           SupportsTransparency() driver methods
18386         * Application.cs: Now calling StartLoop and EndLoop driver methods
18387         * XplatUIX11.cs:
18388           - Added opacity atom registration
18389           - Added StartLoop()/EndLoop() methods. They're empty right now but
18390             will need to get implemented when we switch to a per-thread queue
18391           - Implemented SupportsTransparency() method
18392           - Implemented SetWindowTransparency() method
18393           - Added support for setting the opacity value when a window is
18394             reparented (since the opacity needs to be set on the WM frame)
18395         * XplatUIOSX.cs, XplatUIWin32.cs:
18396           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
18397
18398 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
18399
18400         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
18401
18402 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
18403
18404         * FileDialog.cs: Added ToolTip for MWFFileView
18405         * MimeIcon.cs: Rewrote GnomeHandler.
18406           - Get currently used gnome icon theme from
18407             ($HOME)/.gconf/%gconf-tree.xml
18408           - Make use of inherited icon themes
18409           - Support SVG icon themes like Tango via librsvg
18410
18411 2006-01-12  Miguel de Icaza  <miguel@novell.com>
18412
18413         Revert's Jackson's revert which broke 2.0 builds.   Fix both
18414         builds. 
18415         
18416         * Application.cs: Move the use_compatible_text_rendering outside
18417         the NET_2_0 define.  If we ever need to use the
18418         use_compatible_text_rendering on the individual controls they will
18419         access the variable from the common shared code paths.
18420
18421 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
18422
18423         * XplatUI.cs:
18424           - Added more granular debug options
18425           - Added method to print both window text and id
18426           - Switched debug output to use new Window() debug method
18427           - Added IsEnabled() driver method
18428           - Added EnableWindow() driver method
18429         * Form.cs:
18430           - Removed end_modal; no longer needed, new loop handles termination
18431             via 'closing' variable
18432           - If form is modal, setting DialogResult will now initiate loop
18433             termination via 'closing' variable
18434           - Added support for is_enabled/WS_DISABLED to CreateParams
18435           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
18436             does all the work
18437           - Removed code that's now in RunLoop from ShowDialog()
18438           - Added various documented sanity checks to ShowDialog()
18439           - Added handling of WM_DESTROY message; we set 'closing' on getting
18440             the message to indicate the message pump to terminate
18441           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
18442             send by the Application.ExitThread method. (We send the message
18443             to destroy the window after all other events have been
18444             processed through the queue, instead of destroying the handle 
18445             directly)
18446           - Moved code from Close() method to WM_CLOSE handler; added logic
18447             to only send close-related events if the form is not displayed
18448             modal
18449         * Splitter.cs (..ctor): Fixed typo in resource name
18450         * Control.cs:
18451           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
18452             brush now
18453           - set_Cursor: Now only setting calling into XplatUI if the handle for
18454             the control is already created; this avoids implict handle creation
18455             or crashes if it's not created
18456           - set_Enabled: Now setting the enabled state via the new driver method
18457             instead of just tracking it
18458           - CreateParams: Added logic to set WS_DISABLED based on enabled state
18459           - CreateControl: Reordered event firing and method calls to more
18460             closely fire events in the order MS does. Now setting the
18461             enabled state in the driver when creating the control.
18462           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
18463             match MS order
18464         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
18465           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
18466         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
18467         * Hwnd.cs:
18468           - Added tracking of window enabled state (get_Enabled/set_Enabled)
18469           - Added EnabledHwnd property to easily allow a driver to find the
18470             handle of the first enabled window in the parent chain (this is
18471             used by drivers to pass up input events of disabled windows)
18472         * XplatUIDriver.cs: Added IsEnabled() method
18473         * Application.cs:
18474           - Removed crude and obsolete exiting tracking variable
18475           - Removed internal ModalRun(); replaced by RunLoop()
18476           - Implemented private CloseForms() method to allow closing all 
18477             windows owned by a particular (or all) threads
18478           - Exit() now properly closes all windows without forcing the message
18479             pump to quit
18480           - Removed obsolete InternalExit() method
18481           - Changed Run() methods to use new RunLoop() message pump
18482           - Implemented new RunLoop() method for both modal and non-modal forms
18483         * CommonDialog.cs:
18484           - get_CreateParams: Added setting of WS_DISABLED
18485           - Simplified ShowDialog(); now all the work is done in RunLoop(),
18486             invoked via Form.ShowDialog()
18487         * NativeWindow.cs: We don't remove the window from the collection when
18488           the handle is destroyed; there might still be messages for it in the
18489           queue (mainly the resulting WM_DESTROY); instead it will be removed
18490           when Control calls InvalidateHandle in the WM_DESTROY handler
18491         * XplatUIX11.cs:
18492           - CreateWindow: Added logic to handle the WS_DISABLED window style
18493           - EnableWindow: Implemented based on Hwnd.Enabled
18494           - GetMessage: Reset PostQuitState so the method can be called again
18495           - Implemented support for disabled windows (passing messages to the
18496             first enabled parent) in handling all input messages
18497           - Added optimizations for handling Expose events
18498           - Implemeted new driver method IsEnabled()
18499           - Now always resetting paint pending tracking vars when we start paint
18500           - Re-implemented UpdateWindow via just sending a WM_PAINT message
18501         * XplatUIOSX.cs: Added IsEnabled method stub
18502         * XplatUIWin32.cs: Implemented new IsEnabled() method
18503
18504 2006-01-11  Jackson Harper  <jackson@ximian.com>
18505
18506         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
18507         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
18508         variables a little.
18509         * ColorDialog.cs: Clear out the old form before adding the new
18510         panel.  
18511
18512 2006-01-11  Jackson Harper  <jackson@ximian.com>
18513
18514         * X11Dnd.cs: Make sure to add all the text formats when adding
18515         strings to the data object.
18516         * TreeNodeCollection.cs: When adding to a sorted tree we need to
18517         do some redrawing too.  Also change the UpdateNode to an
18518         UpdateBelow so the newly added node gets painted.
18519         
18520 2006-01-11  Miguel de Icaza  <miguel@novell.com>
18521
18522         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
18523         LinkLabel.cs, PropertyGrid.cs: Implement the
18524         UseCompatibleTextRendering property for 2.x
18525
18526         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
18527
18528 2006-01-11  Jackson Harper  <jackson@ximian.com>
18529
18530         * TreeView.cs: Use the property for setting the selected node so
18531         the correct events get raised.
18532         * TreeNode.cs: Update the tree when the fore/back colours of a
18533         node are set.
18534
18535 2006-01-10  Jackson Harper  <jackson@ximian.com>
18536
18537         * TreeView.cs: Allow setting SelectedNode to null.
18538
18539 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18540
18541         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
18542
18543 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18544
18545         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
18546
18547 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18548
18549         * PrintDialog.cs: Added attributes and set default property values.
18550
18551 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18552
18553         * PrintControllerWithStatusDialog.cs: 
18554         Added PrintControllerWithStatusDialog.
18555
18556 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18557
18558         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
18559         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
18560
18561 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
18562
18563         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
18564
18565 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
18566
18567         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
18568         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
18569
18570 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
18571
18572         * MimeIcon.cs: Added internal class SVGUtil.
18573
18574 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
18575
18576         * FileDialog.cs: Don't crash if there are two files with the
18577           same name but different locations.
18578
18579 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
18580
18581         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
18582         dates across multiple month grids. Used to not highlight entire 
18583         month, but does now.
18584         
18585 2006-01-06  Jackson Harper  <jackson@ximian.com>
18586
18587         * MonthCalendar.cs: Removed DoEvents call to prevent a running
18588         message loop. Change timer intervals to numbers that seem more
18589         natural.
18590
18591 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
18592
18593         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
18594           object for location info since screen object is now implemented.
18595
18596 2006-01-05  Jackson Harper  <jackson@ximian.com>
18597
18598         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
18599         * AsyncMethodResult.cs: We no longer use a WeakReference for the
18600         AsyncMethodResult, this is because we ALWAYS want the
18601         ManualResetEvent to get set.
18602         * Control.cs: When disposing use an async invoke to call shutdown
18603         code, so that thigns don't block on the finalizer thread.  Also
18604         check if we even have a message loop before trying to send
18605         messages, if we don't then don't bother sending messages.
18606         - No more weak references for async methods
18607         * XplatUIDriver.cs: No more weak references for async methods.
18608
18609 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18610
18611         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
18612           returns two FontFamily with the same name
18613
18614 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
18615
18616         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
18617           drawing disabled text. Instead using the ColorGrayText color
18618
18619 2006-01-04  Jackson Harper  <jackson@ximian.com>
18620
18621         * TreeNode.cs: redraw the node when its image index is changed.
18622
18623 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
18624
18625         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
18626           time I checked there are no others like it.
18627
18628 2006-01-04  Jackson Harper  <jackson@ximian.com>
18629
18630         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
18631         this gives the behavoir I was looking for.
18632         * Control.cs: Special case Invoking EventHandlers, this matches MS
18633         and fixes part of bug #76326.
18634
18635 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18636
18637         * ThemeClearlooks.cs, FileDialog.cs:
18638           - Reflect the latest Theme class changes
18639           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
18640             with DateTime
18641             
18642 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18643
18644         * Theme.cs: Cache UI resource images and resize them if needed
18645
18646 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
18647
18648         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
18649           is called. This fixes the crash in Nexxia when setting the font
18650           attributes in the chat. [However, RTF needs a look-over to make sure
18651           that all SelectionXXX methods handle the special case that selection
18652           is empty and therefore the change must be applied to all text starting
18653           at the cursor/selection start]
18654
18655 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
18656
18657         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
18658           XplatUIOSX.cs: Added SendMessage and PostMessage methods
18659         * X11Keyboard.cs: Switched to new way of calling PostMessage
18660
18661 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
18662
18663         * Theme.cs: Added theme interface for images to allow the theme to
18664           control what images are used for things like FileDialog, MessageBox
18665           icons, etc.
18666         * MessageBox.cs: Now uses the new Theme icon/image interfaces
18667
18668 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
18669
18670         * FileDialog.cs:
18671           - Removed some dead code
18672           - Opening a recently used file does work now
18673           - Small UI enhancements
18674           - Refactoring
18675
18676 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
18677
18678         * FileDialog.cs: Forgot too add __MonoCS__
18679
18680 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
18681
18682         * FileDialog.cs: We are able to read recently used files now let's
18683           go on and write them.
18684
18685 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
18686
18687         * FileDialog.cs: Breathe some life into "last open"/"recently used"
18688           button
18689         * MimeIcon.cs: Do a check for the top level media type also
18690
18691 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
18692
18693         * ThemeClearlooks.cs:
18694           - Added CPDrawStringDisabled
18695           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
18696             some chars if the text doesn't fit into text_rect
18697           - DrawListViewItem: If View = View.LargeIcon center the image;
18698             rewrote the drawing of ListViewItem.Text if View = 
18699             View.LargeIcon
18700
18701 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
18702
18703         * MimeIcon.cs: Use default KDE icon theme if there is no
18704           "48x48" directory for the current icon theme, fixes #77114
18705         * Mime.cs: Disable not working and actually not used code. 
18706         * ThemeWin32Classic.cs:
18707           - Replace "new SolidBrush" in GetControlBackBrush and
18708             GetControlForeBrush with ResPool.GetSolidBrush
18709           - Changed DrawListViewItem from private to protected virtual
18710         * FileDialog.cs:
18711           - Added form.MaximizeBox = true
18712           - Don't throw an exception if there is a broken symbolic link
18713
18714 2005-12-23  Jackson Harper  <jackson@ximian.com>
18715
18716         * TabControl.cs: Give the panels focus, keyboard navigation is
18717         fixed so this works correctly now.
18718         - We need these key events also.
18719         * ToolBar.cs: Remove some of the poor mans double buffering.
18720         
18721 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
18722
18723         * ComboBox.cs: The internal TextBox now returns the focus.
18724
18725 2005-12-23  Jackson Harper  <jackson@ximian.com>
18726
18727         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
18728
18729 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
18730
18731         * Control.cs: Removed debug code
18732         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
18733           implicit children
18734
18735 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
18736
18737         * Control.cs: When creating the control, update the Z-order after
18738           all it's children are created, too. (Fixes nexxia not showing
18739           picturebox bug)
18740
18741 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
18742
18743         * Control.cs: Do not update the anchoring distances if layout is
18744           suspended, instead do it once layout is resumed
18745
18746 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
18747
18748         * Control.cs: 
18749           - After many hours of debugging, for both Jackson and
18750             myself, it turns out that it helps to set the parent of a control
18751             if you want to actually see it onscreen. In the spirit of that
18752             discovery, we're now setting the parent of the control and
18753             it's children when the control's handle is created. This fix
18754             will make Lutz Roeder's Reflector run happily. 
18755           - now just creating the handle instead of the whole control when
18756             getting a graphics context for the control.
18757
18758 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
18759
18760         * ScrollableControl.cs: When calculating the canvas, don't consider
18761           the scrollbar widths. Instead, predict if horizontal scrollbar
18762           will affect canvas when deciding on vertical display and vice versa.
18763
18764 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
18765
18766         * RichTextBox.cs: Set default RTF font for documents that don't
18767           have a font table (Fixes #77076)
18768
18769 2005-12-22  Jackson Harper  <jackson@ximian.com>
18770
18771         * TextBoxBase.cs: It's difficult to do, but you can have an empty
18772         clipboard. This prevents a NullRef in that case.
18773         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
18774         clipboard. PRIMARY is for the currently selected text only. (We
18775         should implement PRIMARY at some point.
18776
18777 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
18778
18779         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
18780           a Unicode function with a structure that was defined in Ansi way.
18781           This fixes #76942.
18782
18783 2005-12-21  Jackson Harper  <jackson@ximian.com>
18784
18785         * StatusBar.cs: Statusbar handles its fore/back colours on it's
18786         on. Because thats how it rolls. (and this avoids it using ambient
18787         colours).
18788         * ThemeWin32Classic.cs: Use the proper back color for filling.
18789         * Menu.cs: Use the system menu bar color for drawing menu
18790         bars. Using the window back color will bring ambient colours into
18791         the picture.
18792
18793 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
18794
18795         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
18796           Bitmaps were created and not disposed.
18797
18798 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
18799
18800         * Control.cs (CreateControl): Don't do anything if the control is
18801           already created, otherwise we'd fire the OnCreated event more than
18802           once
18803
18804 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
18805
18806         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
18807           will always match. Instead return -1. Fixes #76464.
18808
18809 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
18810
18811         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
18812           neither the beginning nor the end of the line (Fixes bug #76479)
18813
18814 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
18815
18816         * Control.cs:
18817           - ControlNativeWindow.ControlFromHandle(): Now handling situation
18818             where handle is invalid
18819           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
18820             instead of slower linear search
18821         * NativeWindow.cs: Don't remove the window from the hashtable until
18822           after the driver has destroyed it (since the driver might use
18823           Control.FromHandle to lookup the control object
18824         * Hwnd.cs: Added DestroyPending property to track if a window is 
18825           already destroyed as far as the driver is concerned and only hasn't
18826           yet notified the control
18827         * XplatUIX11.cs:
18828           - Activate(): Check if the window is still valid before using the 
18829             handle
18830           - Implemented DestroyChildWindow() method to mark child windows as
18831             destroyed when a window is destroyed. This prevents situations 
18832             where we might call an X method based on queued events for a
18833             window that already has been destroyed but we haven't yet pulled
18834             the destroy method from the queue.
18835           - Added a call to the new DestroyChildWindow() method to the drivers
18836             DestroyWindow code. Also now marking the destroyed window itself
18837             as pending
18838
18839 2005-12-20  Jackson Harper  <jackson@ximian.com>
18840
18841         * StatusBar.cs:
18842         * StatusBarPanel.cs: Don't calculate panel sizes on draw
18843         anymore. Just do them when needed, also track the rects of panels
18844         so that we can optimize refreshing more in the future.
18845
18846 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
18847
18848         * ColorDialog.cs: Fixed focus drawing in small color controls
18849
18850 2005-12-19  Jackson Harper  <jackson@ximian.com>
18851
18852         * InternalWindowManager.cs:
18853         * MdiWindowManager.cs: Cleanup some coordinate system changes so
18854         moving windows works properly.
18855
18856 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
18857
18858         * Control.cs: 
18859           - Removed call to InitLayout() from SetBoundsCore(); doc says
18860             it's only called when a control is added to a container
18861           - Split InitLayout logic, moved to separate UpdateDistances() method
18862             since we need to perform those calculations more often than just
18863             when adding the control to a container. (Needed to fix #77022)
18864           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
18865           - Reduced the OnBindingContextChanged events count, don't send them
18866             unless the control is created, we still aren't totally matching
18867             MS, but I can't quite figure out some of their rules
18868
18869 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
18870
18871         * ThemeClearlooks.cs: Corrected distance between ProgressBar
18872           stripes
18873
18874 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
18875
18876         * ThemeClearlooks.cs:
18877           - Updated ProgressBar drawing
18878           - Corrected drawing of ScrollBars and scroll buttons
18879           - Some temporary fixes for minor pixel artefacts
18880
18881 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
18882
18883         * Control.cs:
18884           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
18885             cause events to be sent in the same order as MS does.
18886           - Added ChangeParent() method to trigger various OnXXXChanged events
18887             that need to be fired when a parent changes (This is a reworking
18888             of the patch from r54254, with the X11 errors fixed)
18889           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
18890             since on MS we get OnLayoutChanged events when calling Clear()
18891           - Changed Enabled property to consider parent state as well, if a
18892             parent is not enabled, the control will not be either
18893           - Changed Parent property to simply call Controls.Add() since that
18894             now does all the work required, this way we avoid code duplication
18895           - Threw in a few OnBindingsContextChanged calls to try and match
18896             when MS sends them. We seem to send a few too many, though.
18897           - Added call to CreateControl when adding the control to a parent.
18898             We were never calling CreateControl. Still needs some work, in
18899             some places we treat HandleCreated and ControlCreated as equal, 
18900             which is wrong
18901           - Removed obsolete commented out code from UpdateZOrder()
18902
18903 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
18904
18905         * ThemeClearlooks.cs: Updated TrackBar drawing.
18906
18907 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
18908
18909         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
18910
18911 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
18912
18913         * FileDialog.cs: Add the Help button and the open readonly
18914           checkbox only if needed
18915
18916 2005-12-16  Jackson Harper  <jackson@ximian.com>
18917
18918         * Control.cs: Make sure we have an active menu before trying to
18919         process commands on it. Prevents menu-less forms from crashing
18920         when Alt is pressed.
18921         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
18922         Dieter Bremes.
18923         * RichTextBox.cs: Expand statement to help out gmcs and fix the
18924         2.0 build.
18925
18926 2005-12-16  Jackson Harper  <jackson@ximian.com>
18927
18928         * InternalWindowManager.cs: Don't translate tool windows screen
18929         coordinates. This fixes windows 'bouncing' around when being moved.
18930
18931 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
18932
18933         * TextBoxBase.cs:
18934           - MaxLength now treats 2^31-1 equal to unlimited length (this is
18935             not quite MS compatible, MS uses that number only for single line
18936             and 2^32-1 for multi-line, but I figure it won't hurt keeping
18937             the limit at 2GB)
18938           - Now enforcing the MaxLength limit when entering characters
18939           - Added argument to internal Paste() method to track if it's called
18940             from programatically or via keyboard, since keyboard driven pastes
18941             need to enforce max-length
18942           - Added logic to Paste to only paste as many chars as MaxLength 
18943             allows
18944         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
18945         * TextControl.cs:
18946           - Added Length property to return number of characters in document
18947           - Added private CharCount property which only tracks actual chars
18948             in the document (no linefeeds) and fires event when CharCount
18949             changes
18950           - Added tracking of character count to all methods that alter it
18951           - Added LengthChanged event to allow applications to subscribe
18952             to any changes to the document
18953
18954 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
18955
18956         * TextBox.cs: 
18957           - Removed local password_char field (moved to TextBoxBase)
18958           - Now setting the document's password var when password is
18959             set
18960         * TextBoxBase.cs:
18961           - Added password_char field (needed here so MultiLine can
18962             access it)
18963           - Added logic to MultiLine property setter to set the document's
18964             variable when password display is allowed
18965           - Removed debug code and made some debug code conditional
18966         * TextControl.cs:
18967           - Added RecalculatePasswordLine() method to handle special password
18968             char only lines
18969           - Added PasswordChar property, also added related tracking vars
18970           - Draw() method now uses local text var for grabbing text to draw,
18971             this var is set to line.text unless we're doing password display,
18972             then it is set to the pre-generated all-password-chars line
18973           - Added calling RecalculatePasswordLine() method for password lines
18974
18975 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
18976
18977         * Hwnd.cs: 
18978           - Added Reparented property to allow tracking of Window Manager
18979             reparenting actions (which affect X/Y calculations of toplevel 
18980             windows)
18981           - Made ToString() print window handles in hex
18982         * XplatUIX11.cs:
18983           - AddConfigureNotify(): Now uses reparented state off Hwnd to
18984             determine if X/Y needs offsetting
18985           - AddConfigureNotify(): Fixed offset calculations
18986           - Now adds ReparentNotify messages into the queue
18987           - Now processes ReparentNotify messages and causes a 
18988             WM_WINDOWPOSCHANGED message to be sent upstream if a window
18989             is reparented (as most likely it's X/Y coordinates are changed
18990             due to that)
18991
18992 2005-12-14  Jackson Harper  <jackson@ximian.com>
18993
18994         * XplatUIX11.cs: Tool windows still need to respek focus.
18995
18996 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
18997
18998         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
18999           have a working release
19000
19001 2005-12-13  Jackson Harper  <jackson@ximian.com>
19002
19003         * Form.cs: Update styles after setting the border style regardless
19004         of whether or not the window is using a window manager.
19005
19006 2005-12-13  Jackson Harper  <jackson@ximian.com>
19007
19008         * Form.cs: We now hook into an internal window manager instead of just an
19009         MDI subsystem, this is so we can have properly behaving tool windows.
19010         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
19011         * InternalWindowManager.cs: New internal class that acts as a
19012         window manager for tool windows and as a base for mdi windows.
19013         * MdiWindowManager.cs: New class that acts as a window manager for
19014         mdi windows.
19015
19016 2005-12-12  Jackson Harper  <jackson@ximian.com>
19017
19018         * Control.cs: Updates so we match behavoir for for implicit
19019         controls. Fixes explosions in MDI.
19020
19021 2005-12-12  Jackson Harper  <jackson@ximian.com>
19022
19023         * Control.cs: Implement Invalidate (Region).
19024
19025 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
19026
19027         * Control.cs: 
19028           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
19029             the same events as MS does. MS fires events for each property 
19030             except, for unknown reasons, Cursor, when the control is reparented. 
19031             I can't seem to totally match add/remove since MS also fires some 
19032             VisibleChanged events, which makes no sense. Consolidated the
19033             parenting code into a separate method so it can be called from
19034             both Add and Remove. set_Parent no longer needs any special logic
19035             as it calls the parent's add method which implicitly fires
19036             all events
19037           - Removed some obsolete code and debug output
19038           - Enabled state is inherited from parents, if this is enabled
19039
19040 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
19041
19042         * Form.cs: Removed commented out code
19043
19044 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
19045
19046         * Control.cs:
19047           - Added internal version of Invoke, with additional argument 
19048             indicating if we're calling it from a Dispose() handler. That
19049             way we can avoid BeginInvoke throwing an exception if we're
19050             calling for an already destroyed window.
19051           - Added a dispose argument to BeginInvokeInternal, and made the
19052             check if a valid window handle chain exists conditional on
19053             it not being a dispose call
19054           - Removed code in DestroyHandle to destroy our children. Since we
19055             now handle the WM_DESTROY message we will catch all our children
19056             being destroyed.
19057           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
19058         * Form.cs:
19059           - Added a field to track the application context of the form.
19060           - No need to set closing variable as response to WM_CLOSE, instead
19061             we destroy the window. We also call PostQuitMessage if the form
19062             has an application context (which makes it the main app form,
19063             which, when closed terminates the app)
19064         * XplatUI.cs:
19065           - Dropped Exit() method, it's naming was confusing
19066           - Added PostQuitMessage() which causes GetMessage to return false
19067             once the message queue is empty
19068         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
19069           PostQuitMessage()
19070         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
19071           no longer a valid XplatUI method, but left it in since it's used
19072           internally. Added empty PostQuitMessage() method.
19073         * MenuAPI.cs: Replaced call to Exit() with call to
19074           PostQuitMessage, even though this is probably no longer needed.
19075         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
19076         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
19077         * Application.cs:
19078           - Replaced call to XplatUI.Exit() with PostQuitMessage()
19079           - Removed old debug code that would call XplatUI for exception
19080             display, enabled standard exception handling (Still not enabled
19081             though, until NativeWindow's ExternalExceptionHandler define
19082             is removed
19083         * NativeWindow.cs:
19084           - Added internal method to allow control to update NativeWindow
19085             after a window has been destroyed
19086           - Added handling of already destroyed windows when calling i
19087             DestroyWindow
19088           - Added removal of handle from list on ReleaseHandle
19089         * XplatUIX11.cs:
19090           - Dropped GetMessageResult var and related code
19091           - Added PostQuitState to field to track if PostQuitMessage has been
19092             called
19093           - Dropped Exit() method
19094           - Added PostQuitMessage() method
19095           - GetMessage now will return false if PostQuitState is set and no
19096             more messages are in the queue.
19097           - Expose handler will no longer generate WM_PAINT messages if we are
19098             in PostQuitState since it's very likely any windows have already
19099             been destroyed, and since Hwnd won't get updated until we have
19100             processed the DestroyNotify we'd be causing X errors.
19101         
19102 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
19103
19104         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
19105           Thanks to Mike for pointing out the err of my ways.
19106
19107 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
19108
19109         * Control.cs(PreProcessMessage): Moved menu handling back, but
19110           after all other key handling, to match MS (who handles Menu in
19111           DefWndProc)
19112         * Menu.cs (WndProc): Removed my brainfart
19113
19114 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
19115
19116         * Control.cs(PreProcessMessage): Removed special menu handling 
19117         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
19118
19119 2005-12-07  Mike Kestner  <mkestner@novell.com>
19120
19121         * Control.cs : special case SYSKEYUP so that we can adjust keynav
19122         state according in tracker.
19123         * Menu.cs : promote tracker field to base class and provide a tracker
19124         lookup capability.  Add/Remove shortcuts dynamically if the top menu
19125         has a tracker. Unparent items that are removed from the collection.
19126         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
19127         * Theme*.cs: add always_show_hotkeys field to support configurability
19128         of mnemonic display.  win32 doesn't show mnemonics until Alt is
19129         pressed.
19130
19131 2005-12-07  Jackson Harper  <jackson@ximian.com>
19132
19133         * MdiChildContext.cs: Use Control.ResetCursor.
19134         * Control.cs: ResetCursor needs to set the property so that the
19135         correct XplatUI call gets made.
19136
19137 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
19138
19139         * Control.cs: More fixes to make our key events match MS. We
19140           were not setting the modifier state on KeyData, and we were
19141           not generating any events when Alt was pressed with a key
19142           since handling of WM_SYSxxx was missing for the OnKey methods.
19143
19144 2005-12-07  Jackson Harper  <jackson@ximian.com>
19145
19146         * MdiChildContext.cs: reenable the sizing code.
19147         - When the mouse leaves a window reset its cursor.
19148
19149 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
19150
19151         * ThemeClearlooks.cs: Reflect latest Hwnd changes
19152
19153 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
19154
19155         * Hwnd.cs: Now using the theme 3d bordersize to calculate
19156           widths of Fixed3D borders
19157
19158 2005-12-07  Jackson Harper  <jackson@ximian.com>
19159
19160         * MdiClient.cs: Fix warnings. Earn Mike's love.
19161
19162 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
19163
19164         * ThemeClearlooks.cs:
19165           - Adjusted mouse over button color
19166           - Added first parts of CheckBox drawing
19167           - Added correct color for selected text background
19168           - Fixed ComboBox drawing
19169           - Added CPDrawBorder3D and CPDrawBorder
19170
19171 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
19172
19173         * XplatUIX11.cs: Added call to XBell for AudibleAlert
19174
19175 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
19176
19177         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
19178           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
19179           alert users via sound. We could add an enum arg with different
19180           types of alerts in the future
19181
19182 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
19183
19184         * Control.cs: Fix behaviour problems pointed out by Mike
19185
19186 2005-12-05  Mike Kestner  <mkestner@novell.com>
19187
19188         * StatusBarPanel.cs: add Invalidate method and hook it into all the
19189         prop setters.  Calls parent.Refresh for now, but could be maybe be
19190         optimized with an internal method on StatusBar at some point.
19191         [Fixes #76513]
19192
19193 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
19194
19195         * RichTextBox.cs: Implemented get_SelectionColor
19196
19197 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
19198
19199         * ThemeClearlooks.cs:
19200           - Removed dead code
19201           - Draw black button border only if button is Form.AcceptButton
19202           - Draw correct button color for pressed RadioButton if the mouse 
19203             has entered the button
19204           - Updated ProgressBar drawing!
19205           - Updated CPDrawSizeGrip drawing
19206           - Updated StatusBarPanel drawing
19207
19208 2005-12-05  Mike Kestner  <mkestner@novell.com>
19209
19210         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
19211         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
19212
19213 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
19214
19215         * ThemeClearlooks.cs: Initial check-in, activate with
19216           export MONO_THEME=clearlooks
19217         * ThemeEngine.cs: Added ThemeClearlooks
19218
19219 2005-12-03  Mike Kestner  <mkestner@novell.com>
19220
19221         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
19222         [Fixes #76897]
19223
19224 2005-12-02  Jackson Harper  <jackson@ximian.com>
19225
19226         * Form.cs: If the child form has no menu the default main menu is
19227         used as the active menu.
19228
19229 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
19230
19231         * ListBox.cs: Check if any items exist before trying to resolve 
19232           coordinates into items
19233
19234 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
19235
19236         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
19237           as the second color for the background hatch
19238
19239 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
19240
19241         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
19242         * RichTextBox.cs: FormatText position arguments are 1-based, now making
19243           sure that what we pass to FormatText is always 1-based. Fixes #76885
19244
19245 2005-11-29  Miguel de Icaza  <miguel@novell.com>
19246
19247         * NumericUpDown.cs (EndInit): When we are done initializing,
19248         reflect any updates on the UI.
19249
19250 2005-12-02  Jackson Harper  <jackson@ximian.com>
19251
19252         * ImplicitHScrollBar.cs:
19253         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
19254         their container controls.
19255         * TreeView.cs: Use the new implicit scrollbars.
19256
19257 2005-12-02  Jackson Harper  <jackson@ximian.com>
19258
19259         * TreeView.cs: Make top_node internal so the TreeNodeCollections
19260         can play with it.
19261         * TreeNodeCollection.cs: If we remove the topnode we need to
19262         update topnode to the next node in line.
19263         - When clearing nodes go through the same process as removing
19264         them, so they get depareneted and checked if they are top node.
19265
19266 2005-12-01  Jackson Harper  <jackson@ximian.com>
19267
19268         * TreeView.cs: When imagelists are used the image area is
19269         selectable as well as the text.
19270         - If there are no selected nodes select the first one.
19271         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
19272         so don't do it more then we need to.
19273
19274 2005-12-01  Jackson Harper  <jackson@ximian.com>
19275
19276         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
19277         that arrows can be scaled.
19278
19279 2005-12-01  Jackson Harper  <jackson@ximian.com>
19280
19281         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
19282         fail. Patch by Dieter Bremes
19283
19284 2005-11-30  Jackson Harper  <jackson@ximian.com>
19285
19286         * Form.cs: Property is 2.0 only
19287         * PrintDialog.cs: Signature fix.
19288
19289 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
19290
19291         * TextControl.cs: 
19292           - No longer artificially moves text 2 pixels down (now that we have
19293             borders this is no longer needed)
19294           - Added calcs for left, hanging and right indent
19295
19296 2005-11-23  Mike Kestner  <mkestner@novell.com>
19297
19298         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
19299
19300 2005-11-30  Jackson Harper  <jackson@ximian.com>
19301
19302         * MdiChildContext.cs: Set the cloned menus forms, as these don't
19303         get cloned as part of CloneMenu ().
19304         * Menu.cs: Make sure the parent of the items get set correctly
19305         when they are added.  And the owners are notified of the changes.
19306         * Form.cs: Create an ActiveMenu property, so that when MDI is used
19307         we can change the menu being displayed/handled by the form without
19308         changing the menu assosciated with the form.
19309         - Don't let Mdi children draw/handle menus.
19310         
19311 2005-11-30  Jackson Harper  <jackson@ximian.com>
19312
19313         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
19314         a MenuChanged event. Just to make the API a little more
19315         consistent.
19316         * MainMenu.cs:
19317         * MenuItem.cs: Use the new OnMenuChanged
19318         * MdiChildContext.cs: Handle menu merging.
19319         * Form.cs: Implement MergedMenu.
19320         
19321 2005-11-30  Jackson Harper  <jackson@ximian.com>
19322
19323         * Menu.cs: We were misusing Add. Add goes behind the specified
19324         index according to the docs, and does not replace the specified
19325         index. So I added an Insert method.
19326
19327 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
19328
19329         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
19330           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
19331           is for Jackson
19332         * RichTextBox.cs: Added calls to base for DnD events
19333
19334 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
19335
19336         * TextControl.cs:
19337           - Fixed drag-selection related crash; style fixes
19338           - Implemented undo class
19339             o Implemented method to capture document state for specified
19340               range in document tree
19341             o Implemented method to restore captured document state
19342             o Implemented cursor tracking
19343             o Implemented basic undo stack
19344           - Added undo cursor tracking to methods altering cursor location
19345           - Added undo tracking to selection deletion (still missing
19346             other text-altering hookups)
19347         * RichTextBox.cs:
19348           - Added SelectionLength property
19349           - Implemented CanPaste()
19350           - Implemented Paste()
19351           - Added missing protected methods
19352           - Fixed RTF->Document conversion; now uses font index 0 and color 
19353             index 0 as the default font for the parsed text
19354           - Fixed RTF<->Document font size translation
19355           - Fixed RTF generation, now properly handles cross-tag boundaries
19356             for single line selection
19357           - No longer always appends blank line to generated RTF
19358           - Removed TODOs
19359           - Added missing attributes
19360           - Hooked up undo-related methods
19361         * TextBoxBase.cs:
19362           - Implemented Copy()
19363           - Implemented Paste()
19364           - Implemented Cut()
19365           - Fixed caret mis-behaviour on backspace across line-boundaries
19366
19367 2005-11-29  Jackson Harper  <jackson@ximian.com>
19368
19369         * MdiClient.cs: Add a method for activating mdi children. Very
19370         basic right now. I imagine someday it might need more girth.
19371         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
19372         children windows names are added to the menu item.
19373         * ThemeWin32Classic.cs: Draw the arrow if the item is an
19374         mdilist. This happens regardless of whether or not there are any
19375         mdi windows to see in the list, and according to my tests happens
19376         before the items are even added. Also happens if there isn't even
19377         an mdi client to get windows from.
19378
19379 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
19380
19381         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
19382         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
19383
19384 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
19385
19386         * DataGridTableStyle.cs:
19387           - Create always the styles for the missing columns even if they are
19388             provided by the user (not default table style)
19389         * DataGrid.cs:
19390           - Fixes bug 76770
19391           - Fixes SetDataBinding (always re-attach source)
19392           - Fixes SetNewDataSource (only clear styles if they are not for 
19393             this source)
19394          -  Expands OnTableStylesCollectionChanged to handle style refresh 
19395             and remove properly
19396
19397 2005-11-29  Jackson Harper  <jackson@ximian.com>
19398
19399         * FileDialog.cs: Implement missing bits, remove some dead
19400         code.
19401         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
19402         creation of the panel so that the options set on the dialog are
19403         seen when the panel is created.
19404         * TreeView.cs: raise a click when items are clicked.
19405         
19406 2005-11-29  Jackson Harper  <jackson@ximian.com>
19407
19408         * MdiClient.cs: Pass some signature methods through to base.
19409
19410 2005-11-28  Jackson Harper  <jackson@ximian.com>
19411
19412         * ListView.cs: Raise the click event when items are clicked.
19413
19414 2005-11-28  Jackson Harper  <jackson@ximian.com>
19415
19416         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
19417         a nullref.
19418
19419 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
19420
19421         * ThemeNice.cs: - Removed 1 pixel bitmaps
19422           - Use SmoothingMode.AntiAlias where it makes sense
19423             (ScrollButton arrow for example)
19424           - Enhanced Button focus drawing
19425           - Fixed ComboBox drawing (no artefacts anymore, focus
19426             rectangle is back again, reduced size of ComboButton, etc.)
19427           - Fixed RadioButton focus drawing for Appearence.Button
19428           - Slight ScrollButton redesign
19429           - Some LinearGradientBrush size fixes
19430           - GroupBoxes have now rounded edges
19431           - Fixed StatusBar drawing
19432
19433 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
19434
19435         * ThemeNice.cs: - Remove dead code
19436           - use correct background colors for menus, etc.
19437           - Fake pixel drawing with 1 pixel bitmaps
19438
19439 2005-11-24  Jackson Harper  <jackson@ximian.com>
19440
19441         * MdiClient.cs: Size the scrollbars when resizing the window.
19442         - Resize the maximized windows when the client is resized
19443         * Form.cs: Make the child context available
19444         
19445 2005-11-23  Jackson Harper  <jackson@ximian.com>
19446
19447         * MdiChildContext.cs: Don't size windows if they are maximized.
19448
19449 2005-11-23  Mike Kestner  <mkestner@novell.com>
19450
19451         * ContextMenu.cs: use MenuTracker.
19452         * Control.cs: remove menu handle usage.
19453         * Form.cs: remove menu handle usage.
19454         * Hwnd.cs: remove menu handle usage.
19455         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
19456         motion and clicks to the new Tracker handlers.
19457         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
19458         and handle usage.
19459         * MenuAPI.cs: refactored to combine popup and menubar event handling.
19460         Killed the MENU and MENUITEM data types and associated collections
19461         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
19462         MenuTracker class that exposes the leftovers from the old MenuAPI
19463         static methods. Restructured Capture handling so that only one grab is
19464         done for the entire menu hierarchy instead of handing off grabs to
19465         submenus. Tracker now has an invisible control to Capture when active.
19466         * MenuItem.cs: add sizing accessors, kill Create
19467         and handle usage.
19468         * Theme.cs: remove menu handle and MENU(ITEM) usage.
19469         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
19470         MENU(ITEM). remove menu handle usage, use Menu directly.
19471         * XplatUIDriver.cs: remove menu handle usage.
19472         * XplatUIOSX.cs: remove menu handle usage.
19473         * XplatUIWin32.cs: remove menu handle usage.
19474         * XplatUIX11.cs: remove menu handle usage.
19475
19476 2005-11-22  Jackson Harper  <jackson@ximian.com>
19477
19478         * Hwnd.cs: Don't compute the menu size for
19479         DefaultClientRectangle.
19480         - Reenable menu sizes being computed for GetClienRectangle.
19481         * Form.cs: Remove comment of trechery
19482         
19483 2005-11-22  Jackson Harper  <jackson@ximian.com>
19484
19485         * Hwnd.cs: The adjustments for the menu bar are made when it is
19486         attached to the form.
19487
19488 2005-11-19  Jackson Harper  <jackson@ximian.com>
19489
19490         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
19491         (just like on windows).
19492
19493 2005-11-19  Jackson Harper  <jackson@ximian.com>
19494
19495         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
19496         use real buttons anymore because they are in non client area. The
19497         one TODO here is that I need to somehow invalidate a section of
19498         the non client area.
19499
19500 2005-11-18  Jackson Harper  <jackson@ximian.com>
19501
19502         * Control.cs: Put the enum check back in now that MDI doesnt have
19503         to use this to set border styles.
19504         * Form.cs: Only set mdi child windows borders if the handle has
19505         been created.
19506         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
19507         this directly on to the driver.
19508         - Get the move start position before adjusting for the titlebar
19509         height, this fixes the windows "skipping" when they are first
19510         moved.
19511
19512 2005-11-18  Jackson Harper  <jackson@ximian.com>
19513
19514         * XplatUIX11.cs: Just compute the mdi borders separately as they
19515         don't totally match up with normal form borders.
19516
19517 2005-11-18  Jackson Harper  <jackson@ximian.com>
19518
19519         * Control.cs: Set WS_ styles for borders, so that the driver does
19520         not have to retrieve the control instance to figure out what kind
19521         of borders it should have.
19522         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
19523         driver can know its an mdi child easily.
19524         * XplatUIX11.cs: Get the border styles and whether the window is
19525         MDI from the Styles and ExStyles params instead of having to get a
19526         control. This prevents a chicken and egg problem.       
19527
19528 2005-11-18  Jackson Harper  <jackson@ximian.com>
19529
19530         * MdiClient.cs: Fix typo so scrollbars show up correctly.
19531
19532 2005-11-18  Jackson Harper  <jackson@ximian.com>
19533
19534         * MdiClient.cs: Calculate when to add and remove scrollbars
19535         correctly.
19536         * MdiChildContext.cs: Adjust the y position to take the titlebar
19537         into account.
19538         - No height for FormBorderStyle.None
19539
19540 2005-11-18  Jackson Harper  <jackson@ximian.com>
19541
19542         * Control.cs: Allow non enum values to be used for
19543         InternalBorderStyle.  MDI does this to set a special border style.
19544         - New utility methods for converting points to/from client coords
19545         - Add the newly created control to the Controls collection before
19546         updating its style. This way UpdateStyle can walk the control
19547         heirarchy to find the control if needed.
19548         so I don't need to create a new Point object all the time.
19549         * Form.cs: Let MDI windows handle their border styles.
19550         - Set styles on MDI windows so the correct title style is derived.
19551         * MdiChildContext.cs: Move all the painting and window handling
19552         into the non client area.
19553         - Use correct sizing and put correct buttons on frames based on
19554         the FormBorderStyle.
19555         - Notify the mdi client about scrolling
19556         - Need to handle the buttons ourselves now, because they are all
19557         in non client areas and we can't add controls there.
19558         * MdiClient.cs: Halfway to scrolling, this implementation is
19559         somewhat broken though, we need to check to make sure other
19560         windows aren't causing scrolling before removing the bars. Also
19561         the bars need to be drawn on top, maybe I can switch implicit
19562         controls to be on top.
19563         * Hwnd.cs: caption_height and tool_caption_height are now
19564         properties of an hwnd, this way they can be set by the driver
19565         based on the type of window they are.  In X11 the window manager
19566         handles the decorations so caption_height is zero unless its an
19567         MDI window.
19568         - Add 3 pixel borders for MDI windows (0xFFFF).
19569         - Get rid of some code duplication, have DefaultClientRectanle
19570         just call GetClientRectangle.
19571         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
19572         Hwnd now.
19573         - Set border styles differently for mdi windows.
19574         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
19575         Hwnd now.
19576         
19577 2005-11-15  Mike Kestner  <mkestner@novell.com>
19578
19579         * Menu.cs: when adding an item to the collection, if item is already 
19580         parented, remove it from the parent.
19581
19582 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
19583
19584         * X11DesktopColors.cs: Added KDE support
19585
19586 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
19587
19588         * XplatUIWin32.cs: 
19589           - Clipboard methods now can translate Rtf format
19590           - No longer removes clipboard contents whenever a new format is added
19591             to allow placing multiple formats on the clipboard
19592         * Clipboard.cs: Clipboard now supports getting a IDataObject and
19593           will place all formats contained in it onto the clipboard. Also
19594           now cleans the clipboard before placing a new object onto it
19595         * RichTextBox.cs:
19596           - Implemented set_Rtf
19597           - Implemented set_SelectedRtf
19598           - Created InsertRTFFromStream() method to allow single code base
19599             for all properties and methods that insert RTF into document
19600           - Removed debug output
19601         * TextControl.cs:
19602           - Fixed Delete(int) to fix up line numbers
19603           - Fixed ReplaceSelection to combine start and end line
19604           - Fixed serious DeleteChars bug that would leave the document tree
19605             broken
19606           - Improved DumpTree with several logic checks to detect broken
19607             document trees
19608           - Removed debug lines
19609           - Fixed Caret.WordForward/WordBack moving code, now always also 
19610             updates caret.tag (fixes crash when word-selecting across tag
19611             boundaries via keyboard)
19612           - Added Insert() method for inserting multiline text into documents
19613           - Fixed DeleteChars() calculation errors that would cause a broken
19614             tag chain with multiple tag lines
19615           - DeleteChars() no longer crashes on multi-tag lines if not all tags
19616           - Split() no longer moves caret if split is at caret location
19617           - ReplaceSelection() now updates the cursor and re-displays it
19618           - ReplaceSelection() now uses new Insert() method to avoid code
19619             duplication
19620           - FormatText() can now handle formatting partial lines
19621         * TextBoxBase.cs:
19622           - Append now uses new TextControl.Insert() method (this avoids 
19623             duplicate code)
19624           - Implemented Ctrl-X (Cut) (
19625           - Implemented Ctrl-C (Copy)
19626           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
19627             regeneration when pasting text; roundtripping Copy&Paste within
19628             edit control still fails due to some calculation bugs in GenerateRTF)
19629           - The Delete key will now remove the current selection if it is visible
19630         * TextBox.cs: Removed debug lines
19631         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
19632           driver to be initialized and can't therefore be done via a static ctor)
19633
19634 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
19635
19636         * TextControl.cs: Added backend code for finding char arrays and strings
19637         * TextBoxBase.cs:
19638           - Added mouse wheel scroll support
19639           - Added support for VScroll and HScroll events
19640         * RichTextBox.cs:
19641           - Implemented all seven Find() variants
19642           - Implemented GetCharFromPosition()
19643           - Implemented GetCharIndexFromPosition()
19644           - Implemented GetLineFromIndex()
19645           - Implemented GetPositionFromCharIndex();
19646           - Implemented SaveFile for PlainText and UnicodeText
19647           - Fixed set_Font, now setting a new font applies that font to
19648             the whole document
19649           - Implemented generic Document to RTF converter
19650           - Implemented SaveFile for RichText format (still missing unicode
19651             conversion for non-ansi chars)
19652           - Implemented get_Rtf
19653           - Implemented get_SelectedRtf
19654
19655 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
19656
19657         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
19658           to allow any captures to be released before triggering OnClick. This
19659           way a click handler may capture the mouse without interference.
19660         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
19661           This way we send them even though X may not allow a grab (if the window
19662           isn't visible, for example)
19663
19664 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
19665
19666         * DataGridViewRowEventArgs.cs: DataGridView implementation
19667         * DataGridViewElement.cs: DataGridView implementation
19668         * DataGridViewComboBoxCell.cs: DataGridView implementation
19669         * DataGridViewDataErrorContexts.cs: DataGridView implementation
19670         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
19671         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
19672         * ImageLayout.cs: DataGridView implementation
19673         * DataGridViewComboBoxColumn.cs: DataGridView implementation
19674         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
19675         * DataGridViewSelectionMode.cs: DataGridView implementation
19676         * IDataGridViewEditingControl.cs: DataGridView implementation
19677         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
19678         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
19679         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
19680         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
19681         * DataGridViewColumnSortMode.cs: DataGridView implementation
19682         * DataGridView.cs: DataGridView implementation
19683         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
19684         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
19685         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
19686         * Padding.cs: DataGridView implementation
19687         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
19688         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
19689         * DataGridViewRowEventHandler.cs: DataGridView implementation
19690         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
19691         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
19692         * DataGridViewButtonCell.cs: DataGridView implementation
19693         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
19694         * DataGridViewEditMode.cs: DataGridView implementation
19695         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
19696         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
19697         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
19698         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
19699         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
19700         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
19701         * DataGridViewCellEventHandler.cs: DataGridView implementation
19702         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
19703         * DataGridViewCellStyleConverter.cs: DataGridView implementation
19704         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
19705         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
19706         * DataGridViewColumnEventArgs.cs: DataGridView implementation
19707         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
19708         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
19709         * QuestionEventArgs.cs: DataGridView implementation
19710         * IDataGridViewEditingCell.cs: DataGridView implementation
19711         * DataGridViewTriState.cs: DataGridView implementation
19712         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
19713         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
19714         * DataGridViewColumnCollection.cs: DataGridView implementation
19715         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
19716         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
19717         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
19718         * DataGridViewColumn.cs: DataGridView implementation
19719         * DataGridViewCellBorderStyle.cs: DataGridView implementation
19720         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
19721         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
19722         * DataGridViewRow.cs: DataGridView implementation
19723         * DataGridViewImageCellLayout.cs: DataGridView implementation
19724         * DataGridViewImageCell.cs: DataGridView implementation
19725         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
19726         * DataGridViewCheckBoxCell.cs: DataGridView implementation
19727         * DataGridViewHeaderCell.cs: DataGridView implementation
19728         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
19729         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
19730         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
19731         * DataGridViewTextBoxColumn.cs: DataGridView implementation
19732         * QuestionEventHandler.cs: DataGridView implementation
19733         * DataGridViewCellStyleScopes.cs: DataGridView implementation
19734         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
19735         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
19736         * DataGridViewCell.cs: DataGridView implementation
19737         * DataGridViewCellEventArgs.cs: DataGridView implementation
19738         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
19739         * DataGridViewCellStyle.cs: DataGridView implementation
19740         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
19741         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
19742         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
19743         * TextFormatFlags.cs: DataGridView implementation
19744         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
19745         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
19746         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
19747         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
19748         * DataGridViewButtonColumn.cs: DataGridView implementation
19749         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
19750         * HandledMouseEventArgs.cs: DataGridView implementation
19751         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
19752         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
19753         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
19754         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
19755         * DataGridViewRowCollection.cs: DataGridView implementation
19756         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
19757         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
19758         * DataGridViewHitTestType.cs: DataGridView implementation
19759         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
19760         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
19761         * DataGridViewColumnEventHandler.cs: DataGridView implementation
19762         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
19763         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
19764         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
19765         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
19766         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
19767         * DataGridViewContentAlignment.cs: DataGridView implementation
19768         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
19769         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
19770         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
19771         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
19772         * DataGridViewPaintParts.cs: DataGridView implementation
19773         * DataGridViewCellCollection.cs: DataGridView implementation
19774         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
19775         * DataGridViewImageColumn.cs: DataGridView implementation
19776         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
19777         * DataGridViewElementStates.cs: DataGridView implementation
19778         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
19779         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
19780         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
19781         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
19782         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
19783         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
19784         * DataGridViewRowHeaderCell.cs: DataGridView implementation
19785         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
19786         * DataGridViewTextBoxCell.cs: DataGridView implementation
19787         * DataGridViewBand.cs: DataGridView implementation
19788         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
19789         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
19790         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
19791         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
19792         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
19793         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
19794         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
19795         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
19796         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
19797         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
19798         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
19799
19800 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
19801
19802         * ThemeWin32Classic.cs: 
19803           - Draw the outside focus rectangle around buttons
19804           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
19805             doesn't use end caps for every dash of a line anymore. This
19806             workaround ignores the forecolor.
19807
19808 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
19809
19810         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
19811           endian safe.
19812
19813 2005-11-07  Jackson Harper  <jackson@ximian.com>
19814
19815         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
19816
19817 2005-11-07  Jackson Harper  <jackson@ximian.com>
19818
19819         * ScrollableControl.cs: Calculate the maximum and change vars
19820         (more) correctly so that scrollbars appear as a sensible size.
19821
19822 2005-11-04  Jackson Harper  <jackson@ximian.com>
19823
19824         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
19825         collection.
19826         * TreeView.cs: When the tree is sorted null out the top_node so
19827         that it is recalculated.
19828         - Use dotted lines instead of dashed lines to match MS better.
19829
19830 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
19831
19832         * ListView.cs: 
19833           - Implements key search for items. Useful when browsing files with FileDialog
19834           - When changing view mode or when clear the items reset scrollbar positions
19835
19836 2005-11-04  Jackson Harper  <jackson@ximian.com>
19837
19838         * CurrencyManager.cs: Implement the MetaDataChanged event, the
19839         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
19840         as to what the method may do as there is no real way of creating a
19841         derived CurrencyManager and calling the method. 
19842
19843 2005-11-03  Jackson Harper  <jackson@ximian.com>
19844
19845         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
19846         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
19847         method which seems to just be used internally to refresh the tabs.
19848
19849 2005-11-03  Jackson Harper  <jackson@ximian.com>
19850
19851         * TabControl.cs: Implement the remove method. Fix some broken
19852         comments.
19853
19854 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
19855
19856         * DateTimePicker.cs:
19857           - Added missing DateTimePickerAccessibleObject class
19858           - Added missing events
19859           - Added OnFontChanged method
19860         * Form.cs: Added missing attributes
19861         * TreeView.cs: Added missing attributes
19862
19863 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
19864
19865         * GridItemCollection.cs: Fix signatures
19866
19867 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
19868
19869         * XplatUI.cs: Updated build rev/date
19870         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
19871           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
19872         * Application.cs: Trigger context-specific ExitThread events
19873
19874 2005-11-03  Jackson Harper  <jackson@ximian.com>
19875
19876         * Menu.cs:
19877         * MainMenu.cs:
19878         * GridTableStylesCollection.cs:
19879         * Timer.cs:
19880         * TabPage.cs:
19881         * HelpProvider.cs:
19882         * StatusBar.cs:
19883         * MonthCalendar.cs: Signature fixes
19884
19885 2005-11-03  Jackson Harper  <jackson@ximian.com>
19886
19887         * TreeNodeCollection.cs: Remove should not be virtual.
19888         * TreeView.cs: Implement the last of the missing methods.
19889
19890 2005-11-03  Jackson Harper  <jackson@ximian.com>
19891
19892         * TreeNodeConverter.cs: Implement to get off my class-status back.
19893
19894 2005-11-03  Jackson Harper  <jackson@ximian.com>
19895
19896         * TreeView.cs: Hookup the bits for drag and drop.
19897         * TreeNode.cs: Don't cache the tree_view or index anymore, now
19898         that nodes can be moved from tree to tree easily this just causes
19899         all sorts of problems.
19900         * TreeNodeCollection: Don't need to give treenodes an index and
19901         treeview anymore when they are added, these are computed on the
19902         fly. Also make sure to remove a node before its added.
19903
19904 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
19905
19906         * TextControl.cs:
19907           - Added CaretSelection enum
19908           - Added comparison methods to Marker struct, makes selection code
19909             more readable
19910           - Added SelectionStart and SelectionEnd as 'moveable' location for
19911             the CaretDirection enum and handler
19912           - Added selection_prev variable to track optimized invalidation for
19913             word and line selection
19914           - Added SelectionVisible property (returns true if there is a valid 
19915             selection)
19916           - Switched CaretHasFocus to only display the caret if there is no
19917             visible selection
19918           - Avoiding StringBuilder.ToString to retrieve a single char, instead
19919             using the direct character index; should be much faster
19920           - Added various conditional debug statements
19921           - Fixed invalidation calculation for selection ranges
19922           - Added ExpandSelection() method to support word and line selection
19923           - Switched SetSelectionToCaret to use new Marker compare overloads
19924           - Added central IsWordSeparator() method to determine word 
19925             separators/whitespace and FindWordSeparator() to streamline common
19926             usage of IsWordSeparator()
19927         * TextBoxBase.cs:
19928           - Removed unneeded grabbed variable, it was just mirroring
19929             Control.Capture
19930           - No longer firing OnTextChanged event when Text setter is called,
19931             since the base will fire the event for us
19932           - Added handling of Ctrl-Up/Down selection
19933           - Added handling of Shift-Cursorkey selection
19934           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
19935             words
19936           - Added handling of Shift and Ctrl-Shift-Home/End selection
19937           - Removed some debug output
19938           - Added handling for single/double/tripple-click to place caret/
19939             select word/select line respectively (Fixes bug #76031)
19940           - Added support for drag expansion of word/line selection
19941         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
19942           current selection
19943
19944 2005-11-02  Jackson Harper  <jackson@ximian.com>
19945
19946         * X11Dnd.cs: If the drag is going to and from a MWF window just
19947         copy the data instead of sending it out through the X Selection
19948         mechanism.
19949
19950 2005-11-02  Jackson Harper  <jackson@ximian.com>
19951
19952         * X11Dnd.cs:
19953         * XplatUIX11.cs: When in a drag we don't want motion notify
19954         messages to get passed on to the other controls. This prevents
19955         mouse move messages from showing up in the drag source.
19956
19957 2005-11-02  Jackson Harper  <jackson@ximian.com>
19958
19959         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
19960         the correct button is release to end a drag.
19961         * XplatUIX11.cs: Make the button state internal so the drag system
19962         can access it.  Dragging needs to know about all button releases,
19963         not just left button.
19964
19965 2005-11-02  Miguel de Icaza  <miguel@novell.com>
19966
19967         * Form.cs (Icon): If the icon is null, reset the icon to the
19968         default value. 
19969
19970         * Cursor.cs: When writing the AND-mask bitmap do not include the
19971         number of colors, but hardcode those to two (black and white),
19972         fixes the loading of color cursors (Paint Dot Net).
19973
19974         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
19975         turn off autoscaling.
19976
19977         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
19978
19979 2005-11-02  Jackson Harper  <jackson@ximian.com>
19980
19981         * X11Dnd.cs: Make sure to send a status message if the pointer
19982         enters a control that can not accept a drop, otherwise the cursor
19983         isn't updated correctly. Also tried to compress the lines of code
19984         a bit.
19985
19986 2005-11-02  Jackson Harper  <jackson@ximian.com>
19987
19988         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
19989         set actions correctly.  This isn't perfect as XDND and win32 have
19990         some differences on how you allow actions. I'll clear this up by
19991         adding a path for drag from MWF to MWF windows.
19992         * XplatUIX11.cs: Hook into the dnd system.
19993
19994 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
19995
19996         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
19997         previously shown but they are no longer need it. Very obvious when 
19998         browsing files with FileDialog.
19999
20000 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
20001
20002         * Control.cs: We always need to call OnPaintBackground. We pretty much
20003           ignore AllPaintingInWmPaint and always do the painting there, whether 
20004           it's set or not, since we always ignore the WM_ERASEBKGND message 
20005           (which we don't generate on X11). This fixes #76616.
20006         * Panel.cs: Removed unneeded background painting. This happens properly
20007           in Control.cs already
20008
20009 2005-10-31  Mike Kestner  <mkestner@novell.com>
20010
20011         * Menu.cs: Add items to collection before setting their index.
20012         * MenuItem.cs : add range checking with ArgumentException like MS.
20013         [Fixes #76510]
20014
20015 2005-10-31  Jackson Harper  <jackson@ximian.com>
20016
20017         * ListBox.cs: Invalidate if the area is visible at all not just
20018         contained in the visible rect. Fixes unselection of semi visible
20019         items.
20020
20021 2005-10-31  Jackson Harper  <jackson@ximian.com>
20022
20023         * Control.cs: Consistently name the dnd methods. Make them
20024         internal so we can override them to match some MS behavoir
20025         internally.
20026         * Win32DnD.cs: Use the new consistent names.
20027
20028 2005-10-31  Jackson Harper  <jackson@ximian.com>
20029
20030         * TreeView.cs: Don't draw the selected node when we lose focus.
20031
20032 2005-10-31  Jackson Harper  <jackson@ximian.com>
20033
20034         * X11Dnd.cs: We still need to reset the state even though a full
20035         reset isn't being done, otherwise status's still get sent all over
20036         the place.
20037
20038 2005-10-31  Jackson Harper  <jackson@ximian.com>
20039
20040         * Control.cs: Make the dnd_aware flag internal so the dnd
20041         subsystem can check it. Catch exceptions thrown in dnd handlers to
20042         match MS behavoir.
20043         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
20044         * X11Dnd.cs: Handle null data in the converters. Set the XDND
20045         version when sending a XdndEnter. Use the control/hwnd dnd_aware
20046         flags to reduce the number of dnd enters/status's sent.
20047
20048 2005-10-31  Jackson Harper  <jackson@ximian.com>
20049
20050         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
20051
20052 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
20053
20054         * PictureBox.cs: Fixes 76512
20055
20056 2005-10-28  Jackson Harper  <jackson@ximian.com>
20057
20058         * X11Dnd.cs: Early implementation to support winforms being a drag
20059         source for data on X11. Also restructured the converters so they
20060         can go both ways now.
20061         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
20062         
20063 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
20064
20065         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
20066           clipboard requests
20067
20068 2005-10-27  Jackson Harper  <jackson@ximian.com>
20069
20070         * TreeNode.cs: Implement serialization so my DnD examples will work.
20071
20072 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
20073
20074         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
20075           TreeView.cs: Don't dispose objects that are not owned.
20076           
20077 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
20078
20079         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
20080           should retrieve the current cursor and report that, but XplatUI
20081           doesn't (yet) have an interface for that (and I'm not sure I even
20082           can, on X11)
20083         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
20084           until any message loop processing is done (and the WM_SETCURSOR
20085           replaces the cursor to the proper one)
20086         * XplatUIX11.cs: 
20087           - Fixed override behaviour, we can't set the cursor globally on X11, 
20088             just for our windows.
20089           - Invalidating the System.Drawing X11 display handle when we are
20090             shutting down
20091         * Control.cs: Fix to make csc happy
20092
20093 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
20094
20095         * TextBoxBase.cs: 
20096           - get_Text: Add last line (without trailing newline) to returned
20097             value (Fixes 76212)
20098           - get_TextLength: Count last line in returned length
20099           - ToString: Call Text property instead of duplicating code
20100
20101 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
20102
20103         * ImageList.cs: Dispose ImageAttributes objects.
20104
20105 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
20106
20107         * ImageList.cs: Use attribute constructors with less arguments where
20108           possible.
20109
20110 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
20111
20112         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
20113           Use typeof instead of strings when assembly is referenced. Added
20114           some more comments.
20115
20116 2005-10-21  Jackson Harper  <jackson@ximian.com>
20117
20118         * ListView.cs: Raise a double click event. Also tried to somewhat
20119         fix when the selectedindexchanged event is raised. Its still
20120         broken though.
20121
20122 2005-10-21  Jackson Harper  <jackson@ximian.com>
20123
20124         * TreeView.cs: New method to invalidate the plus minus area of a
20125         node without invalidating the whole node (maybe this can be used
20126         in some more places).
20127         * TreeNodeCollection.cs: When adding to an empty node we need to
20128         invalidate its plus minus area so the little block shows up.
20129         
20130 2005-10-21  Jackson Harper  <jackson@ximian.com>
20131
20132         * TreeView.cs: Make sure that when we invalidate a node the bounds
20133         are big enough to cover the selected box and the focus
20134         rectangle. Use a different colour for the lines connecting nodes
20135         so they show up with all themes.
20136
20137 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
20138
20139         * NativeWindow.cs: Don't call anything that could call into the driver,
20140           we might be on a different thread.
20141
20142 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
20143
20144         * Control.cs(Dispose): Since Dispose might run on a different thread,
20145           make sure that we call methods that could call into the driver via
20146           invoke, to avoid thread issues
20147
20148 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
20149
20150         * XplatUI.cs: Removed finalizer
20151         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
20152           not allowing to be called on the finalizer thread.
20153
20154 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
20155
20156         * ImageList.cs:
20157           - Reverted r51889 and r51891.
20158           - Added ImageListItem class that stores unmodified image items and image
20159             properties required to create list images until handle is created.
20160           - Added AddItem and moved image creation logic to AddItemInternal.
20161           - Added CreateHandle method that creates images based on unmodified items.
20162           - Added DestroyHandle that changes state to store unmodified items.
20163           - Add and AddStrip methods no more create handle.
20164           - ReduceColorDepth has no return value.
20165           - Dispose destroys handle.
20166           - Modified other methods to reflect the above changes.
20167           - Implemented key support.
20168           - Added profile 2.0 members and attributes.
20169           - Added private Reset and ShouldSerialize methods that provide the same
20170             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
20171             them as they are private.
20172           - Added some more comments about implementation details.
20173
20174 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
20175
20176         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
20177
20178 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
20179
20180         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
20181
20182 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
20183
20184         * DataGridDrawingLogic.cs: Fixes column hit calcultation
20185         * DataGridColumnStyle.cs: Remove debug message
20186
20187 2005-10-20  Jackson Harper  <jackson@ximian.com>
20188
20189         * TreeView.cs: We can always get input keys regardless of whether
20190         or not editing is enabled. They are used for navigation.
20191
20192 2005-10-20  Jackson Harper  <jackson@ximian.com>
20193
20194         * TreeNode.cs: Use the viewport rect for determining if a node
20195         needs to be moved for visibility. Don't use Begin/End edit. This
20196         calls a full refresh when its done.
20197         * TreeView.cs: New SetBottom works correctly.  Make the viewport
20198         rect property internal so the treenodes can see it. When clicking
20199         on a node we need to ensure that its visible because it might just
20200         be partly visible when clicked.
20201
20202 2005-10-20  Jackson Harper  <jackson@ximian.com>
20203
20204         * TreeNodeCollection.cs: Remove debug code.
20205
20206 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
20207
20208         * Datagrid.cs: Implements column sorting in Datagrid
20209         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
20210
20211 2005-10-20  Jackson Harper  <jackson@ximian.com>
20212
20213         * TreeNodeCollection.cs: Remove items properly. Update the correct
20214         area after removing them.
20215
20216 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
20217
20218         * Datagrid.cs: Should not call base.OnPaintBackground
20219
20220 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
20221
20222         * XplatUIX11.cs (GetMessage):
20223           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
20224             window instead of client window
20225           - Now properly calculates NC_xBUTTONUP message coordinates
20226           - ScreenToMenu now properly calculates it's coordinates of whole 
20227             window, since menus are in the whole window, not in the client
20228             window
20229           - Added WholeToScreen coordinate translation method
20230
20231 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
20232
20233         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
20234           want to return a message, loop back to the beginning of the function
20235           and grab the next real message to process instead.
20236
20237 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
20238
20239         * Splitter.cs: Properly set limits if no filler control is used
20240
20241 2005-10-19  Jackson Harper  <jackson@ximian.com>
20242
20243         * ColorDialog.cs: Don't show the help button if it is not enabled
20244         instead of disabling it (this is what MS does). Don't create the
20245         panel until the dialog is run, otherwise the vars (such as
20246         ShowHelp) are not set yet.
20247
20248 2005-10-19  Jackson Harper  <jackson@ximian.com>
20249
20250         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
20251         are reduced when adding nodes.
20252         * TreeNode.cs:
20253         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
20254         tree.
20255         
20256 2005-10-19  Jackson Harper  <jackson@ximian.com>
20257
20258         * FolderBrowserDialog.cs: End editing our treeview so the window
20259         actually gets refreshed.
20260
20261 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
20262
20263         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
20264           Obsoleted handling of WM_ERASEBKGND, now always draws our background
20265           inside of WM_PAINT
20266
20267 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
20268
20269         * MenuAPI.cs: Returns after Hidding window
20270         * XplatUIX11.cs: Added TODO found while debugging menu issues
20271
20272 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
20273
20274         * XplatUIX11.cs: Do not re-map the whole window when it's size
20275           becomes non-zero unless it's supposed to be actually visible
20276
20277 2005-10-18  Jackson Harper  <jackson@ximian.com>
20278
20279         * TreeView.cs: We don't need to keep a count anymore.
20280         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
20281         use the Grow method.
20282
20283 2005-10-18  Jackson Harper  <jackson@ximian.com>
20284
20285         * TreeNodeCollection.cs: Insert is not supported on arrays, so
20286         implement it manually here.
20287
20288 2005-10-18  Jackson Harper  <jackson@ximian.com>
20289
20290         * ImageList.cs: Dont kill the list when the colour depth is
20291         changed, just change the colour depth of all the images.
20292         - Same goes for setting the image size. Just resize them all
20293         instead of killing the list softly.
20294
20295 2005-10-18  Jackson Harper  <jackson@ximian.com>
20296
20297         * Control.cs: Don't invalidate empty rectangles.
20298
20299 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
20300
20301         * ListViewItem.cs:
20302           - Adds checked item to the Checked/Item lists (where empty before)
20303           - Do not add items to the Selected lists if they are already present
20304         * ListView.cs:
20305           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
20306           - When deleting items make sure that we delete them for the Selected
20307           and Checked list also.
20308
20309 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
20310
20311         * Label.cs: Dispose objects no longer used
20312         * ThemeWin32Classic.cs: Dispose objects no longer used
20313
20314 2005-10-18  Jackson Harper  <jackson@ximian.com>
20315
20316         * TabControl.cs: Don't refresh the whole control when the tabs are
20317         scrolled, we just need to refresh the tab area.
20318
20319 2005-10-17  Jackson Harper  <jackson@ximian.com>
20320
20321         * XplatUIX11.cs: Compress code a little bit. Only calculate the
20322         after handle when we need it.
20323
20324 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
20325
20326         * Control.cs: When the parent size changes, recalculate anchor 
20327           positions. Partial fix for #76462
20328
20329 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
20330
20331         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
20332           drawn. Fixes #76462
20333
20334 2005-10-17  Jackson Harper  <jackson@ximian.com>
20335
20336         * MonthCalendar.cs: Don't create the numeric up down until our
20337         handle is created. Otherwise our handle is created in the
20338         constructor and we don't know if we are a WS_CHILD or WS_POPUP
20339         yet.
20340
20341 2005-10-17  Jackson Harper  <jackson@ximian.com>
20342
20343         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
20344         correctly.
20345
20346 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
20347         * TreeNode.cs : small logical fix (was using local var instead of field)
20348         
20349 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
20350
20351         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
20352
20353 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
20354
20355         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
20356
20357 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
20358
20359         * Control.cs: 
20360           - Re-implemented anchoring code. My first version was really broken.
20361             This fixes bug #76033. Unlike the previous implementation we will
20362             no longer have round errors since all numbers are calculated from
20363             scratch every time. Removed various anchor-related obsolete vars.
20364           - InitLayout no longer causes layout event firing and layout to be 
20365             performed
20366
20367 2005-10-16  Jackson Harper  <jackson@ximian.com>
20368
20369         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
20370         which was broken).
20371
20372 2005-10-16  Jackson Harper  <jackson@ximian.com>
20373
20374         * TabControl.cs: Remove debug code.
20375
20376 2005-10-16  Jackson Harper  <jackson@ximian.com>
20377
20378         * XEventQueue.cs: Increase the default queue size (very simple
20379         apps needed to grow the queue).
20380         * Hwnd.cs: No finalizer so we don't need to suppress
20381         finalization. Compute the invalid area manually so a new rectangle
20382         does not newto be created.
20383         * ScrollableControl.cs: Don't set any params (otherwise visibility
20384         isn't set correctly).
20385         * MdiChildContext.cs: New constructor takes the mdi parent so it
20386         doesn't have to be computed and avoids a crash on windows. Draw
20387         the window icon properly, and allow the text to be seen.
20388         * Form.cs: Use new MdiChildContext constructor. Make sure the
20389         child context isn't null in wndproc.
20390         * TabControl.cs: Don't set focus, this is muddling keyboard
20391         behavoir. Expand the tab rows when a window size increase will
20392         allow extra tabs to be seen. Don't allow tabs smaller than the
20393         width of a window to be scrolled out of view.
20394         * TreeNode.cs:
20395         * TreeView.cs: Use measure string to calculate a nodes width, the
20396         width is cached and only updated when the text or the font is
20397         changed. Don't check for expand/collapse clicks on the first level
20398         nodes if root lines are disabled.
20399         
20400 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
20401
20402         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
20403
20404 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
20405
20406         * DataGridBoolColumn.cs: fixes warning
20407
20408 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
20409
20410         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
20411         to match more to match more precisely the MS Net behavior
20412
20413 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
20414
20415         * Hwnd.cs: Added field to track if window is mapped
20416         * XplatUIX11.cs: 
20417           - Unmap windows if they become 0-size, re-map when 
20418             they are >0 again; fixes #76035
20419           - Re-set our error handler after initializing X11Desktop
20420             to override any error handlers Gtk or whatever was called
20421             may have set.
20422
20423 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
20424
20425         * CheckedListBox.cs: Removed unused vars
20426         * ListView.cs: Fixed signatures
20427         * RichTextBox.cs: Removed unused vars
20428         * TextBoxBase.cs: Removed unused vars
20429         * XplatUIWin32.cs: Removed unused vars
20430         * XplatUIX11.cs: Removed unused vars
20431         * XplatUI.cs: Updated version and date to latest published
20432
20433 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
20434
20435         * Cursor.cs: Added private .ctor to work around a bug in
20436           resourceset (Thanks to Geoff Norton for the help on this)
20437         * SplitterEventArgs.cs: Made fields accessible so we don't
20438           waste boatloads of objects and can reuse the same one
20439           in Splitter
20440         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
20441           any captions and borders when generating screen coordinates
20442         * Splitter.cs: Reimplemented control, now fully complete, uses
20443           rubberband drawing, supports and obeys all properties, has
20444           proper cursors
20445
20446 2005-10-13  Miguel de Icaza  <miguel@novell.com>
20447
20448         * Form.cs (Form): Setup default values for autoscale and
20449         autoscale_base_size;  Make these instance variables, not static
20450         variables. 
20451
20452         (OnLoad): on the first load, adjust the size of the form.
20453
20454 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
20455
20456         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
20457           width argument to DrawReversibleRectangle()
20458         * XplatUIWin32.cs, XplatUIX11.cs: 
20459           - Implemented width for DrawReversibleRectangle()
20460           - Added logic to DrawReversibleRectangle that recognizes a zero
20461             width or height and only draws a line in that situation
20462         
20463 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
20464
20465         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
20466         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
20467         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
20468           method (it uses our FosterParent window to get a graphics context)
20469
20470 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
20471
20472         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
20473           and SetWindowBackground methods
20474         * Control.cs:
20475           - Setting proper ControlStyles
20476           - We no longer call XplatUI.SetWindowBackground and XplatUI.
20477             EraseWindowBackground, instead we draw the window background
20478             ourselves in PaintControlBackground. This behaviour is
20479             required to match MS, where, when OnPaintBackground is not
20480             called, the background is not drawn.
20481           - Removed unneeded Refresh() in set_Text
20482         * Hwnd.cs: Dropped the ErasePending support. No longer needed
20483         * XplatUIX11.cs:
20484           - Created DeriveStyles method to translate from CreateParams to
20485             FormBorderStyle and TitleStyle, also handles BorderStyle (which
20486             matches FormBorderStyle enum values)
20487           - Consolidated SetHwndStyles and CalculateWindowRect border/title
20488             style calculations into single DeriveStyles method
20489           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
20490             from redrawing the whole window on any resize or expose.
20491           - Fixed CreateWindow usage of SetWindowValuemask. Before not
20492             all styles were applied to our whole/client window appropriately
20493           - Removed EraseWindowBackground() and SetWindowBackground() methods
20494           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
20495             no longer clear/redraw the background through X
20496           - Removed handling of erase_pending bit, we have no use for it (or
20497             so it seems)
20498         * XplatUIOSX.cs:
20499           - Removed generation and handling of WM_ERASEBKGND message
20500           - Removed EraseWindowBackground() and SetWindowBackground() methods
20501           - Removed handling of hwnd.ErasePending flag
20502         * XplatUIWin32.cs:
20503           - Removed EraseWindowBackground() and SetWindowBackground() methods
20504           - We no longer call EraseWindowBackground on PaintEventStart, we 
20505             ignore the fErase flag, erasing is handled in Control in the
20506             background handler
20507         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
20508           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
20509           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
20510           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
20511           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
20512           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
20513           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
20514
20515 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
20516
20517         * PropertyGrids.cs: Get sub properties
20518         * PropertyGridView.cs: Fix drawing code
20519
20520 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
20521
20522         * ListBox.cs: Fixes 76383
20523
20524 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
20525
20526         * DataGridTextBoxColumn.cs: Sets location and size before attachment
20527         * ThemeWin32Classic.cs: Fixes border drawing and calculations
20528         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
20529
20530
20531 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
20532
20533         * ComboBox.cs: Fixes border drawing
20534
20535 2005-10-10  Miguel de Icaza  <miguel@novell.com>
20536
20537         * MimeIcon.cs: Ignore errors if the file can not be read.
20538
20539 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
20540
20541         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
20542          - Fixed border calculations
20543          - Fixed horizontal scrolling in single column listboxes
20544          - Fixed drawing issues
20545
20546 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
20547
20548         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
20549           FormBorderStyle enum
20550         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
20551           code to determine FormBorderStyles from CreateParams
20552         * Form.cs:
20553           - Fixed bug where we'd set the wrong window styles if we were
20554             not creating an MDI window
20555           - Added call to XplatUI.SetBorderStyle when form borders are set
20556         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
20557         * Hwnd.cs:
20558           - Removed obsolete edge style
20559           - Switched from BorderStyle to FormBorderStyle
20560         
20561 2005-10-10  Jackson Harper  <jackson@ximian.com>
20562
20563         * Form.cs: Use the property to get the window handle instead of
20564         accessing it directly. Prevents a null reference exception.
20565
20566 2005-10-10  Jackson Harper  <jackson@ximian.com>
20567
20568         * TreeView.cs: Don't adjust the rect given to DrawString now that
20569         our libgdiplus draws correctly.
20570
20571 2005-10-08  Jackson Harper  <jackson@ximian.com>
20572
20573         * TreeView.cs: Don't try to find the clicked on node if there are
20574         no nodes in the tree.
20575
20576 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
20577
20578         * RichTextBox.cs:
20579
20580           restore
20581
20582 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
20583
20584         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
20585           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
20586           ErrorProvider.cs:
20587           Use ResPool for brushes and dispose System.Drawing objects that
20588           are not used anymore.
20589
20590 2005-10-07  Jackson Harper  <jackson@ximian.com>
20591
20592         * MdiChildContext.cs: Use the new borders instead of drawing them
20593         ourselves.
20594
20595 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
20596
20597         * Calling UpdateBounds after changing the window's BorderStyle 
20598         since the style can change the ClientSize
20599
20600 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20601
20602         * Control.cs: Made PaintControlBackground virtual
20603         * Panel.cs: Overriding PaintControlBackground instead of using paint
20604           event; paint event method was interfering with 'real' users of the
20605           event.
20606
20607 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
20608
20609         * ThemeWin32Classic.cs: remove border drawing since it is handled
20610         by the base control class now and was causing double border drawing.
20611
20612 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20613
20614         * Panel.cs: Redraw our background on paint. Not a pretty solution,
20615           but it does seem to match MS behaviour. This fixes bug #75324
20616
20617 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20618
20619         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
20620           somewhat hackish looking
20621
20622 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
20623
20624         * TextBoxBase.cs:
20625           - We now accept Enter even if AcceptEnter is false, if the containing
20626             form does not have an AcceptButton configured (fixes bug #76355)
20627           - Calculations are now fixed to no longer use Width/Height, but
20628             ClientSize.Width/Height, since we now support borders (this was
20629             a result of fixing borders and therefore bug #76166)
20630           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
20631             true (fixes bug #76354)
20632         
20633 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20634
20635         * Control.cs: 
20636           - Defaulting BorderStyle and setting it in XplatUI when our window 
20637             is created
20638           - Added enum check to InternalBorderStyle setter
20639         * XplatUIX11.cs: 
20640           - Added drawing of window borders
20641           - Now properly calculates WM decorations offset for toplevel 
20642             windows (fixes bug #74763)
20643         * XplatUIWin32.cs: 
20644           - Implemented BorderStyles for windows (we're letting win32 draw 
20645             the border for us)
20646           - Fixed the signature for SetWindowLong
20647         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
20648           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
20649           setting borders
20650         * UpDownBase.cs: Remove drawing of borders, this is handled by
20651           the driver, outside the client area
20652         * ListView.cs: Removed bogus border calculations. The control should
20653           be oblivious to borders, since those are not part of the client
20654           area. 
20655         * X11DesktopColors.cs: Commented out (currently) unneeded variables
20656         * ThemeWin32Classic.cs: Removed border calculations from ListView 
20657           drawing code
20658
20659 2005-10-06  Jackson Harper  <jackson@ximian.com>
20660
20661         * MdiChildContext.cs: Clear out the old virtual position remove
20662         all the unneeded calls to CreateGraphics.
20663
20664 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
20665
20666         * TextControl.cs: Use proper color for highlighted text; fixes #76350
20667
20668 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
20669
20670         * Form.cs: 
20671           - Added loading and setting of our new default icon
20672           - Only set icon if window is already created
20673
20674 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
20675
20676         * Label.cs:
20677           - Do not explicitly set the foreground and background colors, to
20678             allow inheriting from parents (fixes #76302)
20679           - Use Control's InternalBorderStyle property to deal with borders
20680
20681 2005-10-06  Jackson Harper  <jackson@ximian.com>
20682
20683         * MdiChildContext.cs: Use the new xplatui function to draw a
20684         reversible rect.
20685
20686 2005-10-06  Jackson Harper  <jackson@ximian.com>
20687
20688         * Form.cs: Add the parent before creating the child context cause
20689         we need the parent when setting up the child.
20690
20691 2005-10-06  Jackson Harper  <jackson@ximian.com>
20692
20693         * FolderBrowserDialog.cs: redo the tree population code so a
20694         second thread isn't used. Should be a lot faster and more stable
20695         now.
20696
20697 2005-10-05  Jackson Harper  <jackson@ximian.com>
20698
20699         * TreeView.cs: There are no expand/collapse boxes if the node has
20700         no children.
20701
20702 2005-10-05  Jackson Harper  <jackson@ximian.com>
20703
20704         * X11DesktopColors.cs: Get menu colours for the gtk theme.
20705
20706 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
20707
20708         * FileDialog.cs: Fix InitialDirectory
20709
20710 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
20711
20712         * ComboBox.cs:
20713                 - Fixes changing between styles
20714                 - Fixes simple mode
20715                 - Fixes last item crashing when navigating with keyboard
20716
20717 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
20718
20719         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
20720
20721 2005-10-05  Jackson Harper  <jackson@ximian.com>
20722
20723         * TreeView.cs: If updating the root node do a full refresh.
20724         * TreeNode.cs: The root node should be expanded by default. Also
20725         added a utility prop to tell if we are the root node.
20726         * TreeNodeCollection.cs: Only refresh if the node we are being
20727         added to is expanded. Also added a comment on a potential
20728         optimization.
20729         
20730 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
20731
20732         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
20733           in dispose method. Fixes #76330
20734
20735 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
20736
20737         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
20738
20739                 - Implements vertical and horizontal scrolling using XplatUI
20740                 - Fixes keyboard navagation
20741                 - Fixes EnsureVisible
20742                 - Drawing fixes
20743                 - Handles and draws focus properly
20744
20745
20746 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
20747
20748         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
20749           Create handle. NET_2_0: Destroy handle when value is null.
20750
20751 2005-10-03  Jackson Harper  <jackson@ximian.com>
20752
20753         * ScrollBar.cs: My last scrollbar patch was broken. This is a
20754         revert and a new patch to prevent the thumb from refreshing so
20755         much.
20756
20757 2005-10-02  Jackson Harper  <jackson@ximian.com>
20758
20759         * ScrollBar.cs: Don't update position if it hasn't actually
20760         changed. This occurs when you hold down the increment/decrement
20761         buttons and the thumb gets to the max/min.
20762
20763 2005-10-01  Jackson Harper  <jackson@ximian.com>
20764
20765         * Form.cs:
20766         * MdiChildContext.cs:
20767         * MdiClient.cs: Implement ActiveMdiChild in Form.
20768
20769 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
20770
20771         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
20772
20773 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
20774
20775         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
20776           be found
20777
20778 2005-09-30  Jackson Harper  <jackson@ximian.com>
20779
20780         * ListBox.cs: Don't do a full refresh unless some data has
20781         actually changed.
20782
20783 2005-09-30  Jackson Harper  <jackson@ximian.com>
20784
20785         * TreeView.cs: Make sure that the checkboxes size is factored in
20786         even when not visible.
20787
20788 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
20789
20790         * FileDialog.cs: Fix Jordi's build break
20791
20792 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
20793
20794         * FileDialog.cs: 
20795                 - Use standard the Windows colours for the combobox as espected
20796                 - Dispose objects that use resouces when no longer need them
20797
20798 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
20799
20800         * X11DesktopColors.cs: Initial incomplete implementation
20801         * XplatUIX11.cs: Added call to initialize X11DesktopColors
20802
20803 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
20804
20805         * Theme.cs: 
20806           - Switched Theme color names to match the names defined in 
20807             System.Drawing.KnownColors. Life's hard enough, no need to make 
20808             it harder.
20809           - Added setters to all theme color properties so themes can set
20810             their color schemes. The setters also propagate the color changes
20811             to System.Drawing.KnownColors via reflection
20812         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
20813           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
20814           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
20815           use the new, more logical theme color names
20816         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
20817           post-NT colors
20818         * ThemeWin32Classic.cs:
20819           - Removed code to set the old classic Windows colors. Instead it
20820             now relies on the colors returned by System.Drawing.KnownColors
20821             which will be either modern static colors (Unix) or colors
20822             read from the user's configuration (Win32)
20823           - Updated to use the new, more logical theme color names
20824           - Switched DataGrid drawing code to use only Theme colors instead of
20825             a mix of System.Drawing.KnownColors and Theme colors
20826           - DrawFrameControl(): Removed code that fills the button area, the
20827             fill would overwrite any previous fill done by a control. This
20828             fixes bug #75338 
20829           - Added DrawReversibleRectangle() stub
20830         * ScrollableControl.cs: Set visible state to false when scrollbars
20831           are removed (pdn fix)
20832         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
20833           DrawReversibleRectangle() method to allow drawing primitive 
20834           'rubber bands'
20835         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
20836
20837 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20838
20839         * ImageList.cs: Add(Icon): Create handle.
20840
20841 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
20842
20843         * ListView.cs:
20844         * ThemeWin32Classic.cs:
20845                 - Fixes detail mode
20846                 - Sets clippings
20847                 - Issues with drawing
20848
20849 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20850
20851         * ImageList.cs: Moved RecreateHandle back to ImageList as event
20852           source has to be the ImageList.
20853
20854 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20855
20856         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
20857
20858 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20859
20860         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
20861
20862 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20863
20864         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
20865
20866 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
20867         * GridItem.cs: Fixed TODOs
20868         * GridItemCollection.cs: Added ICollection interface
20869
20870 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
20871
20872         * ImageList.cs: Resize icons when needed.
20873
20874 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
20875
20876         * ListViewItem.cs
20877                 - Fixes GetBounds and returns on screen rects
20878         * ListView.cs:
20879                 - Fixes vertical and horzintal scrolling of items
20880         * ThemeWin32Classic.cs:
20881                 - Fixes drawing
20882                 
20883 2005-09-29  Raja R Harinath  <harinath@gmail.com>
20884
20885         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
20886
20887 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
20888
20889         * ImageList.cs: Added comments about handle creation. Moved Handle,
20890           HandleCreated and OnRecreateHandle implementations to ImageCollection.
20891           Handle is created in Add methods.
20892
20893 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
20894          
20895         * DataGridDrawingLogic.cs: 
20896                 - Takes rows into account on Colum calculations
20897                 - Returns the column when clickig
20898         * DataGrid.cs:
20899                 - Fixes default HitTestInfo values
20900                 - Fixes HitTestInfo.ToString
20901                 - Fixes ResetBackColor          
20902         
20903 2005-09-28  Jackson Harper  <jackson@ximian.com>
20904
20905         * MdiChildContext.cs: Obey rules for fixed sized windows (no
20906         sizing or cursor changes). Also added some temp code to draw the
20907         titlebars text (Makes dev a little easier).
20908
20909 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
20910
20911         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
20912
20913 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
20914          
20915         * ListBox.cs: Fixes bug 76253
20916
20917 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
20918
20919         * ImageList.cs: Added comments about the current implementation. Added
20920           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
20921           Format32bppArgb to preserve transparency and can use Graphics.FromImage
20922           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
20923           with Bitmap.LockBits for better performance. Revised the whole file to
20924           match MS.NET behaviour and provide better performance. Non-public
20925           interface members are calling public members even when they throw
20926           NotSupportedException for better maintainability. Moved ColorDepth,
20927           ImageSize, ImageStream and TransparentColor implementations to
20928           ImageCollection for better performance as these properties are not used
20929           by ImageList.
20930         * ImageListStreamer.cs: Added a new internal constructor that takes an
20931           ImageList.ImageCollection and serializes Images based on
20932           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
20933           match ImageList property name.
20934
20935 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
20936
20937         * ListBox.cs: Fixes IndexFromPoint for last item
20938
20939 2005-09-27  Jackson Harper  <jackson@ximian.com>
20940
20941         * Form.cs: Set the position of new mdi children correctly.
20942
20943 2005-09-27  Jackson Harper  <jackson@ximian.com>
20944
20945         * MdiClient.cs: New mdi children need to be added to the back of
20946         the controls collection so the zorder is set correctly. Also add a
20947         count of all the child windows that have been created.
20948
20949 2005-09-27  Jackson Harper  <jackson@ximian.com>
20950
20951         * Form.cs (CreateParams): Setup MDI forms correctly.
20952
20953 2005-09-27  Jackson Harper  <jackson@ximian.com>
20954
20955         * MdiChildContext.cs:
20956         * MonthCalendar.cs:
20957         * UpDownBase.cs:
20958         * ListBox.cs:
20959         * ListView.cs:
20960         * TextBoxBase.cs:
20961         * TreeView.cs:
20962         * ScrollableControl.cs:
20963         * ComboBox.cs: Add implicit controls using the new implict control
20964         functionality in ControlCollection. Also try to block multiple
20965         control add in a suspend/resume layout to save some cycles.
20966         
20967 2005-09-27  Jackson Harper  <jackson@ximian.com>
20968
20969         * Control.cs: Add functionality to the controls collection to add
20970         'implicit controls' these are controls that are created by the
20971         containing control but should not be exposed to the user. Such as
20972         scrollbars in the treeview.
20973         * Form.cs: The list var of the ControlsCollection is no longer
20974         available because of the potential of implicit controls getting
20975         ignored by someone accessing the list directly.
20976
20977 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
20978
20979         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
20980           loose it's parent. (Fixed bug introduced in r49103 when we added
20981           setting the child parent to null on Remove)
20982
20983 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
20984
20985         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
20986         * Splitter.cs: Added missing attributes for BorderStyle property.
20987         * TextBoxBase.cs: Marked Calculate* methods internal.
20988         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
20989         MS.NET.
20990
20991 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
20992          
20993         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
20994
20995 2005-09-25  Jackson Harper  <jackson@ximian.com>
20996
20997         * TreeView.cs: Update the node bounds correctly regardless of
20998         whether the node is visible.
20999
21000 2005-09-25  Jackson Harper  <jackson@ximian.com>
21001
21002         * ImageList.cs: Don't dispose the image after it is added to the
21003         image list. Only reformat images that need to be resized.
21004
21005 2005-09-25  Jackson Harper  <jackson@ximian.com>
21006
21007         * ImageList.cs: Don't set the format when changing the image.
21008
21009 2005-09-25  Jackson Harper  <jackson@ximian.com>
21010
21011         * TreeView.cs: We can't just assume the node has a font. Use the
21012         treeviews font if no node font is available.
21013
21014 2005-09-25  Jackson Harper  <jackson@ximian.com>
21015
21016         * TreeView.cs: Allow the scrollbars to be reset with negative
21017         values.
21018         - Don't add scrollbars to negative sized windows.
21019
21020 2005-09-23  Jackson Harper  <jackson@ximian.com>
21021
21022         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
21023         old Mono.Posix. Also remove some stray code that shouldn't have
21024         been committed.
21025
21026 2005-09-23  Jackson Harper  <jackson@ximian.com>
21027
21028         * TreeView.cs: Attempt at proper sizing of the horizontal
21029         scrollbar. Also don't resize the scrollbars unless they are
21030         visible.
21031
21032 2005-09-23  Jackson Harper  <jackson@ximian.com>
21033
21034         * TreeView.cs: We don't need to expand the invalid area when the
21035         selection changes, as this is all drawn in the node's bounding
21036         box. The area needs to be expanded (previous typo was contracting
21037         it) when the focus rect moves.
21038
21039 2005-09-23  Jackson Harper  <jackson@ximian.com>
21040
21041         * TreeView.cs: Display the selection box under the correct
21042         circumstances. We were rendering white text with no selection box
21043         before.
21044
21045 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
21046
21047         * TextControl.cs(Split): Now updates selection start/end if it points 
21048           into a line that's being split. Fixes a FIXME and bug #75258
21049
21050 2005-09-23  Jackson Harper  <jackson@ximian.com>
21051
21052         * Binding.cs:
21053         * ListControl.cs: Don't use the path when retrieving binding
21054         managers from the binding context. My bat sense tells me that the
21055         path is only used on insertion.
21056
21057 2005-09-22  Jackson Harper  <jackson@ximian.com>
21058
21059         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
21060
21061 2005-09-22  Jackson Harper  <jackson@ximian.com>
21062
21063         * Splitter.cs: There are special cursors used for splitting.
21064         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
21065
21066 2005-09-22  Jackson Harper  <jackson@ximian.com>
21067
21068         * Splitter.cs: Change the cursor appropriately when the splitter
21069         is moused over, so the user actually knows there is a splitter
21070         there.
21071
21072 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
21073
21074        * Label.cs : Fix ToString method to give same output as MS.NET
21075
21076 2005-09-22  Jackson Harper  <jackson@ximian.com>
21077
21078         * TreeView.cs: Create the scrollbars when the handle is created
21079         and add them right away, just make them invisble. Also account for
21080         the window being shrunk vertically to the point that the vert
21081         scrollbar needs to be added.
21082         - Remove some 0.5 adjustments to get around anti aliasing issues.
21083         
21084 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
21085          
21086         * MainMenu.cs: Fixes default value
21087         * MenuItem.cs: Fixes default value
21088
21089 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
21090
21091         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
21092
21093 2005-09-21  Jackson Harper  <jackson@ximian.com>
21094
21095         * Control.cs: Don't try to set the border style on the window if
21096         it hasn't been created. When the window is created the border
21097         style will be used.
21098
21099 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
21100
21101         * Control.cs (Update): Don't call XplatUI if we don't have a
21102           window handle yet
21103
21104 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
21105
21106         * ContainerControl.cs: Instead of throwing an exception, print
21107           a one-time warning about Validate not being implemented
21108         * XplatUIWin32.cs: Removed debug output
21109
21110 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
21111
21112         * Control.cs: Only set XplatUI background if we expect the windowing
21113           system to handle the background. This stops controls that draw their
21114           own background from flickering
21115
21116         * XplatUIX11.cs: Support custom visuals and colormaps for window 
21117           creation. This allows, amongst other things, using MWF X11 windows 
21118           with OpenGL.
21119
21120 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
21121
21122         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
21123           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
21124           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
21125           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
21126           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
21127           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
21128           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
21129           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
21130           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
21131           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
21132           GridColumnStylesCollection.cs, 
21133           IDataGridColumnStyleEditingNotificationService.cs,
21134           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
21135           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
21136           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
21137           TreeNodeCollection.cs, AmbientProperties.cs, 
21138           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
21139           DataObject.cs, ErrorProvider.cs, Splitter.cs,
21140           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
21141           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
21142           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
21143           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
21144           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
21145           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
21146           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
21147           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
21148           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
21149           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
21150           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
21151           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
21152           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
21153           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
21154           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
21155           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
21156           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
21157           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
21158           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
21159           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
21160           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
21161           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
21162           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
21163           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
21164           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
21165           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
21166           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
21167           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
21168           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
21169           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
21170           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
21171           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
21172           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
21173           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
21174           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
21175
21176 2005-09-21  Jackson Harper  <jackson@ximian.com>
21177
21178         * TreeNode.cs: Call Before/After Expand not Collapse when
21179         expanding.
21180
21181 2005-09-20  Jackson Harper  <jackson@ximian.com>
21182         
21183         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
21184
21185 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
21186          
21187         * ListViewItem.cs:
21188                 - Fixes bug 76120
21189                 - Fixes proper storing of subitems
21190                 - Fixes not updated items
21191
21192 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
21193
21194         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
21195           things if our window handle isn't created yet. Also disabled 
21196           debug for TextBoxBase
21197
21198 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
21199
21200         * MenuAPI.cs: Remove filtering of events to allow menu usage
21201
21202 2005-09-20  Miguel de Icaza  <miguel@novell.com>
21203
21204         * Cursor.cs: Allow null to be passed to Cursor.Current.
21205
21206 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
21207
21208         * ThemeWin32Classic.cs:
21209           - Change some private methods/fields to protected virtual so that 
21210             they can be accessed and overriden in derived classes
21211           - First refactoring of some methods. Derived themes now don't 
21212             need to duplicate the complete code from ThemeWin32Classic
21213         * ThemeNice.cs:
21214           - Added nice StatusBar
21215           - Derive from ThemeWin32Classic and not Theme
21216           - Removed duplicate ThemeWin32Classic code
21217
21218 2005-09-20  Miguel de Icaza  <miguel@novell.com>
21219
21220         * Control.cs (ControlCollection.Add): If the value null is passed
21221         the control is ignored. 
21222
21223         Optimize this loop.
21224
21225 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
21226
21227         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
21228           PostQuitMessage state.
21229         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
21230
21231 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
21232
21233         * Application.cs: Our constructor will never get called, move 
21234           initialization to fields; fixes bug #75933
21235
21236 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
21237
21238         * FileDialog.cs :
21239                 - Allow files to be selected properly using file name
21240                 combo box.
21241                 - Add ability to change diretory (absolute / relative)
21242                 using file name combo box.
21243
21244 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
21245          
21246         * ListBox.cs: 
21247                 - Fixes Multicolumn listboxes item wrong calculations
21248                 - Allows to click when only one item is in the listbox
21249                 - Fixes crash when no items using keyboard navigation
21250
21251 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
21252
21253         * ComboBox.cs: Reverted almost everything from the latest patch which
21254           broke ComboBox
21255
21256 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
21257         
21258         * ToolTip.cs:
21259                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
21260         * ComboBox.cs:
21261                 - When DropDownStyle is Simple, it does not show scrollbar 
21262                 to the last item of the list.
21263                 - When DropDownStyle is Simple, it crashed when the list was 
21264                 scrolled down with the down cursor key.
21265                 - Fixed a bug that when DropDownStyle is DropDownList, the 
21266                 selected item was not shown.
21267                 - The position of the selected item was not preserved when 
21268                 the next dropdown happened.
21269         * ThemeWin32Classic.cs:
21270                 - Items were wrapped at the right end.
21271         * CheckedListBox.cs:
21272                 - Fixed Add method
21273         * ListBox.cs:
21274                 - Items should be fully shown.
21275                 - When resizing and vertical scrollbar disappeared, the item 
21276                 of index 0 should be on the top of the list.
21277                 - GetItemRectangle should consider the size of ver. scrollbar
21278         * StatusBar.cs:
21279                 - SizingGrip area should not be allocated when it is not 
21280                 displayed.
21281                 - Now it reflects MinWidth of the containing panel and 
21282                 fixed a crash that happens when its width becomes so small.
21283
21284 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
21285
21286         * CheckedListBox.cs: Fixes bug 76028
21287         * ListBox.cs: Fixes bug 76028
21288
21289 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
21290
21291         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
21292         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
21293
21294 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
21295
21296         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
21297
21298 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
21299
21300         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
21301
21302 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
21303
21304         * IRootGridEntry.cs: Added
21305         * PropertyGridCommands.cs: Added
21306         * PropertiesTab.cs: Added missing methods and property
21307         * PropertyGridView.cs: Made class internal
21308         * PropertyGridTextBox.cs: Made class internal
21309
21310 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
21311
21312         * MimeIcon.cs: Try to check some other environment variables
21313           if "DESKTOP_SESSION" returns "default"
21314
21315 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
21316
21317         * ThemeNice.cs: Corrected background colors (e.g. menus)
21318         * ColorDialog.cs: Use correct background colors for controls
21319
21320 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
21321
21322         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
21323
21324 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
21325
21326         * RichTextBox.cs: Added initial implementation
21327         * lang.cs: Removed. Was accidentally checked in long time ago
21328         * TODO: Removed. Contents were obsolete
21329
21330 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
21331                                                                                 
21332         * PropertiesTab.cs : Added
21333
21334 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
21335                                                                                 
21336         * PropertyGrid.cs : Update
21337         * PropertyGridView.cs : Update
21338         * System.Windows.Forms.resx : Added images and strings
21339
21340 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
21341
21342         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
21343  
21344 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
21345
21346         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
21347           a busy loop right after the Ungrab the X11 display is otherwise 
21348           blocked
21349
21350 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
21351
21352         * ThemeWin32Classic.cs: Optimise the use of clipping
21353
21354 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
21355
21356         * DataGrid.cs: fixes recursion bug
21357
21358 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
21359
21360         * ThemeNice.cs: 
21361           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
21362           - Cleanup
21363
21364 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
21365
21366         * ThemeNice.cs: Draw nice ProgressBars
21367
21368 2005-09-01  Miguel de Icaza  <miguel@novell.com>
21369
21370         * VScrollBar.cs: Another buglet found by Aaron's tool. 
21371
21372         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
21373         bug finder.
21374
21375 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
21376
21377         * ThemeNice.cs:
21378           - Added nicer menu drawing
21379           - Updated DrawTab
21380           - some refactoring
21381
21382 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
21383
21384         * CreateParams.cs (ToString): Made output match MS
21385         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
21386             handle is already created (to avoid forcing window creation)
21387         * XplatUIX11.cs: Set window text to caption after creating window,
21388           in case Text was set before window was created
21389         * Form.cs: Use this.Text instead of a static string as caption
21390
21391 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
21392
21393         * NotifyIcon.cs: Don't set the window to visible; this screws
21394           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
21395           OnPaint without a bitmap)
21396         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
21397           happen very often anyway; we could add the check to the WM_PAINT 
21398           event generation code
21399
21400 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
21401
21402         * NotifyIcon.cs: Fill the icon area with a background color, to 
21403           avoid 'residue' when transparent icons are drawn
21404         * XplatUIX11.cs:
21405           - Handle whole_window == client_window when destroying windows
21406           - SystrayAdd(): Set client_window to whole_window value to
21407             get mouse and other events passed to NotifyIcon
21408
21409 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
21410
21411         * Form.cs: Set proper default for Opacity property
21412         * NotifyIcon.cs:
21413           - ShowSystray(): Don't bother creating telling the OS
21414             about the systray item if no icon is provided
21415           - Now handles WM_NCPAINT message to deal with whole/client window
21416             split
21417           - Create window as visible to not get caught by Expose optimization
21418         * Hwnd.cs: Removed debug message
21419         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
21420           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
21421             PaintEventStart/End to use new client argument
21422         * TextBoxBase.cs:
21423           - Commented out debug messages
21424           - Switched PaintEventStart/End to use new client argument
21425         * XplatUI.cs: Added client window bool to PaintEventStart()/
21426           PaintEventEnd() calls, to support drawing in non-client areas
21427         * XplatUIDriver.cs: 
21428           - Added client window bool to PaintEventStart()/PaintEventEnd() 
21429             calls, to support drawing in non-client areas
21430           - Added conditional compile to allow using MWF BeginInvoke 
21431             on MS runtime
21432         * XplatUIX11.cs:
21433           - Added some conditional debug output
21434           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
21435             whole/client window split
21436           - Implemented handling of client argument to PaintEventStart()/End()
21437         * Control.cs:
21438           - Throw exception if BeginInvoke() is called and the window handle
21439             or one of the window's parent handles is not created
21440           - Added conditional compile to allow using MWF BeginInvoke on
21441             MS runtime
21442           - get_Parent(): Only sets parent if handle is created. This avoids
21443             forcing window handle creation when parent is set.
21444           - Now fires Layout and Parent changed events in proper order
21445           - Switched to use Handle instead of window.Handle for Z-Order setting,
21446             the get_Parent() patch above causes us to possibly get null for 'window'
21447           - Implemented handling of client argument to PaintEventStart()/End()
21448           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
21449             default handling)
21450           - Now sends a Refresh() to all child windows when Refresh() is called
21451
21452 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
21453
21454         * Form.cs: Added (non-functional) Opacity property
21455         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
21456
21457 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
21458         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
21459           use export MONO_THEME=nice to activate it.
21460           Currently supported controls:
21461           - Button
21462           - ComboBox
21463           - ScrollBar
21464           - TabControl (TabAlignment.Top only, other will follow)
21465         * ThemeEngine.cs: Add theme nice
21466         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
21467           if enabled
21468
21469 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
21470
21471         * Splitter.cs: Resize docked control and its neighbor.
21472
21473 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
21474         -- Making Windows with Menus layout correctly --
21475         * Form.cs : The first leg of the fix
21476                 Menu setter - adjust Client Size as needed to make space for the menu
21477                 SetClientSizeCore - doesn't call base version to be able to pass the 
21478                         menu handle to XplatUI.CalculateWindowRect
21479         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
21480         * XplatUIX11.cs: The critical second leg of the fix
21481                 GetWindowPos needs to use a recalculated client_rect
21482                 so that resizing the window doesn't break layout of child controls. 
21483                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
21484                 Lots of \t\n killed
21485
21486 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21487
21488         * Label.cs: Now properly recalculates width and height on Font and Text
21489           changes if AutoSize is set
21490
21491 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
21492         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
21493
21494 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
21495
21496         * ImageList.cs: Makes ToString method compatible with MS
21497
21498 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
21499
21500         * MenuAPI.cs: fixes bug 75716
21501
21502 2005-08-11 Umadevi S <sumadevi@novell.com>
21503         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
21504
21505 2005-08-11 Umadevi S <sumadevi@novell.com>
21506         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
21507
21508 2005-08-10  Umadevi S <sumadevi@novell.com>
21509         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
21510
21511 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
21512
21513         * Menu.cs: fixes bug 75700
21514         * MenuAPI.cs: fixes navigation issues
21515
21516 2005-08-09  Umadevi S <sumadevi@novell.com>
21517         * CheckedListBox.cs - simple fix for GetItemChecked.
21518
21519 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
21520
21521         * ComboBox.cs: Serveral fixes
21522         * ListBox.cs: Serveral fixes
21523
21524 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
21525
21526         * ComboBox.cs: Fixes FindString methods and GetItemHeight
21527         * ListBox.cs: Fixes FindString methods
21528
21529 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
21530
21531         * DataGrid.cs: fixes bugs exposed by new tests
21532
21533 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
21534
21535         * Mime.cs: Compile Mono assembly references only if compiling
21536           with Mono (Allows to build with VS.Net again)
21537
21538 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
21539
21540         * Control.cs (PaintControlBackground): Draw background image
21541         corrrectly.
21542         (CheckForIllegalCrossThreadCalls): Stubbed.
21543         
21544         * Form.cs (OnCreateControl): Center when should be centered.
21545         
21546         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
21547
21548 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
21549
21550         * Binding.cs: Binding to properties should be case unsensitive
21551
21552 2005-07-18 vlindos@nucleusys.com
21553
21554         * DataGrid.cs: fixes setmember order
21555
21556 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
21557
21558         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
21559         * FileDialog.cs: FileDialog is now resizable and uses the new
21560           MimeIconEngine
21561
21562 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
21563
21564         * DataGridTextBoxColumn.cs: default value
21565         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
21566         * GridTableStylesCollection.cs: fixes checking MappingName
21567         * DataGridDrawingLogic.cs: fixes drawing logic issues
21568         * DataSourceHelper.cs: rewritten to make compatible with more data sources
21569         * DataGrid.cs: fixes    
21570
21571 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
21572
21573         * MimeGenerated.cs: Use case sensitive comparer for
21574           NameValueCollections
21575
21576 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
21577
21578         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
21579         * ThemeWin32Classic.cs: bug fixes, code refactoring
21580         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
21581         * DataGrid.cs: bug fixes, code refactoring
21582         * DataGridTextBox.cs: bug fixes, code refactoring
21583         * DataGridColumnStyle.cs:  bug fixes, code refactoring
21584         * Theme.cs:  bug fixes, code refactoring
21585
21586 2005-07-01  Peter Bartok  <pbartok@novell.com> 
21587
21588         * TextControl.cs: Quick fix for the reported crash on ColorDialog
21589           and other text box usage
21590
21591 2005-07-01  Jackson Harper  <jackson@ximian.com>
21592
21593         * TabControl.cs: Make sure the bottom of the tab covers the pages
21594         border.
21595
21596 2005-06-30  Peter Bartok  <pbartok@novell.com> 
21597
21598         * Form.cs (ShowDialog): Assign owner of the dialog
21599         * TextBoxBase.cs: Always refresh caret size when deleting, caret
21600           might have been moved to a tag with different height
21601
21602 2005-06-30  Jackson Harper  <jackson@ximian.com>
21603
21604         * Form.cs: Don't create an infinite loop when setting focus
21605         * MenuItem.cs: Don't dirty the parents if we don't have any
21606
21607 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
21608
21609         * LibSupport.cs: Rename
21610
21611 2005-06-29  Peter Bartok  <pbartok@novell.com>
21612
21613         * TextBoxBase.cs: Re-align caret after deleting a character
21614         * TextControl.cs:
21615           - DeleteChars(): Ensure that tag covers the provided position
21616           - StreamLine(): Drop reference for dropped tag
21617
21618 2005-06-29  Peter Bartok  <pbartok@novell.com> 
21619
21620         * TextControl.cs: 
21621           - Selections now work properly, anchoring at the initial location
21622             and properly extending in either direction (SetSelectionToCaret(),
21623             SetSelectionStart() and SetSelectionEnd())
21624           - No longer redraws the whole control on selection change, now
21625             calculates delta between previous and new selection and only
21626             invalidates/redraws that area
21627           - Fixed FindPos() math off-by-one errors
21628           - Changed DeleteChars() to verify the provided tag covers the
21629             provided position, selections may have a tag that doesn't cover
21630             the position if the selection is at a tag border
21631           - Fixed off-by-one errors in DeleteChars()
21632           - Added missing streamlining check in DeleteChars() to remove
21633             zero-length tags
21634           - Implemented Invalidate() method, now properly calculates exposures
21635             between two given lines/positions
21636           - Implemented SetSelection()
21637           - Obsoleted and removed FixupSelection()
21638           - Improved RecalculateDocument() logic, removing code duplication
21639
21640 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21641
21642         * LibSupport.cs: changes to match different input/output arguments.
21643
21644 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21645
21646         * LibSupport.cs: added libsupport.so init routine.
21647
21648 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
21649         
21650         * ControlBindingsCollection.cs
21651                 - Throws an exception on null datasource when adding
21652                 - Checks for duplicated bindings when adding
21653
21654 2005-06-28  Jackson Harper  <jackson@ximian.com>
21655
21656         * TreeView.cs (OnKeyDown): Support left and right properly
21657         (navigates as well as expanding and collapsing.
21658         - Add support for Multiply, this expands all the selected nodes
21659         children.
21660         - Fix some tabbing.
21661
21662 2005-06-28  Jackson Harper  <jackson@ximian.com>
21663
21664         * TreeView.cs: Implement keyboard navigation, currently supports,
21665         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
21666         support for toggling checkboxes with the space bar.
21667
21668 2005-06-28  Jackson Harper  <jackson@ximian.com>
21669
21670         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
21671         tree.
21672
21673 2005-06-28  Jackson Harper  <jackson@ximian.com>
21674
21675         * TreeView.cs: Add missing event.
21676
21677 2005-06-27  Peter Bartok  <pbartok@novell.com> 
21678
21679         * TextControl.cs:
21680           - Made line ending size configurable (now allows for counting 
21681             lineendings as \n or \r\n)
21682           - Added margin to viewport to keep caret visible on right side
21683           - Fixed translation routines for line/pos to documentpos to consider
21684             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
21685           - Fixed some line-endings to be unix style
21686           - Fixed Document.FormatText to perform it's calculations 1-based
21687           - Added descriptions for a few methods that might otherwise get 
21688             used wrong
21689           - Added NOTE section with some basic conventions to remember at 
21690             the top of the file
21691           - Major fixup for RichTextBox selection drawing:
21692             * Fixed crashes when multiple tags on a single line were selected
21693             * fixed selection box drawing not overlaying text
21694             * fixed bogus offset calculation for tags not starting at index 1
21695             * Switched behaviour from using multiple Substrings of a 
21696               StringBuilder.ToString() to using multiple 
21697               StringBuilder.ToString(start, length) statements, hoping this is
21698               faster (kept original version commented out in the code, in case
21699               original version was faster)
21700         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
21701           alignment != Left
21702         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
21703           call it as well
21704
21705 2005-06-27  Jackson Harper  <jackson@ximian.com>
21706
21707         * TabControl.cs: Move to the left and right with the arrow
21708         keys. These keys don't cycle beyond first and last like
21709         tab. Refresh all the tabs when scrolling them to the left or
21710         right.
21711
21712 2005-06-27  Jackson Harper  <jackson@ximian.com>
21713
21714         * TabControl.cs:
21715           - ToString: Added method
21716           - CreateParams: Remove TODO and comment
21717           - OnKeyDown: Cycle through bounds properly.
21718           - SelectedIndex: Scroll to the right or left if we need to
21719           display the newly selected tab.
21720
21721 2005-06-23  Jackson Harper  <jackson@ximian.com>
21722
21723         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
21724         set.
21725
21726 2005-06-23  Jackson Harper  <jackson@ximian.com>
21727
21728         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
21729         CTRL-SHIFT-TAB, and HOME, END are there any others?
21730
21731 2005-06-23  Jackson Harper  <jackson@ximian.com>
21732
21733         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
21734
21735 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
21736         
21737         * DataGridTextBoxColumn.cs: fixes and enhancements
21738         * ThemeWin32Classic.cs: fixes and enhancements
21739         * DataGridBoolColumn.cs:  fixes and enhancements
21740         * DataGridDrawingLogic.cs:  fixes and enhancements
21741         * CurrencyManager.cs: fixes and enhancements
21742         * DataGrid.cs: fixes and enhancements
21743         * DataGridColumnStyle.cs:  fixes and enhancements
21744
21745 2005-06-22  Jackson Harper  <jackson@ximian.com>
21746
21747         * TabControl.cs: Add some missing methods that just call into the
21748         base. Make the TabPageCollection's IList interface behave in the
21749         same manner as the MS implementation.
21750
21751 2005-06-22  Peter Bartok  <pbartok@novell.com> 
21752
21753         * TextControl.cs: Added sanity check
21754         * TextBoxBase.cs: 
21755           - Fixed wrapping behaviour, don't set wrap on single line controls
21756             (this fixes the breakage of colordialog introduced in an earlier
21757              checkin)
21758           - Added rudimentary support for autoscrolling right-aligned controls
21759             (still needs fixing, also, center alignment scroll is missing)
21760
21761 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
21762         
21763         * ScrollBar.cs: Fixes thumbpos on Maximum values
21764
21765 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
21766         
21767         * PropertyGridView.cs: Pass context information to UITypeEditors 
21768
21769 2005-06-21  Peter Bartok  <pbartok@novell.com> 
21770
21771         * TextBoxBase.cs:
21772           - Now calling PositionCaret with absolute space coordinates
21773           - Enabled vertical scrolling
21774           - Better tracking of scrollbar changes, tied into WidthChange
21775             event
21776           - Improved cursor tracking
21777           - Removed debug output
21778         * TextControl.cs:
21779           - PositionCaret coordinates are now works in absolute space, not 
21780             the canvas
21781           - Improved tracking of document size
21782           - Added events for width and height changes
21783
21784 2005-06-21  Peter Bartok  <pbartok@novell.com>
21785
21786         * Form.cs: Set focus to active control when form is activated
21787         * TextControl.cs: 
21788           - Added word-wrap functionality to RecalculateLine() 
21789           - Added some short function descriptions for VS.Net to aid in
21790             writing dependent controls
21791           - Added Caret property, returning the current coords of the caret
21792           - Added ViewPortWidth and ViewPortHeight properties
21793           - Added Wrap property
21794           - Added CaretMoved event
21795           - Removed some old debug code
21796           - Split() can now create soft splits
21797           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
21798           - Added method to format existing text
21799           - Fixed size/alignment calculations to use viewport
21800           - RecalculateDocument now can handle changing line-numbers while
21801             calculating lines
21802
21803         * TextBox.cs:
21804           - Added some wrap logic, we don't wrap if alignment is not left
21805           - Added casts for scrollbar var, base class switched types to
21806             also support RichTextBoxA
21807           - Implemented handling of scrollbar visibility flags
21808
21809         * TextBoxBase.cs:
21810           - Switched scrollbars type to RichTextBoxScrollBars to support
21811             RichTextBox
21812           - Added tracking of canvas width/height
21813           - Switched scrollbars to be not selectable (to keep focus on text)
21814           - Added central CalculateDocument() method to handle all redraw
21815             requirements
21816           - Added ReadOnly support
21817           - Added WordWrap support
21818           - Fixed handling of Enter key (we now treat it as a DialogKey)
21819           - Fixed caret positioning when h or v scroll is not zero
21820           - Fixed placing/generation of vertical scrollbar
21821           - Added CalculateScrollBars() method to allow updating scrollbar
21822             limits and visibility
21823           - Fixed handling of horizontal scroll
21824           - Added handling of vertical scroll
21825           - Implemented auto-'jump' when caret moves to close to a left or
21826             right border and there is text to be scrolled into view (currently
21827             there's the potential for a stack overflow, until a bug in
21828             scrollbar is fixed)
21829
21830 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
21831         
21832         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
21833
21834 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
21835
21836         * Mime.cs:
21837         - added inodes.
21838         - return application/x-zerosize for files with size zero
21839           (if no extension pattern matches).
21840         - check matches collection for strings too.
21841         - return only the first mime type if the name value
21842           collection has more than one mime type.
21843
21844 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
21845         
21846         * PropertyGrid.cs: Cleaned up some TODOs
21847         * PropertyGridView.cs: Added support for UITypeEditors
21848
21849 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
21850         
21851         * DataGrid.cs: clears cached value
21852
21853 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
21854
21855         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
21856         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
21857         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
21858         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
21859         
21860 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
21861
21862         * ThemeWin32Classic.cs: fixes colour
21863
21864 2005-06-15  Peter Bartok  <pbartok@novell.com>
21865
21866         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
21867         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
21868         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
21869         * Control.cs: Added some MWFCategory and MWFDescription attributes
21870         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
21871
21872 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
21873
21874         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
21875         usage
21876
21877 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
21878
21879         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
21880         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
21881         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
21882         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
21883         * DataGrid.cs: default datagrid settings for Default Styles, fixes
21884         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
21885
21886 2005-06-13  Jackson Harper  <jackson@ximian.com>
21887
21888         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
21889         isn't printed when the user enables dropping. (X11 does accept
21890         drops).
21891         
21892 2005-06-13  Jackson Harper  <jackson@ximian.com>
21893
21894         * TreeView.cs: Remove some TODOS.
21895
21896 2005-06-13  Jackson Harper  <jackson@ximian.com>
21897
21898         * Form.cs: Hook into the mdi framework.
21899         * MdiClient.cs: Use the base control collections add method so
21900         parents get setup correctly. Set the default back colour and dock
21901         style.
21902         * MdiChildContext.cs: New class, this bad actor handles an
21903         instance of an MDI window. Right now there is only basic
21904         support. You can drag, close, and resize windows. Minimize and
21905         Maximize are partially implemented.
21906
21907 2005-06-13  Jackson Harper  <jackson@ximian.com>
21908
21909         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
21910         freaky when both vals are negative. NOTE: There are probably other
21911         places in XplatUIX11 that this needs to be done.
21912
21913 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
21914
21915         * DataGrid.cs: implement missing methods, move KeyboardNavigation
21916         * DataGridColumnStyle.cs: fixes signature
21917
21918 2005-06-12  Jackson Harper  <jackson@ximian.com>
21919
21920         * XplatUIX11.cs: Use sizing cursors similar to the ones on
21921         windows.
21922
21923 2005-06-11  Jackson Harper  <jackson@ximian.com>
21924
21925         * StatusBarPanel.cs: Signature cleanups. Implement
21926         BeginInit/EndInit.
21927
21928 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
21929
21930         * DataGridTextBoxColumn.cs: Honors aligment
21931         * GridColumnStylesCollection.cs: Contains is case unsensitive
21932         * GridTableStylesCollection.cs: several fixes
21933         * DataGridTableStyle.cs: default column creation
21934         * DataGridDrawingLogic.cs: fixes
21935         * CurrencyManager.cs: ListName property
21936         * DataGrid.cs: multiple styles support
21937         * DataGridColumnStyle.cs: fixes
21938         
21939
21940 2005-06-10  Peter Bartok  <pbartok@novell.com>
21941
21942         * Control.cs(Select): Moved SetFocus call to avoid potential
21943           loops if controls change the active control when getting focus
21944         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
21945           the up/down buttons
21946
21947 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
21948
21949         * ImageListConverter.cs: Implemented
21950
21951 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
21952
21953         * MonthCalendar.cs: Wired in NumericUpDown control for year
21954
21955 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
21956
21957         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
21958           DoubleClick events, since they are not meant to be fired.
21959
21960 2005-06-09  Peter Bartok  <pbartok@novell.com>
21961
21962         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
21963           Jonathan's standalone controls into MWF, implemented missing
21964           events, attributes and methods; added xxxAccessible classes
21965         * AccessibleObject.cs: Made fields internal so other classes
21966           can change them if needed
21967
21968 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
21969
21970         * UpDownBase.cs: Complete implementation
21971         * NumericUpDown.cs: Complete implementation
21972         * DomainUpDown.cs: Complete implementation
21973
21974 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
21975
21976         * DataGridTextBoxColumn.cs: drawing fixes
21977         * DataGridCell.cs: fixes ToString method to match MSNet
21978         * DataGridTableStyle.cs: fixes
21979         * DataGridBoolColumn.cs: fixes, drawing
21980         * DataGridDrawingLogic.cs: fixes, new methods
21981         * DataGridTextBox.cs: Keyboard and fixes
21982         * DataGrid.cs:
21983                 - Keyboard navigation
21984                 - Scrolling fixes
21985                 - Row selection (single, multiple, deletion, etc)
21986                 - Lots of fixes
21987         
21988 2005-06-07  Jackson Harper  <jackson@ximian.com>
21989
21990         * ThemeWin32Classic.cs: Clear the background area when drawing
21991         buttons.
21992
21993 2005-06-06  Peter Bartok  <pbartok@novell.com>
21994
21995         * ImageListStreamer.cs: Fixed signature for GetData
21996         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
21997         * ComboBox.cs:
21998           - Added missing ChildAccessibleObject class
21999           - Added missing OnXXXFocus overrides, switched to using those
22000             instead of the event handler
22001         * Control.cs:
22002           - Added Parent property for ControlAccessibleObject
22003           - Fixed signatures
22004           - Fixed attributes
22005           - Added ResetBindings()
22006         * ListBindingConverter.cs: Implemented some methods
22007         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
22008         * ImageList.cs: Implemented basic handle scheme, removed TODOs
22009         * ContainerControl.cs: Fixed signature, now subscribing to the
22010           ControlRemoved event instead of overriding the handler, LAMESPEC
22011         * CurrencyManager.cs: Added missing attribute
22012         * MonthCalendar.cs: Added missing properties
22013
22014 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
22015
22016         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
22017         
22018 2005-06-06  Gaurav Vaish and Ankit Jain
22019
22020         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
22021         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
22022         
22023 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
22024
22025         * Control.cs: fixes CreateParams Width / Height.
22026
22027 2005-06-05  Peter Bartok  <pbartok@novell.com>
22028
22029         * Win32DnD.cs: Removed compilation warnings
22030
22031 2005-06-05  Peter Bartok  <pbartok@novell.com>
22032
22033         * Control.cs (CreateParams): Since we don't know if one of the
22034           properties we use is overridden, lets make sure if we fail accessing
22035           we continue with a backup plan
22036
22037 2005-06-05  Peter Bartok  <pbartok@novell.com>
22038
22039         * Win32DnD.cs:
22040           - Removed debug output
22041           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
22042             struct
22043           - Plugged resource leak
22044         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
22045           MS size
22046
22047 2005-06-05  Peter Bartok  <pbartok@novell.com>
22048
22049         * XplatUIWin32.cs: Removed DnD code
22050         * Win32DnD.cs: Implemented drop source and drop target functionality
22051
22052 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22053
22054         * UpDownBase.cs: remove duplicate addition of event, enable some code
22055         that was commented out.
22056         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
22057         Validate input when a key is pressed. It works fine now for every
22058         combination of Hexadecimal. Only missing some drawing love when sharing
22059         space with other controls.
22060
22061 2005-06-04  Peter Bartok  <pbartok@novell.com>
22062
22063         * Control.cs:
22064           - We need to pass a window for DragDrop, so enable callback events
22065           - Added DnD callback events when being a DragSource
22066         * XplatUI.cs (StartDrag): Added window handle argument
22067         * XplatUIDriver.cs (StartDrag): Added window handle argument
22068         * QueryContinueDragEventArgs: Made fields internally accessible so
22069           drivers can set them
22070         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
22071           can set them
22072
22073 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
22074
22075         * DataGridTextBoxColumn.cs: column text editing
22076         * DataGridTableStyle.cs: Respect columns styles created by the user
22077         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
22078         * DataGridBoolColumn.cs: bool column editing
22079         * DataGrid.cs: fixes to scrolling, properties, etc
22080         * DataGridTextBox.cs: handle keyboard
22081         * DataGridColumnStyle.cs: fixes
22082
22083 2005-06-02  Jackson Harper  <jackson@ximian.com>
22084
22085         * ImageListStreamer.cs: Somewhat broken implementation of
22086         GetObjectData. The RLE needs some work to match MS properly.
22087
22088 2005-06-02  Jackson Harper  <jackson@ximian.com>
22089
22090         * X11Dnd.cs: Attempting to keep at least one file in MWF
22091         monostyled.
22092
22093 2005-06-02  Peter Bartok  <pbartok@novell.com>
22094
22095         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
22096           that way
22097
22098 2005-06-02  Peter Bartok  <pbartok@novell.com>
22099
22100         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
22101         * XplatUI.cs: Added DoDragDrop() method
22102         * XplatUIDriver.cs: Added DoDragDrop() method
22103
22104 2005-06-02  Jackson Harper  <jackson@ximian.com>
22105
22106         * Splitter.cs: Implement BorderStyle.
22107
22108 2005-06-02  Jackson Harper  <jackson@ximian.com>
22109
22110         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
22111         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
22112         X11 using XDND.
22113
22114 2005-06-02  Peter Bartok  <pbartok@novell.com>
22115
22116         * DataObject.cs:
22117           - Added Data setter
22118           - Fixed broken insertion code for SetData, now also
22119             overwrites any existing entry of the same format name
22120         * Hwnd.cs: Added list of pointers that automatically gets
22121           freed when the window is disposed
22122         * XplatUI.cs: Call driver initialization method when loading
22123           a driver
22124         * Control.cs:
22125           - OnDragLeave takes EventArgs, not DragEventArgs
22126           - Added setting of WS_EX_ACCEPTFILES style when dropping is
22127             supported
22128           - Forces style update when drop state changes
22129         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
22130           not perfect since we cannot (yet) call the IDataObject.GetData()
22131           method, we keep getting 0x80004005 error, dunno why)
22132
22133 2005-06-02  Peter Bartok  <pbartok@novell.com>
22134
22135         * DragEventArgs.cs: Make fields internal so we can cache the
22136           object and re-set the fields from XplatUI
22137
22138 2005-06-02  Jackson Harper  <jackson@ximian.com>
22139
22140         * Control.cs: Add some internal methods so the DnD subsystem can
22141         raise DnD events. Also call into the driver when AllowDrop is set.
22142         * XplatUI.cs:
22143         * XplatUIDriver.cs: New method for setting whether or not a window
22144         is allowed to accept drag and drop messages.
22145                 
22146 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
22147         
22148         * ScrollBar.cs: Make sure that values sent in Scroll events
22149         are always between Maximum and Minimum.
22150
22151 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
22152
22153         * Menu.cs: Call MenuChanged when menuitem visibility has been
22154         changed.
22155         * MenuItem.cs: Rebuild menu when item is (not) visible.
22156         * MainMenu.cs: MainMenu has special MenuChanged.
22157         * Theme.cs: Caption and FrameBorderSize are not fixed.
22158         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
22159         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
22160         * XplatUIX11.cs,
22161         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
22162         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
22163
22164 2005-05-30  Jackson Harper  <jackson@ximian.com>
22165
22166         * DataFormat.cs: We can't statically initialize this stuff because
22167         it calls into the xplatui and could create a loop. So we lazy init
22168         it.
22169
22170 2005-05-28  Jackson Harper  <jackson@ximian.com>
22171
22172         * Control.cs: Proper implementation of Product(Name/Version).
22173
22174 2005-05-27  Jackson Harper  <jackson@ximian.com>
22175
22176         * DataObject.cs: Dont crash if no data is found.
22177
22178 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
22179         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
22180                 as per status page, guessing it should be set to true
22181
22182 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
22183
22184         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
22185         * DataGridTableStyle.cs: set proper formatting text, def header text
22186         * ThemeWin32Classic.cs: new themable paramaters
22187         * DataGridBoolColumn.cs: paint check box, get data, fixes
22188         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
22189         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
22190         * DataGridColumnStyle.cs: fixes
22191         * Theme.cs: new themable paramaters
22192                 
22193 2005-05-26  Peter Bartok  <pbartok@novell.com>
22194
22195         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
22196
22197 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
22198         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
22199
22200 2005-05-24  Peter Bartok  <pbartok@novell.com>
22201
22202         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
22203           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
22204           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
22205           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
22206           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
22207           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
22208           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
22209           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
22210           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
22211           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
22212           missing attributes, etc
22213         * DataGridPreferredColumnWidthTypeConverter.cs: Added
22214
22215 2005-05-24  Peter Bartok  <pbartok@novell.com>
22216
22217         * Help.cs: Added, implemented trivial functions, throws up MessageBox
22218           when user tries to get help
22219         * DataObject.cs, DataFormats.cs, LinkArea.cs,
22220           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
22221           to suppress warnings
22222         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
22223           avoid unreachable code warning
22224
22225 2005-05-20  Peter Bartok  <pbartok@novell.com>
22226
22227         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
22228
22229 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
22230
22231         * DataGridTextBoxColumn.cs: Basic painting methods
22232         * DataGridTableStyle.cs: Set table style in the column
22233         * ThemeWin32Classic.cs: Use Theme for colors
22234         * DataGridDrawingLogic.cs: Implement more drawing
22235         * DataGrid.cs: drawing, theming, enhacements, fixes
22236         * DataGridColumnStyle.cs: fixes, drawing
22237         * Theme.cs: theming for Datagrid
22238
22239 2005-05-20  Peter Bartok  <pbartok@novell.com>
22240
22241         * Cursor.cs: Implemented GetObjectData() method
22242
22243 2005-05-20  Peter Bartok  <pbartok@novell.com>
22244
22245         * Cursors.cs: Added setting of cursor name
22246         * Cursor.cs:
22247           - Implemented constructors
22248           - Implemented Draw and DrawStretched
22249           - Implemented Current property
22250           - Implemented == and != operators
22251           - Implemented Dispose()
22252           - Implemented ToString
22253           - Added missing attributes
22254         * XplatUIX11.cs:
22255           - Added missing reset for OverrideCursor when DoEvents is called
22256           - Fixed creation of cursor, logic was wrong
22257         * XplatUIWin32.cs:
22258           - Added missing reset for OverrideCursor when DoEvents is called
22259           - Fixed creation of cursor, bit arrays were swapped
22260         * Clipboard.cs: Removed obsolete MonoTODO attribute
22261
22262 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
22263
22264         * ComboBox.cs: fixes OnSelectedItemChanged
22265         * ControlBindingsCollection.cs: fixes item range check
22266
22267 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
22268
22269         * UpDownBase.cs:
22270                 - Calc preferred height properly
22271                 - Implement missing properties
22272                 
22273         * NumericUpDown.cs: Implement missing events
22274
22275 2005-05-19  Jackson Harper  <jackson@ximian.com>
22276
22277         * TabControl.cs: New method that resizes the tab pages before
22278         redrawing them. This as needed as the control is double buffered
22279         and sizing will not be recalculated unless ResizeTabPages is
22280         called.
22281         * TabPage.cs: Set base.Text instead of Text in the constructor so
22282         that UpdateOwner does not get called. Use the new Redraw method of
22283         TabControl instead of Refresh so the sizing is recalculated.
22284         * ThemeWin32Classic.cs: Draw the text for button tabs.
22285
22286 2005-05-19  Jackson Harper  <jackson@ximian.com>
22287
22288         * Control.cs: Paint control background images. Fix typo where
22289         PaintControlBackground was not getting called correctly.
22290
22291 2005-05-19  Peter Bartok  <pbartok@novell.com>
22292
22293         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
22294           I can investigate, apparently I broke FileDialog
22295
22296 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
22297
22298         * AxHost.cs: Some simple properties.
22299         * Control.cs: window must be accessible after ctor.
22300         * Form.cs: Added TransparencyKey property.
22301         * TextBoxBase.cs: Implemented Clear. Text property can be null.
22302         * XplatUIWin32.cs: SetBorderStyle implemented.
22303
22304 2005-05-18  Peter Bartok  <pbartok@novell.com>
22305
22306         * DataObject.cs: Entries are not global but particular to the
22307           DataObject, now it behaves that way
22308         * XplatUIWin32.cs: Implemented Clipboard methods
22309         * Clipboard.cs: Implemented
22310         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
22311         * XplatUIOSX.cs: Updated to final clipboard prototypes
22312         * XplatUIX11.cs: Implemented Clipboard methods
22313         * XplatUIDriver.cs: Updated to final clipboard prototypes
22314         * XplatUIStructs.cs:
22315           - Added BITMAPINFOHEADER struct
22316           - Added ClipboardFormats enum
22317         * X11Structs.cs:
22318           - Added ClipboardStruct
22319           - Added Atom enum items for clipboard types
22320           - Fixed atom types for Selection event structures
22321         * DataFormats.cs:
22322           - Added internal properties and methods for drivers to enumerate
22323             all known formats
22324           - Switched initialization method to allow drivers to assign their
22325             own IDs even for the MS predefined clipboard IDs
22326         * XplatUI.cs: Updated to final clipboard interface
22327
22328 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
22329         * PropertyGridView.cs: Fixed compiler warnings.
22330
22331 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
22332         * PropertyGrid.cs: Added some event calls
22333         * PropertyGridView.cs: Change drawing code to use double buffering
22334         * PropertyGridTextBox.cs: Changed Text property name
22335         * GridItem.cs: Added Bounds property.
22336         * GridEntry.cs: Added Bounds property.
22337
22338 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
22339
22340         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
22341         since GetType() may not return the correct type if the object is
22342         a remoting proxy.
22343
22344 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
22345
22346         * TreeNodeCollection.cs: fixes get/set item ranges
22347         
22348 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
22349
22350         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
22351                 
22352 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
22353
22354         * ComboBox.cs: Fix item range comparation
22355         * ListView.cs: Fix item range comparation
22356
22357 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
22358
22359         * FontDialog.cs:
22360           - Clear example panel when OnPaint is called
22361           - Better solution for displaying the example panel text
22362           - Select default indexes in the ListBoxes
22363
22364 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
22365
22366         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
22367
22368 2005-05-11  Peter Bartok  <pbartok@novell.com>
22369
22370         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
22371         * SelectionRangeConverter.cs: Implemented
22372         * PropertyGrid.cs: Fixed attribute value
22373         * Control.cs:
22374           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
22375           - Added Sebastien Pouliot's CAS Stack Propagation fixes
22376         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
22377           that's common to all drivers. First methods to go there are
22378           Sebastien Pouliot's CAS Stack Propagation helper methods
22379         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
22380           Sebastien Pouliot for CAS Stack Propagation
22381
22382 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
22383
22384         * OSXStructs.cs:
22385           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
22386
22387 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
22388
22389         * DataGridTextBoxColumn.cs: fixed some members
22390         * GridColumnStylesCollection.cs: indexed column is case insensitive
22391         * DataGridTableStyle.cs: fixes
22392         * ThemeWin32Classic.cs: add new theme parameter
22393         * Theme.cs: add new theme parameter
22394         * DataGridDrawingLogic.cs: Datagrid's drawing logic
22395         * DataGrid.cs: fixes, new internal properties, etc.
22396         * DataGridColumnStyle.cs: allows to set grid value
22397         *
22398
22399 2005-05-10  Peter Bartok  <pbartok@novell.com>
22400
22401         * AccessibleObject.cs:
22402           - Removed MonoTODO attribute on help, method is correct
22403           - Fixed Bounds property
22404         * AxHost.cs: Moved MonoTODO
22405         * ButtonBase.cs: Now setting AccessibleObject properties
22406         * RadioButton.cs: Setting proper AccessibleObject role
22407         * CheckBox.cs: Setting proper AccessibleObject role
22408         * ControlBindingsCollection.cs: Added properties, methods and attributes
22409         * DataFormats.cs: Fixed awkward internal API, and changed to enable
22410           userdefined DataFormats.Format items as well
22411         * ListControl.cs: Removed data_member from the public eye
22412         * OpenFileDialog.cs:
22413           - Made class sealed
22414           - Added missing attributes
22415         * SaveFileDialog.cs: Added missing attributes
22416         * ImageListStreamer.cs: Fixed code that caused warnings
22417         * LinkLabel.cs: Removed unreachable code
22418         * TreeView.cs: Fixed code that caused warnings
22419         * PropertyGridView.cs: Fixed code that caused warnings
22420         * GridColumnStylesCollection.cs: Added missing attributes
22421         * GridTableStylesCollection: Added missing attribute
22422         * PropertyManager: Added .ctor
22423         * SecurityIDType: Added
22424         * DataObject.cs: Implemented class
22425         * LinkArea.cs: Added missing attribute
22426
22427 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
22428
22429         * RadioButton.cs: call base method to allow to fire OnClick event
22430         * UpDownBase.cs: OnMouseUp call base method
22431         * CheckedListBox.cs: call base method before returning
22432         * TrackBar.cs: call base method before returning
22433         
22434
22435 2005-05-10  Peter Bartok  <pbartok@novell.com>
22436
22437         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
22438           for messages
22439
22440 2005-05-10  Peter Bartok  <pbartok@novell.com>
22441
22442         * DataFormats.cs: Implemented
22443         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
22444           XplatUIX11.cs: Added Clipboard APIs
22445         * XplatUIWin32.cs: Implemented Clipboard APIs
22446         * FolderBrowserDialog.cs: Added missing event, attributes
22447
22448 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
22449
22450         * CheckBox.cs: call base method to allow to fire OnClick event
22451
22452 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
22453
22454         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
22455
22456 2005-05-06  Peter Bartok  <pbartok@novell.com>
22457
22458         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
22459         * Screen.cs: Implemented
22460         * HelpNavigator.cs: Added
22461         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
22462           property
22463         * HelpProvider.cs: Implemented all we can do until we have a CHM
22464           help library (which means that "What's This" does work now)
22465
22466 2005-05-06  Jackson Harper  <jackson@ximian.com>
22467
22468         * XplatUIX11.cs: Fix waking up the main loop.
22469                 
22470 2005-05-05  Peter Bartok  <pbartok@novell.com>
22471
22472         * XplatUI.cs: Updated revision
22473         * Form.cs: Removed enless loop
22474         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
22475         * Label.cs (OnPaint): Added call to base.OnPaint()
22476         * ToolTip.cs: Made ToolTipWindow reusable for other controls
22477         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
22478         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
22479         * AxHost.cs: Added
22480         * ButtonBase.cs: Moved base.OnPaint() call to end of method
22481         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
22482           to ToolTip.ToolTipWindow for drawing and size methods; this allows
22483           reuse of ToolTipWindow by other controls
22484         * SizeGrip.cs: Moved base.OnPaint() call to end of method
22485         * XplatUIX11.cs: Now clipping drawing area (experimental)
22486         * PictureBox.cs: Moved base.OnPaint() call to end of method
22487         * Theme.cs: Fixed ToolTip abstracts to match new format
22488         * ErrorProvider.cs: Implemented
22489
22490 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
22491
22492         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
22493         * LinkLabel.cs:
22494                 - Adds cursors
22495                 - Handles focus
22496                 - Implements LinkBehavior
22497                 - Fixes many issues
22498
22499 2005-05-03  Jackson Harper  <jackson@ximian.com>
22500
22501         * ListView.cs: Calculate the scrollbar positioning on resize and
22502         paint, so they get put in the correct place.
22503
22504 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
22505
22506         * ColorDialogs.cs: The small color panels are now handled by
22507           SmallColorControl. This fixes drawing of the focus rectangle
22508           and adds a 3D border.
22509
22510 2005-05-03  Peter Bartok  <pbartok@novell.com>
22511
22512         * Control.cs: Modified version of Jonathan Chamber's fix for
22513           double-buffering
22514
22515 2005-05-03  Jackson Harper  <jackson@ximian.com>
22516
22517         * ListView.cs: Remove redraw variable. Control now handles whether
22518         or not a redraw needs to be done, and will only raise the paint
22519         event if redrawing is needed.
22520
22521 2005-05-03  Jackson Harper  <jackson@ximian.com>
22522
22523         * Splitter.cs: No decorations for the splitter form. Cache the
22524         hatch brush.
22525
22526 2005-05-03  Jackson Harper  <jackson@ximian.com>
22527
22528         * TreeView.cs: Use dashed lines to connect nodes. Use the
22529         ControlPaint method for drawing the focus rect instead of doing
22530         that in treeview.
22531
22532 2005-05-02  Peter Bartok  <pbartok@novell.com>
22533
22534         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
22535
22536 2005-04-29  Jackson Harper  <jackson@ximian.com>
22537
22538         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
22539         entire image buffer. Just clear the clipping rectangle.
22540
22541 2005-04-29  Jackson Harper  <jackson@ximian.com>
22542
22543         * ThemeWin32Classic.cs: Don't draw list view items that are
22544         outside the clipping rectangle.
22545
22546 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
22547
22548         * ListBox.cs: added horizontal item scroll
22549
22550 2005-04-29  Jackson Harper  <jackson@ximian.com>
22551
22552         * ThemeWin32Classic.cs: Remove some old debug code that was
22553         causing flicker with the new double buffering code.
22554
22555 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
22556
22557         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
22558         behave like combobox and comboboxlist (still not sure if this is
22559         correct though).
22560
22561 2005-04-28  Jackson Harper  <jackson@ximian.com>
22562
22563         * ThemeWin32Classic.cs: Don't fill the middle of progress
22564         bars. This fills areas outside of the clip bounds that don't need
22565         to be filled.
22566
22567 2005-04-28  Jackson Harper  <jackson@ximian.com>
22568
22569         * Control.cs: Don't expose functionality to touch the image buffers.
22570         * ProgressBar.cs:
22571         * ListView.cs: We do not need to (and no longer can) manipulate
22572         the image buffers directly. All of this is handled by Control.
22573
22574 2005-04-28  Peter Bartok  <pbartok@novell.com>
22575
22576         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
22577           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
22578           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
22579
22580 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
22581
22582         * Combobox:
22583                 - Adjust control's height for non-simple comboboxes (bug fix)
22584                 - Remove dead code
22585         * MenuAPI.cs: remove unused var
22586         * ScrollBar.cs: remove unsed var
22587                  
22588         * ListBox.cs: unselect items when clearing
22589
22590 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
22591
22592         * ListControl.cs: honors OnPositionChanged and default Selected Item
22593         * ListBox.cs: unselect items when clearing
22594
22595 2005-04-27  Jackson Harper  <jackson@ximian.com>
22596
22597         * X11Keyboard.cs: Initialize a default keyboard and give a warning
22598         if a "correct" keyboard is not found. This will make us not crash,
22599         but might give some users bad keyboard layouts...seems to be the
22600         same thing rewind does.
22601
22602 2005-04-27  Jackson Harper  <jackson@ximian.com>
22603
22604         * BindingManagerBase.cs: Attach the current/position changed
22605         handlers to their respective events.
22606
22607 2005-04-27  Jackson Harper  <jackson@ximian.com>
22608
22609         * Control.cs: Make sure that the first WM_PAINT does a full draw,
22610         not just a blit.
22611         * ThemeWin32Classic.cs: Don't fill the background for picture
22612         boxes. This could overright user drawing.
22613         * ComboBox.cs: Just fill the clipping rect not the entire client
22614         rect when drawing the background. This prevents pieces of the
22615         image buffer from getting overwritten and is theoretically faster.
22616
22617 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
22618
22619         * ComboBox.cs: Databinding support fixes, fire missing events
22620         * ListControl.cs: implement missing methods and properties, fixes
22621         * ThemeWin32Classic.cs: Databiding support on Drawing
22622         * CheckedListBox.cs: Databinding support fixes, fire missing events
22623         * ListBox.cs: Databinding support fixes, fire missing events
22624         
22625 2005-04-25  Peter Bartok  <pbartok@novell.com>
22626
22627         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
22628
22629 2005-04-25  Jackson Harper  <jackson@ximian.com>
22630
22631         * TreeView.cs: Use the horizontal scrollbars height not width when
22632         determining how much of the client area is available.
22633
22634 2005-04-25  Jackson Harper  <jackson@ximian.com>
22635
22636         * Control.cs: Double buffering is handled differently now. As per
22637         the spec, the extra buffer is created in the WM_PAINT message and
22638         passed down to the control's drawing code.
22639         * GroupBox.cs:
22640         * Label.cs:
22641         * CheckBox.cs:
22642         * ProgressBar.cs:
22643         * RadioButton.cs:
22644         * ColorDialog.cs:
22645         * ComboBox.cs:
22646         * PropertyGridView.cs:
22647         * UpDownBase.cs:
22648         * MessageBox.cs:
22649         * MenuAPI.cs:
22650         * ListView.cs:
22651         * ButtonBase.cs:
22652         * SizeGrip.cs:
22653         * ScrollBar.cs:
22654         * ListBox.cs:
22655         * TrackBar.cs:
22656         * ToolBar.cs:
22657         * PictureBox.cs:
22658         * DateTimePicker.cs:
22659         * StatusBar.cs:
22660         * TreeView.cs: Update to new double buffering system.
22661         * MonthCalendar.cs: Uncomment block, as Capture is now
22662         working. Update to new double buffering
22663         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
22664         * PaintEventArgs.cs: New internal method allows us to set the
22665         graphics object. This is used for double buffering.
22666         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
22667         rectangle. The internal paint_area var has been removed from
22668         StatusBar. The clipping rect should be used instead.
22669         * Theme.cs: Give the PictureBox drawing method a clipping rect.
22670         * TabPage.cs: The RefreshTabs method was removed, so just call the
22671         tab controls Refresh method now.
22672         * TabControl.cs: Update to new double buffering. Make sure the
22673         handle is created before sizing the tab pages, otherwise we will
22674         get stuck in a loop.
22675
22676 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
22677
22678         * LinkLabel.cs: Fix typo, bug #74719; patch
22679           from Borja Sanchez Zamorano
22680
22681 2005-04-22  Jackson Harper  <jackson@ximian.com>
22682
22683         * TreeNode.cs: Implement Handle stuff.
22684         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
22685
22686 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
22687
22688         * DataGridTextBoxColumn.cs: call base constructors, fixes
22689         * GridColumnStylesCollection.cs: missing events, methods, and functionality
22690         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
22691         * DataGridTableStyle.cs: implements create default column styles
22692         * DataGridBoolColumn.cs: which types can handle
22693         * DataGrid.cs: missing methods, fixes, new functionality
22694         * DataGridColumnStyle.cs: fixes
22695
22696 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
22697         * FolderBrowserDialog.cs:
22698         - Use a thread to fill the TreeView
22699         - Adjusted some sizes
22700
22701 2005-04-19  Peter Bartok  <pbartok@novell.com>
22702
22703         * LinkLabel.cs: (Re-)create the pieces when setting the Text
22704           property. Fixes #74360.
22705
22706 2005-04-19  Jackson Harper  <jackson@ximian.com>
22707
22708         * XEventQueue.cs: Lock when getting the lockqueue size.
22709         * PictureBox.cs: Call base OnPaint
22710         
22711 2005-04-19  Peter Bartok  <pbartok@novell.com>
22712
22713         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
22714           messages were no longer being processed (this broke BeginInvoke)
22715
22716           
22717 2005-04-18  Jackson Harper  <jackson@ximian.com>
22718
22719         * TreeView.cs: buglet that caused node images to get drawn
22720         regardless of whether or not they were in the clipping rectangle.
22721
22722 2005-04-18  Jackson Harper  <jackson@ximian.com>
22723
22724         * CurrencyManager.cs: There are four rules for GetItemProperties:
22725         - If the type is an array use the element type of the array
22726         - If the type is a typed list, use the type
22727         - If the list contains an Item property that is not an object, use
22728         that property
22729         - use the first element of the list if there are any elements in
22730         the list.
22731         
22732 2005-04-17  Jackson Harper  <jackson@ximian.oom>
22733
22734         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
22735         click. This handles offsets for scrolling properly and reduces
22736         memory. Also fixed GetNode to not offset now that TopNode works
22737         properly.
22738         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
22739         
22740 2005-04-17  Jackson Harper  <jackson@ximian.com>
22741
22742         * CursorConverter.cs: Initial implementation.
22743
22744 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
22745
22746         * ListControl.cs: work towards complex data binding support on ListControl
22747         * CurrencyManager.cs: work towards complex data binding support on ListControl
22748         * ListBox.cs: work towards complex data binding support on ListControl
22749
22750
22751 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
22752
22753         * GridTableStylesCollection.cs: fixes name and constructor
22754         * DataGridTableStyle.cs: fixes
22755         * DataGridBoolColumn.cs: fixes names and constructors
22756         * DataGrid.cs: define methods and properties. Some init implementations
22757         * DataGridCell.cs: define methods and properties. Some init implementations
22758         * GridTablesFactory.cs: Define methods and properties
22759
22760 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
22761
22762         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
22763         graphics port changes.  We still want the coordinates in global screen
22764         coordinates.
22765
22766 2005-04-14  Jackson Harper  <jackson@ximian.com>
22767
22768         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
22769         check plus minus or checkbox clicks unless those features are enabled.
22770
22771 2005-04-14  Jackson Harper  <jackson@ximian.com>
22772
22773         * TreeView.cs: Add methods for setting the top and bottom visible
22774         nodes. TreeNode::EnsureVisible uses these methods.
22775         * TreeNode.cs: Implement EnsureVisible
22776
22777 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
22778
22779         * Form.cs: Pospone menu assignation if the window has not been created yet
22780         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
22781         size and position
22782
22783 2005-04-12  Jackson Harper  <jackson@ximian.com>
22784
22785         * TreeView.cs: Set the TopNode properly when scrolling
22786         occurs. This has the added benifit of reducing the amount of
22787         walking that needs to be done when drawing. Also removed an old
22788         misleading TODO.
22789         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
22790         
22791 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
22792
22793         * Timer.cs: fixes interval setting when the timer is already enabled
22794         
22795 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
22796
22797         * FolderBrowserDialog.cs: First approach
22798
22799 2005-04-09  Peter Bartok  <pbartok@novell.com>
22800
22801         * FolderBrowserDialog: Added
22802
22803 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
22804
22805         * LinkLabel.cs: move drawing code into the theme
22806         * ThemeWin32Classic.cs: drawing code and painting background bugfix
22807         * Theme.cs: define DrawLinkLabel method
22808
22809 2005-04-05  Jackson Harper  <jackson@ximian.com>
22810
22811         * BindingContext.cs: Use weak references so these bad actors don't
22812         stay alive longer then they need to.
22813
22814 2005-04-05  Jackson Harper  <jackson@ximian.com>
22815
22816         * ListControl.cs: Basic implementation of complex databinding.
22817         * ComboBox.cs:
22818         * ListBox.cs: Add calls to ListControl databinding methods.
22819
22820 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
22821
22822         * FileDialog.cs:
22823           - Don't change PopupButtonState to Normal when the
22824             PopupButton gets pressed several times.
22825           - Renamed ButtonPanel to PopupButtonPanel
22826
22827 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
22828
22829         * ColorDialog.cs: Use cached objects instead of creating them
22830         * LinkLabel.cs: Use cached objects instead of creating them
22831         * Splitter.cs: Use cached objects instead of creating them
22832         * FontDialog.cs: Use cached objects instead of creating them
22833         * PropertyGridView.cs: Use cached objects instead of creating them
22834         * MessageBox.cs: Use cached objects instead of creating them
22835         * FileDialog.cs: Use cached objects instead of creating them
22836         * ThemeWin32Classic.cs: Use cached objects instead of creating them
22837         * TreeView.cs: Use cached objects instead of creating them
22838         
22839 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
22840
22841         * Control.cs: use Equals to compare the font since no == op
22842         * ScrollBar.cs: use Equals to compare the font since no == op
22843
22844 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
22845
22846         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
22847
22848 2005-04-01  Jackson Harper  <jackson@ximian.com>
22849
22850         * Binding.cs: Implement IsBinding.
22851         * BindingManagerBase.cs:
22852         * PropertyManager.cs:
22853         * CurrencyManager.cs: Add IsSuspended property.
22854
22855 2005-04-01  Jackson Harper  <jackson@ximian.com>
22856
22857         * Binding.cs: Had some IsAssignableFrom calls backwards.
22858
22859 2005-04-01  Jackson Harper  <jackson@ximian.com>
22860
22861         * Binding.cs: Handle null data members when pulling data.
22862         * PropertyManager.cs: Handle the data member being a property that
22863         does not exist.
22864
22865 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
22866
22867         * DataGridTextBoxColumn.cs: fixes signature
22868         * DataGrid.cs: calls right constructor
22869
22870 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
22871
22872         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
22873         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
22874         * GridTableStylesCollection.cs: implements GridTableStylesCollection
22875         * DataGridTableStyle.cs: implements DataGridTableStyle
22876         * DataGridBoolColumn.cs: implements DataGridBoolColumn
22877         * DataGridTextBox.cs: implements DataGridTextBox
22878         * DataGridColumnStyle.cs: implements DataGridColumnStyle
22879
22880 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
22881
22882         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
22883
22884 2005-03-29  Peter Bartok  <pbartok@novell.com>
22885
22886         * Application.cs:
22887           - Properly implemented CompanyName property
22888           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
22889             returns a path that includes CompanyName, ProductName and
22890             Version (fixes bug #70330)
22891
22892 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
22893
22894         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
22895           fixes bug #72588.
22896
22897 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
22898
22899         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
22900         
22901           - Added ReadOnly CheckBox
22902           - Further refactoring: moved some code from Open-/SaveFileDialog
22903             to FileDialog
22904
22905 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
22906
22907         * OpenFileDialog.cs: Fixed CheckFileExists
22908         * FileDialog.cs:
22909           Moved FileView and DirComboBox outside FileDialog class.
22910           They can now be used outside FileDialog
22911
22912 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
22913
22914         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
22915         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
22916
22917 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
22918
22919         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
22920           - Added missing CreatePrompt property in SaveDialog
22921           - Overall SaveDialog handling should be better now
22922           - Added non standard ShowHiddenFiles property
22923           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
22924           - Added InitialDirectory and RestoreDirectory support
22925
22926 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
22927
22928         * FileDialog.cs: Made dirComboBox usable
22929
22930 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
22931
22932         * FileDialog.cs: Added Filter support (case sensitiv)
22933
22934 2005-03-24  Jackson Harper  <jackson@ximian.com>
22935
22936         * TabControl.cs: Need a couple more pixels for the lines.
22937
22938 2005-03-23  Jackson Harper  <jackson@ximian.com>
22939
22940         * TabControl.cs: Give the tab page focus when it is selected.
22941
22942 2005-03-23  Jackson Harper  <jackson@ximian.com>
22943
22944         * TabControl.cs: Account for the drawing of tabs borders when
22945         invalidating. If the slider was clicked dont do click detection on
22946         the tabs.
22947
22948 2005-03-23  Jackson Harper  <jackson@ximian.com>
22949
22950         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
22951
22952 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
22953
22954         * CategoryGridEntry.cs: Added
22955         * GridItem.cs: Added helper properties
22956         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
22957         * GridEntry.cs: Updated code for collection
22958         * PropertyGrid.cs: Cleaned up some formatting
22959         * PropertyGridView.cs: Added drop down functionality for enums.
22960         * GridItemCollection.cs: Added enumerator logic
22961         * PropertyGridEntry.cs: Added
22962
22963 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
22964
22965         * FileDialog.cs:
22966           - Removed unnecessary commented code
22967           - Fixed handling for entering the filename manually in the combobox
22968
22969 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
22970
22971         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
22972
22973 2005-03-18  Peter Bartok  <pbartok@novell.com>
22974
22975         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
22976           them being touching the border
22977
22978 2005-03-18  Peter Bartok  <pbartok@novell.com>
22979
22980         * TextControl.cs: Quick hack to center text better
22981
22982 2005-03-18  Peter Bartok  <pbartok@novell.com>
22983
22984         * ControlPaint.cs:
22985           - Don't throw NotImplemented exceptions, just print a notice once
22986             instead (requested by Miguel). This makes running existing SWF
22987             apps a bit easier
22988         * Control.cs:
22989           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
22990           - Added context menu trigger on right click
22991         * Panel.cs: Trigger invalidate on resize
22992         * StatusBar.cs:
22993           - Removed old double-buffer drawing
22994           - Added ResizeRedraw style to force proper update of statusbar
22995         * ListView.cs:
22996           - Removed debug output
22997         * ThemeWin32Classic.cs:
22998           - Fixed drawing of status bar, now draws Text property if there
22999             are no defined panels
23000
23001 2005-03-18  Jackson Harper  <jackson@ximian.com>
23002
23003         * ImageList.cs: When the image stream is set pull all the images
23004         from it.
23005         * ImageListStreamer.cs: Implement reading image list streams.
23006
23007 2005-03-18  Peter Bartok  <pbartok@novell.com>
23008
23009         * ThemeWin32Classic.cs (DrawPictureBox):
23010           - Fixed calculations for centered drawing
23011           - Fixed drawing for normal mode, not scaling the image on normal
23012
23013 2005-03-18  Peter Bartok  <pbartok@novell.com>
23014
23015         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
23016           textbox
23017         * FileDialog.cs:
23018           - Made Open/Save button the accept button for FileDialog
23019           - Tied the cancel button to the IButtonControl cancel button
23020           - Save/Open now properly builds the pathname
23021           - Now handles user-entered text
23022           - Preventing crash on right-click if no item is selected
23023           - Fixed Text property, now uses contents of textbox
23024           - Fixed SelectedText property, now just returns the text part that
23025             is selected in the text box
23026
23027 2005-03-18  Jackson Harper  <jackson@ximian.com>
23028
23029         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
23030         rect, make sure to de-adjust the interior rect after drawing the
23031         tab text.
23032
23033 2005-03-18  Peter Bartok  <pbartok@novell.com>
23034
23035         * MenuAPI.cs: Remove menu *before* executing selected action to
23036           prevent the menu from 'hanging around'
23037           
23038 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
23039
23040         * XplatUIOSX.cs: Implemented WorkingArea property
23041
23042 2005-03-17  Peter Bartok  <pbartok@novell.com>
23043
23044         * XplatUIX11.cs: Fixed menu coord calculations
23045         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
23046           for calculating offsets
23047
23048 2005-03-17  Peter Bartok  <pbartok@novell.com>
23049
23050         * Hwnd.cs: Do not consider menu presence for default client
23051           rectangle location/size
23052         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
23053           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
23054           translation functions
23055         * FileDialog.cs: Fixed (what I presume is a) typo
23056
23057 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
23058
23059         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
23060           X access (avoids X-Async errors)
23061
23062 2005-03-16  Jackson Harper  <jackson@ximian.com>
23063
23064         * TabControl.cs: Raise the SelectedIndexChanged event.
23065
23066 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
23067
23068         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
23069           - Removed vertical ToolBar and replaced it with a custom panel
23070             (desktop and home button already work)
23071           - Added Help button (some controls get resized or relocated then)
23072           - Draw correct text depending on Open or Save.
23073           - Fixed some typos...
23074
23075 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
23076
23077         * ScrollBar.cs:
23078           - Only change Maximum and Minimum when need it (bug fix)
23079
23080 2005-03-15  Peter Bartok  <pbartok@novell.com>
23081
23082         * Form.cs: Use Handle for icon, to trigger creation if
23083           the window does not yet exist
23084         * Control.cs:
23085           - CanSelect: Slight performance improvement
23086           - Focus(): Preventing possible recursion
23087           - Invalidate(): Removed ControlStyle based clear flag setting
23088           - WM_PAINT: fixed logic for calling OnPaintBackground
23089           - WM_ERASEBKGND: Fixed logic, added call to new driver method
23090             EraseWindowBackground if the control doesn't paint background
23091         * XplatUIWin32.cs:
23092           - Moved EraseWindowBackground() method to internal methods
23093           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
23094             is sent via SendMessage on BeginPaint call on Win32
23095         * XplatUIX11.cs:
23096           - Added EraseWindowBackground() method
23097           - No longer sends WM_ERASEBKGND on .Expose, but on call to
23098             PaintEventStart, which more closely matches Win32 behaviour
23099           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
23100           - Fixed SetFocus() to properly deal with client and whole windows
23101         * Hwnd.cs: Added ErasePending property
23102         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
23103         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
23104
23105 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
23106
23107         * XplatUIOSX.cs:
23108           - Fix hard loop when timers exist.
23109           - Fix bugs with middle and right click for 3 button mice.
23110
23111 2005-03-11  Peter Bartok  <pbartok@novell.com>
23112
23113         * XplatUIX11.cs:
23114           - get_WorkingArea: Need to call X directly, GetWindowPos only
23115             returns cached data now
23116           - Added sanity check to GetWindowPos hwnd usage
23117
23118 2005-03-11  Jackson Harper  <jackson@ximian.com>
23119
23120         * BindingManagerBase.cs: This method isn't used anymore as
23121         PullData now updates the data in the control.
23122
23123 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
23124
23125         * Form.cs: fixes menu drawing on X11
23126         * MenuAPI.cs:  fixes menu drawing on X11
23127
23128 2005-03-11  Peter Bartok  <pbartok@novell.com>
23129
23130         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
23131           from Jonathan Gilbert; should fix bug #73606
23132         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
23133           in Screen coordinates. Thanks, Jordi.
23134         * Form.cs: Added missing attribute
23135
23136 2005-03-11  Peter Bartok  <pbartok@novell.com>
23137
23138         * Form.cs:
23139           - Rudimentary Mdi support
23140           - Removed outdated FormParent code
23141           - Implemented lots of missing properties and methods, still missing
23142             transparency support
23143           - Added missing attributes
23144           - Implemented support for MaximumBounds
23145           - Added firing of various events
23146         * XplatUI.cs: Added SetIcon() method
23147         * XplatUIDriver.cs: Added SetIcon() abstract
23148         * XplatUIOSX.cs: Stubbed out SetIcon() method
23149         * XplatUIX11.cs:
23150           - Implemented SetIcon() support
23151           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
23152           - Switched to unix line endings
23153         * XplatUIWin32.cs:
23154           - Made POINT internal so for can access it as part of MINMAX
23155           - Implemented SetIcon() support
23156           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
23157             native Mdi support again, might have to go managed)
23158         * Control.cs: Now fires the StyleChanged event
23159         * MdiClient.cs: Added; still mostly empty
23160
23161 2005-03-10  Peter Bartok  <pbartok@novell.com>
23162
23163         * SaveFileDialog.cs: Added emtpy file
23164
23165 2005-03-08  Peter Bartok  <pbartok@novell.com>
23166
23167         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
23168           in turn triggers OnCreateContro) when creating a handle for the
23169           first time.
23170         * TextControl.cs: Fixed endless loop in certain cases when
23171           replacing the current selection
23172
23173 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
23174
23175         * ScrollBar.cs:
23176           - Honors NewValue changes in Scroll events allowing apps to change it
23177           - Adds First and Last Scroll events
23178           - Fixes Thumb events
23179
23180 2005-03-07  Peter Bartok  <pbartok@novell.com>
23181
23182         * Hwnd.cs: Added DefaultClientRectangle property
23183         * XplatUI.cs: Now using the X11 driver Where() method, which provides
23184           more detailed debug information
23185         * XplatUIX11.cs:
23186           - Fixed size-change feedback loop, where we would pull an old size
23187             off the queue and mistakenly change our window's size to an
23188             earlier value
23189           - Now compressing ConfigureNotify events, to reduce looping and
23190             redraw issues
23191         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
23192           is called
23193
23194 2005-03-07  Jackson Harper  <jackson@ximian.com>
23195
23196         * Binding.cs: Push data pushes from data -> property. Check if the
23197         property is readonly when attempting to set it.
23198
23199 2005-03-07  Jackson Harper  <jackson@ximian.com>
23200
23201         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
23202         instead of IsSubclassOf. Pulling data now sets the value on the
23203         control.
23204         * PropertyManager.cs:
23205         * CurrencyManager.cs: Just need to pull data when updating now,
23206         because PullData will set the value on the control.
23207
23208 2005-03-04  Jackson Harper  <jackson@ximian.com>
23209
23210         * Binding.cs: Implement data type parsing and converting on pulled
23211         data. TODO: Are there more ways the data can be converted?
23212
23213 2005-03-04  Jackson Harper  <jackson@ximian.com>
23214
23215         * Binding.cs: Support <Property>IsNull checks. Also bind to the
23216         controls Validating method so we can repull the data when the
23217         control loses focus.
23218
23219 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
23220
23221         * ColumnHeader.cs:
23222           - Fixes null string format
23223           
23224         * ListView.cs:
23225           - Adds enum type checks
23226           - Fixes redrawing and recalc need after changing some properties
23227           - Fixes on focus_item set after the event
23228           - Fixes adding columns after the control has been created
23229           
23230         * ThemeWin32Classic.cs:
23231           - Fixes CheckBox focus rectangle
23232           - Fixes ColumnHeader drawing
23233
23234
23235 2005-03-03  Jackson Harper  <jackson@ximian.com>
23236
23237         * Binding.cs: Bind to <Property>Changed events so we can detect
23238         when properties are changed and update the data.
23239
23240 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
23241
23242         * ImageList.cs:
23243           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
23244           - Fixes ImageList constructor with ImageList container
23245           - Fixes image scaling (wrong parameters at DrawImage)
23246
23247 2005-02-02  Jackson Harper  <jackson@ximian.com>
23248
23249         * Binding.cs: Make property searches case-insensitive. Eliminate
23250         some duplicated code.
23251
23252 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
23253
23254         * ComboBox.cs:
23255                 - Handle focus event
23256                 - Fix scrollbar events
23257                 - Discard highlighted item if remove it
23258                 - Fixes SelectedItem with strings
23259
23260 2005-03-01  Peter Bartok  <pbartok@novell.com>
23261
23262         * Control.cs:
23263           - Fixed Visible property, now follows (once again) parent chain
23264             to return false if any control in the chain is visible=false
23265           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
23266           - Fixed several places where is_visible instead of Visible was used
23267           - Implemented FIXME related to focus selection when setting focused
23268             control to be invisible
23269
23270         * XplatUIWin32.cs: Now using proper method to find out if window is
23271           visible. Thanks to Jordi for pointing it out
23272
23273 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
23274
23275         * ComboBox.cs: show/hide scrollbar instead of creating it
23276
23277 2005-02-27  Jackson Harper  <jackson@ximian.com>
23278
23279         * CurrencyManager.cs: Add PositionChanged stuff.
23280
23281 2005-02-27  Peter Bartok  <pbartok@novell.com>
23282
23283         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
23284         * XplatUIOSX.cs: Added GetMenuOrigin() stub
23285         * XplatUIWin32.cs: Implemented GetMenuOrigin()
23286         * XplatUIX11.cs:
23287           - Implemented GetMenuDC()
23288           - Implemented GetMenuOrigin()
23289           - Implemented ReleaseMenuDC()
23290           - Implemented generation of WM_NCPAINT message
23291           - Implemented generation and handling of WM_NCCALCSIZE message
23292         * Form.cs: Added debug helper message for Jordi's menu work
23293         * Hwnd.cs:
23294           - Modified ClientRect property; added setter, fixed getter to handle
23295             setting of ClientRect
23296           - Added MenuOrigin property
23297
23298 2005-02-26  Peter Bartok  <pbartok@novell.com>
23299
23300         * XplatUIX11.cs:
23301           - Destroys the caret if a window that's being destroyed contains it
23302           - Ignores expose events coming from the X11 queue for windows that
23303             already are destroyed
23304           - Now uses the proper variable for handling DestroyNotify, before we
23305             marked the wrong window as destroyed
23306           - Improved/added some debug output
23307
23308 2005-02-26  Peter Bartok  <pbartok@novell.com>
23309
23310         * X11Keyboard.cs: Fixes to work on 64bit systems
23311
23312 2005-02-26  Peter Bartok  <pbartok@novell.com>
23313
23314         * Control.cs:
23315           - Now calling OnHandleDestroyed from DestroyHandle()
23316             instead of Dispose()
23317           - Removed bogus call to controls.Remove() from DestroyHandle()
23318
23319 2005-02-26  Peter Bartok  <pbartok@novell.com>
23320
23321         * Control.cs: Properly destroy child windows when our handle is
23322           destroyed
23323
23324 2005-02-25  Peter Bartok  <pbartok@novell.com>
23325
23326         * XplatUI.cs:
23327           - Added 'DriverDebug' define to allow tracing XplatUI API calls
23328           - Alphabetized Static Methods and Subclasses
23329
23330         * XplatUIX11.cs:
23331           - Added XException class to allow custom handling of X11 exceptions
23332           - Created custom X11 error handler, tied into XException class
23333           - Added support for MONO_XEXCEPTIONS env var to allow the user
23334             to either throw an exception on X errors or continue running
23335             after displaying the error
23336           - Added handling of DestroyNotify message
23337           - Added handler for CreateNotify message (still disabled)
23338           - Improved (tried to at least) Where method to provide file and lineno
23339         * X11Structs.cs:
23340           - Added XErrorHandler delegate
23341           - Added XRequest enumeration (to suppor translation of errors)
23342
23343 2005-02-25  Jackson Harper  <jackson@ximian.com>
23344
23345         * PropertyManager.cs: Implement editing features
23346         * CurrencyManager.cs:
23347         * Binding.cs: First attempt at UpdateIsBinding
23348         * BindingManagerBase.cs: Call UpdateIsBinding before
23349         pushing/pulling data.
23350
23351 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
23352
23353         * MenuAPI.cs: Respect disabled items
23354         * ThemeWin32Classic.cs
23355                 - Caches ImageAttributes creation for DrawImageDisabled
23356                 - Fixes vertical menu line drawing
23357                 - Draws disabled arrows in disable menu items
23358
23359 2005-02-24  Peter Bartok  <pbartok@novell.com>
23360
23361         * Hwnd.cs:
23362           - Added UserData property to allow associating arbitrary objects
23363             with the handle
23364           - Fixed leak; now removing Hwnd references from static windows array
23365         * XplatUIWin32.cs:
23366           - Fixed Graphics leak in PaintEventEnd
23367           - Removed usage of HandleData, switched over to Hwnd class
23368         * HandleData.cs: Removed, obsoleted by Hwnd.cs
23369
23370 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
23371
23372         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
23373         * ScrollBar.cs: Fixes bug
23374         * TrackBar.cs: removes death code, clipping, mimize refreshes,
23375          keyboard navigation enhancements
23376
23377 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
23378
23379         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
23380         * GroupBox.cs: Add control styles
23381         * Label.cs: Add control styles
23382         * UpDownBase.cs: Add control styles
23383         * ListBox.cs: Add control styles
23384         * XplatUIWin32.cs: Fixes wrong parameter order
23385
23386
23387 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
23388
23389         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
23390
23391 2005-02-23  Jackson Harper  <jackson@ximian.com>
23392
23393         * PropertyManager.cs: Implement property binding. This doesn't
23394         seem to work yet though as (I think) there are some bugs in
23395         System.ComponentModel.PropertyDescriptor.
23396         * BindingContext.cs: Use new PropertyManager constructor.
23397
23398 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
23399
23400         * ProgressBar.cs: use clip region in ProgressBar
23401         * ThemeWin32Classic.cs: use clip region in ProgressBar
23402
23403 2004-02-22  Jackson Harper  <jackson@ximian.com>
23404
23405         * BindingsCollection.cs: Remove some debug code.
23406
23407 2005-02-22  Jackson Harper  <jackson@ximian.com>
23408
23409         * BindingContext.cs:
23410         * ControlBindingsCollection.cs:
23411         * CurrencyManager.cs:
23412         * Binding.cs:
23413         * BindingManagerBase.cs: Initial implementation
23414         * BindingsCollection.cs: Add an internal contains method that the
23415         BindingManagerBase uses to ensure bindings aren't added twice to
23416         the collection.
23417         * PropertyManager.cs: Stubbed out.
23418         * Control.cs:
23419         * ContainerControl.cs: Hook up databinding
23420         
23421 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
23422
23423         * XplatUIOSX.cs:
23424           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
23425           Fixed Invalidate/Update chain.
23426           Fixed tons of other minor bugs (this is almost a complete rewrite).
23427
23428 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
23429
23430         * ComboBox.cs: do subcontrol creation when the control is created
23431
23432 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
23433
23434         * Label.cs: fixes image drawing (image and imagelist)
23435         * ThemeWin32Classic.cs: cache brushes
23436         
23437 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
23438
23439         * Form.cs: Move menu drawing code to Theme class
23440         * ComboBox.cs: Move ComboBox drawing code to Theme class
23441         * MenuItem.cs: Move menu drawing code to Theme class
23442         * MenuAPI.cs: Move menu drawing code to Theme class
23443         * ThemeWin32Classic.cs: New methods
23444         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
23445         * ListBox.cs: Move Listbox drawing code to Theme class
23446         * Theme.cs: New methods
23447
23448 2005-02-20  Peter Bartok  <pbartok@novell.com>
23449
23450         * Control.cs:
23451           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
23452             only process mnemonics on those)
23453           - Fixed event sequence for key handling; first calling
23454             ProcessKeyEventArgs now
23455         * TextBoxBase.cs:
23456           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
23457             for processing non-character keys
23458           - Fixed WM_CHAR to generate proper event sequence before processing
23459         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
23460           generation
23461
23462 2005-02-19  Peter Bartok  <pbartok@novell.com>
23463
23464         * UserControl.cs: Added TextChanged event; added attributes
23465         * SizeGrip.cs: Implemented resizing and optional display of grip
23466         * Form.cs: Fixed attribute
23467         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
23468           Changed meaning of ScrollWindow bool argument; instead of the
23469           clear attribute (which will be true usually anyway), it gives the
23470           option of moving child controls as well.
23471         * XplatUIX11.cs:
23472           - Changed to match new ScrollWindow argument
23473           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
23474             now handles the implicit parent window a WM puts around us
23475         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
23476           to work)
23477         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
23478         * TreeView.cs: Adjusted to new ScrollWindow arguments
23479
23480 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
23481
23482         * Form.cs: Menu integration with non-client area
23483         * MenuItem.cs: Menu integration with non-client area
23484         * MenuAPI.cs: Menu integration with non-client area
23485
23486 2005-02-18  Peter Bartok  <pbartok@novell.com>
23487
23488         * MethodInvoker.cs: Added
23489         * MdiLayout.cs: Added
23490         * SendKeys.cs: Started implementation
23491         * ErrorIconAlignment.cs: Added
23492
23493 2005-02-18  Peter Bartok  <pbartok@novell.com>
23494
23495         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
23496         * Form.cs: Added handling for Menu-related Non-client messages
23497
23498 2005-02-17  Peter Bartok  <pbartok@novell.com>
23499
23500         * UpDownBase.cs: Fixed typo, compilation errors
23501         * DomainUpDown.cs: Fixed attribute value
23502
23503 2005-02-16  Miguel de Icaza  <miguel@novell.com>
23504
23505         * UpDownBase.cs: Attach entry events.
23506         Propagate events.
23507         Add ForeColor property, Focused, InterceptArrowKeys (interception
23508         does not work yet).
23509
23510 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
23511
23512         * Form.cs:
23513                 - Redraw non client are on Setmenu
23514                 - Calc proper menu starting point
23515
23516 2005-02-17  Peter Bartok  <pbartok@novell.com>
23517
23518         * Application.cs: Fixed message_filter check
23519
23520 2005-02-17  Peter Bartok  <pbartok@novell.com>
23521
23522         * Application.cs: Now calls registered message filters
23523         * DockStyle.cs: Fixed attribute
23524         * Form.cs: Fixed attribute
23525         * Menu.cs: Fixed attribute
23526         * ToolTip.cs: Fixed attribute
23527         * TreeNode.cs: Added missing attributes and arranged in regions
23528         * PropertyGrid.cs: Fixed signatures
23529         * TreeNodeCollection.cs: Added attributes
23530         * Splitter.cs: Added missing attributes; arranged into regions
23531         * TabPage.cs: Added missing attributes; arranged into regions
23532         * TextBoxBase.cs: Added missing attributes
23533         * TextBox.cs: Added missing attributes
23534         * ArrangeDirection.cs: Added missing attributes
23535         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
23536         * ToolBarButton.cs: Fixed attributes
23537         * AnchorStyles.cs: Fixed attribute
23538         * TrackBar.cs: Fixed attributes
23539         * TabControl.cs: Added missing attributes and arranged into regions
23540         * ToolBar.cs: Fixed attribute
23541         * StatusBar.cs: Fixed signature, organized into regions and added
23542           attributes
23543         * StatusBarPanel.cs: Fixed attributes
23544         * ContentsResizedEventArgs.cs: Implemented
23545         * ContentsResizedEventHandler.cs: Implemented
23546         * DateBoldEventArgs.cs: Implemented
23547         * DateBoldEventHandler.cs: Implemented
23548         * UpDownEventArgs.cs: Implemented
23549         * UpDownEventHandler.cs: Implemented
23550         
23551 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
23552
23553         * Form.cs: first Menu NC refactoring
23554         * MenuAPI.cs: first Menu NC refactoring
23555         
23556 2005-02-16  Peter Bartok  <pbartok@novell.com>
23557
23558         * ImeMode.cs: Added missing attributes
23559         * Menu.cs: Fixed attribute
23560         * GroupBox.cs: Fixed attribute
23561         * Label.cs: Fixed attribute
23562         * ColorDialog.cs (RunDialog): Removed TODO attribute
23563         * ComboBox.cs: Fixed attributes
23564         * ListControl.cs: Added missing attributes
23565         * PropertyGrid.cs: Fixed attributes
23566         * Control.cs: Fixed attributes
23567         * ListViewItem.cs: Added TypeConverter attribute
23568         * NotifyIcon.cs: Fixed attributes
23569         * ListView.cs: Fixed attributes
23570         * ButtonBase.cs: Fixed attribute
23571         * ImageList.cs: Added missing attributes
23572         * ContainerControl.cs: Fixed signature
23573         * CheckedListBox.cs: Fixed attribute; added missing attributes
23574         * Panel.cs: Fixed attributes
23575         * PropertyTabChangedEventArgs.cs: Added missing attribute
23576         * PropertyValueChangedEventArgs.cs: Added missing attribute
23577         * Binding.cs: Fixed attribute
23578         * ListViewItemConverter: Implemented ListViewSubItemConverter class
23579         * ListBox.cs: Fixed attribute; added missing attributes;
23580         * ScrollableControl.cs: Added missing attributes
23581         * PictureBox.cs: Added missing attributes; implemented missing property
23582         * DateTimePicker.cs: Added missing attributes
23583         * Theme.cs (ToolWindowCaptionHeight): Fixed type
23584         * MonthCalendar.cs: Fixed attributes
23585         * StatusBarPanel.cs: Added missing attributes
23586         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
23587
23588 2005-02-16  Peter Bartok  <pbartok@novell.com>
23589
23590         * TextBoxBase.cs: The previous method to enforce height yet remember
23591           the requested high was less than ideal, this is an attempt to do
23592           it better.
23593         * Control.cs: Added comment about possible problem
23594         * Copyright: Updated format
23595         * GridItemType.cs: Fixed swapped values
23596
23597 2005-02-15  Jackson Harper  <jackson@ximian.com>
23598
23599         * BaseCollection.cs: Use property so we never access an
23600         uninitialized list. Also initialize the list in the property.
23601
23602 2005-02-15  Peter Bartok  <pbartok@novell.com>
23603
23604         * GroupBox.cs (ProcessMnemonic): Implemented
23605         * Label.cs (ProcessMnemonic): Implemented
23606         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
23607           hotkeys
23608
23609 2005-02-15  Peter Bartok  <pbartok@novell.com>
23610
23611         * RadioButton.cs (ProcessMnemonic): Implemented
23612         * CheckBox.cs (ProcessMnemonic): Implemented
23613         * Control.cs:
23614           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
23615             handling
23616           - Added internal method to allow calling ProcessMnemonic from other
23617             controls
23618         * ContainerControl.cs:
23619           - Started support for handling validation chain handling
23620           - Implemented ProcessMnemonic support
23621           - Added Select() call to Active, to make sure the active control
23622             receives focus
23623         * Form.cs: Setting toplevel flag for Forms (this was lost in the
23624           FormParent rewrite)
23625         * ThemeWin32Classic.cs:
23626           - DrawCheckBox(): Fixed stringformat to show hotkeys
23627           - DrawRadioButton(): Fixed stringformat to show hotkeys
23628         * CommonDialog.cs: Removed WndProc override, not needed
23629
23630 2005-02-14  Peter Bartok  <pbartok@novell.com>
23631
23632         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
23633           missed those in the rewrite
23634
23635 2005-02-14  Miguel de Icaza  <miguel@novell.com>
23636
23637         * NumericUpDown.cs (Increment, ToString): Add.
23638         (DecimalPlaces): implement.
23639         
23640         Add attributes.
23641         
23642         * UpDownBase.cs: Add the designer attributes.
23643
23644 2005-02-13  Peter Bartok  <pbartok@novell.com>
23645
23646         * Panel.cs: Removed border_style, now in Control
23647         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
23648           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
23649
23650 2005-02-13  Peter Bartok  <pbartok@novell.com>
23651
23652         * MouseButtons.cs: Added missing attributes
23653         * XplatUIStructs.cs: Added enumeration for title styles
23654         * LeftRightAlignment.cs: Added missing attributes
23655         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
23656           it compatible with Graphics.FromHwnd()
23657         * SelectedGridItemChangedEventArgs.cs: Fixed property type
23658         * Keys.cs: Added missing attributes
23659         * SelectionRange.cs: Added missing attributes
23660         * SelectionRangeConverter.cs: Added
23661         * XplatUI.cs:
23662           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
23663             ReleaseMenuDC methods
23664           - Renamed ReleaseWindow to UngrabWindow
23665           - Added proper startup notice to allow version identification
23666         * Form.cs:
23667           - Added missing attributes
23668           - Removed FormParent concept
23669         * Label.cs: Removed border_style field, now in Control
23670         * RadioButton.cs: Now properly selects RadioButton when focus is
23671           received
23672         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
23673         * Control.cs:
23674           - Added missing attributes
23675           - Added borderstyle handling
23676           - Removed FormParent concept support
23677           - Fixed calls to XplatUI to match changed APIs
23678           - Fixed bug that would case us to use disposed Graphics objects
23679           - Removed unneeded internal methods
23680           - PerformLayout(): Fixed to handle DockStyle.Fill properly
23681           - SelectNextControl(): Fixed to properly check common parents
23682         * TextBoxBase.cs: Removed border_style field (now in Control)
23683         * MessageBox.cs:
23684           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
23685             fixed calculations for form size
23686           - Added support for localized strings and icons
23687           - Improved form size calculations, added border
23688         * ListView.cs: Removed border_style field (now in Control)
23689         * X11Structs.cs: Moved several structs from X11 driver here
23690         * X11Keyboard.cs: Changed debug message
23691         * Application.cs: Removed FormParent concept support
23692         * CommonDialog.cs:
23693           - Resetting end_modal flag
23694           - Removed FormParent concept support
23695         * NativeWindow.cs: Removed FormParent concept support
23696         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
23697           Client area and Non-Client whole window to allow support for WM_NC
23698           messages
23699         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
23700           prevent using it until it supports Hwnd as per Geoff Norton's request
23701         * ToolBar.cs: Fixed drawing, was not doing proper drawing
23702         * PictureBox.cs: Removed border_style field, now in Control
23703         * XplatUIWin32.cs: Added new driver methods
23704
23705 2005-02-12  Peter Bartok  <pbartok@novell.com>
23706
23707         * OpacityConverter.cs: Implemented
23708         * Hwnd.cs: Internal class to support drivers that need to emulate
23709           client area/non-client area window behaviour
23710
23711 2005-02-11  Peter Bartok  <pbartok@novell.com>
23712
23713         * KeysConverter.cs: Implemented
23714
23715 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
23716
23717         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
23718         * LinkLabel: Added missing attributes
23719         * MainMenu.cs: fixes ToString
23720         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
23721         * ListBox.cs: fixes event position
23722         * TrackBar.cs: adds missing attributes and events
23723         
23724 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
23725
23726         * MenuItem.cs: Use SystemInformation and bug fixes
23727         * MenuAPI.cs: Use SystemInformation and bug fixes
23728
23729 2005-02-09  Jackson Harper  <jackson@ximian.com>
23730
23731         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
23732         their keystate otherwise things like VK_MENU get stuck "on".
23733
23734 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
23735
23736         * ListBox.cs: Fixes AddRange bug
23737         
23738 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
23739
23740         * ProgressBar.cs
23741                 - Add missing attributes
23742                 - Add missing method
23743                 
23744         * CheckedListBox.cs: Added missing attributes
23745                 - Add missing attributes
23746                 - Remove extra method
23747         
23748         * ComboBox.cs: Added missing attributes
23749         * VScrollBar.cs: Added missing attributes
23750         * ScrollBar.cs:  Added missing attributes
23751         * ListBox.cs: Fixes signature, add missing consts
23752         * LinkArea.cs:   Added missing attributes
23753         
23754
23755 2005-02-08  Peter Bartok  <pbartok@novell.com>
23756
23757         * Menu.cs: Added missing attributes
23758         * MainMenu.cs: Added missing attributes
23759         * GroupBox.cs: Added missing attributes
23760         * Label.cs: Added missing attributes
23761         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
23762         * ColorDialog.cs:
23763           - Added Instance and Options properties
23764           - Added missing attributes
23765         * Cursor.cs: Made Serializable
23766         * NotifyIcon: Added missing attributes
23767         * MenuItem.cs: Added missing attributes
23768         * TextBoxBase.cs: Implemented AppendText() and Select() methods
23769         * Panel.cs: Added Missing attributes
23770         * MonthCalendar.cs: Fixed CreateParams
23771
23772 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
23773         
23774         * LinkLabel.cs:
23775                 - Fixes signature
23776                 - Fixes issues with links
23777                 - Adds the class attributes
23778
23779 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
23780         
23781         * ComboBox.cs:
23782                 - Fixes button when no items available in dropdown
23783                 - Fixes repainting problems
23784                 - Adds the class attributes
23785                 
23786 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
23787
23788         * XplatUIOSX.cs: Detect the menu bar and title bar height from
23789         the current theme.  Cache these on startup.
23790
23791 2005-02-07  Jackson Harper  <jackson@ximian.com>
23792
23793         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
23794         the scrollbar buttons when they are depressed.
23795
23796 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
23797
23798         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
23799         Get the display size from the main displayid.  We currently dont
23800         support multiple display configurations.
23801
23802 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
23803
23804         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
23805
23806 2005-02-07  Miguel de Icaza  <miguel@novell.com>
23807
23808         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
23809
23810 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
23811
23812         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
23813
23814 2005-02-04  Jackson Harper  <jackson@ximian.com>
23815
23816         * ThemeWin32Classic.cs: Respect the clipping rect when
23817         drawing. Only fill the intersection of clips and rects so there
23818         isn't a lot of large fills.
23819         * ScrollBar.cs: Pass the correct clipping rect to the theme
23820         engine. Remove some debug code.
23821
23822 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
23823         
23824         * DateTimePicker.cs:
23825                 - Fixed crash on DateTime.Parse, use Constructor instead
23826
23827 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
23828         
23829         * MenuItem.cs:
23830         * MenuAPI.cs:
23831                 - Owner draw support (MeasureItem and DrawItem)
23832
23833 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
23834         
23835         *  Menu.cs:
23836                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
23837                 - Fixes MenuItems.Add range
23838         * MenuItem.cs:
23839                 - MergeMenu and Clone and CloneMenu functions
23840
23841 2005-02-03  Jackson Harper  <jackson@ximian.com>
23842
23843         * ScrollBar.cs: Make abstract
23844         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
23845         is abstract.
23846
23847 2005-02-03  Jackson Harper  <jackson@ximian.com>
23848
23849         * ScrollBar.cs: First part of my scrollbar fixups. This removes
23850         all the unneeded refreshes and uses invalidates with properly
23851         computed rects.
23852
23853 2005-02-03  Peter Bartok  <pbartok@novell.com>
23854
23855         * ComponentModel.cs: Added
23856         * IDataGridEditingService.cs: Added
23857         * Timer.cs: Added missing attributes
23858         * ToolTip.cs: Added missing attributes
23859
23860 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
23861
23862         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
23863
23864 2005-02-03  Peter Bartok  <pbartok@novell.com>
23865
23866         * ListBox.cs: Added missing attributes
23867
23868 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
23869         
23870         * ListBox.cs:
23871                 - Fixes font height after font change
23872                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
23873                 
23874 2005-02-02  Peter Bartok  <pbartok@novell.com>
23875
23876         * HandleData.cs: Introduced static methods to allow class
23877           to be more self-contained and track it's own HandleData objects
23878         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
23879           HandleData to use new static methods
23880
23881 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
23882
23883         * Combobox.cs:
23884                 - Fixes default size and PreferredHeight
23885                 - Missing events
23886                 - ObjectCollection.Insert implementation
23887                 
23888         * ListControl.cs
23889                 - Fixes signature
23890         * ListBox.cs:
23891                 - Several fixes
23892                 - ObjectCollection.Insert implementation
23893                 - No selection after clean
23894                 - Small fixes
23895
23896 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
23897
23898         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
23899
23900 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
23901
23902         * Combobox.cs:
23903                 - Caches ItemHeight calculation for OwnerDrawVariable
23904                 - Handles dropdown properly
23905                 - Fixes several minor bugs
23906
23907 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
23908
23909         * ListBox.cs:
23910                 - Fixes 71946 and 71950
23911                 - Fixes changing Multicolumn on the fly
23912                 - Fixes keyboard navigation on Multicolumn listboxes
23913
23914 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
23915         
23916         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
23917         crash reporter log.
23918
23919 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
23920
23921         * XplatUIOSX.cs: Allow applications to actually exit.
23922
23923 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
23924
23925         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
23926         their parent at creation time rather than lazily later.  Fixes a major
23927         regression we were experiencing.
23928
23929 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
23930
23931         * ThemeWin32Classic.cs: more date time picker painting fixes
23932         * DateTimePicker.cs: more monthcalendar drop down fixes
23933         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
23934
23935 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
23936
23937         * ScrollBar.cs:
23938                 - When moving the thumb going outside the control should stop the moving
23939                 - Adds the firing of missing events
23940                 - Fixes no button show if Size is not specified
23941                 - End / Home keys for keyboard navigation
23942
23943 2005-01-30  Peter Bartok  <pbartok@novell.com>
23944
23945         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
23946           sanity check to prevent theoretical loop
23947         * XplatUIWin32.cs (SetVisible): Removed debug output
23948         * XplatUIX11.cs (SystrayChange): Added sanity check
23949         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
23950         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
23951           behaviour, valid until the X11 client window rewrite is done
23952         * TextBox.cs (ctor): Setting proper default foreground and background
23953           colors
23954
23955 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
23956
23957         * Theme: Added DrawDateTimePicker to interface
23958         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
23959         * DateTimePicker.cs: Created (still needs keys and painting code)
23960         * DateTimePickerFormat.cs: added
23961         * MonthCalendar.cs: fixed CreateParams for popup window mode
23962           
23963 2005-01-29  Peter Bartok  <pbartok@novell.com>
23964
23965         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
23966           this should also the calculations for ligher/darker
23967         * Theme.cs: Fixed defaults for ScrollBar widths/heights
23968
23969 2005-01-29  Peter Bartok  <pbartok@novell.com>
23970
23971         * ArrangeDirection.cs: Added
23972         * ArrangeStartingPositon.cs: Added
23973         * SystemInformation.cs: Implemented
23974         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23975           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
23976           used by SystemInformation class
23977         * X11Strucs.cs: Added XSizeHints structure
23978         * MenuAPI.cs:
23979           - Fixed CreateParams to make sure the menu window is always visible
23980           - TrackPopupMenu: Added check to make sure we don't draw the
23981             menu offscreen
23982
23983 2005-01-29  Peter Bartok  <pbartok@novell.com>
23984
23985         * HandleData.cs: Added method for altering invalid area
23986         * TextBoxBase.cs: Implemented TextLength
23987
23988 2005-01-28  Peter Bartok  <pbartok@novell.com>
23989
23990         * XplatUIX11.cs: Improvement over last patch, not sending
23991           the WM_PAINT directly anymore, instead we scroll any pending
23992           exposed areas and let the system pick out the WM_PAINT later
23993
23994 2005-01-28  Peter Bartok  <pbartok@novell.com>
23995
23996         * SWF.csproj: Deleted, no longer used. Instead,
23997           Managed.Windows.Forms/SWF.csproj should be used
23998         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
23999           directly, to avoid a potential race condition with the next
24000           scroll
24001
24002 2005-01-28  Peter Bartok  <pbartok@novell.com>
24003
24004         * XplatUI.cs: Made class internal
24005
24006 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
24007
24008         * CheckedListBox.cs:
24009                 - Draw focus
24010                 - Fixed Drawing
24011                 - Missing methods and events
24012
24013 2005-01-27  Peter Bartok  <pbartok@novell.com>
24014
24015         * Application.cs (Run): Don't use form if we don't have one
24016
24017 2005-01-27  Peter Bartok  <pbartok@novell.com>
24018
24019         * TextBoxBase.cs (get_Lines): Fixed index off by one error
24020
24021 2005-01-27  Peter Bartok  <pbartok@novell.com>
24022
24023         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
24024         * GridItem.cs: Added; Patch by Jonathan S. Chambers
24025         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
24026         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
24027         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
24028         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
24029         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
24030         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
24031         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
24032         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
24033         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
24034         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
24035
24036 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
24037
24038         * Combobox.cs:
24039                 - Draw focus on Simple Combobox
24040                 - Fixes drawing issues
24041                 - fixes 71834
24042
24043 2005-01-27  Peter Bartok  <pbartok@novell.com>
24044
24045         * Form.cs:
24046           - Place window in default location, instead of hardcoded 0/0
24047           - Send initial LocationChanged event
24048         * Control.cs:
24049           - UpdateBounds after creation to find out where the WM placed us
24050           - Make sure that if the ParentForm changes location the Form
24051             is notified
24052         * XplatUIX11.cs: XGetGeometry will not return the coords relative
24053             to the root, but to whatever the WM placed around us.
24054             Translate to root coordinates before returning toplevel
24055             coordinates
24056         * XplatUIWin32.cs: Removed debug output
24057         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
24058           flag to GetWindowPos, to allow translation of coordinates on X11
24059
24060 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
24061
24062         * ListBox.cs: connect LostFocus Event
24063
24064 2005-01-27  Peter Bartok  <pbartok@novell.com>
24065
24066         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
24067           XplatUIX11.cs: Extended the Systray API
24068         * Form.cs: Removed debug output
24069         * Application.cs: Fixed focus assignment, always need to call
24070           XplatUI.Activate() since Form.Activate() has rules that may
24071           prevent activation
24072         * NotifyIcon.cs: Should be complete now
24073         * ToolTip.cs: Worked around possible timer bug
24074
24075 2005-01-27  Jackson Harper  <jackson@ximian.com>
24076
24077         * TabControl.cs:
24078         - Only invalidate the effected tabs when the
24079         selected index changes. This reduces drawing and gets rid of some
24080         flicker.
24081         - Only refresh if the tabs need to be shifted, otherwise only
24082         invalidate the slider button.
24083         - On windows the tabs are not filled to right if the slider is
24084         visible.
24085         
24086 2005-01-27  Jackson Harper  <jackson@ximian.com>
24087
24088         * TabControl.cs: Only refresh on mouseup if we are showing the
24089         slider. Also only invalidate the button whose state has changed.
24090
24091 2005-01-26  Peter Bartok  <pbartok@novell.com>
24092
24093         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
24094         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
24095           and SystrayRemove() methods
24096         * XplatUIOSX.cs: Stubbed Systray methods
24097         * XplatUIX11.cs:
24098           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
24099             methods
24100           - Fixed broken XChangeProperty calls (marshalling messed up things)
24101         * X11Structs.cs: Added enums and structs required for Size hinting
24102         * NotifyIcon.cs: Added & implemented
24103
24104 2005-01-26  Jackson Harper  <jackson@ximian.com>
24105
24106         * TabControl.cs: Space vertically layed out tabs properly.
24107
24108 2005-01-26  Peter Bartok  <pbartok@novell.com>
24109
24110         * Form.cs (CreateClientParams): Always set the location to 0,0
24111           since we're a child window.
24112
24113         * Control.cs (SetVisibleCore): Always explicitly setting the location
24114           of a toplevel window, apparently X11 doesn't like to move windows
24115           while they're not mapped.
24116
24117 2005-01-26  Jackson Harper  <jackson@ximian.com>
24118
24119         * TabControl.cs: Implement FillToRight size mode with vertically
24120         rendered tabs.
24121
24122 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
24123
24124         * ControlPaint.cs, ThemeWin32Classic.cs
24125                 - Fixes DrawFocusRectangle
24126
24127 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
24128
24129         * MenuAPI.cs:
24130                 - MenuBar tracking only starts when item is first clicked
24131                 - Fixes menu hidding for multiple subitems
24132                 - Unselect item in MenuBar when item Executed
24133                 - Fixes bug 71495
24134
24135 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
24136
24137         * ListControl.cs:
24138                 - IsInputKey for ListBox
24139         * ListBox.cs:
24140                 - Focus item
24141                 - Shift and Control item selection
24142                 - Implement SelectionMode.MultiExtended
24143                 - Fixes RightToLeft
24144         * ComboBox.cs:
24145                 - IsInputKey implemented
24146                 - Do not generate OnTextChangedEdit on internal txt changes
24147                 
24148 2005-01-23  Peter Bartok  <pbartok@novell.com>
24149
24150         * AccessibleObject.cs: Partially implemented Select()
24151         * MonthCalendar.cs: Added missing attributes and events
24152         * Form.cs: Fixed CreateParams behaviour, now controls derived from
24153           form can properly override CreateParams.
24154         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24155           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
24156           Control performs Invalidate & Update
24157         * NativeWindow (CreateHandle): Added special handling for Form
24158           and Form.FormParent classes to allow overriding of From.CreateParams
24159         * Control.cs:
24160           - ControlNativeWindow: Renamed 'control' variable to more intuitive
24161             name 'owner'
24162           - ControlNativeWindow: Added Owner property
24163           - Removed usage of Refresh() on property changes, changed into
24164             Invalidate(), we need to wait until the queue is processed for
24165             updates, direct calls might cause problems if not all vars for
24166             Paint are initialized
24167           - Added call to UpdateStyles() when creating the window, to set any
24168             styles that CreateWindow might have ignored.
24169           - Added support for Form CreateParent overrides to UpdateStyles()
24170         * MessageBox.cs: Removed no longer needed FormParent override stuff,
24171           CreateParams are now properly overridable
24172         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
24173           CreateParams are now properly overridable
24174
24175 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
24176
24177         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
24178         OnTextBoxChanged.
24179
24180         Capture LostFocus and OnTextBoxChanged.  The later introduces a
24181         recursive invocation that I have not figured out yet.
24182
24183         Reset the timer when not using (it was accumulating).
24184
24185
24186         (OnTextBoxChanged): Set UserEdit to true here to track whether the
24187         user has made changes that require validation.
24188
24189         Reset changing to avoid loops.
24190
24191 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
24192
24193         * NumericUpDown.cs: Display value at startup.
24194
24195         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
24196         ValidateEditText.
24197
24198         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
24199         filled in.  Added some basic parsing of text.
24200
24201         Still missing the OnXXX method overrides, and figuring out the
24202         events that must be emitted.
24203
24204         * UpDownBase.cs: Handle UserEdit on the Text property.
24205         
24206 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
24207
24208         * ComboBox.cs:
24209           - Fixes IntegralHeight
24210           - ToString method
24211
24212 2005-01-21  Jackson Harper  <jackson@ximian.com>
24213
24214         * TabControl.cs: Set the SelectedIndex property when SelectedTab
24215         is set so that the page visibility is updated and the tabs are
24216         sized correctly.
24217
24218 2005-01-21  Jackson Harper  <jackson@ximian.com>
24219
24220         * TabControl.cs: Use cliping rectangle for blitting. Give the
24221         theme the clipping rect so we can do clipping while
24222         drawing. Remove some debug code.
24223
24224 2005-01-21  Jackson Harper  <jackson@ximian.com>
24225
24226         * TabPage.cs: Add a new method so tab pages can force the tab
24227         control to recalculate the tab page sizes.
24228         * TabControl.cs: UpdateOwner needs to make the tab control recalc
24229         sizes.
24230
24231 2005-01-20  Jackson Harper  <jackson@ximian.com>
24232
24233         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
24234
24235 2005-01-20  Jackson Harper  <jackson@ximian.com>
24236
24237         * TreeView.cs: Set the bounds for nodes properly. They were
24238         getting screwed up when checkboxes were not enabled, but images
24239         were.
24240
24241 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
24242
24243         * ListBox.cs:
24244                 - Owner draw support
24245                 - Fixes
24246                 
24247 2005-01-20  Jackson Harper  <jackson@ximian.com>
24248
24249         * XplatUIStructs.cs: More misc keys
24250         * X11Keyboard.cs: Ignore some control keys.
24251
24252 2005-01-20  Jackson Harper  <jackson@ximian.com>
24253
24254         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
24255         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
24256
24257 2005-01-19  Peter Bartok  <pbartok@novell.com>
24258
24259         * Control.cs: Un-selecting the control when it is loosing focus
24260
24261 2005-01-19  Jackson Harper  <jackson@ximian.com>
24262
24263         * TreeView.cs: Hook up to the text controls leave event so we can
24264         end editing when the users clicks outside the text box.
24265         
24266 2005-01-19  Jackson Harper  <jackson@ximian.com>
24267
24268         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
24269         get set in the conversion array.
24270
24271 2005-01-19  Peter Bartok  <pbartok@novell.com>
24272
24273         * Application.cs (ModalRun): Added a call to CreateControl to ensure
24274           focus is properly set
24275         * Button.cs:
24276           - Added missing attributes
24277           - removed styles, those are already set in the base class
24278         * ButtonBase.cs:
24279           - Added missing attributes
24280           - Added clip window styles
24281         * CheckBox.cs: Added missing attributes
24282         * CommonDialog.cs:
24283           - FormParentWindow.CreateParams: Added required clip styles
24284         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
24285           also filters modifier keys
24286         * MessageBox.cs:
24287           - Added assignment of Accept and Cancel button to enable Enter
24288             and Esc keys in MessageBox dialogs
24289           - FormParentWindow.CreateParams: Added required clip styles
24290         * RadioButton.cs: Added missing attributes
24291         * TextControl.cs: No longer draws selection if control does not
24292           have focus
24293         * TextBoxBase.cs:
24294           - Now draws simple rectangle around test area to make it obvious
24295             there's a control. This is a hack until we properly support borders
24296           - A few simple fixes to support selections better, now erases selected
24297             text when typing, and resets selection when using movement keys
24298
24299 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
24300
24301         * UpDownBase.cs: Added some new properties.
24302
24303         * DomainUpDown.cs: Implement a lot to get my test working.
24304
24305 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
24306
24307         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
24308
24309 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
24310
24311         * OSXStructs (WindowAttributes): Fixed csc complaints
24312
24313 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
24314
24315         * XplayUIOSX.cs:
24316           OSXStructs.cs: Initial refactor to move enums and consts into
24317           OSXStructs and use them in the driver for greater readability.
24318
24319 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
24320
24321         * XplatUIOSX.cs: Initial support for Standard Cursors.
24322         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
24323
24324 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
24325
24326         * ComboBox.cs: ability to change style when the ctrl is already
24327         created, missing methods and events, bug fixes, signature fixes
24328
24329 2005-01-19  Peter Bartok  <pbartok@novell.com>
24330
24331         * Cursors.cs (ctor): Added ctor to fix signature
24332
24333 2005-01-18  Peter Bartok  <pbartok@novell.com>
24334
24335         * Button.cs: Implemented DoubleClick event
24336         * ButtonBase.cs:
24337           - Fixed keyboard handling to behave like MS, where the press of
24338             Spacebar is equivalent to a mousedown, and the key release is
24339             equivalent to mouseup. Now a spacebar push will give the same
24340             visual feedback like a mouse click.
24341           - Added missing attributes
24342           - Added ImeModeChanged event
24343           - Added support for generating DoubleClick event for derived classes
24344         * CheckBox.cs:
24345           - Implemented DoubleClick event
24346           - Added missing attributes
24347         * CommonDialog.cs: Added missing attribute
24348         * ContextMenu.cs: Added missing attributes
24349         * RadioButton.cs:
24350           - AutoChecked buttons do not allow to be unselected when clicked
24351             (otherwise we might end up with no selected buttons in a group)
24352           - Added missing attributes
24353           - Implemented DoubleClickEvent
24354         * ThreadExceptionDialog.cs: Enabled TextBox code
24355
24356 2005-01-18  Peter Bartok  <pbartok@novell.com>
24357
24358         * Form.cs: Removed debug output
24359         * Button.cs: Added support for DoubleClick method
24360
24361 2005-01-18  Peter Bartok  <pbartok@novell.com>
24362
24363         * Form.cs:
24364           - Added method to parent window that allows triggering size
24365             calculations when a menu is added/removed
24366           - set_Menu: Cleaned up mess from early days of Form and Control,
24367             now properly triggers a recalc when a menu is added/removed
24368           - Added case to select form itself as focused form if no child
24369             controls exist
24370           - Added PerformLayout call when showing dialog, to ensure properly
24371             placed controls
24372         * Control.cs:
24373           - Select(): Made internal so Form can access it
24374           - Focus(): Only call Xplat layer if required (avoids loop), and sets
24375             status
24376         * Application.cs (Run): Removed hack and calls PerformLayout instead
24377           to trigger calculation when Form becomes visible
24378
24379 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
24380
24381         * ComboBox.cs: fixes for ownerdraw
24382
24383 2005-01-18  Peter Bartok  <pbartok@novell.com>
24384
24385         * TextControl.cs:
24386           - Sentinel is no longer static, each Document gets it's own, this
24387             avoids locking or alternatively overwrite problems when more
24388             than one text control is used simultaneously.
24389           - Switched to use Hilight and HilightText brushes for text selection
24390
24391         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
24392
24393 2005-01-18  Peter Bartok  <pbartok@novell.com>
24394
24395         * Control.cs:
24396           - Hooked up the following events:
24397                 o ControlAdded
24398                 o ControlRemoved
24399                 o HandleDestroyed
24400                 o ImeModeChanged
24401                 o ParentChanged
24402                 o TabStopChanged
24403                 o Invalidated
24404                 o SystemColorsChanged
24405                 o ParentFontChanged
24406                 o Move
24407           - Removed debug output
24408           - Added a call to the current theme's ResetDefaults when a color change
24409             is detected
24410         * Form.cs: Now setting the proper ImeMode
24411         * Theme.cs: Defined a method to force recreation of cached resources
24412           and rereading of system defaults (ResetDefaults())
24413         * ThemeWin32Classic.cs: Added ResetDefaults() stub
24414
24415 2005-01-17  Peter Bartok  <pbartok@novell.com>
24416
24417         * Control.cs: Added missing attributes
24418
24419 2005-01-17  Jackson Harper  <jackson@ximian.com>
24420
24421         * TreeNode.cs: Implement editing. Add missing properties selected
24422         and visible.
24423         * TreeView.cs: Implement node editing. Also some fixes to use
24424         Invalidate (invalid area) instead of Refresh when selecting.
24425
24426 2005-01-17  Peter Bartok  <pbartok@novell.com>
24427
24428         * Control.cs:
24429           - Implemented InvokeGotFocus() method
24430           - Implemented InvokeLostFocus() method
24431           - Implemented InvokePaint() method
24432           - Implemented InvokePaintBackground() method
24433           - Implemented InvokeClick() method
24434           - Implemented FindForm() method
24435           - Implemented RectangleToClient() method
24436           - Implemented ClientToRectangle() method
24437           - Implemented ResetBackColor() method
24438           - Implemented ResetCursor() method
24439           - Implemented ResetFont() method
24440           - Implemented ResteForeColor() method
24441           - Implemented ResetImeMode() method
24442           - Implemented ResetLeftToRight() method
24443           - Implemented ResetText() method
24444           - Implemented Scale() methods
24445           - Implemented ScaleCore() method
24446           - Implemented Update() method
24447           - Removed unused variables
24448           - Stubbed AccessibilityNotifyClients and
24449             ControlAccessibleObject.NotifyClients() methods (dunno what to do
24450             with those yet)
24451           - Now setting proper default for RightToLeft property
24452           - Fixed bug in SetClientSizeCore that would cause windows to get
24453             really big
24454           - Now sending Click/DoubleClick events
24455           - Now selecting controls when left mouse button is clicked on
24456             selectable control
24457         * AccessibleEvents.cs: Added
24458         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
24459         * XplatUIOSX.cs: Stubbed UpdateWindow() method
24460         * XplatUIWin32.cs: Implemented UpdateWindow() method
24461         * XplatUIX11.cs: Implemented UpdateWindow() method
24462         * Form.cs: Removed stray semicolon causing CS0162 warning
24463         * ThemeWin32Classic.cs: Fixed unused variable warnings
24464         * ScrollableControl.cs: Now calls base method for ScaleCore
24465         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
24466           style to avoid interference with internal click handler (which is
24467           different than standard Control click handling)
24468         * RadioButton.cs:
24469           - Now unchecks all sibling radio buttons when control is
24470             selected (Fixes #68756)
24471           - Removed internal tabstop variable, using the one inherited from
24472             Control
24473
24474 2005-01-17  Jackson Harper  <jackson@ximian.com>
24475
24476         * NavigateEventArgs.cs: Fix base type.
24477         * LinkLabel.cs: Sig fix
24478         
24479 2005-01-17  Jackson Harper  <jackson@ximian.com>
24480
24481         * TreeView.cs: Only invalidate the effected nodes bounds when
24482         selecting nodes.
24483
24484 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
24485
24486         * XplatUIWin32.cs: fixes Win32 marshaling
24487         * XplatUIX11.cs: fixes method signature
24488
24489 2005-01-17  Peter Bartok  <pbartok@novell.com>
24490
24491         * XplatUIX11.cs: Clean up resources when we no longer need them
24492
24493 2005-01-17  Peter Bartok  <pbartok@novell.com>
24494
24495         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
24496           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
24497           and DestroyCursor() methods.
24498         * Cursor.cs: Partially implemented, now supports standard cursors;
24499           still contains some debug code
24500         * Cursors.cs: Implemented class
24501         * Control.cs:
24502           - WndProc(): Added handling of WM_SETCURSOR message, setting the
24503             appropriate cursor
24504           - Implemented Cursor property
24505           - Replaced break; with return; more straightforwar and possibly
24506             faster
24507           - Now properly setting the result for WM_HELP
24508         * X11Structs.cs: Added CursorFontShape enum
24509         * XplatUIStructs.cs:
24510           - Added StdCursor enum (to support DefineStdCursor() method)
24511           - Added HitTest enum (to support sending WM_SETCURSOR message)
24512         * XplatUIX11.cs:
24513           - Now sends the WM_SETCURSOR message
24514           - Implemented new cursor methods
24515         * XplatUIOSX.cs: Stubbed new cursor methods
24516         * XplatUIWin32.cs:
24517           - Implemented new cursor methods
24518           - Added GetSystemMetrics function and associated enumeration
24519
24520 2005-01-15  Peter Bartok  <pbartok@novell.com>
24521
24522         * Control.cs:
24523           - WndProc(): Now handles EnableNotifyMessage
24524           - SelectNextControl(): Fixed bug where if no child or sibling
24525             controls exist we looped endlessly
24526
24527 2005-01-14  Jackson Harper  <jackson@ximian.com>
24528
24529         * TreeView.cs: Recalculate the tab pages when a new one is added
24530         so that the proper bounding rects are created.
24531
24532 2005-01-14  Jackson Harper  <jackson@ximian.com>
24533
24534         * TreeView.cs: Draw a gray box instead of a grip in the lower
24535         right hand corner when there are both horizontal and vertical
24536         scroll bars.
24537
24538 2005-01-14  Jackson Harper  <jackson@ximian.com>
24539
24540         * Control.cs: When erasing backgrounds use FromHwnd instead of
24541         FromHdc when there is a NULL wparam. This occurs on the X driver.
24542         * XplatUIX11.cs: Set the wparam to NULL.
24543
24544 2005-01-13  Jackson Harper  <jackson@ximian.com>
24545
24546         * PictureBox.cs: Implement missing methods (except ToString, need
24547         to test that on windows) and events. When visibility is changed we
24548         need to redraw the image because the buffers are killed. When size
24549         is changed refresh if the sizemode needs it.
24550
24551 2005-01-13  Peter Bartok  <pbartok@novell.com>
24552
24553         * Control.cs (SelectNextControl): Was using wrong method to select
24554           a control
24555
24556 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
24557
24558         * ComboBox.cs: fixes dropstyle
24559
24560 2005-01-13  Peter Bartok  <pbartok@novell.com>
24561
24562         * Form.cs:
24563           - Implemented Select() override
24564           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
24565           - Now sets keyboard focus on startup
24566         * Control.cs (SelectNextControl): Now properly handles directed=true
24567         * TextBoxBase.cs:
24568           - WndProc: Now passes tab key on to base if AcceptTabChar=false
24569           - Added (really bad) focus rectangle (mostly for testing)
24570         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
24571           to enforce redraw on focus changes
24572         * ContainerControl.cs:
24573           - Fixed detection of Shift-Tab key presses
24574           - Fixed traversal with arrow keys
24575         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
24576           gonna keep this or if it's complete yet
24577         
24578 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
24579
24580         * ComboBox.cs: missing properties, fixes
24581
24582 2005-01-13  Peter Bartok  <pbartok@novell.com>
24583
24584         * Panel.cs (ctor): Setting Selectable window style to off
24585         * Splitter.cs (ctor): Setting Selectable window style to off
24586         * GroupBox.cs (ctor): Setting Selectable window style to off
24587         * Label.cs (ctor): Setting Selectable window style to off
24588
24589 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
24590
24591         * UpDownBase.cs (InitTimer): If the timer has been already
24592         created, enable it.
24593
24594         Use a TextBox instead of a Label.
24595
24596 2005-01-12  Jackson Harper  <jackson@ximian.com>
24597
24598         * TreeView.cs: Refresh the tree after sorting the nodes. Always
24599         draw the connecting node lines (when ShowLines is true).
24600         * TreeNode.cs: The nodes index can now be updated. This is used
24601         when a node collection is sorted.
24602         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
24603         insert or an existing unsorted node collection can be sorted.
24604         
24605 2005-01-12  Peter Bartok  <pbartok@novell.com>
24606
24607         * ContainerControl.cs: Implemented ProcessDialogKeys()
24608
24609 2005-01-12  Peter Bartok  <pbartok@novell.com>
24610
24611         * Control.cs:
24612           - Implemented SelectNextControl() method
24613           - Several focus related bug fixes
24614           - Fixed Docking calculations to match MS documentation and
24615             behaviour
24616
24617 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
24618
24619         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
24620         bug fixes
24621
24622 2005-01-12  Peter Bartok  <pbartok@novell.com>
24623
24624         * Control.cs:
24625           - Fixed broken Contains() method
24626           - Implemented GetNextControl() method. Finally. This is the pre-
24627             requisite for focus handling.
24628
24629 2005-01-12  Peter Bartok  <pbartok@novell.com>
24630
24631         * OSXStrucs.cs: Added
24632
24633 2005-01-12  Peter Bartok  <pbartok@novell.com>
24634
24635         * XplatUIWin32.cs:
24636           - Removed PeekMessageFlags
24637           - Implemented SetWindowStyle() method
24638         * XplatUIStructs.cs: Added PeekMessageFlags
24639         * X11Structs: Added missing border_width field to XWindowChanges struct
24640         * XplatUIX11.cs:
24641           - PeekMessage: Now throws exception if flags which are not yet
24642             supported are passed
24643           - Implemented SetWindowStyle() method
24644           - Fixed SetZOrder to handle AfterHwnd properly
24645         * XplatUI.cs: Added SetWindowStyle() method
24646         * XplatUIDriver.cs: Added SetWindowStyle() abstract
24647         * Control.cs:
24648           - Implemented UpdateStyles() method
24649           - Implemented UpdateZOrder() method
24650         * XplatUIOSX.cs: Added SetWindowStyle() stub
24651
24652 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
24653
24654         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
24655         button mouse).
24656
24657
24658 2005-01-11  Jackson Harper  <jackson@ximian.com>
24659
24660         * TreeView.cs: Still need to draw lines to siblings even if out of
24661         the current node is out of the clip.
24662
24663 2005-01-11  Jackson Harper  <jackson@ximian.com>
24664
24665         * TreeView.cs: When setting the hbar/vbar/grip position use
24666         SetBounds so that perform layout is only called once. Also suspend
24667         and resume layout so layout is only done once for all controls.
24668         - Removed some debug fluff
24669         * SizeGrip.cs: Call base implmentation in overriding methods.
24670         - When visibility is changed the drawing buffers are killed so we
24671         need to redraw.
24672
24673 2005-01-11  Jackson Harper  <jackson@ximian.com>
24674
24675         * TreeView.cs: Calculate the open node count while drawing. This
24676         saves us an entire tree traversal for every paint operation. Use
24677         a member var for the open node count so less vars are passed around.
24678
24679 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
24680
24681         * MonthCalendar.cs:
24682         - fixed selection to use mousemove, not mouse polling on timer
24683         * ThemeWin32Classic.cs
24684         - removed redundant unused variable "no_more_content"
24685         
24686 2005-01-11  Peter Bartok  <pbartok@novell.com>
24687
24688         * XplatUIX11.cs (DoEvents): Needs to return when no more events
24689           are pending, so it now calls PeekMessage instead of GetMessage;
24690           implemented a incomplete version of PeekMessage
24691         
24692 2005-01-11  Peter Bartok  <pbartok@novell.com>
24693
24694         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
24695           I18n issues
24696         * TextBoxBase.cs: Added sending of TextChanged event
24697
24698 2005-01-10  Jackson Harper  <jackson@ximian.com>
24699
24700         * TreeView.cs: Try not to draw outside the clipping rectangle on
24701         each node element.
24702
24703 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
24704
24705         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
24706
24707 2005-01-10  Jackson Harper  <jackson@ximian.com>
24708
24709         * TreeView.cs:
24710         - Implement fast scrolling. Now only the newly
24711         exposed nodes are drawn and the old image is moved using the
24712         XplatUI::ScrollWindow method.
24713         - Factor in height of nodes when calculating whether or not the
24714         node is in the clipping rect.
24715
24716 2005-01-10  Jackson Harper  <jackson@ximian.com>
24717
24718         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
24719
24720 2005-01-10  Peter Bartok  <pbartok@novell.com>
24721
24722         * Application.cs: Added temporary hack to resolve all our resize
24723           required issues on startup. This will get fixed properly at
24724           some point in the future
24725
24726 2005-01-10  Jackson Harper  <jackson@ximian.com>
24727
24728         * SizeGrip.cs: New internal class that is used as a sizing
24729         grip control...hence the name.
24730
24731 2005-01-10  Peter Bartok  <pbartok@novell.com>
24732
24733         * Control.cs: Implemented proper TabIndex handling, now assigning
24734           a tabindex when a control is added to a container
24735         * GroupBox.cs (ctor): Now sets the Container style bit, required
24736           for Control.GetNextControl()
24737
24738 2005-01-09  Jackson Harper  <jackson@ximian.com>
24739
24740         * TextBoxBase.cs: Clear window when scrolling (fixes build).
24741
24742 2005-01-09  Peter Bartok <pbartok@novell.com>
24743
24744         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
24745           XplatUIX11.cs: Added ability to control ScrollWindow expose and
24746           an overload for ScrollWindow to allow only scrolling a rectangle
24747
24748 2005-01-09  Peter Bartok <pbartok@novell.com>
24749
24750         * Form.cs:
24751           - Implemented SetDesktopBounds method
24752           - Implemented SetDesktopLocation method
24753
24754 2005-01-08  Jackson Harper  <jackson@ximian.com>
24755
24756         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
24757         the node count has changed, this removes to VScroll::Refresh calls
24758         when drawing.
24759
24760 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
24761
24762         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
24763
24764 2005-01-07  Jackson Harper  <jackson@ximian.com>
24765
24766         * TreeNode.cs: Just update the single node when it is
24767         checked. Don't refresh after toggling, the Expand/Collapse already
24768         handles this.
24769         * TreeView.cs: Respect clipping a little more when drawing. Try
24770         not to redraw things that don't need to be redrawn. Just hide the
24771         scrollbars when they are no longer needed instead of removing
24772         them, so they don't have to be created again and again.
24773         
24774 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
24775
24776         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
24777         coordinates to window space to place the caret properly, FIXED.
24778         Implement GetWindowState & SetWindowState
24779
24780 2005-01-06  Peter Bartok <pbartok@novell.com>
24781
24782         * Form.cs:
24783           - Implemented ClientSize property
24784           - Implemented DesktopBounds property
24785           - Implemented DesktopLocation property
24786           - Implemented IsRestrictedWindow property
24787           - Implemented Size property
24788           - Implemented TopLevel property
24789           - Implemented FormWindowState property
24790         * Control.cs:
24791           - Implemented GetTopLevel() method
24792           - Implemented SetTopLevel() method
24793         * X11Structs.cs (Atom):
24794           - Added AnyPropertyType definition
24795           - Added MapState definiton and updated XWindowAttribute struct
24796         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
24797         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
24798         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
24799         * XplatUIWin32.cs:
24800           - Implemented GetWindowState() and SetWindowState() methods
24801           - Fixed Win32GetWindowLong return type
24802         * XplatUIX11.cs:
24803           - Introduced central function for sending NET_WM messages
24804           - Implemented GetWindowState() and SetWindowState() methods
24805         * TextBoxBase.cs (set_Lines):
24806           - Now uses Foreground color for text added via Text property (Duh!)
24807           - Added code to remember programmatically requested size (fixes
24808             behaviour when Multiline is set after Size)
24809           - Added AutoSize logic
24810
24811 2005-01-06  Jackson Harper  <jackson@ximian.com>
24812
24813         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
24814
24815 2005-01-06  Jackson Harper  <jackson@ximian.com>
24816
24817         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
24818         set to less then 0.
24819
24820 2005-01-06  Jackson Harper  <jackson@ximian.com>
24821
24822         * ScrollableControl.cs: Lazy init the scrollbars.
24823         
24824 2005-01-06  Jackson Harper  <jackson@ximian.com>
24825
24826         * Theme.cs: Speed up getting pens and solid brushes, by using
24827         their ARGB as a hash instead of tostring and not calling Contains.
24828
24829 2005-01-06  Peter Bartok <pbartok@novell.com>
24830
24831         * Form.cs:
24832           - Implemented OnActivated and OnDeactivate event trigger
24833           - Implemented Activate() method
24834           - Fixed ShowDialog() to activate the form that was active before
24835             the dialog was shown
24836         * XplatUIX11.cs:
24837           - Added global active_window var that tracks the currently active
24838             X11 window
24839           - Now always grabs Property changes from the root window to always
24840             catch changes on the active window property
24841           - Added code to PropertyNotify handler to send Active/Inactive
24842             messages when state changes. This puts X11 and Win32 en par on
24843             WM_ACTIVATE notifications (except for double notifications when
24844             the user clicks away from our modal window to another one of our
24845             windows)
24846
24847 2005-01-05  Jackson Harper  <jackson@ximian.com>
24848
24849         * ImageList.cs: Implment ctor
24850
24851 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
24852
24853         * XplatUIOSX.cs: Implement Activate/SetTopmost
24854
24855 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
24856
24857         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
24858
24859 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
24860
24861         * XplatUIOSX.cs: Implement GetActive/SetFocus.
24862
24863 2005-01-05  Peter Bartok <pbartok@novell.com>
24864
24865         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
24866           XplatUIOSX.cs: Added GetActive method to return the currently
24867           active window for the application (or null, if none is active)
24868         * Form.cs:
24869           - Implemented ActiveForm
24870           - Commented out owner assignment for modal dialogs (causes problems
24871             on Win32, since the owner will be disabled)
24872           - Reworked some Active/Focus handling (still incomplete)
24873         * CommonDialog.cs: Commented out owner assignment for modal dialogs
24874           (causes problems on Win32, since the owner will be disabled)
24875         * IWin32Window: Added ComVisible attribute
24876
24877 2005-01-05  Peter Bartok <pbartok@novell.com>
24878
24879         * ToolTip.cs (WndProc): Enable setting focus now that we have the
24880           required XplatUI functions.
24881
24882 2005-01-05  Peter Bartok <pbartok@novell.com>
24883
24884         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
24885           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
24886           to implement focus and activation handling; still incomplete and
24887           with debug output
24888
24889 2005-01-04  Peter Bartok <pbartok@novell.com>
24890
24891         * TextBoxBase.cs: Changed access level for Document property to
24892           match switch to internal for TextControl
24893
24894 2005-01-04  Peter Bartok <pbartok@novell.com>
24895
24896         * AccessibleObject: Added ComVisible attribute
24897
24898 2005-01-04  Jackson Harper  <jackson@ximian.com>
24899
24900         * X11Keyboard.cs: Remove unneeded var.
24901
24902 2005-01-04  Jackson Harper  <jackson@ximian.com>
24903
24904         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
24905         but PAINT.
24906         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
24907         ClientMessage. This makes apps exit cleanly (more often).
24908         
24909 2005-01-04  Jackson Harper  <jackson@ximian.com>
24910
24911         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
24912         handling focus, return correct colors and fonts,
24913         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
24914         handle selection, horizontal scrolling, and mouse interaction.
24915
24916 2005-01-04  Peter Bartok <pbartok@novell.com>
24917
24918         * ICommandExecutor.cs: Added
24919         * IDataGridColumnStyleEditingNotificationService.cs: Added
24920         * IFeatureSupport.cs: Added
24921         * IFileReaderService.cs: Added
24922         * IDataObject.cs: Added ComVisible attribute
24923         * AmbientProperties.cs: Added
24924         * BaseCollection.cs: Added missing attributes
24925         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
24926         * BaseCollection.cs: Added missing attributes
24927         * Binding.cs: Added TypeConverter attribute
24928         * BindingContext.cs: Added DefaultEvent attribute
24929         * BindingsCollection.cs: Added DefaultEvent attribute
24930         * Button.cs: Added DefaultValue attribute
24931         * DragEventArgs.cs: Added ComVisible attribute
24932         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
24933         * KeyEventArgs.cs: Added ComVisible attribute
24934         * KeyPressEventArgs.cs: Added ComVisible attribute
24935         * MouseEventArgs.cs: Added ComVisible attribute
24936         * NavigateEventArgs.cs: Added
24937         * NavigateEventHandler.cs: Added
24938         * FeatureSupport.cs: Added
24939         * OSFeature.cs: Added
24940         * Theme.cs: Added abstract Version property to support OSFeature
24941         * ThemeWin32Classic.cs: Added Version property to
24942           support OSFeature.Themes
24943         * ProgressBar.cs: Removed OnPaintBackground override, not required since
24944           the proper styles to avoid background drawing are set, also doesn't
24945           match MS signature
24946         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
24947         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
24948         * ScrollEventArgs.cs: Added ComVisible attribute
24949         * SplitterEventArgs.cs: Added ComVisible attribute
24950         * AccessibleSelection.cs: Added Flags attribute
24951         * Appearance.cs: Added ComVisible attribute
24952         * Border3DSide.cs: Added ComVisible attribute
24953         * Border3DStyle.cs: Added ComVisible attribute
24954         * BorderStyle.cs: Added ComVisible attribute
24955         * DragAction.cs: Added ComVisible attribute
24956         * ErrorBlinkStyle.cs: Added
24957         * ScrollEventType.cs: Added ComVisible attribute
24958         * AnchorStyles.cs: Added Editor attribute
24959         * DockStyle.cs: Added Editor attribute
24960         * HorizontalAlignment.cs: Added ComVisible attribute
24961         * HelpEventArgs.cs: Added ComVisible attribute
24962         * PaintEventArgs.cs: Added IDisposable
24963
24964 2005-01-04  Peter Bartok <pbartok@novell.com>
24965
24966         * TextControl.cs: Switched Line, LineTag and Document classes to
24967           internal
24968
24969 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
24970
24971         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
24972         Simple mode, fixes, IntegralHeight, etc.
24973
24974 2005-01-04  Peter Bartok <pbartok@novell.com>
24975
24976         * TextBoxBase.cs: Using proper font variable now
24977
24978 2005-01-04  Peter Bartok <pbartok@novell.com>
24979
24980         * Form.cs (ShowDialog): Set parent to owner, if provided
24981         * GroupBox.cs: Removed unused vars
24982         * TextControl.cs:
24983           - Added GetHashCode() for Document and LineTag classes
24984           - Removed unused variables
24985           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
24986             to allow translation between continuous char position and line/pos
24987         * CheckBox.cs: Removed vars that are provided by base class
24988         * RadioButton.cs: Removed vars that are provided by base class, added
24989           new keyword where required
24990         * LinkLabel.cs: Added new keyword where required
24991         * Control.cs (WndProc): Removed unused variable
24992         * TextBoxBase.cs:
24993           - Finished SelectionLength property
24994           - Implemented SelectionStart property
24995           - Implemented Text property
24996           - Removed unused vars
24997         * MessageBox.cs: Added new keyword where required
24998         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
24999           WndProc signature
25000         * MenuAPI.cs: Added new keyword where required
25001         * ButtonBase.cs: Removed vars that are provided by base class, added
25002           new keyword where required
25003         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
25004           argument to double, to allow compiling with csc 2.0 (Atsushi ran
25005           into this)
25006         * Application.cs (Run): Now triggers the ThreadExit event
25007         * CommonDialog.cs: Added new keyword where required; now properly sets
25008           parent (owner) for dialog
25009         * XplatUIX11.cs: Commented out unused vars
25010         * StatusBar.cs: Fixed signature for Text property
25011         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
25012
25013 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
25014
25015         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
25016         TrackBar.cs, MonthCalendar.cs: remove unused vars
25017
25018 2005-01-03  Jackson Harper  <jackson@ximian.com>
25019
25020         * ThemeWin32Classic.cs:
25021         * X11Keyboard.cs: Remove unused vars.
25022
25023 2005-01-03  Peter Bartok  <pbartok@novell.com>
25024
25025         * TextBox.cs:
25026           - set_Text: Tied into TextControl
25027           - set_TextAlignment: Tied into TextControl
25028         * TextControl.cs:
25029           - Added alignment properties and implemented alignment handling
25030             and drawing (still has a bug, not generating proper expose events)
25031           - Added new Line() constructor to allow passing the line alignment
25032           - Fixed selection setting, properly handling end<start now
25033           - Added aligment considerations to RecalculateDocument()
25034         * TextBoxBase.cs:
25035           - Now properly enforces control height for single line controls
25036           - Added support for CharacterCasing
25037           - Added IsInputKey override
25038           - Fixed Keys.Enter logic
25039           - Added SetBoundsCore override
25040           - Fixed mouse selection handling
25041
25042 2005-01-03  Jackson Harper  <jackson@ximian.com>
25043
25044         * TreeView.cs:
25045           - Collapse and uncheck all nodes when CheckBoxes is disabled.
25046           - Checkboxes are always aligned to the bottom of the node,
25047           regardless of item height.
25048           - Use the node bounds to draw the text so we can center it when
25049           the item height is greater then the font height.
25050           - Node::Bounds are only the text part of the node.
25051         * TreeNode.cs: New method to combine collapsing and unchecking all
25052           nodes recursively.
25053
25054 2005-01-02  Jackson Harper  <jackson@ximian.com>
25055
25056         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
25057         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
25058         tree when a check is changed. TODO: Only refresh the checked node.
25059
25060 2004-12-30  Jackson Harper  <jackson@ximian.com>
25061
25062         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
25063         * TreeNode.cs: When collapsing make sure to never collapse the
25064         root node.
25065
25066 2004-12-29  Jackson Harper  <jackson@ximian.com>
25067
25068         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
25069         
25070 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
25071
25072         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
25073
25074 2004-12-28  Peter Bartok  <pbartok@novell.com>
25075
25076         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
25077           not yet assigned
25078
25079 2004-12-28  Peter Bartok  <pbartok@novell.com>
25080
25081         * Control.cs (WndProc): Added WM_HELP handler, now generates
25082           HelpRequested event
25083         * Form.cs: Added HelpButton property and required support code
25084         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
25085
25086 2004-12-28  Peter Bartok  <pbartok@novell.com>
25087
25088         * CommonDialog.cs:
25089           - Made DialogForm.owner variable internal
25090           - Added check to ensure owner form is set before setting
25091             owner properties in CreateParams
25092
25093 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
25094
25095         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
25096           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
25097           GetCursorPos.  Fix major visibility issues.  Rework the windowing
25098           system to support borderless/titleless windows (implements menus).
25099           Fix GetWindowPos.  Implement initial background color support for
25100           views.
25101
25102 2004-12-28  Peter Bartok  <pbartok@novell.com>
25103
25104         * Form.cs (get_CreateParams): Make sure we have an owner before using
25105           the owner variable. Implement proper default if no owner exists
25106
25107 2004-12-28  Peter Bartok  <pbartok@novell.com>
25108
25109         * In preparation for making Managed.Windows.Forms the default build target
25110           for System.Windows.Forms, the following stubbed files were added.
25111           Dialogs are currently being implemented by contributors and are only
25112           short-term place holders.
25113         * ColorDialog.cs: Initial check-in (minmal stub)
25114         * DataGrid.cs: Initial check-in (minimal stub)
25115         * DataGridLineStyle.cs: Initial check-in (minimal stub)
25116         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
25117         * DataGridTableStyle.cs: Initial check-in (minimal stub)
25118         * FontDialog.cs: Initial check-in (minimal stub)
25119         * FileDialog.cs: Initial check-in (minimal stub)
25120         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
25121         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
25122         * OpenFileDialog: Initial check-in (minimal stub)
25123         * IComponentEditorPageSite.cs: Initial check-in
25124         * Splitter.cs: Initial check-in (for Jackson)
25125         * SplitterEventArgs.cs: Initial check-in (for Jackson)
25126         * SplitterEventHandler.cs: Initial check-in (for Jackson)
25127         * TextBox.cs: Initial check-in; still needs some wiring to
25128           TextControl backend
25129         * Form.cs: Implemented ControlBox property
25130         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
25131         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
25132         * TextControl.cs: Added selection functionality; added todo header
25133         * TextBoxBase.cs:
25134           - Implemented Lines property
25135           - Implemented TextHeight property
25136           - Implemented SelectedText property
25137           - Implemented SelectionLength property
25138           - Implemented SelectAll method
25139           - Implemented ToString method
25140           - Removed and cleaned up some debug code
25141           - Implemented (still buggy) mouse text selection
25142
25143 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
25144
25145         * ComboBox.cs: Complete DropDownList implementation, fixes.
25146
25147 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
25148
25149         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
25150         * ComboBoxStyle.cs: ComboBoxStyle enum
25151         * ComboBox.cs: Initial work on ComboBox control
25152
25153 2004-12-21  Peter Bartok  <pbartok@novell.com>
25154
25155         * Control.cs (ctor, CreateParams): Moved setting of is_visible
25156           forward so that anything that creates a window gets the default,
25157           also no longer uses Visible property in CreateParams to avoid
25158           walking up the parent chain and possibly get the wrong visible
25159           status. Fixed IsVisible to no longer walk up to the parent.
25160
25161 2004-12-21  Peter Bartok  <pbartok@novell.com>
25162
25163         * Form.cs (ShowDialog): Unset modality for the proper window
25164  
25165 2004-12-20  Peter Bartok  <pbartok@novell.com>
25166
25167         * CommonDialog.cs: Initial check-in
25168
25169 2004-12-20  Peter Bartok  <pbartok@novell.com>
25170
25171         * Control.cs (Visible): Now uses the parent window instead of the
25172           client area window for the property
25173
25174         * Form.cs
25175           - ShowDialog(): Now uses the proper window for modality
25176           - The default visibility state for the form parent is now false. This
25177             will prevent the user from seeing all the changes to the form and
25178             its controls before the application hits Application.Run()
25179           - Removed some stale commented out code
25180
25181         * NativeWindow.cs:
25182           - Added FindWindow() method to have a method to check for existence
25183             of a window handle
25184           - Added ability to override default exception handling (for example
25185             when debugging with VS.Net; to do this the ExternalExceptionHandler
25186             define must be set
25187           - Removed some useless debug output
25188
25189         * XplatUIX11.cs:
25190           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
25191             not working as expected
25192           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
25193             property to allow switching back to the modal window if focus is
25194             given to another one of our windows (Application Modal)
25195           - Now only sets override_redirect if we create a window
25196             without WS_CAPTION
25197           - Moved EventMask selection before mapping of newly created window
25198             so we can catch the map event as well
25199           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
25200           - Added various Atom related DllImports
25201           - Implemented Exit() method
25202           - .ctor() : No longer shows window if WS_VISIBLE is not defined
25203             in the CreateParams
25204
25205         * MessageBox.cs: Now properly deals with the FormParent window by
25206           providing an override the FormParent CreateParams property to
25207           set as POPUP instead of OVERLAPPED window.
25208
25209 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
25210
25211         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
25212         Minor code cleanup.
25213
25214 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
25215         
25216         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
25217
25218 2004-12-18  Peter Bartok  <pbartok@novell.com>
25219
25220         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
25221           implementing SetModal() method
25222
25223 2004-12-18  Peter Bartok  <pbartok@novell.com>
25224
25225         * X11Structs.cs (XGCValues): Fixed type of function element
25226         * XplatUI.cs: Added ScrollWindow() method
25227         * XplatUIDriver.cs: Added ScrollWindow() abstract
25228         * XplatUIWin32.cs: Implemented ScrollWindow() method
25229         * XplatUIX11.cs: Implemented ScrollWindow() method
25230         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
25231
25232 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
25233
25234         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
25235         Some more keyboard support (INCOMPLETE)
25236
25237 2004-12-17  Peter Bartok  <pbartok@novell.com>
25238
25239         * TextControl.cs:
25240         - Added color attribute to line tags.
25241         - Added color argument to all functions dealing with tags
25242         - Added color argument support to various functions
25243         - Fixed miss-calculation of baseline/shift in certain circumstances
25244
25245         * TextBoxBase.cs: Added new color option to test code
25246
25247 2004-12-17  Jackson Harper  <jackson@ximian.com>
25248
25249         * TreeNode.cs:
25250         * MonthCalendar.cs: Signature fixes
25251
25252 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
25253
25254         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
25255         keyboard event moved it.  Create a new graphics context for each paint resolves this
25256
25257 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
25258
25259         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
25260         Make caret exist and go blink blink.  Initial keyboard support.
25261         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
25262         works.
25263
25264 2004-12-17  Jackson Harper  <jackson@ximian.com>
25265
25266         * XplatUIStructs.cs: Updated set of virtual keycodes.
25267         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
25268
25269 2004-12-17  Jackson Harper  <jackson@ximian.com>
25270
25271         * XplatUIX11.cs: Prune old keyboard code.
25272
25273 2004-12-17  Jackson Harper  <jackson@ximian.com>
25274
25275         * XplatUIX11.cs: When generating mouse wparams get the modifier
25276         keys from the ModifierKeys property.
25277
25278 2004-12-17  Jackson Harper  <jackson@ximian.com>
25279
25280         * X11Keyboard.cs: Send up/down input when generating
25281         messages. Remove some unused vars.
25282
25283 2004-12-17  Jackson Harper  <jackson@ximian.com>
25284
25285         * TabControl.cs:
25286         * TreeView.cs: get rid of warnings.
25287
25288 2004-12-17  Jackson Harper  <jackson@ximian.com>
25289
25290         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
25291
25292 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
25293
25294         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
25295           CheckedListBox.cs: Implementation
25296
25297 2004-12-17  Peter Bartok  <pbartok@novell.com>
25298
25299         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
25300
25301 2004-12-16  Peter Bartok  <pbartok@novell.com>
25302
25303         * TextControl.cs:
25304           - InsertCharAtCaret(): Fixed start pos fixup
25305           - CaretLine_get: No longer derives the line from the tag, the tag
25306             could be stale if lines in the document have been added or deleted
25307           - RebalanceAfterDelete(): Fixed bug in balancing code
25308           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
25309           - Line.Streamline(): Now can also elminate leading empty tags
25310           - DumpTree(): Added a few more tests and prevented exception on
25311             uninitialized data
25312           - Added Debug section for Combining lines
25313           - Delete(): Now copies all remaining properties of a line
25314           
25315         * TextBoxBase.cs:
25316           - Left mousebutton now sets the caret (and middle button still acts
25317             as formatting tester, which must go away soon)
25318           - Added Debug section for Deleting/Combining lines
25319           - Fixed calculations for UpdateView after Combining lines
25320
25321 2004-12-16  Peter Bartok  <pbartok@novell.com>
25322
25323         * TextControl.cs: Now properly aligns text on a baseline, using the
25324           new XplatUI.GetFontMetrics() method. Simplified several calculations
25325         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
25326           defined
25327
25328 2004-12-16  Peter Bartok  <pbartok@novell.com>
25329
25330         * XplatUI.cs: Added GetFontMetrics() method
25331         * XplatUIDriver.cs: Added GetFontMetrics() abstract
25332         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
25333           into libgdiplus, our private GetFontMetrics function
25334         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
25335         * XplatUIWin32.cs: Implemented GetFontMetrics() method
25336
25337 2004-12-16  Jackson Harper  <jackson@ximain.com>
25338
25339         * XplatUIStruct.cs: Add enum for dead keys
25340         * X11Keyboard.cs: Map and unmap dead keys.
25341
25342 2004-12-16  Jackson Harper  <jackson@ximian.com>
25343
25344         * X11Keyboard.cs: Detect and use the num lock mask.
25345
25346 2004-12-16  Peter Bartok  <pbartok@novell.com>
25347
25348         * Control.cs (CreateGraphics): Added check to make sure the
25349           handle of the window exists before calling Graphics.FromHwnd()
25350
25351 2004-12-16  Peter Bartok  <pbartok@novell.com>
25352
25353         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
25354           contains a lot of code that's not supposed to be there for the
25355           real thing, but required for developing/testing the textbox
25356           backend.
25357
25358 2004-12-16  Peter Bartok  <pbartok@novell.com>
25359
25360         * TextControl.cs:
25361         - Fixed Streamline method
25362         - Added FindTag method to Line
25363         - Added DumpTree method for debugging
25364         - Added DecrementLines() method for deleting lines
25365         - Fixed UpdateView to update the cursor to end-of-line on single-line
25366           updates
25367         - Added PositionCaret() method
25368         - Fixed MoveCaret(LineDown) to move into the last line, too
25369         - Added InsertChar overload
25370         - Fixed InsertChar tag offset calculations
25371         - Added DeleteChar() method
25372         - Added Combine() method for folding lines
25373         - Fixed Delete() method, no longer allocates wasted Line object and
25374           now copies all properties when swapping nodes
25375         - Delete() method now updates document line counter
25376
25377 2004-12-15  Jackson Harper  <jackson@ximian.com>
25378
25379         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
25380         * X11Keyboard.cs: Expose the currently selected modifier keys
25381         through a property.
25382
25383 2004-12-15  Peter Bartok  <pbartok@novell.com>
25384
25385         * TextControl.cs: Initial check-in. Still incomplete
25386
25387 2004-12-15  Jackson Harper  <jackson@ximian.com>
25388
25389         * TreeNode.cs:
25390         * TreeView.cs: Fix build on csc (second time today ;-))
25391
25392 2004-12-15  Jackson Harper  <jackson@ximian.com>
25393
25394         * TreeView.cs: Store the treenodes plus/minus box bounds when it
25395         is calculated and use this for click testing.
25396         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
25397
25398 2004-12-15  Jackson Harper  <jackson@ximian.com>
25399
25400         * TreeView.cs: Pass the nodes image index to the image list when
25401         drawing that image.
25402
25403 2004-12-15  Jackson Harper  <jackson@ximian.com>
25404
25405         * X11Keyboard.cs: Set messages hwnd.
25406         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
25407         post_message calls.
25408
25409 2004-12-15  Jackson Harper  <jackson@ximian.com>
25410
25411         * X11Keyboard.cs: Fix to compile with csc.
25412         
25413 2004-12-15  Jackson Harper  <jackson@ximian.com>
25414
25415         * X11Structs.cs: Add key mask values
25416         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
25417         * X11Keyboard.cs: New file - Extrapolates and interpolates key
25418         down/up foo into WM_CHAR foo
25419         * KeyboardLayouts.cs: Common keyboard layouts
25420         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
25421         post messages into the main queue.
25422
25423 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
25424
25425         * Button.cs: implement ProcessMnemonic
25426         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
25427           brushes everytime
25428         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
25429         * ButtonBase.cs: Show HotkeyPrefix (not the &)
25430
25431 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
25432         
25433         * MonthCalendar.cs: Implemented click-hold for next/previous month
25434           and date selection
25435           
25436 2004-12-11  Peter Bartok  <pbartok@novell.com>
25437
25438         * X11Structs.cs:
25439           - Added XKeyboardState (moved from XplatUIX11.cs)
25440           - Added XCreateGC related enums and structures
25441           - Added GXFunction for XSetFunction
25442
25443         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
25444
25445         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
25446           CaretVisible() calls
25447
25448         * ToolTip.cs: Added code to prevent stealing focus from app windows
25449
25450         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
25451           DestroyCaret, SetCaretPos and CaretVisible)
25452
25453         * XplatUIX11.cs:
25454           - Added implementation for caret functions
25455           - Moved hover variables into a struct, to make it a bit easier
25456             on the eyes and to debug
25457           - Removed XKeyboardState (moved to XplatUIX11.cs)
25458           - Moved Keyboard properties into the properties region
25459
25460         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
25461           call to get a graphics context for our control
25462
25463         * XplatUIOSX.cs: Added empty overrides for the new caret functions
25464
25465         * TreeView.cs: Fixed bug. No matter what color was set it would always
25466           return SystemColors.Window
25467
25468         * XplatUIWin32.cs: Implemented caret overrides
25469
25470 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
25471
25472         * ListBox.cs: fire events, implement missing methods and properties,
25473         sorting.
25474
25475 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
25476
25477         * MonthCalendar.cs: invalidation bug fixing
25478         * ThemeWin32Classic.cs: paint fixing
25479
25480 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
25481
25482         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
25483         prepare the CGContextRef there now.
25484
25485 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
25486
25487         * MonthCalendar.cs:
25488           - optimisationL only invalidate areas that have changed
25489         * ThemeWin32Classic.cs:
25490           - only paint parts that intersect with clip_area
25491
25492 2004-12-09  Peter Bartok  <pbartok@novell.com>
25493
25494         * Application.cs: Undid changes from r37004 which cause problems
25495         on X11
25496
25497 2004-12-09  Ravindra  <rkumar@novell.com>
25498
25499         * ToolBar.cs: Added support for displaying ContextMenu
25500         attached to a button on ToolBar.
25501         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
25502         property.
25503
25504 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
25505
25506         * Label.cs: autosize works in text change and removes unnecessary
25507         invalidate
25508
25509 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
25510
25511         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
25512         remove warnings
25513
25514 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
25515
25516         * XplatUIOSX.cs: Added mouse move/click/grab support
25517         Remove some debugging WriteLines not needed anymore.
25518         Add window resizing/positioning.
25519         Fix visibility on reparenting.
25520
25521 2004-12-08  Peter Bartok  <pbartok@novell.com>
25522
25523         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
25524
25525 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
25526
25527         * XplatUIOSX.cs: Initial checkin
25528         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
25529
25530 2004-12-03  Ravindra <rkumar@novell.com>
25531
25532         * ListView.cs: Added some keybindings and fixed scrolling.
25533         ScrollBars listen to ValueChanged event instead of Scroll
25534         Event. This would let us take care of all changes being
25535         done in the scrollbars' values programmatically or manually.
25536         * ListView.cs (CanMultiselect): Added a check for shift key.
25537         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
25538         * ListViewItem.cs (Clone): Fixed. We need to make a copy
25539         of ListViewSubItemCollection as well.
25540
25541 2004-12-06  Peter Bartok <pbartok@novell.com>
25542
25543         * Control.cs (Parent): Added check and exception to prevent
25544         circular parenting
25545
25546 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
25547
25548         * ListBox.cs: implemented clipping, selection single and multiple,
25549         bug fixing
25550
25551 2004-12-03  Ravindra <rkumar@novell.com>
25552
25553         * ListView.cs (ListView_KeyDown):
25554         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
25555         when CTRL key is pressed.
25556         * ListViewItem.cs (Selected): Fixed setting the property.
25557
25558 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
25559
25560         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
25561
25562         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
25563         MinimizeBox, ShowInTaskbar, TopMost properties.
25564
25565         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
25566         will be implemented).
25567
25568 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
25569
25570         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
25571
25572         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
25573         tests.
25574         
25575         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
25576         
25577         * TreeView.cs: BackColor is Colors.Window.
25578
25579 2004-12-01  Jackson Harper  <jackson@ximian.com>
25580
25581         * TreeView.cs: When resizing the tree if the user is making it
25582         smaller we don't get expose events, so we need to handle adding
25583         the horizontal scrollbar in the size changed handler as well as
25584         the expose handler.
25585
25586 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
25587
25588         * DrawItemState.cs: fixes wrong enum values
25589
25590 2004-12-01  Jackson Harper  <jackson@ximian.com>
25591
25592         * TreeView.cs: Resize the hbar as well as the vbar on resize.
25593
25594 2004-12-01  Jackson Harper  <jackson@ximian.com>
25595
25596         * NodeLabelEditEventArgs.cs:
25597         * NodeLabelEditEventHandler.cs:
25598         * OpenTreeNodeEnumerator.cs:
25599         * TreeNode.cs:
25600         * TreeNodeCollection.cs:
25601         * TreeView.cs:
25602         * TreeViewAction.cs:
25603         * TreeViewCancelEventArgs.cs:
25604         * TreeViewCancelEventHandler.cs:
25605         * TreeViewEventArgs.cs:
25606         * TreeViewEventHandler.cs: Initial implementation.
25607
25608 2004-12-01  Ravindra <rkumar@novell.com>
25609
25610         * ListView.cs (CalculateListView): Fixed scrolling related
25611         calculations. Also, removed some debug statements from other
25612         places.
25613         * ListViewItem.cs: Changed access to 'selected' instance variable
25614         from private to internal.
25615         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
25616
25617 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
25618
25619         * ThemeWin32Classic.cs: remove cache of brush and pens for
25620         specific controls and use the global system, fixes scrollbutton
25621         bugs (for small sizes, disabled, etc)
25622         
25623         * ScrollBar.cs: does not show the thumb for very small controls
25624         (as MS) and allow smaller buttons that the regular size
25625
25626 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
25627
25628         * UpDownBase.cs: Add abstract methods for the interface.
25629         Add new virtual methods (need to be hooked up to TextEntry when it
25630         exists).
25631         Add override methods for most features.
25632         Computes the size, forces the height of the text entry.
25633
25634         * NumericUpDown.cs: Put here the current testing code.
25635
25636         * Set eol-style property on all files that do not have mixed line
25637         endings, to minimize the future problems.  There are still a few
25638         files with mixed endings, and someone should choose whether they
25639         want to move it or not.
25640
25641 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
25642
25643         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
25644         System.Colors
25645         
25646 2004-11-30  Ravindra <rkumar@novell.com>
25647
25648         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
25649         drawing and replaced use of SystemColors by theme colors.
25650         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
25651         * ListView.cs (ListViewItemCollection.Add): Throw exception when
25652         same ListViewItem is being added more than once.
25653
25654 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
25655
25656         * MonthCalendar.cs:
25657           - ControlStyles love to make the control not flicker
25658           
25659 2004-11-30  Peter Bartok  <pbartok@novell.com>
25660
25661         * CharacterCasing.cs: Added
25662
25663 2004-11-29  Peter Bartok  <pbartok@novell.com>
25664
25665         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
25666           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
25667           I am removing these files as they conflict with already completed
25668           work. While it is fantastic to get contributions to MWF, I
25669           respectfully ask that everyone please coordinate their contributions
25670           through mono-winforms-list or #mono-winforms at this time. We're
25671           explicitly avoiding stubbing and don't want controls that don't have
25672           their basic functionality implemented in svn. Please also see
25673           http://www.mono-project.com/contributing/winforms.html
25674
25675
25676 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
25677
25678         * Application.cs (ModalRun): Don't hang after exit.
25679
25680         * Theme.cs: New TreeViewDefaultSize property.
25681
25682         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
25683         with less hardcoded SystemColors constant.
25684         Implemented TreeViewDefaultSize.
25685
25686         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
25687         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
25688
25689
25690 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
25691
25692         * MonthCalendar.cs:
25693           - Fix NextMonthDate and PrevMonthDate click moving calendar
25694
25695 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
25696
25697         * MonthCalendar.cs:
25698           - Fix usage of ScrollChange Property when scrolling months
25699
25700 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
25701
25702         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
25703          - Fixes menu destroying
25704          - Support adding and removing items on already created menus
25705
25706 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
25707
25708         * MonthCalendar.cs:
25709           - Re-worked all bolded dates handling to match win32
25710         * ThemeWin32Classic.cs:
25711           - Fixed rendering with bolded dates
25712
25713 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
25714
25715         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
25716         - Horizontal scroolbar
25717         - Multicolumn
25718         - Fixes
25719
25720
25721 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
25722
25723         * MonthCalendar.cs:
25724           - Fix Usage of MaxSelectionCount from SelectionRange
25725           - Fixed Shift + Cursor Selection
25726           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
25727           - Fixed normal cursor selection to be compat with win32
25728           - Fixed Shift + Mouse Click selection
25729
25730 2004-11-24  Peter Bartok <pbartok@novell.com>
25731
25732         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
25733         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
25734         * XplatUIX11.cs:
25735           - CreatedKeyBoardMsg now updates keystate with Alt key
25736           - Added workaround for timer crash to CheckTimers, Jackson will
25737             develop a proper fix and check in later
25738           - Implemented DispatchMessage
25739           - Removed calling the native window proc from GetMessage (call
25740             now moved to DispatchMessage)
25741
25742         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
25743           the keydata (Fixes bug #69831)
25744
25745         * XplatUIWin32.cs:
25746           - (DispatchMessage): Switched to return IntPtr
25747           - Added DllImport for SetFocus
25748
25749 2004-11-24  Ravindra <rkumar@novell.com>
25750
25751         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
25752         background drawing.
25753         * ListViewItem.cs: Fixed various properties, calculations
25754         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
25755         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
25756         and some internal properties. Fixed MouseDown handler and Paint
25757         method.
25758
25759 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
25760
25761         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
25762
25763 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
25764
25765         * ContainerControl.cs: correct accidental check in of local changes
25766
25767 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
25768
25769         * ThemeWin32Classic.cs:
25770                 - Fixed Drawing Last month in grid (sometimes not showing)
25771         * MonthCalendar.cs:
25772                 - Fixed title width calculation bug (makeing title small)
25773
25774 2004-11-23  Peter Bartok <pbartok@novell.com>
25775
25776         * XplatUIX11.cs:
25777           - Added generation of WM_MOUSEHOVER event
25778           - Added missing assignment of async_method atom
25779           - Fixed WM_ERASEBKGND; now only redraws the exposed area
25780
25781 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
25782
25783         * ThemeWin32Classic.cs:
25784                 - Fixed Drawing of today circle when showtodaycircle not set
25785                 - fixed drawing of first and last month in the grid (gay dates)
25786         * MonthCalendar.cs:
25787                 - Fixed Drawing of today circle
25788                 - Fixed drawing of grady dates
25789                 - Fixed HitTest for today link when ShowToday set to false
25790                 - Fixed DefaultSize to obey ShowToday
25791
25792 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
25793
25794         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
25795         * System.Windows.Forms/Theme.cs
25796         * MonthCalendar.cs: added for MonthCalendar
25797         * SelectionRange.cs: added for MonthCalendar
25798         * Day.cs: added for MonthCalendar: added for MonthCalendar
25799         * DateRangeEventArgs.cs: added for MonthCalendar
25800         * DateRangeEventHandler.cs: added for MonthCalendar
25801
25802 2004-11-22  Ravindra <rkumar@novell.com>
25803
25804         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
25805         property.
25806
25807 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
25808
25809         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
25810         event handler.
25811         
25812         * NumericUpDown.cs: Added new implementation.
25813         * UpDownBase.cs: Added new implementation.
25814
25815         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
25816         implementations.
25817         
25818         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
25819         implementations.
25820
25821         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
25822         methods.
25823
25824 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
25825
25826         * Timer.cs  (Dispose): Should call the base dispose when
25827         overriding.
25828
25829 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
25830
25831         * ScrollBar.cs: updates thumb position when max, min or increment
25832         is changed
25833
25834 2004-11-21  Ravindra <rkumar@novell.com>
25835
25836         * ListView.cs: Implemented item selection, activation and
25837         column header style. Fixed properties to do a redraw, if
25838         required. Added support for MouseHover, DoubleClick, KeyDown
25839         and KeyUp event handling and some minor fixes.
25840         * ListViewItem.cs: Fixed constructor.
25841         * ThemeWin32Classic.cs: Improved drawing for ListView.
25842
25843 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
25844
25845         * ThemeWin32Classic.cs: initial listbox drawing code
25846         * DrawMode.cs: new enumerator
25847         * ListControl.cs: stubbed class
25848         * ListBox.cs: initial implementation
25849         * Theme.cs: new methods definitions
25850         * SelectionMode.cs: new enumerator
25851
25852 2004-11-17  Peter Bartok  <pbartok@novell.com>
25853
25854         * XplatUIWin32.cs: Added double-click events to the class style
25855         * Control.cs (WndProc):
25856           - Added handling of click-count to MouseDown/ MouseUp events.
25857           - Added handling of middle and right mouse buttons
25858           - Removed old debug code
25859
25860 2004-11-17  Jackson Harper  <jackson@ximian.com>
25861
25862         * XplatUIX11.cs: Use the new Mono.Unix namespace.
25863
25864 2004-11-17  Ravindra <rkumar@novell.com>
25865
25866         * ListView.cs: Added event handling for MouseMove/Up/Down.
25867         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
25868         * ThemeWin32Classic.cs: We need to clear the graphics context and
25869         draw column header in a proper state.
25870
25871
25872 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
25873
25874         *  Menu.cs: fixes signature
25875
25876 2004-11-16  Peter Bartok  <pbartok@novell.com>
25877
25878         * XplatUIX11.cs (GetMessage): Implemented generation of
25879           double click mouse messages
25880
25881 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
25882
25883         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
25884         not by menu
25885
25886 2004-11-11  Peter Bartok  <pbartok@novell.com>
25887
25888         * HandleData.cs: Added Visible property
25889         * XplatUIX11.cs (IsVisible): Now uses Visible property from
25890           HandleData
25891         * XplatUIX11.cs: Removed old debug leftovers
25892         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
25893         * Control.cs (WndProc): Removed old debug leftovers,
25894           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
25895           needed WM_SIZE handling
25896
25897 2004-11-11  Jackson Harper  <jackson@ximian.com>
25898
25899         * OwnerDrawPropertyBag.cs:
25900         * TreeViewImageIndexConverter.cs: Initial implementation
25901
25902 2004-11-10  Jackson Harper  <jackson@ximian.com>
25903
25904         * ThemeWin32Classic.cs:
25905         * TabControl.cs: instead of moving tabs by the slider pos just
25906         start drawing at the tab that is offset by the slider. This way
25907         scrolling always moves by exactly one tab.
25908
25909 2004-11-10  Jackson Harper  <jackson@ximian.com>
25910
25911         * TabControl.cs: You can only scroll left when the slider has
25912         already ben moved right.
25913         
25914 2004-11-10  Jackson Harper  <jackson@ximian.com>
25915
25916         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
25917         the clip area.
25918         
25919 2004-11-10  Jackson Harper  <jackson@ximian.com>
25920
25921         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
25922         clip area.
25923         
25924 2004-11-09  Jackson Harper  <jackson@ximian.com>
25925
25926         * TabControl.cs (CalcXPos): New helper method so we can determine
25927         the proper place to start drawing vertical tabs.
25928         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
25929         
25930 2004-11-09  Jackson Harper  <jackson@ximian.com>
25931
25932         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
25933         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
25934         and Bottom, left and right are illegal values for this and
25935         multiline is enabled when the alignment is set to left or right.
25936         (DrawTab): Each alignment block should draw the text itself now
25937         because Left requires special love. Also add rendering for Left
25938         aligned tabs.
25939         
25940 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
25941
25942         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
25943         does not destroy the windows, removes debugging messages
25944
25945 2004-11-09  jba  <jba-mono@optusnet.com.au>
25946
25947         * ThemeWin32Classic.cs
25948         (DrawButtonBase): Fix verticle text rect clipping in windows
25949         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
25950         rendering and incorrect text rect clipping
25951         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
25952         rendering and incorrect text rect clipping
25953         
25954 2004-11-08  Jackson Harper  <jackson@ximian.com>
25955
25956         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
25957         bottom when they are bottom aligned so the bottoms of the tabs get
25958         displayed.
25959         * TabControl.cs (DropRow): Move rows up instead of down when the
25960         tab control is bottom aligned.
25961
25962 2004-11-08 13:59  pbartok
25963
25964         * XplatUIX11.cs:
25965           - Added handling for various window styles
25966           - Added handling for popup windows
25967           - Added SetTopmost handling
25968
25969 2004-11-08 13:55  pbartok
25970
25971         * XplatUIWin32.cs:
25972           - Added argument to SetTopmost method
25973           - Fixed broken ClientToScreen function
25974
25975 2004-11-08 13:53  pbartok
25976
25977         * XplatUIStructs.cs:
25978           - Added missing WS_EX styles
25979
25980 2004-11-08 13:53  pbartok
25981
25982         * XplatUI.cs, XplatUIDriver.cs:
25983           - Added argument to SetTopmost
25984
25985 2004-11-08 13:52  pbartok
25986
25987         * X11Structs.cs:
25988           - Added XSetWindowAttributes structure
25989           - Improved XWindowAttributes structure
25990           - Added SetWindowValuemask enum
25991           - Added window creation arguments enum
25992           - Added gravity enum
25993           - Added Motif hints structure
25994           - Added various Motif flags and enums
25995           - Added PropertyMode enum for property functions
25996
25997 2004-11-08 13:50  pbartok
25998
25999         * Form.cs:
26000           - Fixed arguments for updated SetTopmost method
26001
26002 2004-11-08 13:49  pbartok
26003
26004         * ToolTip.cs:
26005           - Fixed arguments for updated SetTopmost function
26006           - Fixed usage of PointToClient
26007
26008 2004-11-08 13:44  pbartok
26009
26010         * MenuAPI.cs:
26011           - Added Clipping of children and siblings
26012
26013 2004-11-08 13:41  pbartok
26014
26015         * MainMenu.cs:
26016           - Removed SetMenuBarWindow call. We do this in Form.cs
26017
26018 2004-11-08 13:40  jackson
26019
26020         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
26021           scrolling jimmi in the correct location with bottom aligned tabs
26022
26023 2004-11-08 13:36  pbartok
26024
26025         * ContainerControl.cs:
26026           - Implemented BindingContext
26027           - Implemented ParentForm
26028
26029 2004-11-08 12:46  jackson
26030
26031         * TabControl.cs: Put bottom rendered tabs in the right location
26032
26033 2004-11-08 07:15  jordi
26034
26035         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
26036           removes dead code
26037
26038 2004-11-05 17:30  jackson
26039
26040         * TabControl.cs: When selected tabs are expanded make sure they
26041           don't go beyond the edges of the tab control
26042
26043 2004-11-05 14:57  jackson
26044
26045         * TabControl.cs: Reset show_slider so if the control is resized to
26046           a size where it is no longer needed it's not displayed anymore
26047
26048 2004-11-05 13:16  jackson
26049
26050         * TabControl.cs: Make tab pages non visible when added to the
26051           control
26052
26053 2004-11-05 12:42  jackson
26054
26055         * TabControl.cs: Implement SizeMode.FillToRight
26056
26057 2004-11-05 12:16  jackson
26058
26059         * Control.cs: Do not call CreateHandle if the handle is already
26060           created
26061
26062 2004-11-05 11:46  jackson
26063
26064         * TabControl.cs: Remove superflous call to CalcTabRows
26065
26066 2004-11-05 09:07  jackson
26067
26068         * XplatUIX11.cs: Update for Mono.Posix changes
26069
26070 2004-11-05 07:00  ravindra
26071
26072         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
26073           scrolling.
26074
26075 2004-11-04 22:47  jba
26076
26077         * ThemeWin32Classic.cs:
26078           - Fix Button rendering for FlatStyle = Flat or Popup
26079           - Fix RadioButton and CheckBox rendering when Appearance = Button
26080             (normal and flatstyle).
26081           - Correct outer rectangle color when drawing focus rectangle
26082           - Adjust button bounds to be 1 px smaller when focused
26083           - Make button not draw sunken 3d border when pushed (windows compat)
26084           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
26085           - Offset the text in RadioButton and Checkbox when being rendered as
26086           a button.
26087           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
26088           radiobuttons
26089           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
26090           - Fixed disabled text rendering for normally rendered radiobuttons
26091
26092 2004-11-04 10:26  jackson
26093
26094         * TabControl.cs: Recalculate tab rows when resizing
26095
26096 2004-11-04 07:47  jordi
26097
26098         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
26099           collection completion, drawing issues, missing features
26100
26101 2004-11-04 05:03  ravindra
26102
26103         * ScrollBar.cs:
26104                 - We need to recalculate the Thumb area when
26105                 LargeChange/maximum/minimum values are changed.
26106           - We set the 'pos' in UpdatePos() method to minimum, if it's less
26107                 than minimum. This is required to handle the case if large_change is
26108                 more than max, and use LargeChange property instead of large_change
26109                 variable.
26110           - We return max+1 when large_change is more than max, like MS does.
26111
26112 2004-11-04 04:29  ravindra
26113
26114         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
26115                 - Changed default value signatures (prefixed all with ListView).
26116                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
26117                 ListView.
26118           - Fixed calculations for ListViewItem and implemented Clone()
26119           method.
26120
26121 2004-11-04 04:26  ravindra
26122
26123         * Theme.cs, ThemeWin32Classic.cs:
26124                 - Changed default ListView values signatures (prefixed all with
26125                 ListView).
26126           - Fixed default size values for VScrollBar and HScrollBar.
26127                 - Fixed DrawListViewItem method.
26128
26129 2004-11-04 04:05  ravindra
26130
26131         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
26132
26133 2004-11-04 04:04  ravindra
26134
26135         * ImageList.cs: Implemented the missing overload for Draw method.
26136
26137 2004-11-03 19:29  jackson
26138
26139         * TabControl.cs: Handle dropping rows on selection properly
26140
26141 2004-11-03 11:59  jackson
26142
26143         * TabControl.cs: remove debug code
26144
26145 2004-11-03 11:52  jackson
26146
26147         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
26148           the scrolly widgerywoo
26149
26150 2004-11-02 13:52  jackson
26151
26152         * TabControl.cs: Resize the tab pages and tabs when the tab control
26153           is resized
26154
26155 2004-11-02 13:40  jackson
26156
26157         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
26158           selected tab to the bottom
26159
26160 2004-11-02 13:39  jackson
26161
26162         * TabPage.cs: Store the tab pages row
26163
26164 2004-11-02 12:33  jordi
26165
26166         * MenuItem.cs: fixes handle creation
26167
26168 2004-11-02 11:42  jackson
26169
26170         * TabControl.cs: signature fix
26171
26172 2004-11-02 08:56  jackson
26173
26174         * TabControl.cs: Calculate whether the tab is on an edge properly.
26175           Remove top secret debugging code
26176
26177 2004-11-01 19:57  jackson
26178
26179         * TabControl.cs: Add click handling, and proper sizing
26180
26181 2004-11-01 19:47  jackson
26182
26183         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
26184           tab controls
26185
26186 2004-11-01 19:39  jackson
26187
26188         * TabPage.cs: add internal property to store the bounds of a tab
26189           page
26190
26191 2004-10-30 04:23  ravindra
26192
26193         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
26194           values.
26195
26196 2004-10-30 04:21  ravindra
26197
26198         * ListView.cs, ListViewItem.cs: Added support for scrolling and
26199           fixed calculations.
26200
26201 2004-10-30 03:06  pbartok
26202
26203         * XplatUIX11.cs:
26204           - Removed extension of DllImported libs
26205
26206 2004-10-29 09:55  jordi
26207
26208         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
26209           navigation, itemcollection completion, menu fixes
26210
26211 2004-10-27 22:58  pbartok
26212
26213         * XplatUIX11.cs:
26214           - Now throws a nice error message when no X display could be opened
26215
26216 2004-10-26 13:51  jordi
26217
26218         * ListView.cs: removes warning
26219
26220 2004-10-26 03:55  ravindra
26221
26222         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
26223           ThemeWin32Classic.cs: Some formatting for my last checkins.
26224
26225 2004-10-26 03:36  ravindra
26226
26227         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
26228           control and default values.
26229
26230 2004-10-26 03:35  ravindra
26231
26232         * Theme.cs: Added some default values for ListView control.
26233
26234 2004-10-26 03:33  ravindra
26235
26236         * ToolBar.cs: ToolBar should use the user specified button size, if
26237           there is any. Added a size_specified flag for the same.
26238
26239 2004-10-26 03:33  ravindra
26240
26241         * ColumnHeader.cs: Added some internal members and calculations for
26242           ColumnHeader.
26243
26244 2004-10-26 03:32  ravindra
26245
26246         * ListViewItem.cs: Calculations for ListViewItem.
26247
26248 2004-10-26 03:31  ravindra
26249
26250         * ListView.cs: Added some internal members and calculations for
26251           ListView.
26252
26253 2004-10-22 13:31  jordi
26254
26255         * MenuAPI.cs: speedup menus drawing
26256
26257 2004-10-22 13:16  jackson
26258
26259         * XplatUIX11.cs: Make sure to update exposed regions when adding an
26260           expose event
26261
26262 2004-10-22 11:49  jackson
26263
26264         * Control.cs: oops
26265
26266 2004-10-22 11:41  jackson
26267
26268         * Control.cs: Check to see if the window should have its background
26269           repainted by X when drawing.
26270
26271 2004-10-22 11:31  jackson
26272
26273         * XplatUIX11.cs: When invalidating areas only use XClearArea if
26274           clear is true, this way we do not get flicker from X repainting the
26275           background
26276
26277 2004-10-22 11:28  jackson
26278
26279         * XEventQueue.cs: Queue properly
26280
26281 2004-10-21 09:38  jackson
26282
26283         * XEventQueue.cs: Fix access modifier
26284
26285 2004-10-21 09:36  jackson
26286
26287         * XEventQueue.cs: Don't loose messages
26288
26289 2004-10-21 09:22  jackson
26290
26291         * XEventQueue.cs: Don't loose messages
26292
26293 2004-10-20 04:15  jordi
26294
26295         * BootMode.cs: enum need it by SystemInfo
26296
26297 2004-10-19 21:58  pbartok
26298
26299         * XplatUIWin32.cs:
26300           - Small sanity check
26301
26302 2004-10-19 21:56  pbartok
26303
26304         * Form.cs:
26305           - Added private FormParentWindow class which acts as the container
26306             for our form and as the non-client area where menus are drawn
26307           - Added/Moved required tie-ins to Jordi's menus
26308           - Fixed/Implemented the FormStartPosition functionality
26309
26310 2004-10-19 21:52  pbartok
26311
26312         * Control.cs:
26313           - Removed unneeded locals
26314           - Added code to all size and location properties to understand and
26315             deal with the parent container of Form
26316
26317 2004-10-19 21:33  pbartok
26318
26319         * Application.cs:
26320           - Fixed to deal with new Form subclasses for menus
26321
26322 2004-10-19 17:48  jackson
26323
26324         * XEventQueue.cs: commit correct version of file
26325
26326 2004-10-19 16:50  jackson
26327
26328         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
26329
26330 2004-10-19 16:15  jordi
26331
26332         * MenuAPI.cs: MenuBarCalcSize returns the height
26333
26334 2004-10-19 08:31  pbartok
26335
26336         * Control.cs:
26337           - Added missing call to PreProcessMessage before calling OnXXXKey
26338           methods
26339
26340 2004-10-19 00:04  ravindra
26341
26342         * ToolTip.cs: Fixed constructor.
26343
26344 2004-10-18 09:31  jordi
26345
26346         * MenuAPI.cs: menuitems in menubars do not have shortcuts
26347
26348 2004-10-18 09:26  jordi
26349
26350         * MenuItem.cs: fixes MenuItem class signature
26351
26352 2004-10-18 08:56  jordi
26353
26354         * MenuAPI.cs: prevents windows from showing in the taskbar
26355
26356 2004-10-18 00:28  ravindra
26357
26358         * ToolTip.cs: Suppressed a warning message.
26359
26360 2004-10-18 00:27  ravindra
26361
26362         * Control.cs: Default value of visible property must be true.
26363
26364 2004-10-17 23:19  pbartok
26365
26366         * ToolTip.cs:
26367           - Complete implementation
26368
26369 2004-10-17 23:19  pbartok
26370
26371         * XplatUIX11.cs:
26372           - Added EnableWindow method
26373           - Added SetModal stub
26374           - Added generation of WM_ACTIVATE message (still needs testing)
26375           - Added SetTopMost stub
26376           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
26377
26378 2004-10-17 23:17  pbartok
26379
26380         * XplatUIWin32.cs:
26381           - Removed VirtualKeys to XplatUIStructs
26382           - Implemented SetTopMost method
26383           - Implemented EnableWindow method
26384           - Bugfix in ScreenToClient()
26385           - Bugfixes in ClientToScreen()
26386
26387 2004-10-17 22:51  pbartok
26388
26389         * XplatUIStructs.cs:
26390           - Added WS_EX styles to WindowStyles enumeration
26391
26392 2004-10-17 22:50  pbartok
26393
26394         * XplatUI.cs, XplatUIDriver.cs:
26395           - Added method for enabling/disabling windows
26396           - Added method for setting window modality
26397           - Added method for setting topmost window
26398
26399 2004-10-17 22:49  pbartok
26400
26401         * ThemeWin32Classic.cs:
26402           - Added ToolTip drawing code
26403
26404 2004-10-17 22:49  pbartok
26405
26406         * Theme.cs:
26407           - Added ToolTip abstracts
26408
26409 2004-10-17 22:47  pbartok
26410
26411         * Form.cs:
26412           - Fixed Form.ControlCollection to handle owner relations
26413           - Added Owner/OwnedForms handling
26414           - Implemented Z-Ordering for owned forms
26415           - Removed unneeded private overload of ShowDialog
26416           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
26417             so I hope)
26418           - Fixed Close(), had wrong default
26419           - Added firing of OnLoad event
26420           - Added some commented out debug code for Ownership handling
26421
26422 2004-10-17 22:16  pbartok
26423
26424         * Control.cs:
26425           - Fixed/implemented flat list of controls
26426
26427 2004-10-17 22:14  pbartok
26428
26429         * Application.cs:
26430           - Added code to simulate modal dialogs on Win32
26431
26432 2004-10-17 16:11  jordi
26433
26434         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
26435           mouse event
26436
26437 2004-10-17 13:39  jordi
26438
26439         * MenuAPI.cs: menu drawing fixes
26440
26441 2004-10-15 09:10  ravindra
26442
26443         * StructFormat.cs: General Enum.
26444
26445 2004-10-15 09:09  ravindra
26446
26447         * SizeGripStyle.cs: Enum for Form.
26448
26449 2004-10-15 09:08  ravindra
26450
26451         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
26452           in Theme for ListView.
26453
26454 2004-10-15 09:06  ravindra
26455
26456         * ColumnHeader.cs: Flushing some formatting changes.
26457
26458 2004-10-15 09:05  ravindra
26459
26460         * ListViewItem.cs: Implemented GetBounds method and fixed coding
26461           style.
26462
26463 2004-10-15 09:03  ravindra
26464
26465         * ListView.cs: Implemented Paint method and fixed coding style.
26466
26467 2004-10-15 07:34  jordi
26468
26469         * MenuAPI.cs: fix for X11
26470
26471 2004-10-15 07:32  ravindra
26472
26473         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
26474                 - Renamed Paint() method to Draw() for clarity. Also, moved
26475                 DrawImage() to OnPaint().
26476
26477 2004-10-15 07:25  ravindra
26478
26479         * CheckBox.cs, RadioButton.cs:
26480                 - Removed Redraw (), we get it from ButtonBase.
26481                 - Implemented Paint (), to do class specific painting.
26482
26483 2004-10-15 07:16  ravindra
26484
26485         * ButtonBase.cs:
26486                 - Redraw () is not virtual now.
26487                 - Added an internal virtual method Paint (), so that
26488                 derived classes can do their painting on their own.
26489                 - Modified OnPaint () to call Paint ().
26490
26491 2004-10-15 06:43  jordi
26492
26493         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
26494           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
26495
26496 2004-10-15 00:30  ravindra
26497
26498         * MessageBox.cs:
26499                 - MessageBox on windows does not have min/max buttons.
26500                 This change in CreateParams fixes this on Windows. We
26501                 still need to implement this windowstyle behavior in
26502                 our X11 driver.
26503
26504 2004-10-14 05:14  ravindra
26505
26506         * ToolBar.cs:
26507                 - Changed Redraw () to do a Refresh () always.
26508                 - Fixed the MouseMove event handling when mouse is pressed,
26509                 ie drag event handling.
26510                 - Replaced the usage of ToolBarButton.Pressed property to
26511                 ToolBarButton.pressed internal variable.
26512
26513 2004-10-14 05:10  ravindra
26514
26515         * ToolBarButton.cs:
26516                 - Added an internal member 'inside' to handle mouse move
26517                 with mouse pressed ie mouse drag event.
26518                 - Changed 'Pressed' property to return true only when
26519                 'inside' and 'pressed' are both true.
26520                 - Some coding style love.
26521
26522 2004-10-14 00:17  ravindra
26523
26524         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
26525           public method.
26526
26527 2004-10-14 00:15  ravindra
26528
26529         * ButtonBase.cs: Redraw () related improvements.
26530
26531 2004-10-14 00:14  ravindra
26532
26533         * MessageBox.cs: Moved InitFormSize () out of Paint method and
26534           removed unnecessary calls to Button.Show () method.
26535
26536 2004-10-13 17:50  pbartok
26537
26538         * XplatUIX11.cs:
26539           - Formatting fix
26540           - Removed destroying of window until we solve the problem of X
26541             destroying the window before us on shutdown
26542
26543 2004-10-13 16:32  pbartok
26544
26545         * ButtonBase.cs:
26546           - Now Redraws on MouseUp for FlatStyle Flat and Popup
26547
26548 2004-10-13 14:18  pbartok
26549
26550         * XplatUIX11.cs:
26551           - Added code to destroy the X window
26552
26553 2004-10-13 14:18  pbartok
26554
26555         * XplatUIWin32.cs:
26556           - Added code to destroy a window
26557
26558 2004-10-13 14:12  pbartok
26559
26560         * ButtonBase.cs:
26561           - Added the Redraw on Resize that got dropped in the last rev
26562
26563 2004-10-13 09:06  pbartok
26564
26565         * ThemeWin32Classic.cs:
26566           - Path from John BouAntoun:
26567             * Fix check rendering (centre correctly for normal style, offset
26568               correctly for FlatStyle).
26569             * Fix border color usage (use backcolor) for FlatStyle.Popup
26570             * Use checkbox.Capture instead of checkbox.is_pressed when
26571               rendering flatstyle states.
26572
26573 2004-10-12 21:48  pbartok
26574
26575         * ThemeWin32Classic.cs:
26576           - Removed all occurences of SystemColors and replaced them with the
26577             matching theme color
26578
26579 2004-10-12 21:41  pbartok
26580
26581         * ThemeWin32Classic.cs:
26582           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
26583             him using the function for flatstyle drawing
26584           - Changed functions to use the new version of CPDrawBorder3D
26585
26586 2004-10-12 21:15  pbartok
26587
26588         * ControlPaint.cs:
26589           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
26590             match MS documentation. They need to return defined colors if the
26591             passed color matches the configured control color. Thanks to John
26592             BouAntoun for pointing this out.
26593
26594 2004-10-12 20:57  pbartok
26595
26596         * Control.cs:
26597           - Fix from John BouAntoun: Raise ForeColorChanged event when text
26598             color is changed
26599
26600 2004-10-12 20:46  pbartok
26601
26602         * CheckBox.cs:
26603           - Fix from John BouAntoun: Now properly sets the Appearance property
26604
26605 2004-10-12 20:45  pbartok
26606
26607         * ThemeWin32Classic.cs:
26608           - Fixes from John BouAntoun: now handles forecolors and backcolors
26609             for flatstyle rendered controls much better; It also fixes normal
26610             checkbox rendering when pushed or disabled.
26611
26612 2004-10-08 02:50  jordi
26613
26614         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
26615           work
26616
26617 2004-10-07 08:56  jordi
26618
26619         * ThemeWin32Classic.cs: Removes deletion of cached brushes
26620
26621 2004-10-06 03:59  jordi
26622
26623         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
26624           XplatUIWin32.cs: removes warnings from compilation
26625
26626 2004-10-05 12:23  jackson
26627
26628         * RadioButton.cs: Fix ctor
26629
26630 2004-10-05 11:10  pbartok
26631
26632         * MessageBox.cs:
26633           - Partial implementation by Benjamin Dasnois
26634
26635 2004-10-05 10:15  jackson
26636
26637         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
26638           by John BouAntoun
26639
26640 2004-10-05 03:07  ravindra
26641
26642         * ToolBar.cs:
26643                 - Removed a private method, Draw ().
26644                 - Fixed the ButtonDropDown event handling.
26645                 - Fixed MouseMove event handling.
26646
26647 2004-10-05 03:04  ravindra
26648
26649         * ThemeWin32Classic.cs:
26650                 - Added DrawListView method and ListViewDefaultSize property.
26651                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
26652                 - Changed DOS style CRLF to Unix format (dos2unix).
26653
26654 2004-10-05 03:03  ravindra
26655
26656         * Theme.cs:
26657                 - Added DrawListView method and ListViewDefaultSize property.
26658
26659 2004-10-05 02:42  ravindra
26660
26661         * ToolBarButton.cs: Added an internal member dd_pressed to handle
26662           clicks on DropDown arrow.
26663
26664 2004-10-04 22:56  jackson
26665
26666         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
26667           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
26668           Control handle the buffers, derived classes should not have to
26669           CreateBuffers themselves.
26670
26671 2004-10-04 21:20  jackson
26672
26673         * StatusBar.cs: The control handles resizing the buffers now.
26674
26675 2004-10-04 21:18  jackson
26676
26677         * Control.cs: When resizing the buffers should be invalidated. This
26678           should be handled in Control not in derived classes.
26679
26680 2004-10-04 14:45  jackson
26681
26682         * TabPage.cs: oops
26683
26684 2004-10-04 02:14  pbartok
26685
26686         * LeftRightAlignment.cs:
26687           - Initial check-in
26688
26689 2004-10-04 01:09  jordi
26690
26691         * ThemeWin32Classic.cs: fixes right button position causing right
26692           button not showing on horizontal scrollbars
26693
26694 2004-10-02 13:12  pbartok
26695
26696         * XplatUIX11.cs:
26697           - Simplified the Invalidate method by using an X call instead of
26698             generating the expose ourselves
26699           - Added an expose when the window background is changed
26700           - Implemented ClientToScreen method
26701
26702 2004-10-02 13:08  pbartok
26703
26704         * XplatUIWin32.cs:
26705           - Added Win32EnableWindow method (test for implementing modal
26706           dialogs)
26707           - Added ClientToScreen method and imports
26708
26709 2004-10-02 13:07  pbartok
26710
26711         * XplatUI.cs, XplatUIDriver.cs:
26712           - Added ClientToScreen coordinate translation method
26713
26714 2004-10-02 13:06  pbartok
26715
26716         * KeyPressEventArgs.cs:
26717           - Fixed access level for constructor
26718
26719 2004-10-02 13:06  pbartok
26720
26721         * NativeWindow.cs:
26722           - Changed access level for the window_collection hash table
26723
26724 2004-10-02 13:05  pbartok
26725
26726         * Form.cs:
26727           - Added KeyPreview property
26728           - Added Menu property (still incomplete, pending Jordi's menu work)
26729           - Implemented ProcessCmdKey
26730           - Implemented ProcessDialogKey
26731           - Implemented ProcessKeyPreview
26732
26733 2004-10-02 13:02  pbartok
26734
26735         * Control.cs:
26736           - Added private method to get the Control object from the window
26737           handle
26738           - Implemented ContextMenu property
26739           - Implemented PointToScreen
26740           - Implemented PreProcessMessage
26741           - Implemented IsInputChar
26742           - Implemented IsInputKey
26743           - Implemented ProcessCmdKey
26744           - Completed ProcessKeyEventArgs
26745           - Fixed message loop to call the proper chain of functions on key
26746           events
26747           - Implemented ProcessDialogChar
26748           - Implemented ProcessDialogKey
26749           - Implemented ProcessKeyMessage
26750           - Implemented ProcessKeyPreview
26751           - Added RaiseDragEvent stub (MS internal method)
26752           - Added RaiseKeyEvent stub (MS internal method)
26753           - Added RaiseMouseEvent stub (MS Internal method)
26754           - Added RaisePaintEvent stub (MS Internal method)
26755           - Added ResetMouseEventArgs stub (MS Internal method)
26756           - Implemented RtlTranslateAlignment
26757           - Implemented RtlTranslateContent
26758           - Implemented RtlTranslateHorizontal
26759           - Implemented RtlTranslateLeftRight
26760           - Added generation of KeyPress event
26761
26762 2004-10-02 05:57  ravindra
26763
26764         * ListViewItem.cs: Added attributes.
26765
26766 2004-10-02 05:32  ravindra
26767
26768         * ListView.cs: Added attributes.
26769
26770 2004-10-01 11:53  jackson
26771
26772         * Form.cs: Implement the Close method so work on MessageBox can
26773           continue.
26774
26775 2004-09-30 14:06  pbartok
26776
26777         * XplatUIX11.cs:
26778           - Bug fixes
26779
26780 2004-09-30 11:34  jackson
26781
26782         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
26783
26784 2004-09-30 07:26  ravindra
26785
26786         * ListViewItemConverter.cs: Converter for ListViewItem.
26787
26788 2004-09-30 07:26  ravindra
26789
26790         * SortOrder.cs: Enum for ListView control.
26791
26792 2004-09-30 07:25  ravindra
26793
26794         * ColumnHeader.cs: Supporting class for ListView control.
26795
26796 2004-09-30 07:24  ravindra
26797
26798         * ListView.cs, ListViewItem.cs: Initial implementation.
26799
26800 2004-09-30 07:20  ravindra
26801
26802         * ItemActivation.cs: Enum for ListView Control.
26803
26804 2004-09-29 20:29  pbartok
26805
26806         * XplatUIX11.cs:
26807           - Added lookup of pixel value for background color; tries to get a
26808             color 'close' to the requested color, it avoids having to create a
26809             colormap.  Depending on the display this could mean the used color
26810             is slightly off the desired color. Might have to change it to a more
26811             resource intensive colormap approach, but it will work as a
26812           workaround to avoid red screens.
26813
26814 2004-09-29 14:27  jackson
26815
26816         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
26817
26818 2004-09-28 12:44  pbartok
26819
26820         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
26821           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
26822           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
26823           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
26824           TrackBar.cs, VScrollBar.cs:
26825           - Streamlined Theme interfaces:
26826             * Each DrawXXX method for a control now is passed the object for
26827               the control to be drawn in order to allow accessing any state the
26828               theme might require
26829
26830             * ControlPaint methods for the theme now have a CP prefix to avoid
26831               name clashes with the Draw methods for controls
26832
26833             * Every control now retrieves it's DefaultSize from the current
26834             theme
26835
26836 2004-09-28 12:17  jackson
26837
26838         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
26839           drawing
26840
26841 2004-09-24 14:57  jackson
26842
26843         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
26844           Gives us a nice little performance boost.
26845
26846 2004-09-24 12:02  jackson
26847
26848         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
26849           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
26850           Control and supporting classes. Initial checkin
26851
26852 2004-09-23 13:08  jackson
26853
26854         * Form.cs: Temp build fixage
26855
26856 2004-09-23 01:39  ravindra
26857
26858         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
26859           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
26860           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
26861           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
26862           EventHandlers needed by ListView Control.
26863
26864 2004-09-22 14:12  pbartok
26865
26866         * ScrollableControl.cs:
26867           - Implemented DockPadding property
26868           - Implemented AutoScroll property
26869           - Implemented AutoScrollMargin property
26870           - Implemented AutoScrollMinSize property
26871           - Implemented AutoScrollPosition property
26872           - Implemented DisplayRectangle property (still incomplete)
26873           - Implemented CreateParams property
26874           - Implemented HScroll property
26875           - Implemented VScroll property
26876           - Implemented OnVisibleChanged property
26877
26878 2004-09-22 14:09  pbartok
26879
26880         * Form.cs:
26881           - Added Form.ControllCollection class
26882           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
26883             RemoveOwnedForm (still incomplete, missing on-top and common
26884             minimize/maximize behaviour)
26885           - Added StartPosition property (still incomplete, does not use when
26886             creating the form)
26887           - Added ShowDialog() methods (still incomplete, missing forcing the
26888             dialog modal)
26889
26890 2004-09-22 14:05  pbartok
26891
26892         * Application.cs:
26893           - Added message loop for modal dialogs
26894
26895 2004-09-22 14:02  pbartok
26896
26897         * GroupBox.cs:
26898           - Fixed wrong types for events
26899
26900 2004-09-22 14:00  pbartok
26901
26902         * Shortcut.cs, FormWindowState.cs:
26903           - Fixed wrong values
26904
26905 2004-09-22 12:01  jackson
26906
26907         * Control.cs: Text is never null
26908
26909 2004-09-20 22:14  pbartok
26910
26911         * XplatUIWin32.cs:
26912           - Fixed accessibility level for Idle handler
26913
26914 2004-09-20 18:54  jackson
26915
26916         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26917           XplatUIX11.cs: New message loop that uses poll so we don't get a
26918           busy loop
26919
26920 2004-09-17 10:43  pbartok
26921
26922         * ScrollBar.cs:
26923           - Fixed behaviour of arrow buttons. Now properly behaves like
26924             Buttons (and like Microsoft's scrollbar arrow buttons)
26925
26926 2004-09-17 10:14  pbartok
26927
26928         * ScrollBar.cs:
26929           - Added missing release of keyboard/mouse capture
26930
26931 2004-09-17 06:18  jordi
26932
26933         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
26934           Theme.cs: Very early menu support
26935
26936 2004-09-16 17:45  pbartok
26937
26938         * XplatUIWin32.cs:
26939           - Fixed sending a window to the front
26940           - Added overload for SetWindowPos to avoid casting
26941
26942 2004-09-16 17:44  pbartok
26943
26944         * Control.cs:
26945           - Added SendToBack and BringToFront methods
26946
26947 2004-09-16 07:00  ravindra
26948
26949         * Copyright: Added Novell URL.
26950
26951 2004-09-16 07:00  ravindra
26952
26953         * ToolBar.cs: Invalidate should be done before redrawing.
26954
26955 2004-09-15 21:19  ravindra
26956
26957         * ColumnHeaderStyle.cs: Enum for ListView Control.
26958
26959 2004-09-15 21:18  ravindra
26960
26961         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
26962           ListView Control.
26963
26964 2004-09-13 18:26  jackson
26965
26966         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
26967           properly
26968
26969 2004-09-13 18:13  jackson
26970
26971         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
26972           a second thread and post messages into the main threads message
26973           queue. This makes timing much more consistent. Both win2K and XP
26974           have a minimum timer value of 15 milliseconds, so we now do this
26975           too.
26976
26977 2004-09-13 15:18  pbartok
26978
26979         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26980           XplatUIX11.cs:
26981           - Added Z-Ordering methods
26982
26983 2004-09-13 10:56  pbartok
26984
26985         * Form.cs:
26986           - Fixed #region names
26987           - Moved properties and methods into their proper #regions
26988
26989 2004-09-13 10:51  pbartok
26990
26991         * Form.cs:
26992           - Added Accept and CancelButton properties
26993           - Added ProcessDialogKey() method
26994
26995 2004-09-13 08:18  pbartok
26996
26997         * IWindowTarget.cs:
26998           - Initial check-in
26999
27000 2004-09-10 21:50  pbartok
27001
27002         * Control.cs:
27003           - Added DoDragDrop() [incomplete]
27004           - Properly implemented 'Visible' handling
27005           - Added SetVisibleCore()
27006           - Implemented FindChildAtPoint()
27007           - Implemented GetContainerControl()
27008           - Implemented Hide()
27009
27010 2004-09-10 19:28  pbartok
27011
27012         * Control.cs:
27013           - Moved methods into their appropriate #regions
27014           - Reordered methods within regions alphabetically
27015
27016 2004-09-10 18:57  pbartok
27017
27018         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
27019           - Added method to retrieve text from window
27020
27021 2004-09-10 18:56  pbartok
27022
27023         * Control.cs:
27024           - Moved some internal functions into the internal region
27025           - Implemented FontHeight
27026           - Implemented RenderRightToLeft
27027           - Implemented ResizeRedraw
27028           - Implemented ShowFocusCues
27029           - Implemented ShowKeyboardCues
27030           - Implemented FromChildHandle
27031           - Implemented FromHandle
27032           - Implemented IsMnemonic
27033           - Implemented ReflectMessage
27034           - All public and protected Static Methods are now complete
27035
27036 2004-09-10 16:54  pbartok
27037
27038         * Control.cs:
27039           - Implemented remaining missing public instance properties
27040           - Alphabetized some out of order properties
27041
27042 2004-09-10 05:51  ravindra
27043
27044         * PictureBox.cs: Added a check for null image.
27045
27046 2004-09-10 00:59  jordi
27047
27048         * GroupBox.cs: remove cvs tag
27049
27050 2004-09-09 05:25  ravindra
27051
27052         * ToolBar.cs: Make redraw accessible from ToolBarButton.
27053
27054 2004-09-09 05:23  ravindra
27055
27056         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
27057           parent redraw.
27058
27059 2004-09-09 02:28  pbartok
27060
27061         * ThemeWin32Classic.cs:
27062           - Improve disabled string look
27063
27064 2004-09-09 01:15  jordi
27065
27066         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
27067           args and handler
27068
27069 2004-09-08 23:56  ravindra
27070
27071         * ItemBoundsPortion.cs: It's enum, not a class!
27072
27073 2004-09-08 23:47  ravindra
27074
27075         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
27076           Enums for Form.
27077
27078 2004-09-08 21:13  ravindra
27079
27080         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
27081           ListView control.
27082
27083 2004-09-08 21:03  ravindra
27084
27085         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
27086           avoid crash.
27087
27088 2004-09-08 21:01  ravindra
27089
27090         * ScrollableControl.cs: Removed unreachable code.
27091
27092 2004-09-08 06:45  jordi
27093
27094         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
27095
27096 2004-09-08 01:00  jackson
27097
27098         * XplatUIX11.cs: Only run the timers when updating the message
27099           queue. This effectively gives X messages a higher priority then
27100           timer messages. Timers still need love though
27101
27102 2004-09-07 14:01  jackson
27103
27104         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
27105           this for us and the handle is no longer valid.
27106
27107 2004-09-07 13:59  jackson
27108
27109         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
27110           loop that manages to not crash. TODO: Add poll and cleanup timers
27111
27112 2004-09-07 11:12  jordi
27113
27114         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
27115
27116 2004-09-07 03:40  jordi
27117
27118         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
27119           fixes, methods, multiple links
27120
27121 2004-09-06 06:55  jordi
27122
27123         * Control.cs: Caches ClientRectangle rectangle value
27124
27125 2004-09-05 02:03  jordi
27126
27127         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
27128           certain situations
27129
27130 2004-09-04 11:10  jordi
27131
27132         * Label.cs: Refresh when font changed
27133
27134 2004-09-02 16:24  pbartok
27135
27136         * Control.cs:
27137           - Added sanity check to creation of double buffer bitmap
27138
27139 2004-09-02 16:24  pbartok
27140
27141         * ButtonBase.cs:
27142           - Fixed selection of text color
27143           - Fixed handling of resize event; now properly recreates double
27144             buffering bitmap
27145           - Added missing assignment of TextAlignment
27146           - Added proper default for TextAlignment
27147
27148 2004-09-02 14:26  pbartok
27149
27150         * RadioButton.cs:
27151           - Added missing RadioButton.RadioButtonAccessibleObject class
27152
27153 2004-09-02 14:26  pbartok
27154
27155         * Control.cs:
27156           - Added missing Control.ControlAccessibleObject class
27157           - Started to implement Select()ion mechanisms, still very incomplete
27158
27159 2004-09-02 14:25  pbartok
27160
27161         * AccessibleObject.cs:
27162           - Added missing methods
27163
27164 2004-09-02 14:23  pbartok
27165
27166         * AccessibleNavigation.cs, AccessibleSelection.cs:
27167           - Initial check-in
27168
27169 2004-09-02 10:32  jordi
27170
27171         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
27172           pool for pens, brushes, and hatchbruses
27173
27174 2004-09-01 15:30  jackson
27175
27176         * StatusBar.cs: Fix typo
27177
27178 2004-09-01 14:44  pbartok
27179
27180         * RadioButton.cs:
27181           - Fixed state
27182
27183 2004-09-01 14:39  pbartok
27184
27185         * Button.cs, RadioButton.cs:
27186           - Functional initial check-in
27187
27188 2004-09-01 14:01  pbartok
27189
27190         * CheckBox.cs:
27191           - Added missing default
27192           - Added missing region mark
27193
27194 2004-09-01 09:10  jordi
27195
27196         * Label.cs: fixes method signatures, new methods, events, fixes
27197           autosize
27198
27199 2004-09-01 07:19  jordi
27200
27201         * Control.cs: Init string variables with an empty object
27202
27203 2004-09-01 04:20  jordi
27204
27205         * Control.cs: fires OnFontChanged event
27206
27207 2004-08-31 20:07  pbartok
27208
27209         * ButtonBase.cs:
27210           - Enabled display of strings
27211
27212 2004-08-31 20:05  pbartok
27213
27214         * Form.cs:
27215           - Added (partial) implementation of DialogResult; rest needs to be
27216             implemented when the modal loop code is done
27217
27218 2004-08-31 19:55  pbartok
27219
27220         * CheckBox.cs:
27221           - Fixed to match the removal of the needs_redraw concept
27222
27223 2004-08-31 19:55  pbartok
27224
27225         * ButtonBase.cs:
27226           - Removed the rather odd split between 'needs redraw' and redrawing
27227           - Now handles the events that require regeneration (ambient
27228             properties and size)
27229
27230 2004-08-31 19:41  pbartok
27231
27232         * Control.cs:
27233           - Added firing of BackColorChanged event
27234           - Added TopLevelControl property
27235           - Fixed handling of WM_ERASEBKGRND message
27236
27237 2004-08-31 12:49  pbartok
27238
27239         * ButtonBase.cs:
27240           - Removed debug
27241           - Minor fixes
27242
27243 2004-08-31 12:48  pbartok
27244
27245         * CheckBox.cs:
27246           - Finished (famous last words)
27247
27248 2004-08-31 04:35  jordi
27249
27250         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
27251           scrolling bugs, adds new methods
27252
27253 2004-08-30 14:42  pbartok
27254
27255         * CheckBox.cs:
27256           - Implemented CheckBox drawing code
27257
27258 2004-08-30 14:42  pbartok
27259
27260         * ButtonBase.cs:
27261           - Made Redraw() and CheckRedraw() virtual
27262           - Improved mouse up/down/move logic to properly track buttons
27263
27264 2004-08-30 09:44  pbartok
27265
27266         * CheckBox.cs:
27267           - Updated to fix broken build. Not complete yet.
27268
27269 2004-08-30 09:28  pbartok
27270
27271         * CheckState.cs:
27272           - Initial checkin
27273
27274 2004-08-30 09:17  pbartok
27275
27276         * Appearance.cs:
27277           - Initial check-in
27278
27279 2004-08-27 16:12  ravindra
27280
27281         * ToolBarButton.cs: Added TypeConverter attribute.
27282
27283 2004-08-27 16:07  ravindra
27284
27285         * ImageIndexConverter.cs: Implemented.
27286
27287 2004-08-27 14:17  pbartok
27288
27289         * Control.cs:
27290           - Removed unneeded stack vars
27291           - First attempt to fix sizing issues when layout is suspended
27292
27293 2004-08-25 15:35  jordi
27294
27295         * ScrollBar.cs: more fixes to scrollbar
27296
27297 2004-08-25 14:04  ravindra
27298
27299         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
27300           Added the missing divider code and grip for ToolBar Control.
27301
27302 2004-08-25 13:20  pbartok
27303
27304         * Control.cs:
27305           - Control now properly passes the ambient background color to child
27306             controls
27307
27308 2004-08-25 13:20  jordi
27309
27310         * ScrollBar.cs: small bug fix regarding bar position
27311
27312 2004-08-25 12:33  pbartok
27313
27314         * Timer.cs:
27315           - Now only calls SetTimer or KillTimer if the enabled state has
27316           changed
27317
27318 2004-08-25 12:33  pbartok
27319
27320         * XplatUIWin32.cs:
27321           - Fixed timer handling, now seems to work
27322           - Improved error message for window creation
27323
27324 2004-08-25 12:32  pbartok
27325
27326         * Control.cs:
27327           - Fixed generation of MouseUp message
27328
27329 2004-08-25 12:29  jordi
27330
27331         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
27332           and fixes for progressbar
27333
27334 2004-08-24 18:43  ravindra
27335
27336         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
27337           in ToolBar control.
27338
27339 2004-08-24 17:15  pbartok
27340
27341         * Panel.cs:
27342           - Added #region
27343           - Added missing events
27344           - Alphabetized
27345
27346 2004-08-24 17:14  pbartok
27347
27348         * StatusBar.cs, PictureBox.cs:
27349           - Now uses Control's CreateParams
27350
27351 2004-08-24 16:36  pbartok
27352
27353         * XplatUIX11.cs:
27354           - Fixed background color handling
27355           - Fixed sending of enter/leave events on a grab
27356
27357 2004-08-24 16:35  pbartok
27358
27359         * X11Structs.cs:
27360           - Refined definitions for CrossingEvent
27361
27362 2004-08-24 12:37  jordi
27363
27364         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
27365           formmating, methods signature, and adds missing events
27366
27367 2004-08-24 12:24  jordi
27368
27369         * Control.cs: fire OnEnabledChanged event
27370
27371 2004-08-24 11:17  pbartok
27372
27373         * XplatUIWin32.cs:
27374           - Implemented SetTimer() and KillTimer()
27375
27376 2004-08-24 11:16  pbartok
27377
27378         * XplatUIX11.cs:
27379           - Now uses Remove instead of Add to kill the timer
27380
27381 2004-08-24 10:16  jackson
27382
27383         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
27384           picture boxes in the theme now. Draw picture box borders and obey
27385           sizing modes
27386
27387 2004-08-24 05:49  jackson
27388
27389         * Timer.cs: Remove top secret debugging code
27390
27391 2004-08-24 05:34  jackson
27392
27393         * PictureBox.cs: Temp hack to make picture boxes draw their full
27394           image
27395
27396 2004-08-24 05:29  jackson
27397
27398         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
27399           XplatUIX11.cs: Move timers to the driver level. On X they are
27400           queued by the driver and checked on idle.
27401
27402 2004-08-24 01:07  jackson
27403
27404         * XplatUIX11.cs: Use a queue for async messages instead of passing
27405           them as ClientMessages since that was totally broken. Also simply
27406           check for events and return an idle message if none are found. This
27407           gives us an idle handler, and prevents deadlocking when no messages
27408           are in the queue.
27409
27410 2004-08-23 18:19  ravindra
27411
27412         * XplatUIWin32.cs: Removed the unwanted destructor.
27413
27414 2004-08-23 17:27  pbartok
27415
27416         * ButtonBase.cs:
27417           - Finishing touches. Works now, just needs some optimizations.
27418
27419 2004-08-23 16:53  jordi
27420
27421         * ScrollBar.cs: small fix
27422
27423 2004-08-23 16:45  pbartok
27424
27425         * Application.cs:
27426           - Removed debug output
27427           - Simplifications
27428
27429 2004-08-23 16:43  jordi
27430
27431         * ScrollBar.cs: [no log message]
27432
27433 2004-08-23 16:10  pbartok
27434
27435         * Form.cs:
27436           - Fixed handling of WM_CLOSE message
27437           - Removed debug output
27438
27439 2004-08-23 16:09  pbartok
27440
27441         * Application.cs:
27442           - Added handling of Idle event
27443           - Added handling of form closing
27444           - Fixed reporting of MessageLoop property
27445           - Removed some unneeded code, should provide a bit of a speedup
27446
27447 2004-08-23 15:22  pbartok
27448
27449         * Control.cs:
27450           - Added InitLayout() method
27451           - Added code to properly perform layout when Anchor or Dock property
27452             is changed
27453           - Changed 'interpretation' of ResumeLayout. MS seems to have a
27454             LAMESPEC, tried to do it in a way that makes sense
27455
27456 2004-08-23 14:10  jordi
27457
27458         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
27459           properties and methods
27460
27461 2004-08-23 13:55  pbartok
27462
27463         * Control.cs:
27464           - Properly fixed Jordi's last fix
27465           - Now uses Cursor's Position property instead of calling XplatUI
27466           directly
27467
27468 2004-08-23 13:44  jordi
27469
27470         * PaintEventHandler.cs: Adding missing attribute
27471
27472 2004-08-23 13:39  pbartok
27473
27474         * Cursor.cs:
27475           - Implemented Position property
27476
27477 2004-08-23 13:39  pbartok
27478
27479         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
27480           - Added method to move mouse cursor
27481
27482 2004-08-23 13:39  pbartok
27483
27484         * XplatUIX11.cs:
27485           - Fixed setting of background color
27486           - Added method to move mouse cursor
27487
27488 2004-08-23 13:16  jordi
27489
27490         * Control.cs: avoids null exception
27491
27492 2004-08-22 17:46  jackson
27493
27494         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
27495           PictureBox
27496
27497 2004-08-22 17:40  jackson
27498
27499         * XplatUIX11.cs: Add some missing locks
27500
27501 2004-08-22 15:10  pbartok
27502
27503         * Control.cs, Form.cs:
27504           - Removed OverlappedWindow style from Control, instead it's default
27505             now is child
27506           - Made form windows OverlappedWindow by default
27507
27508 2004-08-22 13:34  jackson
27509
27510         * ScrollBar.cs: Update the position through the Value property so
27511           the OnValueChanged event is raised.
27512
27513 2004-08-22 12:04  pbartok
27514
27515         * SWF.csproj:
27516           - Added Cursor.cs and UserControl.cs
27517
27518 2004-08-22 12:03  pbartok
27519
27520         * Cursor.cs:
27521           - Started implementation, not usable yet
27522
27523 2004-08-22 12:00  pbartok
27524
27525         * UserControl.cs:
27526           - Implemented UserControl (complete)
27527
27528 2004-08-21 19:20  ravindra
27529
27530         * ToolBar.cs: Correcting the formatting mess of VS.NET.
27531
27532 2004-08-21 18:49  ravindra
27533
27534         * ToolBar.cs: Probably this completes the missing attributes in
27535           toolbar control.
27536
27537 2004-08-21 18:03  ravindra
27538
27539         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
27540           Fixed toolbar control signatures.
27541
27542 2004-08-21 16:32  pbartok
27543
27544         * LinkLabel.cs:
27545           - Signature Fixes
27546
27547 2004-08-21 16:30  pbartok
27548
27549         * Label.cs:
27550           - Signature fixes
27551
27552 2004-08-21 16:19  pbartok
27553
27554         * Control.cs, Label.cs:
27555           - Signature fixes
27556
27557 2004-08-21 15:57  pbartok
27558
27559         * ButtonBase.cs:
27560           - Added loads of debug output for development
27561           - Fixed typo in method name
27562
27563 2004-08-21 15:52  pbartok
27564
27565         * ToolBarButtonClickEventArgs.cs:
27566           - Added missing base class
27567
27568 2004-08-21 14:53  pbartok
27569
27570         * Control.cs:
27571           - Updated to match new GrabWindow signature
27572
27573 2004-08-21 14:51  pbartok
27574
27575         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27576           - Added method to get default display size
27577
27578 2004-08-21 14:23  pbartok
27579
27580         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27581           - Added method to query current grab state
27582           - Added argument to allow confining a grab to a window
27583
27584 2004-08-21 14:22  pbartok
27585
27586         * Keys.cs:
27587           - Added [Flags] attribute so that modifiers can be used in bitwise
27588           ops
27589
27590 2004-08-21 14:21  pbartok
27591
27592         * TrackBar.cs, ScrollBar.cs:
27593           - Replaced direct XplatUI calls with their Control counterpart
27594
27595 2004-08-21 13:32  pbartok
27596
27597         * Control.cs:
27598           - Implemented Created property
27599
27600 2004-08-21 13:28  pbartok
27601
27602         * Control.cs:
27603           - Implemented ContainsFocus
27604
27605 2004-08-21 13:26  pbartok
27606
27607         * Control.cs:
27608           - Implemented CausesValidation
27609
27610 2004-08-21 13:21  pbartok
27611
27612         * Control.cs:
27613           - Implemented CanFocus
27614           - Implemented CanSelect
27615           - Implemented Capture
27616
27617 2004-08-21 12:35  pbartok
27618
27619         * XplatUIWin32.cs:
27620           - Fixed bug with Async message handling
27621           - Implemented getting the ModifierKeys
27622
27623 2004-08-21 12:32  jackson
27624
27625         * AsyncMethodResult.cs: Make sure we have the mutex before we
27626           release it. Fixes BeginInvoke on windows
27627
27628 2004-08-21 11:31  pbartok
27629
27630         * XplatUIWin32.cs, XplatUIX11.cs:
27631           - Drivers now return proper mouse state
27632
27633 2004-08-21 10:54  jackson
27634
27635         * Control.cs: Implement EndInvoke
27636
27637 2004-08-21 10:48  jackson
27638
27639         * Timer.cs: Remove unneeded finalizer
27640
27641 2004-08-20 19:52  ravindra
27642
27643         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
27644           in mouse event handling in the ToolBar control.
27645
27646 2004-08-20 19:50  ravindra
27647
27648         * ImageList.cs: Changed draw method to use the arguments passed in
27649           to draw the image.
27650
27651 2004-08-20 18:58  pbartok
27652
27653         * XplatUIStructs.cs:
27654           - Added private message for async communication
27655
27656 2004-08-20 17:38  ravindra
27657
27658         * Control.cs: Made RightToLeft property virtual and removed a
27659           Console.WriteLine.
27660
27661 2004-08-20 14:39  jordi
27662
27663         * ThemeGtk.cs: use style_attach
27664
27665 2004-08-20 14:39  pbartok
27666
27667         * XplatUIWin32.cs:
27668           - Added jackson's Async code from X11 to Win32
27669
27670 2004-08-20 14:09  pbartok
27671
27672         * SWF.csproj:
27673           - Added all new files
27674
27675 2004-08-20 14:09  pbartok
27676
27677         * Control.cs:
27678           - Added call to set window background color
27679
27680 2004-08-20 14:03  pbartok
27681
27682         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
27683           - Added method for setting the window background
27684
27685 2004-08-20 14:02  pbartok
27686
27687         * XplatUIWin32.cs:
27688           - Added method for setting the background color
27689           - Added handling for erasing the window background
27690
27691 2004-08-20 13:45  jordi
27692
27693         * TrackBar.cs: fixes timer, new properties and methods
27694
27695 2004-08-20 13:34  jackson
27696
27697         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
27698           correct thread
27699
27700 2004-08-20 13:22  jackson
27701
27702         * Timer.cs: Timer Tick events are now handed through Controls Async
27703           mechanism so the callbacks are executed in the same thread as X
27704
27705 2004-08-20 13:19  jackson
27706
27707         * XplatUIDriver.cs: Expose functionality to send async messages
27708           through the driver
27709
27710 2004-08-20 13:18  jackson
27711
27712         * Control.cs: Implement Begininvoke
27713
27714 2004-08-20 13:14  jackson
27715
27716         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
27717           messages through the driver
27718
27719 2004-08-20 13:12  jackson
27720
27721         * XplatUIX11.cs: Lock before all X operations. Also added Async
27722           method functionality through XSendEvent
27723
27724 2004-08-20 13:11  jackson
27725
27726         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
27727           This will screw up on 64 bit systems)
27728
27729 2004-08-20 13:10  jackson
27730
27731         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
27732           Async messages through X/Win32
27733
27734 2004-08-19 19:39  pbartok
27735
27736         * XplatUIX11.cs:
27737           - Updated code to match new HandleData.DeviceContext type
27738
27739 2004-08-19 19:38  pbartok
27740
27741         * HandleData.cs:
27742           - Made DeviceContext a generic object to allow usage from various
27743           drivers
27744           - Added support for queueing Windows messages
27745
27746 2004-08-19 19:37  pbartok
27747
27748         * XplatUIWin32.cs:
27749           - Added generation of MouseEnter, MouseLeave and MouseHover events
27750           - Added cleanup on EndPaint
27751
27752 2004-08-19 19:17  pbartok
27753
27754         * Control.cs:
27755           - Added handling of WM_MOUSEHOVER
27756           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
27757           code
27758
27759 2004-08-19 18:55  jordi
27760
27761         * ThemeGtk.cs: fixes button order
27762
27763 2004-08-19 18:12  jordi
27764
27765         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
27766
27767 2004-08-19 17:09  pbartok
27768
27769         * Control.cs:
27770           - Added Right property
27771           - Added RightToLeft property
27772
27773 2004-08-19 16:27  jordi
27774
27775         * ThemeGtk.cs: experimental GTK theme support
27776
27777 2004-08-19 16:26  jordi
27778
27779         * ITheme.cs, Theme.cs: move themes from an interface to a class
27780
27781 2004-08-19 16:25  jordi
27782
27783         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
27784           theme enhancaments
27785
27786 2004-08-19 16:04  pbartok
27787
27788         * XplatUIX11.cs:
27789           - Added colormap basics
27790           - Added a way to re-initialize with a different display handle
27791           - Fixed setting of the window background color
27792           - Added various X11 imports related to colors and colormaps
27793
27794 2004-08-19 15:51  pbartok
27795
27796         * X11Structs.cs:
27797           - Removed packing hints (Paolo suggested this a while back)
27798           - fixed colormap type
27799           - Added default Atom types
27800           - Added Screen and color structs and enums
27801
27802 2004-08-19 15:39  pbartok
27803
27804         * ImageList.cs:
27805           - Added missing Draw() method
27806           - Added missing RecreateHandle event
27807
27808 2004-08-19 15:30  pbartok
27809
27810         * Form.cs:
27811           - Added handling of WM_CLOSE
27812
27813 2004-08-18 13:16  jordi
27814
27815         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
27816           a table
27817
27818 2004-08-18 09:56  jordi
27819
27820         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
27821
27822 2004-08-17 15:31  ravindra
27823
27824         * SWF.csproj: Updated project.
27825
27826 2004-08-17 15:25  pbartok
27827
27828         * Control.cs:
27829           - Drawing improvement; don't call UpdateBounds if we are not visible
27830             (or have been minimized)
27831
27832 2004-08-17 15:24  pbartok
27833
27834         * XplatUIWin32.cs:
27835           - Finished IsVisible
27836           - Added Win32GetWindowPlacement
27837
27838 2004-08-17 15:08  jackson
27839
27840         * Panel.cs: Initial checkin of the Panel
27841
27842 2004-08-17 14:25  pbartok
27843
27844         * Control.cs:
27845           - Fixed broken handling of default window sizes
27846
27847 2004-08-17 13:29  jackson
27848
27849         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
27850           has a large startup time.
27851
27852 2004-08-17 10:25  jackson
27853
27854         * HandleData.cs: union areas properly
27855
27856 2004-08-17 10:12  jackson
27857
27858         * HandleData.cs: union areas properly
27859
27860 2004-08-16 20:00  ravindra
27861
27862         * ToolBar.cs, ToolBarButton.cs: Added attributes.
27863
27864 2004-08-16 18:48  ravindra
27865
27866         * ToolBar.cs: Added attributes.
27867
27868 2004-08-16 17:17  ravindra
27869
27870         * SWF.csproj: Updated project.
27871
27872 2004-08-16 17:16  jackson
27873
27874         * XplatUIX11.cs: Check for more expose events before sending a
27875           WM_PAINT so they can all be grouped together. This makes dragging a
27876           window across another window redraw in a sane way.
27877
27878 2004-08-16 15:47  pbartok
27879
27880         * Control.cs:
27881           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
27882             support OnMouseEnter/Leave()
27883           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
27884             exposure handling
27885
27886 2004-08-16 15:46  pbartok
27887
27888         * XplatUIStructs.cs, XplatUIX11.cs:
27889           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
27890           OnMouseEnter/Leave()
27891
27892 2004-08-16 15:34  jackson
27893
27894         * XplatUIX11.cs: Group multiple expose events in HandleData, make
27895           sure messages get the message field set to WM_NULL if they are not
27896           handled.
27897
27898 2004-08-16 15:24  jackson
27899
27900         * HandleData.cs: HandleData is used for storing message information
27901           for window handles
27902
27903 2004-08-15 17:23  ravindra
27904
27905         * ColorDepth.cs: Added attribute.
27906
27907 2004-08-15 17:23  ravindra
27908
27909         * SWF.csproj: Updated project for ToolBar Control.
27910
27911 2004-08-15 17:20  ravindra
27912
27913         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
27914           control and also dos2unix format.
27915
27916 2004-08-15 17:13  ravindra
27917
27918         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
27919           ToolBarButtonClickEventArgs.cs,
27920           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
27921           ToolBarTextAlign.cs: First Implementation of ToolBar control.
27922
27923 2004-08-15 15:31  pbartok
27924
27925         * ButtonBase.cs:
27926           - First (mostly) working version
27927
27928 2004-08-13 16:15  pbartok
27929
27930         * Control.cs:
27931           - Fixed Anchor default
27932
27933 2004-08-13 15:43  pbartok
27934
27935         * Control.cs:
27936           - Changed GetCursorPos signature
27937
27938 2004-08-13 15:42  pbartok
27939
27940         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
27941           - Changed signature for GetCursorPos
27942
27943 2004-08-13 15:25  pbartok
27944
27945         * XplatUIX11.cs:
27946           - Cleanup
27947           - Fixed resizing/exposure handling
27948
27949 2004-08-13 15:22  jordi
27950
27951         * ThemeWin32Classic.cs: removes redundant code and fixes issues
27952           with tickposition
27953
27954 2004-08-13 14:55  jordi
27955
27956         * TrackBar.cs: change from wndproc to events
27957
27958 2004-08-13 13:00  jordi
27959
27960         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
27961           XplatUIX11.cs: implements PointToClient (ScreenToClient)
27962
27963 2004-08-13 12:53  pbartok
27964
27965         * XplatUIWin32.cs:
27966           - Changed GetWindowPos to also provide client area size
27967           - Fixed broken prototypes for several win32 functions
27968
27969 2004-08-13 12:53  pbartok
27970
27971         * XplatUI.cs, XplatUIDriver.cs:
27972           - Changed GetWindowPos to also provide client area size
27973
27974 2004-08-13 12:52  pbartok
27975
27976         * XplatUIX11.cs:
27977           - Added generation of WM_POSCHANGED
27978           - Changed GetWindowPos to also provide client area size
27979
27980 2004-08-13 12:52  pbartok
27981
27982         * Control.cs:
27983           - Added Dispose() and destructor
27984           - Fixed resizing and bounds calculation
27985           - Fixed Layout
27986           - Added memory savings for invisible windows
27987
27988 2004-08-13 12:46  jordi
27989
27990         * TrackBar.cs: adds timer and grap window
27991
27992 2004-08-13 10:25  jackson
27993
27994         * Timer.cs: SWF Timer
27995
27996 2004-08-12 16:59  pbartok
27997
27998         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
27999           - Implemented method to get current mouse position
28000
28001 2004-08-12 14:29  jordi
28002
28003         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
28004           enhancement, fix mouse problems, highli thumb, etc
28005
28006 2004-08-12 13:31  pbartok
28007
28008         * Control.cs:
28009           - Fixed Anchoring bugs
28010
28011 2004-08-12 13:01  jackson
28012
28013         * StatusBar.cs: Don't forget things
28014
28015 2004-08-12 12:54  jackson
28016
28017         * ThemeWin32Classic.cs: Handle owner draw status bars
28018
28019 2004-08-12 12:54  jackson
28020
28021         * StatusBar.cs: Implement missing properties, events, and methods.
28022           Handle mouse clicking
28023
28024 2004-08-12 10:19  jackson
28025
28026         * StatusBarPanelClickEventArgs.cs,
28027           StatusBarPanelClickEventHandler.cs: Classes for handling status
28028           bar panel click events
28029
28030 2004-08-12 10:10  jackson
28031
28032         * Control.cs: Add missing properties
28033
28034 2004-08-12 09:46  pbartok
28035
28036         * BindingsManagerBase.cs:
28037           - Name changed to BindingManagerBase.cs
28038
28039 2004-08-12 09:25  jordi
28040
28041         * ScrollableControl.cs: calls ctrlbase instead of exeception
28042
28043 2004-08-11 16:28  pbartok
28044
28045         * InputLanguageChangingEventArgs.cs:
28046           - Never check in before compiling. Fixes the last check-in
28047
28048 2004-08-11 16:26  pbartok
28049
28050         * InputLanguageChangingEventArgs.cs:
28051           - More signature fixes
28052
28053 2004-08-11 16:20  pbartok
28054
28055         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
28056           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
28057           ImageListStreamer.cs, InputLanguage.cs,
28058           InputLanguageChangedEventArgs.cs,
28059           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
28060           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
28061           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
28062           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
28063           - Signature fixes
28064
28065 2004-08-11 16:16  pbartok
28066
28067         * Application.cs:
28068           - Fixed Signature
28069           - Added .Net 1.1 method
28070
28071 2004-08-11 15:25  pbartok
28072
28073         * SWF.csproj:
28074           - Fixed BindingManagerBase.cs filename
28075
28076 2004-08-11 15:22  pbartok
28077
28078         * BindingManagerBase.cs:
28079           - Was checked in with wrong filename
28080
28081 2004-08-11 14:50  pbartok
28082
28083         * SWF.csproj:
28084           - Updated
28085
28086 2004-08-11 13:41  jordi
28087
28088         * XplatUIWin32.cs: Fixes ClientRect
28089
28090 2004-08-11 13:19  pbartok
28091
28092         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28093           XplatUIX11.cs:
28094           - We had SetWindowPos and MoveWindow to set window positions and
28095             size, removed MoveWindow. We have GetWindowPos, so it made sense to
28096             keep SetWindowPos as matching counterpart
28097           - Added some X11 sanity checking
28098
28099 2004-08-11 12:59  pbartok
28100
28101         * Control.cs:
28102           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
28103             (It seems that SetBounds is just a front for SetBoundsCore and
28104              SetBoundsCore updates the underlying window system and
28105              UpdateBounds is responsible for updating the variables associated
28106              with the Control and sending the events)
28107           - Major cleanup of Size handling; we now have two sizes, client_size
28108             and bounds. Bounds defines the window with decorations, client_size
28109             without them.
28110
28111 2004-08-11 12:55  pbartok
28112
28113         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
28114           - Added method to calculate difference between decorated window and
28115             raw client area
28116
28117 2004-08-11 12:54  pbartok
28118
28119         * Label.cs:
28120           - Forcing redraw on resize
28121
28122 2004-08-11 11:43  pbartok
28123
28124         * ImageList.cs:
28125           - Removed disposing of the actual images when the list is disposed
28126
28127 2004-08-11 09:13  pbartok
28128
28129         * Control.cs:
28130           - Now properly reparents windows
28131
28132 2004-08-11 08:37  pbartok
28133
28134         * Control.cs:
28135           - Duh!
28136
28137 2004-08-11 07:47  pbartok
28138
28139         * Control.cs:
28140           - Rewrote the collection stuff. Might not be as fast now, not
28141             keeping the number of children around and accessible directly, but
28142             it's more straightforward
28143
28144 2004-08-11 07:44  pbartok
28145
28146         * AccessibleObject.cs:
28147           - Fixed to match ControlCollection rewrite
28148
28149 2004-08-11 07:43  pbartok
28150
28151         * ImageList.cs:
28152           - Added missing creation of the collection list
28153
28154 2004-08-10 20:08  jackson
28155
28156         * StatusBar.cs: Get the paint message from WndProc
28157
28158 2004-08-10 19:31  jackson
28159
28160         * ThemeWin32Classic.cs: Create Brushes as little as possible
28161
28162 2004-08-10 19:20  jackson
28163
28164         * UICues.cs: Add Flags attribute
28165
28166 2004-08-10 19:19  jackson
28167
28168         * StatusBarPanel.cs: Signature cleanup
28169
28170 2004-08-10 19:10  jackson
28171
28172         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
28173           Initial implementation of status bar item drawing
28174
28175 2004-08-10 17:27  jordi
28176
28177         * TrackBar.cs: add missing methods, properties, and restructure to
28178           hide extra ones
28179
28180 2004-08-10 16:24  jackson
28181
28182         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
28183           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
28184           attribute
28185
28186 2004-08-10 13:21  jordi
28187
28188         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
28189           enhancements and standarize on win colors defaults
28190
28191 2004-08-10 12:52  jackson
28192
28193         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
28194           ThemeWin32Classic.cs: Implement DrawItem functionality
28195
28196 2004-08-10 12:47  jordi
28197
28198         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
28199
28200 2004-08-10 12:32  jordi
28201
28202         * Control.cs: throw ontextchange event
28203
28204 2004-08-10 11:43  pbartok
28205
28206         * Control.cs:
28207           - Added more to the still unfinished Dock/Anchor layout code
28208
28209 2004-08-10 11:39  pbartok
28210
28211         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
28212           - Added GetWindowPos method
28213
28214 2004-08-10 11:36  pbartok
28215
28216         * XplatUIWin32.cs:
28217           - Implemented several methods
28218
28219 2004-08-10 09:47  jackson
28220
28221         * TrackBar.cs: Allow control to handle buffering
28222
28223 2004-08-10 09:41  jackson
28224
28225         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
28226
28227 2004-08-10 09:24  jackson
28228
28229         * Label.cs, LinkLabel.cs: Let Control handle buffering.
28230
28231 2004-08-10 09:09  jackson
28232
28233         * StatusBar.cs: Let Control handle all the buffering.
28234
28235 2004-08-10 09:08  jackson
28236
28237         * Control.cs: Control will now handle the buffering code, so each
28238           control does not have to implement this.
28239
28240 2004-08-10 08:34  jackson
28241
28242         * XplatUIDriver.cs: Use default colors from the theme
28243
28244 2004-08-09 17:12  pbartok
28245
28246         * ImageList.cs:
28247           - Fixed several bugs Ravindra pointed out
28248
28249 2004-08-09 16:11  pbartok
28250
28251         * Control.cs:
28252           - Added incomplete dock layout code
28253           - Added support for mouse wheel
28254
28255 2004-08-09 16:09  pbartok
28256
28257         * XplatUIX11.cs:
28258           - Added handling for middle and right mousebutton
28259           - Added handling for mouse wheel
28260           - Added handling for key state and mouse state and position
28261           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
28262           messages
28263
28264 2004-08-09 15:40  jackson
28265
28266         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
28267           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
28268           checkin
28269
28270 2004-08-09 15:37  jackson
28271
28272         * StatusBar.cs: Initial implementation of StatusBar
28273
28274 2004-08-09 15:36  jackson
28275
28276         * ITheme.cs: Add support for drawing status bar and getting status
28277           bar item sizes
28278
28279 2004-08-09 15:35  pbartok
28280
28281         * MouseButtons.cs:
28282           - Fixed values
28283
28284 2004-08-09 15:34  jackson
28285
28286         * ThemeWin32Classic.cs: Add support for drawing status bar and get
28287           status bar item sizes
28288
28289 2004-08-09 15:21  jackson
28290
28291         * ThemeWin32Classic.cs: Use known colors for default control
28292           colours
28293
28294 2004-08-09 15:12  jackson
28295
28296         * ThemeWin32Classic.cs: Make the default font static, it is static
28297           in control so this doesn't change functionality and creating fonts
28298           is sloooooow.
28299
28300 2004-08-09 14:56  pbartok
28301
28302         * X11Structs.cs:
28303           - Added GrabMode enum
28304
28305 2004-08-09 14:55  pbartok
28306
28307         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
28308           - Removed Run method, was only required for initial development
28309
28310 2004-08-09 14:51  pbartok
28311
28312         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
28313           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
28314           capture
28315
28316 2004-08-09 13:48  pbartok
28317
28318         * XplatUIX11.cs:
28319           - Fixed default sizing for child windows
28320
28321 2004-08-09 12:56  pbartok
28322
28323         * XplatUIX11.cs:
28324           - Added generation of WM_DESTROY message
28325           - Added handling of window manager induced shutdown
28326
28327 2004-08-09 11:31  jackson
28328
28329         * ThemeWin32Classic.cs: New names for control properties
28330
28331 2004-08-09 11:25  jackson
28332
28333         * Control.cs: Use new color names
28334
28335 2004-08-09 11:02  jackson
28336
28337         * XplatUI.cs: Get default window properties from the theme
28338
28339 2004-08-09 11:01  jackson
28340
28341         * ITheme.cs: The theme engine now controls default window
28342           properties
28343
28344 2004-08-09 11:00  jackson
28345
28346         * ThemeWin32Classic.cs: Add default window color properties
28347
28348 2004-08-09 10:17  jackson
28349
28350         * ThemeWin32Classic.cs: Use correct default back color
28351
28352 2004-08-09 10:05  jackson
28353
28354         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
28355           the theme now.
28356
28357 2004-08-09 09:56  jackson
28358
28359         * XplatUI.cs: Remove defaults, these are handled by the theme now.
28360
28361 2004-08-09 09:54  jackson
28362
28363         * Control.cs: Get default properties from the theme.
28364
28365 2004-08-09 09:53  jackson
28366
28367         * ITheme.cs: Themes now handle default control properties
28368
28369 2004-08-09 09:53  jackson
28370
28371         * ThemeWin32Classic.cs: Themes now handle default control
28372           properties so coloring will be consistent
28373
28374 2004-08-08 16:54  jordi
28375
28376         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
28377
28378 2004-08-08 15:08  jordi
28379
28380         * XplatUIX11.cs: fixes keyboard crash
28381
28382 2004-08-08 13:47  jordi
28383
28384         * Label.cs: add cvs header info
28385
28386 2004-08-08 12:09  jackson
28387
28388         * ThemeWin32Classic.cs: Add pen_buttonface
28389
28390 2004-08-08 11:52  jordi
28391
28392         * Label.cs, LinkLabel.cs: [no log message]
28393
28394 2004-08-08 11:34  jordi
28395
28396         * ThemeWin32Classic.cs: Use Windows Standard Colours
28397
28398 2004-08-07 17:32  jordi
28399
28400         * TrackBar.cs: throw exceptions of invalid enums values
28401
28402 2004-08-07 17:31  jordi
28403
28404         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
28405           draw method name
28406
28407 2004-08-07 16:56  jackson
28408
28409         * HorizontalAlignment.cs: Initial checkin
28410
28411 2004-08-07 13:16  jordi
28412
28413         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
28414           methods
28415
28416 2004-08-07 13:05  jordi
28417
28418         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
28419           GetSysColor defines
28420
28421 2004-08-06 18:01  pbartok
28422
28423         * ThemeWin32Classic.cs:
28424           - Fixed some rounding issues with float/int
28425
28426 2004-08-06 18:00  jackson
28427
28428         * DockStyle.cs, AnchorStyles.cs:
28429
28430                   Add flags and serializable attributes.
28431
28432 2004-08-06 17:46  pbartok
28433
28434         * XplatUIX11.cs:
28435           - Implemented GetParent
28436
28437 2004-08-06 17:18  pbartok
28438
28439         * TrackBar.cs:
28440           - Fixed some rounding issues with float/int
28441
28442 2004-08-06 17:17  pbartok
28443
28444         * X11Structs.cs, XplatUIX11.cs:
28445           - Fixed Refresh and Invalidate
28446
28447 2004-08-06 15:30  pbartok
28448
28449         * Control.cs, X11Structs.cs, XplatUIX11.cs:
28450           - Fixed recursive loop when resizing
28451           - Improved/fixed redrawing on expose messages
28452
28453 2004-08-06 09:53  jordi
28454
28455         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
28456           keyboard navigation
28457
28458 2004-08-06 08:02  pbartok
28459
28460         * X11Structs.cs, XplatUIX11.cs:
28461           - Fixed reparenting
28462           - Fixed window border creation
28463
28464 2004-08-05 15:38  pbartok
28465
28466         * XplatUIX11.cs:
28467           - Attempted fix for reparenting problems
28468
28469 2004-08-04 15:14  pbartok
28470
28471         * Control.cs:
28472           - Fixed Invalidation bug (calculated wrong client area)
28473           - Added ClientSize setter
28474
28475 2004-08-04 15:13  pbartok
28476
28477         * Form.cs:
28478           - Added AutoScale properties
28479
28480 2004-08-04 15:13  pbartok
28481
28482         * SWF.csproj:
28483           - Added latest files
28484
28485 2004-08-04 14:11  pbartok
28486
28487         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
28488           XplatUIX11.cs:
28489           - Added Invalidate handling
28490
28491 2004-08-03 17:09  jordi
28492
28493         * XplatUIDriver.cs: fixes spelling mistake
28494
28495 2004-07-27 09:53  jordi
28496
28497         * TrackBar.cs: fixes trackbar events, def classname, methods
28498           signature
28499
28500 2004-07-27 09:29  jordi
28501
28502         * ScrollBar.cs: fixes scrollbar events
28503
28504 2004-07-27 04:38  jordi
28505
28506         * Control.cs: changes to be able to run winforms samples
28507
28508 2004-07-26 11:42  jordi
28509
28510         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
28511           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
28512
28513 2004-07-26 05:41  jordi
28514
28515         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
28516           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
28517           implementation
28518
28519 2004-07-22 09:22  jordi
28520
28521         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
28522           check link overlapping, implement events, and fixes
28523
28524 2004-07-21 10:28  jordi
28525
28526         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
28527
28528 2004-07-21 10:19  jordi
28529
28530         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
28531           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
28532           LinkLabelLinkClickedEventArgs.cs,
28533           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
28534           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
28535           implementation
28536
28537 2004-07-19 13:09  jordi
28538
28539         * Control.cs, Label.cs: label control re-written: added missing
28540           functionlity, events, and properties
28541
28542 2004-07-19 10:49  jordi
28543
28544         * Control.cs: fixes SetBounds logic
28545
28546 2004-07-19 01:29  jordi
28547
28548         * Control.cs: Call RefreshWindow only if the window has created
28549
28550 2004-07-15 14:05  pbartok
28551
28552         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
28553           - Implemented ImageList and ImageList.ImageCollection classes
28554           - Added ColorDepth enumeration
28555           - Updated SWF VS.Net project
28556
28557 2004-07-15 11:06  jordi
28558
28559         * XplatUIStructs.cs: added MsgButons enum
28560
28561 2004-07-15 11:03  jordi
28562
28563         * Control.cs: added basic mouse handeling events
28564
28565 2004-07-15 03:38  jordi
28566
28567         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
28568           Vertical TrackBar control implementation
28569
28570 2004-07-13 09:33  jordi
28571
28572         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
28573
28574 2004-07-13 09:31  jordi
28575
28576         * Control.cs, Form.cs: commit: new properties and fixes form size
28577           problems
28578
28579 2004-07-09 14:13  miguel
28580
28581         * ProgressBar.cs: Spelling
28582
28583 2004-07-09 11:25  pbartok
28584
28585         * ProgressBar.cs:
28586           - Removed usage of Rectangle for drawing. Miguel pointed out it's
28587           faster
28588
28589 2004-07-09 11:17  miguel
28590
28591         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
28592
28593                 * ProgressBar.cs: Fixed spelling for `block'
28594
28595                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
28596                 style guidelines.
28597
28598                 Avoid using the += on rect.X, that exposed a bug in the compiler.
28599
28600 2004-07-08 23:21  pbartok
28601
28602         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
28603           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
28604           BaseCollection.cs, Binding.cs, BindingContext.cs,
28605           BindingMemberInfo.cs, BindingsCollection.cs,
28606           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
28607           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
28608           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
28609           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
28610           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
28611           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
28612           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
28613           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
28614           FrameStyle.cs, GiveFeedbackEventArgs.cs,
28615           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
28616           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
28617           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
28618           InputLanguageChangedEventArgs.cs,
28619           InputLanguageChangedEventHandler.cs,
28620           InputLanguageChangingEventArgs.cs,
28621           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
28622           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
28623           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
28624           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
28625           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
28626           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
28627           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
28628           QueryAccessibilityHelpEventArgs.cs,
28629           QueryAccessibilityHelpEventHandler.cs,
28630           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
28631           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
28632           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
28633           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
28634           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
28635           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
28636           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
28637           XplatUIX11.cs, lang.cs:
28638           - Initial check-in
28639
28640